Enhance tests for module 'isatty'.
[gnulib.git] / ChangeLog
1 2012-01-02  Bruno Haible  <bruno@clisp.org>
2
3         Enhance tests for module 'isatty'.
4         * modules/isatty-tests (Depends-on): Add pipe-posix.
5         * tests/test-isatty.c: Include <fcntl.h>.
6         (DEV_NULL): New macro.
7         (main): Test the resut of isatty() also on regular files, pipes, and
8         /dev/null.
9
10         New module 'isatty'.
11         * lib/unistd.in.h (isatty): New declaration.
12         * lib/isatty.c: New file, based on an idea of
13         Bastien Roucariès <roucaries.bastien@gmail.com>.
14         * m4/isatty.m4: New file.
15         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
16         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
17         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
18         REPLACE_ISATTY.
19         * modules/isatty: New file.
20         * doc/posix-functions/isatty.texi: Mention the new module.
21         Suggested by Paolo Bonzini.
22
23 2012-01-02  Bruno Haible  <bruno@clisp.org>
24
25         canonicalize: Tweak 2011-12-29 commit.
26         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
27         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
28
29 2012-01-02  Jim Meyering  <meyering@redhat.com>
30
31         gitlog-to-changelog: describe input syntax in --help output
32         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
33
34         gitlog-to-changelog: fix typo in --help: show backslash before email @
35         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
36         in sources, but not in actual output.
37
38 2011-12-30  Jim Meyering  <meyering@redhat.com>
39
40         gitlog-to-changelog: don't malfunction when name contains %-directive
41         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
42         in a name string cause trouble.  E.g., with a user name of "%s",
43         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
44
45 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
46
47         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
48         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
49         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
50         the "  (tiny change)" notation that is appended to the standard
51         ChangeLog "date  name  email" header line.
52
53 2012-01-01  Jim Meyering  <meyering@redhat.com>
54
55         test-framework-sh: init.sh: fix "make dist" failure
56         When using gnulib-tool's --with-tests option and any module that
57         depends on test-framework-sh, "make dist" would fail due to the
58         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
59         in the gltests directory, and not in the gllib/ directory.
60         One way to work around that is to move the EXTRA_DIST += init.sh
61         from the primary module to the -tests one:
62         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
63         * modules/test-framework-sh (Makefile.am): ...not here.
64         Reported by Tom G. Christensen in
65         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
66
67         version-etc: update copyright year reported by --version
68         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
69
70 2011-12-31  Pádraig Brady  <P@draigBrady.com>
71
72         canonicalize: only stat() if required
73         * lib/canonicalize.c (canonicalize_filename_mode):
74         Avoid calling l?stat() when both CAN_MISSING,
75         and CAN_NOLINKS are set, as we neither need
76         to resolve symlinks or test component existence.
77
78 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
79
80         doc: cover st_ino issues once; add OpenVMS etc.
81         * doc/posix-functions/stat.texi (stat):
82         * doc/posix-functions/lstat.texi (lstat):
83         * doc/posix-functions/fstatat.texi (fstatat):
84         * doc/posix-functions/fstat.texi (fstat):
85         Move general 'struct stat' stuff to sys_stat.texi,
86         leaving behind a pointer.
87         * doc/posix-headers/sys_stat.texi (sys/stat.h):
88         Merge duplicate info about 'struct stat' problems into here.
89         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
90         and suggest partial workarounds.
91
92         same-inode: port to OpenVMS
93         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
94         three st_ino values.
95
96 2011-12-30  Pádraig Brady  <P@draigBrady.com>
97
98         canonicalize: fix references to stat() and lstat()
99         * lib/canonicalize.c (canonicalize_filename_mode):
100         Ensure references always resolve to a replacement
101         function if required (even via a macro).
102
103 2011-12-30  Jim Meyering  <meyering@redhat.com>
104
105         gitlog-to-changelog: remove a little duplication
106         * build-aux/gitlog-to-changelog (main): Grep @lines once,
107         rather than twice.
108
109 2011-12-29  Pádraig Brady  <P@draigBrady.com>
110
111         canonicalize: add support for not resolving symlinks
112         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
113         indicate we don't want to follow symlinks.  Also
114         provide CAN_MODE_MASK to aid setting these existing
115         mutually exclusive values.
116         * lib/canonicalize.c (canonicalize_filename_mode):
117         Extract the flags from can_mode parameter, which
118         are currently just used to select between stat()
119         and lstat().  Also ensure that mutually exclusive
120         values are flagged immediately as invalid.
121         * tests/test-canonicalize.c: Verify symlinks are
122         not followed, and that invalid flag combinations
123         are diagnosed.
124
125 2011-12-25  Jim Meyering  <meyering@redhat.com>
126
127         gitlog-to-changelog: do not clump multi-paragraph entries
128         Identical header lines (date,name,email+coauthors) are suppressed,
129         thus putting all entries with those same characteristics under
130         a single header.  However, when a log entry consists of two or
131         more paragraphs, it may not be clear where it starts and ends.
132         This change makes it so that such an entry is always separated
133         from others by a header line, even when that header would
134         otherwise be suppressed.
135         * build-aux/gitlog-to-changelog: Implement the above.
136         Inspired by a related request from Stefano Lattarini in
137         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
138
139 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
140
141         announce-gen: fix `cmd' typo in diagnostic
142         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
143         diagnostic: a missing '$' meant that the command was not output.
144
145 2011-12-23  Jim Meyering  <meyering@redhat.com>
146
147         test-framework-sh: distribute init.sh
148         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
149         Otherwise, "make -C gnulib-tests check" (at least in grep) would
150         fail due to the lack of init.sh.
151
152         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
153         * modules/atexit-tests: Rather than listing tests/init.sh,
154         now that there's a module for it, simply depend on that new module.
155         * modules/closein-tests: Likewise.
156         * modules/exclude-tests: Likewise.
157         * modules/getcwd-tests: Likewise.
158         * modules/perror-tests: Likewise.
159         * modules/pread-tests: Likewise.
160         * modules/pwrite-tests: Likewise.
161         * modules/vc-list-files-tests: Likewise.
162         * modules/verify-tests: Likewise.
163         * modules/xalloc-die-tests: Likewise.
164         * modules/xstrtoimax-tests: Likewise.
165         * modules/xstrtol-tests: Likewise.
166         * modules/xstrtoll-tests: Likewise.
167         * modules/xstrtoumax-tests: Likewise.
168         * modules/yesno-tests: Likewise.
169
170 2011-12-22  Jim Meyering  <meyering@redhat.com>
171
172         test-framework-sh: add minimal tests of init.sh's compare function
173         * modules/test-framework-sh-tests: New file.
174         * tests/test-init.sh: New file.
175
176         test-framework-sh: new module
177         * modules/test-framework-sh: New file.
178         * MODULES.html.sh (Support for maintaining and releasing projects):
179         List it.
180
181         init.sh: do not emit simulated diff output to stderr
182         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
183
184 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
185
186         .gitignore: ignore gnulib.dvi and regex.info
187         * doc/.gitignore:add gnulib.dvi and regex.info
188
189 2011-12-22  Jim Meyering  <meyering@redhat.com>
190
191         init.sh: correct previous change
192         * tests/init.sh (compare): My previous change was wrong.
193         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
194
195         init.sh: avoid unwarranted test failure when using "set -e"
196         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
197         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
198         a use like "compare exp out" would get evoke an unconditional failure.
199
200 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
201
202         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
203         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
204         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
205         autoreconf that did not.
206         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
207         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
208
209 2011-12-17  Jim Meyering  <meyering@redhat.com>
210
211         bootstrap: remove some now-unneeded code
212         This script arose back when gnulib-tool was young.
213         Since then, it has seen improvements that render much of this
214         script unnecessary.  In particular, it can now make symlinks
215         to the files it uses.  Also, I no longer see as much value in
216         marking files as read-only via comments.
217         If you relied on the symlink-creation feature of the preceding
218         version of this script, you can get most of that functionality
219         by adding the --symlink option to the definition of
220         gnulib_tool_option_extras in your bootstrap.conf file.
221         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
222         Run autopoint and libtoolize *before* gnulib-tool.
223         After it, run an abbreviated autoreconf, rather than a loop around
224         all tools.
225         (slirp, bt_mark_as_generated): Remove functions.
226
227 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
228
229         ftoastr: fix typo
230         * lib/ftoastr.h: Fix misspelling in comment.
231
232 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
233
234         * top/README-release: fix punctuation.
235
236 2011-12-17  Jim Meyering  <meyering@redhat.com>
237
238         bootstrap: correct the recent buildreq change
239         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
240         had no effect.
241         * build-aux/bootstrap (buildreq): Bracket each search term with
242         "*...*", so that the shell "case" statement works as intended.
243         Add comments.
244
245 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
246
247         build: let bootstrap resort to wget when downloading .po files
248         * build-aux/bootstrap (download_po_files): Fallback to wget when
249         downloading the .po files via rsync fails.  This is necessary to
250         bootstrap from behind a strict firewall.
251
252 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
253
254         stdint: don't assume C++11 when compiling with g++
255         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
256         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
257         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
258         work also in C++ before C++11, as that improperly inhibits
259         generating a substitute stdint.h for that case.
260
261 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
262
263         alloca: protect comment from gnulib-tool
264         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
265         that gnulib-tool doesn't think it's a license, and munge it to
266         say "GCC version 3".
267
268 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
269
270         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
271         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
272         $(abs_top_builddir) instead of $(top_builddir).
273
274 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
275
276         strftime-tests: also test nanoseconds
277         * tests/test-strftime.c (T): Add a test of %N.
278
279 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
280
281         inttypes, stdint: add C++11 support
282         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
283         when including inttypes.h and stdint.h.  Support this change to
284         the standard.
285         * doc/posix-headers/inttypes.texi (inttypes.h):
286         * doc/posix-headers/stdint.texi (stdint.h): Document this.
287         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
288         Define if not defined already, for the benefit of pre-C++11 hosts.
289         Define the standard format macros (e.g., PRId8) always.
290         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
291         Likewise, if __cpluspus.  Define the standard constant and limit
292         macros (e.g., INT8_C, INT8_MAX) always.
293         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
294         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
295         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
296         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
297         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
298         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
299         Likewise.
300
301 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
302
303         nonblocking tests: Fix test failure on Linux/PPC.
304         Suggested by Prerna Saxena in
305         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
306         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
307         Set to 1100000.
308
309 2011-12-12  Jim Meyering  <meyering@redhat.com>
310
311         argmatch: don't hard-code `' when listing valid option arguments
312         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
313         use the quote function to add quotes.  Use fputs rather than
314         fprintf for the format string with no format directive.
315
316 2011-12-07  Eric Blake  <eblake@redhat.com>
317
318         bootstrap: detect tools required by gnulib-tool
319         * build-aux/bootstrap (buildreq): Provide minimum implicit
320         dependencies.
321         * DEPENDENCIES: Mention patch as a prereq.
322
323 2011-12-04  Bruno Haible  <bruno@clisp.org>
324
325         sethostname: Port to Windows platforms.
326         * lib/sethostname.c: Provide an alternate implementation for Windows
327         platforms.
328         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
329         (main): Skip the test if sethostname() fails with EPERM. On Windows
330         platforms, don't check the result of gethostname().
331
332 2011-12-04  Bruno Haible  <bruno@clisp.org>
333             Jim Meyering  <meyering@redhat.com>
334
335         tests: Avoid spurious error message on platforms without mktemp program.
336         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
337
338 2011-12-04  Bruno Haible  <bruno@clisp.org>
339
340         sethostname: Fix documentation.
341         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
342         "not fixed" section.
343
344 2011-12-03  Bruno Haible  <bruno@clisp.org>
345
346         gnulib-tool: Verify that the License field is present and non-empty.
347         * gnulib-tool (func_get_license_raw): New function, extracted from
348         func_get_license.
349         (func_get_license): Use it. Warn if the module is not a test module and
350         has no license.
351         Suggested by Jim Meyering.
352
353 2011-12-03  Bruno Haible  <bruno@clisp.org>
354
355         sethostname tests: Fix link error on mingw.
356         * tests/test-sethostname1.c: New file, extracted from
357         tests/test-sethostname.c.
358         * tests/test-sethostname2.c: New file, extracted from
359         tests/test-sethostname.c.
360         * tests/test-sethostname.c: Remove file.
361         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
362         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
363         (Depends-on): Add gethostname.
364         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
365         Link the latter with $(GETHOSTNAME_LIB).
366
367         sethostname tests: Fix compilation error on mingw.
368         * tests/test-sethostname.c: Don't include <sys/types.h>.
369         (geteuid): Use a dummy value without uid_t.
370         * modules/sethostname-tests (Depends-on): Remove sys_types.
371
372         sethostname tests: Avoid a gcc warning.
373         * tests/test-sethostname.c (main): Remove an unused variable.
374
375         Tweak last commit.
376         * modules/sethostname-tests (Files): Sort by decreasing importance.
377         (configure.ac): Check for geteuid.
378         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
379         the test when there's nothing to test. Drop an unnecessary cast.
380         Improve an error message. Verify that the final sethostname() call
381         succeeds.
382
383 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
384
385         Add a test suite for the sethostname module.
386         * modules/sethostname-tests: New file.  A test program
387         for the sethostname module.
388         * tests/test-sethostname.c: Likewise.
389
390 2011-12-03  Bruno Haible  <bruno@clisp.org>
391
392         Tweak last commit.
393         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
394         Fix preprocessor directives indentation. Fix typos.
395         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
396         * modules/unistd (Makefile): Likewise.
397
398 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
399
400         Integrate the sethostname module into unistd.
401         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
402         into the unistd.h header.
403         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
404         preprocessor directives.
405         * modules/unistd: Setup the Makefile substitutions of the
406         SETHOSTNAME preprocessor directives.
407
408 2011-12-03  Bruno Haible  <bruno@clisp.org>
409
410         Tweak last commit.
411         * lib/sethostname.c: Don't include <string.h>.
412         (sethostname): No need to copy the argument string to the stack. Don't
413         call clearerr. Preserve errno when fprintf failed.
414         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
415         Don't invoke AC_REPLACE_FUNCS.
416         * modules/sethostname (Link): Remove empty section.
417         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
418         failure problem.
419
420 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
421
422         New module 'sethostname'.
423         * lib/sethostname.c (sethostname): New file.  Provide sethostname
424         for systems that lack it.
425         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
426         sethostname declaration and function.
427         * modules/sethostname: New file.  Define the sethostname module.
428
429 2011-12-03  Bruno Haible  <bruno@clisp.org>
430
431         Tweak last commit.
432         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
433
434 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
435
436         Split the HOST_NAME_MAX detection into a separate m4 macro.
437         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
438         macro so it can be used by the pending sethostname module.
439
440 2011-12-03  Bruno Haible  <bruno@clisp.org>
441
442         Fix module descriptions syntax.
443         * modules/argv-iter (License): Fix syntax.
444         * modules/di-set (License): Likewise.
445         * modules/ino-map (License): Likewise.
446         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
447
448 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
449
450         stdalign: port to Clang 3.0
451         Problem reported by Simon Josefsson in
452         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
453         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
454         which has <stdalign.h> but which does not define alignof.
455         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
456
457 2011-12-01  Eric Blake  <eblake@redhat.com>
458
459         mktempd: silence dd usage
460         * build-aux/mktempd (rand_bytes): Silence dd.
461
462 2011-11-30  Simon Josefsson  <simon@josefsson.org>
463
464         manywarnings: Don't mention gcc version in docstring.
465         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
466         Jim Meyering <meyering@redhat.com>.
467
468 2011-11-30  Jim Meyering  <meyering@redhat.com>
469
470         hash: mark a few floating point constants with "f" suffix
471         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
472         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
473         floating point constants with "f", since they're destined to be
474         saved/used as "float"s.
475
476 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
477
478         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
479         * tests/test-float.c (test_long_double): Correct and re-enable the
480         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
481
482 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
483
484         Avoid subtracting two pointers that don't point into the same block.
485         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
486         only pointers into the same memory block are subtracted. We cannot
487         assume that sizeof (ptrdiff_t) == sizeof (void *).
488
489 2011-11-29  Eric Blake  <eblake@redhat.com>
490
491         maint.mk: add syntax check for use of compare from init.sh
492         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
493         moved here from coreutils.
494
495         manywarnings: drop -Wunsuffixed-float-constants
496         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
497         '1.0D', which is the only way to silence this warning for 'double'.
498
499 2011-11-29  Jim Meyering  <meyering@redhat.com>
500
501         hash: mark compute_bucket_size with the pure attribute
502         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
503
504         quotearg, propername: correct pragma guard expression
505         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
506         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
507
508 2011-11-28  Jim Meyering  <meyering@redhat.com>
509
510         propername: do not mark proper_name with the const attribute
511         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
512         since it examines data pointed to by its parameter.
513         * lib/propername.c (proper_name): Instead, add a pragma to suppress
514         the suggestion from -Wsuggest-attribute=const.
515
516         propername: mark one more function as const
517         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
518
519 2011-11-27  Jim Meyering  <meyering@redhat.com>
520
521         mark functions with const and pure attributes
522
523         Mark functions per suggestions from gcc-4.6 when using these options:
524         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
525         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
526         Follow these guidelines: when possible, apply the attribute to
527         an extern declaration, not to its definition.  Apply it to the
528         definition only when the definition is static.
529         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
530         * lib/argv-iter.h (argv_iter_n_args): Likewise.
531         * lib/base64.h (isbase64): Likewise.
532         * lib/basename-lgpl.c (last_component, base_len): Likewise.
533         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
534         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
535         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
536         (c_tolower, c_toupper): Likewise.
537         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
538         * lib/chdir-long.c (find_non_slash): Likewise.
539         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
540         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
541         * lib/file-type.h (file_type): Likewise.
542         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
543         * lib/filevercmp.c (verrevcmp): Likewise.
544         * lib/freadahead.h (freadahead): Likewise.
545         * lib/fts.c (fts_maxarglen): Likewise.
546         * lib/hash-pjw.h (hash_pjw): Likewise.
547         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
548         * lib/hash.c (is_prime, next_prime): Likewise.
549         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
550         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
551         (hash_table_ok, hash_get_first, hash_string): Likewise.
552         (compute_bucket_size): Likewise.
553         * lib/i-ring.h (i_ring_empty): Likewise.
554         * lib/isnan.c (isnanl): Likewise.
555         * lib/math.h (isnanl, rpl_isnanl): Likewise.
556         * lib/memcasecmp.h (memcasecmp): Likewise.
557         * lib/memchr2.h (memchr2): Likewise.
558         * lib/memcmp2.h (memcmp2): Likewise.
559         * lib/parse-datetime.y (lookup_zone): Likewise.
560         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
561         [!WINDOWS_SOCKETS]: Likewise.
562         * lib/strnlen1.h (strnlen1): Likewise.
563         * lib/uniwidth.in.h (uc_width): Likewise.
564         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
565         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
566         (quoting_options_from_style): Add a comment.
567         * lib/propername.h (proper_name): Add a comment.
568
569 2011-11-27  Bruno Haible  <bruno@clisp.org>
570
571         Remove unused macros from !_LIBC code in glibc-borrowed files.
572         * lib/fnmatch.c (STRCOLL): Remove macro.
573         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
574         * lib/glob.c (__stat, __readdir64): Remove macros.
575         * lib/tempname.c (__open64, __xstat64): Remove macros.
576         Suggested by Paul Eggert.
577
578 2011-11-27  Bruno Haible  <bruno@clisp.org>
579
580         getcwd: Fix link error on MSVC 9.
581         * modules/getcwd (Depends-on): Add readdir, rewinddir.
582
583 2011-11-27  Bruno Haible  <bruno@clisp.org>
584
585         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
586         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
587         HAVE_OPENDIR is 0.
588         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
589         HAVE_CLOSEDIR is 0.
590         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
591         is 0.
592         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
593
594 2011-11-27  Bruno Haible  <bruno@clisp.org>
595
596         getcwd: Fix bug from 2011-08-17.
597         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
598         platforms that need it.
599         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
600         code of 4 to be a failure, not a success. This ensures that
601         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
602
603 2011-11-27  Bruno Haible  <bruno@clisp.org>
604
605         binary-io tests: Avoid test failure on mingw when libtool is used.
606         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
607         Don't verify the size of t-bin-out1.tmp here.
608         * tests/test-binary-io.sh: Verify it here.
609         Reported by Simon Josefsson.
610
611 2011-11-26  Bruno Haible  <bruno@clisp.org>
612
613         Fix conflict between two instantiations of module 'unistd'.
614         * gnulib-tool (func_emit_autoconf_snippet): Substitute
615         ${include_guard_prefix} also in the autoconf snippet.
616         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
617         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
618         GNULIB_UNISTD_H_GETOPT.
619         * modules/getopt-posix (configure.ac): Set the
620         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
621         * modules/getopt-gnu (configure.ac): Likewise.
622         * modules/unistd (Makefile.am): Change the substitution value of
623         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
624         Reported by Simon Josefsson.
625
626 2011-11-25  Bruno Haible  <bruno@clisp.org>
627
628         pagealign_alloc: Doc and comments.
629         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
630         module.
631         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
632
633 2011-11-25  Jim Meyering  <meyering@redhat.com>
634
635         test-update-copyright.sh: avoid false-positive failure
636         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
637         around false positive failure on Cygwin/Windows.  The latter was
638         matching erroneously-created files with names like
639         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
640
641 2011-11-25  Simon Josefsson  <simon@josefsson.org>
642
643         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
644         * m4/valgrind-tests.m4: Check that the parameters that will be
645         used works, not just a subset of them.  Reported by Bruno Haible
646         <bruno@clisp.org>.
647
648 2011-11-24  Jim Meyering  <meyering@redhat.com>
649
650         test-stdalign.c: comment out long double tests
651         * tests/test-stdalign.c: Don't try to reduce alignment of long double
652         variables.  That provokes errors like this from gcc-4.7.0 20111124:
653         error: '_Alignas' specifiers cannot reduce alignment of \
654         'static_longdouble_alignas'.
655
656 2011-11-22  Jim Meyering  <meyering@redhat.com>
657
658         init.sh: make "compare /dev/null FILE" output more readable
659         * tests/init.sh (compare_): Document the preferred order of arguments.
660         (emit_diff_u_header_): New function.
661         (compare_dev_null_): Emit a simulated diff, rather than just the
662         contents of the unexpected file.  Suggestion from Bruno Haible.
663
664 2011-11-21  Jim Meyering  <meyering@redhat.com>
665             Eric Blake  <eblake@redhat.com>
666
667         init.sh: work around OSF/1 5.1's mishandling of /dev/null
668         * tests/init.sh: Make our compare function slightly more portable.
669         Reported by Bruno Haible in
670         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
671
672 2011-11-21  Simon Josefsson  <simon@josefsson.org>
673
674         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
675         before using it, in code that ends up in config.h.
676
677 2011-11-20  Bruno Haible  <bruno@clisp.org>
678
679         getcwd: Work around getcwd bug on AIX 5..7.
680         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
681         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
682         Use a different value for gl_cv_func_getcwd_path_max. Move the
683         definition of HAVE_PARTLY_WORKING_GETCWD from here...
684         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
685         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
686         Define HAVE_MINIMALLY_WORKING_GETCWD.
687         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
688         where it is not even minimally working, that is, on AIX.
689         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
690         m4/getcwd-path-max.m4.
691         (main): Update exit code computation.
692         * doc/posix-functions/getcwd.texi: Mention list of platforms where
693         getcwd does not handle long file names.
694
695 2011-11-20  Bruno Haible  <bruno@clisp.org>
696
697         getcwd: Fix bug from 2009-09-10.
698         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
699         like "no".
700
701 2011-11-20  Simon Josefsson  <simon@josefsson.org>
702
703         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
704
705 2011-11-20  Bruno Haible  <bruno@clisp.org>
706
707         fma tests: Avoid shadowing local variables.
708         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
709         expected.
710
711 2011-11-20  Bruno Haible  <bruno@clisp.org>
712
713         copysignf tests: Fix.
714         * tests/test-copysignf.c: Fix signature check.
715
716 2011-11-20  Bruno Haible  <bruno@clisp.org>
717
718         fma: Remove unused code.
719         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
720         unused macros.
721
722 2011-11-20  Bruno Haible  <bruno@clisp.org>
723
724         sethostname: Fix doc about AIX.
725         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
726         sethostname; it has it.
727
728         sethostname: Mention more portability problems.
729         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
730         problem.
731         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
732
733 2011-11-19  Bruno Haible  <bruno@clisp.org>
734
735         Depend on module fcntl-h when AT_FDCWD is used.
736         * modules/utimens (Depends-on): Add fcntl-h.
737         * modules/areadlinkat (Depends-on): Likewise.
738         * modules/areadlinkat-with-size (Depends-on): Likewise.
739         * modules/faccessat (Depends-on): Likewise.
740         * modules/fchmodat (Depends-on): Likewise.
741         * modules/fchownat (Depends-on): Likewise.
742         * modules/getcwd (Depends-on): Likewise.
743         * modules/mkdirat (Depends-on): Likewise.
744         * modules/mkfifoat (Depends-on): Likewise.
745         * modules/readlinkat (Depends-on): Likewise.
746         * modules/symlinkat (Depends-on): Likewise.
747         * modules/dup2-tests (Depends-on): Likewise.
748         * modules/fdutimensat-tests (Depends-on): Likewise.
749         * modules/futimens-tests (Depends-on): Likewise.
750
751 2011-11-19  Bruno Haible  <bruno@clisp.org>
752
753         euidaccess: Update a comment.
754         * lib/euidaccess.c: Update comment about platforms with faccessat.
755
756 2011-11-19  Bruno Haible  <bruno@clisp.org>
757
758         openat: Fix file list.
759         * modules/openat (Files): Remove lib/at-func.c.
760
761 2011-11-19  Bruno Haible  <bruno@clisp.org>
762
763         fstatat: Simplify.
764         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
765         gnulib should define rpl_fstatat, there is a
766         "#define fstatat rpl_fstatat" in <sys/stat.h>.
767
768 2011-11-19  Bruno Haible  <bruno@clisp.org>
769
770         Ensure 'inline' can be used in tests/test-utimens-common.h.
771         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
772         * modules/futimens-tests (configure.ac): Likewise.
773         * modules/utimens-tests (configure.ac): Likewise.
774         * modules/utimensat-tests (configure.ac): Likewise.
775
776 2011-11-19  Simon Josefsson  <simon@josefsson.org>
777
778         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
779         not hash_insert0.
780         (hash_insert_if_absent): Doc fix.
781
782 2011-11-19  Simon Josefsson  <simon@josefsson.org>
783
784         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
785
786 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
787
788         test-getcwd: disambiguate exit status
789         * tests/test-getcwd.c (test_long_name): Return 0..7.
790         (main): Exit with an unambiguous exit status.  The old
791         code yielded a mysterious mixture of two failure codes.
792
793         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
794         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
795         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
796         rpl_fstatat or fstatat.  This should fix the other problem
797         reported by Kai Habel in
798         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
799         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
800         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
801         and I reproduced it on a Solaris 8 host we still have in production.
802
803 2011-11-18  Jim Meyering  <meyering@redhat.com>
804
805         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
806         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
807         Add a sentence to the comment.
808         (hash_insert0): New function that simply calls hash_insert_if_absent.
809         * lib/hash.h (hash_insert_if_absent): Declare it.
810         (hash_insert0): Add deprecation attribute.
811         (_GL_ATTRIBUTE_DEPRECATED): Define.
812         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
813         not hash_insert0.
814         * NEWS: Mention it, even though it's not really an incompatible change.
815
816 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
817
818         openat: avoid compilation failure due to lack of <errno.h> inclusion
819         * lib/openat.c: Include <errno.h>.
820
821 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
822
823         * modules/getcwd (Depends-on): Add fdopendir.
824         This fixes one of the two problems reported by Kai Habel in
825         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
826
827         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
828         stdalign problem reported by Ian Beckwith in
829         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
830         * modules/crypto/gc-arcfour (Depends-on):
831         Depend conditionally on crypto/arcfour.
832         * modules/crypto/gc-arctwo (Depends-on):
833         Depend conditionally on crypto/arctwo.
834         * modules/crypto/gc-des (Depends-on):
835         Depend conditionally on crypto/des.
836         * modules/crypto/gc-hmac-md5 (Depends-on):
837         Depend conditionally on crypto/hmac-md5.
838         * modules/crypto/gc-hmac-sha1 (Depends-on):
839         Depend conditionally on crypto/hmac-sha1.
840         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
841         * modules/crypto/gc-md4 (Depends-on):
842         Depend conditionally on crypto/md4.
843         * modules/crypto/gc-md5 (Depends-on):
844         Depend conditionally on crypto/md5.
845         * modules/crypto/gc-rijndael (Depends-on):
846         Depend conditionally on crypto/rijndael.
847         * modules/crypto/gc-sha1 (Depends-on):
848         Depend conditionally on crypto/sha1.
849         * modules/crypto/gc-arcfour:
850         * modules/crypto/gc-arctwo:
851         * modules/crypto/gc-des:
852         * modules/crypto/gc-hmac-md5:
853         * modules/crypto/gc-hmac-sha1:
854         * modules/crypto/gc-md2:
855         * modules/crypto/gc-md4:
856         * modules/crypto/gc-md5:
857         * modules/crypto/gc-rijndael:
858         * modules/crypto/gc-sha1:
859         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
860         now that the conditional dependencies do the work for us.
861
862 2011-11-17  Jim Meyering  <meyering@redhat.com>
863
864         tests: factor st_ctime-comparison out of two headers
865         * tests/test-utimens-common.h (ctime_compare): Define.
866         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
867         * tests/test-lutimens.h (test_lutimens): Likewise.
868         * tests/test-utimens.h (test_utimens): Likewise.
869
870         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
871         Invoke the test program via an init.sh-using wrapper.
872         * tests/test-getcwd.sh: New file.
873         * modules/getcwd-tests (Files): Add it.
874         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
875
876 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
877
878         gitlog-to-changelog: support multi-author commits.
879         The FSF cares about keeping track of all authors of patches to its
880         projects, but Git doesn't provide obvious support for multi-author
881         changesets. Consensus seems to be forming around the use of extra
882         Signed-off-by inspired lines in the log message formatted as
883         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
884         multi-author commits between version control systems.
885         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
886         log message and output in standard ChangeLog multi-author format.
887         Reported by Peter Rosin <peda@lysator.liu.se>
888
889 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
890             Bruno Haible  <bruno@clisp.org>
891
892         Fix some modules' file list.
893         * modules/fstatat (Files): Add m4/lstat.m4.
894         * modules/openat (Files): Likewise.
895         * modules/unlinkat (Files): Likewise.
896
897 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
898
899         maint.mk: fix tight-scope.mk generation in VPATH builds.
900         * top/maint.mk (tight-scope.mk): Make sure to prefix file
901         reference with $(srcdir) so that the file is found correctly even
902         when running `make syntax-check' in a VPATH build.
903
904 2011-11-13  Bruno Haible  <bruno@clisp.org>
905             Jim Meyering  <meyering@redhat.com>
906
907         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
908         * tests/init.sh (compare): Remove "No differences encountered" or
909         synonymous output from the 'diff' program.
910
911 2011-11-13  Bruno Haible  <bruno@clisp.org>
912
913         Makefile: Tweak indentation.
914         * Makefile: Use tab as first character in every line that contains rule
915         commands.
916
917 2011-11-13  Bruno Haible  <bruno@clisp.org>
918
919         Syntax check for copyright statements.
920         * check-copyright: New file.
921         * Makefile (sc_check_copyright): New rule.
922
923 2011-11-13  Simon Josefsson  <simon@josefsson.org>
924
925         * build-aux/git-version-gen: Add --prefix to configure the tag
926         match string.
927
928 2011-11-13  Simon Josefsson  <simon@josefsson.org>
929
930         * build-aux/git-version-gen: Add --help and --version.
931
932 2011-11-12  Jim Meyering  <meyering@redhat.com>
933
934         revamp the other test-exclude?.sh scripts to use init.sh, too
935         * tests/test-exclude1.sh: Use init.sh.
936         * tests/test-exclude2.sh: Likewise.
937         * tests/test-exclude3.sh: Likewise.
938         * tests/test-exclude4.sh: Likewise.
939         * tests/test-exclude5.sh: Likewise.
940         * tests/test-exclude6.sh: Likewise.
941         * tests/test-exclude7.sh: Likewise.
942         * tests/test-exclude8.sh: Likewise.
943         * modules/exclude-tests (Files): List init.sh.
944
945         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
946         These shell scripts ignored failure of the binary test-exclude,
947         so making the latter return 77 didn't cause them to be skipped.
948         * tests/test-exclude5.sh: Exit with test-exclude's error status
949         when that program fails.  Revamp to use init.sh.
950         * tests/test-exclude2.sh: Likewise.
951
952         test-exclude: fix a typo
953         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
954
955 2011-11-11  Bruno Haible  <bruno@clisp.org>
956
957         obstack: Fix compilation error on MSVC 9.
958         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
959
960 2011-11-11  Jim Meyering  <meyering@redhat.com>
961
962         test-exclude: skip tests rather than failing on deficient systems
963         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
964         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
965         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
966         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
967
968 2011-11-10  Bruno Haible  <bruno@clisp.org>
969
970         ptsname_r test: Avoid gcc warning on glibc systems.
971         * tests/test-ptsname_r.c (null_ptr): New function.
972         (test_errors): Use it.
973
974 2011-11-10  Bruno Haible  <bruno@clisp.org>
975
976         ptsname_r: Avoid compilation error on OSF/1 5.1.
977         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
978         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
979         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
980         function is not declared or incompatibly declared.
981         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
982         * modules/ptsname_r (Depends-on, configure.ac): Update.
983         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
984
985 2011-11-10  Bruno Haible  <bruno@clisp.org>
986
987         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
988         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
989         When cross-compiling, guess yes on all platforms except AIX.
990         Reported by Ludovic Courtès <ludo@gnu.org>.
991
992 2011-11-09  Bruno Haible  <bruno@clisp.org>
993
994         ptsname_r tests: Fix bugs.
995         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
996         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
997
998 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
999
1000         fstatat: work with cross-compilation
1001         Problem reported by Ludovic Courtès in
1002         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
1003         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
1004         "cross-compiling" and assume the bug is present.  Replace
1005         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
1006         an inverted sense, to be more conservative about our assumptions.
1007         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
1008
1009 2011-11-09  Bruno Haible  <bruno@clisp.org>
1010
1011         Improve MODULES.html output.
1012         * modules/mkfifoat (Description): Use the word "function".
1013         * modules/readlinkat (Description): Likewise.
1014         * modules/symlinkat (Description): Likewise.
1015
1016 2011-11-09  Eric Blake  <eblake@redhat.com>
1017
1018         ptsname_r-tests: new test module
1019         * modules/ptsname_r-tests: New module.
1020         * tests/test-ptsname_r.c: New file.
1021
1022         ptsname_r: new module
1023         * modules/ptsname_r: New module.
1024         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
1025         * lib/ptsname.c (__ptsname_r): Split...
1026         * lib/ptsname_r.c: ...into new file.
1027         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
1028         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
1029         * modules/stdlib (Makefile.am): Substitute witnesses.
1030         * lib/stdlib.in.h (ptsname_r): Declare it.
1031         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
1032         * MODULES.html.sh (Misc): Likewise.
1033         * modules/ptsname (Depends-on): Alter dependency.
1034         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
1035
1036 2011-11-09  Jim Meyering  <meyering@redhat.com>
1037
1038         announce-gen: be more concise when there's only one URL+tarball
1039         * build-aux/announce-gen (get_tool_versions): When you distribute
1040         only one type of tarball, combine the first two "Here are..."
1041         sections and make the key-checking grammar independent of
1042         how many tarballs there are.
1043
1044 2011-11-09  Eric Blake  <eblake@redhat.com>
1045
1046         openpty: provide a stub on mingw
1047         * lib/pty.in.h (includes): Provide forward declarations.
1048         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
1049
1050         raise: fix mingw handling of SIGPIPE
1051         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
1052
1053 2011-11-08  Bruno Haible  <bruno@clisp.org>
1054
1055         More conditional dependencies.
1056         * modules/faccessat (Depends-on): Add conditions.
1057         * modules/fchmodat (Depends-on): Likewise.
1058         * modules/fchownat (Depends-on): Likewise.
1059         * modules/fstatat (Depends-on): Likewise.
1060         * modules/mkfifoat (Depends-on): Likewise.
1061         * modules/readlinkat (Depends-on): Likewise.
1062         * modules/symlinkat (Depends-on): Likewise.
1063         * modules/unlinkat (Depends-on): Likewise.
1064         * modules/utimensat (Depends-on): Likewise.
1065         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
1066         * modules/linkat (Depends-on): Refine the conditions.
1067         * modules/renameat (Depends-on): Likewise.
1068
1069 2011-11-08  Bruno Haible  <bruno@clisp.org>
1070
1071         faccessat: Move AC_LIBOBJ invocation to module description.
1072         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
1073         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
1074         invocation from here...
1075         * modules/faccessat (configure.ac): ... to here. Invoke
1076         gl_PREREQ_FACCESSAT.
1077
1078 2011-11-08  Bruno Haible  <bruno@clisp.org>
1079
1080         faccessat: Simplify autoconf macro.
1081         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
1082         gl_FUNC_EUIDACCESS.
1083
1084 2011-11-08  Bruno Haible  <bruno@clisp.org>
1085
1086         renameat: Fix dependencies.
1087         * modules/renameat (Depends-on): Add stdbool.
1088
1089 2011-11-08  Bruno Haible  <bruno@clisp.org>
1090
1091         mkfifoat: Fix module description.
1092         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
1093         not gl_UNISTD_MODULE_INDICATOR.
1094
1095 2011-11-08  Bruno Haible  <bruno@clisp.org>
1096
1097         fstatat: Remove unused dependency.
1098         * modules/fstatat (Depends-on): Remove fstat.
1099
1100 2011-11-08  Simon Josefsson  <simon@josefsson.org>
1101
1102         GNUmakefile: behave when Makefile is missing.
1103         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
1104
1105 2011-11-08  Bruno Haible  <bruno@clisp.org>
1106
1107         openat: Conditionalize dependencies.
1108         * lib/openat.c: Reduce the scope of some #includes.
1109         * modules/openat (Depends-on): Add conditions.
1110
1111 2011-11-07  Jim Meyering  <meyering@redhat.com>
1112
1113         maint.mk: extract GPG key ID without using a temporary file
1114         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
1115         without using a temporary file.  Based on a suggestion from Werner Koch
1116         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
1117
1118 2011-11-07  Eric Blake  <eblake@redhat.com>
1119
1120         grantpt: fix typo
1121         * lib/stdlib.in.h (grantpt): Check correct function.
1122
1123         maint.mk: silence new syntax check
1124         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
1125
1126 2011-11-06  Bruno Haible  <bruno@clisp.org>
1127
1128         Doc about floating-point and math API.
1129         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
1130         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
1131
1132 2011-11-06  Bruno Haible  <bruno@clisp.org>
1133
1134         stdalign tests: Skip the test when compiled by Sun C.
1135         * tests/test-stdalign.c (main): Skip the test on Sun C.
1136
1137 2011-11-06  Bruno Haible  <bruno@clisp.org>
1138
1139         ansi-c++-opt: Complete the 2011-06-05 change.
1140         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
1141         does not support namespaces, set the variable to "no", not to ":".
1142
1143 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
1144
1145         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
1146
1147 2011-11-06  Bruno Haible  <bruno@clisp.org>
1148
1149         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
1150         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
1151         (minus_zerol) [HP-UX]: New macro.
1152         (unary_minus) [HP-UX]: New function.
1153         (copysignl) [HP-UX]: Use unary_minus function.
1154
1155 2011-11-06  Bruno Haible  <bruno@clisp.org>
1156
1157         ldexp, ldexpf, ldexpl: Enhance tests.
1158         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
1159         and tests/test-ldexpl.c.
1160         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
1161         LDEXP, MIN_EXP, MAX_EXP): New macros.
1162         Include test-ldexp.h.
1163         (main): Just call test_function.
1164         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
1165         infinity.h, nan.h.
1166         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
1167         MAX_EXP): New macros.
1168         Include test-ldexp.h.
1169         (x, y): Remove variables.
1170         (main): Just call test_function.
1171         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
1172         infinity.h, nan.h.
1173         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
1174         MAX_EXP): New macros.
1175         Include test-ldexp.h.
1176         (x, y): Remove variables.
1177         (main): Just call test_function.
1178         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
1179         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
1180         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
1181         (Depends-on): Add isnand-nolibm, signbit, float.
1182         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
1183         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
1184         (Depends-on): Add isnanf-nolibm, signbit, float.
1185
1186 2011-11-06  Bruno Haible  <bruno@clisp.org>
1187
1188         math tests: Cosmetics.
1189         * tests/test-math-c++.cc: Reorder declarations.
1190
1191 2011-11-05  Bruno Haible  <bruno@clisp.org>
1192
1193         fma*: Simplify test.
1194         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
1195         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
1196
1197         Tests for module 'fmal'.
1198         * modules/fmal-tests: New file.
1199         * tests/test-fmal1.c: New file.
1200         * tests/test-fmal2.c: New file.
1201
1202         New module 'fmal'.
1203         * lib/math.in.h (fmal): New declaration.
1204         * lib/fmal.c: New file.
1205         * m4/fmal.m4: New file.
1206         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
1207         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
1208         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
1209         REPLACE_FMAL.
1210         * modules/fmal: New file.
1211         * doc/posix-functions/fmal.texi: Mention the new module and the various
1212         bugs.
1213
1214         Tests for module 'fmaf'.
1215         * modules/fmaf-tests: New file.
1216         * tests/test-fmaf1.c: New file.
1217         * tests/test-fmaf2.c: New file.
1218
1219         New module 'fmaf'.
1220         * lib/math.in.h (fmaf): New declaration.
1221         * lib/fmaf.c: New file.
1222         * m4/fmaf.m4: New file.
1223         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
1224         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
1225         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
1226         REPLACE_FMAF.
1227         * modules/fmaf: New file.
1228         * doc/posix-functions/fmaf.texi: Mention the new module and the various
1229         bugs.
1230
1231         Tests for module 'fma'.
1232         * modules/fma-tests: New file.
1233         * tests/test-fma1.c: New file.
1234         * tests/test-fma1.h: New file.
1235         * tests/test-fma2.c: New file.
1236         * tests/test-fma2.h: New file.
1237
1238         New module 'fma'.
1239         * lib/math.in.h (fma): New declaration.
1240         * lib/fma.c: New file.
1241         * m4/fma.m4: New file.
1242         * m4/fegetround.m4: New file.
1243         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
1244         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
1245         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
1246         REPLACE_FMA.
1247         * modules/fma: New file.
1248         * doc/posix-functions/fma.texi: Mention the new module and the various
1249         bugs.
1250
1251         Extend gl_MATHFUNC.
1252         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
1253         Support 'void' as argument type.
1254         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
1255
1256 2011-11-05  Jim Meyering  <meyering@redhat.com>
1257
1258         maint.mk: also prohibit inclusion of dirent.h without use
1259         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
1260
1261 2011-11-05  Bruno Haible  <bruno@clisp.org>
1262
1263         ldexpl tests: Avoid test failure on MSVC 9.
1264         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
1265         value. Needed in order to enforce the conversion from a value greater
1266         than LDBL_MAX to Infinity.
1267
1268 2011-11-05  Bruno Haible  <bruno@clisp.org>
1269
1270         New modules 'at-internal', 'openat-h', split off from module 'openat'.
1271         * modules/at-internal: New file, extracted from modules/openat.
1272         * modules/openat-h: New file.
1273         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
1274         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
1275         * modules/openat (Description): Add reference to POSIX function.
1276         (Files): Remove lib/openat.h, lib/openat-proc.c.
1277         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
1278         intprops, unistd.
1279         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
1280         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
1281         gl_FCNTL_MODULE_INDICATOR.
1282         (Include): Remove unistd.h, openat.h.
1283         * modules/areadlinkat (Files): Add lib/at-func.c.
1284         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1285         openat-die, openat-h, save-cwd.
1286         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
1287         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1288         openat-die, openat-h, save-cwd, unistd.
1289         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
1290         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1291         openat-h, save-cwd. Remove fcntl-h, openat.
1292         * modules/fchmodat (Files): Remove lib/openat.h.
1293         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1294         openat, stdbool, unistd.
1295         * modules/fchownat (Files): Remove lib/openat.h.
1296         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1297         openat, stdbool, sys_stat.
1298         * modules/fdopendir (Files): Remove lib/openat-priv.h,
1299         lib/openat-proc.c.
1300         (Depends-on): Add at-internal.
1301         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
1302         * modules/fstatat (Files): Remove lib/openat.h.
1303         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
1304         stdbool, unistd.
1305         * modules/fts (Depends-on): Add openat-h.
1306         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
1307         openat.
1308         * modules/mkdirat (Files): Remove lib/openat.h.
1309         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1310         openat, stdbool, sys_stat.
1311         * modules/mkfifoat (Files): Add lib/at-func.c.
1312         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1313         openat-h, save-cwd. Remove fcntl-h, openat.
1314         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
1315         * modules/readlinkat (Files): Add lib/at-func.c.
1316         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1317         openat-h, save-cwd. Remove fcntl-h, openat.
1318         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
1319         openat.
1320         * modules/selinux-at (Files): Add lib/at-func.c.
1321         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1322         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
1323         * modules/symlinkat (Files): Add lib/at-func.c.
1324         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1325         openat-h, save-cwd. Remove fcntl-h, openat.
1326         * modules/unlinkat (Files): Remove lib/openat.h.
1327         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
1328         stdbool.
1329         * modules/utimensat (Files): Add lib/at-func.c.
1330         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
1331         openat-die, openat-h, save-cwd.
1332         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
1333         * modules/fdutimensat-tests (Depends-on): Add openat.
1334         * modules/fstatat-tests (Depends-on): Add openat-h.
1335         * modules/readlinkat-tests (Depends-on): Add openat.
1336         * modules/symlinkat-tests (Depends-on): Add openat.
1337
1338 2011-11-05  Bruno Haible  <bruno@clisp.org>
1339
1340         openat: Include <stdbool.h>.
1341         * lib/openat.c: Include <stdbool.h>.
1342
1343 2011-11-04  Bruno Haible  <bruno@clisp.org>
1344
1345         fchownat, renameat, unlinkat: Fix dependencies.
1346         * modules/fchownat (Depends-on): Add fstatat.
1347         * modules/renameat (Depends-on): Likewise.
1348         * modules/unlinkat (Depends-on): Likewise.
1349
1350 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
1351
1352         openat: remove direct dependency on dirent
1353         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
1354         and hasn't been needed ever since fdopendir was split into its own
1355         module on 2009-08-31.
1356         * modules/openat (Depends-on): Remove dirent.
1357
1358 2011-11-04  Bruno Haible  <bruno@clisp.org>
1359
1360         renameat: Optimize code size.
1361         * modules/renameat (configure.ac): Don't compile at-func2.c if
1362         REPLACE_RENAMEAT is 1.
1363
1364 2011-11-04  Bruno Haible  <bruno@clisp.org>
1365
1366         openat tests: Fix file list.
1367         * modules/openat-tests (Files): Add tests/test-open.h.
1368
1369 2011-11-04  Bruno Haible  <bruno@clisp.org>
1370
1371         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
1372         * modules/fchmodat (Depends-on): Add openat-die.
1373         * modules/fchownat (Depends-on): Likewise.
1374         * modules/linkat (Depends-on): Likewise.
1375         * modules/renameat (Depends-on): Likewise.
1376         * modules/openat (Depends-on): Add dirent.
1377
1378 2011-11-04  Jim Meyering  <meyering@redhat.com>
1379
1380         at-func*.c: fix comments
1381         * lib/at-func2.c: Correct/improve first-line comment.
1382         * lib/at-func.c: Correct grammar in first-line comment.
1383
1384 2011-11-04  Bruno Haible  <bruno@clisp.org>
1385
1386         New module 'mkdirat', split off from module 'openat'.
1387         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
1388         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
1389         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
1390         * modules/mkdirat: New file, extracted from modules/openat.
1391         * modules/openat (Files): Remove lib/mkdirat.c.
1392         (Depends-on): Remove mkdir.
1393         (configure.ac): Remove AC_LIBOBJ of mkdirat.
1394         (Include): Remove <sys/stat.h>.
1395         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
1396         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
1397         tests/test-mkdir.h.
1398         (Depends-on): Remove ignore-value.
1399         (Makefile.am): Remove rules for test-mkdirat.
1400         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
1401         of module 'openat'.
1402         * NEWS: Mention the change.
1403
1404 2011-11-04  Bruno Haible  <bruno@clisp.org>
1405
1406         closedir: Avoid warning on mingw.
1407         * lib/closedir.c: Include <unistd.h>.
1408
1409 2011-11-04  Bruno Haible  <bruno@clisp.org>
1410
1411         New module 'fstatat', split off from module 'openat'.
1412         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
1413         defined.
1414         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
1415         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
1416         gl_FUNC_FSTATAT.
1417         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
1418         * modules/fstatat: New file, extracted from modules/openat.
1419         * modules/openat (Files): Remove lib/fstatat.c.
1420         (Depends-on): Remove lstat.
1421         (configure.ac): Remove AC_LIBOBJ of fstatat.
1422         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
1423         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
1424         tests/test-lstat.h, tests/test-stat.h.
1425         (Depends-on): Remove getcwd-lgpl.
1426         (Makefile.am): Remove rules for test-fstatat.
1427         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
1428         of module 'openat'.
1429         * NEWS: Mention the change.
1430         * modules/getcwd (Depends-on): Add fstatat.
1431         * modules/linkat (Depends-on): Likewise.
1432         * modules/mkfifoat-tests (Depends-on): Likewise.
1433         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
1434
1435 2011-11-03  Bruno Haible  <bruno@clisp.org>
1436
1437         New module 'unlinkat', split off from module 'openat'.
1438         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
1439         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
1440         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
1441         * modules/unlinkat: New file, extracted from modules/openat. Correct
1442         the dependency conditions.
1443         * modules/openat (Files): Remove lib/unlinkat.c.
1444         (Depends-on): Remove rmdir, unlink.
1445         (configure.ac): Remove AC_LIBOBJ of unlinkat.
1446         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
1447         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
1448         tests/test-rmdir.h, tests/test-unlink.h.
1449         (Depends-on): Remove unlinkdir.
1450         (Makefile.am): Remove rules for test-unlinkat.
1451         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
1452         of module 'openat'.
1453         * NEWS: Mention the change.
1454         * modules/linkat-tests (Depends-on): Add unlinkat.
1455         * modules/mkfifoat-tests (Depends-on): Likewise.
1456         * modules/readlinkat-tests (Depends-on): Likewise.
1457
1458 2011-11-02  Bruno Haible  <bruno@clisp.org>
1459
1460         New module 'fchmodat', split off from module 'openat'.
1461         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
1462         defined.
1463         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
1464         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
1465         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
1466         * modules/fchmodat: New file, extracted from modules/openat.
1467         * modules/openat (Files): Remove lib/fchmodat.c.
1468         (configure.ac): Remove AC_LIBOBJ of fchmodat.
1469         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
1470         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
1471         (Makefile.am): Remove rules for test-fchmodat.
1472         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
1473         of module 'openat'.
1474         * NEWS: Mention the change.
1475
1476 2011-11-02  Jim Meyering  <meyering@redhat.com>
1477
1478         putenv: indent #definition of "environ" to placate cppi
1479         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
1480
1481         gitlog-to-changelog: provide a ChangeLog-repair mechanism
1482         Git logs are often treated as immutable, because editing them
1483         changes the SHA1 checksums of all descendants.  Thus, errors in
1484         git logs tend to stay there forever.  However, when we generate
1485         a ChangeLog file -- typically for distribution -- from that git log,
1486         we can actually make corrections in the generated file.  The key
1487         lies in recording in machine-readable/applicable form the desired
1488         corrections.  See --help for description and an example.
1489         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
1490         (usage): Describe it; alphabetize option descriptions.
1491         (main): Honor the new option, carefully.
1492
1493 2011-11-01  Jim Meyering  <meyering@redhat.com>
1494
1495         gitlog-to-changelog: avoid an infloop
1496         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
1497         that ends up being empty.
1498
1499 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1500
1501         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
1502         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
1503         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
1504         contains (possibly-quoted) backslashes.  This should avoid
1505         all-too-common shell bugs if COMPLICATED contains backslashes in
1506         the "wrong" places.  Reported by David Evans in
1507         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
1508         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
1509         because we want ASCII ranges.  Is there some reason we don't use
1510         the C locale everywhere in this script?
1511         (func_module, top level): Avoid unwanted pathname expansion when
1512         $repo_url_prefix or $repo_url_suffix_repl contain shell
1513         metacharacters like '?' and '*'.
1514
1515 2011-11-01  Bruno Haible  <bruno@clisp.org>
1516
1517         fchownat: Improve description.
1518         * modules/fchownat (Description): Add link to function.
1519
1520 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1521
1522         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
1523         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
1524         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
1525         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
1526
1527 2011-11-01  Bruno Haible  <bruno@clisp.org>
1528
1529         alignof: Avoid collision with stdalign module.
1530         * lib/alignof.h (alignof): Remove macro.
1531         * NEWS: Mention the change.
1532         Reported by Paul Eggert.
1533
1534 2011-11-01  Bruno Haible  <bruno@clisp.org>
1535
1536         New module 'fchownat', split off from module 'openat'.
1537         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
1538         defined.
1539         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
1540         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
1541         invoke gl_FUNC_FCHOWNAT.
1542         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
1543         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
1544         * modules/fchownat: New file, extracted from modules/openat.
1545         * modules/openat (Files): Remove lib/fchownat.c.
1546         (Depends-on): Remove lchown.
1547         (configure.ac): Remove AC_LIBOBJ of fchownat.
1548         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
1549         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
1550         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
1551         (Depends-on): Remove mgetgroups, usleep, stat-time.
1552         (configure.ac): Remove test for getegid.
1553         (Makefile.am): Remove rules for test-fchownat.
1554         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
1555         of module 'openat'.
1556         * NEWS: Mention the change.
1557
1558 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
1559
1560         stdalign: port better to MSVC and to Sun C 5.11
1561         This fixes some of the problems reported by Bruno Haible in
1562         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
1563         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
1564         shortcomings of MSVC and of Sun C 5.11.
1565         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
1566         around __declspec arg.
1567         * modules/stdalign-tests (Files): Add tests/macros.h.
1568         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
1569         Include macros.h, for ASSERT.
1570         (DECLARE_ALIGNED): Remove.
1571         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
1572         to catch bug), and to 1 if not (simplifies the rest of the code).
1573         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
1574         (CHECK_AUTO): Remove.
1575         (CHECK_ALIGNED): Check only the alignment of the static vars,
1576         since auto var alignment isn't supported by Sun C 5.11.
1577         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
1578         ASSERT failures are easier to diagnose.
1579
1580 2011-10-31  Bruno Haible  <bruno@clisp.org>
1581
1582         doc about some IRIX 5.3 problems.
1583         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
1584         on IRIX 5.3.
1585         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
1586         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
1587         5.3.
1588         * doc/posix-functions/grantpt.texi: Likewise.
1589         * doc/posix-functions/unlockpt.texi: Likewise.
1590         * doc/posix-functions/lgamma.texi: Likewise.
1591         * doc/posix-functions/nextafter.texi: Likewise.
1592         * doc/posix-functions/remainder.texi: Likewise.
1593         * doc/posix-functions/select.texi: Mention misplaced declaration on
1594         IRIX 5.3.
1595         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1596
1597 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
1598
1599         gitlog-to-changelog: fix git-log invocation.
1600         git-log mishandles date strings before 1970-01-01 UTC, and there is
1601         no use to specify --since=1970-01-01 by default anyway.
1602         * build-aux/gitlog-to-changelog: By default, when no --since option
1603         was given, do not specify explicit --since option to git-log.
1604
1605 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
1606
1607         gitlog-to-changelog: new option --append-dot.
1608         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
1609         first non-blank line of each commit message terminated with a dot.
1610
1611 2011-10-30  Bruno Haible  <bruno@clisp.org>
1612
1613         ffsl, ffsll: Avoid compilation error due to 'restrict'.
1614         * lib/ffsl.h: Include <config.h>.
1615         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
1616
1617 2011-10-30  Jim Meyering  <meyering@redhat.com>
1618
1619         GNUmakefile: reenable "make syntax-check" for most projects
1620         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
1621         build-aux variable", "syntax-check" would do nothing but succeed with
1622         the "No version control files detected..." diagnostic (unless you
1623         happened to override _build-aux via cfg.mk).
1624         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
1625         to precede inclusion of maint.mk.  Otherwise, these variables would
1626         be used undefined in any project that does not override the default.
1627
1628 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
1629
1630         gitlog-to-changelog: treat a message with only blank lines as empty.
1631         * build-aux/gitlog-to-changelog: Move the code that removes leading and
1632         trailing blank lines before the code that issues a warning about an
1633         empty commit message.
1634
1635 2011-10-30  Jim Meyering  <meyering@redhat.com>
1636
1637         test-parse-datetime.c: avoid new DST-related false positive test failure
1638         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
1639         based on the time/date we'll convert, not the current time.
1640         Otherwise, the moment we cross a DST boundary like today's in
1641         Europe, (CEST to CET), that offset ends up being one hour off.
1642
1643 2011-10-27  Bruno Haible  <bruno@clisp.org>
1644
1645         fstat: Tweak documentation.
1646         * modules/fstat (Description): More precise description.
1647
1648 2011-10-27  Bruno Haible  <bruno@clisp.org>
1649
1650         Update documentation regarding 'largefile' module.
1651         * doc/posix-functions/fstat.texi: Tweak wording.
1652         * doc/posix-functions/opendir.texi: Mention that the module fixes the
1653         problems with huge directories and/or small ino_t types.
1654         * doc/posix-functions/readdir.texi: Likewise.
1655         * doc/posix-functions/rewinddir.texi: Likewise.
1656
1657 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
1658
1659         maint.mk: don't maintain a second build-aux variable.
1660         * maint.mk (build_aux): Removed.  The maintainer-makefile module
1661         depends on GNUmakefile, which already maintains a cfg.mk
1662         overridable $(_build-aux) for projects with a non-standard
1663         build-aux directory location, although without the $(srcdir)
1664         prefix.  Use that variable consistently instead of introducing a
1665         second one.  Adjust all call sites.
1666
1667 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
1668
1669         Add stdalign module and use it in other modules.
1670         This is based on a previous proposal by Bruno Haible
1671         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
1672
1673         stdalign: new module
1674         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
1675         * modules/stdalign: New files.
1676         * MODULES.html.sh (c1x_core_properties): Add stdalign.
1677         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
1678
1679         stdalign-tests: new module
1680         * modules/stdalign-tests, tests/test-stdalign.c: New files.
1681
1682         argp: use stdalign
1683         * lib/argp-parse.c: Include <stdalign.h>.
1684         (alignof): Remove.
1685         * modules/argp (Depends-on): Add stdalign.
1686
1687         crypto libraries: use stdalign
1688         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
1689         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
1690         Do not include <stdlib.h> twice, in md4.c.
1691         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
1692         because we are accessing a pointer's bit-pattern, not a size.
1693         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
1694         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
1695         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
1696         * modules/crypto/sha512: Likewise.
1697
1698         sys_socket: use stdalign, not alignof
1699         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
1700         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
1701
1702 2011-10-27  Bruno Haible  <bruno@clisp.org>
1703
1704         raise test: Avoid a test failure on Linux/MIPS.
1705         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
1706         because 99 is a valid signal on Linux/MIPS.
1707
1708 2011-10-27  Bruno Haible  <bruno@clisp.org>
1709
1710         nonblocking tests: Fix test failure on Linux/MIPS.
1711         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
1712         Set to 270000.
1713
1714 2011-10-27  Bruno Haible  <bruno@clisp.org>
1715
1716         utimensat: Work around problem on Linux/hppa.
1717         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
1718         values.
1719         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
1720
1721 2011-10-25  Jim Meyering  <meyering@redhat.com>
1722
1723         maint.mk: fix a bug in sc_prohibit_stddef_without_use
1724         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
1725         after symbols like NULL, size_t, etc.
1726         Reported by Alfred M. Szmidt.
1727
1728         maint.mk: exempt ENODATA from a syntax-check rule
1729         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
1730         from the sc_prohibit_always-defined_macros syntax-check rule.
1731         Add a comment.  See this for more details:
1732         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
1733
1734 2011-10-23  Jim Meyering  <meyering@redhat.com>
1735
1736         fts: close parent dir FD before returning from post-traversal fts_read
1737         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
1738         unlink A, even though an FD open on A remained.  This is suboptimal
1739         (holding a file descriptor open longer than needed), but otherwise not
1740         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
1741         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
1742         that represents a real problem: it causes the removal of A to fail
1743         with e.g., "rm: cannot remove `A': Device or resource busy"
1744
1745         fts visits each directory twice and keeps a cache (fts_fd_ring) of
1746         directory file descriptors.  After completing the final, FTS_DP,
1747         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
1748         cache, but then proceeded to add a new FD to it via the subsequent
1749         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
1750         final file descriptor would be closed only via fts_close's call to
1751         fd_ring_clear.  Now, it is usually closed earlier, via the final
1752         FTS_DP-returning fts_read call.
1753         * lib/fts.c (restore_initial_cwd): New function, converted from
1754         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
1755         Update callers.
1756         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
1757         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
1758
1759 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
1760             Bruno Haible  <bruno@clisp.org>
1761             Jim Meyering  <jim@meyering.net>
1762
1763         readme-release: improve safety of release prep instructions.
1764         * README-release: Don't git pull all branches when only master
1765         is needed for the release process.
1766         Run make maintainer-clean before changing trees and merging.
1767         Don't try to run ./configure right after git pull in case files
1768         that influence the bootstrap process have changed, move the
1769         ./configure step to after running ./bootstrap.
1770         Don't bootstrap "one last time"... it's the first time!
1771
1772 2011-10-22  Bruno Haible  <bruno@clisp.org>
1773
1774         errno, strerror-override: Support for MSVC 10.
1775         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
1776         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
1777         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
1778         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
1779         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
1780         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
1781         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
1782         Assign values compatible with MSVC 10.
1783         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
1784         New macros.
1785         (GNULIB_defined_EWINSOCK): New macro.
1786         * lib/strerror-override.c (strerror_override): Update accordingly.
1787         * lib/strerror-override.h: Likewise.
1788         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
1789         longer equal to the corresponding errno value.
1790         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1791
1792 2011-10-22  Bruno Haible  <bruno@clisp.org>
1793
1794         perror: Recognize when test program crashes.
1795         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
1796         strerror, set gl_cv_func_perror_works to no.
1797         Reported by Daniel Richard G. <skunk@iskunk.org>.
1798
1799         perror: Fix indentation.
1800         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
1801
1802 2011-10-22  Bruno Haible  <bruno@clisp.org>
1803
1804         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
1805         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
1806         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
1807         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
1808         functions, not as a macro.
1809         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
1810         macros.
1811         (isfinite, isinf, isnan, signbit): Check overloaded functions and
1812         absence of macro.
1813         Suggested by Eric Blake.
1814         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1815
1816 2011-10-21  Bruno Haible  <bruno@clisp.org>
1817
1818         relocatable-prog-wrapper: Don't leave object files behind.
1819         * build-aux/install-reloc: Re-synchronize list of .o files to be
1820         removed with list of compilation units.
1821
1822 2011-10-20  Bruno Haible  <bruno@clisp.org>
1823
1824         openpty, posix_openpt: Remove code duplication.
1825         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
1826         * lib/openpty.c: Include <stdlib.h>.
1827         (openpty): Use posix_openpt on all platforms except IRIX.
1828         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
1829
1830 2011-10-20  Bruno Haible  <bruno@clisp.org>
1831
1832         unlockpt: Detect invalid argument.
1833         * lib/unlockpt.c: Include <fcntl.h>.
1834         (unlockpt): Check whether fd is valid, using fcntl().
1835         * modules/unlockpt (Depends-on): Add fcntl-h.
1836
1837 2011-10-20  Bruno Haible  <bruno@clisp.org>
1838
1839         openpty: Avoid compilation error on AIX 6.1.
1840         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
1841
1842 2011-10-20  Bruno Haible  <bruno@clisp.org>
1843
1844         posix_openpt: Support for OpenBSD.
1845         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
1846         (posix_openpt) [OpenBSD]: New code.
1847         * lib/grantpt.c: Include <fcntl.h>.
1848         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
1849         * modules/grantpt (Depends-on): Add fcntl-h.
1850
1851 2011-10-20  Bruno Haible  <bruno@clisp.org>
1852
1853         posix_openpt test: Coding style.
1854         * tests/test-posix_openpt.c: Use GNU coding style.
1855
1856 2011-10-20  Bruno Haible  <bruno@clisp.org>
1857
1858         grantpt: Support --avoid=pt_chown.
1859         * modules/grantpt (Files): Add lib/pty-private.h.
1860
1861 2011-10-20  Bruno Haible  <bruno@clisp.org>
1862
1863         posix_openpt: Fix autoconf macro.
1864         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
1865         unneeded check for _getpty.
1866
1867 2011-10-20  Bruno Haible  <bruno@clisp.org>
1868
1869         openpty: Update comments.
1870         * lib/openpty.c: Add comments about Minix.
1871
1872 2011-10-19  Eric Blake  <eblake@redhat.com>
1873
1874         openpty: relax license
1875         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
1876
1877         pt_chown: use configmake to simplify build
1878         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
1879
1880         ptsname and others: relax license
1881         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
1882         * modules/unlockpt (License): Likewise.
1883         * modules/pt_chown (License): Likewise.
1884         * modules/ptsname (License): Likewise.
1885         * modules/ttyname_r (License): Likewise.
1886
1887 2011-10-19  Jim Meyering  <meyering@redhat.com>
1888
1889         posix_openpt: remove spurious #endif
1890         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
1891
1892 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
1893
1894         maint.mk: Respect $(build_aux) in web-manual rule.
1895         * top/maint.mk (web-manual): Find gen-announce script in user's
1896         $(build_aux) directory instead of hard-coding 'build-aux'.
1897
1898 2011-10-19  Bruno Haible  <bruno@clisp.org>
1899
1900         posix_openpt: Fix compilation error.
1901         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
1902         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
1903         Mention the openpty module as an alternative.
1904
1905 2011-10-19  Bruno Haible  <bruno@clisp.org>
1906
1907         Support for old NeXTstep 3.3 frexp().
1908         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
1909         execution time of the test to 5 seconds.
1910         Reported by Daniel Richard G. <skunk@iskunk.org>.
1911
1912 2011-10-19  Bruno Haible  <bruno@clisp.org>
1913
1914         Support for old NeXTstep 3.3 sed.
1915         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
1916         part, use /.../, not \|...|. Escape periods in the header file name.
1917         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
1918         Reported by Daniel Richard G. <skunk@iskunk.org>.
1919
1920 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1921
1922         Support for old NeXTstep 3.3 gcc.
1923         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
1924         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
1925         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
1926         * lib/spawn.in.h (_Restrict_arr_): Likewise.
1927         * lib/regex.h (_Restrict_arr_): Likewise.
1928         * lib/regex_internal.h (re_token_t): Likewise.
1929         * lib/regexec.c (check_node_accept_bytes): Likewise.
1930         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
1931
1932 2011-10-18  Eric Blake  <eblake@redhat.com>
1933
1934         posix_openpt: new module
1935         * modules/posix_openpt: New module.
1936         * m4/posix_openpt.m4: New file.
1937         * lib/posix_openpt.c: Likewise.
1938         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
1939         (gl_STDLIB_H_DEFAULTS): Set defaults.
1940         * modules/stdlib (Makefile.am): Substitute macros.
1941         * lib/stdlib.in.h (posix_openpt): Declare.
1942         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
1943         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
1944         * modules/posix_openpt-tests: New test module.
1945         * tests/test-posix_openpt.c: New test.
1946
1947 2011-10-15  Bruno Haible  <bruno@clisp.org>
1948
1949         xstrtoll: Fix compilation failure.
1950         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
1951         from lib/strtol.c.
1952         * doc/posix-headers/limits.texi: Mention missing numerical limits on
1953         some platforms.
1954         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1955
1956 2011-10-15  Bruno Haible  <bruno@clisp.org>
1957
1958         vasnprintf: Optimize bit search operation.
1959         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
1960         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
1961         gl_DOUBLE_EXPONENT_LOCATION.
1962         * modules/vasnprintf (Files): Add m4/exponentd.m4.
1963         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1964         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1965         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1966         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1967         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1968         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1969         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1970         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
1971
1972 2011-10-15  Bruno Haible  <bruno@clisp.org>
1973
1974         vasnprintf: Fix comments.
1975         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
1976
1977 2011-10-14  Bruno Haible  <bruno@clisp.org>
1978
1979         Tests for module 'integer_length_ll'.
1980         * modules/integer_length_ll-tests: New file.
1981         * tests/test-integer_length_ll.c: New file.
1982
1983         New module 'integer_length_ll'.
1984         * lib/integer_length_ll.c: New file.
1985         * modules/integer_length_ll: New file.
1986
1987 2011-10-14  Bruno Haible  <bruno@clisp.org>
1988
1989         Tests for module 'integer_length_l'.
1990         * modules/integer_length_l-tests: New file.
1991         * tests/test-integer_length_l.c: New file.
1992
1993         New module 'integer_length_l'.
1994         * lib/integer_length_l.c: New file.
1995         * modules/integer_length_l: New file.
1996
1997 2011-10-14  Bruno Haible  <bruno@clisp.org>
1998
1999         Tests for module 'integer_length'.
2000         * modules/integer_length-tests: New file.
2001         * tests/test-integer_length.c: New file.
2002
2003         New module 'integer_length'.
2004         * lib/integer_length.h: New file.
2005         * lib/integer_length.c: New file.
2006         * modules/integer_length: New file.
2007
2008 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2009
2010         popen: Fix dependency conditions.
2011         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
2012
2013 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2014
2015         perror: Fix autoconf test.
2016         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
2017         <stdlib.h> and <string.h>.
2018
2019 2011-10-14  Bruno Haible  <bruno@clisp.org>
2020
2021         ffsl: Optimize on 64-bit platforms.
2022         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
2023         unrolling.
2024
2025 2011-10-13  Bruno Haible  <bruno@clisp.org>
2026
2027         ffsl: Optimize on 32-bit platforms.
2028         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
2029         use ffs() without a loop.
2030
2031         ffsl, ffsll: Optimize for GCC.
2032         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
2033         * lib/ffsl.c (GCC_BUILTIN): New macro.
2034         * lib/ffsll.c (GCC_BUILTIN): Likewise.
2035
2036 2011-10-13  Bruno Haible  <bruno@clisp.org>
2037
2038         ffs, bcopy, memset: Support symbol renaming via config.h.
2039         * lib/ffs.c: Include <config.h>.
2040         * lib/bcopy.c: Likewise.
2041         * lib/memset.c: Likewise.
2042
2043 2011-10-10  Bruno Haible  <bruno@clisp.org>
2044
2045         atanl: Simplify for platforms where 'long double' == 'double'.
2046         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2047         alternative implementation.
2048         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2049         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2050         * modules/atanl (Depends-on): Add atan. Update conditions.
2051
2052 2011-10-10  Bruno Haible  <bruno@clisp.org>
2053
2054         acosl: Simplify for platforms where 'long double' == 'double'.
2055         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2056         alternative implementation.
2057         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2058         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2059         * modules/acosl (Depends-on): Add acos. Update conditions.
2060
2061 2011-10-10  Bruno Haible  <bruno@clisp.org>
2062
2063         asinl: Simplify for platforms where 'long double' == 'double'.
2064         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2065         alternative implementation.
2066         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2067         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2068         * modules/asinl (Depends-on): Add asin. Update conditions.
2069
2070 2011-10-10  Bruno Haible  <bruno@clisp.org>
2071
2072         tanl: Simplify for platforms where 'long double' == 'double'.
2073         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2074         implementation.
2075         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2076         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2077         * modules/tanl (Depends-on): Add tan. Update conditions.
2078         (configure.ac): Don't compile trigl.c if
2079         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2080
2081 2011-10-10  Bruno Haible  <bruno@clisp.org>
2082
2083         cosl: Simplify for platforms where 'long double' == 'double'.
2084         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2085         implementation.
2086         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2087         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2088         * modules/cosl (Depends-on): Add cos. Update conditions.
2089         (configure.ac): Don't compile sincosl.c and trigl.c if
2090         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2091
2092 2011-10-10  Bruno Haible  <bruno@clisp.org>
2093
2094         sinl: Simplify for platforms where 'long double' == 'double'.
2095         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2096         implementation.
2097         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2098         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2099         * modules/sinl (Depends-on): Add sin. Update conditions.
2100         (configure.ac): Don't compile sincosl.c and trigl.c if
2101         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2102
2103 2011-10-10  Bruno Haible  <bruno@clisp.org>
2104
2105         logl: Simplify for platforms where 'long double' == 'double'.
2106         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2107         implementation.
2108         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2109         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2110         * modules/logl (Depends-on): Add log. Update conditions.
2111
2112 2011-10-10  Bruno Haible  <bruno@clisp.org>
2113
2114         expl: Simplify for platforms where 'long double' == 'double'.
2115         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2116         implementation.
2117         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2118         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2119         * modules/expl (Depends-on): Add exp. Update conditions.
2120
2121 2011-10-10  Bruno Haible  <bruno@clisp.org>
2122
2123         sqrtl: Simplify for platforms where 'long double' == 'double'.
2124         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2125         alternative implementation.
2126         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2127         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2128         * modules/sqrtl (Depends-on): Update conditions.
2129
2130 2011-10-10  Bruno Haible  <bruno@clisp.org>
2131
2132         ldexpl: Simplify for platforms where 'long double' == 'double'.
2133         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2134         alternative implementation.
2135         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2136         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2137         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
2138
2139 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
2140
2141         ffsll: set correct witness
2142         * modules/ffsll (configure.ac): Fix typo.
2143
2144 2011-10-10  Bruno Haible  <bruno@clisp.org>
2145
2146         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
2147         * lib/printf-frexpl.c: Include <config.h>.
2148         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2149         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
2150         second time.
2151         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
2152         gl_LONG_DOUBLE_VS_DOUBLE.
2153         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
2154         conditions.
2155
2156 2011-10-10  Bruno Haible  <bruno@clisp.org>
2157
2158         frexpl: Simplify for platforms where 'long double' == 'double'.
2159         * lib/frexpl.c: Include <config.h>.
2160         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2161         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2162         time.
2163         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2164         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2165         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
2166         * modules/frexpl (Depends-on): Add frexp. Update conditions.
2167         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
2168         conditions.
2169
2170 2011-10-10  Jim Meyering  <meyering@redhat.com>
2171
2172         test-renameat: don't leave behind a temporary file
2173         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
2174           ERROR: files left in build directory after distclean:
2175           ./gltests/test-renameat.too
2176           make[1]: *** [distcleancheck] Error 1
2177         Reported by Tom G. Christensen.
2178
2179 2011-10-09  Bruno Haible  <bruno@clisp.org>
2180
2181         rint: Determine RINT_LIBM correctly on AIX 7.
2182         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
2183         directly, not only through a function pointer. Also accept an optional
2184         4th argument with extra code.
2185         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
2186         rintf() call by gcc when optimizing.
2187
2188         mathfunc.m4: Refactor.
2189         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
2190         m4 variable.
2191
2192 2011-10-09  Bruno Haible  <bruno@clisp.org>
2193
2194         rintl: Simplify for platforms where 'long double' == 'double'.
2195         * lib/rintl.c: Include <config.h>.
2196         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2197         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2198         time.
2199         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2200         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2201         * modules/rintl (Depends-on): Add rint. Update conditions.
2202
2203 2011-10-09  Bruno Haible  <bruno@clisp.org>
2204
2205         roundl: Simplify for platforms where 'long double' == 'double'.
2206         * lib/roundl.c: Include <config.h>.
2207         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2208         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2209         time.
2210         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2211         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2212         * modules/roundl (Depends-on): Add round. Update conditions.
2213
2214 2011-10-09  Bruno Haible  <bruno@clisp.org>
2215
2216         truncl: Simplify for platforms where 'long double' == 'double'.
2217         * lib/truncl.c: Include <config.h>.
2218         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2219         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2220         time.
2221         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2222         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2223         * modules/truncl (Depends-on): Add trunc. Update conditions.
2224
2225 2011-10-09  Bruno Haible  <bruno@clisp.org>
2226
2227         ceill: Simplify for platforms where 'long double' == 'double'.
2228         * lib/ceill.c: Include <config.h>.
2229         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2230         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2231         time.
2232         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2233         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2234         * modules/ceill (Depends-on): Add ceil. Update conditions.
2235
2236 2011-10-09  Bruno Haible  <bruno@clisp.org>
2237
2238         floorl: Simplify for platforms where 'long double' == 'double'.
2239         * lib/floorl.c: Include <config.h>.
2240         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2241         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2242         time.
2243         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2244         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2245         * modules/floorl (Depends-on): Add floor. Update conditions.
2246
2247 2011-10-09  Bruno Haible  <bruno@clisp.org>
2248
2249         rint: Fix ordering constraints.
2250         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
2251         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
2252         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
2253
2254 2011-10-09  Bruno Haible  <bruno@clisp.org>
2255
2256         copysignl: Simplify for platforms where 'long double' == 'double'.
2257         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2258         alternative.
2259         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2260         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2261         * modules/copysignl (Depends-on): Add copysign. Update conditions.
2262
2263 2011-10-09  Bruno Haible  <bruno@clisp.org>
2264
2265         Tests for module 'rintl'.
2266         * modules/rintl-tests: New file.
2267         * tests/test-rintl.c: New file.
2268
2269         New module 'rintl'.
2270         * lib/math.in.h (rintl): New declaration.
2271         * lib/rintl.c: New file.
2272         * m4/rintl.m4: New file.
2273         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
2274         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
2275         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
2276         * modules/rintl: New file.
2277         * tests/test-math-c++.cc: Check the declaration of rintl.
2278         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2279         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
2280         * doc/posix-functions/rintl.texi: Mention the new module.
2281
2282 2011-10-09  Bruno Haible  <bruno@clisp.org>
2283
2284         Tests for module 'rintf'.
2285         * modules/rintf-tests: New file.
2286         * tests/test-rintf.c: New file.
2287
2288         New module 'rintf'.
2289         * lib/math.in.h (rintf): New declaration.
2290         * lib/rintf.c: New file.
2291         * m4/rintf.m4: New file.
2292         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
2293         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
2294         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
2295         * modules/rintf: New file.
2296         * tests/test-math-c++.cc: Check the declaration of rintf.
2297         * doc/posix-functions/rintf.texi: Mention the new module.
2298
2299 2011-10-09  Bruno Haible  <bruno@clisp.org>
2300
2301         rint: Support for MSVC.
2302         * lib/math.in.h (rint): New declaration.
2303         * lib/rint.c: New file.
2304         * m4/rint.m4: New file.
2305         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
2306         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
2307         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
2308         * modules/rint (Description): Fix.
2309         (Files): Add lib/rint.c, m4/rint.m4.
2310         (Depends-on): Add math.
2311         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
2312         gl_MATH_MODULE_INDICATOR.
2313         * tests/test-math-c++.cc: Check the declaration of rint.
2314         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2315         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
2316         * doc/posix-functions/rint.texi: Mention the replacement provided by
2317         the module.
2318
2319         rint tests: More tests.
2320         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
2321         minus-zero.h, infinity.h, nan.h.
2322         (main): Skip the test if the current rounding mode is not standard. Add
2323         tests for negative numbers, minus zero, infinity, NaN.
2324         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
2325         tests/nan.h.
2326         (Depends-on): Add isnand-nolibm.
2327
2328 2011-10-09  Bruno Haible  <bruno@clisp.org>
2329
2330         Tests for module 'copysignl'.
2331         * modules/copysignl-tests: New file.
2332         * tests/test-copysignl.c: New file.
2333
2334         New module 'copysignl'.
2335         * lib/math.in.h (copysignl): New declaration.
2336         * lib/copysignl.c: New file.
2337         * m4/copysignl.m4: New file.
2338         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
2339         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
2340         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
2341         HAVE_COPYSIGNL.
2342         * modules/copysignl: New file.
2343         * tests/test-math-c++.cc: Check the declaration of copysignl.
2344         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2345         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
2346         * doc/posix-functions/copysignl.texi: Mention the new module.
2347
2348 2011-10-09  Bruno Haible  <bruno@clisp.org>
2349
2350         Tests for module 'copysignf'.
2351         * modules/copysignf-tests: New file.
2352         * tests/test-copysignf.c: New file.
2353
2354         New module 'copysignf'.
2355         * lib/math.in.h (copysignf): New declaration.
2356         * lib/copysignf.c: New file.
2357         * m4/copysignf.m4: New file.
2358         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
2359         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
2360         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
2361         HAVE_COPYSIGNF.
2362         * modules/copysignf: New file.
2363         * tests/test-math-c++.cc: Check the declaration of copysignf.
2364         * doc/posix-functions/copysignf.texi: Mention the new module.
2365
2366 2011-10-09  Bruno Haible  <bruno@clisp.org>
2367
2368         Ensure that HAVE_* variables are set to 1 before they are set to 0.
2369         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
2370         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
2371         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
2372         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
2373         gl_SIGNAL_H_DEFAULTS.
2374
2375 2011-10-09  Bruno Haible  <bruno@clisp.org>
2376
2377         poll: Make macro safer.
2378         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
2379         ac_cv_header_poll_h is not set.
2380
2381 2011-10-09  Bruno Haible  <bruno@clisp.org>
2382
2383         copysign: Provide replacement.
2384         * lib/math.in.h (copysign): New declaration.
2385         * lib/copysign.c: New file.
2386         * m4/copysign.m4: New file.
2387         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
2388         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
2389         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
2390         HAVE_COPYSIGN.
2391         * modules/copysign (Description): Clarify.
2392         (Files): Add lib/copysign.c, m4/copysign.m4.
2393         (Depends-on): Add math, signbit.
2394         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
2395         gl_MATH_MODULE_INDICATOR.
2396         * tests/test-math-c++.cc: Check the declaration of copysign.
2397         * doc/posix-functions/copysign.texi: Mention the effects of the module
2398         on Minix and MSVC.
2399
2400 2011-10-09  Bruno Haible  <bruno@clisp.org>
2401
2402         isinf: Ensure macro on AIX 5.1.
2403         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
2404         macro.
2405         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
2406
2407 2011-10-09  Bruno Haible  <bruno@clisp.org>
2408
2409         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
2410         * modules/snprintf-posix-tests (configure.ac): Require
2411         gl_LONG_DOUBLE_VS_DOUBLE.
2412         * modules/sprintf-posix-tests (configure.ac): Likewise.
2413         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
2414         * modules/vasprintf-posix-tests (configure.ac): Likewise.
2415         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
2416         * modules/vsprintf-posix-tests (configure.ac): Likewise.
2417         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
2418         tests on platforms where 'long double' is the same as 'double'.
2419         * tests/test-sprintf-posix.h (test_function): Likewise.
2420         * tests/test-vasnprintf-posix.c (test_function): Likewise.
2421         * tests/test-vasprintf-posix.c (test_function): Likewise.
2422
2423         *printf: Fix for platforms where 'long double' == 'double'.
2424         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
2425         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
2426         * modules/dprintf-posix (Files): Add m4/math_h.m4.
2427         * modules/fprintf-posix (Files): Likewise.
2428         * modules/obstack-printf-posix (Files): Likewise.
2429         * modules/snprintf-posix (Files): Likewise.
2430         * modules/sprintf-posix (Files): Likewise.
2431         * modules/vasnprintf (Files): Likewise.
2432         * modules/vasnprintf-posix (Files): Likewise.
2433         * modules/vasprintf-posix (Files): Likewise.
2434         * modules/vdprintf-posix (Files): Likewise.
2435         * modules/vfprintf-posix (Files): Likewise.
2436         * modules/vsnprintf-posix (Files): Likewise.
2437         * modules/vsprintf-posix (Files): Likewise.
2438         * modules/unistdio/u8-vasnprintf (Files): Likewise.
2439         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
2440         * modules/unistdio/u16-vasnprintf (Files): Likewise.
2441         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
2442         * modules/unistdio/u32-vasnprintf (Files): Likewise.
2443         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
2444         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
2445
2446         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
2447         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
2448         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2449         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
2450         'long double'.
2451         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
2452
2453         isinf: Fix for platforms where 'long double' == 'double'.
2454         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
2455         Don't blindly assume 80-bit 'long double'.
2456
2457         isfinite: Fix for platforms where 'long double' == 'double'.
2458         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
2459         Don't blindly assume 80-bit 'long double'.
2460
2461         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
2462         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
2463         * modules/isfinite-tests (configure.ac): Require
2464         gl_LONG_DOUBLE_VS_DOUBLE.
2465         * modules/isinf-tests (configure.ac): Likewise.
2466         * modules/isnan-tests (configure.ac): Likewise.
2467         * modules/isnanl-tests (configure.ac): Likewise.
2468         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
2469         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
2470         tests on platforms where 'long double' is the same as 'double'.
2471         * tests/test-isinf.c (test_isinfl): Likewise.
2472         * tests/test-isnan.c (test_long_double): Likewise.
2473         * tests/test-isnanl.h (main): Likewise.
2474
2475 2011-10-08  Bruno Haible  <bruno@clisp.org>
2476
2477         Tests for module 'tanhf'.
2478         * modules/tanhf-tests: New file.
2479         * tests/test-tanhf.c: New file.
2480
2481         New module 'tanhf'.
2482         * lib/math.in.h (tanhf): New declaration.
2483         * lib/tanhf.c: New file.
2484         * m4/tanhf.m4: New file.
2485         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
2486         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
2487         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
2488         * modules/tanhf: New file.
2489         * tests/test-math-c++.cc: Check the declaration of tanhf.
2490         * doc/posix-functions/tanhf.texi: Mention the new module.
2491
2492         tanh: Use a .m4 file.
2493         * m4/tanh.m4: New file.
2494         * modules/tanh (Files): Add it.
2495         (configure.ac): Just invoke gl_FUNC_TANH.
2496
2497 2011-10-08  Bruno Haible  <bruno@clisp.org>
2498
2499         Tests for module 'coshf'.
2500         * modules/coshf-tests: New file.
2501         * tests/test-coshf.c: New file.
2502
2503         New module 'coshf'.
2504         * lib/math.in.h (coshf): New declaration.
2505         * lib/coshf.c: New file.
2506         * m4/coshf.m4: New file.
2507         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
2508         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
2509         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
2510         * modules/coshf: New file.
2511         * tests/test-math-c++.cc: Check the declaration of coshf.
2512         * doc/posix-functions/coshf.texi: Mention the new module.
2513
2514         cosh: Use a .m4 file.
2515         * m4/cosh.m4: New file.
2516         * modules/cosh (Files): Add it.
2517         (configure.ac): Just invoke gl_FUNC_COSH.
2518
2519 2011-10-08  Bruno Haible  <bruno@clisp.org>
2520
2521         Tests for module 'sinhf'.
2522         * modules/sinhf-tests: New file.
2523         * tests/test-sinhf.c: New file.
2524
2525         New module 'sinhf'.
2526         * lib/math.in.h (sinhf): New declaration.
2527         * lib/sinhf.c: New file.
2528         * m4/sinhf.m4: New file.
2529         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
2530         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
2531         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
2532         * modules/sinhf: New file.
2533         * tests/test-math-c++.cc: Check the declaration of sinhf.
2534         * doc/posix-functions/sinhf.texi: Mention the new module.
2535
2536         sinh: Use a .m4 file.
2537         * m4/sinh.m4: New file.
2538         * modules/sinh (Files): Add it.
2539         (configure.ac): Just invoke gl_FUNC_SINH.
2540
2541 2011-10-08  Bruno Haible  <bruno@clisp.org>
2542
2543         Tests for module 'atan2f'.
2544         * modules/atan2f-tests: New file.
2545         * tests/test-atan2f.c: New file.
2546
2547         New module 'atan2f'.
2548         * lib/math.in.h (atan2f): New declaration.
2549         * lib/atan2f.c: New file.
2550         * m4/atan2f.m4: New file.
2551         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
2552         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
2553         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
2554         * modules/atan2f: New file.
2555         * tests/test-math-c++.cc: Check the declaration of atan2f.
2556         * doc/posix-functions/atan2f.texi: Mention the new module.
2557
2558         atan2: Use a .m4 file.
2559         * m4/atan2.m4: New file.
2560         * modules/atan2 (Files): Add it.
2561         (configure.ac): Just invoke gl_FUNC_ATAN2.
2562
2563 2011-10-08  Bruno Haible  <bruno@clisp.org>
2564
2565         Tests for module 'atanf'.
2566         * modules/atanf-tests: New file.
2567         * tests/test-atanf.c: New file.
2568
2569         New module 'atanf'.
2570         * lib/math.in.h (atanf): New declaration.
2571         * lib/atanf.c: New file.
2572         * m4/atanf.m4: New file.
2573         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
2574         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
2575         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
2576         * modules/atanf: New file.
2577         * tests/test-math-c++.cc: Check the declaration of atanf.
2578         * doc/posix-functions/atanf.texi: Mention the new module.
2579
2580         atan: Use a .m4 file.
2581         * m4/atan.m4: New file.
2582         * modules/atan (Files): Add it.
2583         (configure.ac): Just invoke gl_FUNC_ATAN.
2584
2585 2011-10-08  Bruno Haible  <bruno@clisp.org>
2586
2587         Tests for module 'acosf'.
2588         * modules/acosf-tests: New file.
2589         * tests/test-acosf.c: New file.
2590
2591         New module 'acosf'.
2592         * lib/math.in.h (acosf): New declaration.
2593         * lib/acosf.c: New file.
2594         * m4/acosf.m4: New file.
2595         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
2596         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
2597         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
2598         * modules/acosf: New file.
2599         * tests/test-math-c++.cc: Check the declaration of acosf.
2600         * doc/posix-functions/acosf.texi: Mention the new module.
2601
2602         acos: Use a .m4 file.
2603         * m4/acos.m4: New file.
2604         * modules/acos (Files): Add it.
2605         (configure.ac): Just invoke gl_FUNC_ACOS.
2606
2607 2011-10-08  Bruno Haible  <bruno@clisp.org>
2608
2609         Tests for module 'asinf'.
2610         * modules/asinf-tests: New file.
2611         * tests/test-asinf.c: New file.
2612
2613         New module 'asinf'.
2614         * lib/math.in.h (asinf): New declaration.
2615         * lib/asinf.c: New file.
2616         * m4/asinf.m4: New file.
2617         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
2618         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
2619         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
2620         * modules/asinf: New file.
2621         * tests/test-math-c++.cc: Check the declaration of asinf.
2622         * doc/posix-functions/asinf.texi: Mention the new module.
2623
2624         asin: Use a .m4 file.
2625         * m4/asin.m4: New file.
2626         * modules/asin (Files): Add it.
2627         (configure.ac): Just invoke gl_FUNC_ASIN.
2628
2629 2011-10-08  Bruno Haible  <bruno@clisp.org>
2630
2631         Tests for module 'tanf'.
2632         * modules/tanf-tests: New file.
2633         * tests/test-tanf.c: New file.
2634
2635         New module 'tanf'.
2636         * lib/math.in.h (tanf): New declaration.
2637         * lib/tanf.c: New file.
2638         * m4/tanf.m4: New file.
2639         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
2640         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
2641         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
2642         * modules/tanf: New file.
2643         * tests/test-math-c++.cc: Check the declaration of tanf.
2644         * doc/posix-functions/tanf.texi: Mention the new module.
2645
2646         tan: Use a .m4 file.
2647         * m4/tan.m4: New file.
2648         * modules/tan (Files): Add it.
2649         (configure.ac): Just invoke gl_FUNC_TAN.
2650
2651 2011-10-08  Bruno Haible  <bruno@clisp.org>
2652
2653         Tests for module 'cosf'.
2654         * modules/cosf-tests: New file.
2655         * tests/test-cosf.c: New file.
2656
2657         New module 'cosf'.
2658         * lib/math.in.h (cosf): New declaration.
2659         * lib/cosf.c: New file.
2660         * m4/cosf.m4: New file.
2661         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
2662         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
2663         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
2664         * modules/cosf: New file.
2665         * tests/test-math-c++.cc: Check the declaration of cosf.
2666         * doc/posix-functions/cosf.texi: Mention the new module.
2667
2668         cos: Use a .m4 file.
2669         * m4/cos.m4: New file.
2670         * modules/cos (Files): Add it.
2671         (configure.ac): Just invoke gl_FUNC_COS.
2672
2673 2011-10-08  Bruno Haible  <bruno@clisp.org>
2674
2675         Tests for module 'sinf'.
2676         * modules/sinf-tests: New file.
2677         * tests/test-sinf.c: New file.
2678
2679         New module 'sinf'.
2680         * lib/math.in.h (sinf): New declaration.
2681         * lib/sinf.c: New file.
2682         * m4/sinf.m4: New file.
2683         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
2684         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
2685         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
2686         * modules/sinf: New file.
2687         * tests/test-math-c++.cc: Check the declaration of sinf.
2688         * doc/posix-functions/sinf.texi: Mention the new module.
2689
2690         sin: Use a .m4 file.
2691         * m4/sin.m4: New file.
2692         * modules/sin (Files): Add it.
2693         (configure.ac): Just invoke gl_FUNC_SIN.
2694
2695 2011-10-08  Bruno Haible  <bruno@clisp.org>
2696
2697         Tests for module 'powf'.
2698         * modules/powf-tests: New file.
2699         * tests/test-powf.c: New file.
2700
2701         New module 'powf'.
2702         * lib/math.in.h (powf): New declaration.
2703         * lib/powf.c: New file.
2704         * m4/powf.m4: New file.
2705         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
2706         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
2707         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
2708         * modules/powf: New file.
2709         * tests/test-math-c++.cc: Check the declaration of powf.
2710         * doc/posix-functions/powf.texi: Mention the new module.
2711
2712         pow: Use a .m4 file.
2713         * m4/pow.m4: New file.
2714         * modules/pow (Files): Add it.
2715         (configure.ac): Just invoke gl_FUNC_POW.
2716
2717 2011-10-08  Bruno Haible  <bruno@clisp.org>
2718
2719         Tests for module 'log10f'.
2720         * modules/log10f-tests: New file.
2721         * tests/test-log10f.c: New file.
2722
2723         New module 'log10f'.
2724         * lib/math.in.h (log10f): New declaration.
2725         * lib/log10f.c: New file.
2726         * m4/log10f.m4: New file.
2727         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
2728         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
2729         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
2730         * modules/log10f: New file.
2731         * tests/test-math-c++.cc: Check the declaration of log10f.
2732         * doc/posix-functions/log10f.texi: Mention the new module.
2733
2734         log10: Use a .m4 file.
2735         * m4/log10.m4: New file.
2736         * modules/log10 (Files): Add it.
2737         (configure.ac): Just invoke gl_FUNC_LOG10.
2738
2739 2011-10-08  Bruno Haible  <bruno@clisp.org>
2740
2741         Tests for module 'logf'.
2742         * modules/logf-tests: New file.
2743         * tests/test-logf.c: New file.
2744
2745         New module 'logf'.
2746         * lib/math.in.h (logf): New declaration.
2747         * lib/logf.c: New file.
2748         * m4/logf.m4: New file.
2749         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
2750         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
2751         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
2752         * modules/logf: New file.
2753         * tests/test-math-c++.cc: Check the declaration of logf.
2754         * doc/posix-functions/logf.texi: Mention the new module.
2755
2756         log: Use a .m4 file.
2757         * m4/log.m4: New file.
2758         * modules/log (Files): Add it.
2759         (configure.ac): Just invoke gl_FUNC_LOG.
2760
2761 2011-10-08  Bruno Haible  <bruno@clisp.org>
2762
2763         Tests for module 'expf'.
2764         * modules/expf-tests: New file.
2765         * tests/test-expf.c: New file.
2766
2767         New module 'expf'.
2768         * lib/math.in.h (expf): New declaration.
2769         * lib/expf.c: New file.
2770         * m4/expf.m4: New file.
2771         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
2772         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
2773         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
2774         * modules/expf: New file.
2775         * tests/test-math-c++.cc: Check the declaration of expf.
2776         * doc/posix-functions/expf.texi: Mention the new module.
2777
2778         exp: Use a .m4 file.
2779         * m4/exp.m4: New file.
2780         * modules/exp (Files): Add it.
2781         (configure.ac): Just invoke gl_FUNC_EXP.
2782
2783 2011-10-08  Bruno Haible  <bruno@clisp.org>
2784
2785         Tests for module 'sqrtf'.
2786         * modules/sqrtf-tests: New file.
2787         * tests/test-sqrtf.c: New file.
2788
2789         New module 'sqrtf'.
2790         * lib/math.in.h (sqrtf): New declaration.
2791         * lib/sqrtf.c: New file.
2792         * m4/sqrtf.m4: New file.
2793         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
2794         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
2795         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
2796         * modules/sqrtf: New file.
2797         * tests/test-math-c++.cc: Check the declaration of sqrtf.
2798         * doc/posix-functions/sqrtf.texi: Mention the new module.
2799
2800 2011-10-08  Bruno Haible  <bruno@clisp.org>
2801
2802         Tests: Avoid link failures w.r.t. libintl.
2803         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
2804         $(LIBINTL).
2805         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
2806         $(LIBINTL).
2807         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
2808         against $(LIBINTL).
2809         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
2810         $(LIBINTL).
2811         * modules/openat-tests (Makefile.am): Link test-fchmodat against
2812         $(LIBINTL).
2813         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
2814
2815 2011-10-08  Bruno Haible  <bruno@clisp.org>
2816
2817         pow tests: Defeat compiler optimizations.
2818         * tests/test-pow.c (main): Assign arguments to x and y before use.
2819
2820 2011-10-08  Bruno Haible  <bruno@clisp.org>
2821
2822         gnulib-tool: Improve last commit.
2823         * gnulib-tool (func_modules_transitive_closure): Simplify code.
2824         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
2825         ignore dependencies that are not among the modules list.
2826
2827 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
2828
2829         gnulib-tool: don't follow dependencies to avoided modules
2830         This fixes a bug that is related to the previous one.
2831         * gnulib-tool (func_modules_transitive_closure)
2832         (func_emit_autoconf_snippets):
2833         Check whether a dependency is acceptable before using it.
2834         (--extract-dependencies): Report an error if --avoid is also used,
2835         since this combination of options is not yet supported.
2836
2837         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
2838         Problem reported by Peter Dyballa in
2839         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
2840         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
2841         when echoing "$condition".
2842
2843 2011-10-07  Bruno Haible  <bruno@clisp.org>
2844
2845         Fix documentation about math functions on MacOS X.
2846         * doc/posix-functions/exp2.texi: Don't say the function is missing on
2847         MacOS X 10.5.
2848         * doc/posix-functions/fdim.texi: Likewise.
2849         * doc/posix-functions/feclearexcept.texi: Likewise.
2850         * doc/posix-functions/fegetenv.texi: Likewise.
2851         * doc/posix-functions/fegetround.texi: Likewise.
2852         * doc/posix-functions/feholdexcept.texi: Likewise.
2853         * doc/posix-functions/feraiseexcept.texi: Likewise.
2854         * doc/posix-functions/fesetenv.texi: Likewise.
2855         * doc/posix-functions/fesetround.texi: Likewise.
2856         * doc/posix-functions/fetestexcept.texi: Likewise.
2857         * doc/posix-functions/feupdateenv.texi: Likewise.
2858         * doc/posix-functions/fmax.texi: Likewise.
2859         * doc/posix-functions/fmin.texi: Likewise.
2860         * doc/posix-functions/log2.texi: Likewise.
2861         * doc/posix-functions/modff.texi: Likewise.
2862         * doc/posix-functions/nan.texi: Likewise.
2863         * doc/posix-functions/nanf.texi: Likewise.
2864         * doc/posix-functions/nextafterf.texi: Likewise.
2865         * doc/posix-functions/remquo.texi: Likewise.
2866
2867 2011-10-07  Bruno Haible  <bruno@clisp.org>
2868
2869         modff: Drop assumption about library that defines modff.
2870         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
2871         AC_CHECK_FUNCS.
2872         * modules/modff (Files): Add m4/mathfunc.m4.
2873
2874 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
2875
2876         raise tests: Avoid a GCC warning.
2877         * tests/test-raise.c (handler): Use _Noreturn.
2878
2879 2011-10-07  Bruno Haible  <bruno@clisp.org>
2880
2881         Tests for module 'ldexpf'.
2882         * modules/ldexpf-tests: New file.
2883         * tests/test-ldexpf.c: New file.
2884
2885         New module 'ldexpf'.
2886         * lib/math.in.h (ldexpf): New declaration.
2887         * lib/ldexpf.c: New file.
2888         * m4/ldexpf.m4: New file.
2889         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
2890         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
2891         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
2892         * modules/ldexpf: New file.
2893         * tests/test-math-c++.cc: Check the declaration of ldexpf.
2894         * doc/posix-functions/ldexpf.texi: Mention the new module.
2895
2896 2011-10-06  Bruno Haible  <bruno@clisp.org>
2897
2898         frexpf: Work around problems on IRIX and mingw.
2899         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
2900         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
2901         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
2902         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
2903         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
2904         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
2905         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
2906
2907 2011-10-06  Bruno Haible  <bruno@clisp.org>
2908
2909         fabsf: Drop assumption about library that defines fabsf.
2910         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
2911         AC_CHECK_FUNCS.
2912         * modules/fabsf (Files): Add m4/mathfunc.m4.
2913
2914 2011-10-06  Bruno Haible  <bruno@clisp.org>
2915
2916         frexpf: Drop assumption about library that defines frexpf.
2917         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
2918         'int *', 'float *', 'long double *', 'float', 'long double'.
2919         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
2920         AC_CHECK_FUNCS.
2921         * modules/frexpf (Files): Add m4/mathfunc.m4.
2922
2923         Tests for module 'frexpf'.
2924         * modules/frexpf-tests: New file.
2925         * tests/test-frexpf.c: New file.
2926
2927         New module 'frexpf'.
2928         * lib/math.in.h (frexpf): New declaration.
2929         * lib/frexpf.c: New file.
2930         * m4/frexpf.m4: New file.
2931         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
2932         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
2933         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
2934         * modules/frexpf: New file.
2935         * tests/test-math-c++.cc: Check the declaration of frexpf.
2936         * doc/posix-functions/frexpf.texi: Mention the new module.
2937
2938 2011-10-06  Bruno Haible  <bruno@clisp.org>
2939
2940         math: Sort function declarations of math.in.h.
2941         * lib/math.in.h (frexp, logb): Move declarations.
2942
2943 2011-10-05  Bruno Haible  <bruno@clisp.org>
2944
2945         Tests for module 'modff'.
2946         * modules/modff-tests: New file.
2947         * tests/test-modff.c: New file.
2948
2949         New module 'modff'.
2950         * lib/math.in.h (modff): New declaration.
2951         * lib/modff.c: New file.
2952         * m4/modff.m4: New file.
2953         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
2954         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
2955         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
2956         * modules/modff: New file.
2957         * tests/test-math-c++.cc: Check the declaration of modff.
2958         * doc/posix-functions/modff.texi: Mention the new module.
2959
2960         modf tests: Make test sharper.
2961         * tests/test-modf.c (main): Strengthen upper bound.
2962
2963         modf: Use a .m4 file.
2964         * m4/modf.m4: New file.
2965         * modules/modf (Files): Add it.
2966         (configure.ac): Just invoke gl_FUNC_MODF.
2967
2968 2011-10-05  Bruno Haible  <bruno@clisp.org>
2969
2970         Tests for module 'fmodf'.
2971         * modules/fmodf-tests: New file.
2972         * tests/test-fmodf.c: New file.
2973
2974         New module 'fmodf'.
2975         * lib/math.in.h (fmodf): New declaration.
2976         * lib/fmodf.c: New file.
2977         * m4/fmodf.m4: New file.
2978         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
2979         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
2980         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
2981         * modules/fmodf: New file.
2982         * tests/test-math-c++.cc: Check the declaration of fmodf.
2983         * doc/posix-functions/fmodf.texi: Mention the new module.
2984
2985         fmod: Use a .m4 file.
2986         * m4/fmod.m4: New file.
2987         * modules/fmod (Files): Add it.
2988         (configure.ac): Just invoke gl_FUNC_FMOD.
2989
2990 2011-10-05  Bruno Haible  <bruno@clisp.org>
2991
2992         Tests for module 'fabsf'.
2993         * modules/fabsf-tests: New file.
2994         * tests/test-fabsf.c: New file.
2995
2996         New module 'fabsf'.
2997         * lib/math.in.h (fabsf): New declaration.
2998         * lib/fabsf.c: New file.
2999         * m4/fabsf.m4: New file.
3000         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
3001         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
3002         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
3003         * modules/fabsf: New file.
3004         * tests/test-math-c++.cc: Check the declaration of fabsf.
3005         * doc/posix-functions/fabsf.texi: Mention the new module.
3006
3007         fabs: Use a .m4 file.
3008         * m4/fabs.m4: New file.
3009         * modules/fabs (Files): Add it.
3010         (configure.ac): Just invoke gl_FUNC_FABS.
3011
3012 2011-10-05  Jim Meyering  <meyering@redhat.com>
3013
3014         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
3015         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
3016         ls -lL regression introduced in coreutils-8.12, it does so at the
3017         cost of an additional stat call in the common case.  Besides, now
3018         that the kernel change that prompted commit 95f7c57f has been reverted
3019         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
3020         we have no use for commit 95f7c57f, "file-has-acl: use
3021         acl_extended_file_nofollow if available".
3022
3023 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
3024
3025         file-has-acl: revert unintended change in behavior of ls -L
3026         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
3027         derived from...
3028         (file_has_acl): ...code here.  Call it.
3029         This problem was introduced with 2011-07-22 commit 95f7c57f,
3030         "file-has-acl: use acl_extended_file_nofollow if available".
3031         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
3032
3033 2011-10-03  Bruno Haible  <bruno@clisp.org>
3034
3035         poll: Avoid link errors on MSVC.
3036         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
3037         * modules/poll (Depends-on): Add sockets.
3038         (Link): New section.
3039         * NEWS: Mention the change.
3040         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
3041         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
3042         $(LIB_POLL) instead of $(LIBSOCKET).
3043
3044 2011-10-03  Bruno Haible  <bruno@clisp.org>
3045
3046         sys_select tests: Fix link error on MSVC 9.
3047         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
3048         with $(LIB_SELECT) instead of $(LIBSOCKET).
3049
3050 2011-10-03  Bruno Haible  <bruno@clisp.org>
3051
3052         sys_select: Fix compilation error on mingw.
3053         * lib/sys_select.in.h: On native Windows, include <io.h>.
3054
3055 2011-10-03  Bruno Haible  <bruno@clisp.org>
3056
3057         wmemset: Support for MSVC.
3058         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
3059         whether wmemset() exists.
3060
3061 2011-10-03  Bruno Haible  <bruno@clisp.org>
3062
3063         wmemmove: Support for MSVC.
3064         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
3065         whether wmemmove() exists.
3066
3067 2011-10-03  Bruno Haible  <bruno@clisp.org>
3068
3069         wmemcpy: Support for MSVC.
3070         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
3071         whether wmemcpy() exists.
3072
3073 2011-10-03  Bruno Haible  <bruno@clisp.org>
3074
3075         wmemcmp: Support for MSVC.
3076         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
3077         whether wmemcmp() exists.
3078
3079 2011-10-03  Bruno Haible  <bruno@clisp.org>
3080
3081         wmemchr: Support for MSVC.
3082         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
3083         whether wmemchr() exists.
3084
3085 2011-10-03  Bruno Haible  <bruno@clisp.org>
3086
3087         glthread/*, strsignal: Support for MSVC.
3088         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
3089         including <winsock.h> on MSVC 9.
3090         * lib/glthread/lock.h: Likewise.
3091         * lib/glthread/thread.h: Likewise.
3092         * lib/glthread/tls.h: Likewise.
3093         * lib/glthread/yield.h: Likewise.
3094         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
3095         if HAVE_UNISTD_H is false.
3096         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
3097
3098 2011-10-03  Bruno Haible  <bruno@clisp.org>
3099
3100         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
3101         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
3102         Set to 100000.
3103
3104 2011-10-03  Bruno Haible  <bruno@clisp.org>
3105
3106         acl: Fix specification.
3107         * lib/file-has-acl.c (file_has_acl): Fix specification.
3108
3109 2011-10-03  Bruno Haible  <bruno@clisp.org>
3110
3111         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
3112         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
3113         (compute_curr_prefix, shared_library_fullname,
3114         find_shared_library_fullname, get_shared_library_fullname, relocate):
3115         Use it together with PIC && INSTALLDIR.
3116         Reported by <jojelino@gmail.com>
3117         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
3118
3119 2011-10-01  Jim Meyering  <meyering@redhat.com>
3120
3121         maint.mk: adjust a release-related rule not to require use of gzip
3122         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
3123         Instead, check each file in $(DIST_ARCHIVES).  This is better for
3124         projects that build only .tar.xz files.  Also fix an erroneous test.
3125
3126         test-linkat: don't leave behind a temporary file
3127         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
3128         Otherwise, coreutils' "make distcheck" would fail with this:
3129           Only in /c/cu/tests/torture/coreutils/test/\
3130             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
3131           make[2]: *** [my-distcheck] Error 1
3132
3133         float, math: add omitted file
3134         * lib/itold.c: Add file, required for yesterday's float change.
3135
3136 2011-10-01  Bruno Haible  <bruno@clisp.org>
3137
3138         isinf: Fix for OpenBSD/x86.
3139         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
3140         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
3141         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
3142
3143 2011-10-01  Bruno Haible  <bruno@clisp.org>
3144
3145         isfinite: Fix syntax error in configure test.
3146         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
3147
3148         isfinite: Fix typo.
3149         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
3150         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
3151
3152 2011-10-01  Bruno Haible  <bruno@clisp.org>
3153
3154         nonblocking tests: Fix test failure on Linux/IA-64.
3155         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
3156         Set to 270000.
3157
3158 2011-10-01  Bruno Haible  <bruno@clisp.org>
3159
3160         mkfifoat tests: Fix a test failure on mingw.
3161         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
3162         with error ENOSYS.
3163
3164 2011-09-30  Bruno Haible  <bruno@clisp.org>
3165
3166         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
3167         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
3168         'long double'. Set REPLACE_ITOLD.
3169         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
3170         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
3171         * lib/itold.c: New file.
3172         * modules/float (Files): Add lib/itold.c.
3173         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
3174         (Makefile.am): Substitute REPLACE_ITOLD.
3175         * modules/math (Depends-on): Add float.
3176         (Makefile.am): Substitute REPLACE_ITOLD.
3177         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
3178         * doc/posix-headers/math.texi: Likewise.
3179         * doc/posix-functions/logl.texi: Likewise.
3180
3181 2011-09-30  Bruno Haible  <bruno@clisp.org>
3182
3183         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
3184         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
3185         Set to 140000.
3186
3187 2011-09-30  Bruno Haible  <bruno@clisp.org>
3188
3189         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
3190         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
3191         invocation, say "right after AC_PROG_CC_STDC", not "right after
3192         AC_PROG_CC".
3193         Reported by Gary V. Vaughan <gary@gnu.org>.
3194
3195 2011-09-30  Bruno Haible  <bruno@clisp.org>
3196
3197         Centralize C99 requirement.
3198         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
3199         * modules/stdarg (configure.ac-early): Invoke it instead of
3200         AC_PROG_CC_STDC.
3201         Reported by Gary V. Vaughan and Paul Eggert.
3202
3203 2011-09-29  Bruno Haible  <bruno@clisp.org>
3204
3205         float: Fix LDBL_MAX value on Linux/PowerPC.
3206         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
3207         on Linux/PowerPC.
3208         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
3209         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
3210         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
3211         platform.
3212         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
3213
3214 2011-09-29  Bruno Haible  <bruno@clisp.org>
3215
3216         doc: Improve doc about gl_EARLY.
3217         * doc/gnulib-tool.texi (Initial import): Mention where to place an
3218         AC_PROG_CC_STDC invocation.
3219         Reported by Gary V. Vaughan <gary@gnu.org>.
3220
3221 2011-09-28  Bruno Haible  <bruno@clisp.org>
3222
3223         fgetc, fputc, fread, fwrite tests: Fix link error.
3224         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
3225         on non-MSVC platforms.
3226         * tests/test-fputc.c (main): Likewise.
3227         * tests/test-fread.c (main): Likewise.
3228         * tests/test-fwrite.c (main): Likewise.
3229         Reported by Jim Meyering.
3230
3231 2011-09-27  Bruno Haible  <bruno@clisp.org>
3232
3233         fputc, fwrite tests: Avoid test failure on MSVC.
3234         * tests/test-fgetc.c: Include msvc-inval.h.
3235         (main): Invoke gl_msvc_inval_ensure_handler.
3236         * tests/test-fputc.c: Include msvc-inval.h.
3237         (main): Invoke gl_msvc_inval_ensure_handler.
3238         * tests/test-fread.c: Include msvc-inval.h.
3239         (main): Invoke gl_msvc_inval_ensure_handler.
3240         * tests/test-fwrite.c: Include msvc-inval.h.
3241         (main): Invoke gl_msvc_inval_ensure_handler.
3242         * modules/fgetc-tests (Depends-on): Add msvc-inval.
3243         * modules/fputc-tests (Depends-on): Likewise.
3244         * modules/fread-tests (Depends-on): Likewise.
3245         * modules/fwrite-tests (Depends-on): Likewise.
3246
3247 2011-09-27  Bruno Haible  <bruno@clisp.org>
3248
3249         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
3250         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
3251         (raise): Remove older, duplicated declaration.
3252         (_gl_raise_SIGPIPE): New declaration.
3253         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
3254         (rpl_raise): Remove function.
3255         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
3256         a gnulib-defined SIGPIPE here.
3257         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
3258         'sigprocmask' has detected missing signal-blocking and the module
3259         'sigpipe' is enabled.
3260         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
3261
3262 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
3263
3264         base64-tests: avoid memory leak
3265         * tests/test-base64.c (main): Plug memory leak.
3266
3267         base32: new module
3268         * modules/base32: New module.
3269         * lib/base32.c: New file.
3270         * lib/base32.h: Likewise.
3271         * m4/base32.m4: Likewise.
3272         * modules/base32-tests: New test.
3273         * tests/test-base32.c: Likewise.
3274         * MODULES.html.sh (Misc): Mention it.
3275
3276 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3277
3278         gnulib: use more-standard license notice wording
3279         * gnulib-tool (func_emit_copyright_notice): When emitting a
3280         license notice into a file, use the standard wording as suggested
3281         by the current information for GNU maintainers, except say "file"
3282         rather than "program".  The new wording gives a license version
3283         number, which addresses an issue raised by Glenn Morris in
3284         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
3285         * m4/onceonly.m4: Use that same wording here, too.
3286
3287         dup2: minor simplification
3288         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
3289         as lib/dup2.c no longer uses 'inline'.
3290
3291 2011-09-25  Bruno Haible  <bruno@clisp.org>
3292
3293         strings: Fix compilation error on MSVC.
3294         * lib/strings.in.h: Include <stddef.h> for size_t.
3295
3296 2011-09-25  Bruno Haible  <bruno@clisp.org>
3297
3298         fflush et al.: Document limitation on MSVC.
3299         * doc/posix-functions/fflush.texi: Document possible crash in handling
3300         mode other than DEFAULT_HANDLING.
3301         * doc/posix-functions/fgetc.texi: Likewise.
3302         * doc/posix-functions/fputc.texi: Likewise.
3303         * doc/posix-functions/fread.texi: Likewise.
3304         * doc/posix-functions/fwrite.texi: Likewise.
3305
3306 2011-09-25  Bruno Haible  <bruno@clisp.org>
3307
3308         msvc-inval: Allow three invalid parameter handling modes.
3309         * lib/msvc-inval.h: Don't include <stdlib.h> here.
3310         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
3311         macros.
3312         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
3313         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
3314         SANE_LIBRARY_HANDLING as a no-op.
3315         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
3316         <stdlib.h>.
3317         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
3318
3319 2011-09-25  Bruno Haible  <bruno@clisp.org>
3320
3321         msvc-inval: Make handler multithread-safe.
3322         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
3323         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
3324         declarations.
3325         (gl_msvc_inval_current): New declaration.
3326         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
3327         Operate on the structure returned by gl_msvc_inval_current().
3328         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
3329         Remove varaiables.
3330         (tls_index, tls_initialized): New variables.
3331         (not_per_thread): New variable.
3332         (gl_msvc_inval_current): New function.
3333         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
3334         returned by gl_msvc_inval_current().
3335
3336 2011-09-25  Bruno Haible  <bruno@clisp.org>
3337
3338         msvc-inval: Install handler globally.
3339         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
3340         !_MSC_VER.
3341         (gl_msvc_invalid_parameter_handler): Remove declaration.
3342         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
3343         declarations.
3344         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
3345         Install the handler globally, don't uninstall it.
3346         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
3347         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
3348         currently valid, call RaiseException instead.
3349         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
3350         for !_MSC_VER.
3351
3352 2011-09-25  Bruno Haible  <bruno@clisp.org>
3353
3354         strerror_r-posix: Fix for MSVC 9.
3355         * lib/strerror_r.c (local_snprintf): New function.
3356         (snprintf): Define to local_snprintf, not to _snprintf.
3357
3358 2011-09-25  Bruno Haible  <bruno@clisp.org>
3359
3360         ftruncate: Support for MSVC 9.
3361         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
3362         (chsize_nothrow): New function.
3363         (chsize): Redefine as a macro.
3364         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
3365         * modules/ftruncate (Depends-on): Add msvc-inval.
3366
3367 2011-09-25  Bruno Haible  <bruno@clisp.org>
3368
3369         New module 'fstat'.
3370         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
3371         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
3372         * lib/fchdir.c (rpl_fstat): Remove function.
3373         * m4/fstat.m4: New file.
3374         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
3375         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
3376         declared.
3377         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
3378         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
3379         * modules/fstat: New file.
3380         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
3381         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
3382         is set.
3383         * doc/posix-functions/fstat.texi: Mention the new module and the
3384         problem on MSVC.
3385         * NEWS: Mention the change.
3386         * modules/acl (Depends-on): Add fstat.
3387         * modules/chdir-safer (Depends-on): Likewise.
3388         * modules/chown (Depends-on): Likewise.
3389         * modules/copy-file (Depends-on): Likewise.
3390         * modules/fchdir (Depends-on): Likewise.
3391         * modules/fdopendir (Depends-on): Likewise.
3392         * modules/fopen (Depends-on): Likewise.
3393         * modules/fts (Depends-on): Likewise.
3394         * modules/getcwd (Depends-on): Likewise.
3395         * modules/isapipe (Depends-on): Likewise.
3396         * modules/linkat (Depends-on): Likewise.
3397         * modules/lseek (Depends-on): Likewise.
3398         * modules/mkdir-p (Depends-on): Likewise.
3399         * modules/open (Depends-on): Likewise.
3400         * modules/openat (Depends-on): Likewise.
3401         * modules/read-file (Depends-on): Likewise.
3402         * modules/renameat (Depends-on): Likewise.
3403         * modules/utimens (Depends-on): Likewise.
3404
3405 2011-09-25  Bruno Haible  <bruno@clisp.org>
3406
3407         linkat: Fix compilation on MSVC 9.
3408         * lib/linkat.c: Don't include <stdint.h>.
3409
3410 2011-09-25  Bruno Haible  <bruno@clisp.org>
3411
3412         fclose: Support for MSVC 9.
3413         * lib/fclose.c: Include msvc-inval.h.
3414         (fclose_nothrow): New function.
3415         (rpl_fclose): Use it.
3416         * modules/fclose (Depends-on): Add msvc-inval.
3417         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
3418
3419 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
3420
3421         dup2: minor simplifications
3422         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
3423         that it's a performance win.
3424         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
3425         ! defined __CYGWIN__)" to "ifdef F_GETFL".
3426
3427 2011-09-24  Jim Meyering  <meyering@redhat.com>
3428
3429         test-futimens: avoid a warning from gcc -Wshadow
3430         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
3431         to avoid a shadowing warning.
3432
3433 2011-09-24  Bruno Haible  <bruno@clisp.org>
3434
3435         fdopen: Support for MSVC 9.
3436         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
3437         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
3438         * lib/fdopen.c: Include msvc-inval.h.
3439         (fdopen_nothrow): New function.
3440         (rpl_fdopen): Use it.
3441         * modules/fdopen (Depends-on): Add msvc-inval.
3442         * modules/fclose-tests (Depends-on): Add fdopen.
3443         * modules/fflush-tests (Depends-on): Likewise.
3444         * modules/fgetc-tests (Depends-on): Likewise.
3445         * modules/fputc-tests (Depends-on): Likewise.
3446         * modules/fread-tests (Depends-on): Likewise.
3447         * modules/freopen-tests (Depends-on): Likewise.
3448         * modules/fseeko-tests (Depends-on): Likewise.
3449         * modules/ftello-tests (Depends-on): Likewise.
3450         * modules/fwrite-tests  (Depends-on): Likewise.
3451         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
3452
3453 2011-09-24  Bruno Haible  <bruno@clisp.org>
3454
3455         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
3456         * modules/fgetc-tests (Depends-on): Add unistd.
3457         * modules/fputc-tests (Depends-on): Likewise.
3458         * modules/fread-tests (Depends-on): Likewise.
3459         * modules/fwrite-tests (Depends-on): Likewise.
3460
3461 2011-09-24  Bruno Haible  <bruno@clisp.org>
3462
3463         dup: Simplify autoconf test.
3464         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
3465         on gl_MSVC_INVAL's result.
3466
3467 2011-09-24  Bruno Haible  <bruno@clisp.org>
3468
3469         Tests for function fwrite().
3470         * modules/fwrite-tests: New file.
3471         * tests/test-fwrite.c: New file.
3472         * modules/stdio-tests (Depends-on): Add fwrite-tests.
3473
3474         Tests for function fread().
3475         * modules/fread-tests: New file.
3476         * tests/test-fread.c: New file.
3477         * modules/stdio-tests (Depends-on): Add fread-tests.
3478
3479         Activate fputc tests.
3480         * modules/stdio-tests (Depends-on): Add fputc-tests.
3481
3482         Enhance fgetc, fputc tests.
3483         * tests/test-fgetc.c (main): Also test the stream's error indicator.
3484         * tests/test-fputc.c (main): Likewise.
3485
3486 2011-09-24  Bruno Haible  <bruno@clisp.org>
3487
3488         write: Support for MSVC 9.
3489         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
3490         is not 1.
3491         * lib/write.c (write_nothrow): New function.
3492         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
3493         not 1. Use write_nothrow.
3494         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
3495         invalid parameter handler.
3496         (gl_PREREQ_WRITE): New macro.
3497         * modules/write (Depends-on): Add msvc-inval.
3498         (configure.ac): Invoke gl_PREREQ_WRITE.
3499         * doc/posix-functions/write.texi: Mention the problem on MSVC.
3500
3501 2011-09-24  Bruno Haible  <bruno@clisp.org>
3502
3503         read: Fix last commit.
3504         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
3505
3506 2011-09-24  Bruno Haible  <bruno@clisp.org>
3507
3508         dup2: Fix last commit.
3509         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
3510         (rpl_dup2): Disable fcntl workaround on native Windows.
3511
3512         sigprocmask: Make code safer.
3513         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
3514         section that changes macro definitions for this compilation unit.
3515
3516 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
3517
3518         dup2: clarify by coalescing Windows-specific material
3519         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
3520         "msvc-nothrow.h"' to the Windows-specific section, so that the
3521         Emacs source need not contain these include files.
3522         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
3523         Windows-specific fixes into this function rather than just the
3524         nothrow fix, as this shortens and clarifies the code.  Always
3525         define as a function, as that's a bit cleaner than having it be
3526         sometimes a function and sometimes a macro.
3527         (rpl_dup2): Move the Windows-specific stuff out of here and into
3528         ms_windows_dup2.  Don't protect the Haiku-related fix with
3529         "#if !defined __linux__", as the same code also works around
3530         a Linux kernel bug, and it doesn't add any system calls on any
3531         platform.  Add comment about FreeBSD 6.1.
3532
3533         sigprocmask: move #include directive
3534         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
3535         Windows-specific section, so that the Emacs source need not
3536         contain msvc-inval.h.
3537
3538 2011-09-23  Bruno Haible  <bruno@clisp.org>
3539
3540         read: Support for MSVC 9.
3541         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
3542         is not 1.
3543         * lib/read.c (read_nothrow): New function.
3544         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
3545         read_nothrow.
3546         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
3547         invalid parameter handler.
3548         (gl_PREREQ_READ): New macro.
3549         * modules/read (Depends-on): Add msvc-inval.
3550         (configure.ac): Invoke gl_PREREQ_READ.
3551         * doc/posix-functions/read.texi: Mention the problem on MSVC.
3552
3553 2011-09-23  Bruno Haible  <bruno@clisp.org>
3554
3555         close: Support for MSVC 9.
3556         * lib/close.c: Include <errno.h>, msvc-inval.h.
3557         (close_nothrow): New function.
3558         (rpl_close): Use it.
3559         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
3560         invalid parameter handler.
3561         * modules/close (Depends-on): Add msvc-inval.
3562         * modules/dup2-tests (Depends-on): Add close.
3563         * modules/dup3-tests (Depends-on): Likewise.
3564         * modules/fcntl-tests (Depends-on): Likewise.
3565         * modules/spawn-pipe-tests (Depends-on): Likewise.
3566         * modules/unistd-safer-tests (Depends-on): Likewise.
3567         * doc/posix-functions/close.texi: Mention the problem on MSVC.
3568
3569 2011-09-23  Bruno Haible  <bruno@clisp.org>
3570
3571         New module 'dup'.
3572         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
3573         Allow replacement.
3574         * lib/dup.c: New file.
3575         * lib/fchdir.c (rpl_dup): Remove function.
3576         * m4/dup.m4: New file.
3577         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
3578         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
3579         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
3580         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
3581         * modules/dup: New file.
3582         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
3583         'dup' module is in use.
3584         * modules/fdopendir (Depends-on): Add dup.
3585         * modules/fdutimensat-tests (Depends-on): Likewise.
3586         * modules/fts (Depends-on): Likewise.
3587         * modules/futimens-tests (Depends-on): Likewise.
3588         * modules/posix_spawnp-tests (Depends-on): Likewise.
3589         * modules/unistd-safer-tests (Depends-on): Likewise.
3590         * modules/utimens-tests (Depends-on): Likewise.
3591         * doc/posix-functions/dup.texi: Mention the new module and the problem
3592         on MSVC.
3593
3594 2011-09-23  Bruno Haible  <bruno@clisp.org>
3595
3596         getdtablesize: Support for MSVC 9.
3597         * lib/getdtablesize.c: Include msvc-inval.h.
3598         (_setmaxstdio_nothrow): New function.
3599         (_setmaxstdio): Redefine it.
3600         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
3601         * modules/getdtablesize (Depends-on): Add msvc-inval.
3602         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
3603
3604 2011-09-23  Bruno Haible  <bruno@clisp.org>
3605
3606         signal-h: Rename from signal.
3607         * modules/signal-h: Renamed from modules/signal.
3608         * modules/pthread_sigmask (Depends-on): Update.
3609         * modules/raise (Depends-on): Likewise.
3610         * modules/sigaction (Depends-on): Likewise.
3611         * modules/sigpipe (Depends-on): Likewise.
3612         * modules/sigprocmask (Depends-on): Likewise.
3613         * modules/sys_select (Depends-on): Likewise.
3614         * modules/signal-h-tests: Renamed from modules/signal-tests.
3615         (Files, Depends-on, Makefile.am): Update.
3616         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
3617         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
3618         (Files, Makefile.am): Update.
3619         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
3620         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
3621         * modules/signal: New placeholder file.
3622         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
3623         * doc/posix-headers/signal.texi: Update.
3624         * NEWS: Mention the change.
3625
3626 2011-09-23  Bruno Haible  <bruno@clisp.org>
3627
3628         sigprocmask: Avoid crashes through signal() on MSVC 9.
3629         * lib/sigprocmask.c: Include msvc-inval.h.
3630         (signal_nothrow): New function.
3631         (signal): Redefine it.
3632         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
3633         * modules/sigprocmask (Depends-on): Add msvc-inval.
3634         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
3635
3636 2011-09-23  Bruno Haible  <bruno@clisp.org>
3637
3638         Tests for module 'raise'.
3639         * modules/raise-tests: New file.
3640         * tests/test-raise.c: New file.
3641
3642         raise: Support for MSVC.
3643         * lib/signal.in.h (raise): New declaration.
3644         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
3645         for native Windows platforms.
3646         * m4/raise.m4: New file.
3647         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
3648         HAVE_RAISE, REPLACE_RAISE.
3649         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
3650         REPLACE_RAISE.
3651         * modules/raise (Status, Notice): Remove fields.
3652         (Files): Add m4/raise.m4.
3653         (Depends-on): Add signal, msvc-inval.
3654         (configure.ac): Use the common idioms.
3655         (Maintainer): Add me.
3656         * tests/test-signal-c++.cc: Check the signature of raise.
3657         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
3658
3659 2011-09-23  Bruno Haible  <bruno@clisp.org>
3660
3661         pipe2: Fix compilation on pre-C99 compilers.
3662         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
3663
3664 2011-09-23  Bruno Haible  <bruno@clisp.org>
3665
3666         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
3667         * lib/msvc-nothrow.h: New file.
3668         * lib/msvc-nothrow.c: New file.
3669         * m4/msvc-nothrow.m4: New file.
3670         * modules/msvc-nothrow: New file.
3671         * lib/dup2.c: Include msvc-nothrow.h.
3672         (rpl_dup2): No need to protect _get_osfhandle call here.
3673         * lib/accept4.c: Include msvc-nothrow.h.
3674         * lib/error.c: Likewise.
3675         * lib/fcntl.c: Likewise.
3676         * lib/lseek.c: Likewise.
3677         * lib/nonblocking.c: Likewise.
3678         * lib/poll.c: Likewise.
3679         * lib/read.c: Likewise.
3680         * lib/select.c: Likewise.
3681         * lib/sockets.h: Likewise.
3682         * lib/sockets.c: Likewise.
3683         * lib/stdio-read.c: Likewise.
3684         * lib/stdio-write.c: Likewise.
3685         * lib/write.c: Likewise.
3686         * lib/w32sock.h: Likewise.
3687         * lib/w32spawn.h: Likewise.
3688         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
3689         * lib/fsync.c: Likewise.
3690         * lib/isapipe.c: Likewise.
3691         * modules/dup2 (Depends-on): Add msvc-nothrow.
3692         * modules/accept4 (Depends-on): Likewise.
3693         * modules/error (Depends-on): Likewise.
3694         * modules/fcntl (Depends-on): Likewise.
3695         * modules/lseek (Depends-on): Likewise.
3696         * modules/nonblocking (Depends-on): Likewise.
3697         * modules/poll (Depends-on): Likewise.
3698         * modules/read (Depends-on): Likewise.
3699         * modules/select (Depends-on): Likewise.
3700         * modules/sockets (Depends-on): Likewise.
3701         * modules/sigpipe (Depends-on): Likewise.
3702         * modules/write (Depends-on): Likewise.
3703         * modules/accept (Depends-on): Likewise.
3704         * modules/bind (Depends-on): Likewise.
3705         * modules/connect (Depends-on): Likewise.
3706         * modules/gethostname (Depends-on): Likewise.
3707         * modules/getpeername (Depends-on): Likewise.
3708         * modules/getsockname (Depends-on): Likewise.
3709         * modules/getsockopt (Depends-on): Likewise.
3710         * modules/ioctl (Depends-on): Likewise.
3711         * modules/listen (Depends-on): Likewise.
3712         * modules/recv (Depends-on): Likewise.
3713         * modules/recvfrom (Depends-on): Likewise.
3714         * modules/send (Depends-on): Likewise.
3715         * modules/sendto (Depends-on): Likewise.
3716         * modules/setsockopt (Depends-on): Likewise.
3717         * modules/shutdown (Depends-on): Likewise.
3718         * modules/socket (Depends-on): Likewise.
3719         * modules/execute (Depends-on): Likewise.
3720         * modules/spawn-pipe (Depends-on): Likewise.
3721         * modules/flock (Depends-on): Likewise.
3722         * modules/fsync (Depends-on): Likewise.
3723         * modules/isapipe (Depends-on): Likewise.
3724         * tests/test-cloexec.c: Include msvc-nothrow.h.
3725         * tests/test-dup-safer.c: Likewise.
3726         * tests/test-dup2.c: Likewise.
3727         * tests/test-dup3.c: Likewise.
3728         * tests/test-fcntl.c: Likewise.
3729         * tests/test-pipe.c: Likewise.
3730         * tests/test-pipe2.c: Likewise.
3731         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
3732         * modules/unistd-safer-tests (Depends-on): Likewise.
3733         * modules/dup2-tests (Depends-on): Likewise.
3734         * modules/dup3-tests (Depends-on): Likewise.
3735         * modules/fcntl-tests (Depends-on): Likewise.
3736         * modules/pipe-posix-tests (Depends-on): Likewise.
3737         * modules/pipe2-tests (Depends-on): Likewise.
3738
3739 2011-09-23  Bruno Haible  <bruno@clisp.org>
3740
3741         dup2: Make code more maintainable.
3742         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
3743         (rpl_dup2): Use it.
3744         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
3745         * modules/dup2 (configure.ac): Invoke it.
3746         Reported by Paul Eggert.
3747
3748 2011-09-23  Bruno Haible  <bruno@clisp.org>
3749
3750         msvc-inval: Fix compilation error.
3751         * lib/msvc-inval.h: Include <excpt.h>.
3752
3753 2011-09-23  Bruno Haible  <bruno@clisp.org>
3754
3755         mkdir: Tweak for MSVC 9.
3756         * lib/sys_stat.in.h: Update comments.
3757         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
3758
3759         Tests for module 'chdir'.
3760         * modules/chdir-tests: New file.
3761         * tests/test-chdir.c: New file.
3762
3763         New module 'chdir'.
3764         * modules/chdir: New file.
3765         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
3766         (chdir): New declaration.
3767         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
3768         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
3769         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
3770         * tests/test-unistd-c++.cc: Check signature of chdir.
3771         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
3772         * modules/chdir-long (Depends-on): Add chdir.
3773         * modules/fchdir (Depends-on): Likewise.
3774         * modules/rename (Depends-on): Likewise.
3775         * modules/savewd (Depends-on): Likewise.
3776
3777         rmdir: Support for mingw, MSVC 9.
3778         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
3779         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
3780
3781         getcwd: Tweak for MSVC 9.
3782         * lib/unistd.in.h: Update comments.
3783         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
3784
3785 2011-09-22  Bruno Haible  <bruno@clisp.org>
3786
3787         strerror_r-posix: Avoid a link error on MSVC.
3788         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
3789         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
3790
3791 2011-09-22  Bruno Haible  <bruno@clisp.org>
3792
3793         select: Avoid link errors on MSVC.
3794         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
3795         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
3796         * modules/pselect (Link): Likewise.
3797         * NEWS: Mention the change.
3798         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
3799         test-select-stdin against $(LIB_SELECT).
3800         * modules/pselect-tests (Makefile.am): Link test-pselect against
3801         $(LIB_SELECT).
3802
3803 2011-09-22  Bruno Haible  <bruno@clisp.org>
3804
3805         select: Avoid compilation error on MSVC.
3806         * lib/select.c: Don't include <stdbool.h>.
3807
3808 2011-09-21  Bruno Haible  <bruno@clisp.org>
3809
3810         Consolidate all uses of PATH_MAX in *.m4 files.
3811         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
3812         macros.
3813         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
3814         and gl_PATHMAX_SNIPPET.
3815         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3816         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3817         * modules/chdir-long (Files): Add m4/pathmax.m4.
3818         * modules/getcwd (Files): Likewise.
3819
3820 2011-09-21  Bruno Haible  <bruno@clisp.org>
3821
3822         ftruncate: Un-deprecate, concentrate on Win32 support.
3823         * modules/ftruncate (Status, Notice): Remove sections.
3824         (Depends-on): Add largefile.
3825         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
3826         non-mingw platforms.
3827         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
3828         include <io.h>.
3829         * modules/perror-tests (Depends-on): Add ftruncate.
3830         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
3831         'ftruncate' module.
3832
3833 2011-09-21  Bruno Haible  <bruno@clisp.org>
3834
3835         Add dependencies to new dirent related modules.
3836         * modules/opendir (Depends-on): Add closedir.
3837         * modules/getcwd (Depends-on): Add opendir, closedir.
3838         * modules/dirent-safer-tests (Depends-on): Likewise.
3839         * modules/fdopendir-tests (Depends-on): Likewise.
3840         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
3841         * modules/renameat-tests (Depends-on): Likewise.
3842
3843 2011-09-21  Bruno Haible  <bruno@clisp.org>
3844
3845         opendir: Avoid compilation error on mingw.
3846         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
3847         * modules/opendir (Depends-on): Add unistd.
3848
3849 2011-09-21  Bruno Haible  <bruno@clisp.org>
3850
3851         ftruncate tests: Avoid a test failure on mingw.
3852         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
3853
3854 2011-09-21  Bruno Haible  <bruno@clisp.org>
3855
3856         select tests: Avoid test failures on OSF/1 5.1 and mingw.
3857         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
3858         native Windows.
3859
3860 2011-09-21  Bruno Haible  <bruno@clisp.org>
3861
3862         New module 'fdopen'.
3863         * lib/stdio.in.h (fdopen): New declaration.
3864         * lib/fdopen.c: New file.
3865         * m4/fdopen.m4: New file.
3866         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
3867         REPLACE_FDOPEN.
3868         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
3869         REPLACE_FDOPEN.
3870         * modules/fdopen: New file.
3871         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
3872         * tests/test-stdio-c++.cc: Check signature of fdopen.
3873         * doc/posix-functions/fdopen.texi: Mention the new module.
3874
3875 2011-09-21  Bruno Haible  <bruno@clisp.org>
3876
3877         unlockpt tests: Avoid test failure on NetBSD 5.1.
3878         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
3879         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
3880
3881 2011-09-21  Bruno Haible  <bruno@clisp.org>
3882
3883         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
3884         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
3885         * tests/test-getlogin_r.c (main): Likewise.
3886
3887 2011-09-20  Bruno Haible  <bruno@clisp.org>
3888
3889         time tests: Don't require pid_t.
3890         * doc/posix-headers/time.texi: Revert last change.
3891         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
3892         * tests/test-time.c: Comment out the check for pid_t.
3893
3894 2011-09-20  Bruno Haible  <bruno@clisp.org>
3895
3896         fsync tests: Avoid a test failure on mingw.
3897         * tests/test-fsync.c (main): Allow a failure with EIO.
3898
3899 2011-09-20  Bruno Haible  <bruno@clisp.org>
3900
3901         euidaccess: Update comments.
3902         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
3903
3904 2011-09-20  Bruno Haible  <bruno@clisp.org>
3905
3906         Ensure EBADF returns for socket functions on mingw.
3907         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
3908         descriptor is invalid.
3909         * lib/bind.c (rpl_bind): Likewise.
3910         * lib/connect.c (rpl_connect): Likewise.
3911         * lib/getpeername.c (rpl_getpeername): Likewise.
3912         * lib/getsockname.c (rpl_getsockname): Likewise.
3913         * lib/getsockopt.c (rpl_getsockopt): Likewise.
3914         * lib/listen.c (rpl_listen): Likewise.
3915         * lib/recv.c (rpl_recv): Likewise.
3916         * lib/recvfrom.c (rpl_recvfrom): Likewise.
3917         * lib/send.c (rpl_send): Likewise.
3918         * lib/sendto.c (rpl_sendto): Likewise.
3919         * lib/setsockopt.c (rpl_setsockopt): Likewise.
3920         * lib/shutdown.c (rpl_shutdown): Likewise.
3921
3922 2011-09-20  Bruno Haible  <bruno@clisp.org>
3923
3924         select tests: EBADF tests.
3925         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
3926         test_bad_fd): New functions.
3927         (test_function): Invoke also test_bad_fd.
3928
3929 2011-09-20  Bruno Haible  <bruno@clisp.org>
3930
3931         Tests for module 'posix_spawn_file_actions_addopen.
3932         * modules/posix_spawn_file_actions_addopen-tests: New file.
3933         * tests/test-posix_spawn_file_actions_addopen.c: New file.
3934
3935         Tests for module 'posix_spawn_file_actions_adddup2'.
3936         * modules/posix_spawn_file_actions_adddup2-tests: New file.
3937         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
3938
3939         Tests for module 'posix_spawn_file_actions_addclose'.
3940         * modules/posix_spawn_file_actions_addclose-tests: New file.
3941         * tests/test-posix_spawn_file_actions_addclose.c: New file.
3942
3943 2011-09-20  Bruno Haible  <bruno@clisp.org>
3944
3945         Tests for module 'unlockpt'.
3946         * modules/unlockpt-tests: New file.
3947         * tests/test-unlockpt.c: New file.
3948         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
3949
3950         Tests for module 'grantpt'.
3951         * modules/grantpt-tests: New file.
3952         * tests/test-grantpt.c: New file.
3953         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
3954
3955 2011-09-20  Bruno Haible  <bruno@clisp.org>
3956
3957         freopen tests: EBADF tests.
3958         * tests/test-freopen.c: Include errno.h, unistd.h.
3959         (main): Add tests for EBADF, commented out for the moment.
3960
3961         fclose tests: EBADF tests.
3962         * tests/test-fclose.c (main): Add tests for EBADF.
3963
3964         fflush tests: EBADF tests.
3965         * tests/test-fflush.c: Include errno.h, macros.h.
3966         (main): Add tests for EBADF.
3967
3968         ftello tests: EBADF tests.
3969         * tests/test-ftello4.sh: New file.
3970         * tests/test-ftello4.c: New file.
3971         * modules/ftello-tests (Files): Add them.
3972         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
3973
3974         fseeko tests: EBADF tests.
3975         * tests/test-fseeko4.sh: New file.
3976         * tests/test-fseeko4.c: New file.
3977         * modules/fseeko-tests (Files): Add them.
3978         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
3979
3980         Tests for function fputc().
3981         * modules/fputc-tests: New file.
3982         * tests/test-fputc.c: New file.
3983         * modules/stdio-tests (Depends-on): Add fputc-tests.
3984
3985         Tests for function fgetc().
3986         * modules/fgetc-tests: New file.
3987         * tests/test-fgetc.c: New file.
3988         * modules/stdio-tests (Depends-on): Add fgetc-tests.
3989
3990         Tests for function fdopen().
3991         * modules/fdopen-tests: New file.
3992         * tests/test-fdopen.c: New file.
3993         * modules/stdio-tests (Depends-on): Add fdopen-tests.
3994
3995         Tests for module 'vdprintf'.
3996         * modules/vdprintf-tests: New file.
3997         * tests/test-vdprintf.c: New file.
3998
3999         Tests for module 'dprintf'.
4000         * modules/dprintf-tests: New file.
4001         * tests/test-dprintf.c: New file.
4002
4003 2011-09-20  Bruno Haible  <bruno@clisp.org>
4004
4005         Tests for module 'ioctl'.
4006         * modules/ioctl-tests: New file.
4007         * tests/test-ioctl.c: New file.
4008
4009 2011-09-20  Bruno Haible  <bruno@clisp.org>
4010
4011         fcntl tests: EBADF tests.
4012         * tests/test-fcntl.c (main): Add more tests for EBADF.
4013
4014 2011-09-20  Bruno Haible  <bruno@clisp.org>
4015
4016         utimensat tests: EBADF tests.
4017         * tests/test-utimensat.c (main): Add tests for EBADF.
4018
4019         renameat tests: EBADF tests.
4020         * tests/test-renameat.c (main): Add tests for EBADF.
4021
4022         mkfifoat tests: EBADF tests.
4023         * tests/test-mkfifoat.c (main): Add tests for EBADF.
4024
4025         readlinkat tests: EBADF tests.
4026         * tests/test-readlinkat.c (main): Add tests for EBADF.
4027
4028         symlinkat tests: EBADF tests.
4029         * tests/test-symlinkat.c (main): Add tests for EBADF.
4030
4031         linkat tests: EBADF tests.
4032         * tests/test-linkat.c (main): Add tests for EBADF.
4033
4034         Tests for module 'faccessat'.
4035         * modules/faccessat-tests: New file.
4036         * tests/test-faccessat.c: New file.
4037
4038         fdopendir tests: EBADF tests.
4039         * tests/test-fdopendir.c (main): Add more tests for EBADF.
4040
4041         openat tests: EBADF tests.
4042         * tests/test-fchownat.c (main): Add tests for EBADF.
4043         * tests/test-fstatat.c (main): Likewise.
4044         * tests/test-mkdirat.c (main): Likewise.
4045         * tests/test-openat.c (main): Likewise.
4046         * tests/test-unlinkat.c (main): Likewise.
4047         * tests/test-fchmodat.c: New file.
4048         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
4049         (Makefile.am): Also run 'test-fchmodat'.
4050
4051 2011-09-20  Bruno Haible  <bruno@clisp.org>
4052
4053         utimens, futimens, fdutimensat tests: EBADF tests.
4054         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
4055
4056         Tests for function fstat().
4057         * modules/fstat-tests: New file.
4058         * tests/test-fstat.c: New file.
4059         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
4060
4061 2011-09-20  Bruno Haible  <bruno@clisp.org>
4062
4063         test-ttyname_r tests: EBADF tests.
4064         * tests/test-ttyname_r.c (main): Add tests for EBADF.
4065
4066         Tests for module 'isatty'.
4067         * modules/isatty-tests: New file.
4068         * tests/test-isatty.c: New file.
4069
4070         Tests for module 'write'.
4071         * modules/write-tests: New file.
4072         * tests/test-write.c: New file.
4073
4074         Tests for module 'read'.
4075         * modules/read-tests: New file.
4076         * tests/test-read.c: New file.
4077
4078         pwrite tests: EBADF tests.
4079         * tests/test-pwrite.c (main): Add tests for EBADF.
4080
4081         pread tests: EBADF tests.
4082         * tests/test-pread.c (main): Add tests for EBADF.
4083
4084         lseek tests: EBADF tests.
4085         * tests/test-lseek.c (main): Add more tests for EBADF.
4086
4087         Tests for module 'ftruncate'.
4088         * modules/ftruncate-tests: New file.
4089         * tests/test-ftruncate.sh: New file.
4090         * tests/test-ftruncate.c: New file.
4091
4092         fsync tests: EBADF tests.
4093         * tests/test-fsync.c (main): Add more tests for EBADF.
4094
4095         fdatasync tests: EBADF tests.
4096         * tests/test-fdatasync.c (main): Add more tests for EBADF.
4097
4098         Tests for module 'fchown'.
4099         * modules/fchown-tests: New file.
4100         * tests/test-fchown.c: New file.
4101
4102         Tests for module 'fchmod'.
4103         * modules/fchmod-tests: New file.
4104         * tests/test-fchmod.c: New file.
4105
4106         fchdir tests: EBADF tests.
4107         * tests/test-fchdir.c (main): Add more tests for EBADF.
4108
4109         dup2 tests: EBADF tests.
4110         * tests/test-dup2.c (main): Add more tests for EBADF.
4111
4112         Tests for module 'dup'.
4113         * modules/dup-tests: New file.
4114         * tests/test-dup.c: New file.
4115
4116         Tests for module 'close'.
4117         * modules/close-tests: New file.
4118         * tests/test-close.c: New file.
4119
4120 2011-09-20  Bruno Haible  <bruno@clisp.org>
4121
4122         Tests for module 'shutdown'.
4123         * modules/shutdown-tests: New file.
4124         * tests/test-shutdown.c: New file.
4125
4126         Tests for module 'setsockopt'.
4127         * modules/setsockopt-tests: New file.
4128         * tests/test-setsockopt.c: New file.
4129
4130         Tests for module 'sendto'.
4131         * modules/sendto-tests: New file.
4132         * tests/test-sendto.c: New file.
4133
4134         Tests for module 'send'.
4135         * modules/send-tests: New file.
4136         * tests/test-send.c: New file.
4137
4138         Tests for module 'recvfrom'.
4139         * modules/recvfrom-tests: New file.
4140         * tests/test-recvfrom.c: New file.
4141
4142         Tests for module 'recv'.
4143         * modules/recv-tests: New file.
4144         * tests/test-recv.c: New file.
4145
4146         Tests for module 'listen'.
4147         * modules/listen-tests: New file.
4148         * tests/test-listen.c: New file.
4149
4150         Tests for module 'getsockopt'.
4151         * modules/getsockopt-tests: New file.
4152         * tests/test-getsockopt.c: New file.
4153
4154         Tests for module 'getsockname'.
4155         * modules/getsockname-tests: New file.
4156         * tests/test-getsockname.c: New file.
4157
4158         Tests for module 'getpeername'.
4159         * modules/getpeername-tests: New file.
4160         * tests/test-getpeername.c: New file.
4161
4162         Tests for module 'connect'.
4163         * modules/connect-tests: New file.
4164         * tests/test-connect.c: New file.
4165
4166         Tests for module 'bind'.
4167         * modules/bind-tests: New file.
4168         * tests/test-bind.c: New file.
4169
4170         accept4 tests: Fix for native Windows.
4171         * tests/test-accept4.c: Include sockets.h.
4172         (main): Invoke gl_sockets_startup.
4173         * modules/accept4-tests (Depends-on): Add sockets.
4174
4175         accept tests: Fix for native Windows.
4176         * tests/test-accept.c: Include sockets.h.
4177         (main): Invoke gl_sockets_startup.
4178         * modules/accept-tests (Depends-on): Add sockets.
4179
4180 2011-09-19  Bruno Haible  <bruno@clisp.org>
4181
4182         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
4183         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
4184         do...while(0).
4185         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
4186         Suggested by Paul Eggert.
4187
4188 2011-09-19  Bruno Haible  <bruno@clisp.org>
4189
4190         sched: Ensure pid_t is defined.
4191         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
4192         not define pid_t.
4193         * lib/sched.in.h: Include <sys/types.h>.
4194         * doc/posix-headers/sched.texi: Mention the pid_t problem.
4195         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4196
4197 2011-09-19  Bruno Haible  <bruno@clisp.org>
4198
4199         msvc-inval: Ensure the entire expansion is a single statement.
4200         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
4201         of braces.
4202
4203 2011-09-19  Jim Meyering  <meyering@redhat.com>
4204
4205         tests: use printf, not echo in init.sh's warn_ function
4206         * tests/init.sh (warn_): Use printf, not echo.  The latter would
4207         misbehave when given strings containing a backslash or starting
4208         with e.g., -n.  James Youngman suggested setting IFS.
4209
4210 2011-09-19  Eric Blake  <eblake@redhat.com>
4211
4212         futimens: enhance test
4213         * tests/test-futimens.h (test_futimens): Also check for EBADF on
4214         closed non-negative fd.
4215
4216         date: accept 'hence' as opposite of 'ago'
4217         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
4218         * tests/test-parse-datetime.c (main): Enhance test.
4219         Suggested by Jesse Wilson.
4220
4221 2011-09-19  Jim Meyering  <meyering@redhat.com>
4222
4223         getcwd: don't fail in a deep directory on a system without openat
4224         Before this change, getcwd would fail when called from a directory
4225         of depth PATH_MAX / 3 or greater.  That was due to the fact that
4226         the non-openat implementation used "..", "../..", "../../..", etc.
4227         to access ancestor directories.  With too many, that string would
4228         be longer than PATH_MAX.
4229         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
4230         using gnulib's openat replacement.
4231         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
4232         we're using the replacement function.
4233
4234 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
4235
4236         maint.mk: avoid warnings from perl about missing files
4237         * top/maint.mk (def_sym_regex): Ignore files listed in
4238         $(gl_other_headers_) that do not exist, say because a project
4239         does not use a corresponding module.
4240
4241 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
4242
4243         stat: use pathmax.h only if needed
4244         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
4245         This is better for Emacs, which does not have a mingw port and
4246         therefore can avoid the pathmax module.
4247
4248         utimens: remove dependency on dup2
4249         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
4250         to work around the Linux kernel bug.
4251         * modules/utimens (Depends-on): Remove dup2.
4252
4253 2011-09-18  Bruno Haible  <bruno@clisp.org>
4254
4255         inet_ntop, inet_pton: Look for it also in libresolv.
4256         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
4257         libnsl, search for it in libresolv.
4258         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4259         Needed on Solaris 7.
4260
4261 2011-09-18  Bruno Haible  <bruno@clisp.org>
4262
4263         accept, accept4 tests: Avoid link error on Solaris.
4264         * modules/accept-tests (Makefile.am): Link test-accept against
4265         $(LIBSOCKET).
4266         * modules/accept4-tests (Makefile.am): Link test-accept4 against
4267         $(LIBSOCKET).
4268
4269         accept4: Avoid link error on Solaris.
4270         * modules/accept4 (Link): New section.
4271
4272         socket functions: Avoid link errors on Solaris.
4273         * modules/accept (Depends-on): Add socketlib.
4274         (Link): New section.
4275         * modules/bind (Depends-on): Add socketlib.
4276         (Link): New section.
4277         * modules/connect (Depends-on): Add socketlib.
4278         (Link): New section.
4279         * modules/getpeername (Depends-on): Add socketlib.
4280         (Link): New section.
4281         * modules/getsockname (Depends-on): Add socketlib.
4282         (Link): New section.
4283         * modules/getsockopt (Depends-on): Add socketlib.
4284         (Link): New section.
4285         * modules/listen (Depends-on): Add socketlib.
4286         (Link): New section.
4287         * modules/recv (Depends-on): Add socketlib.
4288         (Link): New section.
4289         * modules/recvfrom (Depends-on): Add socketlib.
4290         (Link): New section.
4291         * modules/send (Depends-on): Add socketlib.
4292         (Link): New section.
4293         * modules/sendto (Depends-on): Add socketlib.
4294         (Link): New section.
4295         * modules/setsockopt (Depends-on): Add socketlib.
4296         (Link): New section.
4297         * modules/shutdown (Depends-on): Add socketlib.
4298         (Link): New section.
4299         * modules/socket (Depends-on): Add socketlib.
4300         (Link): New section.
4301
4302 2011-09-18  Bruno Haible  <bruno@clisp.org>
4303
4304         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
4305         * tests/test-ptsname.c (main): Terminate the test if it takes longer
4306         than 5 seconds.
4307         * modules/ptsname-tests (configure.ac): Test for alarm.
4308
4309 2011-09-18  Bruno Haible  <bruno@clisp.org>
4310
4311         posix_spawn_file_actions_add*: Fix module dependencies.
4312         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
4313         posix_spawn_file_actions_init.
4314         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
4315         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
4316
4317 2011-09-18  Bruno Haible  <bruno@clisp.org>
4318
4319         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
4320         * tests/test-rename.h (test_rename): Allow error code EEXIST.
4321         * tests/test-renameat.c (main): Likewise.
4322
4323 2011-09-18  Bruno Haible  <bruno@clisp.org>
4324
4325         Tests for module 'accept4'.
4326         * modules/accept4-tests: New file.
4327         * tests/test-accept4.c: New file.
4328
4329 2011-09-18  Bruno Haible  <bruno@clisp.org>
4330
4331         Tests for module 'accept'.
4332         * modules/accept-tests: New file.
4333         * tests/test-accept.c: New file.
4334
4335 2011-09-18  Bruno Haible  <bruno@clisp.org>
4336
4337         dup2: Support for MSVC.
4338         * lib/dup2.c: Include msvc-inval.h.
4339         (rpl_dup2): Handle invalid parameter notifications during dup2 and
4340         _get_osfhandle calls.
4341         * modules/dup2 (Depends-on): Add msvc-inval.
4342         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
4343
4344         New module 'msvc-inval'.
4345         * lib/msvc-inval.h: New file.
4346         * lib/msvc-inval.c: New file.
4347         * m4/msvc-inval.m4: New file.
4348         * modules/msvc-inval: New file.
4349
4350 2011-09-17  Bruno Haible  <bruno@clisp.org>
4351
4352         Tests for module 'pclose'.
4353         * modules/pclose-tests: New file.
4354
4355         New module 'pclose'.
4356         * lib/stdio.in.h (pclose): New declaration.
4357         * lib/pclose.c: New file.
4358         * m4/pclose.m4: New file.
4359         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
4360         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
4361         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
4362         * modules/pclose: New file.
4363         * modules/popen-tests (Depends-on): Add pclose.
4364         * modules/popen-safer-tests (Depends-on): Likewise.
4365         * doc/posix-functions/pclose.texi: Mention the new module.
4366
4367 2011-09-17  Bruno Haible  <bruno@clisp.org>
4368
4369         popen: Support for MSVC.
4370         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
4371         * lib/popen.c (popen): Provide alternate definition for native Windows.
4372         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
4373         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
4374         * modules/popen (Depends-on, configure.ac): Update condition.
4375         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
4376         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
4377         fixed.
4378
4379 2011-09-17  Bruno Haible  <bruno@clisp.org>
4380
4381         isnanl, isnand, isnanf: Work around MSVC bug.
4382         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
4383
4384 2011-09-17  Bruno Haible  <bruno@clisp.org>
4385
4386         sys_socket tests: Fix recent mistake.
4387         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
4388
4389 2011-09-17  Bruno Haible  <bruno@clisp.org>
4390
4391         putenv: Support for MSVC.
4392         * modules/putenv (Depends-on): Add environ.
4393         * lib/putenv.c (environ): Disable declaration.
4394         * lib/unistd.in.h: Update comment.
4395
4396 2011-09-17  Bruno Haible  <bruno@clisp.org>
4397
4398         math: Avoid macro redefinition warnings on MSVC.
4399         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
4400         Undefine before redefining.
4401
4402 2011-09-17  Bruno Haible  <bruno@clisp.org>
4403
4404         doc: Mention functions which are declared as macros.
4405         * doc/posix-functions/*[fl].texi: Mention that some functions are
4406         defined as macros with arguments only.
4407
4408 2011-09-17  Bruno Haible  <bruno@clisp.org>
4409
4410         Add dependencies to new dirent related modules.
4411         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
4412         * modules/fts (Depends-on): Likewise.
4413         * modules/glob (Depends-on): Likewise.
4414         * modules/savedir (Depends-on): Likewise.
4415         * modules/scandir (Depends-on): Likewise.
4416         * modules/dirent-safer (Depends-on): Add opendir, closedir.
4417         * modules/fdopendir (Depends-on): Add opendir.
4418
4419 2011-09-17  Bruno Haible  <bruno@clisp.org>
4420
4421         inet_pton: Support for MSVC on Windows Vista or newer.
4422         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
4423         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
4424         HAVE_DECL_INET_PTON is defined.
4425         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
4426         On platforms with <winsock2.h>, test whether inet_pton is declared in
4427         <ws2tcpip.h>. If so, arrange to replace it.
4428         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
4429         REPLACE_INET_PTON.
4430         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
4431         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
4432         (Depends-on, configure.ac): Update condition.
4433         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
4434
4435 2011-09-17  Bruno Haible  <bruno@clisp.org>
4436
4437         inet_ntop: Support for MSVC on Windows Vista or newer.
4438         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
4439         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
4440         HAVE_DECL_INET_NTOP is defined.
4441         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
4442         On platforms with <winsock2.h>, test whether inet_ntop is declared in
4443         <ws2tcpip.h>. If so, arrange to replace it.
4444         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
4445         REPLACE_INET_NTOP.
4446         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
4447         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
4448         (Depends-on, configure.ac): Update condition.
4449         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
4450
4451 2011-09-16  Eric Blake  <eblake@redhat.com>
4452
4453         test-fsync: yet another enhancement
4454         * tests/test-fsync.c (main): Also test behavior on read-only text
4455         file.
4456
4457 2011-09-16  Bruno Haible  <bruno@clisp.org>
4458
4459         Enhance fsync, fdatasync tests.
4460         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
4461         * tests/test-fdatasync.c (main): Likewise.
4462
4463 2011-09-16  Bruno Haible  <bruno@clisp.org>
4464
4465         Support for MSVC compiler: Ensure mode_t gets defined.
4466         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
4467         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4468         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
4469         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
4470         * tests/test-fcntl-h.c: Check that mode_t is defined.
4471         * tests/test-sys_stat.c: Likewise.
4472         * tests/test-sys_types.c: Likewise.
4473         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
4474         * doc/posix-headers/sys_stat.texi: Likewise.
4475         * doc/posix-headers/sys_types.texi: Likewise.
4476
4477 2011-09-16  Bruno Haible  <bruno@clisp.org>
4478
4479         sys_stat: Support for MSVC.
4480         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
4481         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
4482         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
4483         MSVC.
4484
4485 2011-09-16  Bruno Haible  <bruno@clisp.org>
4486
4487         Support for MSVC compiler: Ensure off_t gets defined.
4488         * lib/unistd.in.h: Include <sys/types.h>.
4489         * tests/test-fcntl-h.c: Check that off_t is defined.
4490         * tests/test-sys_stat.c: Likewise.
4491         * tests/test-sys_types.c: Likewise.
4492
4493 2011-09-16  Eric Blake  <eblake@redhat.com>
4494
4495         fdatasync: port to Solaris
4496         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
4497         * modules/fdatasync (Link): Document it.
4498         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
4499
4500         fdatasync: port to MacOS X 10.7
4501         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
4502         declared.
4503         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
4504         * modules/unistd (Makefile.am): Substitute it.
4505         * lib/unistd.in.h (fdatasync): Declare on MacOS.
4506         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
4507
4508         fdatasync: minor improvements
4509         * modules/fdatasync (Depends-on): Add condition for fsync.
4510         * lib/fdatasync.c (fdatasync): Add comment.
4511         * tests/test-unistd-c++.cc: Test fdatasync.
4512
4513         unistd: update refs to newer POSIX
4514         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
4515         Suggested by Bruno Haible.
4516
4517         fdatasync: new module
4518         * modules/fsync (Description): Document difference to fdatasync.
4519         * modules/fdatasync: New module.
4520         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
4521         * lib/fdatasync.c (fdatasync): Likewise.
4522         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
4523         defaults.
4524         * modules/unistd (Makefile.am): Set witnesses.
4525         * lib/unistd.in.h (fdatasync): Declare.
4526         * MODULES.html.sh: Document it.
4527         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
4528         * modules/fdatasync-tests: New test.
4529         * tests/test-fdatasync.c: Likewise.
4530
4531 2011-09-16  Eric Blake  <eblake@redhat.com>
4532
4533         test-fsync: enhance tests
4534         * modules/fsync-tests (Depends-on): Add errno, for mingw.
4535         * tests/test-fsync.c (main): Enhance test.
4536
4537 2011-09-15  Bruno Haible  <bruno@clisp.org>
4538
4539         Support for MSVC compiler: Ensure ssize_t gets defined.
4540         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
4541         * doc/posix-headers/stdio.texi: Likewise.
4542         * modules/stdio (Depends-on): Add ssize_t.
4543         * modules/sys_socket (Depends-on): Likewise.
4544         * modules/sys_types (Depends-on): Likewise.
4545         * modules/sys_uio (Depends-on): Likewise.
4546         * modules/unistd (Depends-on): Likewise.
4547         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
4548         * tests/test-sys_types.c: Check that ssize_t is defined.
4549
4550 2011-09-14  Bruno Haible  <bruno@clisp.org>
4551
4552         Avoid using #, the m4 comment starter character, near brackets.
4553         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
4554         delimiter character in sed expressions.
4555         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
4556         Suggested by Eric Blake.
4557
4558         Properly quote AC_CHECK_DECLS' 4th argument.
4559         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
4560         argument.
4561         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
4562         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
4563         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
4564         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
4565         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
4566         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
4567         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
4568         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
4569         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
4570         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
4571         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
4572         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4573         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
4574         * m4/isinf.m4 (gl_ISINF): Likewise.
4575         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
4576         * m4/readutmp.m4 (gl_READUTMP): Likewise.
4577         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
4578         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4579         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4580         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
4581         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
4582         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
4583         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
4584         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
4585         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4586         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4587         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
4588         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
4589         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
4590         Reported by Eric Blake.
4591
4592         Properly quote AC_CHECK_DECL's 4th argument.
4593         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
4594         argument.
4595         * m4/argp.m4 (gl_ARGP): Likewise.
4596         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
4597         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
4598         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
4599         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
4600         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
4601         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
4602         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
4603         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
4604         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
4605         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
4606         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
4607         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
4608         Reported by Eric Blake.
4609
4610 2011-09-14  Eric Blake  <eblake@redhat.com>
4611
4612         opendir: avoid compile warning
4613         * lib/opendir.c (includes): Always include errno.h.
4614         Reported by Tatsuro MATSUOKA.
4615
4616 2011-09-14  Jim Meyering  <meyering@redhat.com>
4617
4618         maint.mk: sc_tight_scope: propagate failure from sub-make
4619         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
4620         Reported by Martin von Gagern.
4621
4622 2011-09-13  Bruno Haible  <bruno@clisp.org>
4623
4624         tempname: Support for MSVC.
4625         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
4626         MSVC.
4627         * modules/tempname (Depends-on): Add fcntl-h.
4628
4629 2011-09-13  Bruno Haible  <bruno@clisp.org>
4630
4631         sys_time: Support for MSVC.
4632         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
4633         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
4634         include <winsock2.h>.
4635         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
4636         function declarations that collide with POSIX.
4637         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
4638         (Makefile.am): Substitute HAVE_WINSOCK2_H.
4639
4640 2011-09-13  Bruno Haible  <bruno@clisp.org>
4641
4642         stat: Support for MSVC.
4643         * lib/stat.c: Include pathmax.h.
4644         * modules/stat (Depends-on): Add pathmax.
4645
4646         pathmax: Support for native Windows.
4647         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
4648
4649 2011-09-12  Bruno Haible  <bruno@clisp.org>
4650
4651         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
4652         * lib/dirent.in.h (struct dirent): New type.
4653         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
4654         DT_WHT): New macros.
4655         (DIR): New type.
4656         (opendir, closedir): Declare only if the module 'opendir' is enabled.
4657         (readdir, rewinddir): New declarations.
4658         * lib/dirent-private.h: New file.
4659         * lib/opendir.c: New file.
4660         * lib/readdir.c: New file.
4661         * lib/rewinddir.c: New file.
4662         * lib/closedir.c: New file.
4663         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
4664         * m4/opendir.m4: New file.
4665         * m4/readdir.m4: New file.
4666         * m4/rewinddir.m4: New file.
4667         * m4/closedir.m4: New file.
4668         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
4669         REPLACE_CLOSEDIR here.
4670         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
4671         readdir, rewinddir are declared.
4672         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
4673         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
4674         HAVE_REWINDDIR, HAVE_CLOSEDIR.
4675         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
4676         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
4677         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
4678         * modules/opendir: New file.
4679         * modules/readdir: New file.
4680         * modules/rewinddir: New file.
4681         * modules/closedir: New file.
4682         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
4683         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
4684         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
4685         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
4686         * NEWS: Mention the 'fchdir' change.
4687
4688 2011-09-11  Bruno Haible  <bruno@clisp.org>
4689
4690         asm-underscore.m4: Support for MSVC.
4691         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
4692         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
4693
4694 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
4695
4696         Doc about crypt functions.
4697         * doc/posix-functions/crypt.texi: Expand range of glibc versions
4698         needing for _GNU_SOURCE to get crypt.
4699         * doc/posix-functions/encrypt.texi: Likewise.
4700         * doc/posix-functions/setkey.texi: Likewise.
4701
4702 2011-09-11  Bruno Haible  <bruno@clisp.org>
4703
4704         doc: Update regarding MSVC 9.
4705         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
4706         tested".
4707         * doc/posix-functions/*.texi: Update with info about MSVC 9.
4708         * doc/posix-headers/*.texi: Likewise.
4709         * doc/pastposix-functions/*.texi: Likewise.
4710         * doc/glibc-functions/*.texi: Likewise.
4711         * doc/glibc-headers/*.texi: Likewise.
4712
4713 2011-09-11  Bruno Haible  <bruno@clisp.org>
4714
4715         unistd et al.: Don't assume <unistd.h> exists.
4716         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
4717         does not exist.
4718         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
4719         exist. But include <stdlib.h>.
4720         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
4721         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
4722         symlink() does not exist.
4723         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
4724         include <io.h> instead.
4725         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
4726         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
4727         include <direct.h> instead.
4728         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4729         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4730         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
4731         <io.h> instead.
4732         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
4733         correctly if the system does not have hard links.
4734         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
4735         <direct.h> instead.
4736         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
4737         it when looking for function declarations.
4738         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
4739         <direct.h> and <io.h> instead.
4740         * doc/posix-headers/unistd.texi: More details about MSVC problem.
4741
4742 2011-09-11  Bruno Haible  <bruno@clisp.org>
4743
4744         strcase: Support for MSVC.
4745         * modules/strcase (Status, Notice): Remove obsoletion mark.
4746         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
4747         * doc/posix-functions/strncasecmp.texi: Likewise.
4748
4749         strings: Don't assume <strings.h> exists.
4750         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
4751         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
4752         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
4753         * doc/posix-headers/strings.texi: Mention the MSVC problem.
4754
4755 2011-09-11  Bruno Haible  <bruno@clisp.org>
4756
4757         dirent: Don't assume <dirent.h> exists.
4758         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
4759         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
4760         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
4761         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
4762
4763 2011-09-11  Bruno Haible  <bruno@clisp.org>
4764
4765         Fix wint_t on MSVC.
4766         * lib/wchar.in.h (wint_t): On MSVC, override it.
4767         * lib/wctype.in.h (wint_t): Likewise.
4768         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
4769         MSVC.
4770         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
4771         * doc/posix-headers/wctype.texi: Likewise.
4772
4773 2011-09-11  Bruno Haible  <bruno@clisp.org>
4774
4775         sys_types: Fix typo.
4776         * lib/sys_types.in.h: Fix typo in comment.
4777         Reported by Paul Eggert.
4778
4779         Support for MSVC compiler: Ensure size_t gets defined.
4780         * modules/strings (Depends-on): Add 'sys_types'.
4781         * modules/sys_uio (Depends-on): Likewise.
4782         * lib/sys_uio.in.h: Update comment.
4783
4784         C++ tests for module 'sys_types'.
4785         * modules/sys_types-c++-tests: New file.
4786         * tests/test-sys_types-c++.cc: New file.
4787
4788         Tests for module 'sys_types'.
4789         * modules/sys_types-tests: New file.
4790         * tests/test-sys_types.c: New file.
4791
4792         New module 'sys_types'.
4793         * lib/sys_types.in.h: New file.
4794         * m4/sys_types_h.m4: New file.
4795         * modules/sys_types: New file.
4796         * doc/posix-headers/sys_types.texi: Mention the new module and the
4797         size_t problem on MSVC 9.
4798
4799 2011-09-11  Bruno Haible  <bruno@clisp.org>
4800
4801         Support for MSVC compiler: Avoid division by a literal 0.
4802         * lib/math.in.h (NAN): Define through a function call also on MSVC.
4803         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
4804         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
4805         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
4806         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
4807         * tests/infinity.h: New file.
4808         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
4809         on MSVC.
4810         * tests/test-ceilf1.c: Include infinity.h.
4811         (main): Use Infinityf.
4812         * tests/test-ceil1.c: Include infinity.h.
4813         (main): Use Infinityd.
4814         * tests/test-ceill.c: Include infinity.h.
4815         (main): Use Infinityl.
4816         * tests/test-dprintf-posix.c: Include infinity.h.
4817         (test_function): Use Infinityd.
4818         * tests/test-floorf1.c: Include infinity.h.
4819         (main): Use Infinityf.
4820         * tests/test-floor1.c: Include infinity.h.
4821         (main): Use Infinityd.
4822         * tests/test-floorl.c: Include infinity.h.
4823         (main): Use Infinityl.
4824         * tests/test-fprintf-posix.c: Include infinity.h.
4825         (test_function): Use Infinityd.
4826         * tests/test-frexp.c: Include infinity.h.
4827         (main): Use Infinityd.
4828         * tests/test-frexpl.c: Include infinity.h.
4829         (main): Use Infinityl.
4830         * tests/test-isfinite.c: Include infinity.h.
4831         (test_isfinitef): Use Infinityf.
4832         (test_isfinited): Use Infinityd.
4833         (test_isfinitel): Use Infinityl.
4834         * tests/test-isinf.c: Include infinity.h.
4835         (test_isinff): Use Infinityf.
4836         (test_isinfd): Use Infinityd.
4837         (test_isinfl): Use Infinityl.
4838         * tests/test-isnan.c: Include infinity.h.
4839         (test_float): Use Infinityf.
4840         (test_double): Use Infinityd.
4841         (test_long_double): Use Infinityl.
4842         * tests/test-isnanf.h: Include infinity.h.
4843         (main): Use Infinityf.
4844         * tests/test-isnand.h: Include infinity.h.
4845         (main): Use Infinityd.
4846         * tests/test-isnanl.h: Include infinity.h.
4847         (main): Use Infinityl.
4848         * tests/test-ldexpl.c: Include infinity.h.
4849         (main): Use Infinityl.
4850         * tests/test-printf-posix.h: Include infinity.h.
4851         (test_function): Use Infinityd.
4852         * tests/test-roundf1.c: Include infinity.h.
4853         (main): Use Infinityf.
4854         * tests/test-round1.c: Include infinity.h.
4855         (main): Use Infinityd.
4856         * tests/test-roundl.c: Include infinity.h.
4857         (main): Use Infinityl.
4858         * tests/test-signbit.c: Include infinity.h.
4859         (test_signbitf): Use Infinityf.
4860         (test_signbitd): Use Infinityd.
4861         (test_signbitl): Use Infinityl.
4862         * tests/test-snprintf-posix.h: Include infinity.h.
4863         (test_function): Use Infinityd, Infinityl.
4864         * tests/test-sprintf-posix.h: Include infinity.h.
4865         (test_function): Use Infinityd, Infinityl.
4866         * tests/test-truncf1.c: Include infinity.h.
4867         (main): Use Infinityf.
4868         * tests/test-trunc1.c: Include infinity.h.
4869         (main): Use Infinityd.
4870         * tests/test-truncl.c: Include infinity.h.
4871         (main): Use Infinityl.
4872         * tests/test-vasnprintf-posix.c: Include infinity.h.
4873         (test_function): Use Infinityd, Infinityl.
4874         * tests/test-vasprintf-posix.c: Include infinity.h.
4875         (test_function): Use Infinityd, Infinityl.
4876         * modules/ceilf-tests (Files): Add tests/infinity.h.
4877         * modules/ceil-tests (Files): Likewise.
4878         * modules/ceill-tests (Files): Likewise.
4879         * modules/dprintf-posix-tests (Files): Likewise.
4880         * modules/floorf-tests (Files): Likewise.
4881         * modules/floor-tests (Files): Likewise.
4882         * modules/floorl-tests (Files): Likewise.
4883         * modules/fprintf-posix-tests (Files): Likewise.
4884         * modules/frexp-tests (Files): Likewise.
4885         * modules/frexp-nolibm-tests (Files): Likewise.
4886         * modules/frexpl-tests (Files): Likewise.
4887         * modules/frexpl-nolibm-tests (Files): Likewise.
4888         * modules/isfinite-tests (Files): Likewise.
4889         * modules/isinf-tests (Files): Likewise.
4890         * modules/isnan-tests (Files): Likewise.
4891         * modules/isnanf-tests (Files): Likewise.
4892         * modules/isnanf-nolibm-tests (Files): Likewise.
4893         * modules/isnand-tests (Files): Likewise.
4894         * modules/isnand-nolibm-tests (Files): Likewise.
4895         * modules/isnanl-tests (Files): Likewise.
4896         * modules/isnanl-nolibm-tests (Files): Likewise.
4897         * modules/ldexpl-tests (Files): Likewise.
4898         * modules/printf-posix-tests (Files): Likewise.
4899         * modules/roundf-tests (Files): Likewise.
4900         * modules/round-tests (Files): Likewise.
4901         * modules/roundl-tests (Files): Likewise.
4902         * modules/signbit-tests (Files): Likewise.
4903         * modules/snprintf-posix-tests (Files): Likewise.
4904         * modules/sprintf-posix-tests (Files): Likewise.
4905         * modules/truncf-tests (Files): Likewise.
4906         * modules/trunc-tests (Files): Likewise.
4907         * modules/truncl-tests (Files): Likewise.
4908         * modules/vasnprintf-posix-tests (Files): Likewise.
4909         * modules/vasprintf-posix-tests (Files): Likewise.
4910         * modules/vdprintf-posix-tests (Files): Likewise.
4911         * modules/vfprintf-posix-tests (Files): Likewise.
4912         * modules/vprintf-posix-tests (Files): Likewise.
4913         * modules/vsnprintf-posix-tests (Files): Likewise.
4914         * modules/vsprintf-posix-tests (Files): Likewise.
4915         * modules/xprintf-posix-tests (Files): Likewise.
4916
4917 2011-09-11  Bruno Haible  <bruno@clisp.org>
4918
4919         Ensure pid_t gets defined.
4920         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
4921         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
4922         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
4923         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4924         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
4925         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
4926         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
4927         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4928         * tests/test-fcntl-h.c: Check that pid_t is defined.
4929         * tests/test-sched.c: Likewise.
4930         * tests/test-termios.c: Likewise.
4931         * tests/test-time.c: Likewise.
4932         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
4933         * doc/posix-headers/signal.texi: Likewise.
4934         * doc/posix-headers/sys_types.texi: Likewise.
4935         * doc/posix-headers/time.texi: Likewise.
4936
4937 2011-09-11  Bruno Haible  <bruno@clisp.org>
4938
4939         acl: Fix compilation on Solaris 10 (older version).
4940         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
4941         of ACE_EVERYONE.
4942         * lib/set-mode-acl.c (qset_acl): Likewise.
4943         Reported by Christian Jullien <eligis@orange.fr>.
4944
4945 2011-09-10  Bruno Haible  <bruno@clisp.org>
4946
4947         iconv, unsetenv: Add support for MSVC compiler.
4948         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
4949         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
4950
4951 2011-09-10  Bruno Haible  <bruno@clisp.org>
4952
4953         *printf: Add support for MSVC compiler.
4954         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
4955         handles the exception caused by the %n directive. When cross-compiling,
4956         guess no on native Windows.
4957         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
4958         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
4959         emulate it through vsnprintf.
4960         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
4961         * doc/posix-functions/dprintf.texi: Update documentation regarding
4962         MSVC 9.
4963         * doc/posix-functions/fprintf.texi: Likewise.
4964         * doc/posix-functions/printf.texi: Likewise.
4965         * doc/posix-functions/snprintf.texi: Likewise.
4966         * doc/posix-functions/sprintf.texi: Likewise.
4967         * doc/posix-functions/swprintf.texi: Likewise.
4968         * doc/posix-functions/vdprintf.texi: Likewise.
4969         * doc/posix-functions/vfprintf.texi: Likewise.
4970         * doc/posix-functions/vprintf.texi: Likewise.
4971         * doc/posix-functions/vsnprintf.texi: Likewise.
4972         * doc/posix-functions/vsprintf.texi: Likewise.
4973         * doc/glibc-functions/asprintf.texi: Likewise.
4974         * doc/glibc-functions/obstack_printf.texi: Likewise.
4975         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
4976         * doc/glibc-functions/vasprintf.texi: Likewise.
4977
4978 2011-09-10  Bruno Haible  <bruno@clisp.org>
4979
4980         nocrash: Add support for native Windows.
4981         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
4982
4983 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
4984             Bruno Haible  <bruno@clisp.org>
4985
4986         absolute-header, include-next: Add support for MSVC compiler.
4987         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
4988         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
4989         directory separator in #line directives.
4990         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
4991         recognize also backslash as directory separator in #line directives.
4992
4993 2011-09-08  Jim Meyering  <meyering@redhat.com>
4994
4995         maint.mk: mark the post-release commit log with "maint: " prefix
4996         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
4997         one-line commit-log summary.
4998
4999 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
5000             Bruno Haible  <bruno@clisp.org>
5001
5002         Doc about crypt functions.
5003         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
5004         systems.
5005         * doc/posix-functions/encrypt.texi: Likewise.
5006         * doc/posix-functions/setkey.texi: Likewise.
5007
5008 2011-09-08  Simon Josefsson  <simon@josefsson.org>
5009
5010         * lib/gc.h: Fix copyright header.
5011
5012 2011-09-07  Bruno Haible  <bruno@clisp.org>
5013
5014         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
5015         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
5016         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
5017
5018 2011-09-07  Bruno Haible  <bruno@clisp.org>
5019
5020         openat: Work around compilation error with OSF/1 5.1 DTK cc.
5021         * lib/fopen.c: Use different syntax for include of <stdio.h>.
5022         * lib/freopen.c: Likewise.
5023         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
5024         * lib/lstat.c: Likewise.
5025         * lib/stat.c: Likewise.
5026         * lib/open.c: Use different syntax for include of <fcntl.h>.
5027         * lib/openat.c: Include fcntl.h again, explicitly.
5028
5029 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
5030
5031         parse-datetime: document the newly accepted format
5032         * doc/parse-datetime.texi (Combined date and time of day items):
5033         New section.
5034
5035 2011-09-06  Bruno Haible  <bruno@clisp.org>
5036
5037         acl: Fix a test failure on newer Solaris 10 with ZFS.
5038         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
5039         ENOSYS as no ACL.
5040         Reported by Jim Meyering.
5041
5042 2011-09-06  Bruno Haible  <bruno@clisp.org>
5043
5044         acl: Update for AIX >= 5.3 with NFS.
5045         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
5046         ENOSYS as no ACL.
5047
5048         acl: Fix a test failure on AIX >= 5.3 with NFS.
5049         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
5050         as no ACL.
5051
5052 2011-09-06  Bruno Haible  <bruno@clisp.org>
5053
5054         acl: Fix a test failure on IRIX 6.5 with NFS.
5055         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
5056         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
5057         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
5058         * lib/copy-acl.c (qcopy_acl): Likewise.
5059
5060 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
5061
5062         openat: port to AIX 7.1 with large files
5063         AIX 7.1 does a "#define openat open64at" if large files are in use,
5064         so we can't simply #undef openat.  Use the orig_openat trick (similar
5065         to orig_open in lib/open.c) to work around the problem.  Problem
5066         reported by Kevin Brott for GNU tar, in the thread containing
5067         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
5068         * lib/openat.c (__need_system_fcntl_h): Define first.
5069         Include <fcntl.h> and <sys/types.h> before undefining.
5070         (orig_openat) [HAVE_OPENAT]: New inline function.
5071         (openat) [HAVE_OPENAT]: Do not undef.
5072         (rpl_openat): Use orig_openat, not openat.
5073
5074 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
5075             Bruno Haible  <bruno@clisp.org>
5076
5077         acl: Avoid errors on NonStop Kernel.
5078         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
5079         ENOTSUP errors.
5080
5081 2011-09-05  Bruno Haible  <bruno@clisp.org>
5082
5083         acl: Clean up Solaris code.
5084         * lib/acl-internal.h: Remove no-op #if.
5085         * lib/file-has-acl.c: Likewise.
5086         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
5087         * lib/copy-acl.c (qcopy_acl): Likewise.
5088
5089 2011-09-05  Bruno Haible  <bruno@clisp.org>
5090
5091         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
5092         binaries built on the original Solaris 10.
5093         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
5094         trivial.
5095
5096 2011-09-05  Bruno Haible  <bruno@clisp.org>
5097
5098         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
5099         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
5100         10.
5101         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
5102         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
5103         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
5104         instead of acl_get, facl_get, acl_set, facl_set.
5105
5106 2011-09-05  Bruno Haible  <bruno@clisp.org>
5107
5108         copy-file: Try unit tests on more file systems.
5109         * tests/test-copy-file-1.sh: New file.
5110         * tests/test-copy-file-2.sh: New file.
5111         * modules/copy-file-tests (Files): Add them.
5112         (Makefile.am): Add them to TESTS.
5113
5114         acl: Try unit tests on more file systems.
5115         * tests/test-file-has-acl-1.sh: New file.
5116         * tests/test-file-has-acl-2.sh: New file.
5117         * tests/test-set-mode-acl-1.sh: New file.
5118         * tests/test-set-mode-acl-2.sh: New file.
5119         * tests/test-copy-acl-1.sh: New file.
5120         * tests/test-copy-acl-2.sh: New file.
5121         * modules/acl-tests (Files): Add them.
5122         (Makefile.am): Add them to TESTS.
5123
5124 2011-09-04  Bruno Haible  <bruno@clisp.org>
5125
5126         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
5127         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
5128         10.
5129         (OLD_ALLOW, OLD_DENY): New macros.
5130         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
5131         ACE_ACCESS_ALLOWED_ACE_TYPE.
5132         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
5133         ACE_ACCESS_DENIED_ACE_TYPE.
5134         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
5135         (NEW_ACE_EXECUTE): Fix value.
5136         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
5137         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
5138         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
5139         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
5140         NEW_ACE_SYNCHRONIZE): New macros.
5141         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
5142         instead of acl_fromtext, acl_set, facl_set.
5143         Fixes a coreutils/tests/cp/perm failure.
5144
5145 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
5146
5147         openat: test for fstatat (..., 0) bug
5148         Further testing with tar suggests that fstatat (..., 0)
5149         does not work in general, on AIX 7.1; see
5150         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
5151         So, give up entirely on AIX 7.1's fstatat, and fall back on our
5152         replacement fstatat (which is what older AIX releases were using
5153         anyway).
5154         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
5155         use is now changed to orig_fstatat.  This was probably the right
5156         thing to do anyway.
5157         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
5158         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
5159         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
5160         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
5161         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
5162         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
5163         if the bug is found.
5164
5165         openat: test for fstatat (AT_FDCWD, ..., 0) bug
5166         This tests for another fstatat bug on AIX 7.1:
5167         fstatat (AT_FDCWD, ..., 0) does not work.  See
5168         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
5169         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
5170         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
5171         (rpl_fstatat): Adjust so that it works around either (or both)
5172         bugs if present.
5173         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
5174
5175 2011-09-03  Karl Berry  <karl@gnu.org>
5176
5177         * doc/regex.texi (Character Class Operators): Avoid literal ":"
5178         in index entries.
5179
5180 2011-09-02  Bruno Haible  <bruno@clisp.org>
5181
5182         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
5183         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
5184         values of AR, ARFLAGS, RANLIB.
5185         Reported by John W. Eaton <jwe@gnu.org> for Octave.
5186
5187 2011-09-02  Bruno Haible  <bruno@clisp.org>
5188
5189         Find 'ar' program that fits with --host argument.
5190         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
5191
5192 2011-09-02  Bruno Haible  <bruno@clisp.org>
5193
5194         tests: init.sh: Support any non-GNU diff.
5195         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
5196         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
5197         Solaris 8.
5198
5199 2011-09-02  Bruno Haible  <bruno@clisp.org>
5200
5201         tests: init.sh: work also with any non-GNU diff that supports -u
5202         * tests/init.sh: Relax check for diff -u support.
5203         Rather than checking for GNU diff via --version, simply check
5204         for support for -u itself.  Useful at least on OpenBSD 4.9,
5205         AIX 7.1, IRIX 6.5, and Solaris 10.
5206
5207 2011-09-01  Bruno Haible  <bruno@clisp.org>
5208
5209         strtoimax, strtoumax: Document problem on HP-UX 11.
5210         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
5211         * doc/posix-functions/strtoumax.texi: Likewise.
5212
5213 2011-09-01  Bruno Haible  <bruno@clisp.org>
5214
5215         strtoumax: Avoid link error on OSF/1 with DTK cc.
5216         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
5217         defined as a function.
5218         * modules/strtoumax (Depends-on, configure.ac): Test only whether
5219         strtoumax is defined, not whether it is declared.
5220
5221 2011-09-01  Bruno Haible  <bruno@clisp.org>
5222
5223         strtoimax: Avoid link error on OSF/1 with DTK cc.
5224         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
5225         defined as a function.
5226         * modules/strtoimax (Depends-on, configure.ac): Test only whether
5227         strtoimax is defined, not whether it is declared.
5228
5229 2011-09-01  Bruno Haible  <bruno@clisp.org>
5230
5231         imaxdiv: Avoid link error on OSF/1 with DTK cc.
5232         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
5233         as a function.
5234         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
5235         whether it is declared.
5236
5237 2011-09-01  Bruno Haible  <bruno@clisp.org>
5238
5239         imaxabs: Avoid link error on OSF/1 with DTK cc.
5240         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
5241         as a function.
5242         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
5243         whether it is declared.
5244
5245 2011-09-01  Bruno Haible  <bruno@clisp.org>
5246
5247         Tests for module 'strtoumax'.
5248         * modules/strtoumax-tests: New file.
5249         * tests/test-strtoumax.c: New file.
5250
5251         Tests for module 'strtoimax'.
5252         * modules/strtoimax-tests: New file.
5253         * tests/test-strtoimax.c: New file.
5254
5255         Tests for module 'imaxdiv'.
5256         * modules/imaxdiv-tests: New file.
5257         * tests/test-imaxdiv.c: New file.
5258
5259         Tests for module 'imaxabs'.
5260         * modules/imaxabs-tests: New file.
5261         * tests/test-imaxabs.c: New file.
5262
5263 2011-09-01  Bruno Haible  <bruno@clisp.org>
5264
5265         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
5266         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
5267         pthread_create.
5268
5269 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5270
5271         openat: work around AIX 7.1 fstatat issue
5272         This should fix the problem that was not properly fixed
5273         in the previous change, dated 2011-08-30.
5274         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
5275         __need_system_stat_h defined.
5276         (orig_fstatat) [HAVE_FSTATAT]: New function.
5277         (rpl_fstatat): Go back to the old way of doing things,
5278         except call orig_fstatat instead of fstatat.
5279         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
5280         Remove unnecessary check whether fstatat fills in st_size etc.
5281
5282 2011-09-01  Bruno Haible  <bruno@clisp.org>
5283
5284         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
5285         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
5286         just include the system's header.
5287
5288 2011-08-31  Jim Meyering  <meyering@redhat.com>
5289
5290         tests: avoid spurious assertion failure in test-float.c on ppc64
5291         * tests/test-float.c (test_long_double): Comment out an assertion,
5292         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
5293         with gcc-4.4.4.
5294
5295         maint: indent with spaces, not TABs
5296         I need to get in the habit of running gnulib's "make check".
5297         Both of these would have been caught.
5298         * m4/largefile.m4: Indent with spaces, not TABs.
5299         * lib/parse-datetime.y (iso_8601_time): Likewise.
5300         Spotted by Pádraig Brady.
5301
5302         test-parse-datetime.c: accommodate a relatively strict gcc warning
5303         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
5304         to avoid a warning from gcc's -Werror=missing-declarations.
5305         Insert a few spaces-before-funcall-parenthesis.
5306
5307 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
5308
5309         parse-datetime: accept ISO 8601 date and time rep with "T" separator
5310         The parser now accepts ISO 8601 date-time strings with "T" as the
5311         separator.  It has long parsed dates like "2004-02-29 16:21:42"
5312         with a space between the date and time strings.  Now it also parses
5313         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
5314         variants like "2004-02-29T16:21:42.333-07:00"
5315         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
5316         of day representation using the 'T' separator character.
5317         * doc/parse-datetime.texi (General date syntax): replace use of
5318         deprecated --iso-8601 option with --rfc-3339 in example of date
5319         command output formats that can be parsed.
5320         * tests/test-parse-datetime.c (tm_diff): New function, taken from
5321         lib/parse-datetime.y.
5322         (gmt_offset): New function.
5323         (main): Add additional test cases to validate ISO8601 extended
5324         date and time of day parsing.
5325
5326 2011-08-31  Bruno Haible  <bruno@clisp.org>
5327
5328         freopen: Documentation.
5329         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
5330         name.
5331         Reported by Claudio Bley <claudio.bley@gmail.com>.
5332
5333 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
5334
5335         freopen: Don't crash if the filename argument is NULL.
5336         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
5337         NULL.
5338
5339 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
5340
5341         openat: work around AIX 7.1 fstatat bug
5342         Problem reported by Kevin Brott for GNU tar, in the thread containing
5343         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
5344         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
5345         FSTATAT_ST_SIZE_ETC_BROKEN.
5346         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
5347         rpl_fstatat.
5348         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
5349         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
5350         AC_CHECK_FUNCS_ONCE for fstatat.
5351         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
5352         fchmodat, mkdirat, openat and unlinkat.
5353
5354 2011-08-30  Bruno Haible  <bruno@clisp.org>
5355
5356         Avoid endless recursions if config.h includes some header files.
5357         * lib/fopen.c (__need_FILE): Define already before including config.h.
5358         * lib/freopen.c (__need_FILE): Likewise.
5359         * lib/open.c (__need_system_fcntl_h): Likewise.
5360         * lib/stat.c (__need_system_sys_stat_h): Likewise.
5361         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
5362         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5363
5364 2011-08-25  Karl Berry  <karl@gnu.org>
5365
5366         * config/srclist.txt (ylwrap): new try.
5367         * build-aux/ylwrap: new file.
5368
5369 2011-08-23  Bruno Haible  <bruno@clisp.org>
5370
5371         tmpdir: Use a good default directory on native Windows.
5372         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
5373         (P_tmpdir): Default to _P_tmpdir on native Windows.
5374         (path_search): On native Windows, try the value returned by GetTempPath
5375         before trying P_tmpdir.
5376         * modules/tmpdir (Depends-on): Add pathmax.
5377         Suggested by John Darrington <john@darrington.wattle.id.au>.
5378
5379 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
5380
5381         doc: fix typo in README-release
5382         * top/README-release: Capitalize first word of a sentence.
5383
5384 2011-08-19  Jim Meyering  <meyering@redhat.com>
5385
5386         fts: do not exhaust memory when processing million-entry directories
5387         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
5388         directory would require about 256*N bytes of memory.  Thus, it was
5389         easy to construct a directory too large to be processed by any of
5390         those tools.  With this change, fts' maximum memory utilization is
5391         now limited to around 30MB.
5392         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
5393         (fts_read): When we've processed the final entry (i.e., when
5394         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
5395         using the parent entry to read any remaining entries.  Dispatch
5396         depending on what fts_build returns:
5397         - NULL+stop, aka failure: stop
5398         - NULL otherwise: move up in the dir hierarchy
5399         - non-NULL: handle this new entry
5400         (fts_build): Declare and use new local, continue_readdir.
5401         Prepare to be called from fts_read, when the entries
5402         from a partially-read directory have just been exhausted.
5403         In that case, we'll skip the opendir and instead use the parent's
5404         fts_dirp and derive dir_fd from that.
5405         Finally, in the readdir loop, if we read max_entries entries,
5406         exit the loop ensuring *not* to call closedir.  This is required
5407         so that fts_dirp can be reused on a subsequent call.
5408         Prompted by Ben England's report of memory exhaustion in find
5409         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
5410
5411         maint: fts: move decl of `dp' down into while loop; split a long line
5412         * lib/fts.c (fts_build): No semantic change.
5413
5414         fts: add/use new struct member, fts_dirp
5415         We are about to use this to manage any directory with
5416         too many entries to read all of them into memory at once.
5417         To do that, we'll need to save the DIR* pointer in each
5418         affected FTSENT struct.
5419         * lib/fts_.h: Include <dirent.h>.
5420         (struct FTSENT) [fts_dirp]: New member.
5421         * lib/fts.c (closedir_and_clear): Define.
5422         Use it in place of closedir so that we are sure to
5423         clear the new fts_dirp member when done with it.
5424         (fts_alloc): Initialize the new member.
5425         (fts_lfree): Free, if needed.
5426
5427         maint: fts: give __opendir2 a new parameter and rename
5428         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
5429         than surreptitiously using sole caller's "dir_fd".
5430         (fts_opendir): Rename from __opendir2.
5431
5432         maint: fts.c: remove __opendir2's now-unused parameter, oflag
5433         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
5434
5435         maint: fts.c: correct off-by-one indentation
5436         * lib/fts.c (fts_build): Correct indentation, change style
5437         of a couple of block comments, and bracing style.
5438
5439         maint: fts.c: move __opendir2 #define "up" out of function body
5440         * lib/fts.c (__opendir2): Move "up".  No semantic change.
5441
5442         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
5443         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
5444         out for a long time and besides was useful only on BSD systems.
5445
5446 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
5447
5448         regex: port to Stratus OpenVOS
5449         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
5450         define to empty, rather than attempting nonportable optimizations.
5451         Problem reported by Paul Green in:
5452         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
5453         and fix suggested by Eric Blake in:
5454         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
5455
5456 2011-08-17  Eric Blake  <eblake@redhat.com>
5457
5458         getcwd: fix test failures on mingw
5459         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
5460         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
5461         test if long directory cannot be created, and allow mingw errno.
5462
5463         getcwd-lgpl: fix m4 to match relaxed test for BSD
5464         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
5465         (gl_FUNC_GETCWD_SIGNATURE): New macro.
5466         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
5467         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
5468         signature problem.
5469
5470         getcwd: fix compilation on mingw64
5471         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
5472         getcwd.
5473         Reported by Marc-André Lureau.
5474
5475         pipe2: silence compiler warning
5476         * lib/pipe2.c (pipe2): Hide label if it is not used.
5477
5478 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
5479
5480         relocatable-prog: fix link error
5481         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
5482         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
5483         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
5484         into modules/relocatable-lib without noticing that
5485         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
5486         also needs to build relocatable.c.
5487
5488 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
5489
5490         getaddrinfo: fix sh typo in gai_strerrorA decl checking
5491         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
5492         shell code: it contained a 'break' that was not in a loop.
5493         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
5494         via a shell-language loop; this may have been true in old Autoconf
5495         versions, but it's not true in Autoconf 2.68.  I found this bug
5496         when testing coreutils git on Solaris 8, whose shell complains
5497         about the syntax error.
5498
5499 2011-08-12  Simon Josefsson  <simon@josefsson.org>
5500
5501         * lib/base64.c: Fix comment to reference RFC 4648.
5502         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
5503         <gvtulder@gmail.com>.
5504
5505 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
5506
5507         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
5508
5509         po/Makefile.in.in: fix make -q problem
5510         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
5511         rule, since there's no file named 'check-macro-version' and its
5512         use as a file breaks make -q.
5513         (all): Don't depend on check-macro-version.
5514         (CHECK_MACRO_VERSION): New macro.
5515         (stamp-po): Use it.
5516
5517         configmake: fix make -q problem
5518         * modules/configmake (configmake.h): Update configmake.h's time stamp
5519         even if the file does not change.  Otherwise, 'make -q' fails.
5520         Problem reported by Simon Josefsson in
5521         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
5522
5523 2011-08-11  Jim Meyering  <meyering@redhat.com>
5524
5525         git-version-gen: correct the advice in a comment
5526         * build-aux/git-version-gen: Correct comment.
5527         Don't recommend to list .tarball-version in .gitignore.
5528
5529 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
5530
5531         base64: fix off-by-one buffer size bug
5532         Problem and (trivial) fix reported by Gijs van Tulder in
5533         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
5534         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
5535         * tests/test-base64.c (main): Catch the bug.
5536
5537 2011-08-10  Eric Blake  <eblake@redhat.com>
5538
5539         closein: correct comments
5540         * lib/closein.c (close_stdin): Improve comments.
5541
5542 2011-08-09  Bruno Haible  <bruno@clisp.org>
5543
5544         More tests for 'fseeko'.
5545         * tests/test-fseeko3.c: New file, from Eric Blake.
5546         * tests/test-fseeko3.sh: New file.
5547         * modules/fseeko-tests (Files): Add them.
5548         (TESTS): Add test-fseeko3.sh.
5549         (check_PROGRAMS): Add test-fseeko3.
5550
5551 2011-08-09  Eric Blake  <eblake@redhat.com>
5552
5553         fseeko: remove unneeded hack
5554         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
5555
5556         fseeko: fix bug on glibc
5557         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
5558         Reported by John W. Eaton.
5559
5560 2011-08-08  Bruno Haible  <bruno@clisp.org>
5561
5562         unictype/base: Fix interoperability with preinstalled libunistring.
5563         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
5564         Reported by Simon Josefsson.
5565
5566 2011-08-08  Bruno Haible  <bruno@clisp.org>
5567
5568         iswblank: Detect declaration correctly.
5569         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
5570         AC_CHECK_DECLS invocation.
5571
5572 2011-08-08  Bruno Haible  <bruno@clisp.org>
5573
5574         tcgetsid: Detect declaration correctly.
5575         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
5576         AC_CHECK_DECLS invocation.
5577         Reported by Simon Josefsson.
5578
5579 2011-08-08  Eric Blake  <eblake@redhat.com>
5580
5581         largefile: fix typo that regressed large file support
5582         * modules/largefile (configure.ac-early): Fix section name.
5583
5584 2011-08-06  Karl Berry  <karl@gnu.org>
5585
5586         * MODULES.html.sh (func_all_files): _Noreturn is no longer
5587         a separate module.
5588
5589 2011-08-05  Simon Josefsson  <simon@josefsson.org>
5590
5591         openat: Fix warnings and commens when building unlinkat.c on Hurd.
5592         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
5593         get prototype for free.
5594
5595 2011-08-04  Bruno Haible  <bruno@clisp.org>
5596
5597         Tests for module 'pathmax'.
5598         * modules/pathmax-tests: New file.
5599         * tests/test-pathmax.c: New file.
5600
5601         canonicalize-lgpl: Support larger filenames on the Hurd.
5602         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
5603         Reported by Paul Eggert.
5604
5605         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
5606         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
5607         * lib/chdir-long.h: Include pathmax.h.
5608         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
5609         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
5610         (PATH_MAX): Remove code that is done by pathmax.h.
5611         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
5612         * lib/tmpfile.c: Add a comment.
5613         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
5614         * modules/chdir-long (Depends-on): Add pathmax.
5615         * modules/getcwd (Depends-on): Add pathmax.
5616         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
5617         is not defined.
5618         * doc/posix-headers/limits.texi: Mention the pathmax module.
5619         * NEWS: Mention the change.
5620
5621 2011-08-02  Bruno Haible  <bruno@clisp.org>
5622
5623         pthread_sigmask: Actually use results of gl_THREADLIB.
5624         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
5625         gl_THREADLIB, not gl_[]THREADLIB.
5626         Reported by Eric Blake.
5627
5628 2011-08-02  Jim Meyering  <meyering@redhat.com>
5629
5630         maint.mk: relax the default _gl_TS_function_match regexp
5631         * top/maint.mk (_gl_TS_function_match): Don't require at least one
5632         space between function name and "(" in an "extern" declaration.
5633         That would fail to match a decl with no space there: extern void foo();
5634
5635 2011-07-31  Iain Nicol  <iain@thenicols.net>
5636
5637         git-version-gen: document that EXTRA_DIST must include .version
5638         * build-aux/git-version-gen: In the how-to-use comment, document
5639         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
5640         will fail when run from an unpacked distribution tarball.
5641
5642 2011-08-01  Bruno Haible  <bruno@clisp.org>
5643
5644         wctype-h: Fix last change.
5645         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
5646         REPLACE_TOWLOWER to 0.
5647         Reported by Sam Steingold <sds@gnu.org>.
5648
5649 2011-07-31  Bruno Haible  <bruno@clisp.org>
5650
5651         frexpl: Update autoconf test.
5652         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
5653         according to changes of 2011-06-20.
5654
5655 2011-07-31  Bruno Haible  <bruno@clisp.org>
5656
5657         sys_utsname: Add support for Minix.
5658         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
5659         <sys/utsname.h>.
5660         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
5661         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
5662
5663 2011-07-31  Bruno Haible  <bruno@clisp.org>
5664
5665         strings: Add support for Minix.
5666         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
5667         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
5668         * doc/posix-headers/strings.texi: Document the Minix problem.
5669
5670 2011-07-31  Bruno Haible  <bruno@clisp.org>
5671
5672         wctype-h: Add support for Minix.
5673         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
5674         REPLACE_TOWLOWER.
5675         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
5676         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
5677         REPLACE_ISWCNTRL.
5678
5679 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
5680
5681         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
5682         This is a performance improvement for 64-bit hosts: it causes the
5683         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
5684
5685 2011-07-31  Bruno Haible  <bruno@clisp.org>
5686
5687         stdioext: Add support for Minix.
5688         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
5689         * lib/fpurge.c (fpurge): Likewise.
5690         * lib/freadahead.c (freadahead): Likewise.
5691         * lib/freadable.c (freadable): Likewise.
5692         * lib/freading.c (freading): Likewise.
5693         * lib/freadptr.c (freadptr): Likewise.
5694         * lib/freadseek.c (freadptrinc): Likewise.
5695         * lib/fseeko.c (rpl_fseeko): Likewise.
5696         * lib/fseterr.c (fseterr): Likewise.
5697         * lib/fwritable.c (fwritable): Likewise.
5698         * lib/fwriting.c (fwriting): Likewise.
5699         * lib/fflush.c (clear_ungetc_buffer): Update comment.
5700         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
5701
5702 2011-07-31  Bruno Haible  <bruno@clisp.org>
5703
5704         errno: Port to Minix.
5705         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
5706         ECONNABORTED are defined.
5707         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
5708         GNULIB_defined_ECONNABORTED): New macros.
5709         * lib/strerror-override.h (strerror_override): Test also
5710         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
5711         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
5712         ECONNABORTED.
5713         * doc/posix-headers/errno.texi: Mention the Minix problem.
5714
5715 2011-07-31  Bruno Haible  <bruno@clisp.org>
5716
5717         Work around declaration collisions on Minix.
5718         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
5719         defined, set REPLACE_MBSINIT.
5720         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
5721         defined, set REPLACE_MBRTOWC.
5722         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
5723         set REPLACE_MBRLEN.
5724         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
5725         defined, set REPLACE_MBSRTOWCS.
5726         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
5727         defined, set REPLACE_WCRTOMB.
5728         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
5729         defined, set REPLACE_WCSRTOMBS.
5730
5731 2011-07-31  Bruno Haible  <bruno@clisp.org>
5732
5733         Add support for Minix with ACK compiler.
5734         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
5735         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
5736         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
5737
5738 2011-07-31  Bruno Haible  <bruno@clisp.org>
5739
5740         Documentation about Minix.
5741         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
5742         * doc/glibc-headers/*.texi: Likewise.
5743         * doc/posix-functions/*.texi: Likewise.
5744         * doc/glibc-functions/*.texi: Likewise.
5745
5746 2011-07-31  Bruno Haible  <bruno@clisp.org>
5747
5748         snippet/warn-on-use: Fix indentation.
5749         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
5750
5751 2011-07-25  Jim Meyering  <meyering@redhat.com>
5752
5753         tests: test-update-copyright.sh: remove unnecessary "rm" commands
5754         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
5755         commands.
5756
5757 2011-07-27  Jim Meyering  <meyering@redhat.com>
5758
5759         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
5760         * top/maint.mk (gl_extract_significant_defines_): Now that
5761         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
5762         gnulib/lib/signal.in.h, and now that we recommend to
5763         define-if-undefined those two symbols in application code,
5764         we must filter them out of the "significant" list.
5765         This avoids a "make syntax-check" failure in coreutils.
5766
5767 2011-07-26  Eric Blake  <eblake@redhat.com>
5768
5769         warnings: add comments about previous patch
5770         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
5771         * m4/include_next.m4: Likewise.
5772         * m4/warn-on-use.m4: Likewise.
5773         * m4/warnings.m4: Likewise, and simplify use.
5774         Suggested by Stefano Lattarini.
5775
5776         include-next, warnings: support older autoconf
5777         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
5778         AS_VAR_PUSHDEF in a way that works with older autoconf.
5779         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
5780         Reported by Daniel P. Berrange.
5781
5782 2011-07-25  Bruno Haible  <bruno@clisp.org>
5783
5784         fseek, ftell: Fix doc.
5785         * doc/posix-functions/fseek.texi: Reword statement about
5786         AC_SYS_LARGEFILE.
5787         * doc/posix-functions/ftell.texi: Likewise.
5788
5789 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5790             Bruno Haible  <bruno@clisp.org>
5791
5792         Add dependencies to the 'largefile' module.
5793         * modules/fopen (Depends-on): Add 'largefile'.
5794         * modules/freopen (Depends-on): Likewise.
5795         * modules/fseeko (Depends-on): Likewise.
5796         * modules/ftello (Depends-on): Likewise.
5797         * modules/glob (Depends-on): Likewise.
5798         * modules/lseek (Depends-on): Likewise.
5799         * modules/lstat (Depends-on): Likewise.
5800         * modules/mkostemp (Depends-on): Likewise.
5801         * modules/mkostemps (Depends-on): Likewise.
5802         * modules/mkstemp (Depends-on): Likewise.
5803         * modules/mkstemps (Depends-on): Likewise.
5804         * modules/open (Depends-on): Likewise.
5805         * modules/openat (Depends-on): Likewise.
5806         * modules/pread (Depends-on): Likewise.
5807         * modules/pwrite (Depends-on): Likewise.
5808         * modules/scandir (Depends-on): Likewise.
5809         * modules/stat (Depends-on): Likewise.
5810         * modules/tmpfile (Depends-on): Likewise.
5811         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
5812         since the containing module now depends on the largefile module.
5813         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
5814         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
5815         off_t is fixed by gnulib.
5816         * doc/posix-functions/freopen.texi: Likewise.
5817         * doc/posix-functions/fseeko.texi: Likewise.
5818         * doc/posix-functions/fstatat.texi: Likewise.
5819         * doc/posix-functions/ftello.texi: Likewise.
5820         * doc/posix-functions/glob.texi: Likewise.
5821         * doc/posix-functions/lseek.texi: Likewise.
5822         * doc/posix-functions/lstat.texi: Likewise.
5823         * doc/posix-functions/mkstemp.texi: Likewise.
5824         * doc/posix-functions/open.texi: Likewise.
5825         * doc/posix-functions/openat.texi: Likewise.
5826         * doc/posix-functions/pread.texi: Likewise.
5827         * doc/posix-functions/pwrite.texi: Likewise.
5828         * doc/posix-functions/scandir.texi: Likewise.
5829         * doc/posix-functions/stat.texi: Likewise.
5830         * doc/posix-functions/tmpfile.texi: Likewise.
5831         * doc/glibc-functions/mkostemp.texi: Likewise.
5832         * doc/glibc-functions/mkostemps.texi: Likewise.
5833         * doc/glibc-functions/mkstemps.texi: Likewise.
5834
5835 2011-07-25  Bruno Haible  <bruno@clisp.org>
5836
5837         fcntl: Move AC_LIBOBJ invocation to module description.
5838         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
5839         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
5840
5841         fcntl: Remove call-in from fchdir.m4.
5842         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
5843         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
5844
5845         dup3: Remove potential call-in from fchdir.m4.
5846         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
5847         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
5848
5849         dup2: Move AC_LIBOBJ invocation to module description.
5850         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
5851         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
5852         Don't invoke AC_LIBOBJ.
5853         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
5854
5855         dup2: Remove call-in from fchdir.m4.
5856         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
5857         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
5858
5859         fclose: Move AC_LIBOBJ invocation to module description.
5860         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
5861         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
5862         to 1.
5863         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
5864
5865         fclose: Remove call-in from close.m4.
5866         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
5867         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
5868
5869         close: Move AC_LIBOBJ invocation to module description.
5870         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
5871         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
5872         1.
5873         * modules/close (configure.ac): Invoke AC_LIBOBJ.
5874
5875         close: Remove call-in from fchdir.m4.
5876         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
5877         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
5878
5879         open: Move AC_LIBOBJ invocation to module description.
5880         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
5881         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
5882         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
5883
5884         open: Remove call-in from fchdir.m4.
5885         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
5886         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
5887
5888         fchdir: Start to remove gl_REPLACE_* idiom.
5889         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
5890         (gl_FUNC_FCHDIR): Invoke it.
5891
5892 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5893
5894         * lib/ftell.c (ftell): Comment out cast.
5895
5896         close: use gl_REPLACE_FCLOSE only if defined
5897         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
5898         is defined.  The close module doesn't depend on the fclose module
5899         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
5900         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
5901         I reproduced the problem with "./gnulib-tool --test close sys_socket".
5902
5903 2011-07-24  Jim Meyering  <meyering@redhat.com>
5904
5905         test-select.h: avoid warning when using gcc's -Wmissing-declarations
5906         * tests/test-select.h (test_function): Declare as "static".
5907
5908 2011-07-24  Bruno Haible  <bruno@clisp.org>
5909
5910         doc: Mention the effects of AC_SYS_LARGEFILE.
5911         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
5912         on this function.
5913         * doc/posix-functions/aio_error.texi: Likewise.
5914         * doc/posix-functions/aio_fsync.texi: Likewise.
5915         * doc/posix-functions/aio_read.texi: Likewise.
5916         * doc/posix-functions/aio_return.texi: Likewise.
5917         * doc/posix-functions/aio_suspend.texi: Likewise.
5918         * doc/posix-functions/aio_write.texi: Likewise.
5919         * doc/posix-functions/fgetpos.texi: Likewise.
5920         * doc/posix-functions/fopen.texi: Likewise.
5921         * doc/posix-functions/freopen.texi: Likewise.
5922         * doc/posix-functions/fsetpos.texi: Likewise.
5923         * doc/posix-functions/fstatvfs.texi: Likewise.
5924         * doc/posix-functions/ftruncate.texi: Likewise.
5925         * doc/posix-functions/ftw.texi: Likewise.
5926         * doc/posix-functions/getrlimit.texi: Likewise.
5927         * doc/posix-functions/glob.texi: Likewise.
5928         * doc/posix-functions/lio_listio.texi: Likewise.
5929         * doc/posix-functions/lockf.texi: Likewise.
5930         * doc/posix-functions/mkstemp.texi: Likewise.
5931         * doc/posix-functions/mmap.texi: Likewise.
5932         * doc/posix-functions/nftw.texi: Likewise.
5933         * doc/posix-functions/openat.texi: Likewise.
5934         * doc/posix-functions/opendir.texi: Likewise.
5935         * doc/posix-functions/posix_fadvise.texi: Likewise.
5936         * doc/posix-functions/posix_fallocate.texi: Likewise.
5937         * doc/posix-functions/pread.texi: Likewise.
5938         * doc/posix-functions/pwrite.texi: Likewise.
5939         * doc/posix-functions/readdir.texi: Likewise.
5940         * doc/posix-functions/readdir_r.texi: Likewise.
5941         * doc/posix-functions/rewinddir.texi: Likewise.
5942         * doc/posix-functions/scandir.texi: Likewise.
5943         * doc/posix-functions/seekdir.texi: Likewise.
5944         * doc/posix-functions/setrlimit.texi: Likewise.
5945         * doc/posix-functions/statvfs.texi: Likewise.
5946         * doc/posix-functions/telldir.texi: Likewise.
5947         * doc/posix-functions/tmpfile.texi: Likewise.
5948         * doc/posix-functions/truncate.texi: Likewise.
5949         * doc/glibc-functions/fallocate.texi: Likewise.
5950         * doc/glibc-functions/fstatfs.texi: Likewise.
5951         * doc/glibc-functions/fts_children.texi: Likewise.
5952         * doc/glibc-functions/fts_read.texi: Likewise.
5953         * doc/glibc-functions/getdirentries.texi: Likewise.
5954         * doc/glibc-functions/mkostemp.texi: Likewise.
5955         * doc/glibc-functions/mkostemps.texi: Likewise.
5956         * doc/glibc-functions/mkstemps.texi: Likewise.
5957         * doc/glibc-functions/preadv.texi: Likewise.
5958         * doc/glibc-functions/pwritev.texi: Likewise.
5959         * doc/glibc-functions/sendfile.texi: Likewise.
5960         * doc/glibc-functions/statfs.texi: Likewise.
5961
5962 2011-07-24  Bruno Haible  <bruno@clisp.org>
5963
5964         doc: Fix typo.
5965         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
5966
5967 2011-07-24  Bruno Haible  <bruno@clisp.org>
5968
5969         doc: Mention fsusage.
5970         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
5971
5972 2011-07-24  Bruno Haible  <bruno@clisp.org>
5973
5974         doc: Mention new glibc headers and functions.
5975         * doc/glibc-headers/gshadow.texi: New file.
5976         * doc/glibc-functions/endsgent.texi: New file.
5977         * doc/glibc-functions/fgetsgent.texi: New file.
5978         * doc/glibc-functions/fgetsgent_r.texi: New file.
5979         * doc/glibc-functions/getsgent.texi: New file.
5980         * doc/glibc-functions/getsgent_r.texi: New file.
5981         * doc/glibc-functions/getsgnam.texi: New file.
5982         * doc/glibc-functions/getsgnam_r.texi: New file.
5983         * doc/glibc-functions/putsgent.texi: New file.
5984         * doc/glibc-functions/setsgent.texi: New file.
5985         * doc/glibc-functions/sgetsgent.texi: New file.
5986         * doc/glibc-functions/sgetsgent_r.texi: New file.
5987         * doc/glibc-functions/malloc_info.texi: New file.
5988         * doc/glibc-functions/preadv.texi: New file.
5989         * doc/glibc-functions/pwritev.texi: New file.
5990         * doc/glibc-functions/register_printf_modifier.texi: New file.
5991         * doc/glibc-functions/register_printf_specifier.texi: New file.
5992         * doc/glibc-functions/register_printf_type.texi: New file.
5993         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
5994         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
5995         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
5996         * doc/glibc-functions/pthread_getname_np.texi: New file.
5997         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
5998         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
5999         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
6000         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
6001         * doc/glibc-functions/pthread_setname_np.texi: New file.
6002         * doc/glibc-functions/pthread_sigqueue.texi: New file.
6003         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
6004         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
6005         * doc/glibc-functions/qsort_r.texi: New file.
6006         * doc/glibc-functions/quick_exit.texi: New file.
6007         * doc/glibc-functions/syncfs.texi: New file.
6008         * doc/gnulib.texi: Include them.
6009         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
6010         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
6011         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
6012         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
6013         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
6014         * doc/glibc-functions/execvpe.texi: Likewise.
6015
6016 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6017
6018         ftell: don't include <unistd.h>
6019         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
6020         guaranteed to define off_t, and the ftell module depends on the
6021         stdio module.
6022
6023         ftell: do not assume wraparound signed arithmetic
6024         * lib/ftell.c: Include <limits.h>.
6025         (ftell): Don't assume wraparound signed arithmetic.
6026
6027 2011-07-24  Bruno Haible  <bruno@clisp.org>
6028
6029         close: No longer depend on module 'fclose'.
6030         * modules/close (Depends-on): Remove fclose.
6031         * NEWS: Mention the change.
6032         Suggested by Sam Steingold <sds@gnu.org>.
6033
6034 2011-07-24  Bruno Haible  <bruno@clisp.org>
6035
6036         fsusage: Enable large volume support on AIX >= 5.2.
6037         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
6038         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
6039         instead of STAT_STATVFS.
6040         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
6041
6042         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
6043         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
6044         f_blocks field only on MacOS X.
6045
6046         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
6047         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
6048         * modules/fsusage (Depends-on): Add largefile.
6049
6050 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6051
6052         * README: Modernize discussion of signed integers.
6053         Assuming overflow wraparound is no longer safe.
6054         Mention ones' complement and signed magnitude.
6055
6056 2011-07-22  Bruno Haible  <bruno@clisp.org>
6057
6058         select tests, pselect tests: Refactor.
6059         * tests/test-select.h: New file, extracted from tests/test-select.c.
6060         (select_fn): New type.
6061         (test, do_select, do_select_nowait, do_select_wait, test_tty,
6062         test_connect_first, test_accept_first, test_pair, test_socket_pair,
6063         test_pipe): Add my_select argument.
6064         (test_function): Renamed from main. Add my_select argument.
6065         * tests/test-select.c: Move most code to tests/test-select.h. Include
6066         test-select.h.
6067         * modules/select-tests (Files): Add tests/test-select.h.
6068         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
6069         (my_select, main): New functions.
6070         * modules/pselect-tests (Files): Add tests/test-select.h,
6071         tests/macros.h, tests/signature.h.
6072         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
6073         (configure.ac): Check for <sys/wait.h>.
6074
6075 2011-07-22  Bruno Haible  <bruno@clisp.org>
6076
6077         sys_select tests: Check the signature of FD_*.
6078         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
6079         signature tests from here...
6080         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
6081         here.
6082         * modules/sys_select-tests (Files): Add tests/signature.h.
6083
6084 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
6085
6086         largefile: new module, replacing large-inode
6087         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
6088         * MODULES.html.sh: Add largefile, remove large-inode.
6089         * modules/largefile, m4/largefile.m4: New files.
6090         * modules/large-inode, m4/large-inode.m4: Remove.
6091
6092         fsusage: port to MacOS X 10.7 with 4 TiB file systems
6093         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
6094         implementations that use only 32 bits to count blocks.
6095         On typical hosts with 1024-byte blocks, this fails with file
6096         systems as small as 4 TiB.  Problem reported by Herb Wartens
6097         <http://debbugs.gnu.org/9140> and this should also fix a similar
6098         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
6099
6100         large-inode: New module
6101         * MODULES.html.sh: Add it.
6102         * modules/large-inode, m4/large-inode.m4: New files.
6103
6104         extensions: Enable extensions on MacOS X 10.5 and later.
6105         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
6106
6107 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
6108
6109         file-has-acl: use acl_extended_file_nofollow if available
6110         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
6111         (acl_extended_file): New macro.
6112         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
6113         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
6114
6115 2011-07-21  Bruno Haible  <bruno@clisp.org>
6116
6117         Declare system functions in a way that works with C++.
6118         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
6119         declare fdopendir as extern "C".
6120         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
6121         declare frexpl as extern "C".
6122         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
6123         declare gai_strerror as extern "C".
6124         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
6125         programs, declare gai_strerror as extern "C".
6126         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
6127         declare getlogin_r as extern "C".
6128         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
6129         as extern "C".
6130         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
6131         declare ldexpl as extern "C".
6132         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
6133         as extern "C".
6134         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
6135         program, declare getmntinfo as extern "C".
6136         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
6137         stpncpy as extern "C".
6138         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
6139         program, declare __xpg_strerror_r as extern "C".
6140         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
6141         strndup as extern "C".
6142         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
6143         declare memset and bzero as extern "C".
6144         Reported by Sam Steingold <sds@gnu.org>.
6145
6146 2011-07-12  Jim Meyering  <meyering@redhat.com>
6147
6148         maint.mk: prohibit inclusion of "verify.h" without use
6149         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
6150
6151 2011-07-19  Pádraig Brady  <P@draigBrady.com>
6152
6153         timer-time: A new module to check for timer_settime()
6154         * m4/timer_time.m4: Check for the posix function.
6155         * modules/timer-time: Add the new module.
6156         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
6157         Mention it.
6158
6159 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
6160             Bruno Haible  <bruno@clisp.org>
6161
6162         pthread_sigmask: assume POSIX threads if --avoid=threadlib
6163         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
6164         not defined, assume POSIX threads and look for pthread_sigmask in
6165         $LIBS, without changing $CPPFLAGS.
6166
6167 2011-07-19  Bruno Haible  <bruno@clisp.org>
6168
6169         strstr: Update cross-compilation guess.
6170         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
6171         CPUs, guess no, in view of glibc
6172         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
6173         Suggested by Eric Blake. Reported by Reuben Thomas.
6174
6175 2011-07-19  Pádraig Brady  <P@draigBrady.com>
6176
6177         getopt-gnu: suppress core dumps from detection code
6178         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
6179         to suppress core dumps that may well occur on glibc systems.
6180         * modules/getopt-gnu: Depend on nocrash.
6181
6182 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
6183
6184         pthread_sigmask: ensure usleep is declared
6185         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
6186         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
6187
6188 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
6189
6190         doc: Document NonStop portability issues.
6191         * doc/posix-functions/sigaction.texi (sigaction):
6192         * doc/posix-headers/signal.texi (signal.h):
6193         Document NonStop.  See Joachim Schmitz in
6194         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
6195
6196 2011-07-15  Bruno Haible  <bruno@clisp.org>
6197
6198         ffsl, ffsll: Avoid unportable behaviour.
6199         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
6200
6201 2011-07-15  Bruno Haible  <bruno@clisp.org>
6202
6203         ffs: More tests.
6204         * tests/test-ffs.c (NBITS): New macro.
6205         (main): Add more tests.
6206         * tests/test-ffsl.c (NBITS): New macro.
6207         (main): Add more tests.
6208         * tests/test-ffsll.c (NBITS): New macro.
6209         (main): Add more tests.
6210
6211 2011-07-15  Eric Blake  <eblake@redhat.com>
6212
6213         ffsl, ffsll: new modules
6214         * modules/ffsl: New file.
6215         * modules/ffsll: Likewise.
6216         * m4/ffsl.m4: Likewise.
6217         * m4/ffsll.m4: Likewise.
6218         * lib/ffsl.c: Likewise.
6219         * lib/ffsl.h: Likewise.
6220         * lib/ffsll.c: Likewise.
6221         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
6222         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
6223         * modules/string (Makefile.am): Substitute witnesses.
6224         * lib/strings.in.h (ffsl, ffsll): Declare.
6225         * modules/ffsl-tests: New test file.
6226         * modules/ffsll-tests: Likewise.
6227         * tests/test-ffsl.c: Likewise.
6228         * tests/test-ffsll.c: Likewise.
6229         * MODULES.html.sh (Integer arithmetic functions): Mention it.
6230         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
6231         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
6232
6233         ffs: fix m4 prerequisite
6234         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
6235
6236         ffs: avoid undefined behavior
6237         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
6238         * tests/test-ffs.c (naive, main): Avoid signed shifts.
6239         Reported by Bruno Haible.
6240
6241 2011-07-12  Bruno Haible  <bruno@clisp.org>
6242
6243         pthread_sigmask: Rely on module 'threadlib'.
6244         * modules/pthread_sigmask (Depends-on): Add threadlib.
6245         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
6246         is defined.
6247
6248 2011-07-12  Bruno Haible  <bruno@clisp.org>
6249
6250         regex: Depend on module 'strcase'.
6251         * modules/regex (Depends-on): Add strcase, for strcasecmp().
6252
6253 2011-07-12  Jim Meyering  <meyering@redhat.com>
6254
6255         warn-on-use: fix typo in file name
6256         * modules/snippet/warn-on-use (Files): Correct file name:
6257         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
6258
6259 2011-07-12  Bruno Haible  <bruno@clisp.org>
6260
6261         strings: Document module.
6262         * doc/posix-headers/strings.texi: Mention module 'strings'.
6263
6264 2011-07-12  Bruno Haible  <bruno@clisp.org>
6265
6266         Rename module '_Noreturn' to 'snippet/_Noreturn'.
6267         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
6268         (Files, Makefile.am): Update.
6269         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
6270         * modules/stdlib (Depends-on): Update.
6271
6272 2011-07-12  Bruno Haible  <bruno@clisp.org>
6273
6274         * NEWS: Mention the changes.
6275
6276         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
6277         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
6278         (Files, Makefile.am): Update.
6279         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
6280         * modules/arpa_inet (Depends-on): Update.
6281         * modules/ctype (Depends-on): Update.
6282         * modules/dirent (Depends-on): Update.
6283         * modules/fcntl-h (Depends-on): Update.
6284         * modules/glob (Depends-on): Update.
6285         * modules/iconv-h (Depends-on): Update.
6286         * modules/inttypes-incomplete (Depends-on): Update.
6287         * modules/langinfo (Depends-on): Update.
6288         * modules/locale (Depends-on): Update.
6289         * modules/math (Depends-on): Update.
6290         * modules/netdb (Depends-on): Update.
6291         * modules/poll-h (Depends-on): Update.
6292         * modules/pty (Depends-on): Update.
6293         * modules/search (Depends-on): Update.
6294         * modules/signal (Depends-on): Update.
6295         * modules/spawn (Depends-on): Update.
6296         * modules/stdio (Depends-on): Update.
6297         * modules/stdlib (Depends-on): Update.
6298         * modules/string (Depends-on): Update.
6299         * modules/strings (Depends-on): Update.
6300         * modules/sys_file (Depends-on): Update.
6301         * modules/sys_ioctl (Depends-on): Update.
6302         * modules/sys_select (Depends-on): Update.
6303         * modules/sys_socket (Depends-on): Update.
6304         * modules/sys_stat (Depends-on): Update.
6305         * modules/sys_time (Depends-on): Update.
6306         * modules/sys_times (Depends-on): Update.
6307         * modules/sys_utsname (Depends-on): Update.
6308         * modules/sys_wait (Depends-on): Update.
6309         * modules/termios (Depends-on): Update.
6310         * modules/time (Depends-on): Update.
6311         * modules/unistd (Depends-on): Update.
6312         * modules/wchar (Depends-on): Update.
6313         * modules/wctype-h (Depends-on): Update.
6314         * MODULES.html.sh (Support for building libraries and executables):
6315         Update.
6316
6317         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
6318         * modules/snippet/unused-parameter: Renamed from
6319         modules/unused-parameter.
6320         (Files, Makefile.am): Update.
6321         * build-aux/snippet/unused-parameter.h: Renamed from
6322         build-aux/unused-parameter.h.
6323         * modules/selinux-h (Depends-on): Update.
6324         * modules/unistr/base (Depends-on): Update.
6325         * MODULES.html.sh (Core language properties): Update.
6326
6327         Rename module 'link-warning' to 'snippet/link-warning'.
6328         * modules/snippet/link-warning: Renamed from modules/link-warning.
6329         (Files, Makefile.am): Update.
6330         * build-aux/snippet/link-warning.h: Renamed from
6331         build-aux/link-warning.h.
6332         * MODULES.html.sh (Support for building libraries and executables):
6333         Update.
6334
6335         Rename module 'c++defs' to 'snippet/c++defs'.
6336         * modules/snippet/c++defs: Renamed from modules/c++defs.
6337         (Files, Makefile.am): Update.
6338         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
6339         * modules/arpa_inet (Depends-on): Update.
6340         * modules/ctype (Depends-on): Update.
6341         * modules/dirent (Depends-on): Update.
6342         * modules/fcntl-h (Depends-on): Update.
6343         * modules/glob (Depends-on): Update.
6344         * modules/iconv-h (Depends-on): Update.
6345         * modules/langinfo (Depends-on): Update.
6346         * modules/locale (Depends-on): Update.
6347         * modules/math (Depends-on): Update.
6348         * modules/netdb (Depends-on): Update.
6349         * modules/poll-h (Depends-on): Update.
6350         * modules/pty (Depends-on): Update.
6351         * modules/search (Depends-on): Update.
6352         * modules/signal (Depends-on): Update.
6353         * modules/spawn (Depends-on): Update.
6354         * modules/stdio (Depends-on): Update.
6355         * modules/stdlib (Depends-on): Update.
6356         * modules/string (Depends-on): Update.
6357         * modules/strings (Depends-on): Update.
6358         * modules/sys_ioctl (Depends-on): Update.
6359         * modules/sys_select (Depends-on): Update.
6360         * modules/sys_socket (Depends-on): Update.
6361         * modules/sys_stat (Depends-on): Update.
6362         * modules/sys_time (Depends-on): Update.
6363         * modules/sys_wait (Depends-on): Update.
6364         * modules/termios (Depends-on): Update.
6365         * modules/time (Depends-on): Update.
6366         * modules/unistd (Depends-on): Update.
6367         * modules/wchar (Depends-on): Update.
6368         * modules/wctype-h (Depends-on): Update.
6369
6370         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
6371         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
6372         (Files, Makefile.am): Update.
6373         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
6374         * modules/argv-iter (Depends-on): Update.
6375         * modules/arpa_inet (Depends-on): Update.
6376         * modules/dirent (Depends-on): Update.
6377         * modules/fcntl-h (Depends-on): Update.
6378         * modules/fnmatch (Depends-on): Update.
6379         * modules/getopt-posix (Depends-on): Update.
6380         * modules/glob (Depends-on): Update.
6381         * modules/iconv-h (Depends-on): Update.
6382         * modules/inttypes-incomplete (Depends-on): Update.
6383         * modules/locale (Depends-on): Update.
6384         * modules/math (Depends-on): Update.
6385         * modules/netdb (Depends-on): Update.
6386         * modules/search (Depends-on): Update.
6387         * modules/signal (Depends-on): Update.
6388         * modules/spawn (Depends-on): Update.
6389         * modules/stdio (Depends-on): Update.
6390         * modules/stdlib (Depends-on): Update.
6391         * modules/string (Depends-on): Update.
6392         * modules/strings (Depends-on): Update.
6393         * modules/sys_socket (Depends-on): Update.
6394         * modules/sys_stat (Depends-on): Update.
6395         * modules/sys_time (Depends-on): Update.
6396         * modules/sys_times (Depends-on): Update.
6397         * modules/sys_utsname (Depends-on): Update.
6398         * modules/time (Depends-on): Update.
6399         * modules/unistd (Depends-on): Update.
6400         * modules/wchar (Depends-on): Update.
6401         * MODULES.html.sh (Support for building libraries and executables):
6402         Update.
6403
6404 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
6405
6406         Improvements on _Noreturn and related modules.
6407
6408         modules/_Exit-tests: test _Noreturn too
6409         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
6410         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
6411         (main): Use them.
6412
6413         stdnoreturn, stdnoreturn-tests: remove modules
6414         They're not needed here and a bit premature for use elsewhere.  See
6415         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
6416         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
6417         * tests/test-stdnoreturn.c: Remove files.
6418         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
6419         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
6420         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
6421         and using noreturn.
6422         * modules/openat, modules/sigpipe-die, modules/xalloc:
6423         * modules/xmemdup0, modules/xstrtol:
6424         Remove dependency on stdnoreturn.
6425
6426         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
6427         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
6428         Reparenthesize to avoid GCC warning.
6429         Support Microsoft's syntax.
6430         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
6431
6432         _Noreturn-tests: remove module
6433         * modules/_Noreturn-tests: Remove.
6434         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
6435         * tests/test-_Noreturn.c: Remove.
6436         * tests/test-stdnoreturn.c: Merge from the old
6437         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
6438
6439 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
6440
6441         _Noreturn, stdnoreturn, and related modules.
6442
6443         * top/maint.mk: Adjust to new noreturn support.
6444         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
6445         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
6446
6447         xalloc: use stdnoreturn.h
6448         * lib/xalloc.h: Include <stdnoreturn.h>.
6449         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6450         * modules/xalloc (Depends-on): Add stdnoreturn.
6451
6452         xstrtol: use stdnoreturn.h
6453         * lib/xstrtol.h: Include <stdnoreturn.h>.
6454         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6455         * modules/xstrtol (Depends-on): Add stdnoreturn.
6456
6457         xmemdup0: use stdnoreturn.h
6458         * lib/xmemdup0.h: Include <stdnoreturn.h>.
6459         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6460         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
6461
6462         sigpipe-die: use stdnoreturn.h
6463         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
6464         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6465         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
6466
6467         openat: use stdnoreturn.h
6468         * lib/openat.h: Include <stdnoreturn.h>.
6469         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6470         * modules/openat (Depends-on): Add stdnoreturn.
6471
6472         * lib/openat-die.c (openat_save_fail): Modernize comment.
6473
6474         * lib/xalloc-die.c (xalloc_die): Modernize comment.
6475
6476         * lib/glthread/thread.h: Modernize comment.
6477
6478         obstack: use _Noreturn
6479         * lib/obstack.c (__attribute__): Remove macro.
6480         (print_and_abort): Use _Noreturn.
6481
6482         c-stack: use _Noreturn
6483         * lib/c-stack.c (die, overflow_handler, segv_handler):
6484         Use _Noreturn rather than __attribute__((noreturn)).
6485
6486         argmatch-tests, exclude_tests: use _Noreturn
6487         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
6488         Remove.
6489         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
6490
6491         stdlib: use _Noreturn
6492         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
6493         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
6494         * modules/stdlib (Depends-on): Add _Noreturn.
6495         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
6496
6497         stdnoreturn-tests: new module
6498         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
6499
6500         stdnoreturn: new module
6501         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
6502         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
6503
6504         _Noreturn-tests: new module
6505         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
6506
6507         _Noreturn: new module
6508         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
6509         New section, mentioning it.
6510         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
6511
6512         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
6513
6514 2011-07-11  Eric Blake  <eblake@redhat.com>
6515
6516         ffs: new module
6517         * modules/ffs: New file.
6518         * m4/ffs.m4: Likewise.
6519         * lib/ffs.c: Likewise.
6520         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
6521         * modules/strings (Makefile.am): Substitute witness.
6522         (Depends-on): Add c++defs.
6523         * lib/strings.in.h (ffs): Declare.
6524         * modules/ffs-tests: New test file.
6525         * tests/test-ffs.c: Test new module.
6526         * MODULES.html.sh (Integer arithmetic functions): Mention it.
6527         * doc/posix-functions/ffs.texi (ffs): Likewise.
6528
6529         regex: avoid compiler warning
6530         * lib/regex.c (includes): Include <strings.h>, for use of
6531         strcasecmp in regcomp.c.
6532         Reported by Joachim Schmitz.
6533
6534 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
6535
6536         stdint: respect system's intmax_t if INTMAX_MAX
6537         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
6538         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
6539         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
6540         long but int64_t is long long, and where we will clash with the
6541         system intmax_t if we override it.  See
6542         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
6543         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
6544         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
6545         similarly for UINTMAX_C.
6546
6547 2011-07-08  Bruno Haible  <bruno@clisp.org>
6548
6549         pthread_sigmask tests: Avoid a compiler warning.
6550         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
6551         non-zero.
6552
6553         sigprocmask tests: A better way to avoid a compiler warning.
6554         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
6555         (main): Complain if system() returns non-zero.
6556         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
6557
6558 2011-07-08  Bruno Haible  <bruno@clisp.org>
6559
6560         pthread_sigmask: Work around IRIX bug.
6561         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
6562         bug.
6563         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
6564         there may be unblocked pending signals.
6565         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
6566
6567 2011-07-08  Bruno Haible  <bruno@clisp.org>
6568
6569         pthread_sigmask: Work around Cygwin bug.
6570         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
6571         bug.
6572         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
6573         the system's pthread_sigmask function.
6574         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
6575
6576 2011-07-08  Bruno Haible  <bruno@clisp.org>
6577
6578         pthread_sigmask: Work around bug in single-threaded implementation.
6579         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
6580         FreeBSD, HP-UX, Solaris bug.
6581         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
6582         * lib/pthread_sigmask.c: Include <stddef.h>.
6583         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
6584         the system's pthread_sigmask function.
6585         * modules/pthread_sigmask (configure.ac): Invoke
6586         gl_PREREQ_PTHREAD_SIGMASK.
6587         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
6588         HP-UX, Solaris.
6589
6590 2011-07-08  Eric Blake  <eblake@redhat.com>
6591
6592         test-sigprocmask: avoid compiler warning
6593         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
6594         * tests/test-sigprocmask.c (main): Use it to silence warning.
6595         Reported by Jim Meyering.
6596
6597         test-snprintf: avoid compiler warning
6598         * tests/test-snprintf.c (main): Avoid shadowed declaration.
6599         * tests/test-vsnprintf.c (main): Likewise.
6600         Reported by Jim Meyering.
6601
6602 2011-07-08  Bruno Haible  <bruno@clisp.org>
6603
6604         Tests for module 'pthread_sigmask'.
6605         * modules/pthread_sigmask-tests: New file.
6606         * tests/test-pthread_sigmask1.c: New file, based on
6607         tests/test-sigprocmask.c.
6608         * tests/test-pthread_sigmask2.c: New file.
6609
6610 2011-07-08  Jim Meyering  <meyering@redhat.com>
6611
6612         test-getopt.h: avoid warning about an unused variable
6613         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
6614
6615 2011-07-07  Jim Meyering  <meyering@redhat.com>
6616
6617         maint: reduce list of files exempt from sc_prohibit_leading_TABs
6618         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
6619         now that it no longer contains leading TABs.
6620         Remove unused "url=FIXME" statement.
6621
6622 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
6623
6624         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
6625         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
6626         When gl_THREADLIB is not in use, assume that the POSIX sematics
6627         are desired.  This is better for Emacs, which uses POSIX semantics
6628         on GNUish and/or POSIXish platforms, and does not use threads at
6629         all otherwise.
6630
6631         pthread_sigmask: fix typo when testing for libraries
6632         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
6633         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
6634
6635 2011-07-08  Eric Blake  <eblake@redhat.com>
6636
6637         fts: introduce FTS_NOATIME
6638         * lib/fts_.h (FTS_NOATIME): New bit flag.
6639         (FTS_OPTIONMASK): Adjust.
6640         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
6641         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
6642
6643 2011-07-08  Bruno Haible  <bruno@clisp.org>
6644
6645         Tests for module 'thread'.
6646         * modules/thread-tests: New file.
6647         * tests/test-thread_self.c: New file.
6648         * tests/test-thread_create.cc: New file.
6649
6650 2011-07-08  Bruno Haible  <bruno@clisp.org>
6651
6652         thread: Avoid gcc warnings when using gl_thread_self().
6653         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
6654         'void *'.
6655         (gl_thread_self_pointer): Update.
6656
6657 2011-07-07  Bruno Haible  <bruno@clisp.org>
6658
6659         signal-c++-tests: Check declaration of pthread_sigmask.
6660         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
6661         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
6662         $(LIB_PTHREAD_SIGMASK).
6663
6664 2011-07-07  Bruno Haible  <bruno@clisp.org>
6665
6666         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
6667         * lib/signal.in.h (pthread_sigmask): Override if
6668         REPLACE_PTHREAD_SIGMASK is 1.
6669         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
6670         REPLACE_PTHREAD_SIGMASK.
6671         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
6672         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
6673         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
6674         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
6675         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
6676
6677 2011-07-07  Bruno Haible  <bruno@clisp.org>
6678
6679         pthread_sigmask: Ensure declaration in <signal.h>.
6680         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
6681         include <pthread.h>.
6682         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
6683         problem.
6684
6685 2011-07-07  Bruno Haible  <bruno@clisp.org>
6686
6687         pthread_sigmask: Document the module.
6688         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
6689
6690 2011-07-07  Bruno Haible  <bruno@clisp.org>
6691
6692         pthread_sigmask: Follow gnulib conventions.
6693         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
6694         gl_PTHREAD_SIGMASK.
6695         * modules/pthread_sigmask (configure.ac): Update.
6696
6697 2011-07-07  Bruno Haible  <bruno@clisp.org>
6698
6699         pthread_sigmask: Make declaration C++ safe.
6700         * lib/signal.in.h: In two special conditions, just do an #include_next.
6701         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
6702         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
6703         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
6704         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
6705         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
6706         not REPLACE_PTHREAD_MASK.
6707         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
6708         not REPLACE_PTHREAD_MASK.
6709         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
6710
6711 2011-07-07  Bruno Haible  <bruno@clisp.org>
6712
6713         pthread_sigmask: Fix return value.
6714         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
6715         * lib/pthread_sigmask.c: New file.
6716         * modules/pthread_sigmask (Files): Add it.
6717         (configure.ac): Invoke AC_LIBOBJ.
6718
6719 2011-07-07  Eric Blake  <eblake@redhat.com>
6720
6721         getopt: more portable argv creation
6722         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
6723         const, use char arrays rather than strings.
6724         Suggested by Paul Eggert.
6725
6726 2011-07-07  Bruno Haible  <bruno@clisp.org>
6727
6728         Tests for module 'sigprocmask'.
6729         * modules/sigprocmask-tests: New file.
6730         * tests/test-sigprocmask.c: New file.
6731
6732 2011-07-07  Bruno Haible  <bruno@clisp.org>
6733
6734         float tests: Tweak.
6735         * tests/test-float.c (main): Tweak skip message.
6736
6737 2011-07-07  Eric Blake  <eblake@redhat.com>
6738
6739         getopt: avoid compiler warning during configure
6740         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
6741         assigning string literals to non-const pointer.
6742
6743         getopt-gnu: avoid crash in glibc getopt
6744         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
6745         * tests/test-getopt.h (test_getopt): Enhance test.
6746         * tests/test-getopt_long.h (test_getopt_long): Likewise.
6747         * doc/posix-functions/getopt.texi (getopt): Document it.
6748         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
6749         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6750         Likewise.
6751
6752 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
6753
6754         getopt: handle W; without long options in getopt [BZ #12922]
6755         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
6756         but no long options are defined, just return 'W'.
6757
6758 2011-07-07  Bruno Haible  <bruno@clisp.org>
6759
6760         Avoid literal tabs.
6761         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
6762         variable containing a tab instead of a literal tab.
6763         Reported by Jim Meyering.
6764
6765 2011-07-07  Bruno Haible  <bruno@clisp.org>
6766
6767         Comments.
6768         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
6769
6770 2011-07-06  Bruno Haible  <bruno@clisp.org>
6771
6772         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
6773         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
6774         <winsock2.h>.
6775         (rpl_fd_isset, FD_ISSET): New definitions, copied from
6776         lib/sys_socket.in.h.
6777         (close, gethostname): Hide declarations from <winsock2.h>.
6778         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
6779         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
6780         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
6781         (select): Don't override if gnulib's <sys/select.h> was already
6782         included.
6783         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
6784         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
6785         setsockopt, shutdown, select): Tweak indentation.
6786
6787 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6788
6789         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
6790         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
6791         in an application that does not use the sys_select module.
6792
6793 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
6794
6795         poll: do not return 0 on timeout=-1
6796         * lib/poll.c: Loop with yield if no events occured
6797
6798 2011-07-06  Eric Blake  <eblake@redhat.com>
6799
6800         pthread_sigmask: always replace when not using pthread
6801         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
6802         replacement when using some threading other than pthread.  Fix
6803         logic bug.
6804
6805 2011-07-06  Bruno Haible  <bruno@clisp.org>
6806
6807         Comments.
6808         * m4/printf.m4: Update comments about mingw.
6809
6810 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6811
6812         sys_select: define sigset_t more portably
6813         * lib/sys_select.in.h: Always include <sys/types.h>, since
6814         we now need sigset_t and mingw defines it there.
6815         Include <signal.h> before split inclusion guard, to avoid
6816         mishaps on Solaris, whose <signal.h> eventually includes us.
6817         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
6818         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
6819         which come from ...
6820         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
6821         gl_CHECK_TYPE_SIGSET_T.
6822         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
6823         does the real work.
6824         * modules/sys_select (Depends-on): Add 'signal'.
6825
6826         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
6827         Suggested by Bruno Haible.
6828
6829         pselect: Use pthread_sigmask, not sigprocmask.
6830         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
6831         multithreaded apps better than sigprocmask does.
6832         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
6833         sigprocmask directly.
6834
6835 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
6836
6837         * lib/pselect.c (pselect): Use plain name, without "rpl_".
6838         Don't #undef,  since we don't need any underlying pselect.
6839         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
6840         (Depends-on): Add select.
6841         (Link): Add $(LIBSOCKET).
6842         These changes suggested by Bruno Haible.
6843
6844         pselect: document better
6845         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6846         * doc/posix-functions/pselect.texi (pselect): Document new module.
6847
6848         pthread_sigmask: new module
6849         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6850         * doc/posix-functions/pthread_sigmask.texi: Document new module.
6851         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
6852         This is done only as a macro; I don't know how well that'll
6853         work for C++.  Move <sys/types.h> include before the include_next,
6854         to avoid mishap on Solaris.
6855         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
6856         * modules/signal (Makefile.am): Substitute the check's results.
6857         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
6858
6859         test-pselect: new module
6860         * modules/pselect-tests, tests/test-pselect.c: New files.
6861         * tests/test-select.c, tests/test-sys_select-c++.cc:
6862         If TEST_PSELECT is defined, test pselect instead of testing select.
6863
6864         * tests/test-sys_select.c (sigset_t): Test for it, too.
6865         Suggested by Bruno Haible.
6866
6867 2011-07-05  Eric Blake  <eblake@redhat.com>
6868
6869         snprintf: guarantee %1$d, for libintl
6870         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
6871         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
6872         * doc/posix-functions/snprintf.texi (snprintf): Update.
6873         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
6874         * tests/test-snprintf.c (main): Enhance test.
6875         * tests/test-vsnprintf.c (main): Likewise.
6876
6877 2011-07-05  Jim Meyering  <meyering@redhat.com>
6878
6879         maint: exempt stdio-read.c and stdio-write.c from the cppi check
6880         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
6881         per Bruno's request, to accommodate this idiom (no space after "#")
6882         even when the function is inside an #if block:
6883         char *
6884         gets (char *s)
6885         #undef gets
6886         {
6887           ...
6888         }
6889
6890 2011-07-04  Jim Meyering  <meyering@redhat.com>
6891
6892         maint: indent with spaces, not TABs, and add a rule to check this
6893         * tests/test-userspec.c: Indent with spaces, not TABs.
6894         * tests/test-argp.c: Likewise.
6895         * tests/test-c-stack2.sh: Likewise.
6896         * tests/test-parse-duration.sh: Likewise
6897         * m4/strtod.m4: Likewise.
6898         * m4/alloca.m4: Likewise.
6899         * m4/pselect.m4: Likewise.
6900         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
6901
6902 2011-07-03  Jim Meyering  <meyering@redhat.com>
6903
6904         maint.mk: correct omissions in prohibit_argmatch_without_use check
6905         This rule would mistakenly report that argmatch.h is included without
6906         use even when both the argmatch and invalid_arg macro were used.
6907         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
6908         of argmatch and invalid_arg.
6909
6910 2011-07-03  Bruno Haible  <bruno@clisp.org>
6911
6912         Comments about EINTR.
6913         * lib/safe-read.h: Explain the purpose of this module.
6914         * lib/safe-write.h: Likewise.
6915         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
6916         module.
6917         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
6918         module.
6919         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6920
6921 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
6922
6923         xnanosleep: Rewrite to use new dtotimespec module.
6924         It has the conversion code that used to be in xnanosleep.
6925         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
6926         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
6927         (TIME_T_MAX): Remove.
6928         (xnanosleep): Rewrite in terms of dtotimespec.
6929         * modules/xnanosleep (Depends-on): Add dtotimespec.
6930         Remove intprops, stdbool.
6931
6932         timespec-add, timespec-sub: new modules
6933         * lib/timespec.h (timespec_add, timespec_sub): New decls.
6934         * lib/timespec-add.c, lib/timespec-sub.c:
6935         * modules/timespec-add, modules/timespec-sub: New files.
6936
6937         dtotimespec: new module
6938         * lib/timespec.h (dtotimespec): New decl.
6939         * lib/dtotimespec.c, modules/dtotimespec: New files.
6940
6941         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
6942
6943         pselect: new module
6944         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
6945         (pselect): New decls.
6946         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
6947         since the standard pselect decl uses 'restrict'.
6948         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
6949         HAVE_PSELECT, REPLACE_PSELECT.
6950         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
6951         HAVE_PSELECT, REPLACE_PSELECT.
6952         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
6953
6954         sys_select: don't depend on sys_socket
6955         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
6956         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
6957         This fix works on GNU and GNU-like platforms, but has not been tested
6958         on native Windows.
6959         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
6960         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
6961         gl_HEADER_SYS_SOCKET.
6962         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
6963         gl_PREREQ_SYS_H_WINSOCK2.
6964
6965 2011-06-29  Eric Blake  <eblake@redhat.com>
6966
6967         pipe2: fix C89 compile problem
6968         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
6969         Reported by Bruno Haible.
6970
6971         pipe, pipe2: don't corrupt fd on error
6972         * lib/pipe.c (pipe): Leave fd unchanged on error.
6973         * lib/pipe2.c (pipe2): Likewise.
6974         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
6975         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
6976
6977 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
6978
6979         mmap-anon: do not use regular expressions inadvertently
6980         * m4/mmap-anon.m4: Remove trailing period from strings sought
6981         in the output.
6982
6983 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
6984
6985         nanosleep: fix integer overflow problem
6986         * lib/nanosleep.c (my_usleep): Don't assume signed integer
6987         arithmetic wraps around on overflow.
6988
6989         nanosleep: simplify carrying
6990         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
6991         first call to the underyling nanosleep, not for the last one.
6992         This doesn't fix any bugs, but it simplifies the computation of
6993         the remaining delay.  Found while auditing integer overflow issues.
6994
6995         dup2: remove test for existence of fcntl
6996         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
6997         "#if HAVE_FCNTL", in the configure-time test program.
6998         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
6999         and therefore speeds up "configure" a bit.  Found while
7000         adding the dup2 module to Emacs.
7001
7002 2011-06-24  Eric Blake  <eblake@redhat.com>
7003
7004         maint.mk: enhance useless header checks
7005         * top/maint.mk (_sc_header_without_use): Check both include
7006         styles.
7007         (sc_prohibit_assert_without_use)
7008         (sc_prohibit_close_stream_without_use)
7009         (sc_prohibit_getopt_without_use)
7010         (sc_prohibit_quotearg_without_use)
7011         (sc_prohibit_quote_without_use)
7012         (sc_prohibit_long_options_without_use)
7013         (sc_prohibit_inttostr_without_use)
7014         (sc_prohibit_ignore_value_without_use)
7015         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
7016         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
7017         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
7018         (sc_prohibit_hash_pjw_without_use)
7019         (sc_prohibit_safe_read_without_use)
7020         (sc_prohibit_argmatch_without_use)
7021         (sc_prohibit_canonicalize_without_use)
7022         (sc_prohibit_root_dev_ino_without_use)
7023         (sc_prohibit_openat_without_use)
7024         (sc_prohibit_c_ctype_without_use)
7025         (sc_prohibit_signal_without_use)
7026         (sc_prohibit_stdio--_without_use)
7027         (sc_prohibit_stdio-safer_without_use)
7028         (sc_prohibit_strings_without_use)
7029         (sc_prohibit_intprops_without_use)
7030         (sc_prohibit_stddef_without_use)
7031         (sc_prohibit_xfreopen_without_use): Update clients.
7032
7033 2011-06-24  Jim Meyering  <meyering@redhat.com>
7034
7035         syntax-check: keep one maint.mk rule in sync with its header
7036         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
7037         of the bug Eric has just fixed, with today's commit 25e4c2ec.
7038         I prefer to avoid temporary files here, so use <(...), but that
7039         is not supported by /bin/sh, so...
7040         (SHELL): Define to /bin/bash.
7041
7042 2011-06-24  Eric Blake  <eblake@redhat.com>
7043
7044         maint.mk: update sc_prohibit_intprops_without_use
7045         * top/maint.mk (_intprops_names): Match recent changes.
7046
7047 2011-06-24  Bruno Haible  <bruno@clisp.org>
7048
7049         strerror-override: No-op tweak.
7050         * lib/strerror-override.h (strerror_override): Reorder conditions,
7051         for consistency with lib/strerror-override.c.
7052
7053 2011-06-23  Eric Blake  <eblake@redhat.com>
7054
7055         maint.mk: test further PATH_MAX issues
7056         * top/maint.mk (sc_prohibit_path_max_array): Rename...
7057         (sc_prohibit_path_max_allocation): ...and also test alloca.
7058         Suggested by Jim Meyering.
7059
7060 2011-06-22  Eric Blake  <eblake@redhat.com>
7061
7062         maint.mk: add syntax-check to avoid char[PATH_MAX]
7063         * top/maint.mk (sc_prohibit_path_max_array): New rule.
7064
7065         stat: be robust to PATH_MAX definition
7066         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
7067         * modules/stat (Depends-on): Add verify.
7068
7069         link: work around IRIX bug
7070         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
7071         * lib/link.c (rpl_link): Work around it.
7072         * tests/test-link.h (test_link): Enhance test.
7073         * doc/posix-functions/link.texi (link): Document the bug.
7074
7075         getopt: silence clang warning
7076         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
7077         dereference.
7078         Reported by Gustavo Martin Domato.
7079
7080 2011-06-22  Jim Meyering  <meyering@redhat.com>
7081
7082         bootstrap: do not insert a blank line into each .gitignore file
7083         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
7084
7085 2011-06-21  Eric Blake  <eblake@redhat.com>
7086
7087         perror: test for output mismatch
7088         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
7089         perror on IRIX.
7090
7091         strerror_r: fix OpenBSD behavior on out-of-range
7092         * lib/strerror_r.c (strerror_r): Always use maximal string.
7093         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
7094
7095         strerror_r: fix OpenBSD behavior on 0
7096         * lib/strerror-override.c (strerror_override): Also override 0
7097         when needed.
7098         * lib/strerror-override.h (strerror_override): Likewise.
7099         * lib/strerror.c (strerror): Simplify, now that 0 override is done
7100         earlier.
7101         * lib/strerror_r.c (strerror_r): Likewise.
7102         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
7103         behavior...
7104         (gl_FUNC_STRERROR_0): ...into new macro.
7105         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
7106         is overridden.
7107         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
7108         * modules/strerror-override (Files): Add strerror.m4.
7109         (configure.ac): Also provide override for 0 when needed.
7110         * doc/posix-functions/strerror.texi (strerror): Document this.
7111         * doc/posix-functions/perror.texi (perror): Likewise.
7112
7113         perror: adjust array size
7114         * modules/perror (Depends-on): Add strerror-override.
7115         * lib/perror.c (perror): Use it to avoid magic number.
7116
7117         strerror-override: reduce size
7118         * lib/strerror-override.c (strerror_override): Use fewer lines.
7119
7120 2011-06-20  Bruno Haible  <bruno@clisp.org>
7121
7122         pathmax: Ensure correct value for PATH_MAX on HP-UX.
7123         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
7124
7125 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
7126
7127         alloca: port to compilers that can optimize like GCC 4.6.0
7128         * lib/alloca.c (find_stack_direction): New signature, taken from
7129         Autoconf git.  This works with GCC 4.6.0.  This code should never
7130         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
7131         be used with other compilers that optimize as well as GCC 4.6.0 does.
7132         (alloca): Adjust to new signature.
7133         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
7134         New macro, which patches Autoconf in a similar way.
7135
7136         c-stack: stop worrying about stack direction
7137         * lib/c-stack.c (find_stack_direction): Remove.
7138         (segv_handler): Don't worry about stack direction growth, as it's
7139         too much of a pain to configure this correctly, given how compilers
7140         are optimizing-away our stack-growth detection code.  Instead, assume
7141         that any access to just before or just after the stack is OK.
7142         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
7143         Don't require AC_FUNC_ALLOCA; no longer needed.
7144
7145 2011-06-20  Eric Blake  <eblake@redhat.com>
7146
7147         test-stat: don't allocate PATH_MAX bytes
7148         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
7149         PATH_MAX-sized buffer.
7150         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
7151         * modules/stat-tests (Depends-on): Likewise.
7152         * tests/test-fstatat.c (includes): Drop pathmax.h.
7153         * tests/test-stat.c (includes): Likewise.
7154         Reported by Bruno Haible.
7155
7156 2011-06-20  Bruno Haible  <bruno@clisp.org>
7157
7158         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
7159         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
7160         * lib/float.c: New file.
7161         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
7162         REPLACE_FLOAT_LDBL.
7163         * modules/float (Files): Add lib/float.c.
7164         (configure.ac): Invoke AC_LIBOBJ.
7165         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
7166
7167 2011-06-20  Bruno Haible  <bruno@clisp.org>
7168
7169         Tests for module 'float'.
7170         * modules/float-tests: New file.
7171         * tests/test-float.c: New file.
7172
7173 2011-06-19  Bruno Haible  <bruno@clisp.org>
7174
7175         isinf: Coding style.
7176         * lib/isinf.c: Use GNU coding style.
7177
7178 2011-06-19  Bruno Haible  <bruno@clisp.org>
7179
7180         linkat test: Avoid test failure on AIX 7.1.
7181         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
7182         * tests/test-link.h (test_link): Likewise.
7183
7184 2011-06-19  Bruno Haible  <bruno@clisp.org>
7185
7186         pread test: Avoid test failure on OpenBSD 4.9.
7187         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
7188
7189 2011-06-19  Bruno Haible  <bruno@clisp.org>
7190
7191         sprintf-posix: Fix test failure on AIX 7.1.
7192         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
7193         * doc/posix-functions/dprintf.texi: Mention limited precision problem
7194         on AIX.
7195         * doc/posix-functions/fprintf.texi: Likewise.
7196         * doc/posix-functions/printf.texi: Likewise.
7197         * doc/posix-functions/snprintf.texi: Likewise.
7198         * doc/posix-functions/sprintf.texi: Likewise.
7199         * doc/posix-functions/vdprintf.texi: Likewise.
7200         * doc/posix-functions/vfprintf.texi: Likewise.
7201         * doc/posix-functions/vprintf.texi: Likewise.
7202         * doc/posix-functions/vsnprintf.texi: Likewise.
7203         * doc/posix-functions/vsprintf.texi: Likewise.
7204
7205 2011-06-19  Bruno Haible  <bruno@clisp.org>
7206
7207         roundl-ieee: Fix test failure on AIX 7.1.
7208         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
7209         * doc/posix-functions/roundl.texi: Mention problem with negative
7210         arguments.
7211
7212 2011-06-19  Bruno Haible  <bruno@clisp.org>
7213
7214         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
7215         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
7216         * doc/posix-functions/round.texi: Mention problem with negative
7217         arguments.
7218         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
7219
7220 2011-06-19  Bruno Haible  <bruno@clisp.org>
7221
7222         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
7223         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
7224         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
7225         * doc/posix-functions/roundf.texi: Mention problem with negative
7226         arguments.
7227         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
7228
7229 2011-06-19  Bruno Haible  <bruno@clisp.org>
7230
7231         ceilf-ieee: Work around bug on MacOS X 10.5.
7232         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
7233
7234         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
7235         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
7236         IEEE compliant, avoid compiler optimizations.
7237         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
7238         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
7239         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
7240         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
7241         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
7242         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
7243         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
7244         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
7245         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
7246         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
7247
7248 2011-06-19  Bruno Haible  <bruno@clisp.org>
7249
7250         ceilf-ieee: Work around bug on AIX 7.1.
7251         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
7252         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
7253
7254 2011-06-19  Bruno Haible  <bruno@clisp.org>
7255
7256         ceil-ieee: Work around bug on AIX 7.1.
7257         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
7258         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
7259
7260 2011-06-18  Bruno Haible  <bruno@clisp.org>
7261
7262         fsync test: Avoid test failure on MacOS X and AIX.
7263         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
7264         EINVAL.
7265
7266 2011-06-18  Bruno Haible  <bruno@clisp.org>
7267
7268         openat, fdopendir tests: Fix link errors.
7269         * modules/openat-tests (Depends-on): Add progname.
7270         * modules/fdopendir-tests (Depends-on): Likewise.
7271         * tests/test-fchownat.c: Include progname.h.
7272         (main): Call set_program_name.
7273         * tests/test-fstatat.c: Include progname.h.
7274         (main): Call set_program_name.
7275         * tests/test-mkdirat.c: Include progname.h.
7276         (main): Call set_program_name.
7277         * tests/test-openat.c: Include progname.h.
7278         (main): Call set_program_name.
7279         * tests/test-unlinkat.c: Include progname.h.
7280         (main): Call set_program_name.
7281         * tests/test-fdopendir.c: Include progname.h.
7282         (main): Call set_program_name.
7283
7284 2011-06-18  Bruno Haible  <bruno@clisp.org>
7285
7286         Doc update.
7287         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
7288         HP-UX.
7289         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
7290
7291 2011-06-18  Bruno Haible  <bruno@clisp.org>
7292
7293         getcwd tests: Avoid compilation error on HP-UX 11.31.
7294         * modules/getcwd-tests (Depends-on): Add pathmax.
7295         * tests/test-getcwd.c: Include pathmax.h.
7296
7297 2011-06-18  Bruno Haible  <bruno@clisp.org>
7298
7299         isfinite, isinf: Fix link error on AIX 6 and 7.
7300         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
7301         needed, also test the macro with a 'float' argument.
7302         * m4/isinf.m4 (gl_ISINF): Likewise.
7303
7304 2011-06-18  Bruno Haible  <bruno@clisp.org>
7305
7306         getloadavg: Don't clobber LIBS. Regression from previous commit.
7307         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
7308         AC_CHECK_LIB from here...
7309         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
7310         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
7311         gl_func_getloadavg_done.
7312         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7313
7314 2011-06-18  Bruno Haible  <bruno@clisp.org>
7315
7316         clean-temp: Improve documentation.
7317         * lib/clean-temp.h: Explain better how to use this module.
7318         Reported by John Darrington <john@darrington.wattle.id.au>.
7319
7320 2011-06-17  Bruno Haible  <bruno@clisp.org>
7321
7322         pread, pwrite: Avoid cc warning on AIX.
7323         * lib/unistd.in.h (pread): Undefine before defining as a macro.
7324         (pwrite): Likewise.
7325
7326 2011-06-17  Bruno Haible  <bruno@clisp.org>
7327
7328         spawn-pipe tests: Fix link error.
7329         * tests/test-spawn-pipe-child.c: Undefine fprintf.
7330         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7331
7332 2011-06-17  Bruno Haible  <bruno@clisp.org>
7333
7334         Tests: Remove unnecessary dependency.
7335         * modules/canonicalize-tests (Depends-on): Remove progname.
7336         * modules/chown-tests (Depends-on): Likewise.
7337         * modules/dirname-tests (Depends-on): Likewise.
7338         * modules/fdopendir-tests (Depends-on): Likewise.
7339         * modules/fdutimensat-tests (Depends-on): Likewise.
7340         * modules/hash-tests (Depends-on): Likewise.
7341         * modules/lchown-tests (Depends-on): Likewise.
7342         * modules/linkat-tests (Depends-on): Likewise.
7343         * modules/renameat-tests (Depends-on): Likewise.
7344         * modules/spawn-pipe-tests (Depends-on): Likewise.
7345         * modules/utimensat-tests (Depends-on): Likewise.
7346
7347 2011-06-17  Bruno Haible  <bruno@clisp.org>
7348
7349         spawn-pipe tests: Fix link error.
7350         * tests/test-spawn-pipe-child.c: Undefine fflush.
7351
7352 2011-06-17  Bruno Haible  <bruno@clisp.org>
7353
7354         Fix tests link errors.
7355         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
7356         * modules/chown-tests (Makefile.am): Don't link test-chown with
7357         LIBINTL.
7358         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
7359         LIBINTL.
7360         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
7361         LIBINTL.
7362         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
7363         LIBINTL.
7364
7365 2011-06-16  Bruno Haible  <bruno@clisp.org>
7366
7367         crypto/gc-sha1: Fix recent regression.
7368         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
7369         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
7370
7371         crypto/gc-md5: Fix recent regression.
7372         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
7373
7374         crypto/gc-md4: Fix recent regression.
7375         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
7376         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
7377
7378         crypto/gc-arctwo: Fix recent regression.
7379         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
7380         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
7381
7382         crypto/gc-rijndael: Fix recent regression.
7383         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
7384         (configure.ac): Invoke AC_LIBOBJ here.
7385         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
7386         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7387
7388         crypto/gc-hmac-sha1: Fix recent regression.
7389         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
7390         (configure.ac): Invoke AC_LIBOBJ here.
7391         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
7392         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7393
7394         crypto/gc-hmac-md5: Fix recent regression.
7395         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
7396         (configure.ac): Invoke AC_LIBOBJ here.
7397         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
7398         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7399
7400         crypto/gc-des: Fix recent regression.
7401         * modules/crypto/gc-des (Files): Remove m4/des.m4.
7402         (configure.ac): Invoke AC_LIBOBJ here.
7403         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
7404         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7405
7406         crypto/gc-arcfour: Fix recent regression.
7407         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
7408         (configure.ac): Invoke AC_LIBOBJ here.
7409         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
7410         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7411
7412 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
7413
7414         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
7415         After the 2011-05-21 change, this macro requires
7416         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
7417         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
7418
7419 2011-06-16  Bruno Haible  <bruno@clisp.org>
7420
7421         fprintftime: Move AC_LIBOBJ invocations to module description.
7422         * m4/fprintftime.m4: Remove file.
7423         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
7424         (configure.ac): Remove gl_FPRINTFTIME call.
7425         (Makefile.am): Augment lib_SOURCES.
7426         Reported by Jim Meyering.
7427
7428 2011-06-16  Bruno Haible  <bruno@clisp.org>
7429
7430         tmpfile-safer: Finish 2011-05-23 commit.
7431         * m4/stdio-safer.m4: Really remove file.
7432         Reported by Jim Meyering.
7433
7434 2011-06-16  Bruno Haible  <bruno@clisp.org>
7435
7436         syntax-check: Fix typo.
7437         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
7438         printf-posix.m4.
7439         Reported by Jim Meyering.
7440
7441 2011-06-13  Jim Meyering  <meyering@redhat.com>
7442
7443         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
7444         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
7445
7446 2011-05-23  Bruno Haible  <bruno@clisp.org>
7447
7448         yesno: Move AC_LIBOBJ invocations to module description.
7449         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
7450         * modules/yesno (Makefile.am): Augment lib_SOURCES.
7451
7452 2011-05-23  Bruno Haible  <bruno@clisp.org>
7453
7454         xstrtol: Move AC_LIBOBJ invocations to module description.
7455         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
7456         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
7457
7458 2011-05-23  Bruno Haible  <bruno@clisp.org>
7459
7460         xstrtold: Move AC_LIBOBJ invocations to module description.
7461         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
7462         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
7463
7464 2011-05-23  Bruno Haible  <bruno@clisp.org>
7465
7466         xstrtod: Move AC_LIBOBJ invocations to module description.
7467         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
7468         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
7469
7470 2011-05-23  Bruno Haible  <bruno@clisp.org>
7471
7472         xnanosleep: Move AC_LIBOBJ invocations to module description.
7473         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
7474         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
7475
7476 2011-05-23  Bruno Haible  <bruno@clisp.org>
7477
7478         xgetcwd: Move AC_LIBOBJ invocations to module description.
7479         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
7480         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
7481
7482 2011-05-23  Bruno Haible  <bruno@clisp.org>
7483
7484         xalloc: Move AC_LIBOBJ invocations to module description.
7485         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
7486         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
7487
7488 2011-05-23  Bruno Haible  <bruno@clisp.org>
7489
7490         write-any-file: Move AC_LIBOBJ invocations to module description.
7491         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
7492         invocation.
7493         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
7494
7495 2011-05-23  Bruno Haible  <bruno@clisp.org>
7496
7497         utimens: Move AC_LIBOBJ invocations to module description.
7498         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
7499         * modules/utimens (Makefile.am): Augment lib_SOURCES.
7500
7501 2011-05-23  Bruno Haible  <bruno@clisp.org>
7502
7503         utimecmp: Move AC_LIBOBJ invocations to module description.
7504         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
7505         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
7506
7507 2011-05-23  Bruno Haible  <bruno@clisp.org>
7508
7509         userspec: Move AC_LIBOBJ invocations to module description.
7510         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
7511         * modules/userspec (Makefile.am): Augment lib_SOURCES.
7512
7513 2011-05-23  Bruno Haible  <bruno@clisp.org>
7514
7515         unlinkdir: Move AC_LIBOBJ invocations to module description.
7516         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
7517         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
7518
7519 2011-05-23  Bruno Haible  <bruno@clisp.org>
7520
7521         unistd-safer: Move AC_LIBOBJ invocations to module description.
7522         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
7523         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
7524
7525 2011-05-23  Bruno Haible  <bruno@clisp.org>
7526
7527         tempname: Move AC_LIBOBJ invocations to module description.
7528         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
7529         * modules/tempname (Makefile.am): Augment lib_SOURCES.
7530
7531 2011-05-23  Bruno Haible  <bruno@clisp.org>
7532
7533         strftime: Move AC_LIBOBJ invocations to module description.
7534         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
7535         * modules/strftime (Makefile.am): Augment lib_SOURCES.
7536
7537 2011-05-23  Bruno Haible  <bruno@clisp.org>
7538
7539         stdlib-safer: Move AC_LIBOBJ invocations to module description.
7540         * m4/stdlib-safer.m4: Remove file.
7541         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
7542         (configure.ac): Remove gl_STDLIB_SAFER call.
7543         (Makefile.am): Augment lib_SOURCES.
7544
7545 2011-05-23  Bruno Haible  <bruno@clisp.org>
7546
7547         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
7548         * m4/stdio-safer.m4: Remove file.
7549         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
7550         (configure.ac): Remove gl_TMPFILE_SAFER call.
7551         (Makefile.am): Augment lib_SOURCES.
7552
7553 2011-05-23  Bruno Haible  <bruno@clisp.org>
7554
7555         popen-safer: Move AC_LIBOBJ invocations to module description.
7556         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
7557         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
7558         (configure.ac): Remove gl_POPEN_SAFER call.
7559         (Makefile.am): Augment lib_SOURCES.
7560
7561 2011-05-23  Bruno Haible  <bruno@clisp.org>
7562
7563         freopen-safer: Move AC_LIBOBJ invocations to module description.
7564         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
7565         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
7566         (configure.ac): Remove gl_FREOPEN_SAFER call.
7567         (Makefile.am): Augment lib_SOURCES.
7568
7569 2011-05-23  Bruno Haible  <bruno@clisp.org>
7570
7571         fopen-safer: Move AC_LIBOBJ invocations to module description.
7572         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
7573         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
7574         (configure.ac): Remove gl_FOPEN_SAFER call.
7575         (Makefile.am): Augment lib_SOURCES.
7576
7577 2011-05-23  Bruno Haible  <bruno@clisp.org>
7578
7579         crypto/sha512: Move AC_LIBOBJ invocations to module description.
7580         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
7581         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
7582
7583 2011-05-23  Bruno Haible  <bruno@clisp.org>
7584
7585         crypto/sha256: Move AC_LIBOBJ invocations to module description.
7586         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
7587         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
7588
7589 2011-05-23  Bruno Haible  <bruno@clisp.org>
7590
7591         crypto/sha1: Move AC_LIBOBJ invocations to module description.
7592         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
7593         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
7594
7595 2011-05-23  Bruno Haible  <bruno@clisp.org>
7596
7597         settime: Move AC_LIBOBJ invocations to module description.
7598         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
7599         * modules/settime (Makefile.am): Augment lib_SOURCES.
7600
7601 2011-05-23  Bruno Haible  <bruno@clisp.org>
7602
7603         savedir: Move AC_LIBOBJ invocations to module description.
7604         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
7605         * modules/savedir (Makefile.am): Augment lib_SOURCES.
7606
7607 2011-05-23  Bruno Haible  <bruno@clisp.org>
7608
7609         save-cwd: Move AC_LIBOBJ invocations to module description.
7610         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
7611         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
7612
7613 2011-05-23  Bruno Haible  <bruno@clisp.org>
7614
7615         same: Move AC_LIBOBJ invocations to module description.
7616         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
7617         * modules/same (Makefile.am): Augment lib_SOURCES.
7618
7619 2011-05-23  Bruno Haible  <bruno@clisp.org>
7620
7621         safe-write: Move AC_LIBOBJ invocations to module description.
7622         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
7623         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
7624         instead of gl_SAFE_WRITE.
7625         (Makefile.am): Augment lib_SOURCES.
7626
7627 2011-05-23  Bruno Haible  <bruno@clisp.org>
7628
7629         safe-read: Move AC_LIBOBJ invocations to module description.
7630         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
7631         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
7632         of gl_SAFE_READ.
7633         (Makefile.am): Augment lib_SOURCES.
7634
7635 2011-05-23  Bruno Haible  <bruno@clisp.org>
7636
7637         safe-alloc: Move AC_LIBOBJ invocations to module description.
7638         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
7639         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
7640
7641 2011-05-23  Bruno Haible  <bruno@clisp.org>
7642
7643         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
7644         * m4/rijndael.m4: Remove file.
7645         * modules/crypto/rijndael (Files): Remove it.
7646         (configure.ac): Remove gl_RIJNDAEL call.
7647         (Makefile.am): Augment lib_SOURCES.
7648
7649 2011-05-23  Bruno Haible  <bruno@clisp.org>
7650
7651         readtokens: Move AC_LIBOBJ invocations to module description.
7652         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
7653         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
7654
7655 2011-05-23  Bruno Haible  <bruno@clisp.org>
7656
7657         read-file: Move AC_LIBOBJ invocations to module description.
7658         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
7659         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
7660         of gl_FUNC_READ_FILE.
7661         (Makefile.am): Augment lib_SOURCES.
7662
7663 2011-05-23  Bruno Haible  <bruno@clisp.org>
7664
7665         quotearg: Move AC_LIBOBJ invocations to module description.
7666         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
7667         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
7668
7669 2011-05-23  Bruno Haible  <bruno@clisp.org>
7670
7671         quote: Move AC_LIBOBJ invocations to module description.
7672         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
7673         * modules/quote (Makefile.am): Augment lib_SOURCES.
7674
7675 2011-05-23  Bruno Haible  <bruno@clisp.org>
7676
7677         posixver: Move AC_LIBOBJ invocations to module description.
7678         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
7679         * modules/posixver (Makefile.am): Augment lib_SOURCES.
7680
7681 2011-05-23  Bruno Haible  <bruno@clisp.org>
7682
7683         posixtm: Move AC_LIBOBJ invocations to module description.
7684         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
7685         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
7686
7687 2011-05-23  Bruno Haible  <bruno@clisp.org>
7688
7689         physmem: Move AC_LIBOBJ invocations to module description.
7690         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
7691         * modules/physmem (Makefile.am): Augment lib_SOURCES.
7692
7693 2011-05-23  Bruno Haible  <bruno@clisp.org>
7694
7695         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
7696         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
7697         invocation.
7698         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
7699
7700 2011-05-23  Bruno Haible  <bruno@clisp.org>
7701
7702         mpsort: Move AC_LIBOBJ invocations to module description.
7703         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
7704         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
7705
7706 2011-05-23  Bruno Haible  <bruno@clisp.org>
7707
7708         modechange: Move AC_LIBOBJ invocations to module description.
7709         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
7710         * modules/modechange (Makefile.am): Augment lib_SOURCES.
7711
7712 2011-05-23  Bruno Haible  <bruno@clisp.org>
7713
7714         mkdir-p: Move AC_LIBOBJ invocations to module description.
7715         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
7716         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
7717
7718 2011-05-23  Bruno Haible  <bruno@clisp.org>
7719
7720         mkancesdirs: Move AC_LIBOBJ invocations to module description.
7721         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
7722         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
7723
7724 2011-05-23  Bruno Haible  <bruno@clisp.org>
7725
7726         mgetgroups: Move AC_LIBOBJ invocations to module description.
7727         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
7728         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
7729
7730 2011-05-23  Bruno Haible  <bruno@clisp.org>
7731
7732         memxor: Move AC_LIBOBJ invocations to module description.
7733         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
7734         * modules/memxor (Makefile.am): Augment lib_SOURCES.
7735
7736 2011-05-23  Bruno Haible  <bruno@clisp.org>
7737
7738         memcoll: Move AC_LIBOBJ invocations to module description.
7739         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
7740         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
7741
7742 2011-05-23  Bruno Haible  <bruno@clisp.org>
7743
7744         memcasecmp: Move AC_LIBOBJ invocations to module description.
7745         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
7746         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
7747
7748 2011-05-23  Bruno Haible  <bruno@clisp.org>
7749
7750         crypto/md5: Move AC_LIBOBJ invocations to module description.
7751         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
7752         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
7753
7754 2011-05-23  Bruno Haible  <bruno@clisp.org>
7755
7756         crypto/md4: Move AC_LIBOBJ invocations to module description.
7757         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
7758         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
7759
7760 2011-05-23  Bruno Haible  <bruno@clisp.org>
7761
7762         crypto/md2: Move AC_LIBOBJ invocations to module description.
7763         * m4/md2.m4: Remove file.
7764         * modules/crypto/md2 (Files): Remove it.
7765         (configure.ac): Remove gl_MD2 call.
7766         (Makefile.am): Augment lib_SOURCES.
7767
7768 2011-05-23  Bruno Haible  <bruno@clisp.org>
7769
7770         long-options: Move AC_LIBOBJ invocations to module description.
7771         * m4/long-options.m4: Remove file.
7772         * modules/long-options (Files): Remove it.
7773         (configure.ac): Remove gl_LONG_OPTIONS call.
7774         (Makefile.am): Augment lib_SOURCES.
7775
7776 2011-05-23  Bruno Haible  <bruno@clisp.org>
7777
7778         i-ring: Move AC_LIBOBJ invocations to module description.
7779         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
7780         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
7781
7782 2011-05-23  Bruno Haible  <bruno@clisp.org>
7783
7784         idcache: Move AC_LIBOBJ invocations to module description.
7785         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
7786         * modules/idcache (Makefile.am): Augment lib_SOURCES.
7787
7788 2011-05-23  Bruno Haible  <bruno@clisp.org>
7789
7790         human: Move AC_LIBOBJ invocations to module description.
7791         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
7792         * modules/human (Makefile.am): Augment lib_SOURCES.
7793
7794 2011-05-23  Bruno Haible  <bruno@clisp.org>
7795
7796         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
7797         * m4/hmac-sha1.m4: Remove file.
7798         * modules/crypto/hmac-sha1 (Files): Remove it.
7799         (configure.ac): Remove gl_HMAC_SHA1 call.
7800         (Makefile.am): Augment lib_SOURCES.
7801
7802 2011-05-23  Bruno Haible  <bruno@clisp.org>
7803
7804         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
7805         * m4/hmac-md5.m4: Remove file.
7806         * modules/crypto/hmac-md5 (Files): Remove it.
7807         (configure.ac): Remove gl_HMAC_MD5 call.
7808         (Makefile.am): Augment lib_SOURCES.
7809
7810 2011-05-23  Bruno Haible  <bruno@clisp.org>
7811
7812         hash: Move AC_LIBOBJ invocations to module description.
7813         * m4/hash.m4: Remove file.
7814         * modules/hash (Files): Remove it.
7815         (configure.ac): Remove gl_HASH call.
7816         (Makefile.am): Augment lib_SOURCES.
7817
7818 2011-05-23  Bruno Haible  <bruno@clisp.org>
7819
7820         hard-locale: Move AC_LIBOBJ invocations to module description.
7821         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
7822         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
7823
7824 2011-05-23  Bruno Haible  <bruno@clisp.org>
7825
7826         getugroups: Move AC_LIBOBJ invocations to module description.
7827         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
7828         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
7829
7830 2011-05-23  Bruno Haible  <bruno@clisp.org>
7831
7832         gettime: Move AC_LIBOBJ invocations to module description.
7833         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
7834         * modules/gettime (Makefile.am): Augment lib_SOURCES.
7835
7836 2011-05-23  Bruno Haible  <bruno@clisp.org>
7837
7838         getndelim2: Move AC_LIBOBJ invocations to module description.
7839         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
7840         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
7841
7842 2011-05-23  Bruno Haible  <bruno@clisp.org>
7843
7844         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
7845         * m4/gc-pbkdf2-sha1.m4: Remove file.
7846         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
7847         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
7848         (Makefile.am): Augment lib_SOURCES.
7849
7850 2011-05-23  Bruno Haible  <bruno@clisp.org>
7851
7852         fts: Move AC_LIBOBJ invocations to module description.
7853         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
7854         * modules/fts (configure.ac): ... to here.
7855
7856 2011-05-23  Bruno Haible  <bruno@clisp.org>
7857
7858         file-type: Move AC_LIBOBJ invocations to module description.
7859         * m4/file-type.m4: Remove file.
7860         * modules/file-type (Files): Remove it.
7861         (configure.ac): Remove gl_FILE_TYPE call.
7862         (Makefile.am): Augment lib_SOURCES.
7863
7864 2011-05-23  Bruno Haible  <bruno@clisp.org>
7865
7866         filenamecat*: Respect rules for use of AC_LIBOBJ.
7867         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
7868         Remove AC_LIBOBJ invocation.
7869         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
7870         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
7871
7872 2011-05-23  Bruno Haible  <bruno@clisp.org>
7873
7874         filemode: Move AC_LIBOBJ invocations to module description.
7875         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
7876         * modules/filemode (Makefile.am): Augment lib_SOURCES.
7877
7878 2011-05-23  Bruno Haible  <bruno@clisp.org>
7879
7880         openat-safer: Move AC_LIBOBJ invocations to module description.
7881         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
7882         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
7883
7884 2011-05-23  Bruno Haible  <bruno@clisp.org>
7885
7886         fcntl-safer: Move AC_LIBOBJ invocations to module description.
7887         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
7888         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
7889
7890 2011-05-23  Bruno Haible  <bruno@clisp.org>
7891
7892         exclude: Move AC_LIBOBJ invocations to module description.
7893         * m4/exclude.m4: Remove file.
7894         * modules/exclude (Files): Remove it.
7895         (configure.ac): Remove gl_EXCLUDE call.
7896         (Makefile.am): Augment lib_SOURCES.
7897
7898 2011-05-23  Bruno Haible  <bruno@clisp.org>
7899
7900         dirname*: Respect rules for use of AC_LIBOBJ.
7901         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
7902         invocations.
7903         * modules/dirname (Makefile.am): Augment lib_SOURCES.
7904         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
7905
7906 2011-05-23  Bruno Haible  <bruno@clisp.org>
7907
7908         dirent-safer: Move AC_LIBOBJ invocations to module description.
7909         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
7910         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
7911
7912 2011-05-23  Bruno Haible  <bruno@clisp.org>
7913
7914         crypto/des: Move AC_LIBOBJ invocations to module description.
7915         * m4/des.m4: Remove file.
7916         * modules/crypto/des (Files): Remove it.
7917         (configure.ac): Remove gl_DES call.
7918         (Makefile.am): Augment lib_SOURCES.
7919
7920 2011-05-23  Bruno Haible  <bruno@clisp.org>
7921
7922         cycle-check: Move AC_LIBOBJ invocations to module description.
7923         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
7924         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
7925
7926 2011-05-23  Bruno Haible  <bruno@clisp.org>
7927
7928         c-strtold: Move AC_LIBOBJ invocations to module description.
7929         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
7930         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
7931
7932 2011-05-23  Bruno Haible  <bruno@clisp.org>
7933
7934         c-strtod: Move AC_LIBOBJ invocations to module description.
7935         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
7936         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
7937
7938 2011-05-23  Bruno Haible  <bruno@clisp.org>
7939
7940         crc: Move AC_LIBOBJ invocations to module description.
7941         * m4/crc.m4: Remove file.
7942         * modules/crc (Files): Remove it.
7943         (configure.ac): Remove gl_CRC call.
7944         (Makefile.am): Augment lib_SOURCES.
7945
7946 2011-05-23  Bruno Haible  <bruno@clisp.org>
7947
7948         close-stream: Move AC_LIBOBJ invocations to module description.
7949         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
7950         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
7951
7952 2011-05-23  Bruno Haible  <bruno@clisp.org>
7953
7954         closeout: Move AC_LIBOBJ invocations to module description.
7955         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
7956         * modules/closeout (Makefile.am): Augment lib_SOURCES.
7957
7958 2011-05-23  Bruno Haible  <bruno@clisp.org>
7959
7960         closein: Move AC_LIBOBJ invocations to module description.
7961         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
7962         * modules/closein (Makefile.am): Augment lib_SOURCES.
7963
7964 2011-05-23  Bruno Haible  <bruno@clisp.org>
7965
7966         cloexec: Move AC_LIBOBJ invocations to module description.
7967         * m4/cloexec.m4: Remove file.
7968         * modules/cloexec (Files): Remove it.
7969         (configure.ac): Remove gl_CLOEXEC call.
7970         (Makefile.am): Augment lib_SOURCES.
7971
7972 2011-05-23  Bruno Haible  <bruno@clisp.org>
7973
7974         check-version: Move AC_LIBOBJ invocations to module description.
7975         * m4/check-version.m4: Remove file.
7976         * modules/check-version (Files): Remove it.
7977         (configure.ac): Remove gl_CHECK_VERSION call.
7978         (Makefile.am): Augment lib_SOURCES.
7979
7980 2011-05-23  Bruno Haible  <bruno@clisp.org>
7981
7982         chdir-safer: Move AC_LIBOBJ invocations to module description.
7983         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
7984         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
7985
7986 2011-05-23  Bruno Haible  <bruno@clisp.org>
7987
7988         canonicalize: Move AC_LIBOBJ invocations to module description.
7989         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
7990         AC_LIBOBJ invocation.
7991         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
7992
7993 2011-05-23  Bruno Haible  <bruno@clisp.org>
7994
7995         canon-host: Move AC_LIBOBJ invocations to module description.
7996         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
7997         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
7998         instead of gl_CANON_HOST.
7999         (Makefile.am): Augment lib_SOURCES.
8000
8001 2011-05-23  Bruno Haible  <bruno@clisp.org>
8002
8003         backupfile: Move AC_LIBOBJ invocations to module description.
8004         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
8005         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
8006
8007 2011-05-23  Bruno Haible  <bruno@clisp.org>
8008
8009         argmatch: Move AC_LIBOBJ invocations to module description.
8010         * m4/argmatch.m4: Remove file.
8011         * modules/argmatch (Files): Remove it.
8012         (configure.ac): Remove gl_ARGMATCH call.
8013         (Makefile.am): Augment lib_SOURCES.
8014
8015 2011-05-23  Bruno Haible  <bruno@clisp.org>
8016
8017         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
8018         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
8019         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
8020
8021 2011-05-23  Bruno Haible  <bruno@clisp.org>
8022
8023         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
8024         * m4/arcfour.m4: Remove file.
8025         * modules/crypto/arcfour (Files): Remove it.
8026         (configure.ac): Remove gl_ARCFOUR call.
8027         (Makefile.am): Augment lib_SOURCES.
8028
8029 2011-05-22  Bruno Haible  <bruno@clisp.org>
8030
8031         write: Move AC_LIBOBJ invocations to module description.
8032         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
8033         * modules/write (configure.ac): ... to here.
8034
8035 2011-05-22  Bruno Haible  <bruno@clisp.org>
8036
8037         wmemset: Move AC_LIBOBJ invocations to module description.
8038         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
8039         here...
8040         * modules/wmemset (configure.ac): ... to here.
8041
8042 2011-05-22  Bruno Haible  <bruno@clisp.org>
8043
8044         wmemmove: Move AC_LIBOBJ invocations to module description.
8045         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
8046         here...
8047         * modules/wmemmove (configure.ac): ... to here.
8048
8049 2011-05-22  Bruno Haible  <bruno@clisp.org>
8050
8051         wmemcpy: Move AC_LIBOBJ invocations to module description.
8052         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
8053         here...
8054         * modules/wmemcpy (configure.ac): ... to here.
8055
8056 2011-05-22  Bruno Haible  <bruno@clisp.org>
8057
8058         wmemcmp: Move AC_LIBOBJ invocations to module description.
8059         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
8060         here...
8061         * modules/wmemcmp (configure.ac): ... to here.
8062
8063 2011-05-22  Bruno Haible  <bruno@clisp.org>
8064
8065         wmemchr: Move AC_LIBOBJ invocations to module description.
8066         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
8067         here...
8068         * modules/wmemchr (configure.ac): ... to here.
8069
8070 2011-05-22  Bruno Haible  <bruno@clisp.org>
8071
8072         wcswidth: Move AC_LIBOBJ invocations to module description.
8073         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
8074         here...
8075         * modules/wcswidth (configure.ac): ... to here.
8076
8077 2011-05-22  Bruno Haible  <bruno@clisp.org>
8078
8079         wcwidth: Respect rules for use of AC_LIBOBJ.
8080         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
8081         invocation from here...
8082         * modules/wcwidth (configure.ac): ... to here.
8083         (Depends-on): Update conditions.
8084
8085 2011-05-22  Bruno Haible  <bruno@clisp.org>
8086
8087         wctype: Move AC_LIBOBJ invocations to module description.
8088         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
8089         invocation from here...
8090         * modules/wctype (configure.ac): ... to here.
8091         (Depends-on): Update conditions.
8092
8093 2011-05-22  Bruno Haible  <bruno@clisp.org>
8094
8095         wctrans: Move AC_LIBOBJ invocations to module description.
8096         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
8097         invocation from here...
8098         * modules/wctrans (configure.ac): ... to here.
8099
8100 2011-05-22  Bruno Haible  <bruno@clisp.org>
8101
8102         wctomb: Move AC_LIBOBJ invocations to module description.
8103         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
8104         invocations from here...
8105         * modules/wctomb (configure.ac): ... to here.
8106
8107 2011-05-22  Bruno Haible  <bruno@clisp.org>
8108
8109         wctob: Move AC_LIBOBJ invocations to module description.
8110         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
8111         gl_PREREQ_WCTOB invocations from here...
8112         * modules/wctob (configure.ac): ... to here.
8113         (Depends-on): Update conditions.
8114
8115 2011-05-22  Bruno Haible  <bruno@clisp.org>
8116
8117         wcsxfrm: Move AC_LIBOBJ invocations to module description.
8118         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
8119         here...
8120         * modules/wcsxfrm (configure.ac): ... to here.
8121
8122 2011-05-22  Bruno Haible  <bruno@clisp.org>
8123
8124         wcstok: Move AC_LIBOBJ invocations to module description.
8125         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
8126         * modules/wcstok (configure.ac): ... to here.
8127
8128 2011-05-22  Bruno Haible  <bruno@clisp.org>
8129
8130         wcsstr: Move AC_LIBOBJ invocations to module description.
8131         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
8132         * modules/wcsstr (configure.ac): ... to here.
8133
8134 2011-05-22  Bruno Haible  <bruno@clisp.org>
8135
8136         wcsspn: Move AC_LIBOBJ invocations to module description.
8137         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
8138         * modules/wcsspn (configure.ac): ... to here.
8139
8140 2011-05-22  Bruno Haible  <bruno@clisp.org>
8141
8142         wcsrtombs: Move AC_LIBOBJ invocations to module description.
8143         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
8144         gl_PREREQ_WCSRTOMBS invocations from here...
8145         * modules/wcsrtombs (configure.ac): ... to here.
8146
8147 2011-05-22  Bruno Haible  <bruno@clisp.org>
8148
8149         wcsrchr: Move AC_LIBOBJ invocations to module description.
8150         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
8151         here...
8152         * modules/wcsrchr (configure.ac): ... to here.
8153
8154 2011-05-22  Bruno Haible  <bruno@clisp.org>
8155
8156         wcspbrk: Move AC_LIBOBJ invocations to module description.
8157         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
8158         here...
8159         * modules/wcspbrk (configure.ac): ... to here.
8160
8161 2011-05-22  Bruno Haible  <bruno@clisp.org>
8162
8163         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
8164         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
8165         gl_PREREQ_WCSNRTOMBS invocations from here...
8166         * modules/wcsnrtombs (configure.ac): ... to here.
8167
8168 2011-05-22  Bruno Haible  <bruno@clisp.org>
8169
8170         wcsnlen: Move AC_LIBOBJ invocations to module description.
8171         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
8172         here...
8173         * modules/wcsnlen (configure.ac): ... to here.
8174
8175 2011-05-22  Bruno Haible  <bruno@clisp.org>
8176
8177         wcsncpy: Move AC_LIBOBJ invocations to module description.
8178         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
8179         here...
8180         * modules/wcsncpy (configure.ac): ... to here.
8181
8182 2011-05-22  Bruno Haible  <bruno@clisp.org>
8183
8184         wcsncmp: Move AC_LIBOBJ invocations to module description.
8185         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
8186         here...
8187         * modules/wcsncmp (configure.ac): ... to here.
8188
8189 2011-05-22  Bruno Haible  <bruno@clisp.org>
8190
8191         wcsncat: Move AC_LIBOBJ invocations to module description.
8192         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
8193         here...
8194         * modules/wcsncat (configure.ac): ... to here.
8195
8196 2011-05-22  Bruno Haible  <bruno@clisp.org>
8197
8198         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
8199         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
8200         from here...
8201         * modules/wcsncasecmp (configure.ac): ... to here.
8202
8203 2011-05-22  Bruno Haible  <bruno@clisp.org>
8204
8205         wcslen: Move AC_LIBOBJ invocations to module description.
8206         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
8207         * modules/wcslen (configure.ac): ... to here.
8208
8209 2011-05-22  Bruno Haible  <bruno@clisp.org>
8210
8211         wcsdup: Move AC_LIBOBJ invocations to module description.
8212         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
8213         * modules/wcsdup (configure.ac): ... to here.
8214
8215 2011-05-22  Bruno Haible  <bruno@clisp.org>
8216
8217         wcscspn: Move AC_LIBOBJ invocations to module description.
8218         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
8219         here...
8220         * modules/wcscspn (configure.ac): ... to here.
8221
8222 2011-05-22  Bruno Haible  <bruno@clisp.org>
8223
8224         wcscpy: Move AC_LIBOBJ invocations to module description.
8225         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
8226         * modules/wcscpy (configure.ac): ... to here.
8227
8228 2011-05-22  Bruno Haible  <bruno@clisp.org>
8229
8230         wcscoll: Move AC_LIBOBJ invocations to module description.
8231         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
8232         here...
8233         * modules/wcscoll (configure.ac): ... to here.
8234
8235 2011-05-22  Bruno Haible  <bruno@clisp.org>
8236
8237         wcscmp: Move AC_LIBOBJ invocations to module description.
8238         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
8239         * modules/wcscmp (configure.ac): ... to here.
8240
8241 2011-05-22  Bruno Haible  <bruno@clisp.org>
8242
8243         wcschr: Move AC_LIBOBJ invocations to module description.
8244         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
8245         * modules/wcschr (configure.ac): ... to here.
8246
8247 2011-05-22  Bruno Haible  <bruno@clisp.org>
8248
8249         wcscat: Move AC_LIBOBJ invocations to module description.
8250         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
8251         * modules/wcscat (configure.ac): ... to here.
8252
8253 2011-05-22  Bruno Haible  <bruno@clisp.org>
8254
8255         wcscasecmp: Move AC_LIBOBJ invocations to module description.
8256         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
8257         here...
8258         * modules/wcscasecmp (configure.ac): ... to here.
8259
8260 2011-05-22  Bruno Haible  <bruno@clisp.org>
8261
8262         wcrtomb: Move AC_LIBOBJ invocations to module description.
8263         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
8264         invocations from here...
8265         * modules/wcrtomb (configure.ac): ... to here.
8266
8267 2011-05-22  Bruno Haible  <bruno@clisp.org>
8268
8269         wcpncpy: Move AC_LIBOBJ invocations to module description.
8270         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
8271         here...
8272         * modules/wcpncpy (configure.ac): ... to here.
8273
8274 2011-05-22  Bruno Haible  <bruno@clisp.org>
8275
8276         wcpcpy: Move AC_LIBOBJ invocations to module description.
8277         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
8278         * modules/wcpcpy (configure.ac): ... to here.
8279
8280 2011-05-22  Bruno Haible  <bruno@clisp.org>
8281
8282         waitpid: Move AC_LIBOBJ invocations to module description.
8283         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
8284         invocation from here...
8285         * modules/waitpid (configure.ac): ... to here.
8286
8287 2011-05-22  Bruno Haible  <bruno@clisp.org>
8288
8289         utimensat: Move AC_LIBOBJ invocations to module description.
8290         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
8291         here...
8292         * modules/utimensat (configure.ac): ... to here.
8293
8294 2011-05-22  Bruno Haible  <bruno@clisp.org>
8295
8296         usleep: Move AC_LIBOBJ invocations to module description.
8297         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
8298         here...
8299         * modules/usleep (configure.ac): ... to here.
8300
8301 2011-05-22  Bruno Haible  <bruno@clisp.org>
8302
8303         unlockpt: Move AC_LIBOBJ invocations to module description.
8304         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
8305         gl_PREREQ_UNLOCKPT invocations from here...
8306         * modules/unlockpt (configure.ac): ... to here.
8307
8308 2011-05-22  Bruno Haible  <bruno@clisp.org>
8309
8310         unlink: Respect rules for use of AC_LIBOBJ.
8311         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
8312         * modules/unlink (configure.ac): ... to here.
8313
8314 2011-05-22  Bruno Haible  <bruno@clisp.org>
8315
8316         uname: Move AC_LIBOBJ invocations to module description.
8317         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
8318         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
8319         here...
8320         * modules/uname (configure.ac): ... to here.
8321
8322 2011-05-22  Bruno Haible  <bruno@clisp.org>
8323
8324         ttyname_r: Move AC_LIBOBJ invocations to module description.
8325         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
8326         gl_PREREQ_TTYNAME_R invocations from here...
8327         * modules/ttyname_r (configure.ac): ... to here.
8328
8329 2011-05-22  Bruno Haible  <bruno@clisp.org>
8330
8331         tsearch: Move AC_LIBOBJ invocations to module description.
8332         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
8333         invocations from here...
8334         * modules/tsearch (configure.ac): ... to here.
8335
8336 2011-05-22  Bruno Haible  <bruno@clisp.org>
8337
8338         towctrans: Move AC_LIBOBJ invocations to module description.
8339         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
8340         AC_LIBOBJ invocation from here...
8341         * modules/towctrans (configure.ac): ... to here.
8342
8343 2011-05-22  Bruno Haible  <bruno@clisp.org>
8344
8345         tmpfile: Move AC_LIBOBJ invocations to module description.
8346         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
8347         invocations from here...
8348         * modules/tmpfile (configure.ac): ... to here.
8349
8350 2011-05-22  Bruno Haible  <bruno@clisp.org>
8351
8352         times: Move AC_LIBOBJ invocations to module description.
8353         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
8354         * modules/times (configure.ac): ... to here.
8355
8356 2011-05-22  Bruno Haible  <bruno@clisp.org>
8357
8358         time_r: Move AC_LIBOBJ invocations to module description.
8359         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
8360         invocations from here...
8361         * modules/time_r (configure.ac): ... to here.
8362
8363 2011-05-22  Bruno Haible  <bruno@clisp.org>
8364
8365         timegm: Move AC_LIBOBJ invocations to module description.
8366         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
8367         invocations from here...
8368         * modules/timegm (configure.ac): ... to here.
8369
8370 2011-05-22  Bruno Haible  <bruno@clisp.org>
8371
8372         tcgetsid: Move AC_LIBOBJ invocations to module description.
8373         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
8374         and gl_PREREQ_TCGETSID invocations from here...
8375         * modules/tcgetsid (configure.ac): ... to here.
8376         (Depends-on): Update conditions.
8377
8378 2011-05-22  Bruno Haible  <bruno@clisp.org>
8379
8380         symlinkat: Move AC_LIBOBJ invocations to module description.
8381         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
8382         here...
8383         * modules/symlinkat (configure.ac): ... to here.
8384
8385 2011-05-22  Bruno Haible  <bruno@clisp.org>
8386
8387         symlink: Move AC_LIBOBJ invocations to module description.
8388         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
8389         here...
8390         * modules/symlink (configure.ac): ... to here.
8391
8392 2011-05-22  Bruno Haible  <bruno@clisp.org>
8393
8394         strverscmp: Move AC_LIBOBJ invocations to module description.
8395         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
8396         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
8397         from here...
8398         * modules/strverscmp (configure.ac): ... to here.
8399
8400 2011-05-22  Bruno Haible  <bruno@clisp.org>
8401
8402         strtok_r: Move AC_LIBOBJ invocations to module description.
8403         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
8404         and gl_PREREQ_STRTOK_R invocations from here...
8405         * modules/strtok_r (configure.ac): ... to here.
8406         (Depends-on): Update conditions.
8407
8408 2011-05-22  Bruno Haible  <bruno@clisp.org>
8409
8410         strtoumax: Move AC_LIBOBJ invocations to module description.
8411         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
8412         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
8413         from here...
8414         * modules/strtoumax (configure.ac): ... to here.
8415
8416 2011-05-22  Bruno Haible  <bruno@clisp.org>
8417
8418         strtoimax: Move AC_LIBOBJ invocations to module description.
8419         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
8420         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
8421         from here...
8422         * modules/strtoimax (configure.ac): ... to here.
8423
8424 2011-05-22  Bruno Haible  <bruno@clisp.org>
8425
8426         strtoull: Move AC_LIBOBJ invocations to module description.
8427         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
8428         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
8429         from here...
8430         * modules/strtoull (configure.ac): ... to here.
8431
8432 2011-05-22  Bruno Haible  <bruno@clisp.org>
8433
8434         strtoll: Move AC_LIBOBJ invocations to module description.
8435         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
8436         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
8437         here...
8438         * modules/strtoll (configure.ac): ... to here.
8439
8440 2011-05-22  Bruno Haible  <bruno@clisp.org>
8441
8442         strtoul: Move AC_LIBOBJ invocations to module description.
8443         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
8444         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
8445         * modules/strtoul (configure.ac): ... to here.
8446
8447 2011-05-22  Bruno Haible  <bruno@clisp.org>
8448
8449         strtol: Move AC_LIBOBJ invocations to module description.
8450         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
8451         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
8452         * modules/strtol (configure.ac): ... to here.
8453
8454 2011-05-22  Bruno Haible  <bruno@clisp.org>
8455
8456         strtod: Move AC_LIBOBJ invocations to module description.
8457         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
8458         invocations from here...
8459         * modules/strtod (configure.ac): ... to here.
8460
8461 2011-05-22  Bruno Haible  <bruno@clisp.org>
8462
8463         strstr*: Move AC_LIBOBJ invocations to module description.
8464         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
8465         invocations from here...
8466         * modules/strstr-simple (configure.ac): ... to here.
8467         * modules/strstr (configure.ac): ... and here.
8468
8469 2011-05-22  Bruno Haible  <bruno@clisp.org>
8470
8471         strsignal: Move AC_LIBOBJ invocations to module description.
8472         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
8473         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
8474         * modules/strsignal (configure.ac): ... to here.
8475         (Depends-on): Update conditions.
8476
8477 2011-05-22  Bruno Haible  <bruno@clisp.org>
8478
8479         strsep: Move AC_LIBOBJ invocations to module description.
8480         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
8481         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
8482         here...
8483         * modules/strsep (configure.ac): ... to here.
8484
8485 2011-05-22  Bruno Haible  <bruno@clisp.org>
8486
8487         strptime: Move AC_LIBOBJ invocations to module description.
8488         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
8489         gl_PREREQ_STRPTIME invocations from here...
8490         * modules/strptime (configure.ac): ... to here.
8491
8492 2011-05-22  Bruno Haible  <bruno@clisp.org>
8493
8494         strpbrk: Move AC_LIBOBJ invocations to module description.
8495         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
8496         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
8497         here...
8498         * modules/strpbrk (configure.ac): ... to here.
8499
8500 2011-05-22  Bruno Haible  <bruno@clisp.org>
8501
8502         strnlen: Move AC_LIBOBJ invocations to module description.
8503         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
8504         invocations from here...
8505         * modules/strnlen (configure.ac): ... to here.
8506
8507 2011-05-22  Bruno Haible  <bruno@clisp.org>
8508
8509         strndup: Move AC_LIBOBJ invocations to module description.
8510         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
8511         invocations from here...
8512         * modules/strndup (configure.ac): ... to here.
8513         (Depends-on): Update conditions.
8514
8515 2011-05-22  Bruno Haible  <bruno@clisp.org>
8516
8517         strncat: Move AC_LIBOBJ invocations to module description.
8518         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
8519         invocations from here...
8520         * modules/strncat (configure.ac): ... to here.
8521
8522 2011-05-22  Bruno Haible  <bruno@clisp.org>
8523
8524         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
8525         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
8526         invocations from here...
8527         * modules/strdup (configure.ac): ... to here.
8528         * modules/strdup-posix (configure.ac): ... and here.
8529
8530 2011-05-22  Bruno Haible  <bruno@clisp.org>
8531
8532         strcspn: Move AC_LIBOBJ invocations to module description.
8533         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
8534         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
8535         here...
8536         * modules/strcspn (configure.ac): ... to here.
8537
8538 2011-05-22  Bruno Haible  <bruno@clisp.org>
8539
8540         strchrnul: Move AC_LIBOBJ invocations to module description.
8541         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
8542         gl_PREREQ_STRCHRNUL invocations from here...
8543         * modules/strchrnul (configure.ac): ... to here.
8544
8545 2011-05-22  Bruno Haible  <bruno@clisp.org>
8546
8547         strcasestr*: Move AC_LIBOBJ invocations to module description.
8548         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
8549         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
8550         * modules/strcasestr-simple (configure.ac): ... to here.
8551         * modules/strcasestr (configure.ac): ... and here.
8552
8553 2011-05-22  Bruno Haible  <bruno@clisp.org>
8554
8555         strcase: Move AC_LIBOBJ invocations to module description.
8556         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
8557         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
8558         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
8559         gl_PREREQ_STRNCASECMP invocations from here...
8560         * modules/strcase (configure.ac): ... to here.
8561
8562 2011-05-22  Bruno Haible  <bruno@clisp.org>
8563
8564         stpncpy: Move AC_LIBOBJ invocations to module description.
8565         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
8566         here...
8567         * modules/stpncpy (configure.ac): ... to here.
8568
8569 2011-05-22  Bruno Haible  <bruno@clisp.org>
8570
8571         stpcpy: Move AC_LIBOBJ invocations to module description.
8572         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
8573         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
8574         here...
8575         * modules/stpcpy (configure.ac): ... to here.
8576
8577 2011-05-21  Bruno Haible  <bruno@clisp.org>
8578
8579         stat: Move AC_LIBOBJ invocations to module description.
8580         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
8581         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
8582         here...
8583         * modules/stat (configure.ac): ... to here.
8584
8585 2011-05-21  Bruno Haible  <bruno@clisp.org>
8586
8587         sleep: Move AC_LIBOBJ invocations to module description.
8588         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
8589         * modules/sleep (configure.ac): ... to here.
8590
8591 2011-05-21  Bruno Haible  <bruno@clisp.org>
8592
8593         signbit: Move AC_LIBOBJ invocations to module description.
8594         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
8595         * modules/signbit (configure.ac): ... to here.
8596
8597 2011-05-21  Bruno Haible  <bruno@clisp.org>
8598
8599         sigprocmask: Move AC_LIBOBJ invocations to module description.
8600         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
8601         gl_PREREQ_SIGPROMASK invocations from here...
8602         * modules/sigprocmask (configure.ac): ... to here.
8603
8604 2011-05-21  Bruno Haible  <bruno@clisp.org>
8605
8606         sigaction: Move AC_LIBOBJ invocations to module description.
8607         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
8608         gl_PREREQ_SIGACTION invocations from here...
8609         * modules/sigaction (configure.ac): ... to here.
8610
8611 2011-05-21  Bruno Haible  <bruno@clisp.org>
8612
8613         sig2str: Move AC_LIBOBJ invocations to module description.
8614         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
8615         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
8616         here...
8617         * modules/sig2str (configure.ac): ... to here.
8618
8619 2011-05-21  Bruno Haible  <bruno@clisp.org>
8620
8621         setlocale: Move AC_LIBOBJ invocations to module description.
8622         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
8623         gl_PREREQ_SETLOCALE invocations from here...
8624         * modules/setlocale (configure.ac): ... to here.
8625
8626 2011-05-21  Bruno Haible  <bruno@clisp.org>
8627
8628         unsetenv: Move AC_LIBOBJ invocations to module description.
8629         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
8630         and gl_PREREQ_UNSETENV invocations from here...
8631         * modules/unsetenv (configure.ac): ... to here.
8632         (Depends-on): Update.
8633
8634 2011-05-21  Bruno Haible  <bruno@clisp.org>
8635
8636         setenv: Move AC_LIBOBJ invocations to module description.
8637         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
8638         here...
8639         * modules/setenv (configure.ac): ... to here.
8640
8641 2011-05-21  Bruno Haible  <bruno@clisp.org>
8642
8643         selinux-h: Move AC_LIBOBJ invocations to module description.
8644         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
8645         AC_LIBOBJ invocation from here...
8646         * modules/selinux-h (configure.ac): ... to here.
8647
8648 2011-05-21  Bruno Haible  <bruno@clisp.org>
8649
8650         select: Respect rules for use of AC_LIBOBJ.
8651         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
8652         here...
8653         * modules/select (configure.ac): ... to here.
8654
8655 2011-05-21  Bruno Haible  <bruno@clisp.org>
8656
8657         scandir: Move AC_LIBOBJ invocations to module description.
8658         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
8659         invocations from here...
8660         * modules/scandir (configure.ac): ... to here.
8661
8662 2011-05-21  Bruno Haible  <bruno@clisp.org>
8663
8664         rpmatch: Move AC_LIBOBJ invocations to module description.
8665         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
8666         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
8667         here...
8668         * modules/rpmatch (configure.ac): ... to here.
8669
8670 2011-05-21  Bruno Haible  <bruno@clisp.org>
8671
8672         rmdir: Respect rules for use of AC_LIBOBJ.
8673         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
8674         * modules/rmdir (configure.ac): ... to here.
8675
8676 2011-05-21  Bruno Haible  <bruno@clisp.org>
8677
8678         renameat: Move AC_LIBOBJ invocations to module description.
8679         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
8680         here...
8681         * modules/renameat (configure.ac): ... to here.
8682
8683 2011-05-21  Bruno Haible  <bruno@clisp.org>
8684
8685         rename: Respect rules for use of AC_LIBOBJ.
8686         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
8687         here...
8688         * modules/rename (configure.ac): ... to here.
8689
8690 2011-05-21  Bruno Haible  <bruno@clisp.org>
8691
8692         remove: Move AC_LIBOBJ invocations to module description.
8693         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
8694         here...
8695         * modules/remove (configure.ac): ... to here.
8696
8697 2011-05-21  Bruno Haible  <bruno@clisp.org>
8698
8699         relocatable-lib: Move AC_LIBOBJ invocations to module description.
8700         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
8701         macro.
8702         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
8703         * modules/relocatable-lib (configure.ac): ... to here.
8704         * modules/relocatable-prog-wrapper (configure.ac): Invoke
8705         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
8706
8707 2011-05-21  Bruno Haible  <bruno@clisp.org>
8708
8709         relocatable-prog: Move AC_LIBOBJ invocations to module description.
8710         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
8711         here...
8712         * modules/relocatable-prog (configure.ac): ... to here.
8713
8714 2011-05-21  Bruno Haible  <bruno@clisp.org>
8715
8716         regex: Move AC_LIBOBJ invocations to module description.
8717         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
8718         invocations from here...
8719         * modules/regex (configure.ac): ... to here.
8720
8721 2011-05-21  Bruno Haible  <bruno@clisp.org>
8722
8723         realloc-*: Move AC_LIBOBJ invocations to module description.
8724         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
8725         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
8726         AC_LIBOBJ invocations from here...
8727         * modules/realloc-gnu (configure.ac): ... to here.
8728         * modules/realloc-posix (configure.ac): ... and here.
8729
8730 2011-05-21  Bruno Haible  <bruno@clisp.org>
8731
8732         readutmp: Move AC_LIBOBJ invocations to module description.
8733         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
8734         * modules/readutmp (configure.ac): ... to here.
8735
8736 2011-05-21  Bruno Haible  <bruno@clisp.org>
8737
8738         readlinkat: Move AC_LIBOBJ invocations to module description.
8739         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
8740         here...
8741         * modules/readlinkat (configure.ac): ... to here.
8742
8743 2011-05-21  Bruno Haible  <bruno@clisp.org>
8744
8745         readlink: Move AC_LIBOBJ invocations to module description.
8746         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
8747         gl_PREREQ_READLINK invocations from here...
8748         * modules/readlink (configure.ac): ... to here.
8749
8750 2011-05-21  Bruno Haible  <bruno@clisp.org>
8751
8752         readline: Move AC_LIBOBJ invocations to module description.
8753         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
8754         gl_PREREQ_READLINE invocations from here...
8755         * modules/readline (configure.ac): ... to here.
8756
8757 2011-05-21  Bruno Haible  <bruno@clisp.org>
8758
8759         read: Move AC_LIBOBJ invocations to module description.
8760         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
8761         * modules/read (configure.ac): ... to here.
8762
8763 2011-05-21  Bruno Haible  <bruno@clisp.org>
8764
8765         rawmemchr: Move AC_LIBOBJ invocations to module description.
8766         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
8767         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
8768         from here...
8769         * modules/rawmemchr (configure.ac): ... to here.
8770
8771 2011-05-21  Bruno Haible  <bruno@clisp.org>
8772
8773         random_r: Move AC_LIBOBJ invocations to module description.
8774         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
8775         gl_PREREQ_RANDOM_R invocations from here...
8776         * modules/random_r (configure.ac): ... to here.
8777
8778 2011-05-21  Bruno Haible  <bruno@clisp.org>
8779
8780         pwrite: Move AC_LIBOBJ invocations to module description.
8781         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
8782         * modules/pwrite (configure.ac): ... to here.
8783
8784 2011-05-21  Bruno Haible  <bruno@clisp.org>
8785
8786         putenv: Move AC_LIBOBJ invocations to module description.
8787         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
8788         * modules/putenv (configure.ac): ... to here.
8789
8790 2011-05-21  Bruno Haible  <bruno@clisp.org>
8791
8792         login_tty: Move AC_LIBOBJ invocations to module description.
8793         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
8794         * modules/login_tty (configure.ac): ... to here.
8795
8796 2011-05-21  Bruno Haible  <bruno@clisp.org>
8797
8798         openpty: Move AC_LIBOBJ invocations to module description.
8799         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
8800         * modules/openpty (configure.ac): ... to here.
8801
8802 2011-05-21  Bruno Haible  <bruno@clisp.org>
8803
8804         forkpty: Move AC_LIBOBJ invocations to module description.
8805         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
8806         * modules/forkpty (configure.ac): ... to here.
8807
8808 2011-05-21  Bruno Haible  <bruno@clisp.org>
8809
8810         ptsname: Move AC_LIBOBJ invocations to module description.
8811         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
8812         invocations from here...
8813         * modules/ptsname (configure.ac): ... to here.
8814
8815 2011-05-21  Bruno Haible  <bruno@clisp.org>
8816
8817         pread: Move AC_LIBOBJ invocations to module description.
8818         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
8819         * modules/pread (configure.ac): ... to here.
8820
8821 2011-05-21  Bruno Haible  <bruno@clisp.org>
8822
8823         posix_spawn*: Move AC_LIBOBJ invocations to module description.
8824         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
8825         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
8826         * modules/posix_spawn (configure.ac): ... to here.
8827         * modules/posix_spawnp (configure.ac): ... and here.
8828
8829 2011-05-21  Bruno Haible  <bruno@clisp.org>
8830
8831         popen: Move AC_LIBOBJ invocations to module description.
8832         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
8833         invocations from here...
8834         * modules/popen (configure.ac): ... to here.
8835
8836 2011-05-21  Bruno Haible  <bruno@clisp.org>
8837
8838         poll: Move AC_LIBOBJ invocations to module description.
8839         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
8840         invocations from here...
8841         * modules/poll (configure.ac): ... to here.
8842
8843 2011-05-21  Bruno Haible  <bruno@clisp.org>
8844
8845         pipe-posix: Move AC_LIBOBJ invocations to module description.
8846         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
8847         * modules/pipe-posix (configure.ac): ... to here.
8848
8849 2011-05-21  Bruno Haible  <bruno@clisp.org>
8850
8851         openat: Respect rules for use of AC_LIBOBJ.
8852         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
8853         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8854         * modules/openat (configure.ac): ... to here.
8855
8856 2011-05-21  Bruno Haible  <bruno@clisp.org>
8857
8858         obstack-printf*: Move AC_LIBOBJ invocations to module description.
8859         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
8860         invocation from here...
8861         * modules/obstack-printf (configure.ac): ... to here.
8862         * modules/obstack-printf-posix (configure.ac): ... and here.
8863
8864 2011-05-21  Bruno Haible  <bruno@clisp.org>
8865
8866         nl_langinfo: Move AC_LIBOBJ invocations to module description.
8867         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
8868         from here...
8869         * modules/nl_langinfo (configure.ac): ... to here.
8870
8871 2011-05-21  Bruno Haible  <bruno@clisp.org>
8872
8873         nanosleep: Move AC_LIBOBJ invocations to module description.
8874         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
8875         gl_PREREQ_NANOSLEEP invocations from here...
8876         * modules/nanosleep (configure.ac): ... to here.
8877
8878 2011-05-21  Bruno Haible  <bruno@clisp.org>
8879
8880         mountlist: Move AC_LIBOBJ invocations to module description.
8881         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
8882         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
8883         * modules/mountlist (configure.ac): ... to here.
8884
8885 2011-05-21  Bruno Haible  <bruno@clisp.org>
8886
8887         mktime: Respect rules for use of AC_LIBOBJ.
8888         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
8889         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
8890         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
8891         (gl_FUNC_MKTIME_INTERNAL): ... and here...
8892         * modules/mktime (configure.ac): ... to here.
8893         * modules/mktime-internal (configure.ac): ... and here.
8894         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
8895
8896 2011-05-21  Bruno Haible  <bruno@clisp.org>
8897
8898         mkstemps: Move AC_LIBOBJ invocations to module description.
8899         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
8900         here...
8901         * modules/mkstemps (configure.ac): ... to here.
8902
8903 2011-05-21  Bruno Haible  <bruno@clisp.org>
8904
8905         mkstemp: Move AC_LIBOBJ invocations to module description.
8906         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
8907         gl_PREREQ_MKSTEMP invocations from here...
8908         * modules/mkstemp (configure.ac): ... to here.
8909
8910 2011-05-21  Bruno Haible  <bruno@clisp.org>
8911
8912         mkostemps: Move AC_LIBOBJ invocations to module description.
8913         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
8914         here...
8915         * modules/mkostemps (configure.ac): ... to here.
8916
8917 2011-05-21  Bruno Haible  <bruno@clisp.org>
8918
8919         mkostemp: Move AC_LIBOBJ invocations to module description.
8920         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
8921         gl_PREREQ_MKOSTEMP invocations from here...
8922         * modules/mkostemp (configure.ac): ... to here.
8923
8924 2011-05-21  Bruno Haible  <bruno@clisp.org>
8925
8926         mknod: Move AC_LIBOBJ invocations to module description.
8927         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
8928         * modules/mknod (configure.ac): ... to here.
8929
8930 2011-05-21  Bruno Haible  <bruno@clisp.org>
8931
8932         mkfifoat: Move AC_LIBOBJ invocations to module description.
8933         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
8934         here...
8935         * modules/mkfifoat (configure.ac): ... to here.
8936
8937 2011-05-21  Bruno Haible  <bruno@clisp.org>
8938
8939         mkfifo: Respect rules for use of AC_LIBOBJ.
8940         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
8941         here...
8942         * modules/mkfifo (configure.ac): ... to here.
8943
8944 2011-05-21  Bruno Haible  <bruno@clisp.org>
8945
8946         mkdtemp: Move AC_LIBOBJ invocations to module description.
8947         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
8948         invocations from here...
8949         * modules/mkdtemp (configure.ac): ... to here.
8950
8951 2011-05-21  Bruno Haible  <bruno@clisp.org>
8952
8953         mkdir: Move AC_LIBOBJ invocations to module description.
8954         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
8955         * modules/mkdir (configure.ac): ... to here.
8956
8957 2011-05-21  Bruno Haible  <bruno@clisp.org>
8958
8959         memset: Move AC_LIBOBJ invocations to module description.
8960         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
8961         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
8962         here...
8963         * modules/memset (configure.ac): ... to here.
8964
8965 2011-05-21  Bruno Haible  <bruno@clisp.org>
8966
8967         memrchr: Move AC_LIBOBJ invocations to module description.
8968         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
8969         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
8970         here...
8971         * modules/memrchr (configure.ac): ... to here.
8972
8973 2011-05-21  Bruno Haible  <bruno@clisp.org>
8974
8975         mempcpy: Move AC_LIBOBJ invocations to module description.
8976         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
8977         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
8978         here...
8979         * modules/mempcpy (configure.ac): ... to here.
8980
8981 2011-05-21  Bruno Haible  <bruno@clisp.org>
8982
8983         memmove: Move AC_LIBOBJ invocations to module description.
8984         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
8985         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
8986         here...
8987         * modules/memmove (configure.ac): ... to here.
8988
8989 2011-05-21  Bruno Haible  <bruno@clisp.org>
8990
8991         memmem*: Move AC_LIBOBJ invocations to module description.
8992         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
8993         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
8994         here...
8995         (gl_FUNC_MEMMEM): ... and here...
8996         * modules/memmem-simple (configure.ac): ... to here.
8997         * modules/memmem (configure.ac): ... and here.
8998
8999 2011-05-21  Bruno Haible  <bruno@clisp.org>
9000
9001         memcpy: Move AC_LIBOBJ invocations to module description.
9002         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
9003         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
9004         here...
9005         * modules/memcpy (configure.ac): ... to here.
9006
9007 2011-05-21  Bruno Haible  <bruno@clisp.org>
9008
9009         memcmp: Simplify autoconf macro.
9010         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
9011         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
9012         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
9013
9014 2011-05-21  Bruno Haible  <bruno@clisp.org>
9015
9016         memcmp: Move AC_LIBOBJ invocations to module description.
9017         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
9018         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
9019         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
9020         * modules/memcmp (configure.ac): ... to here.
9021         (Depends-on): Update conditions.
9022
9023 2011-05-21  Bruno Haible  <bruno@clisp.org>
9024
9025         memchr: Respect rules for use of AC_LIBOBJ.
9026         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
9027         invocations from here...
9028         * modules/memchr (configure.ac): ... to here.
9029
9030 2011-05-21  Bruno Haible  <bruno@clisp.org>
9031
9032         mbtowc: Move AC_LIBOBJ invocations to module description.
9033         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
9034         invocations from here...
9035         * modules/mbtowc (configure.ac): ... to here.
9036
9037 2011-05-21  Bruno Haible  <bruno@clisp.org>
9038
9039         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
9040         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
9041         gl_PREREQ_MBSRTOWCS invocations from here...
9042         * modules/mbsrtowcs (configure.ac): ... to here.
9043
9044 2011-05-21  Bruno Haible  <bruno@clisp.org>
9045
9046         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
9047         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
9048         gl_PREREQ_MBSNRTOWCS invocations from here...
9049         * modules/mbsnrtowcs (configure.ac): ... to here.
9050
9051 2011-05-21  Bruno Haible  <bruno@clisp.org>
9052
9053         mbsinit: Move AC_LIBOBJ invocations to module description.
9054         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
9055         invocations from here...
9056         * modules/mbsinit (configure.ac): ... to here.
9057
9058 2011-05-21  Bruno Haible  <bruno@clisp.org>
9059
9060         mbrlen: Move AC_LIBOBJ invocations to module description.
9061         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
9062         invocations from here...
9063         * modules/mbrlen (configure.ac): ... to here.
9064
9065 2011-05-21  Bruno Haible  <bruno@clisp.org>
9066
9067         mbrtowc: Respect rules for use of AC_LIBOBJ.
9068         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
9069         invocations from here...
9070         * modules/mbrtowc (configure.ac): ... to here.
9071
9072 2011-05-21  Bruno Haible  <bruno@clisp.org>
9073
9074         malloc-*: Move AC_LIBOBJ invocations to module description.
9075         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
9076         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
9077         AC_LIBOBJ invocations from here...
9078         * modules/malloc-gnu (configure.ac): ... to here.
9079         * modules/malloc-posix (configure.ac): ... and here.
9080
9081 2011-05-21  Bruno Haible  <bruno@clisp.org>
9082
9083         lstat, openat: Respect rules for use of AC_LIBOBJ.
9084         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
9085         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
9086         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
9087         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
9088         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
9089         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
9090         here.
9091         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
9092
9093 2011-05-21  Bruno Haible  <bruno@clisp.org>
9094
9095         lseek: Move AC_LIBOBJ invocations to module description.
9096         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
9097         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
9098         * modules/lseek (configure.ac): ... to here.
9099
9100 2011-05-21  Bruno Haible  <bruno@clisp.org>
9101
9102         linkat: Move AC_LIBOBJ invocations to module description.
9103         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
9104         here...
9105         * modules/linkat (configure.ac): ... to here.
9106
9107 2011-05-21  Bruno Haible  <bruno@clisp.org>
9108
9109         link: Respect rules for use of AC_LIBOBJ.
9110         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
9111         * modules/link (configure.ac): ... to here.
9112
9113 2011-05-21  Bruno Haible  <bruno@clisp.org>
9114
9115         lchown: Move AC_LIBOBJ invocations to module description.
9116         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
9117         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
9118         * modules/lchown (configure.ac): ... to here.
9119
9120 2011-05-21  Bruno Haible  <bruno@clisp.org>
9121
9122         iswctype: Move AC_LIBOBJ invocations to module description.
9123         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
9124         here...
9125         * modules/iswctype (configure.ac): ... to here.
9126
9127 2011-05-21  Bruno Haible  <bruno@clisp.org>
9128
9129         iswblank: Move AC_LIBOBJ invocations to module description.
9130         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
9131         here...
9132         * modules/iswblank (configure.ac): ... to here.
9133
9134 2011-05-21  Bruno Haible  <bruno@clisp.org>
9135
9136         atanl: Move AC_LIBOBJ invocations to module description.
9137         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
9138         * modules/atanl (configure.ac): ... to here.
9139
9140 2011-05-21  Bruno Haible  <bruno@clisp.org>
9141
9142         acosl: Move AC_LIBOBJ invocations to module description.
9143         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
9144         * modules/acosl (configure.ac): ... to here.
9145
9146 2011-05-21  Bruno Haible  <bruno@clisp.org>
9147
9148         asinl: Respect rules for use of AC_LIBOBJ.
9149         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
9150         * modules/asinl (configure.ac): ... to here.
9151
9152 2011-05-21  Bruno Haible  <bruno@clisp.org>
9153
9154         tanl: Move AC_LIBOBJ invocations to module description.
9155         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
9156         * modules/tanl (configure.ac): ... to here.
9157
9158 2011-05-21  Bruno Haible  <bruno@clisp.org>
9159
9160         cosl: Move AC_LIBOBJ invocations to module description.
9161         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
9162         * modules/cosl (configure.ac): ... to here.
9163
9164 2011-05-21  Bruno Haible  <bruno@clisp.org>
9165
9166         sinl: Move AC_LIBOBJ invocations to module description.
9167         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
9168         * modules/sinl (configure.ac): ... to here.
9169
9170 2011-05-21  Bruno Haible  <bruno@clisp.org>
9171
9172         logl: Move AC_LIBOBJ invocations to module description.
9173         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
9174         * modules/logl (configure.ac): ... to here.
9175
9176 2011-05-21  Bruno Haible  <bruno@clisp.org>
9177
9178         expl: Move AC_LIBOBJ invocations to module description.
9179         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
9180         * modules/expl (configure.ac): ... to here.
9181
9182 2011-05-21  Bruno Haible  <bruno@clisp.org>
9183
9184         roundl: Move AC_LIBOBJ invocations to module description.
9185         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
9186         * modules/roundl (configure.ac): ... to here.
9187
9188 2011-05-21  Bruno Haible  <bruno@clisp.org>
9189
9190         round: Move AC_LIBOBJ invocations to module description.
9191         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
9192         * modules/round (configure.ac): ... to here.
9193
9194 2011-05-21  Bruno Haible  <bruno@clisp.org>
9195
9196         roundf: Move AC_LIBOBJ invocations to module description.
9197         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
9198         * modules/roundf (configure.ac): ... to here.
9199
9200 2011-05-21  Bruno Haible  <bruno@clisp.org>
9201
9202         truncl: Move AC_LIBOBJ invocations to module description.
9203         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
9204         * modules/truncl (configure.ac): ... to here.
9205
9206 2011-05-21  Bruno Haible  <bruno@clisp.org>
9207
9208         trunc: Move AC_LIBOBJ invocations to module description.
9209         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
9210         * modules/trunc (configure.ac): ... to here.
9211
9212 2011-05-21  Bruno Haible  <bruno@clisp.org>
9213
9214         truncf: Move AC_LIBOBJ invocations to module description.
9215         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
9216         * modules/truncf (configure.ac): ... to here.
9217
9218 2011-05-21  Bruno Haible  <bruno@clisp.org>
9219
9220         ceill: Move AC_LIBOBJ invocations to module description.
9221         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
9222         * modules/ceill (configure.ac): ... to here.
9223
9224 2011-05-21  Bruno Haible  <bruno@clisp.org>
9225
9226         ceil: Move AC_LIBOBJ invocations to module description.
9227         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
9228         * modules/ceil (configure.ac): ... to here.
9229
9230 2011-05-21  Bruno Haible  <bruno@clisp.org>
9231
9232         ceilf: Move AC_LIBOBJ invocations to module description.
9233         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
9234         * modules/ceilf (configure.ac): ... to here.
9235
9236 2011-05-21  Bruno Haible  <bruno@clisp.org>
9237
9238         floorl: Respect rules for use of AC_LIBOBJ.
9239         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
9240         * modules/floorl (configure.ac): ... to here.
9241
9242 2011-05-21  Bruno Haible  <bruno@clisp.org>
9243
9244         floor: Respect rules for use of AC_LIBOBJ.
9245         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
9246         * modules/floor (configure.ac): ... to here.
9247
9248 2011-05-21  Bruno Haible  <bruno@clisp.org>
9249
9250         floorf: Move AC_LIBOBJ invocations to module description.
9251         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
9252         * modules/floorf (configure.ac): ... to here.
9253
9254 2011-05-20  Bruno Haible  <bruno@clisp.org>
9255
9256         sqrtl: Respect rules for use of AC_LIBOBJ.
9257         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
9258         * modules/sqrtl (configure.ac): ... to here.
9259
9260 2011-05-20  Bruno Haible  <bruno@clisp.org>
9261
9262         ldexpl: Respect rules for use of AC_LIBOBJ.
9263         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
9264         * modules/ldexpl (configure.ac): ... to here.
9265
9266 2011-05-20  Bruno Haible  <bruno@clisp.org>
9267
9268         frexpl*: Respect rules for use of AC_LIBOBJ.
9269         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
9270         invocation from here...
9271         * modules/frexpl (configure.ac): ... to here.
9272         * modules/frexpl-nolibm (configure.ac): ... and here.
9273
9274 2011-05-20  Bruno Haible  <bruno@clisp.org>
9275
9276         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
9277         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
9278         invocation from here...
9279         * modules/frexp (configure.ac): ... to here.
9280         * modules/frexp-nolibm (configure.ac): ... and here.
9281
9282 2011-05-20  Bruno Haible  <bruno@clisp.org>
9283
9284         isnan: Respect rules for use of AC_LIBOBJ.
9285         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
9286         invocations here.
9287         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
9288         REPLACE_ISNAN.
9289         * modules/isnand (configure.ac): Likewise.
9290         * modules/isnanl (configure.ac): Likewise.
9291
9292 2011-05-20  Bruno Haible  <bruno@clisp.org>
9293
9294         isnanl*: Respect rules for use of AC_LIBOBJ.
9295         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
9296         invocation from here...
9297         * modules/isnanl (configure.ac): ... to here.
9298         * modules/isnanl-nolibm (configure.ac): ... and here.
9299
9300 2011-05-20  Bruno Haible  <bruno@clisp.org>
9301
9302         isnand*: Move AC_LIBOBJ invocations to module description.
9303         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
9304         invocation from here...
9305         * modules/isnand (configure.ac): ... to here.
9306         * modules/isnand-nolibm (configure.ac): ... and here.
9307
9308 2011-05-20  Bruno Haible  <bruno@clisp.org>
9309
9310         isnanf*: Move AC_LIBOBJ invocations to module description.
9311         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
9312         invocation from here...
9313         * modules/isnanf (configure.ac): ... to here.
9314         * modules/isnanf-nolibm (configure.ac): ... and here.
9315
9316 2011-05-20  Bruno Haible  <bruno@clisp.org>
9317
9318         isnan*: Separate the AC_LIBOBJ invocations.
9319         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
9320         AC_LIBOBJ invocation.
9321         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
9322         here.
9323         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
9324         AC_LIBOBJ invocation.
9325         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
9326         here.
9327         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
9328         AC_LIBOBJ invocation.
9329         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
9330         here.
9331         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
9332
9333 2011-05-08  Bruno Haible  <bruno@clisp.org>
9334
9335         isinf: Move AC_LIBOBJ invocations to module description.
9336         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
9337         * modules/isinf (configure.ac): ... to here.
9338
9339 2011-05-08  Bruno Haible  <bruno@clisp.org>
9340
9341         isfinite: Move AC_LIBOBJ invocations to module description.
9342         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
9343         * modules/isfinite (configure.ac): ... to here.
9344
9345 2011-05-08  Bruno Haible  <bruno@clisp.org>
9346
9347         isblank: Move AC_LIBOBJ invocations to module description.
9348         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
9349         here...
9350         * modules/isblank (configure.ac): ... to here.
9351
9352 2011-05-08  Bruno Haible  <bruno@clisp.org>
9353
9354         isapipe: Move AC_LIBOBJ invocations to module description.
9355         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
9356         gl_PREREQ_ISAPIPE invocations from here...
9357         * modules/isapipe (configure.ac): ... to here.
9358         (Depends-on): Update condition.
9359
9360 2011-05-08  Bruno Haible  <bruno@clisp.org>
9361
9362         ioctl: Move AC_LIBOBJ invocations to module description.
9363         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
9364         invocations from here...
9365         * modules/ioctl (configure.ac): ... to here.
9366         (Depends-on): Update condition.
9367
9368 2011-05-08  Bruno Haible  <bruno@clisp.org>
9369
9370         imaxdiv: Move AC_LIBOBJ invocations to module description.
9371         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
9372         invocations from here...
9373         * modules/imaxdiv (configure.ac): ... to here.
9374
9375 2011-05-08  Bruno Haible  <bruno@clisp.org>
9376
9377         imaxabs: Move AC_LIBOBJ invocations to module description.
9378         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
9379         invocations from here...
9380         * modules/imaxabs (configure.ac): ... to here.
9381
9382 2011-05-08  Bruno Haible  <bruno@clisp.org>
9383
9384         getaddrinfo: Move AC_LIBOBJ invocations to module description.
9385         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
9386         AC_LIBOBJ invocations from here...
9387         * modules/getaddrinfo (configure.ac): ... to here.
9388         (Depends-on): Add conditions.
9389
9390 2011-05-08  Bruno Haible  <bruno@clisp.org>
9391
9392         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
9393         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
9394         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
9395         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
9396         (gl_PREREQ_INET_PTON): ... from here.
9397         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
9398         gl_PREREQ_INET_PTON here.
9399         (Depends-on): Update condition.
9400
9401 2011-05-08  Bruno Haible  <bruno@clisp.org>
9402
9403         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
9404         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
9405         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
9406         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
9407         (gl_PREREQ_INET_NTOP): ... from here.
9408         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
9409         gl_PREREQ_INET_NTOP here.
9410         (Depends-on): Update condition.
9411
9412 2011-05-08  Bruno Haible  <bruno@clisp.org>
9413
9414         iconv_open: Move AC_LIBOBJ invocations to module description.
9415         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
9416         AC_LIBOBJ invocations from here...
9417         * modules/iconv_open (configure.ac): ... to here.
9418
9419 2011-05-08  Bruno Haible  <bruno@clisp.org>
9420
9421         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
9422         If module 'iconv_open' is among the main modules and module
9423         'iconv_open-utf' is among the tests dependencies, then
9424         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
9425         return the special iconv_t values. Therefore iconv() and iconv_close()
9426         must support these special iconv_t values, already in lib, not only in
9427         tests.
9428         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
9429         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
9430         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
9431         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
9432         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
9433         (Depends-on): Add the dependencies of iconv_open-utf.
9434         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
9435         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
9436         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
9437
9438 2011-05-08  Bruno Haible  <bruno@clisp.org>
9439
9440         group-member: Move AC_LIBOBJ invocations to module description.
9441         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
9442         gl_PREREQ_GROUP_MEMBER invocations from here...
9443         * modules/group-member (configure.ac): ... to here.
9444
9445 2011-05-08  Bruno Haible  <bruno@clisp.org>
9446
9447         grantpt: Move AC_LIBOBJ invocations to module description.
9448         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
9449         invocations from here...
9450         * modules/grantpt (configure.ac): ... to here.
9451
9452 2011-05-08  Bruno Haible  <bruno@clisp.org>
9453
9454         glob: Move AC_LIBOBJ invocations to module description.
9455         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
9456         from here...
9457         * modules/glob (configure.ac): ... to here.
9458
9459 2011-05-08  Bruno Haible  <bruno@clisp.org>
9460
9461         getusershell: Move AC_LIBOBJ invocations to module description.
9462         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
9463         Move AC_LIBOBJ invocation from here...
9464         * modules/getusershell (configure.ac): ... to here.
9465         (Depends-on): Update condition.
9466
9467 2011-05-08  Bruno Haible  <bruno@clisp.org>
9468
9469         gettimeofday: Move AC_LIBOBJ invocations to module description.
9470         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
9471         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
9472         gl_PREREQ_GETTIMEOFDAY invocations from here...
9473         * modules/gettimeofday (configure.ac): ... to here.
9474
9475 2011-05-08  Bruno Haible  <bruno@clisp.org>
9476
9477         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
9478         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
9479         just gl_FUNC_TZSET.
9480         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
9481         (gl_FUNC_TZSET_CLOBBER): Remove actions.
9482         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
9483         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
9484
9485 2011-05-08  Bruno Haible  <bruno@clisp.org>
9486
9487         getsubopt: Move AC_LIBOBJ invocations to module description.
9488         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
9489         gl_PREREQ_GETSUBOPT invocations from here...
9490         * modules/getsubopt (configure.ac): ... to here.
9491
9492 2011-05-08  Bruno Haible  <bruno@clisp.org>
9493
9494         getpass-gnu: Move AC_LIBOBJ invocations to module description.
9495         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
9496         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
9497         * modules/getpass-gnu (configure.ac): ... to here.
9498
9499 2011-05-08  Bruno Haible  <bruno@clisp.org>
9500
9501         getpass: Move AC_LIBOBJ invocations to module description.
9502         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
9503         gl_PREREQ_GETPASS invocations from here...
9504         * modules/getpass (configure.ac): ... to here.
9505
9506 2011-05-08  Bruno Haible  <bruno@clisp.org>
9507
9508         getpagesize: Move AC_LIBOBJ invocations to module description.
9509         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
9510         from here...
9511         * modules/getpagesize (configure.ac): ... to here.
9512
9513 2011-05-08  Bruno Haible  <bruno@clisp.org>
9514
9515         getopt: Move AC_LIBOBJ invocations to module description.
9516         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
9517         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
9518         invocations from here...
9519         * modules/getopt-gnu (configure.ac): ... to here.
9520         * modules/getopt-posix (configure.ac): ... and here.
9521         (Depends-on): Update condition.
9522
9523 2011-05-08  Bruno Haible  <bruno@clisp.org>
9524
9525         getopt, argp: Respect rules for use of AC_LIBOBJ.
9526         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
9527         (gl_REPLACE_GETOPT_ALWAYS): New macro.
9528         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
9529         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
9530
9531 2011-05-08  Bruno Haible  <bruno@clisp.org>
9532
9533         getlogin_r: Move AC_LIBOBJ invocations to module description.
9534         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
9535         gl_PREREQ_GETLOGIN_R invocations from here...
9536         * modules/getlogin_r (configure.ac): ... to here.
9537
9538 2011-05-08  Bruno Haible  <bruno@clisp.org>
9539
9540         getlogin: Move AC_LIBOBJ invocations to module description.
9541         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
9542         here...
9543         * modules/getlogin (configure.ac): ... to here.
9544
9545 2011-05-08  Bruno Haible  <bruno@clisp.org>
9546
9547         getloadavg: Move AC_LIBOBJ invocations to module description.
9548         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
9549         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
9550         * modules/getloadavg (configure.ac): ... to here.
9551
9552 2011-05-08  Bruno Haible  <bruno@clisp.org>
9553
9554         gethrxtime: Move AC_LIBOBJ invocations to module description.
9555         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
9556         LIB_GETHRXTIME from here...
9557         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
9558         invocations from here...
9559         * modules/gethrxtime (configure.ac): ... to here.
9560
9561 2011-05-08  Bruno Haible  <bruno@clisp.org>
9562
9563         gethostname: Move AC_LIBOBJ invocations to module description.
9564         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
9565         gl_PREREQ_GETHOSTNAME invocations from here...
9566         * modules/gethostname (configure.ac): ... to here.
9567
9568 2011-05-08  Bruno Haible  <bruno@clisp.org>
9569
9570         getgroups: Move AC_LIBOBJ invocations to module description.
9571         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
9572         here...
9573         * modules/getgroups (configure.ac): ... to here.
9574
9575 2011-05-08  Bruno Haible  <bruno@clisp.org>
9576
9577         getdtablesize: Move AC_LIBOBJ invocations to module description.
9578         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
9579         invocation from here...
9580         * modules/getdtablesize (configure.ac): ... to here.
9581
9582 2011-05-08  Bruno Haible  <bruno@clisp.org>
9583
9584         getdomainname: Move AC_LIBOBJ invocations to module description.
9585         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
9586         gl_PREREQ_GETDOMAINNAME invocations from here...
9587         * modules/getdomainname (configure.ac): ... to here.
9588
9589 2011-05-08  Bruno Haible  <bruno@clisp.org>
9590
9591         getline: Move AC_LIBOBJ invocations to module description.
9592         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
9593         invocations from here...
9594         * modules/getline (configure.ac): ... to here.
9595
9596 2011-05-08  Bruno Haible  <bruno@clisp.org>
9597
9598         getline: Simplify.
9599         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
9600         It's already handled through the module dependency.
9601
9602 2011-05-08  Bruno Haible  <bruno@clisp.org>
9603
9604         getdelim: Move AC_LIBOBJ invocations to module description.
9605         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
9606         and gl_PREREQ_GETDELIM invocations from here...
9607         * modules/getdelim (configure.ac): ... to here.
9608         (Depends-on): Fix condition.
9609
9610 2011-05-08  Bruno Haible  <bruno@clisp.org>
9611
9612         getcwd: Move AC_LIBOBJ invocations to module description.
9613         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
9614         invocations from here...
9615         * modules/getcwd (configure.ac): ... to here.
9616
9617 2011-05-08  Bruno Haible  <bruno@clisp.org>
9618
9619         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
9620         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
9621         here...
9622         * modules/getcwd-lgpl (configure.ac): ... to here.
9623
9624 2011-05-07  Bruno Haible  <bruno@clisp.org>
9625
9626         crypto/gc: Move AC_LIBOBJ invocations to module description.
9627         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
9628         * modules/crypto/gc (configure.ac): ... to here.
9629
9630 2011-05-07  Bruno Haible  <bruno@clisp.org>
9631
9632         fwriting: Move AC_LIBOBJ invocations to module description.
9633         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
9634         here...
9635         * modules/fwriting (configure.ac): ... to here.
9636
9637 2011-05-07  Bruno Haible  <bruno@clisp.org>
9638
9639         fwritable: Move AC_LIBOBJ invocations to module description.
9640         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
9641         here...
9642         * modules/fwritable (configure.ac): ... to here.
9643
9644 2011-05-07  Bruno Haible  <bruno@clisp.org>
9645
9646         futimens: Move AC_LIBOBJ invocations to module description.
9647         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
9648         here...
9649         * modules/futimens (configure.ac): ... to here.
9650
9651 2011-05-07  Bruno Haible  <bruno@clisp.org>
9652
9653         ftruncate: Move AC_LIBOBJ invocations to module description.
9654         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
9655         gl_PREREQ_FTRUNCATE invocations from here...
9656         * modules/ftruncate (configure.ac): ... to here.
9657
9658 2011-05-07  Bruno Haible  <bruno@clisp.org>
9659
9660         fsync: Move AC_LIBOBJ invocations to module description.
9661         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
9662         invocations from here...
9663         * modules/fsync (configure.ac): ... to here.
9664
9665 2011-05-07  Bruno Haible  <bruno@clisp.org>
9666
9667         fsusage: Move AC_LIBOBJ invocations to module description.
9668         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
9669         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
9670         * modules/fsusage (configure.ac): ... to here.
9671
9672 2011-05-07  Bruno Haible  <bruno@clisp.org>
9673
9674         freopen: Move AC_LIBOBJ invocations to module description.
9675         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
9676         invocations from here...
9677         * modules/freopen (configure.ac): ... to here.
9678
9679 2011-05-07  Bruno Haible  <bruno@clisp.org>
9680
9681         free: Move AC_LIBOBJ invocations to module description.
9682         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
9683         invocations from here...
9684         * modules/free (configure.ac): ... to here.
9685
9686 2011-05-07  Bruno Haible  <bruno@clisp.org>
9687
9688         freadable: Move AC_LIBOBJ invocations to module description.
9689         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
9690         here...
9691         * modules/freadable (configure.ac): ... to here.
9692
9693 2011-05-07  Bruno Haible  <bruno@clisp.org>
9694
9695         fpurge: Move AC_LIBOBJ invocations to module description.
9696         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
9697         invocations from here...
9698         * modules/fpurge (configure.ac): ... to here.
9699
9700 2011-05-07  Bruno Haible  <bruno@clisp.org>
9701
9702         fpending: Move AC_LIBOBJ invocations to module description.
9703         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
9704         gl_FUNC_FPENDING.
9705         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
9706         invocations from here...
9707         * modules/fpending (configure.ac): ... to here.
9708
9709 2011-05-07  Bruno Haible  <bruno@clisp.org>
9710
9711         fopen: Move AC_LIBOBJ invocations to module description.
9712         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
9713         invocations from here...
9714         * modules/fopen (configure.ac): ... to here.
9715
9716 2011-05-07  Bruno Haible  <bruno@clisp.org>
9717
9718         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
9719         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
9720         gl_FUNC_FNMATCH_POSIX.
9721         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
9722         invocations from here...
9723         * modules/fnmatch (configure.ac): ... to here.
9724         * modules/fnmatch-gnu (configure.ac): ... and here.
9725
9726 2011-05-07  Bruno Haible  <bruno@clisp.org>
9727
9728         flock: Move AC_LIBOBJ invocations to module description.
9729         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
9730         invocations from here...
9731         * modules/flock (configure.ac): ... to here.
9732
9733 2011-05-07  Bruno Haible  <bruno@clisp.org>
9734
9735         fileblocks: Move AC_LIBOBJ invocations to module description.
9736         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
9737         gl_PREREQ_FILEBLOCKS invocations from here...
9738         * modules/fileblocks (configure.ac): ... to here.
9739
9740 2011-05-06  Bruno Haible  <bruno@clisp.org>
9741
9742         fflush: Move AC_LIBOBJ invocations to module description.
9743         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
9744         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
9745         invocations from here...
9746         * modules/fflush (configure.ac): ... to here.
9747
9748 2011-05-06  Bruno Haible  <bruno@clisp.org>
9749
9750         fdopendir: Move AC_LIBOBJ invocations to module description.
9751         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
9752         here...
9753         * modules/fdopendir (configure.ac): ... to here.
9754         (Depends-on): Improve conditions.
9755
9756 2011-05-06  Bruno Haible  <bruno@clisp.org>
9757
9758         _Exit: Move AC_LIBOBJ invocations to module description.
9759         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
9760         invocations from here...
9761         * modules/_Exit (configure.ac): ... to here.
9762
9763 2011-05-21  Bruno Haible  <bruno@clisp.org>
9764
9765         euidaccess: Respect rules for use of AC_LIBOBJ.
9766         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
9767         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
9768         from here...
9769         * modules/euidaccess (configure.ac): ... to here.
9770
9771 2011-05-06  Bruno Haible  <bruno@clisp.org>
9772
9773         error: Move AC_LIBOBJ invocations to module description.
9774         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
9775         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
9776         invocations from here...
9777         * modules/error (configure.ac): ... to here.
9778
9779 2011-05-06  Bruno Haible  <bruno@clisp.org>
9780
9781         duplocale: Move AC_LIBOBJ invocations to module description.
9782         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
9783         gl_PREREQ_DUPLOCALE invocations from here...
9784         * modules/duplocale (configure.ac): ... to here.
9785
9786 2011-05-05  Bruno Haible  <bruno@clisp.org>
9787
9788         dirfd: Move AC_LIBOBJ invocations to module description.
9789         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
9790         gl_FUNC_DIRFD.
9791         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
9792         here...
9793         * modules/dirfd (configure.ac): ... to here.
9794         (Depends-on): Fix condition.
9795
9796 2011-05-05  Bruno Haible  <bruno@clisp.org>
9797
9798         chown: Respect rules for use of AC_LIBOBJ.
9799         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
9800         * modules/chown (configure.ac): ... to here.
9801
9802 2011-05-05  Bruno Haible  <bruno@clisp.org>
9803
9804         chdir-long: Move AC_LIBOBJ invocations to module description.
9805         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
9806         gl_PREREQ_CHDIR_LONG invocations from here...
9807         * modules/chdir-long (configure.ac): ... to here.
9808
9809 2011-05-05  Bruno Haible  <bruno@clisp.org>
9810
9811         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
9812         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
9813         from here...
9814         * modules/canonicalize-lgpl (configure.ac): ... to here.
9815
9816 2011-05-05  Bruno Haible  <bruno@clisp.org>
9817
9818         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
9819         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
9820         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
9821         REPLACE_CALLOC.
9822         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
9823         * modules/calloc-gnu (configure.ac): Likewise.
9824
9825 2011-05-05  Bruno Haible  <bruno@clisp.org>
9826
9827         btowc: Move AC_LIBOBJ invocations to module description.
9828         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
9829         invocations from here...
9830         * modules/btowc (configure.ac): ... to here.
9831
9832 2011-05-21  Bruno Haible  <bruno@clisp.org>
9833
9834         atexit: Move AC_LIBOBJ invocations to module description.
9835         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
9836         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
9837         here...
9838         * modules/atexit (configure.ac): ... to here.
9839
9840 2011-05-05  Bruno Haible  <bruno@clisp.org>
9841
9842         atoll: Move AC_LIBOBJ invocations to module description.
9843         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
9844         invocations from here...
9845         * modules/atoll (configure.ac): ... to here.
9846
9847 2011-05-05  Bruno Haible  <bruno@clisp.org>
9848
9849         argz: Move AC_LIBOBJ invocations to module description.
9850         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
9851         * modules/argz (configure.ac): ... to here.
9852
9853 2011-05-05  Bruno Haible  <bruno@clisp.org>
9854
9855         alphasort: Move AC_LIBOBJ invocations to module description.
9856         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
9857         gl_PREREQ_ALPHASORT invocations from here...
9858         * modules/alphasort (configure.ac): ... to here.
9859
9860 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
9861
9862         verify: new macro verify_expr; verify_true deprecated
9863         * NEWS: Mention this.
9864         * doc/verify.texi (Compile-time Assertions): Document this.
9865         * lib/verify.h (verify_true): Deprecate.
9866         (verify_expr): New macro.
9867         * tests/test-verify.c (function): Test verify_expr.
9868
9869 2011-06-14  Jim Meyering  <meyering@redhat.com>
9870
9871         init.sh: give more portable redirection-related advice in a comment
9872         * tests/init.sh (stderr_fileno_): Update the advice in comments.
9873         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
9874         for lots of discussion.  Stefano Lattarini suggested the solution
9875         of putting "9>&2" after the command.  Reported by Bruno Haible.
9876
9877 2011-06-13  Bruno Haible  <bruno@clisp.org>
9878
9879         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
9880         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
9881         'none'.
9882
9883 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
9884
9885         ftoastr: use strtof only if HAVE_STRTOF
9886         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
9887         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
9888         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
9889         * modules/ftoastr (configure.ac): Check for strtof.
9890
9891 2011-06-13  Bruno Haible  <bruno@clisp.org>
9892
9893         gnulib-tool: Addendum to 2011-06-08 commit.
9894         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
9895         and --witness-c-macro have been given, augment AM_CPPFLAGS.
9896
9897 2011-06-13  Bruno Haible  <bruno@clisp.org>
9898
9899         fseeko: Provide a non-inline replacement of fseek().
9900         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
9901         * modules/fseeko (Depends-on): Add fseek.
9902         * modules/fseek (License): Change to LGPLv2+.
9903
9904 2011-06-13  Bruno Haible  <bruno@clisp.org>
9905
9906         ftello: Provide a non-inline replacement of ftell().
9907         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
9908         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
9909         not have ftello() (such as on mingw).
9910         * modules/ftello (Depends-on): Add ftell.
9911         * modules/ftell (License): Change to LGPLv2+.
9912
9913 2011-05-07  Bruno Haible  <bruno@clisp.org>
9914
9915         ftell: Move AC_LIBOBJ invocations to module description.
9916         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
9917         * modules/ftell (configure.ac): ... to here.
9918
9919 2011-05-07  Bruno Haible  <bruno@clisp.org>
9920
9921         ftello: Respect rules for use of AC_LIBOBJ.
9922         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
9923         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
9924         here...
9925         * modules/ftello (configure.ac): ... to here.
9926
9927 2011-05-07  Bruno Haible  <bruno@clisp.org>
9928
9929         fseeko: Simplify.
9930         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
9931         (gl_FUNC_FSEEKO): Inline it here.
9932
9933 2011-05-07  Bruno Haible  <bruno@clisp.org>
9934
9935         fseek: Move AC_LIBOBJ invocations to module description.
9936         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
9937         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
9938         * modules/fseek (configure.ac): ... to here.
9939
9940 2011-05-07  Bruno Haible  <bruno@clisp.org>
9941
9942         fseek: Respect rules for use of AC_LIBOBJ.
9943         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
9944         here...
9945         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
9946
9947 2011-05-07  Bruno Haible  <bruno@clisp.org>
9948
9949         fseeko: Respect rules for use of AC_LIBOBJ.
9950         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
9951         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
9952         here...
9953         * modules/fseeko (configure.ac): ... to here.
9954
9955 2011-06-13  Bruno Haible  <bruno@clisp.org>
9956
9957         gnulib-tool: Allow comments in the 'Depends-on' section.
9958         * doc/gnulib.texi (Module description): Mention comment syntax in the
9959         Depends-on section.
9960         * gnulib-tool (func_get_dependencies): Filter out comment lines.
9961
9962 2011-06-13  Bruno Haible  <bruno@clisp.org>
9963
9964         file-set.h: guard __attibute__ use, now that it's not always defined
9965         * lib/file-set.h (record_file): Use __attribute__ only with compiler
9966         versions that support it.  This fixes a coreutils build failure with
9967         the vendor cc on HP-UX 11.31.
9968
9969 2011-06-12  Bruno Haible  <bruno@clisp.org>
9970
9971         acl: Add support for HP-UX >= 11.11 JFS ACLs.
9972         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
9973         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
9974         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
9975         (acl, aclsort): New declarations.
9976         (aclv_nontrivial): New declaration.
9977         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
9978         (file_has_acl): Read also the second kind of HP-UX ACLs.
9979         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
9980         kind of HP-UX ACLs if the first kind fails.
9981         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
9982         second kind of HP-UX ACLs.
9983         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
9984         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
9985         agree.
9986         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9987         hpuxjfs.
9988         Handle hpuxjfs.
9989         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9990         hpuxjfs.
9991         Handle hpuxjfs.
9992         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9993         (func_test_same_acls): Use both lsacl and getacl.
9994         Handle hpuxjfs.
9995         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9996         (func_test_same_acls): Use both lsacl and getacl.
9997         Handle hpuxjfs.
9998
9999 2011-06-12  Bruno Haible  <bruno@clisp.org>
10000
10001         acl: Complete the 2010-08-10 fix.
10002         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
10003         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
10004         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
10005         explicitly.
10006         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
10007         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
10008
10009 2011-06-12  Bruno Haible  <bruno@clisp.org>
10010
10011         spawn-pipe tests: Comments.
10012         * tests/test-spawn-pipe-child.c (main): Update comment.
10013         Reported by James Youngman <jay@gnu.org>.
10014
10015 2011-06-11  James Youngman  <jay@gnu.org>
10016
10017         New module 'stat-size'.
10018         * modules/stat-size: New module.  Provides macros for accessing
10019         file size information in instances of struct stat.  Depends on the
10020         fileblocks module because it calls st_blocks.
10021         * lib/stat-size.h: New file, adapted from coreutils' system.h.
10022         * doc/gnulib.texi: Include stat-size.texi.
10023         * doc/stat-size.texi: Documentation for this module.
10024         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
10025         * m4/fileblocks.m4: Mention that stat-size depends on the call to
10026         AC_STRUCT_ST_BLOCKS.
10027
10028 2011-06-09  Bruno Haible  <bruno@clisp.org>
10029
10030         thread: Support pthreads-win32.
10031         * lib/glthread/thread.h (gl_thread_self): Define differently on
10032         pthreads-win32.
10033         (gl_null_thread): New declaration.
10034         (gl_thread_self_pointer): New macro.
10035         * lib/glthread/thread.c (gl_null_thread): New constant.
10036         * tests/test-lock.c: Use gl_thread_self_pointer instead of
10037         gl_thread_self.
10038         * tests/test-tls.c: Likewise.
10039         Suggested by Paul Eggert. Reported by Eric Blake.
10040
10041 2011-06-09  Bruno Haible  <bruno@clisp.org>
10042
10043         thread: Fix confusion between NULL and 0.
10044         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
10045         Reported by Paul Eggert.
10046
10047 2011-06-09  Bruno Haible  <bruno@clisp.org>
10048
10049         spawn-pipe tests: Avoid test failure on HP-UX 11.
10050         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
10051         is closed.
10052
10053 2011-06-09  Bruno Haible  <bruno@clisp.org>
10054
10055         acl tests: Fix compilation error on HP-UX 11.
10056         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
10057
10058 2011-06-09  Bruno Haible  <bruno@clisp.org>
10059
10060         rmdir: Avoid test failure on HP-UX 10.20.
10061         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
10062         EEXIST.
10063
10064 2011-06-08  Eric Blake  <eblake@redhat.com>
10065
10066         perror: fix test on mingw
10067         * modules/perror-tests (Depends-on): Add dup2.
10068
10069         strerror_r-posix: fix on MacOS
10070         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
10071         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
10072         logic bug.
10073         * lib/strerror_r.c (strerror_r): Fix the bug.
10074         * lib/strerror.c (strerror): Likewise.
10075         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
10076         problem.
10077         * doc/posix-functions/strerror.texi (strerror): Likewise.
10078         * doc/posix-functions/perror.texi (perror): Likewise.
10079         * tests/test-strerror.c (main): Enhance test.
10080         * tests/test-strerror_r.c (main): Likewise.
10081
10082 2011-06-08  Bruno Haible  <bruno@clisp.org>
10083
10084         gnulib-tool: Better isolation between different gnulib-tool invocations.
10085         * gnulib-tool: New option --witness-c-macro.
10086         (witness_c_macro): New variable.
10087         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
10088         AM_CPPFLAGS define it as a C macro.
10089         (func_emit_tests_Makefile_am): Likewise.
10090         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
10091         read it from there.
10092         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
10093         m4_define, not AC_DEFUN.
10094         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
10095         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
10096         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
10097         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
10098         s|...|...|, to substitute the values of the GNULIB_* module indicator
10099         variables.
10100         * modules/dirent (Makefile.am): Likewise.
10101         * modules/fcntl-h (Makefile.am): Likewise.
10102         * modules/iconv-h (Makefile.am): Likewise.
10103         * modules/langinfo (Makefile.am): Likewise.
10104         * modules/locale (Makefile.am): Likewise.
10105         * modules/math (Makefile.am): Likewise.
10106         * modules/netdb (Makefile.am): Likewise.
10107         * modules/poll-h (Makefile.am): Likewise.
10108         * modules/pty (Makefile.am): Likewise.
10109         * modules/search (Makefile.am): Likewise.
10110         * modules/signal (Makefile.am): Likewise.
10111         * modules/spawn (Makefile.am): Likewise.
10112         * modules/stdio (Makefile.am): Likewise.
10113         * modules/stdlib (Makefile.am): Likewise.
10114         * modules/string (Makefile.am): Likewise.
10115         * modules/sys_ioctl (Makefile.am): Likewise.
10116         * modules/sys_select (Makefile.am): Likewise.
10117         * modules/sys_socket (Makefile.am): Likewise.
10118         * modules/sys_stat (Makefile.am): Likewise.
10119         * modules/sys_times (Makefile.am): Likewise.
10120         * modules/sys_utsname (Makefile.am): Likewise.
10121         * modules/sys_wait (Makefile.am): Likewise.
10122         * modules/termios (Makefile.am): Likewise.
10123         * modules/time (Makefile.am): Likewise.
10124         * modules/unistd (Makefile.am): Likewise.
10125         * modules/wchar (Makefile.am): Likewise.
10126
10127 2011-06-08  Eric Blake  <eblake@redhat.com>
10128
10129         strerror: simplify replacement
10130         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
10131         * modules/strerror (configure.ac): No prereqs needed here...
10132         * modules/strerror-override (configure.ac): ...but this needs it.
10133         (Files): Add file for needed prereq macro.
10134
10135 2011-06-08  Bruno Haible  <bruno@clisp.org>
10136
10137         strerror_r-posix: Tweaks.
10138         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
10139         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
10140         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
10141         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
10142         (gl_FUNC_STRERROR_R): ... to here.
10143         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
10144
10145 2011-06-07  Eric Blake  <eblake@redhat.com>
10146
10147         perror: document fixed bugs
10148         * doc/posix-functions/perror.texi (perror): Document recent
10149         patches.
10150
10151 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
10152
10153         stat-time: get_stat_birthtime failure is better-defined
10154         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
10155         return a timestamp whose tv_sec and tv_nsec values are both -1.
10156         Previously, the spec said only that the tv_nsec value was negative.
10157         This upward-compatible change simplifies GNU tar a bit.
10158
10159 2011-06-07  Eric Blake  <eblake@redhat.com>
10160
10161         strerror_r-posix: work around cygwin 1.7.9
10162         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
10163         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
10164         bug without replacing strerror_r.
10165         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
10166         strerror_r is buggy, but without requiring strerror_r compilation.
10167         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
10168
10169         test-perror: relax test to ignore cygwin bug
10170         * tests/test-perror2.c (main): Relax test on requiring detection
10171         of stream errors, and use unbuffered stream.
10172         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
10173         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
10174         * doc/posix-functions/fputc.texi (fputc): Likewise.
10175         * doc/posix-functions/fputs.texi (fputs): Likewise.
10176         * doc/posix-functions/fputws.texi (fputws): Likewise.
10177         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
10178         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
10179         * doc/posix-functions/getopt.texi (getopt): Likewise.
10180         * doc/posix-functions/perror.texi (perror): Likewise.
10181         * doc/posix-functions/printf.texi (printf): Likewise.
10182         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
10183         * doc/posix-functions/psignal.texi (psignal): Likewise.
10184         * doc/posix-functions/putc.texi (putc): Likewise.
10185         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
10186         Likewise.
10187         * doc/posix-functions/putchar.texi (putchar): Likewise.
10188         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
10189         Likewise.
10190         * doc/posix-functions/puts.texi (puts): Likewise.
10191         * doc/posix-functions/putwc.texi (putwc): Likewise.
10192         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
10193         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
10194         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
10195         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
10196         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
10197         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
10198         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
10199         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
10200
10201 2011-05-22  Bruno Haible  <bruno@clisp.org>
10202
10203         strerror: Move AC_LIBOBJ invocations to module description.
10204         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
10205         gl_PREREQ_STRERROR invocations from here...
10206         * modules/strerror (configure.ac): ... to here.
10207
10208 2011-05-21  Bruno Haible  <bruno@clisp.org>
10209
10210         perror: Use common idiom.
10211         * modules/perror (configure.ac): Reorder statements.
10212
10213 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
10214
10215         tests: fix usage message in 'mktempd_'
10216         * tests/init.sh (mktempd_): In the usage message, use literal
10217         'mktempd_', not '$ME' (which is even undefined), as the name of
10218         the subroutine.
10219
10220 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
10221
10222         tests init: new function 'fatal_', for hard errors
10223         Before this patch, the only way offered by tests/init.sh to
10224         properly signal a hard error was the `framework_failure_'
10225         function.  But the error message issued by that function,
10226         as its name would suggest, refers to a set-up failure in the
10227         testsuite, while hard errors can obviously also be due to
10228         other reasons.  The best way to fix this inconsistency is to
10229         introduce a new function with a more general error message.
10230         * tests/init.sh (fatal_): New function.
10231
10232 2011-06-06  Eric Blake  <eblake@redhat.com>
10233
10234         canonicalize-lgpl: use common idiom
10235         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
10236         over newer POSIX -Rf.
10237         Reported by Bruno Haible.
10238
10239         canonicalize-lgpl: work around AIX realpath bug
10240         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
10241         * doc/posix-functions/realpath.texi (realpath): Document it.
10242         Reported by Bruno Haible.
10243
10244         strerror: work around FreeBSD bug
10245         * lib/strerror.c (strerror): Special case 0.
10246         Reported by Bruno Haible.
10247
10248         strerror-override: avoid bloating errno module
10249         * modules/errno (Files, configure.ac): Move replacement strings...
10250         * modules/strerror-override: ...to new module.
10251         * modules/strerror (Depends-on): Add strerror-override.
10252         * modules/strerror_r-posix (Depends-on): Likewise.
10253         * MODULES.html.sh: Document new module.
10254         Reported by Bruno Haible.
10255
10256 2011-06-06  Bruno Haible  <bruno@clisp.org>
10257
10258         spawn-pipe tests: Rename program.
10259         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
10260         * tests/test-spawn-pipe-child.c: Update comment.
10261         * tests/test-spawn-pipe.sh: Update.
10262         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
10263
10264         spawn-pipe tests: Link the child program only against libc.
10265         * tests/test-spawn-pipe-child.c: New file, extracted from
10266         tests/test-spawn-pipe.c.
10267         (main): Expect only one argument.
10268         (is_open): New function, copied from tests/test-pipe.c.
10269         * tests/test-spawn-pipe.c: Don't include <errno.h>.
10270         (child_main): Remove function.
10271         (test_pipe): Pass only one argument to the child program.
10272         (main): Remove child process code. Expect the child program's name as
10273         first argument.
10274         * tests/test-spawn-pipe.sh: Pass the child program's name as first
10275         argument.
10276         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
10277         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
10278         test-spawn-pipe-child against no libraries.
10279
10280 2011-06-06  Bruno Haible  <bruno@clisp.org>
10281
10282         careadlinkat: Avoid mismatch between ssize_t and int.
10283         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
10284         * lib/careadlinkat.c (careadlinkatcwd): Define always.
10285
10286 2011-06-06  Jim Meyering  <meyering@redhat.com>
10287
10288         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
10289         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
10290         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
10291
10292 2011-06-05  Bruno Haible  <bruno@clisp.org>
10293
10294         ansi-c++-opt: Interoperability with libtool.
10295         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
10296         set the variable to "no", not to ":".
10297         * NEWS: Mention the change.
10298
10299 2011-06-05  Bruno Haible  <bruno@clisp.org>
10300
10301         acl: Fix test failure on AIX 7.
10302         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
10303         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
10304
10305 2011-06-05  Bruno Haible  <bruno@clisp.org>
10306
10307         pipe-filter-ii: Fix test failure on AIX and IRIX.
10308         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
10309         with EAGAIN, retry with a smaller buffer size.
10310
10311 2011-06-05  Bruno Haible  <bruno@clisp.org>
10312
10313         localename: Fix link dependencies.
10314         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
10315         * modules/localename-tests (Makefile.am): Link test-localename with
10316         $(LIBTHREAD).
10317
10318 2011-06-05  Bruno Haible  <bruno@clisp.org>
10319
10320         error: Avoid gcc warning.
10321         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
10322
10323 2011-06-05  Bruno Haible  <bruno@clisp.org>
10324
10325         unsetenv: Avoid gcc warning.
10326         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
10327
10328 2011-06-05  Bruno Haible  <bruno@clisp.org>
10329
10330         setenv: Avoid gcc warning.
10331         * lib/setenv.c (setenv): Provide declaration if system lacks it.
10332
10333 2011-06-05  Bruno Haible  <bruno@clisp.org>
10334
10335         sys_select: Ensure memset is declared also on AIX 7.
10336         * lib/sys_select.in.h: Include <string.h> also on AIX.
10337         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
10338         self-contained also on AIX 7.1.
10339
10340 2011-06-04  Jim Meyering  <meyering@redhat.com>
10341
10342         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
10343         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
10344         function name, "error".
10345         (_gl_translatable_diag_func_re): New configurable variable.
10346
10347 2011-06-04  Bruno Haible  <bruno@clisp.org>
10348
10349         getopt: Avoid gcc warning.
10350         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
10351
10352 2011-06-04  Bruno Haible  <bruno@clisp.org>
10353
10354         strerror_r: Fix comments.
10355         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
10356         commit.
10357
10358 2011-06-04  Bruno Haible  <bruno@clisp.org>
10359
10360         perror: Fix compilation error.
10361         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
10362         Undefine fprintf, not sprintf.
10363         * modules/perror (Depends-on): Remove intprops, verify.
10364
10365 2011-06-04  Bruno Haible  <bruno@clisp.org>
10366
10367         setlocale: Enable replacement on Cygwin 1.5.
10368         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
10369         Cygwin 1.5.x.
10370         * doc/posix-functions/setlocale.texi: Mention that the problem with the
10371         LC_CTYPE category also exists on Cygwin 1.5.x.
10372
10373 2011-06-04  Bruno Haible  <bruno@clisp.org>
10374
10375         strerror-override: Don't disable symbol renamings.
10376         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
10377         * lib/strerror-override.c: Include config.h.
10378         (strerror_override): Don't undefine.
10379
10380 2011-06-03  Bruno Haible  <bruno@clisp.org>
10381
10382         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
10383         * lib/localename.h: Update copyright header.
10384         * lib/localename.c: Likewise.
10385         * lib/relocatable.h: Likewise.
10386         * lib/relocatable.c: Likewise.
10387
10388 2011-06-02  Bruno Haible  <bruno@clisp.org>
10389
10390         doc: Fix a module name.
10391         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
10392
10393 2011-06-02  Bruno Haible  <bruno@clisp.org>
10394
10395         pipe2: Remove dependency on 'nonblocking' module.
10396         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
10397         O_NONBLOCK is defined by gnulib.
10398         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
10399         is zero.
10400         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
10401         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
10402         defined by gnulib.
10403         (get_nonblocking_flag): New function.
10404         (main): Test O_NONBLOCK flag only if it is nonzero.
10405         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
10406
10407 2011-06-03  Jim Meyering  <meyering@redhat.com>
10408
10409         maint: three new prohibit-header-without-use rules
10410         Prohibit use of cloexec.h, posixver.h, same.h without use.
10411         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
10412         (sc_prohibit_posixver_without_use): Likewise.
10413         (sc_prohibit_same_without_use): Likewise.
10414
10415 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
10416
10417         allocator: 'die' routine is now given requested size
10418         * lib/allocator.h (struct allocator.die): New size arg.
10419         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
10420         If the actual problem is an ssize_t limitation, not a size_t or
10421         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
10422
10423 2011-06-01  Eric Blake  <eblake@redhat.com>
10424
10425         strerror: drop strerror_r dependency
10426         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
10427         * lib/strerror-override.c (strerror_override): ...to new file.
10428         * lib/strerror-override.h: Add prototype.
10429         * lib/strerror-impl.h: Delete.
10430         * lib/strerror.c (strerror): New implementation.
10431         * modules/errno (Files): Add new files.
10432         (configure.ac): Compile new file as appropriate.
10433         * modules/strerror (Files): Drop unused file.
10434         (Depends-on): Drop strerror_r-posix.
10435         * MODULES.html.sh: Document strerror_r-posix.
10436         Requested by Sam Steingold.
10437
10438         perror: call strerror_r directly
10439         * modules/perror (Files): Drop strerror-impl.h.
10440         * lib/perror.c (perror): Use our own stack buffer, rather than
10441         calling a wrapper that uses static storage.
10442         * doc/posix-functions/perror.texi (perror): Document a limitation
10443         of our replacement.
10444
10445         strerror_r: fix includes for FreeBSD
10446         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
10447         since we use abort on some platforms.
10448         Reported by Matthias Bolte.
10449
10450 2011-05-31  Bruno Haible  <bruno@clisp.org>
10451
10452         Fix link errors in tests: openat-die uses gettext-h.
10453         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
10454         against $(LIBINTL).
10455         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
10456         against $(LIBINTL).
10457         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
10458         $(LIBINTL).
10459         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
10460         against $(LIBINTL).
10461         * modules/linkat-tests (Makefile.am): Link test-linkat against
10462         $(LIBINTL).
10463         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
10464         $(LIBINTL).
10465         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
10466         against $(LIBINTL).
10467         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
10468         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
10469         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
10470         $(LIBINTL).
10471         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
10472         $(LIBINTL).
10473         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
10474         $(LIBINTL).
10475         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10476
10477 2011-05-31  Bruno Haible  <bruno@clisp.org>
10478
10479         Fix link errors in tests: wait-process uses gettext-h.
10480         * modules/nonblocking-pipe-tests (Makefile.am): Set
10481         test_nonblocking_pipe_main_LDADD.
10482         * modules/nonblocking-socket-tests (Makefile.am): Link
10483         test-nonblocking-socket-main against $(LIBINTL).
10484         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10485
10486 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
10487
10488         assert-h: work around 'verify' incompatibility
10489         * lib/verify.h: Use @...@ directives, not ifdef.
10490         * modules/assert-h (assert.h): Implement the directives.
10491         (assert.h): Substitute the symbol-prefix more consistently.
10492
10493 2011-05-29  Jim Meyering  <meyering@redhat.com>
10494
10495         trim: remove three superfluous assignments
10496         * lib/trim.c (trim2): Remove three superfluous assignments
10497         and correct brace positioning.
10498
10499 2011-05-29  Bruno Haible  <bruno@clisp.org>
10500
10501         wctype-h: Avoid namespace pollution on Solaris 2.6.
10502         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
10503         identifiers.
10504         * doc/posix-headers/wctype.texi: Mention the problem.
10505         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10506
10507 2011-05-28  Jim Meyering  <meyering@redhat.com>
10508
10509         parse-datetime.y: accommodate -Wstrict-overflow
10510         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
10511         placate -Wstrict-overflow.
10512
10513         trim: avoid a warning from -O2 -Wstrict-overflow
10514         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
10515
10516 2011-05-29  Bruno Haible  <bruno@clisp.org>
10517
10518         gnulib-tool: Fix bug in yesterday's commit.
10519         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
10520         twice.
10521
10522 2011-05-29  Bruno Haible  <bruno@clisp.org>
10523
10524         Allow multiple gnulib generated include files to be combined.
10525         * gnulib-tool (func_compute_include_guard_prefix): New function.
10526         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
10527         ${gl_include_guard_prefix} references.
10528         (func_import, func_create_testdir): Invoke
10529         func_compute_include_guard_prefix.
10530         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
10531         * lib/ctype.in.h: Likewise.
10532         * lib/dirent.in.h: Likewise.
10533         * lib/errno.in.h: Likewise.
10534         * lib/fcntl.in.h: Likewise.
10535         * lib/float.in.h: Likewise.
10536         * lib/getopt.in.h: Likewise.
10537         * lib/iconv.in.h: Likewise.
10538         * lib/langinfo.in.h: Likewise.
10539         * lib/locale.in.h: Likewise.
10540         * lib/math.in.h: Likewise.
10541         * lib/netdb.in.h: Likewise.
10542         * lib/netinet_in.in.h: Likewise.
10543         * lib/poll.in.h: Likewise.
10544         * lib/pthread.in.h: Likewise.
10545         * lib/pty.in.h: Likewise.
10546         * lib/sched.in.h: Likewise.
10547         * lib/se-selinux.in.h: Likewise.
10548         * lib/search.in.h: Likewise.
10549         * lib/signal.in.h: Likewise.
10550         * lib/spawn.in.h: Likewise.
10551         * lib/stdarg.in.h: Likewise.
10552         * lib/stddef.in.h: Likewise.
10553         * lib/stdint.in.h: Likewise.
10554         * lib/stdio.in.h: Likewise.
10555         * lib/stdlib.in.h: Likewise.
10556         * lib/string.in.h: Likewise.
10557         * lib/strings.in.h: Likewise.
10558         * lib/sys_file.in.h: Likewise.
10559         * lib/sys_ioctl.in.h: Likewise.
10560         * lib/sys_select.in.h: Likewise.
10561         * lib/sys_socket.in.h: Likewise.
10562         * lib/sys_stat.in.h: Likewise.
10563         * lib/sys_time.in.h: Likewise.
10564         * lib/sys_times.in.h: Likewise.
10565         * lib/sys_uio.in.h: Likewise.
10566         * lib/sys_utsname.in.h: Likewise.
10567         * lib/sys_wait.in.h: Likewise.
10568         * lib/sysexits.in.h: Likewise.
10569         * lib/termios.in.h: Likewise.
10570         * lib/time.in.h: Likewise.
10571         * lib/unistd.in.h: Likewise.
10572         * lib/wchar.in.h: Likewise.
10573         * lib/wctype.in.h: Likewise.
10574         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
10575         * modules/ctype (Makefile.am): Likewise.
10576         * modules/dirent (Makefile.am): Likewise.
10577         * modules/errno (Makefile.am): Likewise.
10578         * modules/fcntl-h (Makefile.am): Likewise.
10579         * modules/float (Makefile.am): Likewise.
10580         * modules/getopt-posix (Makefile.am): Likewise.
10581         * modules/iconv-h (Makefile.am): Likewise.
10582         * modules/langinfo (Makefile.am): Likewise.
10583         * modules/locale (Makefile.am): Likewise.
10584         * modules/math (Makefile.am): Likewise.
10585         * modules/netdb (Makefile.am): Likewise.
10586         * modules/netinet_in (Makefile.am): Likewise.
10587         * modules/poll-h (Makefile.am): Likewise.
10588         * modules/pthread (Makefile.am): Likewise.
10589         * modules/pty (Makefile.am): Likewise.
10590         * modules/sched (Makefile.am): Likewise.
10591         * modules/search (Makefile.am): Likewise.
10592         * modules/selinux-h (Makefile.am): Likewise.
10593         * modules/signal (Makefile.am): Likewise.
10594         * modules/spawn (Makefile.am): Likewise.
10595         * modules/stdarg (Makefile.am): Likewise.
10596         * modules/stddef (Makefile.am): Likewise.
10597         * modules/stdint (Makefile.am): Likewise.
10598         * modules/stdio (Makefile.am): Likewise.
10599         * modules/stdlib (Makefile.am): Likewise.
10600         * modules/string (Makefile.am): Likewise.
10601         * modules/strings (Makefile.am): Likewise.
10602         * modules/sys_file (Makefile.am): Likewise.
10603         * modules/sys_ioctl (Makefile.am): Likewise.
10604         * modules/sys_select (Makefile.am): Likewise.
10605         * modules/sys_socket (Makefile.am): Likewise.
10606         * modules/sys_stat (Makefile.am): Likewise.
10607         * modules/sys_time (Makefile.am): Likewise.
10608         * modules/sys_times (Makefile.am): Likewise.
10609         * modules/sys_uio (Makefile.am): Likewise.
10610         * modules/sys_utsname (Makefile.am): Likewise.
10611         * modules/sys_wait (Makefile.am): Likewise.
10612         * modules/sysexits (Makefile.am): Likewise.
10613         * modules/termios (Makefile.am): Likewise.
10614         * modules/time (Makefile.am): Likewise.
10615         * modules/unistd (Makefile.am): Likewise.
10616         * modules/wchar (Makefile.am): Likewise.
10617         * modules/wctype-h (Makefile.am): Likewise.
10618         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
10619
10620 2011-05-29  Bruno Haible  <bruno@clisp.org>
10621
10622         assert-h: Allow multiple gnulib generated replacements to coexist.
10623         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
10624
10625 2011-05-29  Bruno Haible  <bruno@clisp.org>
10626
10627         argp: Allow coexistence with strerror_r-posix module.
10628         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
10629         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
10630         by gnulib's <string.h> replacement), assume it has the POSIX signature,
10631         not the glibc signature.
10632
10633 2011-05-28  Bruno Haible  <bruno@clisp.org>
10634
10635         gnulib-tool: Alternative structure of testdirs, similar to --import.
10636         * gnulib-tool: New option --single-configure.
10637         (func_usage): Document it.
10638         (single_configure): New variable.
10639         (func_modules_transitive_closure_separately,
10640         func_modules_transitive_closure_separately,
10641         func_determine_use_libtests, func_modules_add_dummy_separately,
10642         func_modules_to_filelist_separately): New functions, extracted from
10643         func_import.
10644         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
10645         (func_import): Use the new functions.
10646         (func_create_testdir): Set final_modules. Handle $single_configure =
10647         true case.
10648
10649 2011-05-28  Bruno Haible  <bruno@clisp.org>
10650
10651         getloadavg: Remove an unreliable safety check.
10652         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
10653         getloadavg.c is in place.
10654         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
10655         Reported by Sam Steingold <sds@gnu.org>.
10656
10657 2011-05-28  Bruno Haible  <bruno@clisp.org>
10658
10659         doc: Cleanup yet another file produced by texinfo.tex.
10660         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
10661
10662 2011-05-28  Bruno Haible  <bruno@clisp.org>
10663
10664         Finish the conditional dependencies mechanism.
10665         * gnulib-tool: New option --no-conditional-dependencies.
10666         (func_usage): Document it. Don't mark --conditional-dependencies as
10667         experimental.
10668         (cond_dependencies): The possible values can now be true, false, empty.
10669         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
10670         (func_import): Store setting in gnulib-cache.m4 and read it from there.
10671         * doc/gnulib-tool.texi (Conditional dependencies): New section.
10672
10673 2011-05-28  Bruno Haible  <bruno@clisp.org>
10674
10675         doc: Use a recent texinfo.tex.
10676         * doc/Makefile (tex_opts): New variable.
10677         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
10678
10679 2011-05-28  Jim Meyering  <meyering@redhat.com>
10680
10681         intprops.h: adjust comment to match code change
10682         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
10683         only once, it *may* have side effects.  Also fix an unrelated typo.
10684         (_GL_INT_SIGNED): Likewise.
10685
10686 2011-05-26  Simon Josefsson  <simon@josefsson.org>
10687
10688         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
10689
10690 2011-05-26  Bruno Haible  <bruno@clisp.org>
10691
10692         mbsrchr: Avoid collision with system function on Interix.
10693         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
10694         Reported by Markus Duft <mduft@gentoo.org>.
10695
10696 2011-05-15  James Youngman  <jay@gnu.org>
10697
10698         getopt: for ambiguous options, enumerate the possibilities.
10699         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
10700         the ambiguous options when an ambiguous prefix is given. This was
10701         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
10702         glibc change was
10703         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
10704
10705 2011-05-25  Eric Blake  <eblake@redhat.com>
10706
10707         getcwd: work around mingw bug
10708         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
10709         * doc/posix-functions/getcwd.texi (getcwd): Document it.
10710         Reported by Matthias Bolte.
10711
10712 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
10713
10714         test-intprops: disable -Wtype-limits diagnostics
10715         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
10716         diagnostics.  Otherwise, the integer overflow macros generate many
10717         diagnostics.  Reported by Jim Meyering in
10718         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
10719
10720         intprops: shorten, to pacify gcc -Woverlength-strings
10721         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
10722         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
10723         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
10724         likely to run afoul of C compiler limits for string constant lengths.
10725         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
10726
10727 2011-05-24  Eric Blake  <eblake@redhat.com>
10728
10729         docs: document recently fixed glibc printf bug
10730         * doc/posix-functions/fprintf.texi (fprintf): Document it.
10731         * doc/posix-functions/printf.texi (printf): Likewise.
10732         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
10733         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
10734
10735         closein-tests: convert to init.sh
10736         * modules/closein-tests (Files): Add init.sh
10737         * tests/test-closein.sh Use it.
10738
10739         yesno-tests: convert to init.sh
10740         * modules/yesno-tests (Files): Add init.sh.
10741         * tests/test-yesno.sh: Use it.
10742
10743         atexit-tests: ensure reliable exit status
10744         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
10745         Reported by Bruno Haible.
10746
10747 2011-05-24  Bruno Haible  <bruno@clisp.org>
10748
10749         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
10750         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
10751         gl_PREREQ_STRERROR_R invocations from here...
10752         * modules/strerror_r-posix (configure.ac): ... to here.
10753
10754 2011-05-24  Eric Blake  <eblake@redhat.com>
10755
10756         strerror_r: fix missing header
10757         * lib/strerror_r.c: Avoid compiler warning about snprintf.
10758
10759         strerror_r: fix AIX test failures
10760         * lib/strerror_r.c (strerror_r): Convert silent truncation to
10761         ERANGE failure.
10762
10763         strerror_r: fix Solaris test failures
10764         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
10765         failures.
10766         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10767
10768         strerror_r: enforce POSIX recommendations
10769         * lib/strerror_r.c (safe_copy): New helper method.
10770         (strerror_r): Guarantee a non-empty string.
10771         * tests/test-strerror_r.c (main): Enhance tests to incorporate
10772         recent POSIX rulings and to match our strerror guarantees.
10773         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10774
10775 2011-05-24  Jim Meyering  <meyering@redhat.com>
10776
10777         test-perror2.c: avoid warning about unused variable
10778         * tests/test-perror2.c (main): Remove declaration of unused "fp".
10779
10780 2011-05-24  Eric Blake  <eblake@redhat.com>
10781
10782         perror: avoid spurious test failure on HP-UX
10783         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
10784
10785         tests: fix logic bug in init.sh
10786         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
10787         shell.
10788
10789 2011-05-24  Jim Meyering  <meyering@redhat.com>
10790
10791         utimensat: do not reference an out-of-scope buffer
10792         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
10793         declared in an inner scope, yet "times" would be dereferenced outside
10794         the scope in which "ts" was valid.
10795         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
10796         of ts[2] "out/up", so that the use of aliased "times" (via
10797         "times = ts;") does not end up referencing an out-of-scope "ts"
10798
10799         opendir-safer.c: don't clobber errno; don't close negative FD
10800         * lib/opendir-safer.c (opendir_safer):
10801         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
10802         file descriptor, and more importantly, don't clobber the
10803         offending errno value with EINVAL.  Before, upon failure
10804         of dup_safer, we would pass the negative file descriptor to
10805         fdopendir, which would clobber errno.
10806
10807 2011-05-23  Bruno Haible  <bruno@clisp.org>
10808
10809         idcache: Fix module description.
10810         * modules/idcache (Include): Set to "idcache.h".
10811
10812 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
10813
10814         gnulib-tool: fix portability problem with MacOS sed
10815         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
10816         before the "}".  Problem reported by Leo in
10817         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
10818         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
10819         sed_extract_condition1, sed_extract_condition2.
10820
10821 2011-05-23  Bruno Haible  <bruno@clisp.org>
10822
10823         hash: Simplify autoconf macro.
10824         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
10825
10826 2011-05-23  Bruno Haible  <bruno@clisp.org>
10827
10828         getugroups: Fix module description.
10829         * modules/getugroups (Include): Set to "getugroups.h".
10830
10831 2011-05-23  Bruno Haible  <bruno@clisp.org>
10832
10833         linkat: Simplify autoconf macro.
10834         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
10835
10836 2011-05-23  Bruno Haible  <bruno@clisp.org>
10837             Eric Blake  <eblake@redhat.com>
10838
10839         linkat, renameat: Update dependencies.
10840         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
10841         * modules/linkat (Depends-on): Likewise. Remove also readlink,
10842         symlinkat.
10843
10844 2011-05-23  Jim Meyering  <meyering@redhat.com>
10845
10846         maint.mk: more tight_scope improvements
10847         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
10848         (_gl_TS_headers): Define only in if-0'd block.
10849         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
10850         sometimes we must *not* use it.  Adjust uses accordingly.
10851         (sc_tight_scope): Use much simpler grep-based test to determine
10852         whether we skip this rule.
10853
10854         maint.mk: generalize/improve the tight-scope rule
10855         * top/maint.mk: Emit a warning when the test is skipped.
10856         (_gl_TS_dir): Add $(srcdir)/ prefix.
10857         (_gl_TS_function_match): Simplify, rather than trying
10858         to enumerate common types.  Otherwise, it would fail to match an
10859         "extern unsigned char const *" declaration in idutils.
10860         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
10861         a way to support use of that type of macro.
10862         (_gl_TS_var_match): Simplify regexp.
10863         (_gl_TS_obj_files): New configurable variable.
10864         (_gl_TS_headers): Likewise.
10865
10866 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
10867
10868         verify: fix bug when gnulib <assert.h> is also included
10869         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
10870         is defined, not if _GL_STATIC_ASSERT_H is not defined.
10871         Perhaps there's a better way, but this fixes the immediate problem.
10872         Problem reported by Bruno Haible in
10873         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
10874
10875 2011-05-22  Bruno Haible  <bruno@clisp.org>
10876
10877         xgetcwd: Simplify autoconf macro.
10878         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
10879
10880 2011-05-22  Bruno Haible  <bruno@clisp.org>
10881
10882         New module 'mktime-internal'.
10883         * modules/mktime-internal: New file.
10884         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
10885         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
10886         mktime_internal as a C macro if libc has __mktime_internal.
10887         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
10888         conditions.
10889         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
10890
10891 2011-05-22  Bruno Haible  <bruno@clisp.org>
10892
10893         timegm: Correct mktime replacement statements.
10894         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
10895         defining mktime as a C macro. This completes a 2009-07-28 commit.
10896
10897 2011-05-22  Bruno Haible  <bruno@clisp.org>
10898
10899         timegm: Simplify autoconf macro.
10900         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
10901
10902 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
10903
10904         clock-time: change to LGPLv2+.
10905         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
10906         BSD-like but we have no mark for that; this is good enough for now.
10907
10908 2011-05-21  Bruno Haible  <bruno@clisp.org>
10909
10910         strerror_r: Fix comments.
10911         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
10912
10913 2011-05-21  Bruno Haible  <bruno@clisp.org>
10914
10915         relocatable-prog-wrapper: Fix possible link error.
10916         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
10917         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
10918         (gl_FUNC_SETENV): ... to here.
10919         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
10920         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
10921
10922 2011-05-21  Bruno Haible  <bruno@clisp.org>
10923
10924         relocatable-prog-wrapper: Assume strerror() exists.
10925         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
10926         m4/strerror.m4.
10927         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
10928         * lib/relocwrapper.c: Remove mention of strerror module.
10929         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
10930         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
10931         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
10932         C macro.
10933
10934 2011-05-21  Bruno Haible  <bruno@clisp.org>
10935
10936         select: Simplify replacement idiom.
10937         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
10938         Win32 platforms.
10939         * lib/sys_select.in.h (select): Simplify accordingly.
10940         * modules/select (Depends-on): Likewise.
10941
10942 2011-05-21  Bruno Haible  <bruno@clisp.org>
10943
10944         mkdir-p: Simplify autoconf macro.
10945         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
10946         gl_FUNC_LCHOWN.
10947
10948 2011-05-21  Eric Blake  <eblake@redhat.com>
10949
10950         strerror_r: avoid clobbering strerror on cygwin
10951         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
10952         fall back instead to sys_errlist.
10953         * modules/strerror (configure.ac): Add witness.
10954         * tests/test-strerror_r.c (main): Enhance test.
10955         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10956         * tests/test-perror2.c (main): Free memory before exit.
10957
10958 2011-05-21  Bruno Haible  <bruno@clisp.org>
10959
10960         mkdtemp: Use gnulib naming conventions.
10961         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
10962         * modules/mkdtemp (configure.ac): Update.
10963
10964 2011-05-20  Eric Blake  <eblake@redhat.com>
10965
10966         strerror_r: avoid corrupting errno on Solaris
10967         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
10968         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10969
10970         strerror_r: avoid compiler warning
10971         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
10972
10973         strerror_r: simplify AIX code
10974         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
10975
10976         test-perror: avoid spurious failure on FreeBSD
10977         * modules/perror-tests (Depends-on): Add strerror, now that
10978         strerror_r no longer pulls it in.
10979
10980 2011-05-20  Bruno Haible  <bruno@clisp.org>
10981
10982         strerror_r-posix: Remove unused dependencies.
10983         * modules/strerror_r-posix (Depends-on): Remove strerror.
10984         Reported by Eric Blake.
10985
10986 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
10987
10988         intprops: remove assumption about A|B representation
10989         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
10990         is a valid integer if both A and B are.  Although this is true for
10991         all known practical hosts, the C standard doesn't guarantee it,
10992         and the code need not assume it.  Also, this change may work around
10993         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
10994         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
10995
10996 2011-05-20  Eric Blake  <eblake@redhat.com>
10997
10998         perror: work around FreeBSD bug
10999         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
11000         is broken.  Move AC_LIBOBJ...
11001         * modules/perror (configure.ac): Here.
11002         * doc/posix-functions/perror.texi (perror): Document this.
11003         * tests/test-perror2.c (main): Enhance test.
11004
11005         test-perror: check for strerror interactions
11006         * tests/macros.h (STREQ): Add macro.
11007         * modules/perror-tests (Files): Add second test.
11008         * tests/test-perror2.c (main): New file.
11009         * doc/posix-functions/perror.texi (perror): Document glibc bug.
11010
11011         test-perror: rewrite to use init script
11012         * modules/perror-tests (Files): Add init.sh.
11013         * tests/test-perror.sh: Use temporary directory.
11014
11015 2011-05-20  Jim Meyering  <meyering@redhat.com>
11016
11017         maint: replace misused "a" with "an"
11018         * doc/intprops.texi: "a integer"
11019         * doc/regex.texi: "a explanation"
11020         * lib/alignof.h: "a object"
11021         * lib/argmatch.h: "a explanation"
11022         * lib/argp-help.c: "a option" and "a OPTION_DOC"
11023         * lib/stdint.in.h: "a integer"
11024         * lib/userspec.c: "a owner"
11025         * doc/gnulib.texi: Fix "a idea", and reword.
11026
11027 2011-05-19  Jim Meyering  <meyering@redhat.com>
11028
11029         maint: correct misuse of "a" and "an"
11030         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
11031         * lib/argp-help.c: "an docum...": s/an/a/
11032         * lib/argp-parse.c: "An vector": s/An/A/
11033         * lib/execute.c: "an native": s/an/a/
11034         * lib/spawn-pipe.c: Likewise.
11035         * lib/gc.h: "an Gc_rc": s/an/a/
11036         * lib/unigbrk.in.h: "an grapheme": s/an/a/
11037         * lib/fts.c: "an stat.st_dev": s/an/a/
11038
11039 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
11040
11041         intprops-tests: work around HP-UX 11.23 cc bug with constants
11042         * tests/test-intprops.c (VERIFY): New macro.
11043         (main): Use it, instead of verify, to work around the compiler bug; see
11044         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11045
11046         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
11047         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
11048         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
11049         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
11050         (_GL_REMAINDER_OVERFLOW): Use it.
11051
11052         intprops-tests: revert unsigned part of previous change
11053         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
11054         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
11055         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
11056         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
11057
11058 2011-05-19  Bruno Haible  <bruno@clisp.org>
11059
11060         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
11061         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
11062         strerror_r() returned without filling the buffer.
11063         Reported by Eric Blake.
11064
11065 2011-05-19  Eric Blake  <eblake@redhat.com>
11066
11067         strerror_r: guarantee unchanged errno
11068         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
11069         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
11070         failure.
11071         * tests/test-strerror_r.c (main): Enhance test.
11072
11073 2011-05-19  Bruno Haible  <bruno@clisp.org>
11074
11075         strerror_r: Reorder #if blocks.
11076         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
11077         for consistency with the previous commit.
11078
11079 2011-05-19  Bruno Haible  <bruno@clisp.org>
11080
11081         perror: Avoid clobbering the strerror buffer when possible.
11082         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
11083         * lib/strerror.c: Include it.
11084         * modules/strerror (Files): Add lib/strerror-impl.h.
11085         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
11086         (my_strerror): New function, defined through lib/strerror-impl.h.
11087         (perror): Use it instead of strerror.
11088         * modules/perror (Files): Add lib/strerror-impl.h.
11089         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
11090
11091 2011-05-19  Eric Blake  <eblake@redhat.com>
11092
11093         strerror_r: fix on newer cygwin
11094         * lib/strerror_r.c (strerror_r): Cygwin now has
11095         __xpg_strerror_r, use it.
11096
11097 2011-05-19  Bruno Haible  <bruno@clisp.org>
11098
11099         strerror_r: Avoid clobbering the strerror buffer when possible.
11100         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
11101         (sys_nerr, sys_errlist): New declarations.
11102         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
11103         HP-UX, native Win32, IRIX, and 32-bit Solaris.
11104         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
11105
11106 2011-05-19  Bruno Haible  <bruno@clisp.org>
11107
11108         strerror_r: Fix test failure on mingw.
11109         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
11110         EXTEND_STRERROR_R.
11111         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
11112         macros from errno.in.h instead.
11113
11114 2011-05-19  Eric Blake  <eblake@redhat.com>
11115
11116         strerror: relax test for Solaris
11117         * tests/test-strerror.c (main): Permit Solaris behavior.
11118         * tests/test-strerror_r.c (main): Likewise.
11119
11120         strerror: enforce POSIX ruling on strerror(0)
11121         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
11122         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
11123         * lib/strerror_r.c (rpl_strerror_r): Work around it.
11124         * doc/posix-functions/strerror.texi (strerror): Document it.
11125         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
11126         * tests/test-strerror.c (main): Strengthen test.
11127         * tests/test-strerror_r.c (main): Likewise.
11128
11129 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
11130
11131         intprop-tests: port to older and more-pedantic compilers
11132         * modules/intprops-tests (Files): Add tests/macros.h.
11133         * tests/test-intprops.c: Include macros.h.
11134         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
11135         it's no longer documented to expand to an integer constant expression.
11136         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
11137         argument is floating point, as it's no longer documented to expand
11138         to an integer constant expression in that case.
11139         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
11140         compiler bugs reported by Bruno Haible.  See
11141         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11142         (U0, U1): New constants, to work around the same bugs.  Also,
11143         in tests, use e.g., "(unsigned int) 39" rather than "39u".
11144
11145         intprops: work around C compiler bugs
11146         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
11147         bug in Sun C 5.11 2010/08/13 and other compilers; see
11148         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11149
11150         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
11151         * doc/intprops.texi (Integer Type Determination): Fix
11152         documentation for TYPE_IS_INTEGER: it returns an constant
11153         expression, not an integer constant expression.  Fix doc for
11154         TYPE_SIGNED: it returns an integer constant expression only if its
11155         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
11156         hardly worth documented that way....)
11157
11158 2011-05-18  Bruno Haible  <bruno@clisp.org>
11159
11160         strerror_r: Avoid clobbering the strerror buffer when possible.
11161         * lib/strerror_r.c (strerror_r): Merge the three implementations.
11162         Handle gnulib defined errno values here. When strerror() returns NULL
11163         or an empty string, return EINVAL.
11164         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
11165         gnulib defined errno values here.
11166         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
11167
11168 2011-05-18  Eric Blake  <eblake@redhat.com>
11169
11170         fnmatch: avoid compiler warning
11171         * lib/fnmatch_loop.c (FCT): Use correct type.
11172         Reported by Matthias Bolte.
11173
11174 2011-05-13  Jim Meyering  <meyering@redhat.com>
11175
11176         maint.mk: three new prohibit_<HDR>_without_use rules
11177         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
11178         (sc_prohibit_stdio-safer_without_use): Likewise.
11179         (sc_prohibit_xfreopen_without_use): Likewise.
11180
11181 2011-05-17  Jim Meyering  <meyering@redhat.com>
11182
11183         announce-gen: fail if the NEWS delta is empty
11184         If there's nothing noteworthy in NEWS, then either you forgot
11185         or you shouldn't be releasing.
11186         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
11187
11188 2011-05-17  Pádraig Brady <P@draigBrady.com>
11189
11190         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
11191         reserved symbols starting with double underscore from the check.
11192
11193 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
11194
11195         intprops: add doc
11196         * doc/intprops.texi: New file, documenting intprops.
11197         * doc/gnulib.texi (Particular Modules): Include it.
11198
11199         verify: add doc to gnulib manual and fix example
11200         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
11201         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
11202         (Compile-time Assertions): Fix example so it can't overflow.
11203
11204 2011-05-17  Jim Meyering  <meyering@redhat.com>
11205
11206         warnings.m4: don't usurp save_CPPFLAGS variable name
11207         * m4/warnings.m4: Prefix local temporary variable name with gl_.
11208
11209         doc: fix typo
11210         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
11211
11212 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
11213             Bruno Haible  <bruno@clisp.org>
11214
11215         doc: Tweak recent change.
11216         * README (Portability guidelines): Tweak new text.
11217         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
11218         Interix 6.1.
11219
11220 2011-05-16  Eric Blake  <eblake@redhat.com>
11221
11222         inttypes: avoid autoconf warning
11223         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
11224         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11225
11226 2011-05-16  Sam Steingold <sds@gnu.org>
11227         and Eric Blake  <eblake@redhat.com>
11228
11229         vc-list-files: accept multiple directory operands
11230         * build-aux/vc-list-files: Iterate over all remaining operands.
11231
11232 2011-05-16  Bruno Haible  <bruno@clisp.org>
11233
11234         Fix confusion regarding deprecated modules.
11235         * modules/calloc (Status, Notice): Mark module as deprecated, not
11236         obsolete.
11237         * modules/fnmatch-posix (Status, Notice): Likewise.
11238         * modules/getdate (Status, Notice): Likewise.
11239         * modules/getopt (Status, Notice): Likewise.
11240         * modules/malloc (Status, Notice): Likewise.
11241         * modules/pipe (Status, Notice): Likewise.
11242         * modules/realloc (Status, Notice): Likewise.
11243         * modules/rename-dest-slash (Status, Notice): Likewise.
11244         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
11245         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
11246         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
11247         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
11248         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
11249
11250 2011-05-16  Bruno Haible  <bruno@clisp.org>
11251
11252         doc: List the target platforms.
11253         * doc/gnulib-intro.texi (Target Platforms): New section.
11254         * doc/gnulib.texi (Introduction): Update menu.
11255         * README (Portability guidelines): Refer to the new section. Update
11256         statement about oldest supported environment. Remove rationale why
11257         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
11258         unportable C89 function.
11259         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
11260         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
11261
11262 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
11263
11264         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
11265
11266 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
11267
11268         intprops-tests: new module
11269         * modules/intprops-tests, tests/test-intprops.c: New files.
11270
11271         intprops: add safe, portable integer overflow checking
11272         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
11273         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
11274         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
11275         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
11276         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
11277         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
11278         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
11279         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
11280         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
11281         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
11282         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
11283
11284 2011-05-12  James Youngman  <jay@gnu.org>
11285
11286         Add a test for glibc's Bugzilla bug #12378.
11287         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
11288         doesn't allow the literal matching of a lone "[" (which is
11289         required by POSIX).
11290         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
11291
11292 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
11293
11294         Sync glibc change fixing Bugzilla bug #12378.
11295         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
11296         beginning and fall back to matching as normal character if the
11297         string ends before the matching ']' is found.  This is what POSIX
11298         requires.
11299
11300 2011-05-13  Eric Blake  <eblake@redhat.com>
11301
11302         getcwd-lgpl: relax test for FreeBSD
11303         * doc/posix-functions/getcwd.texi (getcwd): Document portability
11304         issue.
11305         * tests/test-getcwd-lgpl.c (main): Relax test.
11306         Reported by Matthias Bolte.
11307
11308 2011-05-11  Eric Blake  <eblake@redhat.com>
11309
11310         test-fflush: silence compiler warning
11311         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
11312
11313 2011-05-11  Bruno Haible  <bruno@clisp.org>
11314
11315         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
11316         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
11317         * modules/canonicalize (Depends-on): Add 'nocrash'.
11318         * modules/canonicalize-lgpl (Depends-on): Likewise.
11319         * doc/posix-functions/realpath.texi: Update platforms list.
11320         Reported by Ryan Schmidt <ryandesign@macports.org>.
11321
11322 2011-05-11  Bruno Haible  <bruno@clisp.org>
11323
11324         group-member: Declare function in <unistd.h>.
11325         * lib/unistd.in.h (group_member): New declaration.
11326         * lib/group-member.h: Remove file.
11327         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
11328         * tests/test-unistd-c++.cc: Check signature of group_member.
11329         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
11330         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
11331         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
11332         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
11333         HAVE_GROUP_MEMBER.
11334         * modules/group-member (Files): Remove lib/group-member.h.
11335         (Depends-on): Add unistd. Specify conditions.
11336         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11337         (Include): Change to <unistd.h>.
11338         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
11339         HAVE_GROUP_MEMBER.
11340         * NEWS: Mention the change.
11341         * lib/euidaccess.c: Don't include group-member.h.
11342
11343 2011-05-11  Bruno Haible  <bruno@clisp.org>
11344
11345         group-member: Document module.
11346         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
11347         module.
11348
11349 2011-05-11  Bruno Haible  <bruno@clisp.org>
11350
11351         fclose: Fix mistake earlier today.
11352         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
11353
11354 2011-05-11  Eric Blake  <eblake@redhat.com>
11355
11356         fclose: preserve fflush errors
11357         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
11358         Reported by Jim Meyering.
11359
11360         bootstrap: support a prereq of 'rpcgen -' on RHEL5
11361         * build-aux/bootstrap (check_versions): When no specific version
11362         is required, merely check that the app produces an exit status
11363         that indicates its existence.
11364
11365         maint.mk: drop redundant check
11366         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
11367         the same but better.
11368
11369 2011-05-11  Bruno Haible  <bruno@clisp.org>
11370
11371         fclose: Fix possible link error.
11372         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
11373         unregister_shadow_fd. Improve comments.
11374         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
11375         Eric Blake.
11376
11377 2011-05-11  Jim Meyering  <meyering@redhat.com>
11378
11379         maint.mk: improve "can not" detection and generalize rule name
11380         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
11381         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
11382         Use the same technique as in sc_prohibit_doubled_word, so that
11383         we recognize "can not" also when the words are separated by a newline.
11384         Suggested by Eric Blake.
11385         (perl_filename_lineno_text_): Define.  Factored out of...
11386         (prohibit_doubled_word_): ...here.  Use the new definition.
11387         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
11388         (prohibit_undesirable_word_seq_RE_): New overridable variable.
11389         (ignore_undesirable_word_sequence_RE_): New overridable variable.
11390
11391 2011-05-10  Eric Blake  <eblake@redhat.com>
11392
11393         fclose: avoid double close race when possible
11394         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
11395         all but WINDOWS_SOCKETS.
11396
11397 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
11398
11399         openat: correct new comment
11400         * lib/openat-proc.c (openat_proc_name): Correct the comment.
11401
11402 2011-05-10  Jim Meyering  <meyering@redhat.com>
11403
11404         openat: add comments
11405         * lib/openat-proc.c (openat_proc_name): Add comments,
11406         mostly from Eric Blake.
11407
11408 2011-05-09  Eric Blake  <eblake@redhat.com>
11409
11410         openat: reduce syscalls in first probe of /proc
11411         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
11412         be a directory.  Simplify the probe for .. bugs.
11413         * modules/openat (Depends-on): Drop same-inode.
11414         Reported by Bastien ROUCARIES.
11415
11416 2011-05-09  Jim Meyering  <meyering@redhat.com>
11417
11418         maint.mk: change semantics/name of tight_scope variables
11419         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
11420         Rename variables to align with semantics that make them more useful.
11421
11422         maint.mk: tweak new rule's name not to impinge
11423         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
11424         (sc_tight_scope): Use new rule name rather than $@-0.
11425
11426         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
11427         * top/maint.mk (sc_tight_scope): New rule.
11428         (sc_tight_scope-0): New rule, ifdef'd out.
11429         (_gl_TS_dir): Default.
11430         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
11431         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
11432
11433 2011-05-09  Simon Josefsson  <simon@josefsson.org>
11434
11435         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
11436         Haible <bruno@clisp.org>.
11437
11438 2011-05-08  Bruno Haible  <bruno@clisp.org>
11439
11440         Comments.
11441         * m4/isnanf.m4: Add comment.
11442         * m4/isnanl.m4: Likewise.
11443
11444 2011-05-08  Bruno Haible  <bruno@clisp.org>
11445
11446         glob: Remove obsolete macro.
11447         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
11448
11449 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
11450
11451         intprops: Sun C 5.11 supports __typeof__
11452         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
11453         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
11454         which is new.
11455         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
11456
11457         intprops: switch to usual gnulib indenting and naming
11458         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
11459         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
11460
11461         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
11462
11463 2011-05-08  Jim Meyering  <meyering@redhat.com>
11464
11465         maint.mk: suppress "Entering/Leaving directory" diag in announcement
11466         * top/maint.mk (release-prep): Use make's --no-print-directory
11467         option when generating the announcement.  This eliminates the
11468         pesky "make[2]: Entering/Leaving directory" diagnostics in the
11469         generated announcement template.
11470
11471 2011-05-08  Bruno Haible  <bruno@clisp.org>
11472
11473         tzset: Fix gettimeofday wrapper on Solaris 2.6.
11474         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
11475         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
11476
11477 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
11478
11479         ignore-value, verify: Omit include files from lib_SOURCES.
11480         * modules/ignore-value, modules/verify (Makefile.am):
11481         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
11482         that leads Automake to duplicate use of am__objects_... variables
11483         in Makefile.in.  See
11484         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
11485
11486 2011-05-07  Bruno Haible  <bruno@clisp.org>
11487
11488         fclose: Simplify autoconf macro.
11489         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
11490         defined.
11491
11492 2011-05-07  Bruno Haible  <bruno@clisp.org>
11493
11494         canonicalize-lgpl: Fix autoconf macro ordering bug.
11495         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
11496         gl_STDLIB_H_DEFAULTS.
11497
11498 2011-05-06  Eric Blake  <eblake@redhat.com>
11499
11500         maintainer-makefile: make sc_po_check easier to tune
11501         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
11502         to probe for strings, such as an alternate location for gnulib.
11503
11504         fclose: guarantee behavior on seekable stdin
11505         * modules/fclose (Depends-on): Add fflush.
11506         * doc/posix-functions/fclose.texi (fclose): Document this.
11507         * tests/test-fclose.c (main): Make test for this unconditional.
11508
11509 2011-05-06  Bruno Haible  <bruno@clisp.org>
11510
11511         fflush, fpurge: Relicense under LGPLv2+.
11512         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
11513         * modules/fpurge (License): Likewise.
11514         With permission from Eric Blake and Jim Meyering.
11515         Suggested by Eric Blake.
11516
11517 2011-05-06  Karl Berry  <karl@gnu.org>
11518
11519         * MODULES.html.sh (func_all_modules): remove exit.
11520
11521 2011-05-06  Jim Meyering  <meyering@redhat.com>
11522
11523         maint.mk: use info-gnu@ as the default only for a stable release
11524         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
11525         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
11526         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
11527         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
11528
11529 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
11530
11531         assert-h: new module, which supports C1X-style static_assert
11532         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
11533         * lib/verify.h: Revamp so that this can be copied into assert.h,
11534         while retaining the ability to use it standalone as before.
11535         Rename private identifiers so as not to encroach on the
11536         standard C namespace, since this is now used by assert.h.
11537         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
11538         the old verify_true.
11539         (_GL_VERIFY_TRUE): New macro, with much of the contents of
11540         the old verify_true.  Use _GL_VERIFY_TYPE.
11541         (_GL_VERIFY): New macro, with much of the contents of the old verify.
11542         (static_assert): New macro, if _GL_STATIC_ASSERT_H
11543         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
11544         defined when this file is copied into the replacement assert.h.
11545         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
11546         and _Static_assert is not built in.
11547         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
11548         defined, and use the new macros mentioned above.
11549         * doc/posix-headers/assert.texi: Document this.
11550
11551 2011-05-05  Bruno Haible  <bruno@clisp.org>
11552
11553         fclose, fflush: Respect rules for use of AC_LIBOBJ.
11554         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
11555         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
11556         gl_REPLACE_FCLOSE here.
11557         * modules/fflush (Depends-on): Remove fclose.
11558         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
11559         combination with module 'fclose'.
11560
11561 2011-05-05  Bruno Haible  <bruno@clisp.org>
11562
11563         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
11564         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
11565         gl_FUNC_FFLUSH.
11566         (gl_FUNC_FFLUSH): Use it.
11567         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
11568         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
11569         gl_REPLACE_FSEEKO here.
11570
11571 2011-05-05  Bruno Haible  <bruno@clisp.org>
11572
11573         tzset: Relicense under LGPL.
11574         * modules/tzset (License): Change to LGPL.
11575         No agreement needed; it's a no-op.
11576
11577         strtoimax, strtoumax: Relicense under LGPL.
11578         * modules/strtoimax (License): Change to LGPL.
11579         * modules/strtoumax (License): Likewise.
11580         With permission from Jim Meyering, Paul Eggert:
11581         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
11582         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
11583
11584         getgroups: Relicense under LGPL.
11585         * modules/getgroups (License): Change to LGPL.
11586         With permission from Jim Meyering, Paul Eggert, Eric Blake:
11587         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
11588         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
11589         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11590
11591         nanosleep: Relicense under LGPL.
11592         * modules/nanosleep (License): Change to LGPL.
11593         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
11594         Haible:
11595         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
11596         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
11597         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11598         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
11599
11600         futimens: Relicense under LGPL.
11601         * modules/futimens (License): Change to LGPL.
11602         With permission from Eric Blake:
11603         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11604
11605         fflush: Relicense under LGPL.
11606         * modules/fflush (License): Change to LGPL.
11607         With permission from Eric Blake, Bruno Haible, Jim Meyering:
11608         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11609         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
11610         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
11611
11612         tmpfile: Relicense under LGPL.
11613         * modules/tmpfile (License): Change to LGPL.
11614         With permission from Ben Pfaff:
11615         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
11616
11617         isfinite: Relicense under LGPL.
11618         * modules/isfinite (License): Change to LGPL.
11619         With permission from Ben Pfaff, Bruno Haible:
11620         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
11621         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
11622
11623         acosl..tanl: Relicense under LGPL.
11624         * modules/acosl (License): Change to LGPL.
11625         * modules/asinl (License): Likewise.
11626         * modules/atanl (License): Likewise.
11627         * modules/cosl (License): Likewise.
11628         * modules/expl (License): Likewise.
11629         * modules/logl (License): Likewise.
11630         * modules/sinl (License): Likewise.
11631         * modules/sqrtl (License): Likewise.
11632         * modules/tanl (License): Likewise.
11633         Source code originally from glibc and Paolo Bonzini. Agreements:
11634         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
11635         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
11636
11637 2011-05-05  Bruno Haible  <bruno@clisp.org>
11638
11639         signal: Define sighandler_t.
11640         * lib/signal.in.h (sighandler_t): New type.
11641         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
11642         whether sighandler_t is defined.
11643         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
11644         * modules/signal (Depends-on): Add extensions.
11645         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
11646         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
11647         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
11648
11649 2011-05-05  Eric Blake  <eblake@redhat.com>
11650
11651         maint: remove useless REPLACE_*_H macros
11652         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
11653         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
11654         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
11655         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
11656         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
11657         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
11658         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
11659         * m4/btowc.m4: Update callers.
11660         * m4/dirfd.m4: Likewise.
11661         * m4/duplocale.m4: Likewise.
11662         * m4/fchdir.m4: Likewise.
11663         * m4/fdopendir.m4: Likewise.
11664         * m4/inet_ntop.m4: Likewise.
11665         * m4/inet_pton.m4: Likewise.
11666         * m4/ioctl.m4: Likewise.
11667         * m4/mbrlen.m4: Likewise.
11668         * m4/mbrtowc.m4: Likewise.
11669         * m4/mbsinit.m4: Likewise.
11670         * m4/mbsnrtowcs.m4: Likewise.
11671         * m4/mbsrtowcs.m4: Likewise.
11672         * m4/poll.m4: Likewise.
11673         * m4/setlocale.m4: Likewise.
11674         * m4/wcrtomb.m4: Likewise.
11675         * m4/wcsnrtombs.m4: Likewise.
11676         * m4/wcsrtombs.m4: Likewise.
11677         * m4/wctob.m4: Likewise.
11678         * m4/wcwidth.m4: Likewise.
11679         * modules/posix_spawn: Likewise.
11680         * modules/posix_spawn_file_actions_addclose: Likewise.
11681         * modules/posix_spawn_file_actions_adddup2: Likewise.
11682         * modules/posix_spawn_file_actions_addopen: Likewise.
11683         * modules/posix_spawn_file_actions_destroy: Likewise.
11684         * modules/posix_spawn_file_actions_init: Likewise.
11685         * modules/posix_spawnattr_destroy: Likewise.
11686         * modules/posix_spawnattr_getflags: Likewise.
11687         * modules/posix_spawnattr_getpgroup: Likewise.
11688         * modules/posix_spawnattr_getschedparam: Likewise.
11689         * modules/posix_spawnattr_getschedpolicy: Likewise.
11690         * modules/posix_spawnattr_getsigdefault: Likewise.
11691         * modules/posix_spawnattr_getsigmask: Likewise.
11692         * modules/posix_spawnattr_init: Likewise.
11693         * modules/posix_spawnattr_setflags: Likewise.
11694         * modules/posix_spawnattr_setpgroup: Likewise.
11695         * modules/posix_spawnattr_setschedparam: Likewise.
11696         * modules/posix_spawnattr_setschedpolicy: Likewise.
11697         * modules/posix_spawnattr_setsigdefault: Likewise.
11698         * modules/posix_spawnattr_setsigmask: Likewise.
11699         * modules/posix_spawnp: Likewise.
11700
11701 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
11702
11703         Add option to do-release-commit-and-tag to specify branch.
11704         * build-aux/do-release-commit-and-tag: Add --branch.
11705
11706 2011-05-03  Bruno Haible  <bruno@clisp.org>
11707
11708         Avoid unnecessary compilation units, through conditional dependencies.
11709         * modules/accept (Depends-on): Add conditions to the dependencies.
11710         * modules/acosl (Depends-on): Likewise.
11711         * modules/argz (Depends-on): Likewise.
11712         * modules/asinl (Depends-on): Likewise.
11713         * modules/atanl (Depends-on): Likewise.
11714         * modules/atoll (Depends-on): Likewise.
11715         * modules/bind (Depends-on): Likewise.
11716         * modules/btowc (Depends-on): Likewise.
11717         * modules/canonicalize-lgpl (Depends-on): Likewise.
11718         * modules/ceil (Depends-on): Likewise.
11719         * modules/ceilf (Depends-on): Likewise.
11720         * modules/ceill (Depends-on): Likewise.
11721         * modules/chdir-long (Depends-on): Likewise.
11722         * modules/chown (Depends-on): Likewise.
11723         * modules/close (Depends-on): Likewise.
11724         * modules/connect (Depends-on): Likewise.
11725         * modules/cosl (Depends-on): Likewise.
11726         * modules/dirfd (Depends-on): Likewise.
11727         * modules/dprintf (Depends-on): Likewise.
11728         * modules/dprintf-posix (Depends-on): Likewise.
11729         * modules/error (Depends-on): Likewise.
11730         * modules/euidaccess (Depends-on): Likewise.
11731         * modules/expl (Depends-on): Likewise.
11732         * modules/faccessat (Depends-on): Likewise.
11733         * modules/fchdir (Depends-on): Likewise.
11734         * modules/fclose (Depends-on): Likewise.
11735         * modules/fcntl (Depends-on): Likewise.
11736         * modules/fdopendir (Depends-on): Likewise.
11737         * modules/fflush (Depends-on): Likewise.
11738         * modules/floor (Depends-on): Likewise.
11739         * modules/floorf (Depends-on): Likewise.
11740         * modules/floorl (Depends-on): Likewise.
11741         * modules/fnmatch (Depends-on): Likewise.
11742         * modules/fopen (Depends-on): Likewise.
11743         * modules/fprintf-posix (Depends-on): Likewise.
11744         * modules/frexp (Depends-on): Likewise.
11745         * modules/frexp-nolibm (Depends-on): Likewise.
11746         * modules/frexpl (Depends-on): Likewise.
11747         * modules/frexpl-nolibm (Depends-on): Likewise.
11748         * modules/fseek (Depends-on): Likewise.
11749         * modules/fsusage (Depends-on): Likewise.
11750         * modules/ftell (Depends-on): Likewise.
11751         * modules/ftello (Depends-on): Likewise.
11752         * modules/futimens (Depends-on): Likewise.
11753         * modules/getcwd (Depends-on): Likewise.
11754         * modules/getcwd-lgpl (Depends-on): Likewise.
11755         * modules/getdelim (Depends-on): Likewise.
11756         * modules/getdomainname (Depends-on): Likewise.
11757         * modules/getgroups (Depends-on): Likewise.
11758         * modules/gethostname (Depends-on): Likewise.
11759         * modules/getline (Depends-on): Likewise.
11760         * modules/getlogin_r (Depends-on): Likewise.
11761         * modules/getopt-posix (Depends-on): Likewise.
11762         * modules/getpeername (Depends-on): Likewise.
11763         * modules/getsockname (Depends-on): Likewise.
11764         * modules/getsockopt (Depends-on): Likewise.
11765         * modules/getsubopt (Depends-on): Likewise.
11766         * modules/getusershell (Depends-on): Likewise.
11767         * modules/glob (Depends-on): Likewise.
11768         * modules/grantpt (Depends-on): Likewise.
11769         * modules/iconv_open (Depends-on): Likewise.
11770         * modules/iconv_open-utf (Depends-on): Likewise.
11771         * modules/inet_ntop (Depends-on): Likewise.
11772         * modules/inet_pton (Depends-on): Likewise.
11773         * modules/ioctl (Depends-on): Likewise.
11774         * modules/isapipe (Depends-on): Likewise.
11775         * modules/isfinite (Depends-on): Likewise.
11776         * modules/isinf (Depends-on): Likewise.
11777         * modules/lchown (Depends-on): Likewise.
11778         * modules/ldexpl (Depends-on): Likewise.
11779         * modules/link (Depends-on): Likewise.
11780         * modules/linkat (Depends-on): Likewise.
11781         * modules/listen (Depends-on): Likewise.
11782         * modules/logl (Depends-on): Likewise.
11783         * modules/lstat (Depends-on): Likewise.
11784         * modules/mbrlen (Depends-on): Likewise.
11785         * modules/mbrtowc (Depends-on): Likewise.
11786         * modules/mbsinit (Depends-on): Likewise.
11787         * modules/mbsnrtowcs (Depends-on): Likewise.
11788         * modules/mbsrtowcs (Depends-on): Likewise.
11789         * modules/mbtowc (Depends-on): Likewise.
11790         * modules/memcmp (Depends-on): Likewise.
11791         * modules/mkdir (Depends-on): Likewise.
11792         * modules/mkdtemp (Depends-on): Likewise.
11793         * modules/mkfifo (Depends-on): Likewise.
11794         * modules/mkfifoat (Depends-on): Likewise.
11795         * modules/mknod (Depends-on): Likewise.
11796         * modules/mkostemp (Depends-on): Likewise.
11797         * modules/mkostemps (Depends-on): Likewise.
11798         * modules/mkstemp (Depends-on): Likewise.
11799         * modules/mkstemps (Depends-on): Likewise.
11800         * modules/mktime (Depends-on): Likewise.
11801         * modules/nanosleep (Depends-on): Likewise.
11802         * modules/open (Depends-on): Likewise.
11803         * modules/openat (Depends-on): Likewise.
11804         * modules/perror (Depends-on): Likewise.
11805         * modules/poll (Depends-on): Likewise.
11806         * modules/popen (Depends-on): Likewise.
11807         * modules/posix_spawn (Depends-on): Likewise.
11808         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
11809         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
11810         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
11811         * modules/posix_spawnp (Depends-on): Likewise.
11812         * modules/pread (Depends-on): Likewise.
11813         * modules/printf-posix (Depends-on): Likewise.
11814         * modules/ptsname (Depends-on): Likewise.
11815         * modules/putenv (Depends-on): Likewise.
11816         * modules/pwrite (Depends-on): Likewise.
11817         * modules/readline (Depends-on): Likewise.
11818         * modules/readlink (Depends-on): Likewise.
11819         * modules/readlinkat (Depends-on): Likewise.
11820         * modules/recv (Depends-on): Likewise.
11821         * modules/recvfrom (Depends-on): Likewise.
11822         * modules/regex (Depends-on): Likewise.
11823         * modules/remove (Depends-on): Likewise.
11824         * modules/rename (Depends-on): Likewise.
11825         * modules/renameat (Depends-on): Likewise.
11826         * modules/rmdir (Depends-on): Likewise.
11827         * modules/round (Depends-on): Likewise.
11828         * modules/roundf (Depends-on): Likewise.
11829         * modules/roundl (Depends-on): Likewise.
11830         * modules/rpmatch (Depends-on): Likewise.
11831         * modules/select (Depends-on): Likewise.
11832         * modules/send (Depends-on): Likewise.
11833         * modules/sendto (Depends-on): Likewise.
11834         * modules/setenv (Depends-on): Likewise.
11835         * modules/setlocale (Depends-on): Likewise.
11836         * modules/setsockopt (Depends-on): Likewise.
11837         * modules/shutdown (Depends-on): Likewise.
11838         * modules/sigaction (Depends-on): Likewise.
11839         * modules/signbit (Depends-on): Likewise.
11840         * modules/sigprocmask (Depends-on): Likewise.
11841         * modules/sinl (Depends-on): Likewise.
11842         * modules/sleep (Depends-on): Likewise.
11843         * modules/snprintf (Depends-on): Likewise.
11844         * modules/snprintf-posix (Depends-on): Likewise.
11845         * modules/socket (Depends-on): Likewise.
11846         * modules/sprintf-posix (Depends-on): Likewise.
11847         * modules/sqrtl (Depends-on): Likewise.
11848         * modules/stat (Depends-on): Likewise.
11849         * modules/strchrnul (Depends-on): Likewise.
11850         * modules/strdup-posix (Depends-on): Likewise.
11851         * modules/strerror (Depends-on): Likewise.
11852         * modules/strerror_r-posix (Depends-on): Likewise.
11853         * modules/strndup (Depends-on): Likewise.
11854         * modules/strnlen (Depends-on): Likewise.
11855         * modules/strptime (Depends-on): Likewise.
11856         * modules/strsep (Depends-on): Likewise.
11857         * modules/strsignal (Depends-on): Likewise.
11858         * modules/strstr-simple (Depends-on): Likewise.
11859         * modules/strtod (Depends-on): Likewise.
11860         * modules/strtoimax (Depends-on): Likewise.
11861         * modules/strtok_r (Depends-on): Likewise.
11862         * modules/strtoumax (Depends-on): Likewise.
11863         * modules/symlink (Depends-on): Likewise.
11864         * modules/symlinkat (Depends-on): Likewise.
11865         * modules/tanl (Depends-on): Likewise.
11866         * modules/tcgetsid (Depends-on): Likewise.
11867         * modules/tmpfile (Depends-on): Likewise.
11868         * modules/trunc (Depends-on): Likewise.
11869         * modules/truncf (Depends-on): Likewise.
11870         * modules/truncl (Depends-on): Likewise.
11871         * modules/uname (Depends-on): Likewise.
11872         * modules/unlink (Depends-on): Likewise.
11873         * modules/unlockpt (Depends-on): Likewise.
11874         * modules/unsetenv (Depends-on): Likewise.
11875         * modules/usleep (Depends-on): Likewise.
11876         * modules/utimensat (Depends-on): Likewise.
11877         * modules/vasprintf (Depends-on): Likewise.
11878         * modules/vdprintf (Depends-on): Likewise.
11879         * modules/vdprintf-posix (Depends-on): Likewise.
11880         * modules/vfprintf-posix (Depends-on): Likewise.
11881         * modules/vprintf-posix (Depends-on): Likewise.
11882         * modules/vsnprintf (Depends-on): Likewise.
11883         * modules/vsnprintf-posix (Depends-on): Likewise.
11884         * modules/vsprintf-posix (Depends-on): Likewise.
11885         * modules/wcrtomb (Depends-on): Likewise.
11886         * modules/wcscasecmp (Depends-on): Likewise.
11887         * modules/wcscspn (Depends-on): Likewise.
11888         * modules/wcsdup (Depends-on): Likewise.
11889         * modules/wcsncasecmp (Depends-on): Likewise.
11890         * modules/wcsnrtombs (Depends-on): Likewise.
11891         * modules/wcspbrk (Depends-on): Likewise.
11892         * modules/wcsrtombs (Depends-on): Likewise.
11893         * modules/wcsspn (Depends-on): Likewise.
11894         * modules/wcsstr (Depends-on): Likewise.
11895         * modules/wcstok (Depends-on): Likewise.
11896         * modules/wcswidth (Depends-on): Likewise.
11897         * modules/wctob (Depends-on): Likewise.
11898         * modules/wctomb (Depends-on): Likewise.
11899         * modules/wctype (Depends-on): Likewise.
11900         * modules/wcwidth (Depends-on): Likewise.
11901         * modules/write (Depends-on): Likewise.
11902
11903 2011-05-03  Bruno Haible  <bruno@clisp.org>
11904
11905         Support for conditional dependencies.
11906         * doc/gnulib.texi (Module description): Document the syntax of
11907         conditional dependencies.
11908         * gnulib-tool: New option --conditional-dependencies.
11909         (func_usage): Document it.
11910         (cond_dependencies): New variable.
11911         (func_get_automake_snippet_conditional,
11912         func_get_automake_snippet_unconditional): New functions, extracted from
11913         func_get_automake_snippet.
11914         (func_get_automake_snippet): Use them.
11915         (sed_first_32_chars): New variable.
11916         (func_module_shellfunc_name): New function.
11917         (func_module_shellvar_name): New function.
11918         (func_module_conditional_name): New function.
11919         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
11920         func_cond_module_condition): New functions.
11921         (func_modules_transitive_closure): Add support for conditional
11922         dependencies.
11923         (func_emit_lib_Makefile_am): For a conditional module, enclose the
11924         conditional automake snippet in an automake conditional.
11925         (func_emit_autoconf_snippets): Emit shell functions that contain the
11926         code for conditional modules.
11927         (func_import, func_create_testdir): Update specification.
11928
11929 2011-05-03  Eric Blake  <eblake@redhat.com>
11930
11931         test-getaddrinfo: report error information
11932         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
11933
11934 2011-05-03  Jim Meyering  <meyering@redhat.com>
11935
11936         bootstrap: avoid build failure when $GZIP is set
11937         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
11938         program name.  If defined at all, it is supposed to list gzip options.
11939         Reported by Alan Curry in http://debbugs.gnu.org/8609
11940
11941 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
11942
11943         readme-release: new module with release instructions
11944         * modules/readme-release: New module.
11945         * top/README-release: New file, from coreutils, grep, diffutils.
11946         * MODULES.html.sh (Support for maintaining and releasing): Add it.
11947
11948 2011-05-02  Eric Blake  <eblake@redhat.com>
11949
11950         fflush: also replace fclose when fixing fflush
11951         * modules/fflush (Depends-on): Add fclose.
11952         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
11953         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
11954         memstreams with no backing fd.
11955         * doc/posix-functions/fclose.texi (fclose): Document the use of
11956         fflush module to fix the bug.
11957         * tests/test-fclose.c (main): Relax test when fclose is used in
11958         isolation.
11959
11960         fclose: add some tests
11961         * modules/fclose-tests: New test module.
11962         * tests/test-fclose.c: New file.
11963         * doc/posix-functions/fclose.texi (fclose): Document the bug.
11964
11965         fclose: reduced dependencies
11966         * modules/fclose (Depends-on): Switch from fflush/fseeko to
11967         simpler lseek.
11968         * lib/fclose.c (rpl_fclose): Likewise.
11969         Reported by Simon Josefsson.
11970
11971         exit: drop remaining clients
11972         * modules/argmatch (Depends-on): Replace exit with stdlib.
11973         * modules/copy-file (Depends-on): Likewise.
11974         * modules/execute (Depends-on): Likewise.
11975         * modules/exitfail (Depends-on): Likewise.
11976         * modules/obstack (Depends-on): Likewise.
11977         * modules/pagealign_alloc (Depends-on): Likewise.
11978         * modules/pipe-filter-gi (Depends-on): Likewise.
11979         * modules/pipe-filter-ii (Depends-on): Likewise.
11980         * modules/savewd (Depends-on): Likewise.
11981         * modules/spawn-pipe (Depends-on): Likewise.
11982         * modules/wait-process (Depends-on): Likewise.
11983         * modules/xsetenv (Depends-on): Likewise.
11984         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
11985         * modules/git-merge-changelog (Depends-on): Likewise.
11986         * modules/long-options (Depends-on): Likewise.
11987         * modules/pt_chown (Depends-on): Likewise.
11988         * modules/sysexits (Depends-on): Likewise.
11989
11990         freading: relax license from LGPLv3+ to LGPLv2+
11991         * modules/freading (License): Relax LGPL version.
11992
11993 2011-05-02  Bruno Haible  <bruno@clisp.org>
11994
11995         fchdir: Remove unused dependencies.
11996         * modules/fchdir (Depends-on): Remove include_next.
11997
11998 2011-05-02  Bruno Haible  <bruno@clisp.org>
11999
12000         gnulib-tool: Refactor.
12001         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
12002         from func_emit_autoconf_snippets.
12003         (func_emit_autoconf_snippets): Use it.
12004
12005 2011-05-02  Simon Josefsson  <simon@josefsson.org>
12006
12007         * NEWS: Document removal of 'exit'.
12008         * modules/exit: Remove file.
12009
12010 2011-05-01  Bruno Haible  <bruno@clisp.org>
12011
12012         Update DEPENDENCIES.
12013         * DEPENDENCIES (gettext): Recommend the newest release.
12014         Reported by Simon Josefsson.
12015
12016 2011-05-01  Bruno Haible  <bruno@clisp.org>
12017
12018         gnulib-tool: Reduce code duplication.
12019         * gnulib-tool (func_emit_autoconf_snippets): New function.
12020         (func_import, func_create_testdir): Use it.
12021
12022 2011-04-30  Eric Blake  <eblake@redhat.com>
12023
12024         fclose: don't fail on non-seekable input stream
12025         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
12026         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
12027         since fflush is allowed to fail in that case.
12028
12029 2011-04-30  Bruno Haible  <bruno@clisp.org>
12030
12031         dup3: cleanup
12032         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
12033
12034 2011-04-30  Bruno Haible  <bruno@clisp.org>
12035
12036         netdb: Make it work in C++ mode.
12037         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
12038         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
12039         module.
12040         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
12041         gl_MODULE_INDICATOR_FOR_TESTS.
12042         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
12043         * modules/netdb-c++-tests: New file.
12044         * tests/test-netdb-c++.cc: New file.
12045
12046 2011-04-30  Bruno Haible  <bruno@clisp.org>
12047
12048         New modules 'vfscanf', 'vscanf'.
12049         * modules/vfscanf: New file.
12050         * modules/vscanf: New file.
12051         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
12052         here.
12053         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
12054         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
12055
12056 2011-04-30  Bruno Haible  <bruno@clisp.org>
12057
12058         passfd: Add comments.
12059         * lib/passfd.c: Add comments about platforms.
12060
12061 2011-04-30  Bruno Haible  <bruno@clisp.org>
12062
12063         sys_uio: Make <sys/uio.h> self-contained.
12064         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
12065         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
12066
12067 2011-04-30  Bruno Haible  <bruno@clisp.org>
12068
12069         sys_socket: Ensure 'struct iovec' definition.
12070         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
12071         <sys/socket.h>.
12072         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
12073
12074 2011-04-30  Bruno Haible  <bruno@clisp.org>
12075
12076         sys_uio: Protect definition of 'struct iovec'.
12077         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
12078         it as a C struct.
12079
12080 2011-04-30  Bruno Haible  <bruno@clisp.org>
12081
12082         manywarnings: fix indentation
12083         * m4/manywarnings.m4: Indent by 2 spaces consistently.
12084
12085 2011-04-30  Pádraig Brady <P@draigBrady.com>
12086
12087         manywarnings: add -Wno-missing-field-initializers if needed.
12088         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
12089         option if it's needed to allow initialization with { 0, }
12090
12091 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
12092
12093         announce-gen: cosmetic improvement
12094         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
12095
12096 2011-04-29  Jim Meyering  <meyering@redhat.com>
12097
12098         vc-list-files: indent with spaces, not TABs
12099         * build-aux/vc-list-files: Convert leading TABs to spaces,
12100         to match the style of most other files in gnulib.
12101
12102         announce-gen: indent with spaces, not TABs
12103         * build-aux/announce-gen: Convert all TABs to spaces, to match
12104         the style of most other files in gnulib.
12105
12106 2011-04-29  Eric Blake  <eblake@redhat.com>
12107
12108         quotearg: avoid uninitialized variable use
12109         * lib/quotearg.c (quoting_options_from_style): Initialize
12110         remaining fields, and ensure that custom styles are only used via
12111         quoting_options rather than quoting_style.
12112
12113 2011-04-29  Jim Meyering  <meyering@redhat.com>
12114
12115         maint.mk: remove unused VC-tag variable
12116         * top/maint.mk (VC-tag): Remove unused variable.
12117
12118 2011-04-29  Bruno Haible  <bruno@clisp.org>
12119
12120         netdb: fix gai_strerror replacements
12121         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
12122         * modules/netdb: Substitute it.
12123
12124 2011-04-29  Jim Meyering  <meyering@redhat.com>
12125
12126         test-getcwd.c: avoid new set-but-not-used warning
12127         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
12128         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
12129         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
12130         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
12131
12132         test-hash.c: avoid a new shadowing warning
12133         * tests/test-hash.c (main): Don't shadow "dup".
12134
12135 2011-04-28  Eric Blake  <eblake@redhat.com>
12136
12137         getaddrinfo: fix gai_strerror signature
12138         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
12139         and work around mingw with UNICODE defined.
12140         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
12141         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
12142         * modules/netdb (Makefile.am): Substitute it.
12143         * lib/netdb.in.h (gai_strerror): Declare replacement.
12144         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
12145         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
12146         the fix.
12147
12148         getsockopt: avoid compiler warning
12149         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
12150         Reported by Matthias Bolte.
12151
12152         tests: drop unused link dependency
12153         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
12154         * modules/dirent-safer-tests (Makefile.am): Likewise.
12155         * modules/fdopendir-tests (Makefile.am): Likewise.
12156         * modules/mkfifoat-tests (Makefile.am): Likewise.
12157         * modules/openat-safer-tests (Makefile.am): Likewise.
12158         * modules/openat-tests (Makefile.am): Likewise.
12159         * modules/readlinkat-tests (Makefile.am): Likewise.
12160         * modules/symlinkat-tests (Makefile.am): Likewise.
12161         * modules/linkat-tests (Makefile.am): Likewise.
12162         (Depends-on): Switch to filenamecat-lgpl.
12163         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
12164         LIBINTL.
12165         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
12166         * tests/test-linkat.c (main): Don't require xalloc.
12167
12168         hash, mgetgroups: drop xalloc dependency
12169         * lib/hash.c (includes): Adjust includes.
12170         * lib/mgetgroups.c (includes): Likewise.
12171         (xgetgroups): Move...
12172         * lib/xgetgroups.c: ...to new file.
12173         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
12174         * modules/xgetgroups: New file, split from...
12175         * modules/mgetgroups: ...here.
12176         (Depends-on): Add xalloc-oversized.
12177         * modules/hash (Depends-on): Likewise.
12178         * modules/hash-tests (Depends-on): Drop xalloc.
12179         (test_hash_LDADD): Drop unused library.
12180         * tests/test-hash.c (main): Break xalloc dependency.
12181         (includes): Drop unused include.
12182
12183         xalloc-oversized: new module
12184         * modules/xalloc-oversized: New module.
12185         * modules/xalloc (Depends-on): Add it.
12186         * lib/xalloc.h (xalloc_oversized): Move...
12187         * lib/xalloc-oversized.h: ...into new file.
12188
12189         utimecmp: drop dependency on xmalloc
12190         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
12191         due to memory pressure.
12192         * modules/utimecmp (Depends-on): Drop xalloc.
12193
12194 2011-04-27  Eric Blake  <eblake@redhat.com>
12195
12196         getcwd: fix mingw bugs
12197         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
12198         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
12199         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
12200
12201 2011-04-27  Bruno Haible  <bruno@clisp.org>
12202
12203         mkstemps: Ensure declaration on MacOS X 10.5.
12204         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
12205         * doc/glibc-functions/mkstemps.texi: Document header file problem on
12206         MacOS X.
12207
12208 2011-04-27  Bruno Haible  <bruno@clisp.org>
12209
12210         mkstemp: More documentation.
12211         * doc/posix-functions/mkstemp.texi: Document header file problem on
12212         MacOS X.
12213
12214 2011-04-27  Bruno Haible  <bruno@clisp.org>
12215
12216         mkstemp: Tweak configure message when cross-compiling.
12217         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
12218         result as a guess.
12219
12220 2011-04-27  Bruno Haible  <bruno@clisp.org>
12221
12222         clean-temp: Clarify what it does.
12223         * lib/clean-temp.h: Add more comments.
12224         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
12225         module.
12226         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
12227         * doc/glibc-functions/mkstemps.texi: Likewise.
12228         * doc/glibc-functions/mkostemps.texi: Likewise.
12229
12230 2011-04-27  Eric Blake  <eblake@redhat.com>
12231
12232         fchdir: avoid extra chdir and fix test
12233         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
12234         getcwd-lgpl.
12235         * lib/fchdir.c (get_name): Any absolute name will do; it does not
12236         have to be canonical.
12237         (canonicalize_file_name): Drop unused macro.
12238         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
12239
12240         filenamecat-lgpl: fix licence
12241         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
12242         when it was first created.
12243
12244         linkat, renameat: add missing dependency
12245         * modules/linkat (Depends-on): Require getcwd-lgpl.
12246         * modules/renameat (Depends-on): Likewise.
12247
12248         tests: reduce dependencies
12249         * tests/test-linkat.c (main): Use lighter-weight getcwd.
12250         * tests/test-renameat.c (main): Likewise.
12251         * modules/linkat-tests (Depends-on): Relax dependency.
12252         * modules/renameat-tests (Depends-on): Likewise.
12253         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
12254         dependency explicit.
12255
12256         save-cwd: reduce default dependency
12257         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
12258         * lib/save-cwd.c: Update comments.
12259         * NEWS: Document the semantic change.
12260
12261         getcwd: enhance tests
12262         * tests/test-getcwd-lgpl.c: New file, taken from...
12263         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
12264         repeat long path stress tests from m4 probe.
12265         * modules/getcwd-lgpl-tests: New module.
12266         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
12267         * m4/getcwd-abort-bug.m4: Update comment.
12268         * m4/getcwd-path-max.m4: Likewise.
12269
12270         getcwd-lgpl: new module
12271         * modules/getcwd-lgpl: New module.
12272         * lib/getcwd-lgpl.c: New file.
12273         * doc/posix-functions/getcwd.texi (getcwd): Document it.
12274         * MODULES.html.sh (lacking POSIX:2008): Likewise.
12275         * modules/getcwd (configure.ac): Set C witness.
12276         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
12277
12278         getcwd: tweak comments
12279         * m4/getcwd-abort-bug.m4: Fix comments.
12280         * m4/getcwd-path-max.m4: Likewise.
12281         * m4/getcwd.m4: Likewise.
12282
12283 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
12284         and Eric Blake  <eblake@redhat.com>
12285
12286         mkstemp: replace if system version uses wrong permissions
12287         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
12288         read/write mode bits set in file created by mkstemp.
12289         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
12290
12291 2011-04-27  Eric Blake  <eblake@redhat.com>
12292
12293         passfd: avoid compiler warning
12294         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
12295         Reported by Laine Stump.
12296
12297 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
12298
12299         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
12300         required by the NetBSD (and perhaps other 4.4BSD derived) join.
12301
12302 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
12303         and Eric Blake  <eblake@redhat.com>
12304
12305         mkstemp: mention clean-temp module
12306         * lib/mkstemp.c: Add comment.
12307         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
12308
12309 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
12310
12311         inttypes: also provide default values for 32-bit tests
12312         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
12313         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
12314
12315 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
12316
12317         strtoumax: remove dependency on strtoimax
12318         This is like the strtoull change of yesterday.
12319         * modules/strtoumax (Files): Add lib/strtoimax.c.
12320         (Depends-on): Remove strtoimax and add verify.
12321
12322         inttypes-incomplete: new module
12323         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
12324         all but the PRI* and SCN* parts of gl_INTTYPES_H.
12325         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
12326         of gl_INTTYPES_H.
12327         (gl_INTTYPES_H): Rewrite in terms of these new macros.
12328         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
12329         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
12330         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
12331         * modules/strtoumax, modules/xstrtol (Depends-on):
12332         Depend on inttypes-incomplete, not inttypes.
12333         * modules/inttypes-incomplete: New module, containing the contents
12334         of the old modules/inttypes module, except that the Files: section
12335         omits m4/inttypes-pri.m4, and the configure.ac section invokes
12336         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
12337         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
12338         (Depends-on): Depend only on inttypes-incomplete.
12339         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
12340
12341         inttypes: omit now-redundant strtoimax and strtoumax work
12342         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
12343         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
12344
12345         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
12346         This supports apps that need pointers to strtoimax and strtoumax,
12347         and ports to HP-UX 11.00 64.bit, which has macros that expand to
12348         nonexistent functions.  See
12349         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
12350         et seq.
12351         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
12352         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
12353         a macro.
12354         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
12355
12356 2011-04-25  Simon Josefsson  <simon@josefsson.org>
12357
12358         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
12359
12360 2011-04-25  Bruno Haible  <bruno@clisp.org>
12361
12362         strtol, strtoul: Mark modules as obsolete.
12363         * modules/strtol (Status, Notice): New sections.
12364         * modules/strtoul (Status, Notice): New sections.
12365
12366 2011-04-25  Bruno Haible  <bruno@clisp.org>
12367
12368         strtod: Remove check for strtod, unless supporting old platforms.
12369         * modules/strtod-obsolete: New file.
12370         * m4/strtod-obsolete.m4: New file.
12371         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
12372         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
12373         * modules/strtod (Depends-on): Add strtod-obsolete.
12374         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
12375
12376 2011-04-25  Bruno Haible  <bruno@clisp.org>
12377
12378         strcase: Make module obsolete.
12379         * modules/strcase (Status, Notice): New sections.
12380
12381 2011-04-25  Bruno Haible  <bruno@clisp.org>
12382
12383         dup2: Remove check for dup2, unless supporting old obsolete platforms.
12384         * modules/dup2-obsolete: New file.
12385         * m4/dup2-obsolete.m4: New file.
12386         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
12387         gl_FUNC_DUP2_OBSOLETE is not also defined.
12388         * modules/dup2 (Depends-on): Add dup2-obsolete.
12389         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
12390
12391 2011-04-25  Bruno Haible  <bruno@clisp.org>
12392
12393         strnlen: Avoid memchr related link error on old obsolete platforms.
12394         * modules/memchr-obsolete: New file.
12395         * m4/memchr-obsolete.m4: New file.
12396         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
12397         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
12398         * modules/memchr (Depends-on): Add memchr-obsolete.
12399         * modules/strnlen (Depends-on): Likewise.
12400         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
12401
12402 2011-04-25  Jim Meyering  <meyering@redhat.com>
12403
12404         maint.mk: makefile_at_at_check extend and clean up
12405         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
12406         in addition to */Makefile.am.
12407         Exempt legitimate uses of @VAR@ notation, e.g.,
12408         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
12409         Remove obsolete coreutils-specific comment.
12410         Prompted by discussion here:
12411         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
12412
12413 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
12414
12415         strtoul: remove dependency on strtol
12416         This is so that 'configure' need not check for strtol merely because
12417         the application needs strtoul.
12418         * modules/strtoul (Files): Add lib/strtol.c.
12419         (Depends-on): Remove strtol.
12420
12421         strtoull: remove dependency on strtoul
12422         This is like the strtoll change.
12423         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
12424         (Depends-on): Remove strtoul.
12425
12426         strtoll: remove dependency on strtol
12427         This is so that 'configure' need not check for strtol merely because
12428         the application needs strtoll.
12429         * modules/strtoll (Files): Add lib/strtol.c.
12430         (Depends-on): Remove strtol.
12431
12432 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12433
12434         inttypes: Move some configure check to module 'imaxdiv'.
12435         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
12436         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
12437         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
12438
12439 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12440
12441         inttypes: Move some configure check to module 'imaxabs'.
12442         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
12443         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
12444         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
12445
12446 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12447
12448         inttypes: Remove configure tests that are not needed since 2009-12-31.
12449         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
12450         gl_cv_header_working_inttypes_h.
12451
12452 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12453
12454         * modules/strnlen (Depends-on): Remove memchr.
12455         The strnlen implementation doesn't need the memchr module's fixes; see
12456         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
12457
12458         strtol: remove dependency on wchar
12459         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
12460         * modules/strtol (Depends-on): Remove wchar.
12461
12462 2011-04-21  Eric Blake  <eblake@redhat.com>
12463
12464         passfd: fix test regression on Linux
12465         * modules/passfd-tests (configure.ac): Correct socketpair check.
12466
12467         passfd: speed up configure and drop unused code
12468         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
12469         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
12470         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
12471         Instead of probing at configure for unix_scm_rights_bsd44_way,
12472         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
12473         check to a struct member probe.
12474         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
12475         (sendfd, recvfd): Update preprocessor checks.
12476         * modules/passfd (Files): Reflect rename, and drop unused file.
12477         (Depends-on): Drop unused dependency.
12478
12479         passfd: allow compilation on mingw
12480         * modules/sys_socket (Depends-on): Add sys_uio.
12481         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
12482         iovec and a minimal struct msghdr.
12483         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
12484         * tests/test-sys_socket.c (main): Enhance test.
12485         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
12486         guaranteed to provide what we need.
12487         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
12488         * modules/passfd-tests (Depends-on): Add sys_wait.
12489         * tests/test-passfd.c (main): Skip test on mingw, for now.
12490         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
12491         partial 'struct msghdr' implementation.
12492
12493         sys_uio: new module
12494         * modules/sys_uio: New module.
12495         * modules/sys_uio-tests: Likewise.
12496         * lib/sys_uio.in.h: New file.
12497         * m4/sys_uio_h.m4: Likewise.
12498         * tests/test-sys_uio.c: Likewise.
12499         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
12500         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
12501
12502 2011-04-20  Jim Meyering  <meyering@redhat.com>
12503
12504         useless-if-before-free: avoid false-positive
12505         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
12506         disjunct so that it too requires a terminating ";".  Without that,
12507         this script would identify as useless one statement from gcc that
12508         was not:
12509           if (aligned_ptr)
12510             free (((void **) aligned_ptr) [-1]);
12511
12512 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
12513
12514         doc: update users.txt.
12515         * users.txt: Add barcode.
12516
12517 2011-04-19  Bruno Haible  <bruno@clisp.org>
12518
12519         ioctl: Remove link dependency on native Windows.
12520         * lib/fd-hook.h: Renamed from lib/close-hook.h.
12521         (gl_close_fn, gl_ioctl_fn): New types.
12522         (struct fd_hook): Renamed from struct close_hook. Change type of
12523         private_close_fn field. Add private_ioctl_fn field.
12524         (close_hook_fn): Add parameter for primary close method.
12525         (execute_close_hooks, execute_all_close_hooks): Likewise.
12526         (ioctl_hook_fn): New type.
12527         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
12528         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
12529         argument.
12530         (unregister_fd_hook): Renamed from unregister_close_hook.
12531         * lib/fd-hook.c: Renamed from lib/close-hook.c.
12532         Don't include <unistd.h>.
12533         (close): Remove undef.
12534         (anchor): Update.
12535         (execute_close_hooks): Add argument for primary close method.
12536         (execute_all_close_hooks): Likewise.
12537         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
12538         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
12539         argument. Allow each argument to be NULL.
12540         (unregister_fd_hook): Renamed from unregister_close_hook.
12541         * lib/close.c (rpl_close): Pass 'close' function pointer to
12542         execute_all_close_hooks.
12543         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
12544         (primary_ioctl): New function.
12545         (ioctl): Don't call ioctlsocket here. Instead, call
12546         execute_all_ioctl_hooks.
12547         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
12548         close method.
12549         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
12550         (fd_sockets_hook): Renamed from close_sockets_hook.
12551         (gl_sockets_startup, gl_sockets_cleanup): Update.
12552         * modules/fd-hook: Renamed from modules/close-hook. Update.
12553         * modules/close (Depends-on): Add fd-hook, remove close-hook.
12554         * modules/sockets (Depends-on): Likewise.
12555         * modules/ioctl (Depends-on): Add fd-hook.
12556         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
12557         GNULIB_SOCKET.
12558
12559 2011-04-19  Bruno Haible  <bruno@clisp.org>
12560
12561         Move the support of O_NONBLOCK in open() to the 'open' module.
12562         * modules/nonblocking (Depends-on): Remove 'open'.
12563         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
12564         gl_cv_have_open_O_NONBLOCK.
12565         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
12566         O_NONBLOCK support.
12567         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
12568
12569 2011-04-17  Bruno Haible  <bruno@clisp.org>
12570
12571         pipe2: Simplify code.
12572         * lib/pipe2.c (pipe2): Reduce code duplication.
12573
12574 2011-04-17  Bruno Haible  <bruno@clisp.org>
12575
12576         nonblocking: Add comment.
12577         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
12578
12579 2011-04-17  Bruno Haible  <bruno@clisp.org>
12580
12581         nonblocking: Add tests for sockets.
12582         * tests/test-nonblocking-socket.sh: New file.
12583         * tests/test-nonblocking-socket-main.c: New file.
12584         * tests/test-nonblocking-socket-child.c: New file.
12585         * tests/test-nonblocking-socket.h: New file.
12586         * tests/socket-server.h: New file.
12587         * tests/socket-client.h: New file.
12588         * modules/nonblocking-socket-tests: New file.
12589         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
12590
12591 2011-04-17  Bruno Haible  <bruno@clisp.org>
12592
12593         nonblocking: Add tests for pipes.
12594         * tests/test-nonblocking-pipe.sh: New file.
12595         * tests/test-nonblocking-pipe-main.c: New file.
12596         * tests/test-nonblocking-pipe-child.c: New file.
12597         * tests/test-nonblocking-pipe.h: New file.
12598         * tests/test-nonblocking-writer.h: New file.
12599         * tests/test-nonblocking-reader.h: New file.
12600         * tests/test-nonblocking-misc.h: New file.
12601         * modules/nonblocking-pipe-tests: New file.
12602         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
12603
12604 2011-04-16  Bruno Haible  <bruno@clisp.org>
12605
12606         gettext: Clarify the needed programmer actions.
12607         * modules/gettext (Notice): New field.
12608         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
12609
12610 2011-04-16  Bruno Haible  <bruno@clisp.org>
12611
12612         strchrnul: Tweak last commit.
12613         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
12614         bug.
12615         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
12616         as in _GL_FUNCDECL_SYS.
12617         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
12618         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
12619
12620 2011-04-15  Eric Blake  <eblake@redhat.com>
12621
12622         strchrnul: work around cygwin bug
12623         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
12624         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
12625         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
12626         * modules/string (Makefile.am): Substitute it.
12627         * lib/string.in.h (strchrnul): Use it.
12628
12629 2011-04-15  Bruno Haible  <bruno@clisp.org>
12630
12631         Don't require lib/stdio-write.c when only module 'stdio' is used.
12632         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
12633         invocation.
12634         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
12635
12636 2011-04-14  Bruno Haible  <bruno@clisp.org>
12637
12638         Support non-blocking pipe I/O in read() on native Windows.
12639         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
12640         (read): New declaration.
12641         * lib/read.c: New file.
12642         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
12643         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
12644         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
12645         vscanf): New declarations.
12646         * lib/stdio-read.c: New file.
12647         * m4/read.m4: New file.
12648         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
12649         REPLACE_READ.
12650         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
12651         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12652         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
12653         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
12654         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
12655         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12656         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
12657         * modules/read: New file.
12658         * modules/nonblocking (Files): Add lib/stdio-read.c.
12659         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
12660         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
12661         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12662         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
12663         * modules/pread (Depends-on): Add read.
12664         * modules/safe-read (Depends-on): Likewise.
12665         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
12666         gets, scanf, vfscanf, vscanf): Verify signatures.
12667         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
12668         problem with non-blocking pipes.
12669         * doc/posix-functions/fgetc.texi: Likewise.
12670         * doc/posix-functions/fgets.texi: Likewise.
12671         * doc/posix-functions/fread.texi: Likewise.
12672         * doc/posix-functions/fscanf.texi: Likewise.
12673         * doc/posix-functions/getc.texi: Likewise.
12674         * doc/posix-functions/getchar.texi: Likewise.
12675         * doc/posix-functions/gets.texi: Likewise.
12676         * doc/posix-functions/scanf.texi: Likewise.
12677         * doc/posix-functions/vfscanf.texi: Likewise.
12678         * doc/posix-functions/vscanf.texi: Likewise.
12679
12680 2011-04-14  Bruno Haible  <bruno@clisp.org>
12681
12682         Support non-blocking pipe I/O in write() on native Windows.
12683         * lib/write.c (rpl_write): Split a write request that failed merely
12684         because the byte count was larger than the pipe buffer's size.
12685         * doc/posix-functions/write.texi: Mention the problem with large byte
12686         counts.
12687
12688 2011-04-14  Bruno Haible  <bruno@clisp.org>
12689
12690         wchar: Ensure that wchar_t gets defined on uClibc.
12691         * lib/wchar.in.h: On uClibc, include <stddef.h>.
12692         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
12693
12694 2011-04-13  Bruno Haible  <bruno@clisp.org>
12695
12696         safe-write, full-read: Avoid unnecessary compilation units.
12697         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
12698         (Depends-on): Remove safe-read. Add ssize_t.
12699         * modules/full-read (Files): Add lib/full-write.c.
12700         (Depends-on): Add full-write.
12701
12702 2011-04-13  Bruno Haible  <bruno@clisp.org>
12703
12704         Support non-blocking pipe I/O and SIGPIPE in pwrite().
12705         * modules/pwrite (Depends-on): Add 'write'.
12706
12707 2011-04-13  Bruno Haible  <bruno@clisp.org>
12708
12709         Support non-blocking pipe I/O in write() on native Windows.
12710         * lib/unistd.in.h (write): Enable replacement also if
12711         GNULIB_UNISTD_H_NONBLOCKING is 1.
12712         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
12713         (rpl_write): When failing to write on a non-blocking pipe, change
12714         errno from ENOSPC to EAGAIN.
12715         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
12716         putchar, puts, vfprintf, vprintf): Enable replacement also if
12717         GNULIB_STDIO_H_NONBLOCKING is 1.
12718         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
12719         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
12720         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
12721         CALL_WITH_SIGPIPE_EMULATION.
12722         (CALL_WITH_SIGPIPE_EMULATION): Use them.
12723         * m4/nonblocking.m4: New file.
12724         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
12725         for non-blocking I/O support.
12726         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12727         GNULIB_UNISTD_H_NONBLOCKING.
12728         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
12729         required for non-blocking I/O support.
12730         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
12731         * modules/nonblocking (Files): Add m4/nonblocking.m4,
12732         lib/stdio-write.c, m4/asm-underscore.m4.
12733         (Depends-on): Add stdio, unistd.
12734         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
12735         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
12736         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
12737         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
12738         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
12739         problem with non-blocking pipes.
12740         * doc/posix-functions/fputc.texi: Likewise.
12741         * doc/posix-functions/fputs.texi: Likewise.
12742         * doc/posix-functions/fwrite.texi: Likewise.
12743         * doc/posix-functions/printf.texi: Likewise.
12744         * doc/posix-functions/putc.texi: Likewise.
12745         * doc/posix-functions/putchar.texi: Likewise.
12746         * doc/posix-functions/puts.texi: Likewise.
12747         * doc/posix-functions/vfprintf.texi: Likewise.
12748         * doc/posix-functions/vprintf.texi: Likewise.
12749         * doc/posix-functions/write.texi: Likewise.
12750
12751 2011-04-10  Jim Meyering  <meyering@redhat.com>
12752
12753         maint.mk: prohibit doubled words
12754         Detect them also when they're separated by a newline.
12755         There are 3 ways to customize it:
12756           - disable the test on a per file basis, as usual with rules using
12757             $(VC_LIST_EXCEPT)
12758           - replace the default doubled-word-selecting regexp (affects all files)
12759           - ignore a particular file-vs-doubled-word match
12760         I nearly used that last one to ignore the "is is" match in
12761         coreutils' NEWS file, since the text was "ls -is is ..."
12762         To do that, I would have added this line to cfg.mk:
12763           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
12764         but it would have ignored any "is is" match in NEWS.
12765         Low probability, but still...
12766         Instead, I changed the text, slightly:
12767           -  ls -is is now consistent with ls -lis in ignoring values returned
12768           +  "ls -is" is now consistent with ls -lis in ignoring values returned
12769         * top/maint.mk (prohibit_double_word_RE_): Provide default.
12770         (prohibit_doubled_word_): Define.
12771         (sc_prohibit_doubled_word): New rule.
12772         (sc_prohibit_the_the): Remove.  Subsumed by the above.
12773
12774 2011-04-10  Jim Meyering  <meyering@redhat.com>
12775
12776         maint: fix doubled-word typo in comment
12777         * m4/gethostname.m4: s/is is/it is/
12778         * m4/getdomainname.m4: Likewise.
12779
12780 2011-04-10  Jim Meyering  <meyering@redhat.com>
12781
12782         maint: remove doubled word: s/it it/it/
12783         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
12784
12785 2011-04-10  Jim Meyering  <meyering@redhat.com>
12786
12787         maint.mk: remove useless semicolon and backslash
12788         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
12789         semicolon and backslash.
12790
12791 2011-04-10  Bruno Haible  <bruno@clisp.org>
12792
12793         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
12794         * modules/stdint-tests (Depends-on): Add wchar.
12795
12796 2011-04-10  Jim Meyering  <meyering@redhat.com>
12797
12798         maint: remove doubled words in comments, e.g., s/a a/a/
12799         * lib/strptime.c (day_of_the_week): s/the the/the/
12800         * tests/test-chown.h (test_chown): s/a a/a/
12801
12802         test-chown.h: correct a cast
12803         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
12804         when the destination is a stat.st_gid.
12805
12806 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
12807
12808         getaddrinfo: Fix test for sa_len member.
12809         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
12810         include <sys/types.h> before <sys/socket.h>.
12811
12812 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
12813
12814         maint: change "can not" to "cannot"
12815         * doc/posix-functions/iconv.texi (iconv): This one crossed line
12816         boundaries.
12817
12818 2011-04-09  Jim Meyering  <meyering@redhat.com>
12819
12820         maint: change "a a" to "a"
12821         * tests/test-lchown.h (test_lchown): s/a a/a/
12822
12823         maint.mk: prohibit \<the the\>
12824         * top/maint.mk (sc_prohibit_the_the): New rule.
12825
12826         maint: fix "the the" in comment
12827         * lib/count-one-bits.h: s/the the/the/
12828
12829         maint: change "can not" to "cannot"
12830         But do not change the occurrences in maintain.texi or in
12831         build-aux/po/Makefile.in.in, which I presume comes from gettext.
12832         * doc/gnulib-tool.texi: s/can not/cannot/
12833         * doc/posix-functions/accept.texi (accept): Likewise.
12834         * doc/posix-functions/socket.texi (socket): Likewise.
12835         * lib/mbrtowc.c: Likewise.
12836
12837         maint.mk: prohibit use of "can not"
12838         * top/maint.mk (sc_prohibit_can_not): New rule.
12839         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
12840
12841 2011-04-09  Bruno Haible  <bruno@clisp.org>
12842
12843         careadlinkat: Guard against misuse of careadlinkatcwd.
12844         * lib/careadlinkat.c: Include <stdlib.h>.
12845         (careadlinkatcwd): Check that the fd argument is as expected.
12846
12847 2011-04-09  Bruno Haible  <bruno@clisp.org>
12848
12849         careadlinkat: Use common coding style.
12850         * lib/careadlinkat.c: Move gnulib includes after system includes.
12851
12852 2011-04-09  Bruno Haible  <bruno@clisp.org>
12853
12854         careadlinkat: Clarify specification.
12855         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
12856         (careadlinkatcwd): Add comment.
12857         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
12858
12859 2011-04-09  Bruno Haible  <bruno@clisp.org>
12860
12861         areadlinkat: Avoid link error on many platforms.
12862         * modules/areadlinkat (Depends-on): Add areadlink.
12863
12864 2011-04-09  Bruno Haible  <bruno@clisp.org>
12865
12866         allocator, careadlinkat: Fix double-inclusion guard.
12867         * lib/allocator.h: Fix double-inclusion guard.
12868         * lib/careadlinkat.h: Likewise.
12869
12870 2011-04-09  Bruno Haible  <bruno@clisp.org>
12871
12872         relocatable-prog-wrapper: Update after module 'areadlink' changed.
12873         * lib/relocwrapper.c: Update dependencies hierarchy.
12874         * build-aux/install-reloc: Update list of files to be compiled.
12875         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
12876         lib/allocator.[hc].
12877
12878 2011-04-08  Eric Blake  <eblake@redhat.com>
12879
12880         strftime: silence gnulib-tool warning
12881         * modules/strftime-tests (Depends-on): Drop automatic dependency.
12882
12883 2011-04-08  Bruno Haible  <bruno@clisp.org>
12884
12885         verify: Fix syntax error with GCC 4.6 in C++ mode.
12886         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
12887         (HAVE_STATIC_ASSERT): New macro.
12888         (verify_true, verify): Use 'static_assert' if it is supported and
12889         '_Static_assert' is not supported.
12890
12891 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
12892
12893         allocator: New module.
12894         * modules/allocator, lib/allocator.c: New files.
12895         * lib/allocator.h (stdlib_allocator): New decl.
12896         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
12897         Remove.  Do not include <stdlib.h>.
12898         (careadlinkat): Use stdlib_allocator instead of rolling our own.
12899         * modules/careadlinkat (Files): Remove lib/allocator.h.
12900         (Depends-on): Add allocator.
12901
12902         stdlib: let modules use system malloc, realloc
12903         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
12904         if !_GL_USE_STDLIB_ALLOC.
12905         (malloc, realloc): Limit this change to a smaller scope.
12906
12907         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
12908         (malloc, realloc): Don't #undef; no longer needed.
12909         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12910         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12911         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12912         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12913         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12914         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12915         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12916         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12917
12918         careadlinkat: rename members to avoid problem
12919         * lib/allocator.h (struct allocator): Rename members from
12920         malloc/realloc to allocate/reallocate, to avoid problems if malloc
12921         and realloc are #define'd.  Reported by Eric Blake in
12922         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
12923         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
12924
12925 2011-04-08  Eric Blake  <eblake@redhat.com>
12926
12927         nonblocking: reduce dependency
12928         * tests/test-nonblocking.c: Only test sockets when in use.
12929         * modules/nonblocking-tests (Depends-on): Drop socket.
12930         (Makefile.am): Link even if sockets are not present.
12931         * modules/pipe2-tests (Makefile.am): Likewise.
12932         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
12933
12934         pipe2: fix O_NONBLOCK support on mingw
12935         * modules/pipe2 (Depends-on): Add nonblocking.
12936         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
12937         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
12938         * tests/test-nonblocking.c (main): Likewise.
12939         * modules/pipe2-tests (Makefile.am): Avoid link failure.
12940
12941         fcntl-h: fix O_ACCMODE on cygwin
12942         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
12943         * lib/fcntl.in.h (O_ACCMODE): Fix it.
12944
12945         pipe-filter: drop O_NONBLOCK workarounds
12946         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
12947         * modules/pipe-filter-ii (Depends-on): Likewise.
12948         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
12949
12950         nonblocking: provide O_NONBLOCK for mingw
12951         * modules/nonblocking (Depends-on): Add open.
12952         (configure.ac): Set new witness macro.
12953         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
12954         * modules/fcntl-h (Makefile.am): Substitute it.
12955         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
12956         nonblocking module is in use.
12957         * lib/nonblocking.c: Adjust portability test.
12958         * lib/open.c (open): Don't let native open see gnulib flag.
12959         * tests/test-fcntl-h.c (main): Enhance test.
12960         * tests/test-open.h (test_open): Likewise.
12961         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
12962
12963         careadlinkat: fix compilation error on mingw
12964         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
12965         within struct allocator.
12966
12967 2011-04-06  Eric Blake  <eblake@redhat.com>
12968
12969         binary-io: relicense under LGPLv2+
12970         * modules/binary-io (License): Relax to LGPLv2+.
12971         Requested for libvirt, and required by pipe2.
12972
12973 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
12974
12975         verify: use _Static_assert if available
12976         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
12977         (verify_true, verify): Use it if available.  This generates better
12978         diagnostics with GCC 4.6.0 and later.
12979
12980 2011-04-05  Bruno Haible  <bruno@clisp.org>
12981
12982         Remove leftover generated .h files after config.status changed.
12983
12984         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
12985         GL_GENERATE_ALLOCA_H.
12986         * modules/alloca-opt (Makefile.am): Remove alloca.h if
12987         GL_GENERATE_ALLOCA_H evaluates to false.
12988
12989         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
12990         GL_GENERATE_ARGZ_H.
12991         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
12992         evaluates to false.
12993
12994         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
12995         GL_GENERATE_BYTESWAP_H.
12996         * modules/byteswap (Makefile.am): Remove byteswap.h if
12997         GL_GENERATE_BYTESWAP_H evaluates to false.
12998
12999         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
13000         GL_GENERATE_ERRNO_H.
13001         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
13002         evaluates to false.
13003
13004         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
13005         GL_GENERATE_FLOAT_H.
13006         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
13007         evaluates to false.
13008
13009         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
13010         GL_GENERATE_FNMATCH_H.
13011         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
13012         GL_GENERATE_FNMATCH_H evaluates to false.
13013
13014         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
13015         GL_GENERATE_GLOB_H.
13016         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
13017         evaluates to false.
13018
13019         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
13020         automake conditional GL_GENERATE_ICONV_H.
13021         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
13022         evaluates to false.
13023
13024         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
13025         GL_GENERATE_NETINET_IN_H.
13026         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
13027         GL_GENERATE_NETINET_IN_H evaluates to false.
13028
13029         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
13030         conditional GL_GENERATE_PTHREAD_H.
13031         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
13032         * modules/pthread (Makefile.am): Remove pthread.h if
13033         GL_GENERATE_PTHREAD_H evaluates to false.
13034
13035         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
13036         GL_GENERATE_SCHED_H.
13037         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
13038         evaluates to false.
13039
13040         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
13041         conditional GL_GENERATE_SELINUX_CONTEXT_H.
13042         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
13043         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
13044
13045         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
13046         GL_GENERATE_STDARG_H.
13047         * modules/stdarg (Makefile.am): Remove stdarg.h if
13048         GL_GENERATE_STDARG_H evaluates to false.
13049
13050         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
13051         GL_GENERATE_STDBOOL_H.
13052         * modules/stdbool (Makefile.am): Remove stdbool.h if
13053         GL_GENERATE_STDBOOL_H evaluates to false.
13054
13055         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
13056         conditional GL_GENERATE_STDDEF_H.
13057         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
13058         * modules/stddef (Makefile.am): Remove stddef.h if
13059         GL_GENERATE_STDDEF_H evaluates to false.
13060
13061         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
13062         GL_GENERATE_STDINT_H.
13063         * modules/stdint (Makefile.am): Remove stdint.h if
13064         GL_GENERATE_STDINT_H evaluates to false.
13065
13066         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
13067         GL_GENERATE_SYSEXITS_H.
13068         * modules/sysexits (Makefile.am): Remove sysexits.h if
13069         GL_GENERATE_SYSEXITS_H evaluates to false.
13070
13071         Reported by Karl Berry and Ralf Wildenhues.
13072
13073 2011-04-05  Bruno Haible  <bruno@clisp.org>
13074
13075         Ensure to rebuild generated .h files when config.status has changed.
13076         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
13077         config.status.
13078         * modules/ctype (Makefile.am): Likewise.
13079         * modules/dirent (Makefile.am): Likewise.
13080         * modules/errno (Makefile.am): Likewise.
13081         * modules/fcntl-h (Makefile.am): Likewise.
13082         * modules/float (Makefile.am): Likewise.
13083         * modules/getopt-posix (Makefile.am): Likewise.
13084         * modules/glob (Makefile.am): Likewise.
13085         * modules/iconv-h (Makefile.am): Likewise.
13086         * modules/inttypes (Makefile.am): Likewise.
13087         * modules/langinfo (Makefile.am): Likewise.
13088         * modules/locale (Makefile.am): Likewise.
13089         * modules/math (Makefile.am): Likewise.
13090         * modules/netdb (Makefile.am): Likewise.
13091         * modules/netinet_in (Makefile.am): Likewise.
13092         * modules/poll-h (Makefile.am): Likewise.
13093         * modules/pthread (Makefile.am): Likewise.
13094         * modules/pty (Makefile.am): Likewise.
13095         * modules/sched (Makefile.am): Likewise.
13096         * modules/search (Makefile.am): Likewise.
13097         * modules/selinux-h (Makefile.am): Likewise.
13098         * modules/signal (Makefile.am): Likewise.
13099         * modules/spawn (Makefile.am): Likewise.
13100         * modules/stdarg (Makefile.am): Likewise.
13101         * modules/stdbool (Makefile.am): Likewise.
13102         * modules/stddef (Makefile.am): Likewise.
13103         * modules/stdint (Makefile.am): Likewise.
13104         * modules/stdio (Makefile.am): Likewise.
13105         * modules/stdlib (Makefile.am): Likewise.
13106         * modules/string (Makefile.am): Likewise.
13107         * modules/strings (Makefile.am): Likewise.
13108         * modules/sys_file (Makefile.am): Likewise.
13109         * modules/sys_ioctl (Makefile.am): Likewise.
13110         * modules/sys_select (Makefile.am): Likewise.
13111         * modules/sys_socket (Makefile.am): Likewise.
13112         * modules/sys_stat (Makefile.am): Likewise.
13113         * modules/sys_time (Makefile.am): Likewise.
13114         * modules/sys_times (Makefile.am): Likewise.
13115         * modules/sys_utsname (Makefile.am): Likewise.
13116         * modules/sys_wait (Makefile.am): Likewise.
13117         * modules/sysexits (Makefile.am): Likewise.
13118         * modules/termios (Makefile.am): Likewise.
13119         * modules/time (Makefile.am): Likewise.
13120         * modules/unistd (Makefile.am): Likewise.
13121         * modules/wchar (Makefile.am): Likewise.
13122         * modules/wctype-h (Makefile.am): Likewise.
13123         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
13124
13125 2011-04-05  Bruno Haible  <bruno@clisp.org>
13126
13127         pipe2: Relicense under LGPLv2+.
13128         * modules/pipe2 (License): Change to LGPLv2+.
13129         Requested by Eric Blake, for libvirt.
13130
13131 2011-04-05  Bruce Korb  <bkorb@gnu.org>
13132
13133         bootstrap: compute gnulib_extra_files after updating build_aux
13134         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
13135         change build_aux or also supply gnulib_extra_files.  Handle correctly.
13136
13137 2011-04-05  Eric Blake  <eblake@redhat.com>
13138
13139         bootstrap: preserve git whitelist item sorting
13140         * build-aux/bootstrap (sort_patterns): New function.
13141         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
13142
13143 2011-04-05  Simon Josefsson  <simon@josefsson.org>
13144
13145         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
13146         sc_space_tab check.
13147
13148 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
13149
13150         areadlink, areadlinkat: rewrite in terms of careadlinkat
13151         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
13152         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
13153         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
13154         (malloc, realloc): Remove #undefs.
13155         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
13156         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
13157         readlink, ssize_t, stdint, unistd.
13158         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
13159         areadlink, stdint.
13160
13161         careadlinkat: new module
13162         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
13163         * modules/careadlinkat: New files, written by me with
13164         a review and feedback from Ben Pfaff in
13165         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
13166
13167 2011-04-01  Bruno Haible  <bruno@clisp.org>
13168
13169         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
13170         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
13171         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
13172         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
13173         Reported by Bruce Korb <bruce.korb@gmail.com>.
13174
13175 2011-04-01  Bruno Haible  <bruno@clisp.org>
13176
13177         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
13178         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
13179         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
13180         * modules/wcpcpy (Depends-on): Add extensions.
13181         * modules/wcpncpy (Depends-on): Likewise.
13182         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
13183         systems.
13184         * doc/posix-functions/wcpncpy.texi: Likewise.
13185         * doc/posix-functions/wcwidth.texi: Likewise.
13186
13187 2011-03-31  Eric Blake  <eblake@redhat.com>
13188
13189         nonblocking: fix mingw test failures
13190         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
13191         non-blocking flag on regular file.
13192         (get_nonblocking_flag): Set errno on invalid fd.
13193         * tests/test-nonblocking.c (main): Avoid test failure on
13194         directories if fchdir is not active.
13195         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
13196
13197 2011-03-31  Bruno Haible  <bruno@clisp.org>
13198
13199         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
13200         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
13201         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
13202         Reported by Simon Josefsson <simon@josefsson.org>.
13203
13204 2011-03-31  Bruno Haible  <bruno@clisp.org>
13205         and Eric Blake  <eblake@redhat.com>
13206
13207         nonblocking: new module
13208         * modules/nonblocking: New module.
13209         * modules/nonblocking-tests: Likewise.
13210         * lib/nonblocking.h: New file.
13211         * lib/nonblocking.c: Likewise.
13212         * tests/test-nonblocking.c: New test.
13213         * lib/ioctl.c (ioctl) [mingw]: Update comment.
13214
13215 2011-03-30  Bruno Haible  <bruno@clisp.org>
13216
13217         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
13218         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
13219         instead of 'printf' format for GCC >= 4.4.
13220         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
13221         (fprintf, printf, vfprintf, vprintf): Declare with
13222         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
13223         the system's vfprintf() function.
13224         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
13225
13226 2011-03-30  Eric Blake  <eblake@redhat.com>
13227
13228         passfd: fix scoping bug
13229         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
13230         before sendmsg/recvmsg.
13231
13232         passfd: standardize coding conventions
13233         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
13234         can be learned at compile time.
13235         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
13236         ifdefs.
13237         (sendfd, recvfd): Follow gnulib code conventions.
13238
13239         passfd: fix incorrect sendmsg arguments
13240         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
13241         incorrect msg_controllen value.
13242         * modules/passfd-tests (Depends-on): Check for alarm.
13243         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
13244         Reported by Bastien ROUCARIES.
13245
13246 2011-03-30  Bruno Haible  <bruno@clisp.org>
13247
13248         c-strcasestr: Relicense under LGPLv2+.
13249         * modules/c-strcasestr (License): Change to LGPLv2+.
13250         Requested by Eric Blake, for libvirt.
13251
13252 2011-03-30  Simon Josefsson  <simon@josefsson.org>
13253
13254         * users.txt: Add libidn2.  Fix libtasn1 link.
13255
13256 2011-03-30  Jim Meyering  <meyering@redhat.com>
13257
13258         tests: readlink* ("",... fails with EINVAL on newer kernels
13259         readlink and readlinkat have typically failed with ENOENT for
13260         the invalid, empty file name,  "".  However, with the advent
13261         of linux-2.6.39, they fail with EINVAL.
13262         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
13263         when operating on the empty file name.
13264         * tests/test-readlink.h (test_readlink): Likewise.
13265
13266 2011-03-29  Bruno Haible  <bruno@clisp.org>
13267
13268         Relicense some modules under LGPLv2+, for libidn2.
13269         * modules/array-mergesort (License): Change to LGPLv2+.
13270         * modules/c-strcaseeq (License): Likewise.
13271         * modules/striconveh (License): Likewise.
13272         * modules/striconveha (License): Likewise.
13273         * modules/uniconv/base (License): Likewise.
13274         * modules/uniconv/u8-conv-from-enc (License): Likewise.
13275         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
13276         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
13277         * modules/unictype/base (License): Likewise.
13278         * modules/unictype/bidiclass-of (License): Likewise.
13279         * modules/unictype/category-M (License): Likewise.
13280         * modules/unictype/category-none (License): Likewise.
13281         * modules/unictype/category-of (License): Likewise.
13282         * modules/unictype/category-test (License): Likewise.
13283         * modules/unictype/category-test-withtable (License): Likewise.
13284         * modules/unictype/combining-class (License): Likewise.
13285         * modules/unictype/joiningtype-of (License): Likewise.
13286         * modules/unictype/scripts (License): Likewise.
13287         * modules/uninorm/base (License): Likewise.
13288         * modules/uninorm/canonical-decomposition (License): Likewise.
13289         * modules/uninorm/composition (License): Likewise.
13290         * modules/uninorm/decompose-internal (License): Likewise.
13291         * modules/uninorm/decomposition-table (License): Likewise.
13292         * modules/uninorm/nfc (License): Likewise.
13293         * modules/uninorm/nfd (License): Likewise.
13294         * modules/uninorm/u32-normalize (License): Likewise.
13295         * modules/unistr/base (License): Likewise.
13296         * modules/unistr/u32-cpy (License): Likewise.
13297         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
13298         * modules/unistr/u32-to-u8 (License): Likewise.
13299         * modules/unistr/u32-uctomb (License): Likewise.
13300         * modules/unistr/u8-check (License): Likewise.
13301         * modules/unistr/u8-mblen (License): Likewise.
13302         * modules/unistr/u8-mbtouc (License): Likewise.
13303         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
13304         * modules/unistr/u8-mbtoucr (License): Likewise.
13305         * modules/unistr/u8-prev (License): Likewise.
13306         * modules/unistr/u8-strlen (License): Likewise.
13307         * modules/unistr/u8-to-u32 (License): Likewise.
13308         * modules/unistr/u8-uctomb (License): Likewise.
13309         * modules/unitypes (License): Likewise.
13310         Requested by Simon Josefsson.
13311
13312 2011-03-29  Simon Josefsson  <simon@josefsson.org>
13313
13314         lib-symbol-visibility: Add a notice.
13315         * modules/lib-symbol-visibility (Notice): New field.
13316
13317 2011-03-29  Bruno Haible  <bruno@clisp.org>
13318
13319         getaddrinfo: Doc fix.
13320         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
13321         section "fixed in Gnulib".
13322
13323 2011-03-28  Simon Josefsson  <simon@josefsson.org>
13324
13325         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
13326         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
13327
13328 2011-03-26  Bruno Haible  <bruno@clisp.org>
13329
13330         unictype/property-byname: Reduce the number of load-time relocations.
13331         * lib/unictype/pr_byname.c: Include <stdlib.h>.
13332         (UC_PROPERTY_INDEX_*): New enumeration values.
13333         (uc_property_byname): Convert an index from the lookup table to an
13334         uc_property_t.
13335         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
13336         values.
13337
13338 2011-03-26  Bruno Haible  <bruno@clisp.org>
13339
13340         unictype/property-byname: Allow omitted word separators and aliases.
13341         * lib/unictype/pr_byname.gperf: Add property names without word
13342         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
13343         for 'space'.
13344
13345 2011-03-26  Bruno Haible  <bruno@clisp.org>
13346
13347         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
13348         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
13349         also hyphens to space.
13350         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
13351         without spaces.
13352         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
13353
13354 2011-03-26  Bruno Haible  <bruno@clisp.org>
13355
13356         unictype/joiningtype-byname: Recognize long names as well.
13357         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
13358         a long name.
13359         * lib/unictype/joiningtype_byname.c: Include <string.h>,
13360         unictype/joiningtype_byname.h.
13361         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
13362         * lib/unictype/joiningtype_byname.gperf: New file.
13363         * modules/unictype/joiningtype-byname (Files): Add
13364         lib/unictype/joiningtype_byname.gperf.
13365         (Depends-on): Add gperf.
13366         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
13367         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
13368         long names.
13369
13370         Tests for module 'unictype/joiningtype-longname'.
13371         * modules/unictype/joiningtype-longname-tests: New file.
13372         * tests/unictype/test-joiningtype_longname.c: New file.
13373
13374         New module 'unictype/joiningtype-longname'.
13375         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
13376         * lib/unictype/joiningtype_longname.c: New file.
13377         * modules/unictype/joiningtype-longname: New file.
13378         * modules/unictype/joiningtype-all (Depends-on): Add
13379         unictype/joiningtype-longname.
13380
13381 2011-03-26  Bruno Haible  <bruno@clisp.org>
13382
13383         unictype/bidiclass-byname: Recognize long names as well.
13384         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
13385         name.
13386         * lib/unictype/bidi_byname.c: Include <string.h>,
13387         unictype/bidi_byname.h.
13388         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
13389         * lib/unictype/bidi_byname.gperf: New file.
13390         * modules/unictype/bidiclass-byname (Files): Add
13391         lib/unictype/bidi_byname.gperf.
13392         (Depends-on): Add gperf.
13393         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
13394         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
13395         long names.
13396
13397         Tests for module 'unictype/bidiclass-longname'.
13398         * modules/unictype/bidiclass-longname-tests: New file.
13399         * tests/unictype/test-bidi_longname.c: New file.
13400
13401         New module 'unictype/bidiclass-longname'.
13402         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
13403         * lib/unictype/bidi_longname.c: New file.
13404         * modules/unictype/bidiclass-longname: New file.
13405         * modules/unictype/bidiclass-all (Depends-on): Add
13406         unictype/bidiclass-longname.
13407
13408 2011-03-26  Bruno Haible  <bruno@clisp.org>
13409
13410         unictype/bidi*: Rename modules.
13411         * modules/unictype/bidiclass-all: Renamed from
13412         modules/unictype/bidicategory-all.
13413         * modules/unictype/bidiclass-name: Renamed from
13414         modules/unictype/bidiclass-name.
13415         (Description): Update.
13416         * modules/unictype/bidiclass-name-tests: Renamed from
13417         modules/unictype/bidicategory-name-tests.
13418         * modules/unictype/bidiclass-byname: Renamed from
13419         modules/unictype/bidicategory-byname.
13420         (Description): Update.
13421         * modules/unictype/bidiclass-byname-tests: Renamed from
13422         modules/unictype/bidicategory-byname-tests.
13423         * modules/unictype/bidiclass-of: Renamed from
13424         modules/unictype/bidicategory-of.
13425         (Description): Update.
13426         * modules/unictype/bidiclass-of-tests: Renamed from
13427         modules/unictype/bidicategory-of-tests.
13428         * modules/unictype/bidiclass-test: Renamed from
13429         modules/unictype/bidicategory-test.
13430         (Description): Update.
13431         * modules/unictype/bidiclass-test-tests: Renamed from
13432         modules/unictype/bidicategory-test-tests.
13433         * modules/unictype/bidicategory-all: New file, a simple redirection.
13434         * modules/unictype/bidicategory-name: Likewise.
13435         * modules/unictype/bidicategory-byname: Likewise.
13436         * modules/unictype/bidicategory-of: Likewise.
13437         * modules/unictype/bidicategory-test: Likewise.
13438         * modules/unictype/property-bidi-* (Dependencies): Update.
13439         * lib/unictype/bidi_*.c: Update comment.
13440
13441 2011-03-26  Bruno Haible  <bruno@clisp.org>
13442
13443         unictype/bidi*: Rename functions, part 2.
13444         * modules/unictype/bidicategory-name (configure.ac): Update required
13445         libunistring version.
13446         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
13447
13448 2011-03-25  Bruno Haible  <bruno@clisp.org>
13449
13450         New module 'unictype/combining-class-all'.
13451         * modules/unictype/combining-class-all: New file.
13452
13453         Tests for module 'unictype/combining-class-byname'.
13454         * modules/unictype/combining-class-byname-tests: New file.
13455         * tests/unictype/test-combiningclass_byname.c: New file.
13456
13457         New module 'unictype/combining-class-byname'.
13458         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
13459         * lib/unictype/combiningclass_byname.c: New file.
13460         * lib/unictype/combiningclass_byname.gperf: New file.
13461         * modules/unictype/combining-class-byname: New file.
13462
13463         Tests for module 'unictype/combining-class-longname'.
13464         * modules/unictype/combining-class-longname-tests: New file.
13465         * tests/unictype/test-combiningclass_longname.c: New file.
13466
13467         New module 'unictype/combining-class-longname'.
13468         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
13469         * lib/unictype/combiningclass_longname.c: New file.
13470         * modules/unictype/combining-class-longname: New file.
13471
13472         Tests for module 'unictype/combining-class-name'.
13473         * modules/unictype/combining-class-name-tests: New file.
13474         * tests/unictype/test-combiningclass_name.c: New file.
13475
13476         New module 'unictype/combining-class-name'.
13477         * lib/unictype.in.h (uc_combining_class_name): New declaration.
13478         * lib/unictype/combiningclass_name.c: New file.
13479         * modules/unictype/combining-class-name: New file.
13480
13481 2011-03-25  Bruno Haible  <bruno@clisp.org>
13482
13483         unictype/combining-class: Rename source files.
13484         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
13485         of unictype/combining.h.
13486         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
13487         Update.
13488         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
13489         * modules/unictype/combining-class (Description): Fix.
13490         (Files, Makefile.am): Update.
13491         * tests/unictype/test-combiningclass.c: Renamed from
13492         tests/unictype/test-combining.c.
13493         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
13494
13495 2011-03-25  Bruno Haible  <bruno@clisp.org>
13496
13497         unictype: Update list of canonical combining classes.
13498         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
13499
13500 2011-03-25  Bruno Haible  <bruno@clisp.org>
13501
13502         unictype/category-byname: Recognize long names as well.
13503         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
13504         a long name.
13505         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
13506         unictype/categ_byname.h.
13507         (UC_CATEGORY_INDEX_*): New enumeration values.
13508         (uc_general_category_byname): Use uc_general_category_lookup and
13509         convert from index to value.
13510         * lib/unictype/categ_byname.gperf: New file.
13511         * modules/unictype/category-byname (Files): Add
13512         lib/unictype/categ_byname.gperf.
13513         (Depends-on): Add gperf.
13514         (Makefile.am): Add rule for generating unictype/categ_byname.h.
13515         * tests/unictype/test-categ_byname.c (main): Test the recognition of
13516         long names.
13517
13518         Tests for module 'unictype/category-longname'.
13519         * modules/unictype/category-longname-tests: New file.
13520         * tests/unictype/test-categ_longname.c: New file.
13521
13522         New module 'unictype/category-longname'.
13523         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
13524         * lib/unictype/categ_longname.c: New file.
13525         * modules/unictype/category-longname: New file.
13526         * modules/unictype/category-all (Depends-on): Add it.
13527
13528 2011-03-25  Bruno Haible  <bruno@clisp.org>
13529
13530         Tests for module 'unictype/category-LC'.
13531         * modules/unictype/category-LC-tests: New file.
13532         * tests/unictype/test-categ_LC.c: New file, automatically generated.
13533
13534         New module 'unictype/category-LC'.
13535         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
13536         (UC_CATEGORY_LC): New declaration.
13537         (UC_CASED_LETTER): New macro.
13538         * lib/gen-uni-tables.c (is_category_LC): New function.
13539         (output_categories): Also handle category LC.
13540         (UC_CATEGORY_MASK_LC): New enumeration value.
13541         (general_category_byname): Also handle category LC.
13542         * lib/unictype/categ_LC.c: New file.
13543         * lib/unictype/categ_LC.h: New file, automatically generated.
13544         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
13545         category LC.
13546         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
13547         * modules/unictype/category-LC: New file.
13548         * modules/unictype/category-byname (Depends-on): Add
13549         unictype/category-LC.
13550         * modules/unictype/category-all (Depends-on): Likewise.
13551
13552 2011-03-25  Eric Blake  <eblake@redhat.com>
13553
13554         xmalloc: revert yesterday's regression
13555         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
13556         realloc's underlying behavior (allowing allocation of zero-size
13557         objects, especially if malloc-gnu is also in use).
13558
13559 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
13560
13561         maint.mk: add missing version to VC-tag
13562         * top/maint.mk: git tag was missing actual tag name; add it.
13563
13564         valgrind: do leak checking, and exit with code 1 on error (not 0)
13565         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
13566         to VALGRIND.
13567
13568 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
13569
13570         posix-modules: say what it does.
13571         * posix-modules: Add a line to the --help output saying what it does.
13572
13573 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
13574
13575         xmalloc: Do not leak if underlying realloc is C99 compatible.
13576         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
13577         This avoids a leak on C99-based systems.  See
13578         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
13579
13580 2011-03-24  Eric Blake  <eblake@redhat.com>
13581
13582         realloc: document portability problem
13583         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
13584         passing 0 size to realloc.
13585
13586 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
13587
13588         doc: update users.txt
13589         * users.txt: Add cvsps, tmpwatch
13590
13591 2011-03-23  Matt Rice  <ratmice@gmail.com>
13592
13593         doc: update users.txt
13594         * users.txt: Add gdb.
13595
13596 2011-03-23  Jim Meyering  <meyering@redhat.com>
13597
13598         doc: update users.txt
13599         Looking through matches up to the following URL (there are still
13600         several more pages), I found several projects that use gnulib:
13601         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
13602         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
13603         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
13604
13605 2011-03-22  Bruno Haible  <bruno@clisp.org>
13606
13607         unictype/bidi*: Rename functions.
13608         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
13609         uc_bidi_class, uc_is_bidi_class): New declarations.
13610         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
13611         uc_bidi_category_byname.
13612         (uc_bidi_category_byname): New function.
13613         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
13614         u_bidi_category_name.
13615         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
13616         (uc_bidi_category_name): New function.
13617         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
13618         uc_bidi_category.
13619         (uc_bidi_category): New function.
13620         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
13621         uc_is_bidi_category. Invoke uc_bidi_class.
13622         (uc_is_bidi_category): New function.
13623         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
13624         instead of uc_bidi_category_byname.
13625         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
13626         instead of uc_bidi_category_name.
13627         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
13628         uc_bidi_category.
13629         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
13630         instead of uc_is_bidi_category.
13631
13632 2011-03-21  Bruno Haible  <bruno@clisp.org>
13633
13634         New module 'unictype/joininggroup-all'.
13635         * modules/unictype/joininggroup-all: New file.
13636
13637         Tests for module 'unictype/joininggroup-of'.
13638         * modules/unictype/joininggroup-of-tests: New file.
13639         * tests/unictype/test-joininggroup_of.c: New file.
13640         * tests/unictype/test-joininggroup_of.h: New file, automatically
13641         generated by gen-uni-tables.
13642
13643         New module 'unictype/joininggroup-of'.
13644         * modules/unictype/joininggroup-of: New file.
13645         * lib/unictype/joininggroup_of.c: New file.
13646         * lib/unictype/joininggroup_of.h: New file, automatically generated by
13647         gen-uni-tables.
13648
13649         Tests for module 'unictype/joininggroup-byname'.
13650         * modules/unictype/joininggroup-byname-tests: New file.
13651         * tests/unictype/test-joininggroup_byname.c: New file.
13652
13653         New module 'unictype/joininggroup-byname'.
13654         * modules/unictype/joininggroup-byname: New file.
13655         * lib/unictype/joininggroup_byname.c: New file.
13656         * lib/unictype/joininggroup_byname.gperf: New file.
13657
13658         Tests for module 'unictype/joininggroup-name'.
13659         * modules/unictype/joininggroup-name-tests: New file.
13660         * tests/unictype/test-joininggroup_name.c: New file.
13661
13662         New module 'unictype/joininggroup-name'.
13663         * modules/unictype/joininggroup-name: New file.
13664         * lib/unictype/joininggroup_name.c: New file.
13665         * lib/unictype/joininggroup_name.h: New file.
13666
13667         New module 'unictype/joiningtype-all'.
13668         * modules/unictype/joiningtype-all: New file.
13669
13670         Tests for module 'unictype/joiningtype-of'.
13671         * modules/unictype/joiningtype-of-tests: New file.
13672         * tests/unictype/test-joiningtype_of.c: New file.
13673         * tests/unictype/test-joiningtype_of.h: New file, automatically
13674         generated by gen-uni-tables.
13675
13676         New module 'unictype/joiningtype-of'.
13677         * modules/unictype/joiningtype-of: New file.
13678         * lib/unictype/joiningtype_of.c: New file.
13679         * lib/unictype/joiningtype_of.h: New file, automatically generated by
13680         gen-uni-tables.
13681
13682         Tests for module 'unictype/joiningtype-byname'.
13683         * modules/unictype/joiningtype-byname-tests: New file.
13684         * tests/unictype/test-joiningtype_byname.c: New file.
13685
13686         New module 'unictype/joiningtype-byname'.
13687         * modules/unictype/joiningtype-byname: New file.
13688         * lib/unictype/joiningtype_byname.c: New file.
13689
13690         Tests for module 'unictype/joiningtype-name'.
13691         * modules/unictype/joiningtype-name-tests: New file.
13692         * tests/unictype/test-joiningtype_name.c: New file.
13693
13694         New module 'unictype/joiningtype-name'.
13695         * modules/unictype/joiningtype-name: New file.
13696         * lib/unictype/joiningtype_name.c: New file.
13697
13698         unictype: Add support for Arabic shaping properties.
13699         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
13700         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
13701         declarations.
13702         (UC_JOINING_GROUP_*): New enumeration values.
13703         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
13704         declarations.
13705         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
13706         (unicode_joining_type): New variable.
13707         (UC_JOINING_GROUP_*): New enumeration values.
13708         (unicode_joining_group): New variable.
13709         (fill_arabicshaping, joining_type_as_c_identifier,
13710         output_joining_type_test, output_joining_type,
13711         joining_group_as_c_identifier, output_joining_group_test,
13712         output_joining_group): New functions.
13713         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
13714         fill_arabicshaping and output_joining_type_test, output_joining_type,
13715         output_joining_group_test, output_joining_group.
13716         Reported by Simon Josefsson.
13717
13718 2011-03-21  Jim Meyering  <meyering@redhat.com>
13719
13720         strftime: fix a bug in yesterday's change
13721         * lib/strftime.c (add): Accommodate width's initial value of -1.
13722         Otherwise, nstrftime would copy uninitialized data into
13723         the result buffer.
13724
13725 2011-03-21  Jim Meyering  <meyering@redhat.com>
13726
13727         tests: add strftime-tests module
13728         * tests/test-strftime.c: New file.
13729         * modules/strftime-tests: New module.
13730
13731 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13732
13733         strftime: don't assume a byte count fits in 'int'
13734         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
13735         found this problem by static analysis, using gcc -Wstrict-overflow
13736         (GCC 4.5.2, x86-64).  This reported an optimization that depended
13737         on an integer overflow having undefined behavior, but it turns out
13738         that the argument is a size, which might not fit in 'int' anyway,
13739
13740 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13741
13742         stdio: don't require ignore_value around fwrite
13743
13744         This patch works around libc bug 11959
13745         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
13746         Without this patch, applications must often write
13747         ignore_value (fwrite (...)) even though the ignore_value is
13748         not helpful here.  It's common to write many objects, using
13749         fwrite/printf/etc., and then use ferror to detect output error.
13750
13751         I considered making this patch optional, but decided against it,
13752         because libc is obviously being inconsistent here: there is no
13753         reason libc should insist that user code must inspect fwrite
13754         return's value without also insisting that it inspect printf's,
13755         putchar's, etc.  If user code wants to have a strict style where
13756         all these functions' values are checked (so that ferror need not
13757         be checked), we could add support for that style in a new gnulib
13758         module, but in the meantime it's better to be consistent and to
13759         support common usage.
13760
13761         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
13762         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
13763         that we are compiling in checking mode, and if not C++, and
13764         if not already wrapping fwrite for some other reason.
13765         (fwrite): #define to rpl_fwrite if the latter is defined.
13766
13767 2011-03-20  Bruno Haible  <bruno@clisp.org>
13768
13769         verror: Fix compilation error introduced on 2011-02-13.
13770         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
13771         instead of __attribute__.
13772         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13773
13774 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13775             Bruno Haible  <bruno@clisp.org>
13776
13777         socklen: do not depend on sys_socket
13778         While trying to modify Emacs to use gnulib's socklen module,
13779         I discovered a circular dependency: socklen depends on sys_socket
13780         and vice versa.  Emacs can use socklen, but it does not need
13781         sys_socket because it has its own substitute for sys/socket.h.
13782         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
13783         gl_TYPE_SOCKLEN_T.
13784         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
13785         gl_PREREQ_SYS_H_SOCKET.
13786         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
13787         gl_PREREQ_SYS_H_SOCKET.
13788         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
13789         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
13790         * modules/socklen (Depends-on): Do not depend on sys_socket.
13791         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
13792
13793 2011-03-20  Jim Meyering  <meyering@redhat.com>
13794
13795         maint.mk: sort file names *after* new transformation
13796         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
13797         prefix would have led to an unwarranted failure in GNU parted.
13798         Sort after that transformation.
13799
13800 2011-03-19  Jim Meyering  <meyering@redhat.com>
13801
13802         maint.mk: fix po-file syntax-check rule
13803         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
13804         Patch by Bruno Haible.
13805
13806 2011-03-19  Bruno Haible  <bruno@clisp.org>
13807
13808         socklen: Update comment.
13809         * m4/socklen.m4: Update comment about platforms.
13810
13811 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13812             Bruno Haible  <bruno@clisp.org>
13813
13814         inet_ntop, inet_pton: Simplify.
13815         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
13816         documented to provide socklen_t and we already depend on sys_socket.
13817         * modules/inet_pton (Depends-on): Likewise.
13818         * lib/arpa_inet.in.h: Adjust comment.
13819
13820 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13821             Bruno Haible  <bruno@clisp.org>
13822
13823         netdb: Simplify.
13824         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
13825         documented to provide socklen_t and we already depend on sys_socket.
13826         * lib/netdb.in.h: Adjust comment.
13827
13828 2011-03-19  Bruno Haible  <bruno@clisp.org>
13829
13830         sys_socket, netdb: Document problem with socklen_t.
13831         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
13832         platforms.
13833         * doc/posix-headers/netdb.texi: Likewise.
13834
13835 2011-03-18  Eric Blake  <eblake@redhat.com>
13836
13837         maint.mk: let po check work in VPATH build
13838         * top/maint.mk (po_file): Allow cfg.mk override.
13839         (sc_po_check): Allow VPATH use.
13840         Reported by Jiri Denemark.
13841
13842 2011-03-16  Jim Meyering  <meyering@redhat.com>
13843
13844         maint.mk: allow fine-grained syntax-check exclusion via Make variables
13845         Before, you would have had to create one .x-sc_ file per rule in order
13846         to exempt offending files.  Now, you may instead use a Make variable --
13847         usually defined in cfg.mk -- whose name identifies the affected rule.
13848         * top/maint.mk (_sc_excl): Define.
13849         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
13850         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
13851
13852 2011-03-13  Bruno Haible  <bruno@clisp.org>
13853
13854         ignore-value tests: Avoid warnings.
13855         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
13856         empty for gcc < 3.4.
13857
13858 2011-03-13  Bruno Haible  <bruno@clisp.org>
13859
13860         passfd: Fix link error on Solaris.
13861         * modules/passfd (Description): Correct.
13862         (Depends-on): Add socketlib.
13863         (Link): New section.
13864         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
13865
13866 2011-03-13  Bruno Haible  <bruno@clisp.org>
13867
13868         passfd: Fix link error on AIX 5.2.
13869         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
13870
13871 2011-03-13  Bruno Haible  <bruno@clisp.org>
13872
13873         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
13874         * lib/sys_socket.in.h: Include <stddef.h>.
13875         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
13876         CMSG_FIRSTHDR. Remove unused variable.
13877
13878 2011-03-13  Bruno Haible  <bruno@clisp.org>
13879
13880         passfd: Fix compilation error on OpenBSD.
13881         * lib/passfd.c: Include <sys/uio.h>.
13882
13883 2011-03-13  Bruno Haible  <bruno@clisp.org>
13884
13885         passfd test: Fix warnings.
13886         * tests/test-passfd.c: Include <sys/wait.h>.
13887         (main): Fix typo.
13888
13889 2011-03-13  Bruno Haible  <bruno@clisp.org>
13890
13891         passfd module, part 4, tweaks.
13892         * tests/test-passfd.c: Reorder includes.
13893         (main): Fix perror and printf calls.
13894
13895 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13896
13897         passfd module, part 4.
13898         * modules/passfd-tests: New file.
13899         * tests/test-passfd.c: New file.
13900
13901 2011-03-13  Jim Meyering  <meyering@redhat.com>
13902
13903         Makefile: rely on GNU make; derive syntax-check rule names
13904         Rather than requiring that each sc_ rule be listed as a dependent
13905         of "check", use features of GNU make to derive the list.
13906         * Makefile (syntax-check-rules): Define.
13907         (check): Depend on the new variable, not the hard-coded list.
13908
13909 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
13910             Bruno Haible  <bruno@clisp.org>
13911
13912         passfd module, part 3.
13913         * lib/passfd.h (recvfd): Add a flags argument.
13914         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
13915         (recvfd): Add a flags argument.
13916         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
13917         exists.
13918         * modules/passfd (Depends-on): Add cloexec.
13919         Suggested by Eric Blake.
13920
13921 2011-03-13  Bruno Haible  <bruno@clisp.org>
13922
13923         passfd module, part 2, tweaks.
13924         * modules/passfd (Files): Reorder.
13925         (Depends-on): Remove errno.
13926         (Include): Remove <sys/socket.h>, <sys/un.h>.
13927         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
13928         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
13929         specification header. Include <sys/socket.h> always. Don't include
13930         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
13931         (sendfd): Clarify that it sets errno when it fails.
13932         (recvfd): Fix specification.
13933
13934 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13935
13936         passfd module, part 2.
13937         * modules/passfd: New file.
13938         * lib/passfd.h: New file.
13939         * lib/passfd.c: New file.
13940
13941 2011-03-12  Bruno Haible  <bruno@clisp.org>
13942
13943         wcswidth, mbswidth: Avoid integer overflow.
13944         * lib/wcswidth.c: Include <limits.h>.
13945         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
13946         * lib/mbswidth.c: Include <limits.h>.
13947         (mbsnwidth): Avoid 'int' overflow.
13948         Reported by Jim Meyering.
13949
13950 2011-03-12  Bruno Haible  <bruno@clisp.org>
13951
13952         futimens, utimensat: Avoid endless recursion on Solaris 10.
13953         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
13954         Solaris.
13955         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
13956         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
13957
13958 2011-03-11  Jim Meyering  <meyering@redhat.com>
13959
13960         maint.mk: relax a regexp to accommodate other formatting styles
13961         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
13962         between "ngettext" and the following "(".
13963
13964 2011-03-11  Pádraig Brady <P@draigBrady.com>
13965
13966         maint.mk: suppress a false positive warning
13967         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
13968         diagnostics are marked with ngettext.
13969
13970 2011-03-10  Eric Blake  <eblake@redhat.com>
13971
13972         wchar: add explicit dependencies, for Tru64
13973         * modules/mbmemcasecoll (Depends-on): Add wchar.
13974         * modules/mbtowc (Depends-on): Likewise.
13975         * modules/vasnprintf (Depends-on): Likewise.
13976         * modules/unistdio/u-printf-args (Depends-on): Likewise.
13977         * modules/wctomb (Depends-on): Likewise.
13978         Reported by Peter O'Gorman.
13979
13980 2011-03-08  Bruno Haible  <bruno@clisp.org>
13981
13982         passfd module, part 1, tweaks.
13983         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
13984         Improve indentation. Improve AC_MSG_CHECKING messages.
13985         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
13986         gl_SOCKET_FAMILIES.
13987
13988 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13989
13990         passfd module, part 1.
13991         * m4/afunix.m4: New file.
13992         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
13993         sockets.
13994
13995 2011-03-08  Bruno Haible  <bruno@clisp.org>
13996
13997         regex-quote: New API.
13998         * lib/regex-quote.h: Include <stdbool.h>.
13999         (struct regex_quote_spec): New type.
14000         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
14001         New declarations.
14002         (regex_quote_length, regex_quote_copy, regex_quote): Take a
14003         'const struct regex_quote_spec *' argument.
14004         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
14005         (pcre_special): New constant.
14006         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
14007         New functions.
14008         (regex_quote_length, regex_quote_copy, regex_quote): Take a
14009         'const struct regex_quote_spec *' argument.
14010         * modules/regex-quote (Depends-on): Add stdbool.
14011         * tests/test-regex-quote.c (check): Update for new API. Add test for
14012         anchored results.
14013         * NEWS: Mention the API change.
14014         Reported by Reuben Thomas and Eric Blake.
14015
14016 2011-03-06  Bruno Haible  <bruno@clisp.org>
14017
14018         regex-quote: Fix creation of POSIX extended regular expressions.
14019         * lib/regex-quote.c (ere_special): Add grouping and alternation
14020         operators.
14021
14022 2011-03-05  Bruno Haible  <bruno@clisp.org>
14023
14024         doc: Improve doc regarding autopoint vs. gnulib.
14025         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
14026         disable autopoint while running autoreconf.
14027         Suggested by Ralf Wildenhues.
14028
14029 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14030
14031         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
14032         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
14033
14034 2011-03-03  Bruce Korb  <bkorb@gnu.org>
14035
14036         parse-duration: remove xalloc.h dependency
14037         * lib/parse-duration.c (parse_period): handle NULL return from
14038         strdup instead of calling xstrdup().
14039         * modules/parse-duration: remove "xalloc" dependency
14040
14041 2011-03-03  Matthew Booth  <mbooth@redhat.com>
14042
14043         bootstrap: honor m4_base when running aclocal
14044         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
14045
14046 2011-03-02  Jim Meyering  <meyering@redhat.com>
14047
14048         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
14049         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
14050         on request from Matt Booth.
14051
14052 2011-03-01  Eric Blake  <eblake@redhat.com>
14053
14054         test-link: work on Hurd
14055         * tests/test-link.h (test_link): Hurd rejects linking directories
14056         with EISDIR instead of the POSIX-mandated EPERM.
14057
14058 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
14059
14060         stdio: simplify by moving files to printf-posix, sigpipe
14061         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
14062         since this symbol is needed only if printf is replaced.
14063         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
14064         Require gl_ASM_SYMBOL_PREFIX.
14065         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
14066         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
14067         (Depends-on): Add 'raise'.
14068         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
14069         * modules/stdio (Files): Remove lib/stdio-write.c,
14070         m4/asm-underscore.m4.
14071         (Depends-on): Remove 'raise'.
14072
14073         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
14074         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
14075         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
14076         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
14077
14078 2011-02-28  Bruno Haible  <bruno@clisp.org>
14079
14080         localcharset: Assume ANSI C behaviour of free().
14081         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
14082         calling free().
14083         Suggested by Simon Josefsson <simon@josefsson.org>.
14084
14085 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
14086             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
14087             Bruno Haible  <bruno@clisp.org>  (tiny change)
14088
14089         On Cygwin, use /proc file system instead of win32 API.
14090         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
14091         Win32 file names.
14092         (DllMain): Simplify by removing Cygwin specific code.
14093         (find_shared_library_fullname): Use Linux specific implementation also
14094         for Cygwin.
14095         (get_shared_library_fullname): Update accordingly.
14096         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
14097         Win32 file names.
14098         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
14099         Cygwin specific code.
14100
14101 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
14102             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
14103
14104         Fix OpenMP flag detection for various Fortran compilers.
14105         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
14106         OpenMP-conditional compilation construct, to force compile
14107         failure with missing OpenMP flag.
14108         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
14109
14110 2011-02-25  Eric Blake  <eblake@redhat.com>
14111
14112         strstr: expand test coverage
14113         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
14114         compilation.
14115         * tests/test-memmem.c (main): Duplicate tests.
14116         * tests/test-strcasestr.c (main): Likewise.
14117         * tests/test-c-strcasestr.c (main): Likewise.
14118
14119 2011-02-25  Jim Meyering  <meyering@redhat.com>
14120
14121         maint.mk: detect missing-NL-at-EOF, too
14122         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
14123         it also detects when a file lacks a newline at EOF.
14124         (require_exactly_one_NL_at_EOF_): Renamed from
14125         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
14126         since people may well have .x-sc_... file names tied to the
14127         existing name.  Suggested by Eric Blake.
14128
14129 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
14130
14131         dirname: move m4/dos.m4 functionality into lib/dosname.h
14132
14133         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
14134         extracts symbols from it, puts them into config.h; but it's much
14135         easier to use the symbols directly.  filename.h already does this,
14136         but it disagrees with dos.m4 in some respects.  This patch
14137         introduces a different include file dosname.h that packages up
14138         dos.m4, and then later we can work on merging filename.h and
14139         dosname.h.  Applications that need only the easy-to-configure
14140         symbols should consider including dosname.h rather than dirname.h.
14141         * NEWS: Mention incompatible changes.
14142         * m4/dos.m4: Remove.
14143         * lib/dosname.h, modules/dosname: New files.
14144         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
14145         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
14146         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
14147         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
14148         Include dosname.h, not dirname.h.
14149         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
14150         Include dosname.h, for definitions of symbols like ISSLASH
14151         that used to be in config.h.
14152         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
14153         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
14154         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
14155         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
14156         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
14157         * modules/rmdir (Files): Likewise.
14158         * modules/stat (Files): Likewise.
14159         * modules/unlink (Files): Likewise.
14160         * modules/dirname-lgpl (Depends-on): Add dosname.
14161         * modules/lstat (Depends-on): Likewise.
14162         * modules/openat (Depends-on): Likewise.
14163         * modules/rmdir (Depends-on): Likewise.
14164         * modules/savewd (Depends-on): Likewise.
14165         * modules/stat (Depends-on): Likewise.
14166         * modules/unlink (Depends-on): Likewise.
14167         * modules/openat (Depends-on): Remove dirname-lgpl.
14168         * modules/savewd (Depends-on): Likewise.
14169         * tests/test-dirname.c: Do not use removed symbols like
14170         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
14171         the remaining symbols, e.g., ISSLASH ('\\').
14172
14173 2011-02-25  Eric Blake  <eblake@redhat.com>
14174
14175         strstr: revert patches that introduced bug and pessimization
14176         * lib/str-two-way.h: Add another reference.
14177         (two_way_short_needle, two_way_long_needle): Revert changes from
14178         2011-02-24; they pessimize search speed.
14179         (critical_factorization): Partially revert changes from
14180         2010-06-22; they violate the requirement that the left half of the
14181         needle be smaller than the period of the needle.
14182
14183 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
14184
14185         filenamecat: remove unnecessary dependency on dirname-lgpl
14186         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
14187         is no direct dependency, just an indirect one via filenamecat-lgpl.
14188
14189         remove: remove unnecessary use of m4/dos.m4
14190         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
14191         * modules/remove (FILES): Remove m4/dos.m4.
14192
14193         * lib/openat-proc.c: Don't include dirname.h; not needed.
14194
14195         backupfile: remove unnecessary use of m4/dos.m4
14196         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
14197         of its symbols are used by the backupfile code.  backupfile.c does
14198         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
14199         for the rare case of programs that want all their backup file
14200         names to live within 8+3 limits, and dos.m4 doesn't address that.
14201         * modules/backupfile (Files): Remove m4/dos.m4.
14202
14203 2011-02-24  Jim Meyering  <meyering@redhat.com>
14204
14205         strstr: fix a bug whereby strstr would mistakenly return NULL
14206         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
14207         in period calculation.
14208         (two_way_long_needle): Likewise.
14209         The original problem was reported by Mike Stump in
14210         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
14211         Ralf Wildenhues provided the short needle and haystack.
14212         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
14213         Add a more involved test to trigger the bug in two_way_long_needle.
14214
14215 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
14216
14217         gnulib-tool: remove use of bold display in help screen
14218         * gnulib-tool (func_usage): Do not use bold display anymore in the
14219         help screen.  That was just meant to be a temporary emphasis for a
14220         backward-incompatible change.
14221
14222 2011-02-23  Bruno Haible  <bruno@clisp.org>
14223
14224         Fix misindentation of preprocessor directives.
14225         * lib/argp-namefrob.h: Reindent preprocessor directives.
14226         * lib/getopt_int.h (struct _getopt_data): Likewise.
14227         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
14228         * lib/vasnprintf.c (decode_long_double): Likewise.
14229         * tests/test-argmatch.c: Insert blank lines, for clarity.
14230         * tests/test-exclude.c: Likewise.
14231
14232 2011-02-22  Bruno Haible  <bruno@clisp.org>
14233
14234         ioctl: Fix for MacOS X in 64-bit mode.
14235         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
14236         value.
14237         Suggested by Eric Blake.
14238         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
14239
14240 2011-02-22  Jim Meyering  <meyering@redhat.com>
14241
14242         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
14243         * Makefile (sc_cpp_indent_check): Don't limit the check to files
14244         in lib/.
14245
14246 2011-02-22  Eric Blake  <eblake@redhat.com>
14247
14248         maint: avoid any CDPATH issue
14249         * Makefile (sc_cpp_indent_check): Anchor cd argument.
14250
14251         maint: adjust cpp indentation for my modules, as well
14252         * Makefile (sc_cpp_indent_check): Add my name.
14253         * lib/fbufmode.c: Filter through cppi.
14254         * lib/fpurge.c: Likewise.
14255         * lib/freadable.c: Likewise.
14256         * lib/freading.c: Likewise.
14257         * lib/fwritable.c: Likewise.
14258         * lib/fwriting.c: Likewise.
14259         * lib/sigaction.c: Likewise.
14260
14261 2011-02-22  Jim Meyering  <meyering@redhat.com>
14262
14263         maint: adjust cpp indentation to reflect nesting depth
14264         I.e., in a block of code that begins with an unnested "#if",
14265         put one space between the "#" in column 1 and following token.
14266         For example,
14267         -#include <sys/vfs.h>
14268         +# include <sys/vfs.h>
14269         Do this only in .c files that are part of a module I maintain.
14270         * lib/linkat.c: Filter through cppi.
14271         * lib/nanosleep.c: Likewise.
14272         * lib/openat.c: Likewise.
14273         * lib/openat-die.c: Likewise.
14274         * lib/dup3.c: Likewise.
14275         * lib/fchownat.c: Likewise.
14276         * lib/flock.c: Likewise.
14277         * lib/fsync.c: Likewise.
14278         * lib/fts.c: Likewise.
14279         * lib/getpass.c: Likewise.
14280         * lib/gettimeofday.c: Likewise.
14281         * lib/userspec.c: Likewise.
14282         * Makefile (sc_cpp_indent_check): New rule, to check this.
14283
14284 2011-02-22  Bruno Haible  <bruno@clisp.org>
14285
14286         New module 'wctomb'.
14287         * lib/stdlib.in.h (wctomb): New declaration.
14288         * lib/wctomb.c: New file.
14289         * lib/wctomb-impl.h: New file.
14290         * m4/wctomb.m4: New file.
14291         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
14292         REPLACE_WCTOMB.
14293         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
14294         REPLACE_WCTOMB.
14295         * modules/wctomb: New file.
14296         * tests/test-stdlib-c++.cc: Test signature of wctomb.
14297         * doc/posix-functions/wctomb.texi: Mention the new module.
14298         * modules/wctob (Depends-on): Add wctomb.
14299
14300 2011-02-22  Bruno Haible  <bruno@clisp.org>
14301
14302         New module 'mbtowc'.
14303         * lib/stdlib.in.h (mbtowc): New declaration.
14304         * lib/mbtowc.c: New file.
14305         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
14306         * m4/mbtowc.m4: New file.
14307         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
14308         REPLACE_MBTOWC.
14309         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
14310         REPLACE_MBTOWC.
14311         * modules/mbtowc: New file.
14312         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
14313         * doc/posix-functions/mbtowc.texi: Mention the new module.
14314         * modules/btowc (Depends-on): Add mbtowc.
14315
14316 2011-02-22  Bruno Haible  <bruno@clisp.org>
14317
14318         wcrtomb: Add more tests for native Windows platforms.
14319         * tests/test-wcrtomb-w32-1.sh: New file.
14320         * tests/test-wcrtomb-w32-2.sh: New file.
14321         * tests/test-wcrtomb-w32-3.sh: New file.
14322         * tests/test-wcrtomb-w32-4.sh: New file.
14323         * tests/test-wcrtomb-w32-5.sh: New file.
14324         * tests/test-wcrtomb-w32.c: New file.
14325         * modules/wcrtomb-tests (Files): Add them.
14326         (Makefile.am): Arrange to run these tests.
14327         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
14328         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
14329
14330 2011-02-20  Bruno Haible  <bruno@clisp.org>
14331
14332         wcrtomb: Enhance test.
14333         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
14334
14335 2011-02-20  Bruno Haible  <bruno@clisp.org>
14336
14337         mbrtowc: Tiny optimization.
14338         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
14339
14340 2011-02-20  Jim Meyering  <meyering@redhat.com>
14341
14342         test-exclude.c: remove unmatched #endif
14343         * tests/test-exclude.c: Remove stray #endif, left over from
14344         the change of a week ago.
14345
14346 2011-02-19  Jim Meyering  <meyering@redhat.com>
14347
14348         git-version-gen: skip "-dirty" check when appropriate
14349         * build-aux/git-version-gen: Don't run any git commands when the
14350         version string comes from .tarball-version.  Prior to this, we
14351         would run git update-index --refresh even from a just-unpacked
14352         tarball directory, and that could affect a .git/ directory in a
14353         parent of the build directory.  Reported by Mike Frysinger.
14354
14355 2011-02-19  Bruno Haible  <bruno@clisp.org>
14356
14357         unictype/property-byname: Reduce the size of the 'data' segment.
14358         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
14359
14360 2011-02-19  Bruno Haible  <bruno@clisp.org>
14361
14362         unictype/scripts: Reduce the size of the 'data' segment.
14363         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
14364         '%pic'.
14365         * lib/unictype/scripts_byname.gperf: Regenerated.
14366
14367 2011-02-19  Bruno Haible  <bruno@clisp.org>
14368
14369         stdint: Update documentation.
14370         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
14371
14372 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
14373
14374         stdint: omit redundant check for wchar.h
14375         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
14376         always tests whether wchar.h exists, so remove the now-redundant test.
14377
14378 2011-02-18  Bruno Haible  <bruno@clisp.org>
14379
14380         stdint: Cut dependency to module 'wchar'.
14381         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
14382         include the necessary prerequisites.
14383         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
14384         * modules/stdint (Depends-on): Remove wchar.
14385         (Makefile.am): Substitute HAVE_WCHAR_H.
14386         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
14387
14388 2011-02-18  Eric Blake  <eblake@redhat.com>
14389
14390         longlong: skip, rather than fail, on cross-compilation
14391         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
14392         when cross-compiling; regression from 2011-02-16.
14393
14394 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
14395
14396         * NEWS: Mention 2011-02-08 change to stdlib.
14397
14398 2011-02-17  Bruno Haible  <bruno@clisp.org>
14399
14400         getloadavg: Add comments about platforms.
14401         * m4/getloadavg.m4: Add comment.
14402         * lib/getloadavg.c: Likewise.
14403
14404 2011-02-17  Bruno Haible  <bruno@clisp.org>
14405
14406         getloadavg: Fix link error on Solaris 2.6.
14407         * modules/getloadavg (Link): New section.
14408         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
14409         linking test-getloadavg.
14410         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
14411         getloadavg.
14412
14413 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
14414
14415         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
14416         It was 'int', but this doesn't match the IRIX 6.5 manual.
14417         Suggested by Bruno Haible in
14418         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
14419
14420 2011-02-17  Bruno Haible  <bruno@clisp.org>
14421
14422         havelib: Fix comments.
14423         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
14424         change.
14425
14426 2011-02-17  Bruno Haible  <bruno@clisp.org>
14427
14428         havelib: Update config.rpath.
14429         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
14430
14431 2011-02-17  Bruno Haible  <bruno@clisp.org>
14432
14433         getloadavg test: Add some plausibility checks.
14434         * tests/test-getloadavg.c (check_avg): Print a warning when the value
14435         is improbable.
14436
14437 2011-02-16  Eric Blake  <eblake@redhat.com>
14438
14439         maintainer-makefile: make syntax-check a no-op from tarballs
14440         * top/maint.mk (no-vc-detected): New rule.
14441         (local-checks-available): Use it to avoid hanging if someone tries
14442         'make syntax-check' from a tarball.  Also append to any non-syntax
14443         checks already defined in cfg.mk.
14444
14445 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
14446
14447         longlong: tune, particularly for common case of c99
14448
14449         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
14450         or running anything if c99, or if unsigned long long int does not
14451         work.  In either case, we know the answer without further tests.
14452         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
14453         it at most once, and use its results for both long long int and
14454         unsigned long long int.  This is more likely to be efficient in
14455         the common case where the program wants to check for both long
14456         long int and unsigned long long int.
14457         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
14458         since the answer is already known.
14459
14460 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
14461
14462         getloadavg: set errno
14463         * lib/getloadavg.c: Set errno when returning -1.  If no other
14464         error number looks appropriate, set it to ENOSYS if the getloadavg
14465         looks like it can't possibly ever work, ENOTSUP otherwise.
14466         Suggested by Bruno Haible in
14467         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
14468
14469         getloadavg: trim unused parts and speed up 'configure'
14470         * NEWS: Document this.
14471         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
14472         always compiled if getloadavg is absent.
14473         Move test code to ...
14474         * tests/test-getloadavg.c: New file, containing previous
14475         contents of test from lib/getloadavg.c.  It also contains
14476         suggestions by Bruno Haible in
14477         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
14478         * modules/getloadavg-tests: New file.
14479         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
14480         Do tests in the same order as they're needed for getloadavg.c.
14481         Omit setgid-related tests that generate symbols KMEM_GROUP,
14482         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
14483         Do only the tests that are needed to see whether the system has
14484         getloadavg, moving the other tests into ...
14485         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
14486         NLIST_NAME_UNION; nobody should be using it.  Do not define
14487         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
14488         relevant, as the user of this module shouldn't care how getloadavg
14489         is implemented.
14490
14491         getloadavg: omit unused var
14492         * lib/getloadavg.c (getloadavg): Omit unused local variable.
14493
14494 2011-02-15  Jim Meyering  <meyering@redhat.com>
14495
14496         doc: update users.txt
14497         * users.txt: Update iwhd's URL.
14498
14499 2011-02-13  Bruno Haible  <bruno@clisp.org>
14500
14501         Consistent macro naming for macros that use GCC __attribute__.
14502         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
14503         _ATTRIBUTE_NONNULL_.
14504         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
14505         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
14506         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
14507         ATTRIBUTE_DEPRECATED.
14508         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
14509         ATTRIBUTE_NORETURN.
14510         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14511         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14512         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14513         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14514         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
14515         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
14516         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
14517         ATTRIBUTE_SENTINEL.
14518         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
14519         ATTRIBUTE_RETURN_CHECK.
14520         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
14521         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
14522         ATTRIBUTE_NORETURN.
14523         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
14524         Reported by Paul Eggert.
14525
14526 2011-02-13  Bruno Haible  <bruno@clisp.org>
14527
14528         Don't interfere with a program's definition of __attribute__.
14529         * lib/argp.h (__attribute__): Remove definition.
14530         (_GL_ATTRIBUTE_FORMAT): New macro.
14531         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
14532         * lib/argp-fmtstream.h (__attribute__): Remove definition.
14533         (_GL_ATTRIBUTE_FORMAT): New macro.
14534         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
14535         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
14536         GCC 3 or newer.
14537         * lib/error.h (__attribute__): Remove definition.
14538         (_GL_ATTRIBUTE_FORMAT): New macro.
14539         (error, error_at_line): Use it.
14540         * lib/hash.h (__attribute__): Remove definition.
14541         (ATTRIBUTE_WUR): Update definition. Define always.
14542         * lib/openat.h (__attribute__): Remove definition.
14543         (ATTRIBUTE_NORETURN): Update definition. Define always.
14544         * lib/sigpipe-die.h (__attribute__): Remove definition.
14545         (ATTRIBUTE_NORETURN): Update definition. Define always.
14546         * lib/vasnprintf.h (__attribute__): Remove definition.
14547         (_GL_ATTRIBUTE_FORMAT): New macro.
14548         (asnprintf, vasnprintf): Use it.
14549         * lib/xalloc.h (__attribute__): Remove definition.
14550         (ATTRIBUTE_NORETURN): Update definition. Define always.
14551         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
14552         * lib/xmemdup0.h (__attribute__): Remove definition.
14553         (ATTRIBUTE_NORETURN): Update definition. Define always.
14554         * lib/xprintf.h (__attribute__): Remove definition.
14555         (_GL_ATTRIBUTE_FORMAT): New macro.
14556         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
14557         * lib/xstrtol.h (__attribute__): Remove definition.
14558         (ATTRIBUTE_NORETURN): Update definition. Define always.
14559         * lib/xvasprintf.h (__attribute__): Remove definition.
14560         (_GL_ATTRIBUTE_FORMAT): New macro.
14561         (xasprintf, xvasprintf): Use it.
14562         * tests/test-argmatch.c (__attribute__): Remove definition.
14563         (ATTRIBUTE_NORETURN): Update definition. Define always.
14564         * tests/test-exclude.c (__attribute__): Remove definition.
14565         (ATTRIBUTE_NORETURN): Update definition. Define always.
14566         Reported by Paul Eggert.
14567
14568 2011-02-13  Bruno Haible  <bruno@clisp.org>
14569
14570         mbrtowc: Add more tests for native Windows platforms.
14571         * tests/test-mbrtowc-w32-1.sh: New file.
14572         * tests/test-mbrtowc-w32-2.sh: New file.
14573         * tests/test-mbrtowc-w32-3.sh: New file.
14574         * tests/test-mbrtowc-w32-4.sh: New file.
14575         * tests/test-mbrtowc-w32-5.sh: New file.
14576         * tests/test-mbrtowc-w32.c: New file.
14577         * modules/mbrtowc-tests (Files): Add them.
14578         (Makefile.am): Arrange to run these tests.
14579         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
14580         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
14581
14582 2011-02-13  Bruno Haible  <bruno@clisp.org>
14583
14584         mbrtowc: Work around native Windows bug.
14585         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
14586         guess when no suitable locale for testing was found.
14587         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
14588
14589 2011-02-13  Bruno Haible  <bruno@clisp.org>
14590
14591         mbsinit: Work around mingw bug.
14592         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
14593         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
14594         Windows.
14595         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
14596
14597 2011-02-13  Bruno Haible  <bruno@clisp.org>
14598
14599         mbsinit: Don't crash for a NULL argument.
14600         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
14601         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
14602
14603 2011-02-13  Bruno Haible  <bruno@clisp.org>
14604
14605         Don't interfere with a program's definition of __attribute__.
14606         * lib/stdio.in.h (__attribute__): Remove definition.
14607         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
14608         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
14609         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
14610         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
14611         * lib/string.in.h (__attribute__): Remove definition.
14612         Reported by Paul Eggert.
14613
14614 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14615
14616         stdlib: don't get in the way of non-GCC __attribute__
14617         See thread starting at
14618         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
14619         Revert previous stdlib change, installing the following instead:
14620         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
14621         to get in the way of a non-GCC compiler that supports __attribute__.
14622         (_GL_ATTRIBUTE_RETURN): New macro.
14623         (_Exit): Use it instead of __attribute__.
14624
14625 2011-02-12  Bruno Haible  <bruno@clisp.org>
14626
14627         quotearg test: Avoid test failure on mingw.
14628         * tests/test-quotearg.sh: Convert the locale identifier from native
14629         Windows syntax to Unix syntax.
14630
14631 2011-02-12  Bruno Haible  <bruno@clisp.org>
14632
14633         setlocale: Prefer gnulib's override over libintl's override.
14634         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
14635         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
14636         GNULIB_defined_setlocale is set.
14637
14638 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14639
14640         stdlib: support non-GCC __attribute__
14641
14642         Fix a serious and tricky problem encountered when attempting to
14643         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
14644         5.5, but it crashed due to memory corruption on Solaris 10 with
14645         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
14646         bits that are otherwise zero.  This tagging is optional inside
14647         Emacs but is preferred and is used when __attribute__ ((__aligned
14648         (8))) works, as it does with both recent-enough GCC and with Sun C
14649         5.11.  However, Sun C 5.11 is not GCC and does not #define
14650         __GNUC__ and __GNUC_MINOR__.
14651
14652         When I added the getloadavg module to Emacs, it brought in
14653         stdlib.in.h, which contained this fragment:
14654
14655            #ifndef __attribute__
14656            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
14657            #  define __attribute__(Spec)   /* empty */
14658            # endif
14659            #endif
14660
14661         When files that include <stdlib.h> were compiled with Sun C 5.11,
14662         the above code disabled __attribute__ ((__aligned (8))), which
14663         caused variables to not be properly aligned, which eventually led
14664         to the pointer corruption mentioned above.  (This was a bit hard
14665         to diagnose, unfortunately.)
14666
14667         Several "#define __attribute__(X) /* empty */" code snippets need
14668         to be eradicated from Gnulib to work with non-GCC compilers that
14669         support __attribute__.  The Autoconf way to do this is to test for
14670         each kind of attribute that we want support for, and selectively
14671         enable that in source code.
14672
14673         Fix this problem just for stdlib.h, by adding a test for the
14674         __noreturn__ attribute, and change stdlib.in.h to use that test
14675         when needed.  This technique can be easily generalized to the
14676         other *.in.h files and attributes, and a similar technique can be
14677         used for *.h and *.c files.  This patch is enough to solve the
14678         problem for Emacs + getloadavg, and I thought I'd publish it for
14679         feedback before undertaking further, similar fixes in other
14680         modules.
14681
14682         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
14683         because it's not needed for stdlib.h.  It merely substitutes the
14684         value directly into stdlib.h.  We may well need to #define it, or
14685         similar symbols, for other modules, but it's nice to also have an
14686         option to not #define it for applications like Emacs that do not
14687         need it.
14688
14689         * lib/stdlib.in.h (__attribute__): Do not #define.
14690         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
14691         be defined only if the _Exit module is also used.
14692         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
14693         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
14694         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
14695         platforms.
14696         * modules/_Exit (Files): Add m4/attribute.m4.
14697         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
14698         * m4/attribute.m4: New file.
14699
14700 2011-02-12  Bruno Haible  <bruno@clisp.org>
14701
14702         wcsrtombs: Work around bug on native Windows.
14703         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
14704         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
14705         instead of len.
14706         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
14707
14708 2011-02-12  Bruno Haible  <bruno@clisp.org>
14709
14710         mbsrtowcs: Work around bug on native Windows.
14711         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
14712         against mingw bug.
14713         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
14714
14715 2011-02-12  Bruno Haible  <bruno@clisp.org>
14716
14717         Avoid setlocale bugs in tests.
14718         * modules/btowc (Dependencies): Add setlocale.
14719         * modules/c-strcase (Dependencies): Likewise.
14720         * modules/mbmemcasecmp (Dependencies): Likewise.
14721         * modules/mbmemcasecoll (Dependencies): Likewise.
14722         * modules/mbrtowc (Dependencies): Likewise.
14723         * modules/mbscasecmp (Dependencies): Likewise.
14724         * modules/mbscasestr (Dependencies): Likewise.
14725         * modules/mbschr (Dependencies): Likewise.
14726         * modules/mbscspn (Dependencies): Likewise.
14727         * modules/mbsinit (Dependencies): Likewise.
14728         * modules/mbsncasecmp (Dependencies): Likewise.
14729         * modules/mbsnrtowcs (Dependencies): Likewise.
14730         * modules/mbspbrk (Dependencies): Likewise.
14731         * modules/mbspcasecmp (Dependencies): Likewise.
14732         * modules/mbsrchr (Dependencies): Likewise.
14733         * modules/mbsrtowcs (Dependencies): Likewise.
14734         * modules/mbsspn (Dependencies): Likewise.
14735         * modules/mbsstr (Dependencies): Likewise.
14736         * modules/nl_langinfo (Dependencies): Likewise.
14737         * modules/quotearg (Dependencies): Likewise.
14738         * modules/unicase/locale-language (Dependencies): Likewise.
14739         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
14740         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
14741         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
14742         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
14743         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
14744         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
14745         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
14746         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
14747         * modules/vasnprintf-posix (Dependencies): Likewise.
14748         * modules/wcrtomb (Dependencies): Likewise.
14749         * modules/wcsnrtombs (Dependencies): Likewise.
14750         * modules/wcsrtombs (Dependencies): Likewise.
14751
14752 2011-02-12  Bruno Haible  <bruno@clisp.org>
14753
14754         setlocale: Workaround native Windows bug.
14755         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
14756         succeeds but sets LC_CTYPE to "C", report a failure.
14757         * tests/test-setlocale2.sh: New file.
14758         * tests/test-setlocale2.c: New file.
14759         * modules/setlocale-tests (Files): Add the new files.
14760         (Makefile.am): Enable test-setlocale2.sh test.
14761         * doc/posix-functions/setlocale.texi: Mention workaround.
14762
14763 2011-02-11  Bruno Haible  <bruno@clisp.org>
14764
14765         Tests for module 'setlocale'.
14766         * modules/setlocale-tests: New file.
14767         * tests/test-setlocale1.sh: New file.
14768         * tests/test-setlocale1.c: New file.
14769
14770         New module 'setlocale'.
14771         * lib/locale.in.h (setlocale): New declaration.
14772         * lib/setlocale.c: New file, based on
14773         gettext/gettext-runtime/intl/setlocale.c.
14774         * m4/setlocale.m4: New file.
14775         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
14776         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
14777         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
14778         REPLACE_SETLOCALE.
14779         * modules/setlocale: New file.
14780         * tests/test-locale-c++.cc: Test the declaration of setlocale.
14781         * doc/posix-functions/setlocale.texi: Mention the new module.
14782
14783 2011-02-11  Bruno Haible  <bruno@clisp.org>
14784
14785         Prepare for locale dependent tests on mingw.
14786         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
14787         because it has the wrong locale encoding.
14788         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
14789         French_France.1252 instead of "fr".
14790         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
14791         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
14792         because it has the wrong locale encoding.
14793         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
14794         native Windows, try Turkish_Turkey.65001.
14795         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
14796         Chinese_China.54936.
14797
14798         Prepare for locale dependent tests on mingw.
14799         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
14800         differently.
14801         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
14802         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
14803         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
14804         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
14805
14806 2011-02-11  Eric Blake  <eblake@redhat.com>
14807
14808         strptime: avoid compiler warnings
14809         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
14810         compiler warnings about dead code.
14811         Reported by Daniel P. Berrange.
14812
14813 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
14814
14815         doc: update users.txt
14816         * users.txt: Add rcs.
14817
14818 2011-02-10  John W. Eaton  <jwe@gnu.org>
14819
14820         doc: update users.txt
14821         * users.txt: Add octave.
14822
14823 2011-02-10  Jim Meyering  <meyering@redhat.com>
14824
14825         doc: update users.txt
14826         * users.txt: Add iwhd.
14827
14828 2011-02-09  Bruno Haible  <bruno@clisp.org>
14829
14830         gnulib-tool: Make copyright notice adjustment more robust.
14831         * gnulib-tool (func_import): In sed_transform_main_lib_file,
14832         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
14833         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
14834         License".
14835         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
14836
14837 2011-02-06  Bruno Haible  <bruno@clisp.org>
14838
14839         New module 'towctrans'.
14840         * modules/towctrans: New file.
14841         * lib/wctype.in.h (towctrans): New declaration.
14842         * lib/towctrans.c: New file.
14843         * lib/towctrans-impl.h: New file.
14844         * m4/towctrans.m4: New file.
14845         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
14846         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
14847         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
14848         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
14849         * doc/posix-functions/towctrans.texi: Mention the new module.
14850
14851 2011-02-06  Bruno Haible  <bruno@clisp.org>
14852
14853         New module 'wctrans'.
14854         * modules/wctrans: New file.
14855         * lib/wctype.in.h (wctrans): New declaration.
14856         * lib/wctrans.c: New file.
14857         * lib/wctrans-impl.h: New file.
14858         * m4/wctrans.m4: New file.
14859         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
14860         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
14861         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
14862         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
14863         * doc/posix-functions/wctrans.texi: Mention the new module.
14864
14865 2011-02-06  Bruno Haible  <bruno@clisp.org>
14866
14867         New module 'iswctype'.
14868         * modules/iswctype: New file.
14869         * lib/wctype.in.h (iswctype): New declaration.
14870         * lib/iswctype.c: New file.
14871         * lib/iswctype-impl.h: New file.
14872         * m4/iswctype.m4: New file.
14873         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
14874         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
14875         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
14876         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
14877         * doc/posix-functions/iswctype.texi: Mention the new module and the
14878         HP-UX 11.00 problem.
14879
14880 2011-02-06  Bruno Haible  <bruno@clisp.org>
14881
14882         New module 'wctype'.
14883         * modules/wctype: Change to represent the wctype() substitute.
14884         * lib/wctype.in.h (wctype): New declaration.
14885         * lib/wctype.c: New file.
14886         * lib/wctype-impl.h: New file.
14887         * m4/wctype.m4: New file.
14888         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
14889         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
14890         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
14891         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
14892         * doc/posix-functions/wctype.texi: Mention the new module and the
14893         HP-UX 11.00 problem.
14894
14895 2011-02-06  Bruno Haible  <bruno@clisp.org>
14896
14897         wctype-h: Ensure wctype_t and wctrans_t are defined.
14898         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
14899         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14900         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14901         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
14902         HAVE_WCTRANS_T.
14903         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
14904
14905 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
14906
14907         flock: fix license typo
14908
14909         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
14910         omitted.
14911
14912 2011-02-08  Bruno Haible  <bruno@clisp.org>
14913
14914         Split large sed scripts, for HP-UX sed.
14915         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
14916         to avoid HP-UX limit of 99 commands, in the near future.
14917         * modules/stdlib (Makefile.am): Likewise.
14918         * modules/unistd (Makefile.am): Likewise.
14919         * modules/wchar (Makefile.am): Likewise.
14920         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14921         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
14922         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
14923
14924 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14925             Bruno Haible  <bruno@clisp.org>
14926
14927         stdlib: improve random_r modularization
14928         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
14929         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
14930         you also need the random_r module to get this material right.
14931         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
14932         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
14933         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
14934
14935 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14936
14937         stdlib: don't depend on stdint
14938         * lib/stdlib.in.h: Don't include <stdint.h> merely because
14939         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
14940         be independent of whether stdint.h is needed.
14941         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
14942         here, instead of ...
14943         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
14944         struct random_data should be using the random_r module, not just
14945         the stdlib module (which wouldn't make sense: what package needs
14946         just struct random_data without also needing random_r?).
14947         * modules/stdlib (Depends-on): Remove stdint.
14948
14949         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
14950         See the thread rooted at
14951         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
14952         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
14953         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
14954         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
14955         __VMS)); previously it was always included (via fcntl--.h).
14956         (getloadavg): Do not use c_strtod.  Instead, approximate it by
14957         hand; this is good enough for load averages.  Also, do not use
14958         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
14959         flags directly if available and don't bother otherwise.  (Packages
14960         that need the extra reliability should use the modules that define
14961         these flags on older platforms that lack them.)
14962         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
14963         fcntl-safer.
14964
14965 2011-02-08  Jim Meyering  <meyering@redhat.com>
14966
14967         di-set.h, ino-map.h: add multiple-inclusion guard
14968         Technically, the guard is required only for ino-map.h, due to its
14969         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
14970         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
14971         * lib/ino-map.h: Likewise.
14972
14973 2011-02-06  Bruno Haible  <bruno@clisp.org>
14974
14975         iswblank: Ensure declaration on glibc systems.
14976         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
14977         * modules/iswblank (Dependencies): Add 'extensions'.
14978         * doc/posix-functions/iswblank.texi: Document the glibc problem.
14979
14980 2011-02-06  Bruno Haible  <bruno@clisp.org>
14981
14982         New module 'iswblank'.
14983         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
14984         * modules/iswblank: New file.
14985         * modules/wctype-h (Files): Remove lib/iswblank.c.
14986         (Makefile.am): Substitute GNULIB_ISWBLANK.
14987         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
14988         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
14989         (gl_WCTYPE_H_DEFAULTS): New macro.
14990         (gl_WCTYPE_H): Require it. Remove iswblank related code.
14991         * modules/iswblank-tests: New file.
14992         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
14993         * tests/test-wctype-h.c (main): Remove iswblank tests.
14994         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
14995         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
14996         of 'wctype-h'.
14997         * NEWS: Mention the change.
14998         * modules/mbchar (Depends-on): Add iswblank.
14999
15000 2011-02-08  Bruno Haible  <bruno@clisp.org>
15001
15002         di-set tests: Refactor.
15003         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
15004         unnecessary includes.
15005         (ASSERT): Remove macro.
15006         (main): Make C90 compliant by avoiding variable declaration after
15007         statement.
15008         * modules/di-set-tests (Files): Add tests/macros.h.
15009
15010 2011-02-08  Bruno Haible  <bruno@clisp.org>
15011
15012         ino-map tests: Refactor.
15013         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
15014         unnecessary includes.
15015         (ASSERT): Remove macro.
15016         (main): Make C90 compliant by avoiding variable declaration after
15017         statement.
15018         * modules/ino-map-tests (Files): Add tests/macros.h.
15019
15020 2011-02-08  Jim Meyering  <meyering@redhat.com>
15021
15022         di-set: add "const" to a cast
15023         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
15024         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
15025
15026 2011-02-06  Bruno Haible  <bruno@clisp.org>
15027
15028         Rename module 'wctype' to 'wctype-h'.
15029         * modules/wctype-h: Renamed from modules/wctype.
15030         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
15031         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
15032         (Files, Depends-on, Makefile.am): Update.
15033         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
15034         (Files, Makefile.am): Update.
15035         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
15036         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
15037         * doc/posix-headers/wctype.texi: Update.
15038         * doc/posix-functions/iswalnum.texi: Update.
15039         * doc/posix-functions/iswalpha.texi: Update.
15040         * doc/posix-functions/iswblank.texi: Update.
15041         * doc/posix-functions/iswcntrl.texi: Update.
15042         * doc/posix-functions/iswdigit.texi: Update.
15043         * doc/posix-functions/iswgraph.texi: Update.
15044         * doc/posix-functions/iswlower.texi: Update.
15045         * doc/posix-functions/iswprint.texi: Update.
15046         * doc/posix-functions/iswpunct.texi: Update.
15047         * doc/posix-functions/iswspace.texi: Update.
15048         * doc/posix-functions/iswupper.texi: Update.
15049         * doc/posix-functions/iswxdigit.texi: Update.
15050         * doc/posix-functions/towlower.texi: Update.
15051         * doc/posix-functions/towupper.texi: Update.
15052         * NEWS: Mention the change.
15053         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
15054         * modules/mbchar (Dependencies): Likewise.
15055         * modules/mbswidth (Dependencies): Likewise.
15056         * modules/quotearg (Dependencies): Likewise.
15057         * modules/regex (Dependencies): Likewise.
15058         * modules/wcscasecmp (Dependencies): Likewise.
15059         * modules/wcsncasecmp (Dependencies): Likewise.
15060         * modules/wcwidth (Dependencies): Likewise.
15061
15062 2011-02-06  Bruno Haible  <bruno@clisp.org>
15063
15064         New module 'wcswidth'.
15065         * modules/wcswidth: New file.
15066         * lib/wchar.in.h (wcswidth): New declaration.
15067         * lib/wcswidth.c: New file.
15068         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
15069         * m4/wcswidth.m4: New file.
15070         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
15071         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
15072         REPLACE_WCSWIDTH.
15073         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
15074         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
15075         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
15076         * doc/posix-functions/wcswidth.texi: Mention the new module.
15077
15078 2011-02-06  Bruno Haible  <bruno@clisp.org>
15079
15080         New module 'wcstok'.
15081         * modules/wcstok: New file.
15082         * lib/wchar.in.h (wcstok): New declaration.
15083         * lib/wcstok.c: New file.
15084         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
15085         * m4/wcstok.m4: New file.
15086         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
15087         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
15088         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
15089         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
15090         * doc/posix-functions/wcstok.texi: Mention the new module.
15091
15092 2011-02-06  Bruno Haible  <bruno@clisp.org>
15093
15094         New module 'wcsstr'.
15095         * modules/wcsstr: New file.
15096         * lib/wchar.in.h (wcsstr): New declaration.
15097         * lib/wcsstr.c: New file.
15098         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
15099         * m4/wcsstr.m4: New file.
15100         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
15101         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
15102         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
15103         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
15104         * doc/posix-functions/wcsstr.texi: Mention the new module.
15105
15106 2011-02-06  Bruno Haible  <bruno@clisp.org>
15107
15108         New module 'wcspbrk'.
15109         * modules/wcspbrk: New file.
15110         * lib/wchar.in.h (wcspbrk): New declaration.
15111         * lib/wcspbrk.c: New file.
15112         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
15113         * m4/wcspbrk.m4: New file.
15114         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
15115         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
15116         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
15117         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
15118         * doc/posix-functions/wcspbrk.texi: Mention the new module.
15119
15120 2011-02-06  Bruno Haible  <bruno@clisp.org>
15121
15122         New module 'wcsspn'.
15123         * modules/wcsspn: New file.
15124         * lib/wchar.in.h (wcsspn): New declaration.
15125         * lib/wcsspn.c: New file.
15126         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
15127         * m4/wcsspn.m4: New file.
15128         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
15129         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
15130         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
15131         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
15132         * doc/posix-functions/wcsspn.texi: Mention the new module.
15133
15134 2011-02-06  Bruno Haible  <bruno@clisp.org>
15135
15136         New module 'wcscspn'.
15137         * modules/wcscspn: New file.
15138         * lib/wchar.in.h (wcscspn): New declaration.
15139         * lib/wcscspn.c: New file.
15140         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
15141         * m4/wcscspn.m4: New file.
15142         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
15143         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
15144         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
15145         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
15146         * doc/posix-functions/wcscspn.texi: Mention the new module.
15147
15148 2011-02-06  Bruno Haible  <bruno@clisp.org>
15149
15150         New module 'wcsrchr'.
15151         * modules/wcsrchr: New file.
15152         * lib/wchar.in.h (wcsrchr): New declaration.
15153         * lib/wcsrchr.c: New file.
15154         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
15155         * m4/wcsrchr.m4: New file.
15156         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
15157         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
15158         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
15159         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
15160         * doc/posix-functions/wcsrchr.texi: Mention the new module.
15161
15162 2011-02-06  Bruno Haible  <bruno@clisp.org>
15163
15164         New module 'wcschr'.
15165         * modules/wcschr: New file.
15166         * lib/wchar.in.h (wcschr): New declaration.
15167         * lib/wcschr.c: New file.
15168         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
15169         * m4/wcschr.m4: New file.
15170         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
15171         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
15172         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
15173         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
15174         * doc/posix-functions/wcschr.texi: Mention the new module.
15175
15176 2011-02-06  Bruno Haible  <bruno@clisp.org>
15177
15178         New module 'wcsdup'.
15179         * modules/wcsdup: New file.
15180         * lib/wchar.in.h (wcsdup): New declaration.
15181         * lib/wcsdup.c: New file.
15182         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
15183         * m4/wcsdup.m4: New file.
15184         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
15185         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
15186         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
15187         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
15188         * doc/posix-functions/wcsdup.texi: Mention the new module.
15189
15190 2011-02-06  Bruno Haible  <bruno@clisp.org>
15191
15192         New module 'wcsxfrm'.
15193         * modules/wcsxfrm: New file.
15194         * lib/wchar.in.h (wcsxfrm): New declaration.
15195         * lib/wcsxfrm.c: New file.
15196         * lib/wcsxfrm-impl.h: New file.
15197         * m4/wcsxfrm.m4: New file.
15198         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
15199         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
15200         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
15201         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
15202         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
15203
15204 2011-02-06  Bruno Haible  <bruno@clisp.org>
15205
15206         New module 'wcscoll'.
15207         * modules/wcscoll: New file.
15208         * lib/wchar.in.h (wcscoll): New declaration.
15209         * lib/wcscoll.c: New file.
15210         * lib/wcscoll-impl.h: New file.
15211         * m4/wcscoll.m4: New file.
15212         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
15213         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
15214         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
15215         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
15216         * doc/posix-functions/wcscoll.texi: Mention the new module.
15217
15218 2011-02-06  Bruno Haible  <bruno@clisp.org>
15219
15220         New module 'wcsncasecmp'.
15221         * modules/wcsncasecmp: New file.
15222         * lib/wchar.in.h (wcsncasecmp): New declaration.
15223         * lib/wcsncasecmp.c: New file.
15224         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
15225         * m4/wcsncasecmp.m4: New file.
15226         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
15227         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
15228         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
15229         HAVE_WCSNCASECMP.
15230         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
15231         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
15232
15233 2011-02-06  Bruno Haible  <bruno@clisp.org>
15234
15235         New module 'wcscasecmp'.
15236         * modules/wcscasecmp: New file.
15237         * lib/wchar.in.h (wcscasecmp): New declaration.
15238         * lib/wcscasecmp.c: New file.
15239         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
15240         * m4/wcscasecmp.m4: New file.
15241         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
15242         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
15243         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
15244         HAVE_WCSCASECMP.
15245         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
15246         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
15247
15248 2011-02-05  Bruno Haible  <bruno@clisp.org>
15249
15250         New module 'wcsncmp'.
15251         * modules/wcsncmp: New file.
15252         * lib/wchar.in.h (wcsncmp): New declaration.
15253         * lib/wcsncmp.c: New file.
15254         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
15255         * m4/wcsncmp.m4: New file.
15256         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
15257         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
15258         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
15259         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
15260         * doc/posix-functions/wcsncmp.texi: Mention the new module.
15261
15262 2011-02-05  Bruno Haible  <bruno@clisp.org>
15263
15264         New module 'wcscmp'.
15265         * modules/wcscmp: New file.
15266         * lib/wchar.in.h (wcscmp): New declaration.
15267         * lib/wcscmp.c: New file.
15268         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
15269         * m4/wcscmp.m4: New file.
15270         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
15271         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
15272         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
15273         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
15274         * doc/posix-functions/wcscmp.texi: Mention the new module.
15275
15276 2011-02-05  Bruno Haible  <bruno@clisp.org>
15277
15278         New module 'wcsncat'.
15279         * modules/wcsncat: New file.
15280         * lib/wchar.in.h (wcsncat): New declaration.
15281         * lib/wcsncat.c: New file.
15282         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
15283         * m4/wcsncat.m4: New file.
15284         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
15285         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
15286         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
15287         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
15288         * doc/posix-functions/wcsncat.texi: Mention the new module.
15289
15290 2011-02-05  Bruno Haible  <bruno@clisp.org>
15291
15292         New module 'wcscat'.
15293         * modules/wcscat: New file.
15294         * lib/wchar.in.h (wcscat): New declaration.
15295         * lib/wcscat.c: New file.
15296         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
15297         * m4/wcscat.m4: New file.
15298         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
15299         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
15300         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
15301         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
15302         * doc/posix-functions/wcscat.texi: Mention the new module.
15303
15304 2011-02-05  Bruno Haible  <bruno@clisp.org>
15305
15306         New module 'wcpncpy'.
15307         * modules/wcpncpy: New file.
15308         * lib/wchar.in.h (wcpncpy): New declaration.
15309         * lib/wcpncpy.c: New file.
15310         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
15311         * m4/wcpncpy.m4: New file.
15312         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
15313         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
15314         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
15315         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
15316         * doc/posix-functions/wcpncpy.texi: Mention the new module.
15317
15318 2011-02-05  Bruno Haible  <bruno@clisp.org>
15319
15320         New module 'wcsncpy'.
15321         * modules/wcsncpy: New file.
15322         * lib/wchar.in.h (wcsncpy): New declaration.
15323         * lib/wcsncpy.c: New file.
15324         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
15325         * m4/wcsncpy.m4: New file.
15326         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
15327         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
15328         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
15329         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
15330         * doc/posix-functions/wcsncpy.texi: Mention the new module.
15331
15332 2011-02-05  Bruno Haible  <bruno@clisp.org>
15333
15334         New module 'wcpcpy'.
15335         * modules/wcpcpy: New file.
15336         * lib/wchar.in.h (wcpcpy): New declaration.
15337         * lib/wcpcpy.c: New file.
15338         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
15339         * m4/wcpcpy.m4: New file.
15340         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
15341         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
15342         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
15343         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
15344         * doc/posix-functions/wcpcpy.texi: Mention the new module.
15345
15346 2011-02-05  Bruno Haible  <bruno@clisp.org>
15347
15348         New module 'wcscpy'.
15349         * modules/wcscpy: New file.
15350         * lib/wchar.in.h (wcscpy): New declaration.
15351         * lib/wcscpy.c: New file.
15352         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
15353         * m4/wcscpy.m4: New file.
15354         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
15355         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
15356         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
15357         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
15358         * doc/posix-functions/wcscpy.texi: Mention the new module.
15359
15360 2011-02-05  Bruno Haible  <bruno@clisp.org>
15361
15362         New module 'wcsnlen'.
15363         * modules/wcsnlen: New file.
15364         * lib/wchar.in.h (wcsnlen): New declaration.
15365         * lib/wcsnlen.c: New file.
15366         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
15367         * m4/wcsnlen.m4: New file.
15368         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
15369         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
15370         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
15371         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
15372         * doc/posix-functions/wcsnlen.texi: Mention the new module.
15373
15374 2011-02-05  Bruno Haible  <bruno@clisp.org>
15375
15376         New module 'wcslen'.
15377         * modules/wcslen: New file.
15378         * lib/wchar.in.h (wcslen): New declaration.
15379         * lib/wcslen.c: New file.
15380         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
15381         * m4/wcslen.m4: New file.
15382         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
15383         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
15384         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
15385         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
15386         * doc/posix-functions/wcslen.texi: Mention the new module.
15387
15388 2011-02-05  Bruno Haible  <bruno@clisp.org>
15389
15390         New module 'wmemset'.
15391         * modules/wmemset: New file.
15392         * lib/wchar.in.h (wmemset): New declaration.
15393         * lib/wmemset.c: New file.
15394         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
15395         * m4/wmemset.m4: New file.
15396         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
15397         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
15398         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
15399         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
15400         * doc/posix-functions/wmemset.texi: Mention the new module.
15401
15402 2011-02-05  Bruno Haible  <bruno@clisp.org>
15403
15404         New module 'wmemmove'.
15405         * modules/wmemmove: New file.
15406         * lib/wchar.in.h (wmemmove): New declaration.
15407         * lib/wmemmove.c: New file.
15408         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
15409         * m4/wmemmove.m4: New file.
15410         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
15411         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
15412         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
15413         HAVE_WMEMMOVE.
15414         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
15415         * doc/posix-functions/wmemmove.texi: Mention the new module.
15416
15417 2011-02-05  Bruno Haible  <bruno@clisp.org>
15418
15419         New module 'wmemcpy'.
15420         * modules/wmemcpy: New file.
15421         * lib/wchar.in.h (wmemcpy): New declaration.
15422         * lib/wmemcpy.c: New file.
15423         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
15424         * m4/wmemcpy.m4: New file.
15425         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
15426         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
15427         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
15428         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
15429         * doc/posix-functions/wmemcpy.texi: Mention the new module.
15430
15431 2011-02-05  Bruno Haible  <bruno@clisp.org>
15432
15433         New module 'wmemcmp'.
15434         * modules/wmemcmp: New file.
15435         * lib/wchar.in.h (wmemcmp): New declaration.
15436         * lib/wmemcmp.c: New file.
15437         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
15438         * m4/wmemcmp.m4: New file.
15439         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
15440         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
15441         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
15442         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
15443         * doc/posix-functions/wmemcmp.texi: Mention the new module.
15444
15445 2011-02-07  Jim Meyering  <meyering@redhat.com>
15446
15447         di-set, ino-map: new modules, from coreutils
15448         * lib/di-set.c: New file.
15449         * lib/di-set.h: Likewise.
15450         * lib/ino-map.c: Likewise.
15451         * lib/ino-map.h: Likewise.
15452         * modules/di-set: Likewise.
15453         * modules/di-set-tests: Likewise.
15454         * modules/ino-map: Likewise.
15455         * modules/ino-map-tests: Likewise.
15456         * tests/test-di-set.c: Likewise.
15457         * tests/test-ino-map.c: Likewise.
15458
15459 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
15460
15461         getloadavg: merge minor changes from Emacs
15462
15463         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
15464         (getloadavg): Use memset, not bzero.
15465
15466         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
15467         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
15468         clash (bug#86).
15469
15470 2010-11-14  Bruno Haible  <bruno@clisp.org>
15471
15472         Allow multiple gnulib generated replacements to coexist.
15473         * lib/getopt.in.h (struct option): Avoid identical redefinition.
15474         * lib/inttypes.in.h (imaxdiv_t): Likewise.
15475         * lib/langinfo.in.h (nl_item): Likewise.
15476         * lib/math.in.h (_NaN, NAN): Likewise.
15477         * lib/netdb.in.h (struct addrinfo): Likewise.
15478         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
15479         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
15480         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
15481         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
15482         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
15483         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
15484         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
15485         pthread_mutexattr_init, pthread_mutexattr_settype,
15486         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
15487         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
15488         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
15489         pthread_spin_trylock, pthread_spin_unlock): Likewise.
15490         * lib/sched.in.h (struct sched_param): Likewise.
15491         * lib/se-selinux.in.h (security_class_t, security_context_t,
15492         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
15493         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
15494         lsetfilecon, fsetfilecon, security_check_context,
15495         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
15496         Likewise.
15497         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
15498         Likewise.
15499         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
15500         _gl_function_taking_int_returning_void_t, union sigval,
15501         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
15502         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
15503         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
15504         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
15505         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
15506         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
15507         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
15508         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
15509         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
15510         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
15511         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
15512         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
15513         socklen_t, rpl_fd_isset): Likewise.
15514         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
15515         * lib/sys_time.in.h (struct timeval): Likewise.
15516         * lib/sys_times.in.h (struct tms): Likewise.
15517         * lib/sys_utsname.in.h (struct utsname):
15518         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
15519         * lib/unistd.in.h (getpagesize): Likewise.
15520         * lib/wchar.in.h (mbstate_t): Likewise.
15521         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
15522         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
15523         towlower, towupper): Likewise.
15524         Reported by Sam Steingold <sds@gnu.org>.
15525
15526 2011-02-05  Eric Blake  <eblake@redhat.com>
15527
15528         unsetenv: work around Haiku issues
15529         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
15530         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
15531
15532 2010-12-30  Bruce Korb  <bkorb@gnu.org>
15533
15534         libposix: avoid calling error() within libposix
15535         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
15536         is defined.
15537
15538 2011-02-05  Eric Blake  <eblake@redhat.com>
15539
15540         strerror_r-posix: port to cygwin
15541         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
15542         implementation.
15543         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
15544         * tests/test-strerror_r.c (main): Fix test.
15545         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
15546         issue.
15547
15548 2011-02-05  Bruno Haible  <bruno@clisp.org>
15549
15550         New module 'wmemchr'.
15551         * modules/wmemchr: New file.
15552         * lib/wchar.in.h (wmemchr): New declaration.
15553         * lib/wmemchr.c: New file.
15554         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
15555         * m4/wmemchr.m4: New file.
15556         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
15557         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
15558         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
15559         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
15560         * doc/posix-functions/wmemchr.texi: Mention the new module.
15561
15562 2011-02-04  Eric Blake  <eblake@redhat.com>
15563
15564         fdopendir: detect FreeBSD bug
15565         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
15566         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
15567
15568 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
15569
15570         stdbool: do not define HAVE_STDBOOL_H
15571         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
15572         AC_HEADER_STDBOOL.  All uses changed.  Do not define
15573         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
15574         imported from the latest Autoconf git.  It was motivated by Emacs,
15575         which uses gnulib but does not need HAVE_STDBOOL_H.
15576
15577 2011-02-04  Bruno Haible  <bruno@clisp.org>
15578
15579         wcsnrtombs: Prepare for new module wwcsnrtombs.
15580         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
15581         * lib/wcsnrtombs.c: Include it.
15582         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
15583
15584         wcsrtombs: Prepare for new module wwcsrtombs.
15585         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
15586         * lib/wcsrtombs.c: Include it.
15587         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
15588
15589         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
15590         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
15591         * lib/mbsnrtowcs.c: Include it.
15592         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
15593
15594         mbsrtowcs: Prepare for new module mbsrtowwcs.
15595         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
15596         * lib/mbsrtowcs.c: Include it.
15597         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
15598
15599 2011-02-04  Bruno Haible  <bruno@clisp.org>
15600
15601         vasnprintf: Reduce use of malloc for small format strings.
15602         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
15603         (arguments): Add room for the first 7 arguments.
15604         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
15605         (char_directives, u8_directives, u16_directives, u32_directives): Add
15606         room for the first 7 directives.
15607         * lib/printf-parse.c: Include <string.h>.
15608         (PRINTF_PARSE): Change memory handling code so that it uses the first
15609         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
15610         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
15611         Reported by Pádraig Brady <P@draigbrady.com>.
15612
15613 2011-01-31  Eric Blake  <eblake@redhat.com>
15614
15615         dup2: work around Haiku bug
15616         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
15617         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
15618         * doc/posix-functions/dup2.texi (dup2): Document the bug.
15619         * tests/test-dup2.c (main): Enhance test.
15620
15621 2011-01-31  Simon Josefsson  <simon@josefsson.org>
15622
15623         doc: off_t is not available in eglibc 2.11.2 stdio.h.
15624         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
15625         declared by eglibc 2.11.2.
15626         * lib/stdio.in.h: Likewise.
15627
15628 2011-01-31  Eric Blake  <eblake@redhat.com>
15629
15630         ignore-value: add missing test dependency
15631         * tests/test-ignore-value.c: Revert previous change; stdio.h
15632         provides off_t.
15633         * modules/ignore-value-tests (Depends-on): Add missing dependency.
15634
15635 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
15636
15637         mktime: clarify long_int width checking
15638         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
15639         the top level, to make it clearer that the assumption about
15640         long_int width is being checked.  See
15641         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
15642
15643 2011-01-30  Simon Josefsson  <simon@josefsson.org>
15644
15645         ignore-value: Fix self-test.
15646         * tests/test-ignore-value.c: Include sys/types.h for off_t.
15647
15648 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
15649
15650         TYPE_MAXIMUM: avoid theoretically undefined behavior
15651         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
15652         negative number, which the C Standard says has undefined behavior.
15653         In practice this is not a problem, but might as well do it by the book.
15654         Reported by Rich Felker and Eric Blake; see
15655         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
15656         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
15657         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
15658         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15659         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
15660         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15661         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
15662
15663         mktime: #undef mktime before #defining it
15664         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
15665
15666         mktime: systematically normalize tm_isdst comparisons
15667         * lib/mktime.c (isdst_differ): New function.
15668         (__mktime_internal): Use it systematically for all isdst comparisons.
15669         This completes the fix for libc BZ #6723, and removes the need for
15670         normalizing tm_isdst.  See
15671         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
15672         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
15673
15674         mktime: fix some integer overflow issues and sidestep the rest
15675
15676         This was prompted by a bug report by Benjamin Lindner for MinGW
15677         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
15678         His bug is due to signed integer overflow (0 - INT_MIN), and I
15679         I scanned through mktime.c looking for other integer overflow
15680         problems, fixing all the bugs I found.
15681
15682         Although the C Standard says the resulting code is still not safe
15683         in the presence of integer overflow, in practice it should be good
15684         enough for all real-world two's-complement implementations, except
15685         for debugging environments that deliberately trap on integer
15686         overflow (e.g., gcc -ftrapv).
15687
15688         * lib/mktime.c (WRAPV): New macro.
15689         (SHR): Also check that long_int and time_t shift right in the
15690         usual way, before using the fast-but-unportable method.
15691         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
15692         used.  The code already assumed two's complement, so there's
15693         no need to test for alternatives.  All uses removed.
15694         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
15695         the C standard.  Problem reported by Rich Felker in
15696         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
15697         (twos_complement_arithmetic): Also check long_int and time_t.
15698         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
15699         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
15700         (__mktime_internal): Avoid integer overflow with unary subtraction
15701         in two instances where -1 - X is an adequate replacement for -X,
15702         since the calculations are approximate.
15703
15704 2011-01-29  Eric Blake  <eblake@redhat.com>
15705
15706         mktime: avoid infinite loop
15707         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
15708         type; behavior is still undefined but portable to all known targets.
15709         Reported by Rich Felker.
15710
15711 2011-01-29  Simon Josefsson  <simon@josefsson.org>
15712
15713         rename, unlink, same-inode: Relicense.
15714         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
15715         * modules/unlink (License): Likewise.
15716         * modules/same-inode (License): Likewise.
15717
15718 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
15719
15720         mktime: avoid problems on NetBSD 5 / i386
15721         * lib/mktime.c (long_int): New type.  This works around a problem
15722         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
15723         but time_t is 64 bits, and where I expect the existing code is
15724         wrong in some cases.
15725         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
15726         (ydhms_diff): Bring back the compile-time check for wide-enough
15727         year and yday.
15728
15729         mktime: fix misspelling in comment
15730         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
15731         This merges all recent glibc changes of importance.
15732
15733 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15734
15735         move-if-change: cope with concurrent mv of identical file.
15736         * build-aux/move-if-change (CMPPROG): Accept environment
15737         variable as an override for `cmp'.
15738         (usage): Document CMPPROG.
15739         Adjust comparison to drop stdout.  Cope with failure of mv if
15740         the target file exists and is identical to the source, for
15741         parallel builds.
15742         Report from H.J. Lu against binutils in PR binutils/12283.
15743
15744 2011-01-28  Bruce Korb  <bkorb@gnu.org>
15745
15746         * users.txt: Mention sharutils.
15747
15748 2011-01-28  Simon Josefsson  <simon@josefsson.org>
15749
15750         * users.txt: Mention OATH Toolkit.
15751
15752 2011-01-27  Bruno Haible  <bruno@clisp.org>
15753
15754         Prepare for supporting FreeBSD 10.
15755         * build-aux/config.libpath: Remove handling of freebsd1*.
15756
15757 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
15758
15759         Prepare for supporting FreeBSD 10.
15760         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
15761         match FreeBSD 10.0.
15762
15763 2011-01-27  Bruno Haible  <bruno@clisp.org>
15764
15765         vma-iter, get-rusage-as: Add OpenBSD support.
15766         * modules/vma-iter (configure.ac): Test for mquery.
15767         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
15768         * lib/vma-iter.c: Include <sys/mman.h>.
15769         (vma_iterate): Add an implementation based on mquery().
15770         * lib/resource-ext.h (get_rusage_as): Update comments.
15771         * lib/get-rusage-as.c: Likewise.
15772         * lib/get-rusage-data.c: Likewise.
15773
15774 2011-01-26  Karl Berry  <karl@gnu.org>
15775
15776         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
15777         variables to make it easier to override the makeinfo program used.
15778
15779 2011-01-26  Eric Blake  <eblake@redhat.com>
15780
15781         fcntl: work around Haiku F_DUPFD bugs
15782         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
15783         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
15784         cloexec bit on duplication.
15785         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
15786
15787 2011-01-26  Bruno Haible  <bruno@clisp.org>
15788
15789         Enable memory leak tests on AIX.
15790         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
15791         * tests/test-fprintf-posix3.c (main): Likewise.
15792
15793 2011-01-26  Bruno Haible  <bruno@clisp.org>
15794
15795         Tests for module 'get-rusage-data'.
15796         * modules/get-rusage-data-tests: New file.
15797         * tests/test-get-rusage-data.c: New file.
15798
15799         New module 'get-rusage-data'.
15800         * lib/resource-ext.h (get_rusage_data): New declaration.
15801         * lib/get-rusage-data.c: New file.
15802         * modules/get-rusage-data: New file.
15803
15804 2011-01-25  Bruno Haible  <bruno@clisp.org>
15805
15806         get-rusage-as: Allow for easier testing.
15807         * lib/resource-ext.h (get_rusage_as): Add comment.
15808         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
15809         (main): New function for interactive testing.
15810
15811 2011-01-25  Bruno Haible  <bruno@clisp.org>
15812
15813         vma-iter: Treat Haiku like BeOS.
15814         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
15815         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
15816
15817 2011-01-25  Eric Blake  <eblake@redhat.com>
15818
15819         c-stack: fix regression on cygwin when libsigsegv is present
15820         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
15821
15822 2011-01-24  Bruno Haible  <bruno@clisp.org>
15823
15824         vma-iter: Avoid empty intervals.
15825         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
15826         on an empty interval.
15827
15828 2011-01-24  Jim Meyering  <meyering@redhat.com>
15829
15830         u64: remove unnecessary #include
15831         * lib/u64.h: Don't include <stddef.h>.  It was not used.
15832
15833 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
15834
15835         Allow the user to avoid the HAVE_RAW_DECL_* macros.
15836         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
15837
15838 2011-01-23  Bruno Haible  <bruno@clisp.org>
15839
15840         New module 'vma-iter'.
15841         * lib/vma-iter.h: New file.
15842         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
15843         * modules/vma-iter: New file.
15844         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
15845         for get_rusage_as_via_iterator.
15846         (vma_iterate_callback): New function.
15847         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
15848         * modules/get-rusage-as (Depends-on): Add vma-iter.
15849
15850 2011-01-23  Bruno Haible  <bruno@clisp.org>
15851
15852         uninorm: Tweak includes.
15853         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
15854         Reported by Jim Meyering.
15855
15856 2011-01-23  Bruno Haible  <bruno@clisp.org>
15857
15858         get-rusage-as: Improve on NetBSD.
15859         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
15860         /proc, like on FreeBSD.
15861
15862 2011-01-23  Jim Meyering  <meyering@redhat.com>
15863
15864         xreadlink.h: remove unnecessary #include
15865         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
15866
15867         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
15868         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
15869
15870 2011-01-23  Bruno Haible  <bruno@clisp.org>
15871
15872         get-rusage-as: Fix bug.
15873         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
15874         original limit when aborting the first loop.
15875
15876 2011-01-23  Bruno Haible  <bruno@clisp.org>
15877
15878         wctype: Ensure valid C syntax.
15879         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
15880         unconditionally, instead of gl_NEXT_HEADERS conditionally.
15881
15882 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
15883
15884         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
15885         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
15886         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
15887         as they are needed only for configure's test case.
15888         This removes two unnecessary symbols from config.h.
15889
15890         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
15891         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
15892         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
15893         AC_CHECK_HEADERS_ONCE on a header that we also invoke
15894         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
15895         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
15896         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
15897         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
15898         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
15899         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15900         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
15901         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15902         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15903         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15904         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
15905         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15906         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
15907         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
15908
15909 2011-01-21  Eric Blake  <eblake@redhat.com>
15910
15911         maintainer-makefile: work with older git for submodule check
15912         * top/maint.mk (public-submodule-commit): Rewrite to avoid
15913         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
15914         Reported by Matthias Bolte.
15915
15916         bootstrap: minor portability fixes
15917         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
15918         (usage): Omit leading capital and trailing . on help phrases, per
15919         GNU Coding Standards.
15920         (check_versions, top level): Prefix messages with script name.
15921
15922 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
15923
15924         bootstrap: support --no-git option
15925         * build-aux/bootstrap: Add --no-git option, to be used when
15926         --gnulib-srcdir points to the exact desired checkout.
15927
15928 2011-01-21  Eric Blake  <eblake@redhat.com>
15929
15930         strerror_r-posix: work with glibc 2.13
15931         * lib/strerror_r.c (strerror_r): Fix return type.
15932
15933 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15934             Bruno Haible  <bruno@clisp.org>
15935
15936         uN_strstr: New unit tests.
15937         * modules/unistr/u8-strstr-tests: New file.
15938         * modules/unistr/u16-strstr-tests: New file.
15939         * modules/unistr/u32-strstr-tests: New file.
15940         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
15941         * tests/unistr/test-u8-strstr.c: New file.
15942         * tests/unistr/test-u16-strstr.c: New file.
15943         * tests/unistr/test-u32-strstr.c: New file.
15944
15945 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15946             Bruno Haible  <bruno@clisp.org>
15947
15948         Make uN_strstr functions O(n) worst-case.
15949         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
15950         16-bit and 32-bit unit cases, use the unibyte algorithm from
15951         lib/mbsstr.c.
15952         * lib/unistr/u8-strstr.c: Include <string.h>.
15953         (UNIT_IS_UINT8_T): New macro.
15954         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
15955         (U_STRLEN, U_STRNLEN): New macros.
15956         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
15957         (U_STRLEN, U_STRNLEN): New macros.
15958         * modules/unistr/u8-strstr (Depends-on): Add strstr.
15959         (configure.ac): Update required libunistring version.
15960         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
15961         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
15962         malloca.
15963         (configure.ac): Update required libunistring version.
15964         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
15965         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
15966         malloca.
15967         (configure.ac): Update required libunistring version.
15968
15969 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15970             Bruno Haible  <bruno@clisp.org>
15971
15972         Prepare for faster uN_strstr functions.
15973         * lib/str-kmp.h: Support definable UNITs.
15974         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
15975         needle_len argument.
15976         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
15977         * lib/mbscasestr.c (mbscasestr): Likewise.
15978
15979 2011-01-21  Pádraig Brady <P@draigBrady.com>
15980
15981         malloca-tests: make faster by unsetting MALLOC_PERTURB_
15982         * tests/test-malloca.c (main): Unset the environment variable
15983         to greatly speed up the test.
15984         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
15985         * modules/malloca-tests: Depend on unsetenv.
15986
15987 2011-01-21  Pádraig Brady <P@draigBrady.com>
15988
15989         ignore-value: remove stdint dependency
15990         * lib/ignore-value.h: Remove <stdint.h>
15991         * modules/ignore-value: Remove stdint dependency.
15992
15993 2011-01-21  Jim Meyering  <meyering@redhat.com>
15994
15995         maint.mk: adjust variable name to be consistent with other gl_ vars
15996         * top/maint.mk (gl_public_submodule_commit): Rename the variable
15997         to be lower case.
15998
15999 2011-01-20  Jim Meyering  <meyering@redhat.com>
16000
16001         maint.mk: make "check" depend on public-submodule-commit by default
16002         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
16003
16004 2011-01-20  Bruno Haible  <bruno@clisp.org>
16005
16006         mbfile, mbiter: Complete change from 2008-12-21.
16007         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
16008         * m4/mbiter.m4 (gl_MBITER): Likewise.
16009
16010 2011-01-20  Jim Meyering  <meyering@redhat.com>
16011
16012         init.sh: insert space between each function name and "()"
16013         * tests/init.sh: Make it a little easier to see that a function's
16014         name is "warn_", and not "warn" when looking at the first part of
16015         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
16016
16017 2011-01-20  Jim Meyering  <meyering@redhat.com>
16018
16019         mountlist: clean up code formatting
16020         * lib/mountlist.c (read_file_system_list): Split a long line,
16021         correct bracing style, use NULL in place of "(struct statfs *)0",
16022         don't parenthesize return value, add spaces around "=" and after
16023         ";-in-for-stmt".
16024
16025 2011-01-14  Markus Duft <mduft@gentoo.org>
16026
16027         mountlist: add support for Interix
16028         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
16029         Apply statvfs to all entries of /dev/fs.
16030         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
16031         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
16032
16033 2011-01-20  Jim Meyering  <meyering@redhat.com>
16034
16035         maint.mk: improve the public-submodule-commit rule
16036         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
16037         to suppress printing of its commands... unless V=1.
16038         Add git submodule's --quiet option to suppress printing of e.g.,
16039         "Entering gnulib" output.
16040         "cd" into $(srcdir) before running git submodule.
16041
16042 2011-01-20  Bruno Haible  <bruno@clisp.org>
16043
16044         include_next: Fix bug introduced on 2011-01-18.
16045         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
16046         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
16047         ac_cv_header_... variable if the second argument is not 'check'.
16048         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
16049         gl_NEXT_HEADERS_INTERNAL.
16050
16051 2011-01-20  Bruno Haible  <bruno@clisp.org>
16052
16053         Allow the user to avoid the GNULIB_TEST_* macros.
16054         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
16055         Suggested by Paul Eggert.
16056
16057 2011-01-14  Jim Meyering  <meyering@redhat.com>
16058
16059         bootstrap: avoid failure when there is no .gitmodules file
16060         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
16061         has been assigned to, even when its value is the empty string.
16062         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
16063         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
16064         Reported by John W. Eaton <jwe@gnu.org>.
16065
16066 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
16067
16068         assume <ctype.h>, ..., <time.h> exist
16069         For years gnulib has been assuming the existence of the headers
16070         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
16071         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
16072         them, since they don't appear to be needed.
16073         * README (Portability guidelines): Document this.
16074         * lib/flock.c: Assume <fcntl.h> exists.
16075         * lib/regex_internal.h: Assume <locale.h> exists.
16076         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
16077         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
16078         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
16079         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
16080         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
16081         * m4/regex.m4 (gl_REGEX): Likewise.
16082         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
16083         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
16084         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
16085         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
16086         * tests/test-argp.c: Likewise.
16087         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
16088
16089         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
16090         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
16091         AA_APPLE_UNIVERSAL_BUILD.  See
16092         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
16093         * NEWS: Document this.
16094
16095 2011-01-19  Eric Blake  <eblake@redhat.com>
16096
16097         c-stack: assume stack overflow if SA_SIGINFO unsupported
16098         * lib/c-stack.c (SIGACTION_WORKS): Rename...
16099         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
16100         sigaction will work.
16101         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
16102         behavior match Linux.
16103         * tests/test-c-stack.c (main): Prefer NULL for pointers.
16104
16105         stdbool-tests: accomodate Haiku
16106         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
16107
16108         binary-io: fix O_TEXT on Haiku
16109         * modules/binary-io (Depends-on): Add fcntl-h.
16110         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
16111         than blindly undefining O_TEXT.
16112         Reported by Scott McCreary.
16113
16114 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
16115
16116         include_next: do not check for standard headers like stddef.h
16117
16118         I found this problem when modifying Emacs to use gnulib.
16119         I noticed that it added HAVE_STDDEF_H to config.h, even though
16120         gnulib always assumes <stddef.h> exists as per README and this
16121         symbol is unnecessary.
16122         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
16123         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
16124         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
16125         faster for headers like stddef.h that are known to exist.
16126         (gl_CHECK_NEXT_HEADERS): Use it.
16127         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
16128         rather than gl_CHECK_NEXT_HEADERS.
16129         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
16130         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
16131
16132 2011-01-18  Eric Blake  <eblake@redhat.com>
16133
16134         ansi-c++-opt: skip C++ dependency style if C++ is unused
16135         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
16136         tests when we know C++ compilation is not desired.
16137         Reported by Scott McCreary.
16138
16139 2011-01-18  Bruno Haible  <bruno@clisp.org>
16140
16141         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
16142         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
16143         (main): Perform test also when getrlimit and setrlimit don't exist or
16144         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
16145         limiting the address space size using setrlimit, compare the address
16146         space size before and after the the test.
16147         * tests/test-dprintf-posix2.c: Likewise.
16148         * tests/test-fprintf-posix3.sh: Update skip messages.
16149         * tests/test-dprintf-posix2.sh: Likewise.
16150         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
16151         * modules/dprintf-posix-tests (Depends-on): Likewise.
16152         Reported by Bruce Korb <bkorb@gnu.org> and
16153         Gary V. Vaughan <gary@gnu.org>.
16154
16155 2011-01-18  Bruno Haible  <bruno@clisp.org>
16156
16157         get-rusage-as: Improvement for Cygwin.
16158         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
16159         areas that are merely reserved.
16160
16161 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
16162
16163         strftime: remove dependencies on multibyte modules
16164
16165         strftime depended on mbrlen, mbsinit, and wchar, but these modules
16166         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
16167         only if __osf__ is defined, and I suspect OSF doesn't need these
16168         other modules.  If my guess is wrong, we'll need to come up with a
16169         variant of strftime that doesn't need the multibyte modules.
16170
16171         I discovered this problem when attempting modify Emacs to use the
16172         strftime module.  With the previous gnulib, this caused Emacs to
16173         need 31 new files, ranging from lib/config.charset to
16174         m4/wint_t.m4.  This was overkill and I expect would be offputting
16175         to the Emacs maintainers.  After this change, only 6 new files are
16176         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
16177         stdbool.m4, and tm_gmtoff.m4.
16178
16179         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
16180         Suggested by Bruno Haible in
16181         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
16182         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
16183         and do not check for wchar.h.
16184         * modules/strftime (Files): Remove m4/mbstate_t.m4.
16185         (Depends-on): Remove mbrlen, mbsinit, wchar.
16186
16187 2011-01-18  Bruno Haible  <bruno@clisp.org>
16188
16189         Tests for module 'get-rusage-as'.
16190         * modules/get-rusage-as-tests: New file.
16191         * tests/test-get-rusage-as.c: New file.
16192
16193         New module 'get-rusage-as'.
16194         * modules/get-rusage-as: New file.
16195         * lib/resource-ext.h: New file.
16196         * lib/get-rusage-as.c: New file.
16197
16198 2011-01-17  Eric Blake  <eblake@redhat.com>
16199
16200         sigaction: relax license from LGPLv3+ to LGPLv2+
16201         * modules/sigaction (License): Relax to LGPLv2+.
16202
16203 2011-01-14  Bruno Haible  <bruno@clisp.org>
16204
16205         filemode: Make function declarations usable in C++ mode.
16206         * lib/filemode.h: Enclose function declarations in extern "C" block.
16207         Reported by John W. Eaton <jwe@gnu.org>.
16208
16209 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
16210
16211         save-cwd: no longer include "xgetcwd.h"
16212         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
16213         This avoids a compilation failure in projects that use save-cwd
16214         without also using the xgetcwd module.
16215
16216 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
16217
16218         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
16219         This is so that a program like Emacs, which needs only dtoastr,
16220         does not have to bother with distributing and compiling ftoastr
16221         and ldtoastr.
16222         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
16223         * modules/dtoastr, modules/ldtoastr: New files.
16224         * modules/ftoastr: Now works just for 'float'.
16225         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
16226         (Makefile.am): Remove ftoastr.h (not needed and no effect),
16227         dtoastr.c, ldtoastr.c.
16228
16229 2011-01-11  Jim Meyering  <meyering@redhat.com>
16230
16231         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
16232         There is no need to work around the lack of the fchdir function,
16233         since gnulib can now provide a replacement when required.
16234         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
16235         * modules/save-cwd (Depends-on): Add fchdir.
16236
16237 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
16238
16239         openat, save-cwd: avoid xmalloc
16240
16241         This removes a direct (but undocumented) dependency of openat on
16242         xalloc, along with an indirect dependency via save-cwd.  It also
16243         removes a dependency of save-cwd on xgetcwd, and thereby
16244         indirectly on xalloc.  This change causes the openat substitute
16245         to fall back on save_cwd when memory is tight, and for save_cwd to
16246         fail instead of dying when memory is tight, but that's good enough.
16247         Problem and initial idea for fix reported by Bastien Roucaries in
16248         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
16249
16250         * lib/openat-proc.c: Include stdlib.h (for malloc), not
16251         xalloc.h (for xmalloc).
16252         (openat_proc_name): Use malloc, not xmalloc.
16253         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
16254         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
16255
16256         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
16257         This avoids heap allocation for file names whose lengths are in
16258         the range 512..1023, with the upper bound increasing to at most
16259         4031 depending on the platform's PATH_MAX.  (We do not want
16260         pathmax.h here as it might supply a non-constant PATH_MAX.)
16261         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
16262         Perhaps they should be moved to malloca.h?
16263         (OPENAT_BUFFER_SIZE): Use them.
16264
16265 2011-01-10  Bruno Haible  <bruno@clisp.org>
16266
16267         doc: Update users.txt.
16268         * users.txt: Add recutils.
16269
16270 2011-01-09  Karl Berry  <karl@gnu.org>
16271
16272         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
16273
16274         * doc/configmake.texi: New file.
16275         * doc/gnulib.texi: Include it.
16276         * modules/configmake: Move documentation from here.
16277
16278 2011-01-09  Bruno Haible  <bruno@clisp.org>
16279
16280         Update to Unicode 6.0.0.
16281         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
16282         (get_lbp): Update for Unicode 6.0.0.
16283         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
16284         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
16285         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
16286         U+11001, U+11038..U+11046. Remove U+06DE.
16287         (uc_width): Fix bounds of planes.
16288         * tests/uniwidth/test-uc_width2.sh: Same updates as in
16289         lib/uniwidth/width.c.
16290         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
16291         trailing whitespace removed.
16292         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
16293         without comments, but with the original copyright notice.
16294         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
16295         * lib/unicase/ignorable.h: Likewise.
16296         * lib/unicase/tocasefold.h: Likewise.
16297         * lib/unicase/tolower.h: Likewise.
16298         * lib/unicase/totitle.h: Likewise.
16299         * lib/unicase/toupper.h: Likewise.
16300         * lib/unictype/bidi_of.h: Likewise.
16301         * lib/unictype/blocks.h: Likewise.
16302         * lib/unictype/categ_C.h: Likewise.
16303         * lib/unictype/categ_Cn.h: Likewise.
16304         * lib/unictype/categ_L.h: Likewise.
16305         * lib/unictype/categ_Ll.h: Likewise.
16306         * lib/unictype/categ_Lm.h: Likewise.
16307         * lib/unictype/categ_Lo.h: Likewise.
16308         * lib/unictype/categ_Lu.h: Likewise.
16309         * lib/unictype/categ_M.h: Likewise.
16310         * lib/unictype/categ_Mc.h: Likewise.
16311         * lib/unictype/categ_Me.h: Likewise.
16312         * lib/unictype/categ_Mn.h: Likewise.
16313         * lib/unictype/categ_N.h: Likewise.
16314         * lib/unictype/categ_Nd.h: Likewise.
16315         * lib/unictype/categ_No.h: Likewise.
16316         * lib/unictype/categ_P.h: Likewise.
16317         * lib/unictype/categ_Po.h: Likewise.
16318         * lib/unictype/categ_S.h: Likewise.
16319         * lib/unictype/categ_Sc.h: Likewise.
16320         * lib/unictype/categ_Sk.h: Likewise.
16321         * lib/unictype/categ_Sm.h: Likewise.
16322         * lib/unictype/categ_So.h: Likewise.
16323         * lib/unictype/categ_of.h: Likewise.
16324         * lib/unictype/combining.h: Likewise.
16325         * lib/unictype/ctype_alnum.h: Likewise.
16326         * lib/unictype/ctype_alpha.h: Likewise.
16327         * lib/unictype/ctype_graph.h: Likewise.
16328         * lib/unictype/ctype_lower.h: Likewise.
16329         * lib/unictype/ctype_print.h: Likewise.
16330         * lib/unictype/ctype_punct.h: Likewise.
16331         * lib/unictype/ctype_upper.h: Likewise.
16332         * lib/unictype/decdigit.h: Likewise.
16333         * lib/unictype/digit.h: Likewise.
16334         * lib/unictype/numeric.h: Likewise.
16335         * lib/unictype/pr_alphabetic.h: Likewise.
16336         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
16337         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
16338         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16339         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
16340         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
16341         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
16342         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
16343         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
16344         * lib/unictype/pr_case_ignorable.h: Likewise.
16345         * lib/unictype/pr_cased.h: Likewise.
16346         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
16347         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
16348         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
16349         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
16350         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
16351         * lib/unictype/pr_combining.h: Likewise.
16352         * lib/unictype/pr_composite.h: Likewise.
16353         * lib/unictype/pr_currency_symbol.h: Likewise.
16354         * lib/unictype/pr_decimal_digit.h: Likewise.
16355         * lib/unictype/pr_deprecated.h: Likewise.
16356         * lib/unictype/pr_format_control.h: Likewise.
16357         * lib/unictype/pr_grapheme_base.h: Likewise.
16358         * lib/unictype/pr_grapheme_extend.h: Likewise.
16359         * lib/unictype/pr_grapheme_link.h: Likewise.
16360         * lib/unictype/pr_id_continue.h: Likewise.
16361         * lib/unictype/pr_id_start.h: Likewise.
16362         * lib/unictype/pr_ideographic.h: Likewise.
16363         * lib/unictype/pr_lowercase.h: Likewise.
16364         * lib/unictype/pr_math.h: Likewise.
16365         * lib/unictype/pr_numeric.h: Likewise.
16366         * lib/unictype/pr_other_alphabetic.h: Likewise.
16367         * lib/unictype/pr_other_id_continue.h: Likewise.
16368         * lib/unictype/pr_other_math.h: Likewise.
16369         * lib/unictype/pr_punctuation.h: Likewise.
16370         * lib/unictype/pr_sentence_terminal.h: Likewise.
16371         * lib/unictype/pr_terminal_punctuation.h: Likewise.
16372         * lib/unictype/pr_unassigned_code_value.h: Likewise.
16373         * lib/unictype/pr_unified_ideograph.h: Likewise.
16374         * lib/unictype/pr_uppercase.h: Likewise.
16375         * lib/unictype/pr_xid_continue.h: Likewise.
16376         * lib/unictype/pr_xid_start.h: Likewise.
16377         * lib/unictype/scripts.h: Likewise.
16378         * lib/unictype/scripts_byname.gperf: Likewise.
16379         * lib/unictype/sy_java_ident.h: Likewise.
16380         * lib/unigbrk/gbrkprop.h: Likewise.
16381         * lib/unilbrk/lbrkprop1.h: Likewise.
16382         * lib/unilbrk/lbrkprop2.h: Likewise.
16383         * lib/uninorm/decomposition-table2.h: Likewise.
16384         * lib/uniwbrk/wbrkprop.h: Likewise.
16385         * tests/unicase/test-cased.c: Likewise.
16386         * tests/unicase/test-ignorable.c: Likewise.
16387         * tests/unicase/test-uc_tolower.c: Likewise.
16388         * tests/unicase/test-uc_totitle.c: Likewise.
16389         * tests/unicase/test-uc_toupper.c: Likewise.
16390         * tests/unictype/test-categ_C.c: Likewise.
16391         * tests/unictype/test-categ_Cn.c: Likewise.
16392         * tests/unictype/test-categ_L.c: Likewise.
16393         * tests/unictype/test-categ_Ll.c: Likewise.
16394         * tests/unictype/test-categ_Lm.c: Likewise.
16395         * tests/unictype/test-categ_Lo.c: Likewise.
16396         * tests/unictype/test-categ_Lu.c: Likewise.
16397         * tests/unictype/test-categ_M.c: Likewise.
16398         * tests/unictype/test-categ_Mc.c: Likewise.
16399         * tests/unictype/test-categ_Me.c: Likewise.
16400         * tests/unictype/test-categ_Mn.c: Likewise.
16401         * tests/unictype/test-categ_N.c: Likewise.
16402         * tests/unictype/test-categ_Nd.c: Likewise.
16403         * tests/unictype/test-categ_No.c: Likewise.
16404         * tests/unictype/test-categ_P.c: Likewise.
16405         * tests/unictype/test-categ_Po.c: Likewise.
16406         * tests/unictype/test-categ_S.c: Likewise.
16407         * tests/unictype/test-categ_Sc.c: Likewise.
16408         * tests/unictype/test-categ_Sk.c: Likewise.
16409         * tests/unictype/test-categ_Sm.c: Likewise.
16410         * tests/unictype/test-categ_So.c: Likewise.
16411         * tests/unictype/test-ctype_alnum.c: Likewise.
16412         * tests/unictype/test-ctype_alpha.c: Likewise.
16413         * tests/unictype/test-ctype_graph.c: Likewise.
16414         * tests/unictype/test-ctype_lower.c: Likewise.
16415         * tests/unictype/test-ctype_print.c: Likewise.
16416         * tests/unictype/test-ctype_punct.c: Likewise.
16417         * tests/unictype/test-ctype_upper.c: Likewise.
16418         * tests/unictype/test-decdigit.h: Likewise.
16419         * tests/unictype/test-digit.h: Likewise.
16420         * tests/unictype/test-numeric.h: Likewise.
16421         * tests/unictype/test-pr_alphabetic.c: Likewise.
16422         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
16423         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
16424         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
16425         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
16426         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
16427         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
16428         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
16429         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
16430         * tests/unictype/test-pr_case_ignorable.c: Likewise.
16431         * tests/unictype/test-pr_cased.c: Likewise.
16432         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
16433         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
16434         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
16435         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
16436         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
16437         * tests/unictype/test-pr_combining.c: Likewise.
16438         * tests/unictype/test-pr_composite.c: Likewise.
16439         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16440         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16441         * tests/unictype/test-pr_deprecated.c: Likewise.
16442         * tests/unictype/test-pr_format_control.c: Likewise.
16443         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16444         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16445         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16446         * tests/unictype/test-pr_id_continue.c: Likewise.
16447         * tests/unictype/test-pr_id_start.c: Likewise.
16448         * tests/unictype/test-pr_ideographic.c: Likewise.
16449         * tests/unictype/test-pr_lowercase.c: Likewise.
16450         * tests/unictype/test-pr_math.c: Likewise.
16451         * tests/unictype/test-pr_numeric.c: Likewise.
16452         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16453         * tests/unictype/test-pr_other_id_continue.c: Likewise.
16454         * tests/unictype/test-pr_other_math.c: Likewise.
16455         * tests/unictype/test-pr_punctuation.c: Likewise.
16456         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16457         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16458         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16459         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16460         * tests/unictype/test-pr_uppercase.c: Likewise.
16461         * tests/unictype/test-pr_xid_continue.c: Likewise.
16462         * tests/unictype/test-pr_xid_start.c: Likewise.
16463         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
16464         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
16465         changes.
16466         * lib/unictype/categ_Cc.h: Likewise.
16467         * lib/unictype/categ_Cf.h: Likewise.
16468         * lib/unictype/categ_Co.h: Likewise.
16469         * lib/unictype/categ_Cs.h: Likewise.
16470         * lib/unictype/categ_Lt.h: Likewise.
16471         * lib/unictype/categ_Nl.h: Likewise.
16472         * lib/unictype/categ_Pc.h: Likewise.
16473         * lib/unictype/categ_Pd.h: Likewise.
16474         * lib/unictype/categ_Pe.h: Likewise.
16475         * lib/unictype/categ_Pf.h: Likewise.
16476         * lib/unictype/categ_Pi.h: Likewise.
16477         * lib/unictype/categ_Ps.h: Likewise.
16478         * lib/unictype/categ_Z.h: Likewise.
16479         * lib/unictype/categ_Zl.h: Likewise.
16480         * lib/unictype/categ_Zp.h: Likewise.
16481         * lib/unictype/categ_Zs.h: Likewise.
16482         * lib/unictype/ctype_blank.h: Likewise.
16483         * lib/unictype/ctype_cntrl.h: Likewise.
16484         * lib/unictype/ctype_digit.h: Likewise.
16485         * lib/unictype/ctype_space.h: Likewise.
16486         * lib/unictype/ctype_xdigit.h: Likewise.
16487         * lib/unictype/mirror.h: Likewise.
16488         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16489         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16490         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16491         * lib/unictype/pr_bidi_control.h: Likewise.
16492         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16493         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16494         * lib/unictype/pr_bidi_european_digit.h: Likewise.
16495         * lib/unictype/pr_bidi_pdf.h: Likewise.
16496         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16497         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16498         * lib/unictype/pr_dash.h: Likewise.
16499         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16500         * lib/unictype/pr_diacritic.h: Likewise.
16501         * lib/unictype/pr_extender.h: Likewise.
16502         * lib/unictype/pr_hex_digit.h: Likewise.
16503         * lib/unictype/pr_hyphen.h: Likewise.
16504         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16505         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16506         * lib/unictype/pr_ignorable_control.h: Likewise.
16507         * lib/unictype/pr_iso_control.h: Likewise.
16508         * lib/unictype/pr_join_control.h: Likewise.
16509         * lib/unictype/pr_left_of_pair.h: Likewise.
16510         * lib/unictype/pr_line_separator.h: Likewise.
16511         * lib/unictype/pr_logical_order_exception.h: Likewise.
16512         * lib/unictype/pr_non_break.h: Likewise.
16513         * lib/unictype/pr_not_a_character.h: Likewise.
16514         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16515         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16516         * lib/unictype/pr_other_id_start.h: Likewise.
16517         * lib/unictype/pr_other_lowercase.h: Likewise.
16518         * lib/unictype/pr_other_uppercase.h: Likewise.
16519         * lib/unictype/pr_paired_punctuation.h: Likewise.
16520         * lib/unictype/pr_paragraph_separator.h: Likewise.
16521         * lib/unictype/pr_pattern_syntax.h: Likewise.
16522         * lib/unictype/pr_pattern_white_space.h: Likewise.
16523         * lib/unictype/pr_private_use.h: Likewise.
16524         * lib/unictype/pr_quotation_mark.h: Likewise.
16525         * lib/unictype/pr_radical.h: Likewise.
16526         * lib/unictype/pr_soft_dotted.h: Likewise.
16527         * lib/unictype/pr_space.h: Likewise.
16528         * lib/unictype/pr_titlecase.h: Likewise.
16529         * lib/unictype/pr_variation_selector.h: Likewise.
16530         * lib/unictype/pr_white_space.h: Likewise.
16531         * lib/unictype/pr_zero_width.h: Likewise.
16532         * lib/unictype/sy_c_ident.h: Likewise.
16533         * lib/unictype/sy_c_whitespace.h: Likewise.
16534         * lib/unictype/sy_java_whitespace.h: Likewise.
16535         * lib/uninorm/composition-table.gperf: Likewise.
16536         * lib/uninorm/decomposition-table1.h: Likewise.
16537         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
16538         LB8.
16539         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
16540         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
16541         * modules/unictype/*: Bump version number of expected libunistring
16542         version.
16543
16544 2011-01-09  Bruno Haible  <bruno@clisp.org>
16545
16546         Update to Unicode 5.2.0.
16547         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
16548         trailing whitespace removed.
16549
16550 2011-01-09  Bruno Haible  <bruno@clisp.org>
16551
16552         New Unicode character properties, from Unicode 5.2.0.
16553         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
16554         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
16555         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
16556         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
16557         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
16558         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
16559         uc_is_property_cased, uc_is_property_case_ignorable,
16560         uc_is_property_changes_when_lowercased,
16561         uc_is_property_changes_when_uppercased,
16562         uc_is_property_changes_when_titlecased,
16563         uc_is_property_changes_when_casefolded,
16564         uc_is_property_changes_when_casemapped): New declarations.
16565         * lib/unictype/pr_byname.gperf: Add the new properties.
16566         * modules/unictype/property-byname (Depends-on): Depend on the new
16567         properties modules.
16568         * modules/unictype/property-all (Depends-on): Likewise.
16569         * MODULES.html.sh (Unicode string functions): Add
16570         unictype/property-case-ignorable, unictype/property-cased,
16571         unictype/property-changes-when-casefolded,
16572         unictype/property-changes-when-casemapped,
16573         unictype/property-changes-when-lowercased,
16574         unictype/property-changes-when-titlecased,
16575         unictype/property-changes-when-uppercased.
16576
16577         New module 'unictype/property-changes-when-casemapped'.
16578         * modules/unictype/property-changes-when-casemapped: New file.
16579         * lib/unictype/pr_changes_when_casemapped.c: New file.
16580         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
16581         generated by gen-uni-tables.
16582         * modules/unictype/property-changes-when-casemapped-tests: New file.
16583         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
16584         automatically generated by gen-uni-tables.
16585
16586         New module 'unictype/property-changes-when-casefolded'.
16587         * modules/unictype/property-changes-when-casefolded: New file.
16588         * lib/unictype/pr_changes_when_casefolded.c: New file.
16589         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
16590         generated by gen-uni-tables.
16591         * modules/unictype/property-changes-when-casefolded-tests: New file.
16592         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
16593         automatically generated by gen-uni-tables.
16594
16595         New module 'unictype/property-changes-when-titlecased'.
16596         * modules/unictype/property-changes-when-titlecased: New file.
16597         * lib/unictype/pr_changes_when_titlecased.c: New file.
16598         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
16599         generated by gen-uni-tables.
16600         * modules/unictype/property-changes-when-titlecased-tests: New file.
16601         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
16602         automatically generated by gen-uni-tables.
16603
16604         New module 'unictype/property-changes-when-uppercased'.
16605         * modules/unictype/property-changes-when-uppercased: New file.
16606         * lib/unictype/pr_changes_when_uppercased.c: New file.
16607         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
16608         generated by gen-uni-tables.
16609         * modules/unictype/property-changes-when-uppercased-tests: New file.
16610         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
16611         automatically generated by gen-uni-tables.
16612
16613         New module 'unictype/property-changes-when-lowercased'.
16614         * modules/unictype/property-changes-when-lowercased: New file.
16615         * lib/unictype/pr_changes_when_lowercased.c: New file.
16616         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
16617         generated by gen-uni-tables.
16618         * modules/unictype/property-changes-when-lowercased-tests: New file.
16619         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
16620         automatically generated by gen-uni-tables.
16621
16622         New module 'unictype/property-case-ignorable'.
16623         * modules/unictype/property-case-ignorable: New file.
16624         * lib/unictype/pr_case_ignorable.c: New file.
16625         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
16626         by gen-uni-tables.
16627         * modules/unictype/property-case-ignorable-tests: New file.
16628         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
16629         generated by gen-uni-tables.
16630
16631         New module 'unictype/property-cased'.
16632         * modules/unictype/property-cased: New file.
16633         * lib/unictype/pr_cased.c: New file.
16634         * lib/unictype/pr_cased.h: New file, automatically generated by
16635         gen-uni-tables.
16636         * modules/unictype/property-cased-tests: New file.
16637         * tests/unictype/test-pr_cased.c: New file, automatically generated by
16638         gen-uni-tables.
16639
16640 2011-01-09  Bruno Haible  <bruno@clisp.org>
16641
16642         Update to Unicode 5.2.0.
16643         * lib/gen-uni-tables.c (output_predicate, output_category,
16644         output_combclass, output_bidi_category, output_decimal_digit_test,
16645         output_decimal_digit, output_digit_test, output_digit,
16646         output_numeric_test, output_numeric, output_mirror, output_scripts,
16647         output_scripts_byname, output_blocks, output_ident_category): Fix
16648         comment header.
16649         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
16650         get_wbp.
16651         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
16652         items.
16653         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
16654         Changes_When_Lowercased, Changes_When_Uppercased,
16655         Changes_When_Titlecased, Changes_When_Casefolded,
16656         Changes_When_Casemapped.
16657         (is_property_alphabetic, is_property_default_ignorable_code_point):
16658         Update for Unicode 5.2.0.
16659         (is_property_cased, is_property_case_ignorable,
16660         is_property_changes_when_lowercased,
16661         is_property_changes_when_uppercased,
16662         is_property_changes_when_titlecased,
16663         is_property_changes_when_casefolded,
16664         is_property_changes_when_casemapped): New functions.
16665         (output_properties): Output also the properties cased, case_ignorable,
16666         changes_when_lowercased, changes_when_uppercased,
16667         changes_when_titlecased, changes_when_casefolded,
16668         changes_when_casemapped.
16669         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
16670         Unicode TR#11 revision 17 -> 19.
16671         (LBP_CP): New enumeration value.
16672         (LBP_*): Adjust values accordingly.
16673         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
16674         TR#14 revision 22 -> 24.
16675         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
16676         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
16677         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
16678         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
16679         is_WBP_MIDLETTER.
16680         (output_composition_tables): Allow for 24 bits instead of 16 bits in
16681         the code1 and code2 of each composition rule.
16682         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
16683         * lib/unicase/ignorable.h: Likewise.
16684         * lib/unicase/tocasefold.h: Likewise.
16685         * lib/unicase/tolower.h: Likewise.
16686         * lib/unicase/totitle.h: Likewise.
16687         * lib/unicase/toupper.h: Likewise.
16688         * lib/unictype/bidi_of.h: Likewise.
16689         * lib/unictype/blocks.h: Likewise.
16690         * lib/unictype/categ_C.h: Likewise.
16691         * lib/unictype/categ_Cf.h: Likewise.
16692         * lib/unictype/categ_Cn.h: Likewise.
16693         * lib/unictype/categ_L.h: Likewise.
16694         * lib/unictype/categ_Ll.h: Likewise.
16695         * lib/unictype/categ_Lm.h: Likewise.
16696         * lib/unictype/categ_Lo.h: Likewise.
16697         * lib/unictype/categ_Lu.h: Likewise.
16698         * lib/unictype/categ_M.h: Likewise.
16699         * lib/unictype/categ_Mc.h: Likewise.
16700         * lib/unictype/categ_Mn.h: Likewise.
16701         * lib/unictype/categ_N.h: Likewise.
16702         * lib/unictype/categ_Nd.h: Likewise.
16703         * lib/unictype/categ_Nl.h: Likewise.
16704         * lib/unictype/categ_No.h: Likewise.
16705         * lib/unictype/categ_P.h: Likewise.
16706         * lib/unictype/categ_Pd.h: Likewise.
16707         * lib/unictype/categ_Po.h: Likewise.
16708         * lib/unictype/categ_S.h: Likewise.
16709         * lib/unictype/categ_Sc.h: Likewise.
16710         * lib/unictype/categ_So.h: Likewise.
16711         * lib/unictype/categ_of.h: Likewise.
16712         * lib/unictype/combining.h: Likewise.
16713         * lib/unictype/ctype_alnum.h: Likewise.
16714         * lib/unictype/ctype_alpha.h: Likewise.
16715         * lib/unictype/ctype_graph.h: Likewise.
16716         * lib/unictype/ctype_lower.h: Likewise.
16717         * lib/unictype/ctype_print.h: Likewise.
16718         * lib/unictype/ctype_punct.h: Likewise.
16719         * lib/unictype/ctype_upper.h: Likewise.
16720         * lib/unictype/decdigit.h: Likewise.
16721         * lib/unictype/digit.h: Likewise.
16722         * lib/unictype/numeric.h: Likewise.
16723         * lib/unictype/pr_alphabetic.h: Likewise.
16724         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
16725         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
16726         * lib/unictype/pr_bidi_european_digit.h: Likewise.
16727         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
16728         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
16729         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
16730         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
16731         * lib/unictype/pr_combining.h: Likewise.
16732         * lib/unictype/pr_composite.h: Likewise.
16733         * lib/unictype/pr_currency_symbol.h: Likewise.
16734         * lib/unictype/pr_dash.h: Likewise.
16735         * lib/unictype/pr_decimal_digit.h: Likewise.
16736         * lib/unictype/pr_deprecated.h: Likewise.
16737         * lib/unictype/pr_diacritic.h: Likewise.
16738         * lib/unictype/pr_extender.h: Likewise.
16739         * lib/unictype/pr_grapheme_base.h: Likewise.
16740         * lib/unictype/pr_grapheme_extend.h: Likewise.
16741         * lib/unictype/pr_grapheme_link.h: Likewise.
16742         * lib/unictype/pr_id_continue.h: Likewise.
16743         * lib/unictype/pr_id_start.h: Likewise.
16744         * lib/unictype/pr_ideographic.h: Likewise.
16745         * lib/unictype/pr_ignorable_control.h: Likewise.
16746         * lib/unictype/pr_logical_order_exception.h: Likewise.
16747         * lib/unictype/pr_lowercase.h: Likewise.
16748         * lib/unictype/pr_numeric.h: Likewise.
16749         * lib/unictype/pr_other_alphabetic.h: Likewise.
16750         * lib/unictype/pr_punctuation.h: Likewise.
16751         * lib/unictype/pr_sentence_terminal.h: Likewise.
16752         * lib/unictype/pr_terminal_punctuation.h: Likewise.
16753         * lib/unictype/pr_unassigned_code_value.h: Likewise.
16754         * lib/unictype/pr_unified_ideograph.h: Likewise.
16755         * lib/unictype/pr_uppercase.h: Likewise.
16756         * lib/unictype/pr_xid_continue.h: Likewise.
16757         * lib/unictype/pr_xid_start.h: Likewise.
16758         * lib/unictype/pr_zero_width.h: Likewise.
16759         * lib/unictype/scripts.h: Likewise.
16760         * lib/unictype/scripts_byname.gperf: Likewise.
16761         * lib/unictype/sy_java_ident.h: Likewise.
16762         * lib/unigbrk/gbrkprop.h: Likewise.
16763         * lib/unilbrk/lbrkprop1.h: Likewise.
16764         * lib/unilbrk/lbrkprop2.h: Likewise.
16765         * lib/unilbrk/lbrktables.h: Likewise.
16766         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
16767         LBP_CP. Implement rule LB30.
16768         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
16769         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
16770         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
16771         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
16772         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
16773         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
16774         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
16775         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
16776         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
16777         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
16778         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
16779         bits instead of 16 bits in the code1 and code2 of each composition
16780         rule.
16781         (uc_composition): Update for Unicode 5.2.0.
16782         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
16783         * lib/uninorm/decomposition-table2.h: Likewise.
16784         * lib/uniwbrk/wbrkprop.h: Likewise.
16785         * tests/unicase/test-cased.c: Likewise.
16786         * tests/unicase/test-ignorable.c: Likewise.
16787         * tests/unicase/test-uc_tolower.c: Likewise.
16788         * tests/unicase/test-uc_totitle.c: Likewise.
16789         * tests/unicase/test-uc_toupper.c: Likewise.
16790         * tests/unictype/test-categ_C.c: Likewise.
16791         * tests/unictype/test-categ_Cf.c: Likewise.
16792         * tests/unictype/test-categ_Cn.c: Likewise.
16793         * tests/unictype/test-categ_L.c: Likewise.
16794         * tests/unictype/test-categ_Ll.c: Likewise.
16795         * tests/unictype/test-categ_Lm.c: Likewise.
16796         * tests/unictype/test-categ_Lo.c: Likewise.
16797         * tests/unictype/test-categ_Lu.c: Likewise.
16798         * tests/unictype/test-categ_M.c: Likewise.
16799         * tests/unictype/test-categ_Mc.c: Likewise.
16800         * tests/unictype/test-categ_Mn.c: Likewise.
16801         * tests/unictype/test-categ_N.c: Likewise.
16802         * tests/unictype/test-categ_Nd.c: Likewise.
16803         * tests/unictype/test-categ_Nl.c: Likewise.
16804         * tests/unictype/test-categ_No.c: Likewise.
16805         * tests/unictype/test-categ_P.c: Likewise.
16806         * tests/unictype/test-categ_Pd.c: Likewise.
16807         * tests/unictype/test-categ_Po.c: Likewise.
16808         * tests/unictype/test-categ_S.c: Likewise.
16809         * tests/unictype/test-categ_Sc.c: Likewise.
16810         * tests/unictype/test-categ_So.c: Likewise.
16811         * tests/unictype/test-ctype_alnum.c: Likewise.
16812         * tests/unictype/test-ctype_alpha.c: Likewise.
16813         * tests/unictype/test-ctype_graph.c: Likewise.
16814         * tests/unictype/test-ctype_lower.c: Likewise.
16815         * tests/unictype/test-ctype_print.c: Likewise.
16816         * tests/unictype/test-ctype_punct.c: Likewise.
16817         * tests/unictype/test-ctype_upper.c: Likewise.
16818         * tests/unictype/test-decdigit.h: Likewise.
16819         * tests/unictype/test-digit.h: Likewise.
16820         * tests/unictype/test-numeric.h: Likewise.
16821         * tests/unictype/test-pr_alphabetic.c: Likewise.
16822         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
16823         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
16824         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
16825         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
16826         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
16827         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
16828         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
16829         * tests/unictype/test-pr_combining.c: Likewise.
16830         * tests/unictype/test-pr_composite.c: Likewise.
16831         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16832         * tests/unictype/test-pr_dash.c: Likewise.
16833         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16834         * tests/unictype/test-pr_deprecated.c: Likewise.
16835         * tests/unictype/test-pr_diacritic.c: Likewise.
16836         * tests/unictype/test-pr_extender.c: Likewise.
16837         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16838         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16839         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16840         * tests/unictype/test-pr_id_continue.c: Likewise.
16841         * tests/unictype/test-pr_id_start.c: Likewise.
16842         * tests/unictype/test-pr_ideographic.c: Likewise.
16843         * tests/unictype/test-pr_ignorable_control.c: Likewise.
16844         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
16845         * tests/unictype/test-pr_lowercase.c: Likewise.
16846         * tests/unictype/test-pr_numeric.c: Likewise.
16847         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16848         * tests/unictype/test-pr_punctuation.c: Likewise.
16849         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16850         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16851         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16852         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16853         * tests/unictype/test-pr_uppercase.c: Likewise.
16854         * tests/unictype/test-pr_xid_continue.c: Likewise.
16855         * tests/unictype/test-pr_xid_start.c: Likewise.
16856         * tests/unictype/test-pr_zero_width.c: Likewise.
16857         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
16858         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
16859         changed behaviour: line breaking is now disallowed between a letter
16860         or '=' and '('.
16861         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
16862         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
16863         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
16864         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
16865         * tests/uniwidth/test-uc_width2.sh: Same updates as in
16866         lib/uniwidth/width.c.
16867         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
16868         without comments, but with the original copyright notice.
16869         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
16870         changes.
16871         * lib/unictype/categ_Cc.h: Likewise.
16872         * lib/unictype/categ_Co.h: Likewise.
16873         * lib/unictype/categ_Cs.h: Likewise.
16874         * lib/unictype/categ_Lt.h: Likewise.
16875         * lib/unictype/categ_Me.h: Likewise.
16876         * lib/unictype/categ_Pc.h: Likewise.
16877         * lib/unictype/categ_Pe.h: Likewise.
16878         * lib/unictype/categ_Pf.h: Likewise.
16879         * lib/unictype/categ_Pi.h: Likewise.
16880         * lib/unictype/categ_Ps.h: Likewise.
16881         * lib/unictype/categ_Sk.h: Likewise.
16882         * lib/unictype/categ_Sm.h: Likewise.
16883         * lib/unictype/categ_Z.h: Likewise.
16884         * lib/unictype/categ_Zl.h: Likewise.
16885         * lib/unictype/categ_Zp.h: Likewise.
16886         * lib/unictype/categ_Zs.h: Likewise.
16887         * lib/unictype/ctype_blank.h: Likewise.
16888         * lib/unictype/ctype_cntrl.h: Likewise.
16889         * lib/unictype/ctype_digit.h: Likewise.
16890         * lib/unictype/ctype_space.h: Likewise.
16891         * lib/unictype/ctype_xdigit.h: Likewise.
16892         * lib/unictype/mirror.h: Likewise.
16893         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16894         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
16895         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16896         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16897         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16898         * lib/unictype/pr_bidi_control.h: Likewise.
16899         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16900         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16901         * lib/unictype/pr_bidi_pdf.h: Likewise.
16902         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16903         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16904         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16905         * lib/unictype/pr_format_control.h: Likewise.
16906         * lib/unictype/pr_hex_digit.h: Likewise.
16907         * lib/unictype/pr_hyphen.h: Likewise.
16908         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16909         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16910         * lib/unictype/pr_iso_control.h: Likewise.
16911         * lib/unictype/pr_join_control.h: Likewise.
16912         * lib/unictype/pr_left_of_pair.h: Likewise.
16913         * lib/unictype/pr_line_separator.h: Likewise.
16914         * lib/unictype/pr_math.h: Likewise.
16915         * lib/unictype/pr_non_break.h: Likewise.
16916         * lib/unictype/pr_not_a_character.h: Likewise.
16917         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16918         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16919         * lib/unictype/pr_other_id_continue.h: Likewise.
16920         * lib/unictype/pr_other_id_start.h: Likewise.
16921         * lib/unictype/pr_other_lowercase.h: Likewise.
16922         * lib/unictype/pr_other_math.h: Likewise.
16923         * lib/unictype/pr_other_uppercase.h: Likewise.
16924         * lib/unictype/pr_paired_punctuation.h: Likewise.
16925         * lib/unictype/pr_paragraph_separator.h: Likewise.
16926         * lib/unictype/pr_pattern_syntax.h: Likewise.
16927         * lib/unictype/pr_pattern_white_space.h: Likewise.
16928         * lib/unictype/pr_private_use.h: Likewise.
16929         * lib/unictype/pr_quotation_mark.h: Likewise.
16930         * lib/unictype/pr_radical.h: Likewise.
16931         * lib/unictype/pr_soft_dotted.h: Likewise.
16932         * lib/unictype/pr_space.h: Likewise.
16933         * lib/unictype/pr_titlecase.h: Likewise.
16934         * lib/unictype/pr_variation_selector.h: Likewise.
16935         * lib/unictype/pr_white_space.h: Likewise.
16936         * lib/unictype/sy_c_ident.h: Likewise.
16937         * lib/unictype/sy_c_whitespace.h: Likewise.
16938         * lib/unictype/sy_java_whitespace.h: Likewise.
16939         * modules/uni*/*: Bump version number of expected libunistring version.
16940         Reported by Simon Josefsson.
16941
16942 2011-01-09  Karl Heuer  <kwzh@gnu.org>
16943
16944         useless-if-before-free: fix typo in --help and make the internal,
16945         automatic version date update process work once again.
16946         --help output contained a NUL character instead of the
16947         backslash-zero that was intended.  Also, the "must lie within
16948         the first 8 lines" line is on line 9, and hence not getting
16949         automatically updated.
16950         * build-aux/useless-if-before-free: Fix the former by adding a
16951         backslash, and the latter by condensing the three lines of what-it-does
16952         to a single line, leaving one line of slack for the future.
16953
16954 2011-01-09  Bruno Haible  <bruno@clisp.org>
16955
16956         uniwidth/width: Fix width of U+1D173..U+1D17A.
16957         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
16958         symbolic_width, output_width_property_test): New functions.
16959         (main): Invoke output_nonspacing_property, output_width_property_test.
16960         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
16961         U+1D173..U+1D17A.
16962         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
16963         1.
16964         * modules/uniwidth/*: Bump version number of expected libunistring
16965         version.
16966         * modules/unilbrk/*: Likewise.
16967
16968 2011-01-08  Bruno Haible  <bruno@clisp.org>
16969
16970         uninorm tests: Preserve copyright of Unicode data file.
16971         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
16972         Mention modifications.
16973
16974 2011-01-08  Bruno Haible  <bruno@clisp.org>
16975
16976         gen-uni-tables: Prepare for Unicode 5.2.0.
16977         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
16978         (debug_output_lbp, output_lbp): Update.
16979
16980 2011-01-08  Bruno Haible  <bruno@clisp.org>
16981
16982         unilbrk: Clarify gen-uni-tables.c code.
16983         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
16984         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
16985         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
16986
16987 2011-01-07  Bruno Haible  <bruno@clisp.org>
16988
16989         strtod: Restore errno when successfully parsing Infinity or NaN.
16990         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
16991         restore the original errno.
16992
16993 2011-01-07  Bruno Haible  <bruno@clisp.org>
16994
16995         remove test: Avoid failure on HP-UX 11.
16996         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
16997
16998 2011-01-07  Bruno Haible  <bruno@clisp.org>
16999
17000         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
17001         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
17002         error code.
17003
17004 2011-01-07  Pádraig Brady <P@draigBrady.com>
17005
17006         ignore-value: fixup comments, and add Eric Blake
17007         as an author since he rewrote the macros.
17008         * lib/ignore-value.h (ignore_value):  State that
17009         we now support aggregates.  Also specify exactly
17010         when the GCC warn_unused_result feature was added.
17011
17012 2011-01-06  Eric Blake  <eblake@redhat.com>
17013
17014         ignore-value: support aggregate types
17015         * lib/ignore-value.h (ignore_value): Provide separate gcc
17016         definition.
17017         * modules/ignore-value-tests: New test module.
17018         * tests/test-ignore-value.c: New test.
17019
17020         maint.mk: improve sc_prohibit_strcmp regex
17021         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
17022         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
17023         definition of STRNEQ.
17024
17025         signal: work around Haiku issue with SIGBUS
17026         * lib/siglist.h: Add comment.
17027         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
17028         strsignal's favoring of SIGSEGV.
17029         * tests/test-signal.c (main): Avoid test failure.
17030         * doc/posix-headers/signal.texi (signal.h): Document the issue.
17031         Reported by Scott McCreary.
17032
17033         maint.mk: add pre-release check to ensure submodule commits are public
17034         * top/maint.mk (public-submodule-commit): New rule.
17035         (submodule-checks): New variable.
17036         (alpha beta stable): Depend on the variable.
17037
17038 2011-01-05  Pádraig Brady <P@draigBrady.com>
17039         and Jim Meyering  <meyering@redhat.com>
17040
17041         ignore-value: make ignore_value more generic; deprecate ignore_ptr
17042         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
17043         (ATTRIBUTE_DEPRECATED): Define.
17044         (_ignore_case): New function.
17045         (ignore_value): New macro, to replace the old function.
17046         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
17047         * modules/ignore-value (Depends-on): Add stdint.
17048
17049 2011-01-04  Eric Blake  <eblake@redhat.com>
17050
17051         doc: regenerate INSTALL
17052         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
17053         @firstparagraphindent support, now that autoconf dropped it.
17054         (INSTALL_PRELUDE): Reinstate old macro.
17055         * doc/install.texi: Resync from autoconf.
17056         * doc/INSTALL: Reflect recent autoconf update.
17057         * doc/INSTALL.ISO: Likewise.
17058         * doc/INSTALL.UTF-8: Likewise.
17059         Reported by Karl Berry.
17060
17061 2011-01-04  Bruce Korb  <address@hidden>
17062
17063         git-version-gen: avoid a sub-shell
17064         * build-aux/git-version-gen: Redirect stderr in `...` via
17065         "exec 2>...", rather than via an added sub-shell.
17066
17067 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
17068
17069         git-version-gen: use (...) rather than sh -c '...'
17070         * build-aux/git-version-gen: Rather than hard-coding a shell's name
17071         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
17072
17073 2011-01-03  Jim Meyering  <meyering@redhat.com>
17074
17075         git-version-gen: convert leading TABs to spaces
17076         * build-aux/git-version-gen: Expand leading TABs.
17077
17078         git-version-gen: handle failed "git rev-list"
17079         * build-aux/git-version-gen: Rather than leaking a "fatal" error
17080         from git and proceeding as if it had succeeded but printed no SHA1
17081         checksums, suppress the diagnostic and handle the failure.
17082         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
17083
17084         git-version-gen: include command name in one more diagnostic
17085         * build-aux/git-version-gen: When the required .tarball-version file
17086         was missing or unreadable, you might see the diagnostic from "cat",
17087         but no trace of the name of the invoking script.  Now, you still see
17088         the diagnostic from cat, but also get one from "git-version-gen: ".
17089         Inspired by a patch from Bruce Korb.
17090
17091         update-copyright: adjust test to match changed code
17092         * tests/test-update-copyright.sh: Change test's expected output
17093         to match new actual output.
17094
17095 2011-01-02  Bruno Haible  <bruno@clisp.org>
17096
17097         getlogin_r: Avoid test failure on HP-UX 11.
17098         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
17099         ERANGE when the second argument is zero.
17100         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
17101         portability problem.
17102
17103 2011-01-02  Bruce Korb  <bkorb@gnu.org>
17104
17105         * build-aux/update-copyright: doc Simon's changes
17106
17107 2011-01-02  Simon Josefsson  <simon@josefsson.org>
17108
17109         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
17110         environment variable.
17111
17112 2011-01-02  Bruno Haible  <bruno@clisp.org>
17113
17114         unigbrk: Avoid gcc warnings.
17115         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
17116         unused variable.
17117         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
17118         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
17119         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
17120         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
17121         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
17122         Change type of first argument to 'const char *'.
17123         (main): Remove unused variable.
17124         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
17125         type of first argument to 'const char *'.
17126         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
17127         Likewise.
17128         (main): Change type of variable 's'.
17129         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
17130         to 'int'.
17131
17132 2011-01-02  Bruno Haible  <bruno@clisp.org>
17133
17134         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
17135         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
17136         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
17137         bug.
17138         * lib/pwrite.c: Undo 2010-12-31 patch.
17139         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
17140
17141 2011-01-02  Bruno Haible  <bruno@clisp.org>
17142
17143         pread: Fix test whether it works.
17144         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
17145
17146 2011-01-02  Bruno Haible  <bruno@clisp.org>
17147
17148         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
17149         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
17150         ends in "6". Don't require a specific month name. Try also the locale
17151         names found on HP-UX 11 and Solaris 7.
17152
17153 2011-01-02  Bruno Haible  <bruno@clisp.org>
17154
17155         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
17156         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
17157         C linkage.
17158         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
17159
17160 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17161
17162         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
17163         for consistency, since the "cluster" term is not used elsewhere.
17164         * lib/unigbrk.in.h: Update name.
17165         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
17166         * lib/unigbrk/u16-grapheme-next.c: Update name.
17167         * lib/unigbrk/u16-grapheme-prev.c: Update name.
17168         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
17169         * lib/unigbrk/u32-grapheme-next.c: Update name.
17170         * lib/unigbrk/u32-grapheme-prev.c: Update name.
17171         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
17172         * lib/unigbrk/u8-grapheme-next.c: Update name.
17173         * lib/unigbrk/u8-grapheme-prev.c: Update name.
17174         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
17175         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
17176         Suggested by Bruno Haible.
17177
17178 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17179
17180         Remove module 'u8-grapheme-len' as too redundant with
17181         'u8-grapheme-next'.
17182         * modules/unigbrk/u8-grapheme-len: Delete file.
17183         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
17184         * lib/unigbrk.in.h: Remove prototype for deleted function.
17185         * lib/unigbrk/u8-grapheme-len.c: Delete file.
17186         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
17187
17188         Remove module 'u16-grapheme-len' as too redundant with
17189         'u16-grapheme-next'.
17190         * modules/unigbrk/u16-grapheme-len: Delete file.
17191         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
17192         * lib/unigbrk.in.h: Remove prototype for deleted function.
17193         * lib/unigbrk/u16-grapheme-len.c: Delete file.
17194         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
17195
17196         Remove module 'u32-grapheme-len' as too redundant with
17197         'u32-grapheme-next'.
17198         * modules/unigbrk/u32-grapheme-len: Delete file.
17199         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
17200         * lib/unigbrk.in.h: Remove prototype for deleted function.
17201         * lib/unigbrk/u32-grapheme-len.c: Delete file.
17202         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
17203
17204         Suggested by Bruno Haible.
17205
17206 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17207
17208         * unigbrk.in.h: Fix typo: "ben" => "been".
17209         Reported by Bruno Haible.
17210
17211 2011-01-01  Jim Meyering  <meyering@redhat.com>
17212
17213         maint: update almost all copyright ranges to include 2011
17214         Run the new "make update-copyright" rule.
17215
17216 2011-01-01  Jim Meyering  <meyering@redhat.com>
17217
17218         maint: update-copyright: exempt doc/INSTALL*
17219         * Makefile (update-copyright): Also exclude doc/INSTALL*,
17220         since they are generated.  Suggested by Bruno Haible.
17221
17222 2011-01-01  Jim Meyering  <meyering@redhat.com>
17223
17224         maint: refine the update-copyright rule
17225         * Makefile (update-copyright): Also exclude any file that includes
17226         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
17227         code that merely generates the comment.
17228
17229 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
17230
17231         New module 'u8-grapheme-len'.
17232         * modules/unigbrk/u8-grapheme-len: New file.
17233         * modules/unigbrk/u8-grapheme-len-tests: New file.
17234         * lib/unigbrk.in.h: Add prototype for new function.
17235         * lib/unigbrk/u8-grapheme-len.c: New file.
17236         * tests/unigbrk/test-u8-grapheme-len.c: New file.
17237
17238         New module 'u16-grapheme-len'.
17239         * modules/unigbrk/u16-grapheme-len: New file.
17240         * modules/unigbrk/u16-grapheme-len-tests: New file.
17241         * lib/unigbrk.in.h: Add prototype for new function.
17242         * lib/unigbrk/u16-grapheme-len.c: New file.
17243         * tests/unigbrk/test-u16-grapheme-len.c: New file.
17244
17245         New module 'u32-grapheme-len'.
17246         * modules/unigbrk/u32-grapheme-len: New file.
17247         * modules/unigbrk/u32-grapheme-len-tests: New file.
17248         * lib/unigbrk.in.h: Add prototype for new function.
17249         * lib/unigbrk/u32-grapheme-len.c: New file.
17250         * tests/unigbrk/test-u32-grapheme-len.c: New file.
17251
17252         New module 'u8-grapheme-next'.
17253         * modules/unigbrk/u8-grapheme-next: New file.
17254         * modules/unigbrk/u8-grapheme-next-tests: New file.
17255         * lib/unigbrk.in.h: Add prototype for new function.
17256         * lib/unigbrk/u8-grapheme-next.c: New file.
17257         * tests/unigbrk/test-u8-grapheme-next.c: New file.
17258
17259         New module 'u16-grapheme-next'.
17260         * modules/unigbrk/u16-grapheme-next: New file.
17261         * modules/unigbrk/u16-grapheme-next-tests: New file.
17262         * lib/unigbrk.in.h: Add prototype for new function.
17263         * lib/unigbrk/u16-grapheme-next.c: New file.
17264         * tests/unigbrk/test-u16-grapheme-next.c: New file.
17265
17266         New module 'u32-grapheme-next'.
17267         * modules/unigbrk/u32-grapheme-next: New file.
17268         * modules/unigbrk/u32-grapheme-next-tests: New file.
17269         * lib/unigbrk.in.h: Add prototype for new function.
17270         * lib/unigbrk/u32-grapheme-next.c: New file.
17271         * tests/unigbrk/test-u32-grapheme-next.c: New file.
17272
17273         New module 'u8-grapheme-prev'.
17274         * modules/unigbrk/u8-grapheme-prev: New file.
17275         * modules/unigbrk/u8-grapheme-prev-tests: New file.
17276         * lib/unigbrk.in.h: Add prototype for new function.
17277         * lib/unigbrk/u8-grapheme-prev.c: New file.
17278         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
17279
17280         New module 'u16-grapheme-prev'.
17281         * modules/unigbrk/u16-grapheme-prev: New file.
17282         * modules/unigbrk/u16-grapheme-prev-tests: New file.
17283         * lib/unigbrk.in.h: Add prototype for new function.
17284         * lib/unigbrk/u16-grapheme-prev.c: New file.
17285         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
17286
17287         New module 'u32-grapheme-prev'.
17288         * modules/unigbrk/u32-grapheme-prev: New file.
17289         * modules/unigbrk/u32-grapheme-prev-tests: New file.
17290         * lib/unigbrk.in.h: Add prototype for new function.
17291         * lib/unigbrk/u32-grapheme-prev.c: New file.
17292         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
17293
17294         New module 'u8-grapheme-breaks'.
17295         * modules/unigbrk/u8-grapheme-breaks: New file.
17296         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
17297         * lib/unigbrk.in.h: Add prototype for new function.
17298         * lib/unigbrk/u8-grapheme-breaks.c: New file.
17299         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
17300
17301         New module 'u16-grapheme-breaks'.
17302         * modules/unigbrk/u16-grapheme-breaks: New file.
17303         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
17304         * lib/unigbrk.in.h: Add prototype for new function.
17305         * lib/unigbrk/u16-grapheme-breaks.c: New file.
17306         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
17307
17308         New module 'u32-grapheme-breaks'.
17309         * modules/unigbrk/u32-grapheme-breaks: New file.
17310         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
17311         * lib/unigbrk.in.h: Add prototype for new function.
17312         * lib/unigbrk/u32-grapheme-breaks.c: New file.
17313         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
17314
17315         New module 'ulc-grapheme-breaks'.
17316         * modules/unigbrk/ulc-grapheme-breaks: New file.
17317         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
17318         * m4/locale-ar.m4: New file.
17319         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
17320         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
17321         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
17322
17323 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
17324
17325         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
17326         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
17327         modified how this file was generated before I initially submitted
17328         the module, but failed to regenerate it.  This meant that several
17329         of the level2 entries were wrong.
17330         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
17331         Remove the division-by-2 that is folded into the table now that
17332         gbrkprop.h has been regenerated properly.  Now -1 entries are
17333         handled correctly.
17334
17335         New module 'unigbrk/uc-gbrk-prop-tests'.
17336         * modules/unigbrk/uc-gbrk-prop-tests: New file.
17337         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
17338         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
17339         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
17340
17341 2011-01-01  Bruno Haible  <bruno@clisp.org>
17342
17343         Avoid use of hexadecimal escapes.
17344         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
17345         instead of hexadecimal escapes.
17346
17347 2011-01-01  Jim Meyering  <meyering@redhat.com>
17348
17349         maint: new rule to update copyright year ranges
17350         * Makefile (update-copyright): New rule.
17351
17352         maint: indent with TABs in Makefile
17353         * Makefile: Expand leading sequences of spaces to TABs
17354
17355         version-etc: update the copyright year it reports
17356         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
17357
17358 2010-12-31  Bruno Haible  <bruno@clisp.org>
17359
17360         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
17361         * lib/isfinite.c (zerof, zerod, zerol): New variables.
17362         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
17363         zero.
17364
17365 2010-12-31  Bruno Haible  <bruno@clisp.org>
17366
17367         pwrite: Work around HP-UX 11.11 bug.
17368         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
17369         works and set REPLACE_PWRITE if not.
17370         * lib/pwrite.c (pwrite): Add an implementation that uses the system
17371         function.
17372         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
17373
17374 2010-12-31  Bruno Haible  <bruno@clisp.org>
17375
17376         pread: Work around HP-UX 11 bugs.
17377         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
17378         and set REPLACE_PREAD if not.
17379         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
17380
17381 2010-12-31  Eric Blake  <eblake@redhat.com>
17382
17383         nl_langinfo: fix YESEXPR on Irix 6.5
17384         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
17385         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
17386         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
17387         it.
17388
17389 2010-12-31  Bruno Haible  <bruno@clisp.org>
17390
17391         iconv: Document HP-UX 11 bug.
17392         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
17393
17394 2010-12-31  Bruno Haible  <bruno@clisp.org>
17395
17396         ldexpl: Fix link error on HP-UX 11.
17397         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
17398         LDEXPL_LIBM, using $ISNANL_LIBM.
17399
17400 2010-12-31  Eric Blake  <eblake@redhat.com>
17401
17402         ftello: avoid compilation failure with SunStudio c89
17403         * lib/ftello.c (ftello): Use lseek, not llseek.
17404
17405         tests: avoid failing coreutils tests on cygwin
17406         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
17407         (create_exe_shims_): Return 0 when skipping.
17408
17409 2010-12-31  Bruno Haible  <bruno@clisp.org>
17410
17411         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
17412         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
17413
17414 2010-12-31  Bruno Haible  <bruno@clisp.org>
17415
17416         waitpid: Fix link error in C++ mode.
17417         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
17418
17419 2010-12-31  Bruno Haible  <bruno@clisp.org>
17420
17421         isnan: Use GCC built-ins when possible.
17422         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
17423         __builtin_isnan.
17424         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
17425         (isnan): Define using GCC built-ins for GCC >= 4.0.
17426
17427 2010-12-31  Bruno Haible  <bruno@clisp.org>
17428
17429         isnand: Fix mistake.
17430         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
17431         __builtin_isnand.
17432
17433 2010-12-31  Bruno Haible  <bruno@clisp.org>
17434
17435         open: Avoid C++ error on HP-UX 11.
17436         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
17437
17438 2010-12-31  Bruno Haible  <bruno@clisp.org>
17439
17440         time_r: Add missing declarations on HP-UX 11.
17441         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
17442         instead of HAVE_LOCALTIME_R.
17443         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
17444         HAVE_LOCALTIME_R always.
17445         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
17446         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
17447         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
17448         HAVE_LOCALTIME_R.
17449         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
17450         * doc/posix-functions/localtime_r.texi: Likewise.
17451
17452 2010-12-29  Eric Blake  <eblake@redhat.com>
17453
17454         mountlist: tweak previous commit
17455         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
17456         Reported by Paul Eggert.
17457
17458         mountlist: fix local drive detection on cygwin
17459         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
17460         that works for cygwin.
17461
17462 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
17463
17464         ftoastr, snprintf: ftoastr + snprintf module
17465         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
17466         since the snprintf module now should be good enough here.
17467         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
17468         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
17469         and gl_MODULE_INDICATOR([snprintf]), but the former enables
17470         GNULIB_SNPRINTF only for the test directory, and the latter
17471         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
17472         seems to suffice by itself.
17473
17474 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
17475
17476         alloca: one step towards thread-safety
17477         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
17478         need for a static variable.  All callers changed.  This does not
17479         make the alloca replacement thread-safe, but it's one step.
17480
17481         tests: minor indenting change
17482         * tests/init.sh: Sync from coreutils housekeeping patch
17483         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
17484         to keep lines within 80 columns.
17485
17486 2010-12-28  Jim Meyering  <meyering@redhat.com>
17487
17488         regex: don't infloop on persistent failing calloc
17489         * lib/regexec.c (build_trtable): Return failure indication upon
17490         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
17491         In glibc, this was fixed for version 2.13:
17492         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
17493
17494 2010-12-28  Bruno Haible  <bruno@clisp.org>
17495             Paul Eggert <eggert@cs.ucla.edu>
17496
17497         linkat: Make implementation robust against system behaviour variations.
17498         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
17499         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
17500         way, and to -2 if it needs a generic runtime test.
17501         * lib/linkat.c (solaris_optimized_link_immediate,
17502         solaris_optimized_link_follow): New functions.
17503         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
17504         (check_same_link): Use it.
17505
17506 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
17507
17508         New module 'unigbrk/base'.
17509         * modules/unigbrk/base: New file.
17510         * lib/unigbrk.in.h: New file.
17511
17512         New module 'unigbrk/uc-gbrk-prop'.
17513         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
17514         * modules/unigbrk/uc-gbrk-prop: New file.
17515         * lib/unigbrk/gbrkprop.h: New file.
17516         * lib/unigbrk/uc-gbrk-prop.c: New file.
17517
17518         New module 'unigbrk/uc-is-grapheme-break'.
17519         * modules/unigbrk/uc-is-grapheme-break: New file.
17520         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
17521         * lib/unigbrk/uc-is-grapheme-break.c: New file.
17522         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
17523         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
17524         * tests/unigbrk/GraphemeBreakTest.txt: New file.
17525
17526         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
17527
17528 2010-12-27  Bruno Haible  <bruno@clisp.org>
17529
17530         linkat test: Avoid failure on Solaris 11 2010-11.
17531         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
17532
17533 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17534
17535         utimens: work around glibc rounding bug on more platforms
17536         * lib/utimens.c (fdutimens): Work around rounding bug even if
17537         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
17538         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
17539
17540 2010-12-27  Bruno Haible  <bruno@clisp.org>
17541
17542         select tests: Improve comments.
17543         * tests/test-select.c (do_select): Add comments.
17544
17545 2010-12-27  Bruno Haible  <bruno@clisp.org>
17546
17547         select tests: Safer way of handling timeout.
17548         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
17549         at every invocation.
17550
17551 2010-12-27  Bruno Haible  <bruno@clisp.org>
17552
17553         select tests: Use 'bool' where appropriate.
17554         * tests/test-select.c (connect_to_socket): Change argument type to
17555         'bool'.
17556
17557 2010-12-27  Bruno Haible  <bruno@clisp.org>
17558
17559         select tests: Use existing modules.
17560         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
17561         (configure.ac): Don't test for unistd.h.
17562         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
17563         declared in <unistd.h>.
17564
17565 2010-12-27  Bruno Haible  <bruno@clisp.org>
17566
17567         mbrtowc: Work around a Solaris 7 bug.
17568         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
17569         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
17570         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
17571         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
17572         MBRTOWC_NULL_ARG1_BUG.
17573         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
17574         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
17575         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
17576         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
17577
17578 2010-12-27  Jim Meyering  <meyering@redhat.com>
17579
17580         read-file.c: tweak syntax
17581         * lib/read-file.c (fread_file): Remove space after "*" in function
17582         definitions.
17583
17584 2010-12-27  Bruno Haible  <bruno@clisp.org>
17585
17586         times test: Avoid gcc warnings on OSF/1.
17587         * tests/test-times.c (main): Cast printf arguments from clock_t to
17588         'long int'.
17589
17590 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17591
17592         utimens: work around glibc rounding bug on older Linux kernels
17593         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
17594         on Linux with a glibc whose utimes might not work, then work
17595         around a longstanding glibc bug involving rounding rather than
17596         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
17597         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
17598
17599 2010-12-26  Bruno Haible  <bruno@clisp.org>
17600
17601         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
17602         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
17603         _GL_CXXALIAS_SYS.
17604         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17605
17606 2010-12-26  Bruno Haible  <bruno@clisp.org>
17607
17608         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
17609         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
17610         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
17611         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
17612         looking for the declaration.
17613         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
17614         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
17615         problem.
17616         * doc/posix-functions/inet_pton.texi: Likewise.
17617
17618 2010-12-26  Bruno Haible  <bruno@clisp.org>
17619
17620         arpa_inet: Use the common idioms with C++ support.
17621         * lib/arpa_inet.in.h: Include c++defs.h.
17622         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
17623         support.
17624         * modules/arpa_inet (Depends-on): Add c++defs.
17625         (Makefile.am): Substitute the contents of c++defs.h.
17626         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
17627         * modules/arpa_inet-c++-tests: New file.
17628         * tests/test-arpa_inet-c++.cc: New file.
17629
17630 2010-12-25  Bruno Haible  <bruno@clisp.org>
17631
17632         Fix more C++ link errors on Solaris 8.
17633         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
17634         $(LIB_EACCESS).
17635         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
17636         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
17637         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
17638         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
17639         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
17640
17641 2010-12-25  Bruno Haible  <bruno@clisp.org>
17642
17643         printf-posix: Fix link error when a non-GCC compiler is used.
17644         * lib/stdio.in.h (printf): When not using GCC, override printf
17645         correctly.
17646         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17647
17648 2010-12-25  Bruno Haible  <bruno@clisp.org>
17649
17650         strerror_r-posix: Update doc.
17651         * doc/posix-functions/strerror_r.texi: Update doc about the return
17652         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
17653
17654 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
17655
17656         utimens: simplify the logic of the previous change
17657         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
17658         This should not affect whether the test succeeds or fails.
17659
17660         utimens: configure better on hosts with NFS clock skew
17661         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
17662         uses the clock of the local host.  It might use the clock of the
17663         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
17664         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
17665
17666 2010-12-25  Bruno Haible  <bruno@clisp.org>
17667
17668         ptsname test: Avoid failure on Solaris.
17669         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
17670         open a pseudo-terminal; don't use BSD-style ptys.
17671         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
17672
17673 2010-12-25  Bruno Haible  <bruno@clisp.org>
17674
17675         ptsname: Avoid ERANGE failure on some systems.
17676         * lib/ptsname.c (buffer): Increase size.
17677
17678 2010-12-25  Bruno Haible  <bruno@clisp.org>
17679
17680         rename, renameat: Avoid test failures at NFS mounted locations.
17681         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
17682         so that subsequent mkdir calls succeed.
17683
17684 2010-12-25  Bruno Haible  <bruno@clisp.org>
17685
17686         iswblank: Fix C++ link error on Solaris 8.
17687         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
17688         _GL_FUNCDECL_SYS.
17689
17690 2010-12-25  Bruno Haible  <bruno@clisp.org>
17691
17692         unistd: Fix C++ link error on Solaris 8.
17693         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
17694
17695 2010-12-25  Bruno Haible  <bruno@clisp.org>
17696
17697         readlink doc: Mention an old glibc bug.
17698         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
17699
17700 2010-12-25  Bruno Haible  <bruno@clisp.org>
17701
17702         fcntl-h: Fix for use of C++ on glibc systems.
17703         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
17704         also on glibc systems in C++ mode.
17705         Reported by Gary V. Vaughan <gary@gnu.org>.
17706
17707 2010-12-25  Bruno Haible  <bruno@clisp.org>
17708
17709         roundl-ieee: Make it work on OSF/1 5.1 with cc.
17710         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
17711
17712 2010-12-25  Bruno Haible  <bruno@clisp.org>
17713
17714         truncl-ieee: Make it work on OSF/1 5.1 with cc.
17715         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
17716         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
17717         test whether truncl works according to ISO C 99 with IEC 60559.
17718         * m4/truncl-ieee.m4: New file.
17719         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
17720         m4/signbit.m4.
17721         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
17722
17723 2010-12-25  Bruno Haible  <bruno@clisp.org>
17724
17725         ceill-ieee: Make it work on OSF/1 5.1 with cc.
17726         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
17727         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
17728         test whether ceill works according to ISO C 99 with IEC 60559.
17729         * m4/ceill-ieee.m4: New file.
17730         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
17731         m4/signbit.m4.
17732         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
17733
17734 2010-12-25  Bruno Haible  <bruno@clisp.org>
17735
17736         Ensure all prerequisites of <wchar.h> are included.
17737         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
17738         before <wchar.h>.
17739         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
17740         gl_MBRLEN_NUL_RETVAL): Likewise.
17741         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17742         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
17743         AC_FUNC_MBRTOWC): Likewise.
17744         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17745         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
17746         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17747         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
17748         Likewise.
17749         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17750         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
17751         (gl_WCHAR_H): Improve comments.
17752         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
17753
17754 2010-12-25  Bruno Haible  <bruno@clisp.org>
17755
17756         strtok_r: Fix C syntax error in autoconf macro.
17757         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
17758         characters in test program.
17759
17760 2010-12-24  Bruno Haible  <bruno@clisp.org>
17761
17762         ceil, trunc, round: Fix gcc warnings.
17763         * lib/ceil.c (MIN): Undefine before redefining.
17764         * lib/trunc.c (MIN): Likewise.
17765         * lib/round.c (MIN): Likewise.
17766         Include <math.h> first.
17767
17768 2010-12-24  Bruno Haible  <bruno@clisp.org>
17769
17770         select tests: Avoid failures on OSF/1 5.1.
17771         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
17772         failure of closing the last socket; it may fail with ECONNRESET.
17773
17774 2010-12-24  Eric Blake  <eblake@redhat.com>
17775
17776         stdint: avoid HP-UX 10.20 preprocessor bug
17777         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
17778         than #if.
17779         * tests/test-floor2.c (main): Likewise.
17780         Reported by Peter O'Gorman.
17781
17782         pipe: make obsoletion transition easier
17783         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
17784         * modules/pipe (Files): Include revived file.
17785         (Include): Drop reference, to mirror getdate's behavior.
17786
17787 2010-12-24  Bruno Haible  <bruno@clisp.org>
17788
17789         sys_socket: Hide mismatch of declarations on NonStop Kernel.
17790         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
17791         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
17792         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17793
17794 2010-12-24  Bruno Haible  <bruno@clisp.org>
17795
17796         gethostname: Ensure declaration on NonStop Kernel.
17797         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
17798         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17799
17800 2010-12-24  Bruno Haible  <bruno@clisp.org>
17801
17802         sys_select: Ensure all necessary types on NonStop Kernel.
17803         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
17804         include <sys/time.h>.
17805         * doc/posix-headers/sys_select.texi: Mention that it's missing on
17806         NonStop Kernel.
17807         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17808
17809 2010-12-24  Bruno Haible  <bruno@clisp.org>
17810
17811         sys_select: Remove unneeded include.
17812         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
17813         have <sys/select.h>.
17814
17815 2010-12-24  Bruno Haible  <bruno@clisp.org>
17816
17817         gethostname: Provide a fallback for HOST_NAME_MAX.
17818         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
17819         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
17820         instead.
17821         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17822
17823 2010-12-24  Bruno Haible  <bruno@clisp.org>
17824
17825         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
17826         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
17827         (SA_RESTART): Likewise.
17828         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17829
17830 2010-12-24  Bruno Haible  <bruno@clisp.org>
17831
17832         signal: Define NSIG.
17833         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
17834         * tests/test-signal.c (nsig): New variable.
17835         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17836
17837 2010-12-24  Bruno Haible  <bruno@clisp.org>
17838
17839         rename, renameat: Avoid test failures on OSF/1 5.1.
17840         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
17841         alternative error codes.
17842         * tests/test-renameat.c (main): Likewise.
17843
17844 2010-12-24  Bruno Haible  <bruno@clisp.org>
17845
17846         *printf: Detect large precisions bug on Solaris 10/SPARC.
17847         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
17848         by Paul Eggert.
17849         * tests/test-snprintf-posix.h (test_function): Add this test code here
17850         too.
17851         * tests/test-sprintf-posix.h (test_function): Likewise.
17852         * tests/test-vasnprintf-posix.c (test_function): Likewise.
17853         * tests/test-vasprintf-posix.c (test_function): Likewise.
17854         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
17855         around by gnulib.
17856         * doc/posix-functions/printf.texi: Likewise.
17857         * doc/posix-functions/snprintf.texi: Likewise.
17858         * doc/posix-functions/sprintf.texi: Likewise.
17859         * doc/posix-functions/vfprintf.texi: Likewise.
17860         * doc/posix-functions/vprintf.texi: Likewise.
17861         * doc/posix-functions/vsnprintf.texi: Likewise.
17862         * doc/posix-functions/vsprintf.texi: Likewise.
17863         * doc/posix-functions/dprintf.texi: Undo last commit.
17864         * doc/posix-functions/vdprintf.texi: Likewise.
17865
17866 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
17867
17868         tests: port test-fdutimensat.c to Solaris 8
17869         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
17870         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
17871         On Solaris 8, it fails with errno == ENOSYS, because there is no
17872         futimens (so it can't use the fd), and there is no lutimens (so it
17873         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
17874
17875         vsnprintf: make more consistent with snprintf; doc fixes
17876
17877         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
17878         the byte count return problem was promoted from the snprintf-posix
17879         to the snprintf module.
17880         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17881         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
17882         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
17883         * tests/test-snprintf.c (main): Check the byte count returned.
17884         * tests/test-vsnprintf.c (main): Likewise.
17885
17886 2010-12-23  Eric Blake  <eblake@redhat.com>
17887
17888         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
17889         * modules/sigpipe (License): Relax license.
17890
17891 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17892
17893         doc: document Solaris printf bug with large float precisions
17894         * doc/posix-functions/dprintf.texi (dprintf):
17895         * doc/posix-functions/fprintf.texi (fprintf):
17896         * doc/posix-functions/printf.texi (printf):
17897         * doc/posix-functions/snprintf.texi (snprintf):
17898         * doc/posix-functions/sprintf.texi (sprintf):
17899         * doc/posix-functions/vdprintf.texi (vdprintf):
17900         * doc/posix-functions/vfprintf.texi (vfprintf):
17901         * doc/posix-functions/vprintf.texi (vprintf):
17902         * doc/posix-functions/vsnprintf.texi (vsnprintf):
17903         * doc/posix-functions/vsprintf.texi (vsprintf):
17904         Mention that these functions mishandle large floating point
17905         precisions on Solaris 10.  The same bug is also present in Solaris
17906         8, and I assume earlier.  This causes "cd gnulib-tests; make
17907         check" to fail on Solaris 8 (and I assume, later) when building
17908         the latest coreutils, in test-vasprintf-posix's call to
17909         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
17910         the wide flavors (e.g., wprintf) so this patch just updates the
17911         documentation for the narrow ones.
17912
17913         test-posixtm.c: add two tests
17914         * tests/test-posixtm.c: Add two tests, to highlight the
17915         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
17916         around this bug; this is merely to document it.
17917
17918 2010-12-22  Bruno Haible  <bruno@clisp.org>
17919
17920         getlogin_r: Work around portability problem on OSF/1.
17921         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
17922         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
17923         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
17924         test for a truncated result.
17925         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
17926         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
17927         * modules/getlogin_r (Depends-on): Add memchr.
17928         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
17929
17930 2010-12-22  Bruno Haible  <bruno@clisp.org>
17931
17932         ptsname: Avoid test failure on OSF/1 5.1.
17933         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
17934         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
17935         (same_slave): New function.
17936         (main): Use it to compare ptsname's result with the expected file name.
17937
17938 2010-12-22  Bruno Haible  <bruno@clisp.org>
17939
17940         Port extended stdio modules to HP NonStop Kernel.
17941         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
17942         macros.
17943         * lib/fbufmode.c: Update comments.
17944         * lib/fflush.c: Likewise.
17945         * lib/fpurge.c: Likewise.
17946         * lib/freadable.c: Likewise.
17947         * lib/freadahead.c: Likewise.
17948         * lib/freading.c: Likewise.
17949         * lib/freadptr.c: Likewise.
17950         * lib/freadseek.c: Likewise.
17951         * lib/fseeko.c: Likewise.
17952         * lib/fseterr.c: Likewise.
17953         * lib/fwritable.c: Likewise.
17954         * lib/fwriting.c: Likewise.
17955         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17956
17957 2010-12-22  Bruno Haible  <bruno@clisp.org>
17958
17959         ttyname_r: Work around bug on OSF/1 5.1.
17960         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
17961         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
17962         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
17963         present.
17964         * lib/ttyname_r.c (ttyname_r): Update comments.
17965
17966 2010-12-22  Bruno Haible  <bruno@clisp.org>
17967
17968         round: Implement result sign according to IEEE 754.
17969         * lib/round.c (MIN, MINUS_ZERO): New macros.
17970         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
17971         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
17972         * tests/test-round-ieee.c (main): Likewise.
17973         * tests/test-roundl-ieee.c (main): Likewise.
17974
17975         trunc: Implement result sign according to IEEE 754.
17976         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
17977         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
17978         * tests/test-trunc2.c: Include minus-zero.h.
17979         (MINUS_ZERO): New macro.
17980         (trunc_reference): Keep in sync with lib/trunc.c.
17981         * tests/test-truncf2.c: Include minus-zero.h.
17982         (MINUS_ZERO): New macro.
17983         (truncf_reference): Keep in sync with lib/trunc.c.
17984         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
17985         * tests/test-trunc-ieee.c (main): Likewise.
17986         * tests/test-truncl-ieee.c (main): Likewise.
17987
17988         ceil: Implement result sign according to IEEE 754.
17989         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
17990         (FUNC): Return -0.0 for -1 < x < 0.
17991         * tests/test-ceil2.c: Include minus-zero.h.
17992         (MINUS_ZERO): New macro.
17993         (ceil_reference): Keep in sync with lib/ceil.c.
17994         * tests/test-ceilf2.c: Include minus-zero.h.
17995         (MINUS_ZERO): New macro.
17996         (ceilf_reference): Keep in sync with lib/ceil.c.
17997         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
17998         * tests/test-ceil-ieee.c (main): Likewise.
17999         * tests/test-ceill-ieee.c (main): Likewise.
18000
18001         floor: Implement result sign according to IEEE 754.
18002         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
18003         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
18004         * tests/test-floorf2.c (floorf_reference): Likewise.
18005         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
18006         * tests/test-floor-ieee.c (main): Likewise.
18007         * tests/test-floorl-ieee.c (main): Likewise.
18008
18009 2010-12-22  Bruno Haible  <bruno@clisp.org>
18010
18011         getaddrinfo: Update doc.
18012         * doc/posix-functions/gai_strerror.texi: Return type is also different
18013         on AIX and HP-UX.
18014
18015 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
18016
18017         getaddrinfo, inet_ntop: Update doc for Solaris.
18018         * doc/posix-functions/gai_strerror.texi: Return type is also an
18019         issue on Solaris 9 and earlier.
18020         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
18021         on Solaris 10 and earlier.
18022
18023 2010-12-21  Bruno Haible  <bruno@clisp.org>
18024
18025         New module 'roundl-ieee'.
18026         * modules/roundl-ieee: New file.
18027         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
18028         test whether roundl works according to ISO C 99 with IEC 60559.
18029         * m4/roundl-ieee.m4: New file.
18030         * modules/roundl-ieee-tests: New file.
18031         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
18032         * tests/test-roundl.c (main): Remove signbit tests.
18033         * modules/roundl-tests (Depends-on): Remove signbit.
18034         * doc/posix-functions/roundl.texi: Mention the new module.
18035
18036 2010-12-21  Bruno Haible  <bruno@clisp.org>
18037
18038         New module 'truncl-ieee'.
18039         * modules/truncl-ieee: New file.
18040         * modules/truncl-ieee-tests: New file.
18041         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
18042         * tests/test-truncl.c (main): Remove signbit tests.
18043         * modules/truncl-tests (Depends-on): Remove signbit.
18044         * doc/posix-functions/truncl.texi: Mention the new module.
18045
18046 2010-12-21  Bruno Haible  <bruno@clisp.org>
18047
18048         New module 'ceill-ieee'.
18049         * modules/ceill-ieee: New file.
18050         * modules/ceill-ieee-tests: New file.
18051         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
18052         * tests/test-ceill.c (main): Remove signbit tests.
18053         * modules/ceill-tests (Depends-on): Remove signbit.
18054         * doc/posix-functions/ceill.texi: Mention the new module.
18055
18056 2010-12-21  Bruno Haible  <bruno@clisp.org>
18057
18058         New module 'floorl-ieee'.
18059         * modules/floorl-ieee: New file.
18060         * modules/floorl-ieee-tests: New file.
18061         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
18062         * tests/test-floorl.c (main): Remove signbit tests.
18063         * modules/floorl-tests (Depends-on): Remove signbit.
18064         * doc/posix-functions/floorl.texi: Mention the new module.
18065
18066 2010-12-21  Bruno Haible  <bruno@clisp.org>
18067
18068         New module 'round-ieee'.
18069         * modules/round-ieee: New file.
18070         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
18071         whether round works according to ISO C 99 with IEC 60559.
18072         * m4/round-ieee.m4: New file.
18073         * modules/round-ieee-tests: New file.
18074         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
18075         * tests/test-round1.c (main): Remove signbit tests.
18076         * modules/round-tests (Depends-on): Remove 'signbit'.
18077         * doc/posix-functions/round.texi: Mention the new module.
18078
18079 2010-12-21  Bruno Haible  <bruno@clisp.org>
18080
18081         New module 'trunc-ieee'.
18082         * modules/trunc-ieee: New file.
18083         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
18084         whether trunc works according to ISO C 99 with IEC 60559.
18085         * m4/trunc-ieee.m4: New file.
18086         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
18087         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
18088         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
18089         * modules/trunc-ieee-tests: New file.
18090         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
18091         * tests/test-trunc1.c (main): Remove signbit tests.
18092         * modules/trunc-tests (Depends-on): Remove 'signbit'.
18093         * doc/posix-functions/trunc.texi: Mention the new module.
18094
18095 2010-12-21  Bruno Haible  <bruno@clisp.org>
18096
18097         New module 'ceil-ieee'.
18098         * modules/ceil-ieee: New file.
18099         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
18100         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
18101         ISO C 99 with IEC 60559.
18102         * m4/ceil-ieee.m4: New file.
18103         * modules/ceil (Files): Add lib/ceil.c.
18104         (Depends-on): Add 'float'.
18105         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18106         * lib/math.in.h (ceil): New declaration.
18107         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
18108         REPLACE_CEIL.
18109         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
18110         * modules/ceil-ieee-tests: New file.
18111         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
18112         * tests/test-math-c++.cc: Check the signature of 'ceil'.
18113         * doc/posix-functions/ceil.texi: Mention the new module.
18114
18115 2010-12-21  Bruno Haible  <bruno@clisp.org>
18116
18117         New module 'floor-ieee'.
18118         * modules/floor-ieee: New file.
18119         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
18120         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
18121         ISO C 99 with IEC 60559.
18122         * m4/floor-ieee.m4: New file.
18123         * modules/floor (Files): Add lib/floor.c.
18124         (Depends-on): Add 'float'.
18125         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18126         * lib/math.in.h (floor): New declaration.
18127         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
18128         REPLACE_FLOOR.
18129         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
18130         * modules/floor-ieee-tests: New file.
18131         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
18132         * tests/test-math-c++.cc: Check the signature of 'floor'.
18133         * doc/posix-functions/floor.texi: Mention the new module.
18134
18135 2010-12-21  Bruno Haible  <bruno@clisp.org>
18136
18137         New module 'roundf-ieee'.
18138         * modules/roundf-ieee: New file.
18139         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
18140         test whether roundf works according to ISO C 99 with IEC 60559.
18141         * m4/roundf-ieee.m4: New file.
18142         * modules/roundf-ieee-tests: New file.
18143         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
18144         * tests/test-roundf1.c (main): Remove signbit tests.
18145         * modules/roundf-tests (Depends-on): Remove 'signbit'.
18146         * doc/posix-functions/roundf.texi: Mention the new module.
18147
18148 2010-12-21  Bruno Haible  <bruno@clisp.org>
18149
18150         New module 'truncf-ieee'.
18151         * modules/truncf-ieee: New file.
18152         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
18153         test whether truncf works according to ISO C 99 with IEC 60559.
18154         * m4/truncf-ieee.m4: New file.
18155         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
18156         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
18157         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
18158         * modules/truncf-ieee-tests: New file.
18159         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
18160         * tests/test-truncf1.c (main): Remove signbit tests.
18161         * modules/truncf-tests (Depends-on): Remove 'signbit'.
18162         * doc/posix-functions/truncf.texi: Mention the new module.
18163
18164 2010-12-21  Bruno Haible  <bruno@clisp.org>
18165
18166         New module 'ceilf-ieee'.
18167         * modules/ceilf-ieee: New file.
18168         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
18169         test whether ceilf works according to ISO C 99 with IEC 60559.
18170         * m4/ceilf-ieee.m4: New file.
18171         * modules/ceilf-ieee-tests: New file.
18172         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
18173         * tests/test-ceilf1.c (main): Remove signbit tests.
18174         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
18175         * doc/posix-functions/ceilf.texi: Mention the new module.
18176
18177 2010-12-21  Bruno Haible  <bruno@clisp.org>
18178
18179         New module 'floorf-ieee'.
18180         * modules/floorf-ieee: New file.
18181         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
18182         test whether floorf works according to ISO C 99 with IEC 60559.
18183         * m4/floorf-ieee.m4: New file.
18184         * modules/floorf-ieee-tests: New file.
18185         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
18186         * tests/test-floorf1.c (main): Remove signbit tests.
18187         * modules/floorf-tests (Depends-on): Remove 'signbit'.
18188         * doc/posix-functions/floorf.texi: Mention the new module.
18189
18190 2010-12-21  Bruno Haible  <bruno@clisp.org>
18191
18192         Support for minus zero in autoconf macros.
18193         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
18194         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
18195         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
18196         * tests/minus-zero.h: Update comments.
18197
18198 2010-12-21  Bruno Haible  <bruno@clisp.org>
18199
18200         Tests for module 'ceil'.
18201         * modules/ceil-tests: New file.
18202         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
18203         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
18204
18205 2010-12-21  Bruno Haible  <bruno@clisp.org>
18206
18207         Tests for module 'floor'.
18208         * modules/floor-tests: New file.
18209         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
18210         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
18211
18212 2010-12-21  Bruno Haible  <bruno@clisp.org>
18213
18214         math: Fix indentation.
18215         * lib/math.in.h (floorf): Fix indentation.
18216
18217 2010-12-21  Bruno Haible  <bruno@clisp.org>
18218
18219         Fix cross-compilation guesses on Solaris.
18220         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
18221         not match "solaris2.10".
18222         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
18223         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
18224         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
18225
18226 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
18227
18228         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
18229         This fixes a problem observed with the latest coreutils snapshot
18230         that caused a test to fail on Solaris 8.  src/csplit.c's call
18231         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
18232         earlier, instead of returning the number of bytes that would have
18233         been generated; this causes csplit to incorrectly report memory
18234         exhaustion.
18235         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
18236         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
18237         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
18238         comments to match.
18239         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
18240         Fix typo in matching older versions of Solaris: "solaris2.10"
18241         is matched by the shell pattern "solaris2.[0-9]*".  This matters
18242         only for guessing while cross-compiling.
18243         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
18244
18245 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
18246
18247         ftoastr: fix comment again
18248         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
18249         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
18250         Also, simplify example a bit by using flags = 0.
18251
18252 2010-12-20  Bruno Haible  <bruno@clisp.org>
18253
18254         round*, trunc*: Update documentation regarding glibc.
18255         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
18256         * doc/posix-functions/round.texi: Likewise.
18257         * doc/posix-functions/roundl.texi: Likewise.
18258         * doc/posix-functions/truncf.texi: Likewise.
18259         * doc/posix-functions/trunc.texi: Likewise.
18260         * doc/posix-functions/truncl.texi: Likewise.
18261
18262 2010-12-20  Bruno Haible  <bruno@clisp.org>
18263
18264         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
18265         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
18266         * doc/posix-functions/round.texi: Likewise.
18267         * doc/posix-functions/roundl.texi: Likewise.
18268
18269 2010-12-20  Bruno Haible  <bruno@clisp.org>
18270
18271         ttyname_r: Add missing declaration on HP-UX 11.
18272         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
18273         HAVE_TTYNAME_R.
18274         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
18275         declared. Set HAVE_TTYNAME_R always.
18276         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18277         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
18278         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
18279         HAVE_TTYNAME_R.
18280         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
18281
18282 2010-12-20  Bruno Haible  <bruno@clisp.org>
18283
18284         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
18285         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
18286         * doc/posix-functions/getlogin_r.texi: Likewise.
18287         * tests/test-getlogin.c: Include <errno.h>.
18288         (main): Avoid test failure on HP-UX 11.11.
18289         * tests/test-getlogin_r.c (main): Likewise.
18290
18291 2010-12-20  Bruno Haible  <bruno@clisp.org>
18292
18293         getlogin_r: Add missing declaration on HP-UX 11.
18294         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
18295         declared also when it exists as a function.
18296         * doc/posix-functions/getlogin_r.texi: Document this workaround.
18297
18298 2010-12-20  Bruno Haible  <bruno@clisp.org>
18299
18300         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
18301         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
18302         through wcrtomb.
18303
18304 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
18305
18306         ftoastr: fix comment
18307         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
18308         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
18309
18310 2010-12-19  Bruno Haible  <bruno@clisp.org>
18311
18312         isnan: Ensure it is a macro.
18313         * lib/math.in.h (isnan): Define as a macro if not already a macro.
18314         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
18315         Solaris.
18316
18317 2010-12-19  Bruno Haible  <bruno@clisp.org>
18318
18319         ldexpl test: Fix link error on OSF/1 5.1.
18320         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
18321
18322 2010-12-19  Bruno Haible  <bruno@clisp.org>
18323
18324         wctype: Make it work in C++ mode on OSF/1 5.1.
18325         * lib/wctype.in.h (iswblank): Declare but not define here.
18326         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
18327         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
18328         * modules/wctype (Files): Add lib/iswblank.c.
18329
18330 2010-12-19  Bruno Haible  <bruno@clisp.org>
18331
18332         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
18333         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
18334         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
18335
18336 2010-12-19  Bruno Haible  <bruno@clisp.org>
18337
18338         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
18339         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
18340         _POSIX_PII_SOCKET.
18341         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
18342         * doc/posix-functions/recvfrom.texi: Likewise.
18343         * doc/posix-functions/send.texi: Likewise.
18344         * doc/posix-functions/sendto.texi: Likewise.
18345
18346 2010-12-19  Bruno Haible  <bruno@clisp.org>
18347
18348         tcgetsid: Add missing declaration on OSF/1 5.1.
18349         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
18350         HAVE_TCGETSID.
18351         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
18352         Don't set HAVE_TCGETSID.
18353         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
18354         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
18355         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
18356         HAVE_TCGETSID.
18357         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
18358
18359 2010-12-19  Bruno Haible  <bruno@clisp.org>
18360
18361         stdio: Fix problem with popen() declaration on OSF/1 5.1.
18362         * lib/stdio.in.h: During the include_next statement, let recursive
18363         includes of this file include only the system header file.
18364
18365 2010-12-19  Bruno Haible  <bruno@clisp.org>
18366
18367         iconv_open: Fix regression from 2010-12-04.
18368         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
18369         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
18370
18371 2010-12-19  Bruno Haible  <bruno@clisp.org>
18372
18373         stdbool test: Avoid a gcc warning.
18374         * tests/test-stdbool.c (main): Fail if e1 is false.
18375         Reported by Jim Meyering.
18376
18377 2010-12-19  Jim Meyering  <meyering@redhat.com>
18378
18379         setenv: restore to working order
18380         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
18381         mistakenly removed.
18382         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
18383         HAVE_SETENV.
18384         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
18385         HAVE_SETENV.
18386
18387 2010-12-19  Bruno Haible  <bruno@clisp.org>
18388
18389         Document some different function declarations on OSF/1 5.1.
18390         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
18391         * doc/posix-functions/inet_ntop.texi: Likewise.
18392         * doc/posix-functions/gethostname.texi: Likewise.
18393         * lib/unistd.in.h (gethostname): Update comment.
18394
18395 2010-12-19  Bruno Haible  <bruno@clisp.org>
18396
18397         doc: Mention vasprintf-posix module.
18398         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
18399         the 'vasprintf-posix' module.
18400         * doc/glibc-functions/vasprintf.texi: Likewise.
18401
18402 2010-12-19  Bruno Haible  <bruno@clisp.org>
18403
18404         unsetenv: Add missing declaration on OSF/1 5.1.
18405         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
18406         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
18407         Don't set HAVE_UNSETENV. In the test program, set _BSD.
18408         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
18409         not HAVE_UNSETENV.
18410         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
18411         HAVE_UNSETENV.
18412         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
18413
18414 2010-12-19  Bruno Haible  <bruno@clisp.org>
18415
18416         setenv: Add missing declaration on OSF/1 5.1.
18417         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
18418         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
18419         declared. Don't set HAVE_SETENV.
18420         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
18421         not HAVE_SETENV.
18422         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
18423         HAVE_SETENV.
18424         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
18425
18426 2010-12-19  Bruno Haible  <bruno@clisp.org>
18427
18428         nl_langinfo tests: Avoid gcc warning.
18429         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
18430
18431 2010-12-19  Bruno Haible  <bruno@clisp.org>
18432
18433         mknod: Avoid error in C++ mode on OSF/1 with GCC.
18434         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
18435         _GL_CXXALIAS_SYS.
18436
18437 2010-12-19  Bruno Haible  <bruno@clisp.org>
18438
18439         stdbool: Relax test.
18440         * tests/test-stdbool.c (e): Don't require that casts from a variable's
18441         address to 'bool' work in static initializer, for compilers other than
18442         GCC.
18443
18444 2010-12-19  Bruno Haible  <bruno@clisp.org>
18445
18446         ftello: Add missing declaration on OSF/1 5.1.
18447         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
18448         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
18449         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
18450         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
18451         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
18452
18453 2010-12-19  Bruno Haible  <bruno@clisp.org>
18454
18455         fseeko: Add missing declaration on OSF/1 5.1.
18456         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
18457         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
18458         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
18459         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
18460         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
18461
18462 2010-12-19  Bruno Haible  <bruno@clisp.org>
18463
18464         fchdir: Add missing declaration on OSF/1 5.1.
18465         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
18466         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
18467         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
18468         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
18469         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
18470
18471 2010-12-19  Bruno Haible  <bruno@clisp.org>
18472
18473         relocatable-prog-wrapper: Separate from relocatable-prog.
18474         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
18475         uninstall-relocwrapper rule here.
18476         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
18477         Reported by Ian Beckwith <ianb@erislabs.net>.
18478
18479 2010-12-19  Bruno Haible  <bruno@clisp.org>
18480
18481         unistr/u8-mbsnlen: Add missing dependency.
18482         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
18483         Reported by Ian Beckwith <ianb@erislabs.net>.
18484
18485 2010-12-19  Bruno Haible  <bruno@clisp.org>
18486
18487         iconv: Make it possible again to use this module without 'iconv-h'.
18488         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
18489         if it is not defined.
18490         Reported by Ian Beckwith <ianb@erislabs.net>.
18491
18492 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
18493
18494         acl: port to Solaris 8 when copying from tmpfs to ufs
18495         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
18496         error number.  Problem observed on Solaris 8 with latest
18497         coreutils, with "mv A B", where A is on a tmpfs file system and B
18498         is on a ufs file system.  This caused coreutils' mv/part-symlink
18499         test to fail.
18500
18501         tests: set fail=0 at start
18502         * tests/init.sh (setup_): Move fail=0 initialization here ...
18503         (mktempd_): ... from here, so that tests can rely on fail being
18504         set to 0 initially.  This fixes a problem in coreutils; see:
18505         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
18506
18507 2010-12-18  Bruno Haible  <bruno@clisp.org>
18508
18509         memmem-simple: Stylistic changes.
18510         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
18511         Fix preprocessor directive indentation.
18512
18513 2010-12-15  Pádraig Brady <P@draigBrady.com>
18514
18515         memmem, memmem-simple: reorganize and expand empty needle check
18516         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
18517         functional checks to memmem-simple so that one has a fully functional
18518         memmem by using just this module.
18519         Restrict the performance only check to the memmem module.
18520         Also expand the empty needle check to ensure the correct
18521         pointer is returned, not just a non NULL pointer.
18522         * doc/glibc-functions/memmem.texi: Rearrange the portability
18523         documentation to correlate with the rearranged checks.
18524         Clarify exactly how the memmem and memmem-simple modules
18525         relate to each other.
18526
18527 2010-12-15  Pádraig Brady <P@draigBrady.com>
18528             Bruno Haible  <bruno@clisp.org>
18529
18530         Improve cross-compilation guesses for uClibc.
18531         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
18532         that uClibc does not have the glibc bug.
18533         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
18534         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
18535
18536 2010-12-14  Eric Blake  <eblake@redhat.com>
18537
18538         configmake: provide fallbacks for oldest supported autotools
18539         * m4/configmake.m4: New file.
18540         * modules/configmake (Files): Ship it.
18541         (configure.ac): Use it to guarantee fallbacks.
18542
18543 2010-12-13  Pádraig Brady <P@draigBrady.com>
18544
18545         read-file: Improve handling of large files
18546         * lib/read-file.c (fread_file): Minimize realloc()s
18547         for regular files, and better manage sizes around SIZE_MAX.
18548
18549 2010-12-13  Eric Blake  <eblake@redhat.com>
18550
18551         cloexec, fcntl: relax license
18552         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
18553         consent from all contributors.
18554         * modules/fcntl (License): Likewise.
18555
18556 2010-12-10  Bruno Haible  <bruno@clisp.org>
18557
18558         Tests for module 'pipe-posix'.
18559         * modules/pipe-posix-tests: New file.
18560         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
18561
18562 2010-12-10  Bruno Haible  <bruno@clisp.org>
18563
18564         pipe-posix: Make it work in C++ mode.
18565         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
18566         (pipe): Use common idiom, not a macro definition.
18567         * lib/pipe.c: New file.
18568         * m4/pipe.m4: New file.
18569         * modules/pipe-posix (Description): Enhance.
18570         (Files): Add lib/pipe.c, m4/pipe.m4.
18571         (configure.ac): Invoke gl_FUNC_PIPE.
18572         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
18573         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
18574         * tests/test-unistd-c++.cc: Check the signature of pipe.
18575
18576 2010-12-10  Bruno Haible  <bruno@clisp.org>
18577
18578         Rename module 'pipe' to 'spawn-pipe'.
18579         * modules/spawn-pipe: New file, renamed from modules/pipe.
18580         (Files, configure.ac, Makefile.am): Update.
18581         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
18582         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
18583         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
18584         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
18585         "spawn-pipe.h" instead of "pipe.h".
18586         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
18587         to gl_SPAWN_PIPE.
18588         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
18589         (Files, Makefile.am): Update.
18590         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
18591         Update.
18592         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
18593         Include "spawn-pipe.h" instead of "pipe.h".
18594         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
18595         * lib/javacomp.c: Likewise.
18596         * lib/javaversion.c: Likewise.
18597         * lib/pipe-filter-gi.c: Likewise.
18598         * lib/pipe-filter-ii.c: Likewise.
18599         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
18600         * modules/javacomp (Depends-on): Likewise.
18601         * modules/javaversion (Depends-on): Likewise.
18602         * modules/pipe-filter-gi (Depends-on): Likewise.
18603         * modules/pipe-filter-ii (Depends-on): Likewise.
18604         * MODULES.html.sh (Executing programs): Update.
18605         * NEWS: Mention the change.
18606
18607 2010-12-10  Eric Blake  <eblake@redhat.com>
18608
18609         pipe-posix: new module
18610         * modules/pipe-posix: New file.
18611         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
18612         (gl_UNISTD_H): Check for declaration.
18613         * modules/unistd (Makefile.am): Substitute it.
18614         * lib/unistd.in.h (pipe): Provide it for mingw.
18615         * doc/posix-functions/pipe.texi (pipe): Update documentation.
18616         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
18617
18618 2010-12-07  Bruno Haible  <bruno@clisp.org>
18619
18620         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
18621         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
18622         u8_strcmp_gnu.
18623         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
18624
18625 2010-12-06  Bruno Haible  <bruno@clisp.org>
18626
18627         Update internal documentation.
18628         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
18629
18630 2010-12-04  Bruno Haible  <bruno@clisp.org>
18631
18632         Put more information about failed tests into the test return codes.
18633         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
18634         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
18635         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
18636         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
18637         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
18638         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18639         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18640         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
18641         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
18642         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18643         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
18644         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
18645         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
18646         * m4/stdint.m4 (gl_STDINT_H): Likewise.
18647         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
18648         returns a bit mask.
18649         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
18650         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
18651         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
18652         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
18653         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
18654         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
18655         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
18656         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
18657         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
18658         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
18659         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
18660         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
18661         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
18662         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
18663         * m4/link.m4 (gl_FUNC_LINK): Likewise.
18664         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
18665         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
18666         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
18667         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18668         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
18669         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
18670         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
18671         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
18672         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
18673         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
18674         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
18675         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
18676         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
18677         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
18678         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
18679         gl_PRINTF_PRECISION): Likewise.
18680         * m4/regex.m4 (gl_REGEX): Likewise.
18681         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
18682         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18683         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
18684         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18685         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
18686         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18687         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
18688         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
18689         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
18690         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18691         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
18692         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
18693         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
18694         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
18695         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18696         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
18697         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
18698         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18699         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18700         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
18701         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
18702         enumerated value.
18703         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
18704
18705 2010-12-04  Bruno Haible  <bruno@clisp.org>
18706
18707         Update for Solaris 11 2010-11.
18708         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
18709         Express, released in November 2010.
18710
18711 2010-12-04  Bruno Haible  <bruno@clisp.org>
18712
18713         nproc: Relax license.
18714         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
18715         and Paul Eggert.
18716         Requested by Ludovic Courtès <ludo@gnu.org>.
18717
18718 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
18719
18720         utimecmp: fine-grained src to nearby coarse-grained dest
18721
18722         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
18723         and the source is on a file system with higher-resolution time
18724         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
18725         not work, and the time stamps are close together, the algorithm to
18726         determine the exact resolution from the read-back mtime was buggy:
18727         it had a "!=" where it should have had an "==".  This bug has been
18728         in the code ever since it was introduced to gnulib.
18729         Problem reported by Dan Jacobson in
18730         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
18731
18732 2010-11-30  Bruno Haible  <bruno@clisp.org>
18733
18734         strerror_r-posix: Fix autoconf test.
18735         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
18736
18737 2010-11-28  Bruno Haible  <bruno@clisp.org>
18738             Paul Eggert  <eggert@cs.ucla.edu>
18739
18740         Tests for module 'getdomainname'.
18741         * modules/getdomainname-tests: New file.
18742         * tests/test-getdomainname.c: New file, based on
18743         tests/test-gethostname.c.
18744
18745 2010-11-28  Bruno Haible  <bruno@clisp.org>
18746             Paul Eggert  <eggert@cs.ucla.edu>
18747
18748         getdomainname: Use the system function when possible.
18749         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
18750         (getdomainname): Replace if needed. Provide the declaration if it is
18751         missing. Don't use _GL_CXXALIAS_SYS_CAST.
18752         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
18753         (getdomainname): When the system has getdomainname, call the system
18754         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
18755         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
18756         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
18757         found in libnsl. Look for the declaration also in <netdb.h>. Replace
18758         the function if its second argument is of type 'int' or if it is found
18759         in libnsl.
18760         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
18761         <sys/systeminfo.h> and sysinfo().
18762         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
18763         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18764         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
18765         HAVE_GETDOMAINNAME.
18766         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
18767         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
18768         * doc/glibc-functions/getdomainname.texi: Document the problems with
18769         the getdomainname declaration.
18770
18771 2010-11-28  Bruno Haible  <bruno@clisp.org>
18772
18773         sys_socket: Ensure ss_family field on AIX.
18774         * lib/sys_socket.in.h (ss_family): New macro definition.
18775         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
18776         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
18777         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
18778         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18779         * modules/sys_socket (Makefile.am): Substitute
18780         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18781         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
18782
18783 2010-11-27  Bruno Haible  <bruno@clisp.org>
18784
18785         readline: Improve configure output.
18786         * m4/readline.m4 (gl_FUNC_READLINE): Make the
18787         "checking for readline..." result understandable.
18788
18789 2010-11-27  Bruno Haible  <bruno@clisp.org>
18790
18791         *printf-posix: Detect a bug on Solaris 10/x86.
18792         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
18793         for floating-point output.
18794         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
18795         directive.
18796         * tests/test-snprintf-posix.h (test_function): Likewise.
18797         * tests/test-sprintf-posix.h (test_function): Likewise.
18798         * tests/test-vasprintf-posix.c (test_function): Likewise.
18799         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
18800         * doc/posix-functions/printf.texi: Likewise.
18801         * doc/posix-functions/snprintf.texi: Likewise.
18802         * doc/posix-functions/sprintf.texi: Likewise.
18803         * doc/posix-functions/vfprintf.texi: Likewise.
18804         * doc/posix-functions/vprintf.texi: Likewise.
18805         * doc/posix-functions/vsnprintf.texi: Likewise.
18806         * doc/posix-functions/vsprintf.texi: Likewise.
18807         * doc/glibc-functions/obstack_printf.texi: Likewise.
18808         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
18809
18810 2010-11-27  Bruno Haible  <bruno@clisp.org>
18811
18812         Fix link error when module libunistring-optional is in use.
18813         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
18814         * modules/striconveha-tests (Makefile.am): Likewise.
18815
18816 2010-11-27  Bruno Haible  <bruno@clisp.org>
18817
18818         regex: Mention link dependencies.
18819         * modules/regex (Link): New section.
18820         * modules/rpmatch (Link): Likewise.
18821         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
18822
18823 2010-11-27  Bruno Haible  <bruno@clisp.org>
18824
18825         ftoastr: Fix compilation error on Solaris.
18826         * lib/ftoastr.c: Include <config.h>.
18827
18828 2010-11-27  Bruno Haible  <bruno@clisp.org>
18829
18830         getloadavg: Update documentation.
18831         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
18832
18833 2010-11-27  Bruno Haible  <bruno@clisp.org>
18834
18835         sys_socket: Fix test whether the functions are declared.
18836         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
18837         not <sys/select.h>.
18838
18839 2010-11-27  Bruno Haible  <bruno@clisp.org>
18840
18841         getpass: Make sure to get system declaration on some platforms.
18842         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
18843         gl_USE_SYSTEM_EXTENSIONS.
18844         * modules/getpass (Depends-on): Add extensions.
18845
18846 2010-11-26  Bruno Haible  <bruno@clisp.org>
18847
18848         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
18849         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
18850         'iconv' module is present.
18851         (ICONV_CONST): New macro.
18852         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
18853         ICONV_CONST.
18854         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
18855         set ICONV_CONST.
18856         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
18857         here.
18858         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
18859         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
18860         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
18861         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
18862         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
18863         present.
18864
18865 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
18866
18867         ftoastr: comment fix
18868         * lib/ftoastr.c: "little" -> "little or no" in comment
18869
18870 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
18871
18872         stdint: port to GCC 4.3 + OSX + Octave
18873         On this platform, stdint.h is buggy and defines int64_t to long
18874         long int.  The replacement defined it to long int, causing
18875         problems with C++ style name mangling.  Instead, trust the system
18876         definition if INT64_MAX is defined, and likewise for the unsigned
18877         variant.   Problem reported by Jarno Rajahalme in
18878         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
18879         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
18880         and don't mess with int64_t and INT64_MAX in this case.
18881         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
18882
18883 2010-11-24  Bruno Haible  <bruno@clisp.org>
18884
18885         doc: Corrections regarding MacOS X 10.4 and 10.5.
18886         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
18887         MacOS X.
18888         Reported by Simon Josefsson.
18889
18890 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
18891
18892         Uninstall ".bin" files installed by relocwrapper.
18893         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
18894         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
18895         unless it is already there.
18896
18897 2010-11-21  Bruno Haible  <bruno@clisp.org>
18898
18899         Update for NetBSD 5.0.
18900         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18901         NetBSD; the test fails on NetBSD 5.0.
18902         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18903         about NetBSD.
18904
18905 2010-11-21  Bruno Haible  <bruno@clisp.org>
18906
18907         Update for HP-UX 11.23 and HP-UX 11.31.
18908         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
18909         HP-UX.
18910
18911 2010-11-21  Bruno Haible  <bruno@clisp.org>
18912
18913         Update for MacOS X 10.5.
18914         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18915         MacOS X; the test fails on MacOS X 10.5.8.
18916         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18917         about MacOS X.
18918
18919 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
18920
18921         bootstrap: add bootstrap_sync option.
18922         See discussion at
18923         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
18924         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
18925         * build-aux/bootstrap: Accept --bootstrap-sync to update
18926         bootstrap if it is not identical to the local gnulib's
18927         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
18928         enable this by default.  Accept --no-bootstrap-sync to disable
18929         it.
18930
18931 2010-11-20  Bruno Haible  <bruno@clisp.org>
18932
18933         Ensure that <features.h> is included before __GLIBC__ is tested.
18934         * lib/printf-parse.h: Include <features.h>.
18935         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
18936         Reported by Mike Frysinger <vapier@gentoo.org>.
18937
18938         Ensure that <features.h> is included before __GLIBC__ is tested.
18939         * lib/wchar.in.h: Include <features.h>.
18940         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
18941         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
18942         Reported by Mike Frysinger <vapier@gentoo.org>.
18943
18944         Ensure that <features.h> is included before __GLIBC__ is tested.
18945         * lib/arpa_inet.in.h: Include <features.h>.
18946         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
18947         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
18948         Reported by Mike Frysinger <vapier@gentoo.org>.
18949
18950         Ensure that <features.h> is included before __GLIBC__ is tested.
18951         * build-aux/link-warning.h: Include <features.h>.
18952         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
18953         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
18954         Reported by Mike Frysinger <vapier@gentoo.org>.
18955
18956         Ensure that <features.h> is included before __GLIBC__ is tested.
18957         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
18958         Reported by Mike Frysinger <vapier@gentoo.org>.
18959
18960 2010-11-20  Bruno Haible  <bruno@clisp.org>
18961
18962         memmem: Fix autoconf test.
18963         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
18964
18965 2010-11-20  Bruno Haible  <bruno@clisp.org>
18966
18967         Port to uClibc.
18968         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
18969         * lib/fcntl.in.h: Likewise.
18970         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
18971         * lib/mbrtowc.c (mbrtowc): Likewise.
18972         * lib/relocatable.c (find_shared_library_fullname): Likewise.
18973         * lib/strerror_r.c: Likewise.
18974         * lib/unistr/u8-strnlen.c: Likewise.
18975         * lib/vasnprintf.c (decimal_point_char): Likewise.
18976         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
18977         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
18978         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
18979         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
18980         * tests/test-sigaction.c (handler, main): Likewise.
18981         * lib/freading.h: Treat uClibc like a non-glibc platform.
18982         * lib/freading.c: Likewise.
18983         * lib/gettext.h: Likewise.
18984         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
18985         Likewise.
18986         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
18987         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
18988         * lib/propername.c (proper_name_utf8): Likewise.
18989         * lib/spawn.in.h: Likewise.
18990         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
18991         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
18992         mem_cd_iconveh_internal): Likewise.
18993         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
18994         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
18995         strstr, strcasestr): Likewise.
18996         * lib/unicodeio.c (unicode_to_mb): Likewise.
18997         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
18998         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
18999         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
19000         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
19001         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
19002         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
19003         * lib/unistr/u8-stpncpy.c: Likewise.
19004         * lib/vasnprintf.c (VASNPRINTF): Likewise.
19005         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
19006         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
19007         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
19008         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
19009         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
19010         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
19011         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
19012         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
19013         Likewise.
19014         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19015         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19016         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
19017         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19018         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
19019         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19020         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19021         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
19022         * tests/test-getopt.h (OPTIND_MIN): Likewise.
19023         * tests/test-striconveha.c (main): Likewise.
19024         * tests/test-vasnprintf-posix.c (test_function): Likewise.
19025         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
19026         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
19027         * doc/posix-functions/getline.texi: Likewise.
19028         Reported by Mike Frysinger <vapier@gentoo.org>.
19029
19030 2010-11-20  Bruno Haible  <bruno@clisp.org>
19031
19032         nproc: Fix condition.
19033         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
19034         HAVE_PTHREAD_AFFINITY_NP.
19035
19036 2010-11-20  Bruno Haible  <bruno@clisp.org>
19037
19038         Fix a comment.
19039         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
19040
19041 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
19042
19043         ftoastr: don't assume snprintf
19044         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
19045         Implement a subset of snprintf here, by using sprintf safely.
19046         * modules/ftoastr (Depends-on): Remove snprintf.
19047
19048 2010-11-19  Jim Meyering  <meyering@redhat.com>
19049
19050         test-rename.h: fix compilation failure
19051         * tests/test-rename.h (test_rename): Add omitted "}".
19052
19053 2010-11-17  Jim Meyering  <meyering@redhat.com>
19054
19055         maint.mk: add a URL discussing the no-@acronym policy
19056         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
19057
19058 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
19059
19060         ftoastr: depend on snprintf, improve comments
19061         * lib/ftoastr.c: Also mention Loitsch's draft.
19062         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
19063         needed in the current implementation, but it might simplify
19064         speeding up the code later.
19065         * modules/ftoastr: Depend on snprintf; this improves portability.
19066         Suggested by Bruno Haible in the same email.
19067
19068         ftoastr: port to hosts lacking strtof and strtold
19069         Problem reported by Bruno Haible in
19070         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
19071         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
19072         environment and strtold (and presumably strtof) are not available.
19073         * modules/ftoastr (Files): Add m4/c-strtod.m4.
19074         (configure.ac): Require gl_C99_STRTOLD.
19075
19076 2010-11-18  Bruno Haible  <bruno@clisp.org>
19077
19078         c-strtold: Avoid link error on AIX 7.
19079         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
19080         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
19081         (gl_C_STRTOLD): Test whether strtold_l exists.
19082         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19083
19084 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
19085
19086         intprops: new macro INT_BITS_STRLEN_BOUND
19087         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
19088         ftoastr.h.  This exposes an internal of intprops.h that was formerly
19089         not exposed.  Also, it uses a slightly tighter bound than before;
19090         though this makes no practical difference, we might as well be as
19091         tight as we easily can.
19092
19093         ftoastr: new module, for lossless conversion of floats to short strings
19094         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
19095         * modules/ftoastr: New files.
19096
19097 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
19098
19099         bootstrap: port to Solaris sed
19100         * build-aux/bootstrap (get_version): Port to Solaris sed.
19101         See Ralf Wildenhues's note in
19102         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
19103
19104 2010-11-14  Jim Meyering  <meyering@redhat.com>
19105
19106         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
19107         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
19108         and move definition closer to sole use.
19109
19110 2010-11-13  Jim Meyering  <meyering@redhat.com>
19111
19112         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
19113         Now we require at least autoconf-2.59, which means the work-around
19114         is no longer needed.
19115         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
19116         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
19117         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
19118         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
19119         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
19120
19121 2010-11-13  Bruno Haible  <bruno@clisp.org>
19122
19123         rename, renameat: Avoid test failures at NFS mounted locations.
19124         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
19125         functions.
19126         (test_rename): Use assert_nonexistent.
19127         * tests/test-rename.c: Include <dirent.h>.
19128         * tests/test-renameat.c: Likewise.
19129         Reported by Gary V. Vaughan <gary@gnu.org>.
19130
19131         rename, renameat: Document Linux bug with NFS
19132         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
19133         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
19134         * doc/posix-functions/renameat.texi: Likewise.
19135         Suggested by Eric Blake.
19136
19137 2010-11-13  Bruno Haible  <bruno@clisp.org>
19138
19139         rename test: Add comments.
19140         * tests/test-rename.h (test_rename): Add structure and comments.
19141
19142 2010-11-13  Eric Blake  <eblake@redhat.com>
19143
19144         maintainer-makefile: cover a few more files
19145         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
19146         scripts generated within C files, for libvirt.
19147
19148 2010-11-13  Bruno Haible  <bruno@clisp.org>
19149
19150         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
19151         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
19152         character, return the number of bytes that belong together, not always
19153         1.
19154         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
19155         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
19156         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
19157         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
19158         number of bytes of an invalid character.
19159         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
19160         (main): Invoke it.
19161         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
19162         results.
19163         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
19164         malformed byte sequences.
19165         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
19166         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
19167         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
19168         Reported by Ben Pfaff and Paolo Bonzini.
19169
19170 2010-11-13  Bruno Haible  <bruno@clisp.org>
19171
19172         openat: Work around glibc bug with fchownat() and empty file names.
19173         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
19174         (gl_FUNC_FCHOWNAT): Invoke it.
19175         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
19176         * doc/posix-functions/fchownat.texi: Document the glibc bug.
19177         Reported by Gary V. Vaughan <gary@gnu.org>.
19178
19179 2010-11-13  Bruno Haible  <bruno@clisp.org>
19180
19181         openat: Ensure autoconf macro ordering.
19182         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
19183         gl_USE_SYSTEM_EXTENSIONS.
19184         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
19185
19186 2010-11-13  Bruno Haible  <bruno@clisp.org>
19187
19188         Update comments.
19189         * lib/unistr/u8-check.c: Update file name in comments.
19190         * lib/unistr/u8-mblen.c: Likewise.
19191         * lib/unistr/u8-prev.c: Likewise.
19192         * lib/unistr/u8-strmblen.c: Likewise.
19193         * lib/unistr/u8-strmbtouc.c: Likewise.
19194
19195 2010-11-13  Jim Meyering  <meyering@redhat.com>
19196
19197         tests: avoid test failure on Solaris 10 due to lack of PATH export
19198         * tests/test-update-copyright.sh: Don't forget to export PATH.
19199
19200         init.sh: ensure that IFS is defined, just in case...
19201         * tests/init.sh (setup_): Ensure that IFS is defined,
19202         so that saving and restoring it works as expected.  This
19203         appears to be useful at least for an old version of dash
19204         from a long time ago (RH 6).  See here for details:
19205         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
19206
19207         maint.mk: tighten "test a == b" check
19208         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
19209         test to files that contain something like #!/bin/sh.
19210         Without this, coreutils would get two false positives in
19211         the comments of C source files.
19212
19213 2010-11-12  Eric Blake  <eblake@redhat.com>
19214
19215         bootstrap: fix typo in previous attempt
19216         * build-aux/bootstrap (buildreq): Correct the grouping.
19217         Reported by Paul Eggert.
19218
19219         maintainer-makefile: prohibit test x == x
19220         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
19221         Based on a report by Matthias Bolte.
19222
19223         bootstrap: allow FreeBSD gzip
19224         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
19225         which has no '.' and goes to stderr.
19226         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
19227         Reported by Matthias Bolte.
19228
19229         maintainer-makefile: check for i18n setup
19230         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
19231         will likely work.
19232
19233 2010-11-12  Bruno Haible  <bruno@clisp.org>
19234
19235         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
19236         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
19237         * lib/nanosleep.c (nanosleep): Likewise.
19238
19239 2010-11-11  Bruno Haible  <bruno@clisp.org>
19240
19241         fcntl-h: Fix for use of C++ on glibc systems.
19242         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
19243         also on glibc systems in C++ mode.
19244         Reported by Gary V. Vaughan <gary@gnu.org>.
19245
19246 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
19247
19248         mknod: avoid false failure with dash
19249         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
19250
19251 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
19252
19253         unlink: Fix "is it should" typo in diagnostic.
19254         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
19255         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
19256
19257 2010-11-11  Bruno Haible  <bruno@clisp.org>
19258
19259         Tests for module 'strerror_r-posix'.
19260         * modules/strerror_r-posix-tests: New file.
19261         * tests/test-strerror_r.c: New file.
19262         * tests/test-string-c++.cc: Check the signature of strerror_r.
19263
19264         New module 'strerror_r-posix'.
19265         * lib/string.in.h (strerror_r): New declaration.
19266         * lib/strerror_r.c: New file.
19267         * m4/strerror_r.m4: New file.
19268         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
19269         of strerror_r.
19270         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
19271         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
19272         * modules/strerror_r-posix: New file.
19273         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
19274         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
19275         * doc/posix-functions/strerror_r.texi: Mention the new module and the
19276         portability problems.
19277
19278 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
19279
19280         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
19281         line is also considered for output. Quoted function name in shell
19282         command, so temporary files for functions like MyClass::operator()
19283         are removed correctly without errors.
19284
19285 2010-11-09  Bruno Haible  <bruno@clisp.org>
19286
19287         * doc/posix-functions/strerror.texi: List more failing platforms.
19288
19289         * doc/posix-functions/strerror.texi: Add a comment.
19290
19291 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
19292
19293         fdopendir: fix bug on MacOS X when low on file descriptors
19294
19295         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
19296         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
19297         All callers changed.
19298         (fdopendir): Invoke save_cwd at the top level, not after using
19299         multiple dup() calls to use up file descriptors.  Then retry
19300         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
19301         less than the maximum number of open file descriptors, because
19302         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
19303         on Mac OS X 10.6.4 for tar 1.24
19304         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
19305         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
19306         and for tar 1.25
19307         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
19308
19309 2010-11-07  Bruno Haible  <bruno@clisp.org>
19310
19311         vasnprintf: Support I flag on glibc systems.
19312         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
19313         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
19314         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
19315         snprintf function.
19316         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
19317         glibc systems.
19318         * tests/test-vasnprintf-posix3.c: New file.
19319         * modules/vasnprintf-posix-tests (Files): Add it.
19320         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
19321
19322 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
19323
19324         [html] Fix copy/paste bug: Use unique name for compiler warnings.
19325         * MODULES.html.sh: For compiler warnings, use name
19326         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
19327
19328 2010-11-05  Eric Blake  <eblake@redhat.com>
19329
19330         ceil, floor: avoid spurious failure with icc
19331         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
19332         [denormals-as-zero] when optimizing without -mieee-fp option.
19333         * tests/test-floorf2.c (floorf_reference): Likewise.
19334         * tests/test-ceilf1.c (dummy): New function.
19335         (main): Use it to outsmart icc's optimization.
19336         * tests/test-floorf1.c (dummy, main): Likewise.
19337
19338         tests: require working signbit
19339         * modules/ceilf-tests (Depends-on): Add signbit.
19340         * modules/ceill-tests (Depends-on): Likewise.
19341         * modules/floorf-tests (Depends-on): Likewise.
19342         * modules/floorl-tests (Depends-on): Likewise.
19343         * modules/round-tests (Depends-on): Likewise.
19344         * modules/roundf-tests (Depends-on): Likewise.
19345         * modules/roundl-tests (Depends-on): Likewise.
19346         * modules/trunc-tests (Depends-on): Likewise.
19347         * modules/truncf-tests (Depends-on): Likewise.
19348         * modules/truncl-tests (Depends-on): Likewise.
19349
19350         strtod: work around icc bug
19351         * lib/strtod.c (minus_zero): Define to working value.
19352         (strtod): Use it to avoid icc bug.
19353
19354         copysign: enhance tests
19355         * modules/copysign-tests (Files): Add minus-zero.h.
19356         * tests/test-copysign.c (main): Also test zeros.
19357
19358 2010-11-04  Eric Blake  <eblake@redhat.com>
19359
19360         ceil, floor, round, trunc: enhance tests of -0
19361         * tests/test-ceilf1.c (main): Ensure correct sign of result.
19362         * tests/test-ceill.c (main): Likewise.
19363         * tests/test-floorf1.c (main): Likewise.
19364         * tests/test-floorl.c (main): Likewise.
19365         * tests/test-round1.c (main): Likewise.
19366         * tests/test-roundf1.c (main): Likewise.
19367         * tests/test-roundl.c (main): Likewise.
19368         * tests/test-trunc1.c (main): Likewise.
19369         * tests/test-truncf1.c (main): Likewise.
19370         * tests/test-truncl.c (main): Likewise.
19371
19372 2010-11-04  Eric Blake  <eblake@redhat.com>
19373
19374         frexp, tests: work around ICC bug with -zero
19375         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
19376         works with more compilers.
19377         * tests/minus-zero.h: New file.
19378         * modules/ceilf-tests (Files): Include it.
19379         * modules/ceill-tests (Files): Likewise.
19380         * modules/floorf-tests (Files): Likewise.
19381         * modules/floorl-tests (Files): Likewise.
19382         * modules/frexp-nolibm-tests (Files): Likewise.
19383         * modules/frexp-tests (Files): Likewise.
19384         * modules/frexpl-nolibm-tests (Files): Likewise.
19385         * modules/frexpl-tests (Files): Likewise.
19386         * modules/isnan-tests (Files): Likewise.
19387         * modules/isnand-nolibm-tests (Files): Likewise.
19388         * modules/isnand-tests (Files): Likewise.
19389         * modules/isnanf-nolibm-tests (Files): Likewise.
19390         * modules/isnanf-tests (Files): Likewise.
19391         * modules/isnanl-nolibm-tests (Files): Likewise.
19392         * modules/isnanl-tests (Files): Likewise.
19393         * modules/round-tests (Files): Likewise.
19394         * modules/roundf-tests (Files): Likewise.
19395         * modules/roundl-tests (Files): Likewise.
19396         * modules/ldexpl-tests (Files): Likewise.
19397         * modules/signbit-tests (Files): Likewise.
19398         * modules/snprintf-posix-tests (Files): Likewise.
19399         * modules/sprintf-posix-tests (Files): Likewise.
19400         * modules/strtod-tests (Files): Likewise.
19401         * modules/trunc-tests (Files): Likewise.
19402         * modules/truncf-tests (Files): Likewise.
19403         * modules/truncl-tests (Files): Likewise.
19404         * modules/vsnprintf-posix-tests (Files): Likewise.
19405         * modules/vsprintf-posix-tests (Files): Likewise.
19406         * modules/vasnprintf-posix-tests (Files): Likewise.
19407         * modules/vasprintf-posix-tests (Files): Likewise.
19408         * tests/test-ceilf1.c (main): Use it.
19409         * tests/test-ceill.c (main): Likewise.
19410         * tests/test-floorf1.c (main): Likewise.
19411         * tests/test-floorl.c (main): Likewise.
19412         * tests/test-frexp.c (main): Likewise.
19413         * tests/test-frexpl.c (main): Likewise.
19414         * tests/test-isnan.c (main): Likewise.
19415         * tests/test-isnand.h (main): Likewise.
19416         * tests/test-isnanf.h (main): Likewise.
19417         * tests/test-isnanl.h (main): Likewise.
19418         * tests/test-ldexpl.c (main): Likewise.
19419         * tests/test-round.c (main): Likewise.
19420         * tests/test-roundf.c (main): Likewise.
19421         * tests/test-roundl.c (main): Likewise.
19422         * tests/test-signbit.c (test_signbitf, test_signbitd)
19423         (test_signbitl): Likewise.
19424         * tests/test-snprintf-posix.h (test_function): Likewise.
19425         * tests/test-sprintf-posix.h (test_function): Likewise.
19426         * tests/test-strtod.c (main): Likewise.
19427         * tests/test-trunc1.c (main): Likewise.
19428         * tests/test-truncf1.c (main): Likewise.
19429         * tests/test-truncl.c (main): Likewise.
19430
19431         isnanl: work around icc bug
19432         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
19433
19434 2010-11-03  Eric Blake  <eblake@redhat.com>
19435
19436         tests: fix compiler warnings
19437         * tests/test-getopt.h (test_getopt): Fix condition.
19438         * tests/test-getopt_long.h (test_getopt_long): Likewise.
19439         * tests/test-pipe2.c (main): Likewise.
19440         * tests/test-quotearg-simple.c (main): Avoid icc warning.
19441
19442         utimens: fix broken m4 test
19443         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
19444
19445 2010-10-28  Bruno Haible  <bruno@clisp.org>
19446
19447         posix_spawn*, getdtablesize: Relax license.
19448         * modules/posix_spawn (License): Change to LGPLv2+.
19449         * modules/posix_spawnp (License): Likewise.
19450         * modules/posix_spawn-internal (License): Likewise.
19451         * modules/posix_spawnattr_init (License): Likewise.
19452         * modules/posix_spawnattr_getflags (License): Likewise.
19453         * modules/posix_spawnattr_setflags (License): Likewise.
19454         * modules/posix_spawnattr_getpgroup (License): Likewise.
19455         * modules/posix_spawnattr_setpgroup (License): Likewise.
19456         * modules/posix_spawnattr_getschedparam (License): Likewise.
19457         * modules/posix_spawnattr_setschedparam (License): Likewise.
19458         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
19459         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
19460         * modules/posix_spawnattr_getsigdefault (License): Likewise.
19461         * modules/posix_spawnattr_setsigdefault (License): Likewise.
19462         * modules/posix_spawnattr_getsigmask (License): Likewise.
19463         * modules/posix_spawnattr_setsigmask (License): Likewise.
19464         * modules/posix_spawnattr_destroy (License): Likewise.
19465         * modules/posix_spawn_file_actions_init (License): Likewise.
19466         * modules/posix_spawn_file_actions_addclose (License): Likewise.
19467         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
19468         * modules/posix_spawn_file_actions_addopen (License): Likewise.
19469         * modules/posix_spawn_file_actions_destroy (License): Likewise.
19470         * modules/getdtablesize (License): Likewise.
19471         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
19472
19473 2010-10-26  Bruno Haible  <bruno@clisp.org>
19474
19475         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
19476         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
19477         Cygwin and mingw.
19478         Suggested by Eric Blake.
19479
19480 2010-10-26  Bruno Haible  <bruno@clisp.org>
19481
19482         stdio: Work around compilation error due to renameat() on Solaris 10.
19483         * lib/stdio.in.h: Include <unistd.h> on Solaris.
19484         * lib/renameat.c: Don't include <unistd.h> here.
19485         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
19486         Reported by Paul Eggert and Eric Blake.
19487
19488 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
19489
19490         renameat: port to Solaris 10, which declares renameat in unistd.h
19491
19492         * lib/renameat.c: Include unistd.h before stdio.h, because
19493         Solaris 10 declares renameat in unistd.h.  Problem encountered
19494         when building GNU tar 1.24 on Solaris 10.
19495
19496 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
19497
19498         fdopendir: fix C89 compilation
19499         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
19500         compilers.
19501
19502 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
19503
19504         inttostr: simplify by removing unnecessary redundancy
19505         * lib/anytostr.c: Don't include verify.h.
19506         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
19507         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
19508         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
19509         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
19510         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
19511         Likewise.
19512         * modules/inttostr (Depends-on): Remove 'verify'.
19513
19514 2010-10-23  Bruno Haible  <bruno@clisp.org>
19515
19516         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
19517         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
19518         Reported by Eric Blake.
19519
19520 2010-10-23  Bruno Haible  <bruno@clisp.org>
19521
19522         Tests: Fix LOCALE_JA on MirBSD 10.
19523         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
19524         to an UTF-8 locale.
19525         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
19526         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19527         Reported by Eric Blake.
19528
19529 2010-10-21  Bruno Haible  <bruno@clisp.org>
19530
19531         nl_langinfo test: Avoid test failure on NetBSD 5.
19532         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
19533         Reported by Eric Blake.
19534
19535 2010-10-21  Eric Blake  <eblake@redhat.com>
19536
19537         c-stack: work around libsigsegv 2.8 bug
19538         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
19539         overflow on at least PowerPC64.
19540
19541 2010-10-17  Bruno Haible  <bruno@clisp.org>
19542
19543         userspec: Drop redundant file.
19544         * modules/userspec (Files): Remove lib/inttostr.h.
19545
19546 2010-10-17  Bruno Haible  <bruno@clisp.org>
19547
19548         nl_langinfo tests: Silence some warnings.
19549         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
19550         Reported by Jim Meyering.
19551
19552 2010-10-17  Bruno Haible  <bruno@clisp.org>
19553
19554         Make use of GCC's attribute __alloc_size__.
19555         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
19556         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
19557         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
19558         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
19559         __alloc_size__.
19560         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
19561         Suggested by Jim Meyering.
19562
19563 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
19564
19565         bootstrap: anchor .gitignore entries.
19566         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
19567         with...
19568         (insert_vc_ignore): ... this new function, which prepends `/' to
19569         all .gitignore entries before passing them to
19570         insert_sorted_if_absent.
19571
19572 2010-10-16  Bruno Haible  <bruno@clisp.org>
19573
19574         nextafter: Fix configure check.
19575         * modules/nextafter (configure.ac): Correct expected prototype.
19576
19577 2010-10-16  Bruno Haible  <bruno@clisp.org>
19578
19579         termios: Update documentation.
19580         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
19581
19582 2010-10-16  Bruno Haible  <bruno@clisp.org>
19583
19584         tests: Make them compile with TinyCC.
19585         * tests/test-strstr.c (main): Remove parentheses around array
19586         initializer.
19587
19588 2010-10-15  Eric Blake  <eblake@redhat.com>
19589
19590         ignore-value: make header idempotent
19591         * lib/ignore-value.h: Add double-inclusion guards.
19592         Reported by Stefan Berger.
19593
19594 2010-10-15  Jim Meyering  <meyering@redhat.com>
19595
19596         GNUmakefile: handle "stable" target, not "major"
19597         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
19598         lists in maint.mk and announce-gen.  Without this, "make stable"
19599         would fail to ensure that $(VERSION) is up to date.
19600
19601 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
19602
19603         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
19604         & co.
19605
19606 2010-10-14  Bruno Haible  <bruno@clisp.org>
19607
19608         vasnprintf: Don't set errno to 0.
19609         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
19610         block that sets it to 0.
19611         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
19612
19613 2010-10-14  Bruno Haible  <bruno@clisp.org>
19614
19615         socketlib: Fix.
19616         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
19617         gl_PREREQ_SYS_H_WINSOCK2.
19618         Reported by Ian Beckwith <ianb@erislabs.net>.
19619
19620 2010-10-13  Jim Meyering  <meyering@redhat.com>
19621
19622         test-select-stdin.c: avoid warn_unused_result warnings
19623         * tests/test-select-stdin.c: Include "macros.h".
19624         ASSERT that read and fflush succeed.
19625
19626 2010-10-13  Jim Meyering  <meyering@redhat.com>
19627
19628         git-version-gen: do require git-VC'd files in cwd
19629         * build-aux/git-version-gen: Reject a git version string
19630         if there are no commits associated with the current directory.
19631         This avoids an unlikely false-positive (unrelated dir whose parent
19632         repository also contains a tag matching v*), as pointed out
19633         by Giuseppe Scrivano in
19634         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
19635
19636 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
19637
19638         argv-iter: omit nonconforming declaration
19639         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
19640         enum arg_iter_err declaration, which doesn't conform to C99.
19641         Solaris 10 cc warns about this.
19642
19643 2010-10-13  Eric Blake  <eblake@redhat.com>
19644
19645         termios: fix compilation on mingw
19646         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
19647         (gl_TERMIOS_H): Adjust it on mingw.
19648         * modules/termios (Makefile.am): Substitute new key.
19649         * lib/termios.in.h (includes): Make include_next conditional.
19650         * doc/posix-headers/termios.texi (termios.h): Update
19651         documentation.
19652         Reported by Daniel P. Berrange.
19653
19654 2010-10-13  Jim Meyering  <meyering@redhat.com>
19655
19656         git-version-gen: don't require that .git/ be in the current dir
19657         * build-aux/git-version-gen: Adjust this script so that it works
19658         when run from any working directory beneath the top-level .git/-
19659         containing directory.  Inspired by a patch from Giuseppe Scrivano,
19660         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
19661
19662         test-select: avoid warn_unused_result warnings
19663         * tests/test-select.c: Include "macros.h".
19664         ASSERT that each call to read, write, and pipe succeeds.
19665         While not technically required, also check each "close".
19666         * modules/select-tests (Files): Add tests/macros.h.
19667
19668         test-symlinkat: remove declaration of unused local
19669         * tests/test-symlinkat.c (main): Remove unused local, "buf".
19670
19671         test-inttostr: avoid shadowing warnings
19672         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
19673         and use malloc rather than the stack for the same reason as
19674         mentioned in the comment justifying the other allocation.
19675
19676 2010-10-11  Bruno Haible  <bruno@clisp.org>
19677
19678         stdlib: Allow multiple gnulib generated replacements to coexist.
19679         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
19680         Reported by Sam Steingold <sds@gnu.org>.
19681
19682 2010-10-11  Jim Meyering  <meyering@redhat.com>
19683
19684         fix a documentation typo
19685         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
19686
19687 2010-10-11  Eric Blake  <eblake@redhat.com>
19688
19689         futimens: work around Solaris 11 bug
19690         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
19691         * tests/test-futimens.h (test_futimens): Enhance, rather than
19692         weaken test.
19693         * doc/posix-functions/futimens.texi (futimens): Document the bug.
19694
19695 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
19696
19697         Indentation.
19698         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
19699         higher-level operators more to the left.
19700
19701 2010-10-11  Jim Meyering  <meyering@redhat.com>
19702
19703         test-futimens: avoid unwarranted test failure on Solaris 5.11
19704         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
19705         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
19706         because it tries to dereference the NULL name argument.
19707
19708 2010-10-11  Bruno Haible  <bruno@clisp.org>
19709
19710         Indentation.
19711         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
19712         indentation.
19713
19714 2010-10-11  Jim Meyering  <meyering@redhat.com>
19715
19716         spawn.in.h: make indentation consistent with parentheses
19717         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
19718         Make indentation consistent with parentheses.
19719
19720 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
19721
19722         Fix mismatched parens in previous commit
19723         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
19724         parens.
19725
19726 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
19727
19728         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
19729
19730         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
19731         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
19732         * lib/malloca.c: Include "verify.h".
19733         (verify1): Remove, replacing with a verify call.
19734         * lib/relocwrapper.c (verify1): Likewise.
19735         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
19736         Likewise.
19737         * modules/malloca (Depends-on): Add 'verify'.
19738         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
19739         * modules/vasnprintf (Depends-on): Add 'verify'.
19740         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
19741         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
19742         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
19743         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
19744         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
19745         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
19746         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
19747
19748         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
19749
19750         Formerly the style was sometimes 2*X - 1, because the C standard
19751         was wrongly thought to disallow ?: in integral constant expressions.
19752         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
19753         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
19754         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
19755         * lib/stdint.in.h (_verify_intmax_size): Likewise.
19756         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
19757         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
19758         verify that time_t cannot be floating.
19759
19760 2010-10-08  Eric Blake  <eblake@redhat.com>
19761
19762         time: enforce recent POSIX ruling that time_t is integral
19763         * lib/time.in.h (__time_t_must_be_integral): Detect any
19764         problematic systems, allowing the rest of gnulib to assume POSIX.
19765
19766 2010-10-08  Jim Meyering  <meyering@redhat.com>
19767
19768         fdopendir: fix a bug on systems lacking openat and /proc support
19769         OpenBSD 4.7 is one such system.  The most noticeable effect was
19770         failure of any application making nontrivial use of fts: rm, du,
19771         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
19772           ./rm: traversal failed: `a': Bad file descriptor
19773         Debugging that, you see that even though FD 6 was closed just
19774         prior to the opendir call in fd_clone_opendir, its resulting
19775         dir->dd_fd was 8, rather than the expected value of 6:
19776
19777         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
19778         93                close (fd);
19779         (gdb) n
19780         94                dir = fd_clone_opendir (dupfd);
19781         (gdb) n
19782         95                saved_errno = errno;
19783         (gdb) p dir->dd_fd
19784         $11 = 8
19785
19786         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
19787         The problem is that on OpenBSD, fd_clone_opendir has to resort
19788         to using the old-style save/restore CWD mechanism, due to its
19789         lack of openat/proc support, and *that* would steal the FD (6)
19790         that opendir was supposed to use.
19791
19792         The fix is to squirrel away the desired FD so that save_cwd uses a
19793         different one, and then free the dest FD right before calling opendir.
19794         That guarantees opendir will use the required file descriptor.
19795
19796         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
19797
19798 2010-10-08  Bruno Haible  <bruno@clisp.org>
19799
19800         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
19801         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
19802
19803 2010-10-08  Bruno Haible  <bruno@clisp.org>
19804
19805         nanosleep: Make replacement POSIX compliant.
19806         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
19807         is out of range.
19808         Reported by Jim Meyering.
19809
19810 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
19811
19812         bootstrap: add hook for altering gnulib.mk, for Bison
19813         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
19814         the Bison bootstrapping process can rewrite file names and variables
19815         in this file before later parts of 'bootstrap' use the file.
19816         Bison wants to include lib/gnulib.mk from the top-level makefile,
19817         so it needs the file names in this file to be relative to the top
19818         level, not relative to lib; plus it needs variable names to be
19819         rewritten.
19820         (slurp): Use the new function.
19821
19822         bootstrap: reformat for readability
19823         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
19824
19825 2010-10-08  Eric Blake  <eblake@redhat.com>
19826
19827         docs: update cygwin progress
19828         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
19829         1.7.7.
19830         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
19831         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
19832         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
19833         * doc/posix-functions/carg.texi (carg): Likewise.
19834         * doc/posix-functions/cargf.texi (cargf): Likewise.
19835         * doc/posix-functions/casin.texi (casin): Likewise.
19836         * doc/posix-functions/casinf.texi (casinf): Likewise.
19837         * doc/posix-functions/casinh.texi (casinh): Likewise.
19838         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
19839         * doc/posix-functions/catan.texi (catan): Likewise.
19840         * doc/posix-functions/catanf.texi (catanf): Likewise.
19841         * doc/posix-functions/catanh.texi (catanh): Likewise.
19842         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
19843         * doc/posix-functions/ccos.texi (ccos): Likewise.
19844         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
19845         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
19846         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
19847         * doc/posix-functions/cexp.texi (cexp): Likewise.
19848         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
19849         * doc/posix-functions/cimag.texi (cimag): Likewise.
19850         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
19851         * doc/posix-functions/clog.texi (clog): Likewise.
19852         * doc/posix-functions/clogf.texi (clogf): Likewise.
19853         * doc/posix-functions/conj.texi (conj): Likewise.
19854         * doc/posix-functions/conjf.texi (conjf): Likewise.
19855         * doc/posix-functions/cpow.texi (cpow): Likewise.
19856         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
19857         * doc/posix-functions/cproj.texi (cproj): Likewise.
19858         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
19859         * doc/posix-functions/creal.texi (creal): Likewise.
19860         * doc/posix-functions/crealf.texi (crealf): Likewise.
19861         * doc/posix-functions/csin.texi (csin): Likewise.
19862         * doc/posix-functions/csinf.texi (csinf): Likewise.
19863         * doc/posix-functions/csinh.texi (csinh): Likewise.
19864         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
19865         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
19866         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
19867         * doc/posix-functions/ctan.texi (ctan): Likewise.
19868         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
19869         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
19870         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
19871         * doc/posix-headers/complex.texi (complex.h): Likewise.
19872
19873 2010-10-07  Jim Meyering  <meyering@redhat.com>
19874
19875         parse-datetime: avoid compilation failure on OpenBSD 4.7
19876         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
19877         This works around a compilation failure on OpenBSD 4.7:
19878         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
19879
19880 2010-10-07  Eric Blake  <eblake@redhat.com>
19881
19882         docs: update cygwin progress
19883         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
19884         1.7.6.
19885         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
19886         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
19887         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
19888         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
19889         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
19890         Likewise.
19891         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
19892         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
19893         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
19894         Likewise.
19895         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
19896         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
19897         Likewise.
19898         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
19899         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
19900         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
19901         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
19902         Likewise.
19903         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
19904         Likewise.
19905         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
19906
19907         docs: update parse-datetime history
19908         * doc/parse-datetime.texi (Authors of parse_datetime): Better
19909         documentation of this function's history and alternatives.
19910
19911         cygwin: use more robust version check
19912         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
19913         exclude an eventual cygwin 1.9.1.
19914         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19915         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19916         (gl_FUNC_STRCASESTR): Likewise.
19917         Reported by Bruno Haible.
19918
19919 2010-10-06  Bruno Haible  <bruno@clisp.org>
19920
19921         string, sys_select: Avoid #including large headers unless necessary.
19922         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
19923         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
19924         OSF/1, BeOS, Haiku.
19925         Reported by Jim Meyering.
19926
19927 2010-10-05  Eric Blake  <eblake@redhat.com>
19928
19929         memmem, strstr, strcasestr: fix bug with long periodic needle
19930         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
19931         periodic needle having false positive.
19932         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
19933         and cygwin 1.7.7.
19934         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
19935         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19936         (gl_FUNC_STRCASESTR): Likewise.
19937         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19938         * tests/test-memmem.c (main): Expose the bug.
19939         * tests/test-strcasestr.c (main): Likewise.
19940         * tests/test-strstr.c (main): Likewise.
19941         * tests/test-c-strcasestr.c (main): Likewise.
19942         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
19943         * doc/posix-functions/strstr.texi (strstr): Likewise.
19944         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
19945         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
19946
19947 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19948
19949         parse-datetime: do some more renaming
19950         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
19951         parse_datetime, not get_date.  Mention the renaming.
19952         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
19953         in comments.
19954         * m4/bison.m4: Likewise.
19955
19956 2010-10-05  Eric Blake  <eblake@redhat.com>
19957
19958         parse-datetime: better name than get_date
19959         * NEWS: Reword the deprecation notice.
19960         * modules/get_date: Rename to modules/parse-datetime.
19961         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
19962         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
19963         * lib/get_date.y: Rename to lib/parse-datetime.y.
19964         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
19965         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
19966         * doc/getdate.texi: Provide fallback wrapper.
19967         * lib/getdate.h: Move guts, and wrap...
19968         * lib/parse-datetime.h: ...new file.
19969         * lib/parse-datetime.y (get_date): Rename...
19970         (parse_datetime): ...to this.
19971         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
19972         (gl_PARSE_DATETIME): ...to this.
19973         * doc/posix-functions/getdate.texi (get_date): Provide fallback
19974         documentation.
19975         * modules/getdate (Files): Provide fallback docs and header.
19976         (Notice, Depends-on): Update references.
19977         * tests/test-parse-datetime.c: Likewise.
19978         * DEPENDENCIES: Likewise.
19979         * MODULES.html.sh (Date and time <time.h>): Likewise.
19980         * doc/parse-datetime.texi (Date input formats)
19981         (Authors of parse_datetime): Likewise.
19982         * modules/parse-datetime (Files, configure.ac, Makefile.am)
19983         (Include): Likewise.
19984         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
19985         * gnulib-tool: Likewise.
19986         * m4/bison.m4 (gl_BISON): Likewise.
19987         Suggested by Bruno Haible.
19988
19989 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19990
19991         more ports to Solaris tr, which needs [] around ranges
19992         * gnulib-tool: Solaris tr needs [] around ranges.
19993         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19994         * tests/test-pipe-filter-gi1.c (main): Likewise.
19995         * tests/test-pipe-filter-ii1.c (main): Likewise.
19996
19997 2010-10-05  Eric Blake  <eblake@redhat.com>
19998
19999         bootstrap: fix Solaris regression
20000         * build-aux/bootstrap (check_versions): Solaris tr still needs []
20001         around ranges.
20002         Reported by Pádraig Brady.
20003
20004         bootstrap: work with pkg-config
20005         * build-aux/bootstrap (check_versions): Also transliterate - in
20006         prerequisite name.
20007         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
20008         prerequisites that were already found, to avoid confusion.
20009         Reported by Justin Clift.
20010
20011         faccessat: remove unused wrappers
20012         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
20013         presence of these wrappers dragged in -lgen on Solaris.
20014         Reported by Clemens Brogi; fix suggested by Paul Eggert.
20015
20016 2010-10-05  Jim Meyering  <meyering@redhat.com>
20017
20018         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
20019         * Makefile (sc_pragma_columns): New syntax-check rule.
20020
20021 2010-10-04  Bruno Haible  <bruno@clisp.org>
20022
20023         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
20024         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
20025         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
20026         Reported by Bruce Korb and Eric Blake.
20027
20028 2010-10-04  Bruno Haible  <bruno@clisp.org>
20029
20030         threadlib: Make option --with-libpth-prefix work.
20031         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
20032         use $LIBPTH, not just -lpth.
20033
20034 2010-10-04  Bruno Haible  <bruno@clisp.org>
20035
20036         Avoid line length limitation from HP NonStop system header files.
20037         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
20038         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
20039         * lib/ctype.in.h: Likewise.
20040         * lib/dirent.in.h: Likewise.
20041         * lib/errno.in.h: Likewise.
20042         * lib/fcntl.in.h: Likewise.
20043         * lib/float.in.h: Likewise.
20044         * lib/getopt.in.h: Likewise.
20045         * lib/iconv.in.h: Likewise.
20046         * lib/inttypes.in.h: Likewise.
20047         * lib/langinfo.in.h: Likewise.
20048         * lib/locale.in.h: Likewise.
20049         * lib/math.in.h: Likewise.
20050         * lib/netdb.in.h: Likewise.
20051         * lib/netinet_in.in.h: Likewise.
20052         * lib/poll.in.h: Likewise.
20053         * lib/pthread.in.h: Likewise.
20054         * lib/pty.in.h: Likewise.
20055         * lib/sched.in.h: Likewise.
20056         * lib/se-selinux.in.h: Likewise.
20057         * lib/search.in.h: Likewise.
20058         * lib/signal.in.h: Likewise.
20059         * lib/spawn.in.h: Likewise.
20060         * lib/stdarg.in.h: Likewise.
20061         * lib/stddef.in.h: Likewise.
20062         * lib/stdint.in.h: Likewise.
20063         * lib/stdio.in.h: Likewise.
20064         * lib/stdlib.in.h: Likewise.
20065         * lib/string.in.h: Likewise.
20066         * lib/strings.in.h: Likewise.
20067         * lib/sys_file.in.h: Likewise.
20068         * lib/sys_ioctl.in.h: Likewise.
20069         * lib/sys_select.in.h: Likewise.
20070         * lib/sys_socket.in.h: Likewise.
20071         * lib/sys_stat.in.h: Likewise.
20072         * lib/sys_time.in.h: Likewise.
20073         * lib/sys_times.in.h: Likewise.
20074         * lib/sys_utsname.in.h: Likewise.
20075         * lib/sys_wait.in.h: Likewise.
20076         * lib/sysexits.in.h: Likewise.
20077         * lib/termios.in.h: Likewise.
20078         * lib/time.in.h: Likewise.
20079         * lib/unistd.in.h: Likewise.
20080         * lib/wchar.in.h: Likewise.
20081         * lib/wctype.in.h: Likewise.
20082         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
20083         * modules/ctype (Makefile.am): Likewise.
20084         * modules/dirent (Makefile.am): Likewise.
20085         * modules/errno (Makefile.am): Likewise.
20086         * modules/fcntl-h (Makefile.am): Likewise.
20087         * modules/float (Makefile.am): Likewise.
20088         * modules/getopt-posix (Makefile.am): Likewise.
20089         * modules/iconv-h (Makefile.am): Likewise.
20090         * modules/inttypes (Makefile.am): Likewise.
20091         * modules/langinfo (Makefile.am): Likewise.
20092         * modules/locale (Makefile.am): Likewise.
20093         * modules/math (Makefile.am): Likewise.
20094         * modules/netdb (Makefile.am): Likewise.
20095         * modules/netinet_in (Makefile.am): Likewise.
20096         * modules/poll-h (Makefile.am): Likewise.
20097         * modules/pthread (Makefile.am): Likewise.
20098         * modules/pty (Makefile.am): Likewise.
20099         * modules/sched (Makefile.am): Likewise.
20100         * modules/search (Makefile.am): Likewise.
20101         * modules/selinux-h (Makefile.am): Likewise.
20102         * modules/signal (Makefile.am): Likewise.
20103         * modules/spawn (Makefile.am): Likewise.
20104         * modules/stdarg (Makefile.am): Likewise.
20105         * modules/stddef (Makefile.am): Likewise.
20106         * modules/stdint (Makefile.am): Likewise.
20107         * modules/stdio (Makefile.am): Likewise.
20108         * modules/stdlib (Makefile.am): Likewise.
20109         * modules/string (Makefile.am): Likewise.
20110         * modules/strings (Makefile.am): Likewise.
20111         * modules/sys_file (Makefile.am): Likewise.
20112         * modules/sys_ioctl (Makefile.am): Likewise.
20113         * modules/sys_select (Makefile.am): Likewise.
20114         * modules/sys_socket (Makefile.am): Likewise.
20115         * modules/sys_stat (Makefile.am): Likewise.
20116         * modules/sys_time (Makefile.am): Likewise.
20117         * modules/sys_times (Makefile.am): Likewise.
20118         * modules/sys_utsname (Makefile.am): Likewise.
20119         * modules/sys_wait (Makefile.am): Likewise.
20120         * modules/sysexits (Makefile.am): Likewise.
20121         * modules/termios (Makefile.am): Likewise.
20122         * modules/time (Makefile.am): Likewise.
20123         * modules/unistd (Makefile.am): Likewise.
20124         * modules/wchar (Makefile.am): Likewise.
20125         * modules/wctype (Makefile.am): Likewise.
20126
20127 2010-10-04  Bruno Haible  <bruno@clisp.org>
20128
20129         read-file tests: Avoid a test failure on NonStop Kernel.
20130         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
20131         a regular file.
20132         Reported by Joachim Schmitz <schmitz@hp.com>.
20133
20134 2010-10-03  Bruno Haible  <bruno@clisp.org>
20135
20136         gnulib-tool: Fixes for --create-testdir with --libtool.
20137         * gnulib-tool (func_get_automake_snippet): Don't augment
20138         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
20139         an executable.
20140         (func_create_testdir): Handle module 'alloca' like func_import.
20141         Reported by Bruce Korb <bruce.korb@gmail.com>.
20142
20143 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
20144
20145         Avoid some lines longer than 80 characters.
20146         * lib/stdint.in.h: Break long comment lines.
20147         * lib/math.in.h: Likewise.
20148         (_GL_NUM_UINT_WORDS): New macro, for readability.
20149         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
20150         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
20151         * lib/stdlib.in.h: Likewise.
20152         * lib/spawn.in.h: Likewise.
20153         * lib/sys_socket.in.h: Update an URL.
20154         * lib/sys_stat.in.h: Break long line.
20155
20156 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
20157
20158         Improve pmccabe2html.
20159         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
20160         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
20161         when the sources change. Remove the line in the HTML about "Used
20162         ranges" (which implied that there might be other unused ranges),
20163         rename "Resume" to "Summary" (easier to understand for more users).
20164         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
20165         styles, and some unnecessary blank lines.
20166
20167 2010-10-03  Bruno Haible  <bruno@clisp.org>
20168             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
20169
20170         acl: Add support for ACLs on NonStop Kernel.
20171         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
20172         Check whether the function aclsort() exists.
20173         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
20174         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
20175         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20176         (acl_nontrivial [HAVE_ACLSORT]: New function.
20177         (file_has_acl): Implement for NonStop Kernel.
20178         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20179         (qset_acl): Implement for NonStop Kernel.
20180         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
20181         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20182         (main): Implement for NonStop Kernel.
20183         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
20184         Kernel. Handle this flavor.
20185         * tests/test-set-mode-acl.sh: Likewise.
20186         * tests/test-copy-acl.sh: Likewise.
20187         * tests/test-copy-file.sh: Likewise.
20188
20189 2010-10-03  Bruno Haible  <bruno@clisp.org>
20190
20191         Info about ACLs on NonStop Kernel.
20192         * doc/acl-resources.txt: Add info about NonStop Kernel.
20193         References by Joachim Schmitz <schmitz@hp.com>.
20194
20195 2010-10-02  Bruno Haible  <bruno@clisp.org>
20196
20197         Define missing EDQUOT on NonStop Kernel.
20198         * lib/errno.in.h (EDQUOT): Assign a value if missing.
20199         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
20200         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
20201         missing.
20202         * doc/posix-headers/errno.texi: Mention the NSK bug.
20203         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
20204         Reported by Joachim Schmitz <schmitz@hp.com>.
20205
20206 2010-10-02  Bruno Haible  <bruno@clisp.org>
20207
20208         Update doc for POSIX:2008.
20209         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
20210         Update URL of POSIX specification.
20211
20212 2010-10-02  Bruno Haible  <bruno@clisp.org>
20213
20214         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
20215         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
20216         from gnulib, not from Automake.
20217
20218 2010-10-02  Bruno Haible  <bruno@clisp.org>
20219
20220         New module 'system-posix'.
20221         * modules/system-posix: New file.
20222         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
20223         module is present.
20224         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
20225         GNULIB_SYSTEM_POSIX.
20226         * modules/stdlib (Depends-on): Remove sys_wait.
20227         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
20228         * doc/posix-functions/system.texi: Mention the new module.
20229         * doc/posix-headers/stdlib.texi: Likewise.
20230         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
20231         define test_sys_wait_macros to a no-op.
20232         Reported by Sam Steingold <sds@gnu.org>.
20233
20234 2010-09-30  Bruno Haible  <bruno@clisp.org>
20235
20236         More renaming from 'getdate' to 'get_date'.
20237         * doc/get_date.texi: Renamed from doc/getdate.texi.
20238         * modules/get_date (Files): Update.
20239         * MODULES.html.sh (Date and time <time.h>): Update.
20240         * DEPENDENCIES: Update.
20241         * gnulib-tool: Update comment.
20242         * m4/bison.m4 (gl_BISON): Likewise.
20243         * m4/get_date.m4 (gl_GET_DATE): Likewise.
20244
20245 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
20246
20247         bootstrap: support ACLOCAL_FLAGS during aclocal
20248         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
20249         can add additional -I dir for third-party .m4 files.
20250
20251 2010-09-30  Eric Blake  <eblake@redhat.com>
20252
20253         bootstrap: use glibtoolize on MacOS
20254         * build-aux/bootstrap (check_versions): Convert libtool into
20255         libtoolize.
20256         (tool search): Move libtool check earlier, and look for
20257         glibtoolize for MacOS.
20258         (gnulib_tool_options): Auto-add --libtool when appropriate.
20259         Reported by Justin Clift.
20260
20261         poll: fix typo that broke test on MacOS
20262         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
20263         Reported by Justin Clift.
20264
20265         getdate: rename to get_date
20266         Note: getdate.h is not renamed, to minimize client impact.
20267         * modules/getdate: Mark obsolete.  Move old contents...
20268         * modules/get_date: ...to new module name.
20269         * modules/getdate-tests: Move...
20270         * modules/get_date-tests: ...here.
20271         * m4/getdate.m4: Move...
20272         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
20273         * lib/getdate.y: Move...
20274         * lib/get_date.y: ...here.
20275         * tests/test-getdate.c: Move...
20276         * tests/test-get_date.c: ...here.
20277         * doc/posix-functions/getdate.texi (getdate): Update name.
20278         * NEWS: Mention the change.
20279
20280 2010-09-29  Bruno Haible  <bruno@clisp.org>
20281
20282         Separate the module 'waitpid' from the module 'sys_wait'.
20283         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
20284         present.
20285         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
20286         gl_MODULE_INDICATOR_FOR_TESTS.
20287         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
20288         * modules/sys_wait (Depends-on): Remove waitpid.
20289         (Makefile.am): Substitute GNULIB_WAITPID.
20290         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
20291         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
20292         signature only if the 'waitpid' module is present.
20293         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
20294         * NEWS: Mention the change.
20295         * modules/grantpt (Depends-on): Add waitpid.
20296         * modules/wait-process (Depends-on): Likewise.
20297
20298 2010-09-29  Bruno Haible  <bruno@clisp.org>
20299
20300         More tests for module 'sys_wait'.
20301         * modules/sys_wait-c++-tests: New file.
20302         * tests/test-sys_wait-c++.cc: New file.
20303         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
20304         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
20305
20306 2010-09-29  Bruno Haible  <bruno@clisp.org>
20307
20308         New module 'waitpid'.
20309         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
20310         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
20311         Don't include <process.h>.
20312         (waitpid): Declare only, using modern idiom.
20313         * m4/waitpid.m4: New file.
20314         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
20315         * modules/waitpid: New file.
20316         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
20317         (Makefile.am): Update.
20318         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
20319
20320 2010-09-28  Bruno Haible  <bruno@clisp.org>
20321
20322         poll: Assume ANSI C.
20323         * lib/poll.c (poll): Use an ANSI C declaration.
20324
20325 2010-09-28  Bruno Haible  <bruno@clisp.org>
20326
20327         poll-h: Create poll.h on all platforms.
20328         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
20329         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
20330         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
20331         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
20332         (gl_REPLACE_POLL_H): Don't set POLL_H.
20333         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
20334         * modules/poll-h (Depends-on): Add include_next.
20335         (Makefile.am): Create poll.h unconditionally. Substitute also
20336         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
20337
20338 2010-09-28  Bruno Haible  <bruno@clisp.org>
20339
20340         Tests for module 'poll-h'.
20341         * modules/poll-h-c++-tests: New file.
20342         * tests/test-poll-h-c++.cc: New file.
20343
20344         Tests for module 'poll-h'.
20345         * modules/poll-h-tests: New file.
20346         * tests/test-poll-h.c: New file.
20347
20348 2010-09-28  Bruno Haible  <bruno@clisp.org>
20349
20350         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
20351         * modules/poll-h (Depends-on): Add 'extensions'.
20352
20353 2010-09-28  Bruno Haible  <bruno@clisp.org>
20354
20355         New module 'poll-h'.
20356         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
20357         (poll): Use modern idiom.
20358         * modules/poll-h: New file.
20359         * modules/poll (Files): Remove lib/poll.in.h.
20360         (Depends-on): Add poll-h.
20361         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
20362         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
20363         * m4/poll_h.m4: New file.
20364         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
20365         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
20366         and invoke gl_REPLACE_POLL_H.
20367         * lib/poll.c: Use common idiom.
20368         * tests/test-poll.c: Likewise.
20369         * doc/posix-headers/poll.texi: Mention the poll-h module.
20370         Suggested by Eric Blake.
20371
20372 2010-09-26  Bruno Haible  <bruno@clisp.org>
20373
20374         sys_wait: Implement WSTOPSIG.
20375         * lib/sys_wait.in.h (WSTOPSIG): New macro.
20376         Reported by Simon Josefsson.
20377
20378 2010-09-26  Simon Josefsson  <simon@josefsson.org>
20379
20380         stdlib, sys_wait: Avoid compilation error on mingw.
20381         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
20382
20383 2010-09-26  Bruno Haible  <bruno@clisp.org>
20384
20385         stdlib tests: Avoid code duplication.
20386         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
20387         * modules/sys_wait-tests (Files): Likewise.
20388         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
20389         * tests/test-stdlib.c: Include test-sys_wait.h.
20390         (main): Invoke test_sys_wait_macros.
20391         * tests/test-sys_wait.c: Include test-sys_wait.h.
20392         (main): Invoke test_sys_wait_macros.
20393
20394 2010-09-25  Simon Josefsson  <simon@josefsson.org>
20395
20396         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
20397         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
20398         sure Windows sockets are working before calling getaddrinfo.
20399         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
20400         * doc/gnulib.texi (Windows sockets): Fix typo.
20401
20402 2010-09-25  Bruno Haible  <bruno@clisp.org>
20403
20404         Tests for module 'regex-quote'.
20405         * modules/regex-quote-tests: New file.
20406         * tests/test-regex-quote.c: New file.
20407
20408         New module 'regex-quote'.
20409         * lib/regex-quote.h: New file.
20410         * lib/regex-quote.c: New file.
20411         * modules/regex-quote: New file.
20412         Suggested by Reuben Thomas <rrt@sc3d.org>.
20413
20414 2010-09-24  Bruno Haible  <bruno@clisp.org>
20415
20416         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
20417         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
20418
20419 2010-09-23  Bruno Haible  <bruno@clisp.org>
20420
20421         setenv: Relax license.
20422         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
20423         Blake.
20424         Requested by Eric Blake.
20425
20426 2010-09-22  Bruno Haible  <bruno@clisp.org>
20427
20428         termios: Relax license.
20429         * modules/termios (License): Change to LGPLv2+.
20430         Requested by Eric Blake.
20431
20432 2010-09-22  Bruno Haible  <bruno@clisp.org>
20433
20434         threadlib: Allow the package to change the default to 'no'.
20435         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
20436         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
20437         Reported by Paul Eggert.
20438
20439 2010-09-22  Pádraig Brady  <P@draigbrady.com>
20440             Bruno Haible  <bruno@clisp.org>
20441
20442         Fix endless loop in mbmemcasecoll.
20443         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
20444         byte.
20445         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
20446
20447 2010-09-22  Bruno Haible  <bruno@clisp.org>
20448
20449         Tests for module 'memcoll'.
20450         * modules/memcoll-tests: New file.
20451         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
20452
20453         memcoll, xmemcoll: Clarify size vs. length.
20454         * modules/memcoll.c (memcoll0): Clarify specification.
20455         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
20456         passed to collate_error.
20457
20458 2010-09-22  Bruno Haible  <bruno@clisp.org>
20459
20460         Tests for module 'memcasecmp'.
20461         * modules/memcasecmp-tests: New file.
20462         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
20463
20464 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
20465
20466         * lib/pthread.in.h: Add split double-inclusion guard, and include
20467         system <pthread.h> if there is one.  Use @@-style as in other
20468         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
20469         pthread.h doesn't.
20470         (pthread_mutexattr_destroy, pthread_mutexattr_init):
20471         (pthread_mutexattr_settype, pthread_mutex_trylock):
20472         New static inline functions, if there's no system <pthread.h>.
20473         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
20474         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
20475         Approximate with mutexes if the system lacks spinlocks, as in
20476         MacOS.
20477         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
20478         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
20479         @@-style.  Check for spinlocks separately.
20480         (gl_PTHREAD_DEFAULTS): New macro.
20481         * modules/pthread: Redo to use a more typical style for in.h files.
20482
20483 2010-09-21  Eric Blake  <eblake@redhat.com>
20484
20485         net_if: enhance tests
20486         * tests/test-net_if.c (main): Move signature checks earlier.
20487         Print failures to stderr.
20488         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
20489         Document the bug that we do not yet fix.
20490
20491 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
20492
20493         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
20494         about gnulib, not GSS.
20495
20496 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
20497
20498         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
20499         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
20500         for Emacs.
20501         * build-aux/pmccabe2html: Make Makefile.am example code more
20502         cut-and-paste friendly.
20503
20504 2010-09-21  Simon Josefsson  <simon@josefsson.org>
20505
20506         * tests/test-net_if.c: New file.
20507         * modules/net_if-tests: New file.
20508
20509 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
20510
20511         pthread: add pthread_spin_destroy
20512         * lib/pthread.in.h (pthread_spin_destroy): New function.
20513
20514 2010-09-19  Bruno Haible  <bruno@clisp.org>
20515
20516         gnulib-tool: Fix --help output.
20517         * gnulib-tool (func_usage): Fix help message.
20518         Reported by Reuben Thomas <rrt@sc3d.org>.
20519
20520 2010-09-18  Jim Meyering  <meyering@redhat.com>
20521
20522         maint.mk: avoid unexpanded \n in two diagnostics
20523         * top/maint.mk (sc_prohibit_always_true_header_tests):
20524         Don't use a literal \n in a halt=... assignment.  It would not be
20525         expanded, and the two \n bytes would appear in the diagnostic output
20526         rather than the desired newline.  Use halt=$$(printf ... instead.
20527         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
20528
20529 2010-09-18  Bruno Haible  <bruno@clisp.org>
20530
20531         netinet_in: Doc tweak.
20532         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
20533         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20534
20535 2010-09-18  Jim Meyering  <meyering@redhat.com>
20536
20537         init.sh: correct an outdated comment
20538         * tests/init.sh (create_exe_shims_):  s/function/alias/
20539
20540         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
20541         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
20542         a file named "*.exe" is removed between the glob expansion and the
20543         processing of that oddly named file.
20544
20545 2010-09-17  Eric Blake  <eblake@redhat.com>
20546
20547         mirbsd: add some more support
20548         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
20549         in BSD family.
20550         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
20551         devices as OpenBSD.
20552         * m4/host-os.m4 (mirbsd): Add MirBSD.
20553
20554         tests: fix unportable assumption on sys/wait.h
20555         * tests/test-sys_wait.c (main): Relax test.
20556         * tests/test-stdlib.c (main): Likewise.
20557
20558         init.sh: accomodate directory with no .exes
20559         * tests/init.sh: Accomodate directory containing only scripts.
20560
20561         tests: avoid compiler warning
20562         * tests/test-stdlib.c (main): Use the variable.
20563
20564         fdutimens, fdutimensat: update signature, again
20565         * lib/utimens.h (gl_futimens): Delete, and move signature...
20566         (fdutimens): ...here.
20567         (fdutimensat): Rearrange signature.
20568         (lutimensat): Rename variable for clarity.
20569         * lib/fdutimensat.c (fdutimensat): Update signature.
20570         * lib/utimens.c (fdutimens): Likewise.
20571         (gl_futimens): Delete.
20572         (utimens, lutimens): Update callers.
20573         * lib/futimens.c (futimens): Likewise.
20574         * tests/test-fdutimensat.c: Likewise.
20575         * tests/test-utimens.c: Likewise.
20576         * tests/test-futimens.h: Update comment.
20577         * NEWS: Mention this.
20578         Suggested by Paul Eggert.
20579
20580 2010-09-17  Bruno Haible  <bruno@clisp.org>
20581
20582         Take over the maintenance of some older macros from Autoconf.
20583         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
20584         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
20585         GNU Autoconf.
20586         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
20587         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
20588
20589 2010-09-17  Eric Blake  <eblake@redhat.com>
20590
20591         fdutimensat: drop atflag validation
20592         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
20593         with valid fd, to close a race scenario where futimens is
20594         unsupported and FILE was replaced by a symlink.
20595         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
20596         accordingly.
20597         Suggested by Paul Eggert.
20598
20599 2010-09-16  Bruno Haible  <bruno@clisp.org>
20600
20601         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
20602         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
20603
20604 2010-09-16  Bruno Haible  <bruno@clisp.org>
20605
20606         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
20607         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
20608         login_tty exists.
20609         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20610
20611 2010-09-16  Bruno Haible  <bruno@clisp.org>
20612
20613         login_tty: Make the replacement code work on BSD systems.
20614         * lib/login_tty.c: Include <sys/ioctl.h>.
20615         (login_tty): Use ioctl TIOCSCTTY when available.
20616         * modules/login_tty (Depends-on): Add sys_ioctl.
20617         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20618
20619 2010-09-16  Bruno Haible  <bruno@clisp.org>
20620
20621         login_tty: Stricter unit test.
20622         * modules/login_tty-tests (Depends-on): Add tcgetsid.
20623         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
20624         and tcgetsid() after login_tty.
20625         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20626
20627 2010-09-16  Bruno Haible  <bruno@clisp.org>
20628
20629         New module 'tcgetsid'.
20630         * lib/tcgetsid.c: New file.
20631         * m4/tcgetsid.m4: New file.
20632         * modules/tcgetsid: New file.
20633         * modules/termios (Depends-on): Add c++defs, warn-on-use.
20634         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
20635         GNULIB_TCGETSID, HAVE_TCGETSID.
20636         * lib/termios.in.h: Include <sys/types.h>.
20637         (tcgetsid): New declaration.
20638         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
20639         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
20640         * doc/posix-functions/tcgetsid.texi: Mention the new module.
20641         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
20642
20643 2010-09-16  Bruno Haible  <bruno@clisp.org>
20644
20645         Tests for module 'termios'.
20646         * modules/termios-c++-tests: New file.
20647         * modules/termios-tests: New file.
20648         * tests/test-termios-c++.cc: New file.
20649         * tests/test-termios.c: New file.
20650
20651         New module 'termios'.
20652         * modules/termios: New file.
20653         * lib/termios.in.h: New file.
20654         * m4/termios_h.m4: New file.
20655         * doc/posix-headers/termios.texi: Mention the new module.
20656
20657 2010-09-16  Eric Blake  <eblake@redhat.com>
20658
20659         fdutimensat: add an atflag parameter
20660         * lib/fdutimensat.c (fdutimensat): Add new parameter.
20661         * lib/utimens.h (fdutimensat): Update prototype.
20662         * tests/test-fdutimensat.c: Adjust test to match.
20663         * NEWS: Document the change.
20664         Suggested by Paul Eggert.
20665
20666 2010-09-16  Bruno Haible  <bruno@clisp.org>
20667
20668         Fix typos in comments.
20669         * lib/striconveh.h: Fix typo in comment.
20670         * lib/login_tty.c (login_tty): Likewise.
20671
20672 2010-09-15  Bruno Haible  <bruno@clisp.org>
20673
20674         stdlib: clarify MirBSD WEXITSTATUS bug
20675         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
20676         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20677
20678 2010-09-15  Eric Blake  <eblake@redhat.com>
20679
20680         stdlib: work around MirBSD WEXITSTATUS bug
20681         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
20682         * modules/stdlib (Depends-on): Add sys_wait.
20683         * tests/test-sys_wait.c (main): Enhance test.
20684         * tests/test-stdlib.c (main): Likewise.
20685         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
20686
20687         docs: mention MacOS issue with WEXITSTATUS(constant)
20688         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
20689         issue.
20690         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20691
20692         strnlen: add tests
20693         * modules/strnlen-tests: New file.
20694         * tests/test-strnlen.c: Likewise.
20695
20696 2010-09-14  Bruno Haible  <bruno@clisp.org>
20697
20698         unistr/base: Avoid link errors when module 'libunistring' is also used.
20699         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
20700         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
20701         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
20702         Declare also when HAVE_LIBUNISTRING is set.
20703         Reported by Pádraig Brady <P@draigbrady.com>.
20704
20705 2010-09-14  Eric Blake  <eblake@redhat.com>
20706
20707         test-rawmemchr: make more robust
20708         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
20709         (Depends-on, configure.ac): Add needed prerequisites to use it.
20710         * modules/memchr-tests (Files, Depends-on, configure.ac):
20711         Likewise, to avoid implicit reliance on memchr module prereqs.
20712         * tests/test-memchr.c (main): Ensure proper masking.
20713         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
20714         reads.
20715
20716         memchr: detect glibc Alpha bug
20717         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
20718         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
20719         Alpha.
20720         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
20721         * tests/test-memchr.c (main): Enhance test.
20722         Reported by Nelson H. F. Beebe.
20723
20724 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20725
20726         fts, getcwd, glob: audit for dirfd returning -1
20727         * lib/fts.c (opendir): Remove #define; no longer used.
20728         (opendirat): New arg PDIR_FD.  All callers changed.
20729         (fts_build, _opendir2): Use new opendirat to avoid the need for
20730         dirfd, or for checking whether dirfd returns a negative value.
20731         Don't use opendir; always use openat followed by fdopendir.
20732         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
20733         it.
20734         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
20735         returns -1 here.
20736         * modules/fts (Depends-on): Remove dirfd.
20737         * modules/getcwd (Depends-on): Likewise.
20738
20739 2010-09-13  Eric Blake  <eblake@redhat.com>
20740
20741         float: fix broken MirBSD header
20742         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
20743         * doc/posix-headers/float.texi (float.h): Document it.
20744
20745 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20746
20747         fts: use O_NOFOLLOW to avoid race condition when opening a directory
20748         * lib/fts.c (opendirat): New arg extra_flags.
20749         (__opendir2): Use it to avoid following symlinks when opening
20750         a directory, if symlinks are not supposed to be followed.  See
20751         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
20752
20753         fdopendir: preserve argument fd before returning
20754         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
20755         (fdopendir_with_dup, fd_clone_opendir): New static functions.
20756         (fdopendir): Use them, arranging for FD to be open to the same
20757         directory that it was when it started.  (It might be temporarily
20758         closed while fdopendir is running, so this not thread- or
20759         signal-safe.)  Be careful to do the right thing even when file
20760         descriptors are scarce and dup fails with errno == EMFILE.  See
20761         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
20762
20763 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
20764
20765         regex: Pass the system regex if its only problem is 32-bit regoff_t.
20766         * NEWS: Document change.
20767         * m4/regex.m4: Disable test for regoff_t size.
20768
20769 2010-09-13  Jim Meyering  <meyering@redhat.com>
20770
20771         fts: don't operate on an invalid file descriptor after failed dup
20772         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
20773         negative file descriptor.
20774
20775 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
20776
20777         savedir: add streamsavedir, deprecate fdsavedir
20778         * NEWS: Mention deprecation of fdsavedir.
20779         * lib/savedir.c (streamsavedir): New extern function, whose name
20780         ends in "savedir" to be consistent with the others.  This differs
20781         from savedirstream in that it doesn't close its argument.  The
20782         next version of GNU tar will use this instead of fdsavedir, to
20783         avoid some race conditions and conserve file descriptors.
20784         (savedirstream): Reimplement as a wrapper around streamsavedir.
20785         (fdsavedir): Add a comment deprecating this function.  As far as
20786         I know, only GNU tar used it, and GNU tar doesn't need it any more.
20787         * lib/savedir.h (streamsavedir): New decl.
20788         (fdsavedir): Add a comment deprecating this.
20789
20790 2010-09-10  Bruno Haible  <bruno@clisp.org>
20791
20792         langinfo: Fix last commit.
20793         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
20794         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
20795         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20796
20797 2010-09-10  Bruno Haible  <bruno@clisp.org>
20798
20799         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
20800         * lib/progreloc.c (O_EXEC): Define fallback.
20801
20802 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
20803
20804         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
20805         * NEWS: Document recent changes to fcntl-h.
20806         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
20807         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
20808         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
20809         Similarly for O_SEARCH; this last was already true, but not documented.
20810         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
20811         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
20812         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
20813         Likewise.
20814         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
20815         is zero, not whether it is defined.
20816         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
20817         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
20818         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
20819
20820 2010-09-10  Bruno Haible  <bruno@clisp.org>
20821
20822         langinfo, nl_langinfo: Fix for IRIX 5.3.
20823         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
20824         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
20825         HAVE_LANGINFO_YESEXPR.
20826         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
20827         HAVE_LANGINFO_YESEXPR.
20828         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
20829         HAVE_LANGINFO_T_FMT_AMPM is 0.
20830         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
20831         HAVE_LANGINFO_YESEXPR is 0.
20832         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
20833         NOEXPR.
20834         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
20835         * doc/posix-functions/nl_langinfo.texi: Likewise.
20836         Reported by Eric Blake.
20837
20838 2010-09-10  Bruno Haible  <bruno@clisp.org>
20839
20840         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
20841         * doc/glibc-functions/login_tty.texi: Mention the include file problem
20842         on FreeBSD 8.0 and OpenBSD 4.6.
20843         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
20844         * m4/pty_h.m4 (gl_PTY_H): Likewise.
20845         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
20846         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
20847         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
20848         ac_includes_default.
20849         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20850
20851 2010-09-09  Eric Blake  <eblake@redhat.com>
20852
20853         strsignal: work around NetBSD bug
20854         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
20855         * lib/string.in.h (includes): Likewise.
20856         * doc/posix-functions/strsignal.texi (strsignal): Document the
20857         bug.
20858         Reported by Nelson H. F. Beebe.
20859
20860         gnulib-tool: work with NetBSD /bin/sh
20861         * gnulib-tool (func_cache_var, func_cache_lookup_module)
20862         (func_get_description, func_get_comment, func_get_status)
20863         (func_get_notice, func_get_applicability, func_get_filelist)
20864         (func_get_dependencies, func_get_autoconf_early_snippet)
20865         (func_get_autoconf_snippet, func_get_automake_snippet)
20866         (func_get_include_directive, func_get_link_directive)
20867         (func_get_license, func_get_maintainer, func_import): Avoid
20868         shell syntax errors from parsing syntax extensions.
20869
20870 2010-09-09  Bruno Haible  <bruno@clisp.org>
20871
20872         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20873         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
20874         a reliable way to determine whether the 'alias' command works.
20875
20876 2010-09-08  Jim Meyering  <meyering@redhat.com>
20877
20878         init.sh: penalize a set-x-impaired shell; don't disqualify it
20879         * tests/init.sh: Too many shells corrupt application stderr when
20880         you set -x, so we can't afford to disqualify them, since at least
20881         on Irix-6.5, that would disqualify all bourne shells.
20882         Instead, use a two-pass approach.
20883         On the first pass, try to find a shell that meets the stricter
20884         condition that set -x does not corrupt stderr.
20885         If no shell meets the stricter condition, retest each candidate
20886         shell, but without that extra condition.  Finally, when
20887         VERBOSE=yes is requested and set -x might cause trouble, simply
20888         issue a warning and refrain from enabling debug output.
20889
20890 2010-09-08  Eric Blake  <eblake@redhat.com>
20891
20892         unsetenv: fix OpenBSD bug
20893         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
20894         * doc/posix-functions/unsetenv.texi (unsetenv): Update
20895         documentation.
20896         Reported by Jim Meyering.
20897
20898         strtod: work around IRIX 6.5 bug
20899         * lib/strtod.c (strtod): Reparse number on shorter string if
20900         exponent parse was invalid.
20901         * tests/test-strtod.c (main): Add check for "0x1p 2".
20902         Reported by Tom G. Christensen.
20903
20904         getopt: optimize previous patch
20905         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
20906         empty variable.  Speed up awk script.
20907         Reported by Paolo Bonzini.
20908
20909 2010-09-08  Jim Meyering  <meyering@redhat.com>
20910
20911         test.sh: disqualify shells for which set -x corrupts stderr
20912         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
20913         and OpenBSD 4.7.  They make it so with "set -x", environment settings
20914         appear in stderr output.  For example, this command:
20915             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
20916         prints "P=1" on those two systems:
20917
20918 2010-09-08  Bruno Haible  <bruno@clisp.org>
20919
20920         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20921         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
20922         commands, because some shells ignore redirections when there is an
20923         error in the command lookup.
20924         Reported by Eric Blake.
20925
20926 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
20927
20928         * lib/regex.h: Fix a mention of `regex_compile' (should be
20929         `re_compile_pattern').
20930         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
20931         (re_set_registers): Correct name of parameter in comment.
20932
20933         * doc/regex.texi: Add documentation for missing syntax flags.
20934         Remove commented-out documentation of defunct syntax option
20935         RE_NO_EMPTY_ALTS.
20936         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
20937         Add documentation of re_set_registers.
20938         Document trick to re-use a pattern buffer by setting fastmap manually.
20939         Update documentation of struct re_pattern_buffer per public members.
20940         Uncomment documentation of equivalence class operators and
20941         collating symbol operators, since they are now implemented,
20942         Explain leftmost-longest matching in relation to alternatives.
20943         Tidy documentation of substring matching.
20944         Remove POSIX documentation, which is done better in
20945         glibc, and refer the reader there. Keep BSD API documentation, as
20946         that is not readily available elsewhere.
20947
20948 2010-09-07  Eric Blake  <eblake@redhat.com>
20949
20950         getopt: handle POSIXLY_CORRECT set but not exported
20951         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
20952         export state of POSIXLY_CORRECT, due to bash set -o posix.
20953         Reported by Dustin J. Mitchell.
20954
20955 2010-09-05  Bruno Haible  <bruno@clisp.org>
20956
20957         gnulib-tool: Highlight the changed options.
20958         * gnulib-tool (func_usage): Display the --import, --add-import,
20959         --remove-import explanations in bold font.
20960
20961 2010-09-06  Karl Berry  <karl@gnu.org>
20962
20963         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
20964
20965 2010-09-05  Bruno Haible  <bruno@clisp.org>
20966
20967         uniwidth/width: Update comment.
20968         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
20969         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
20970
20971 2010-09-05  Bruno Haible  <bruno@clisp.org>
20972
20973         isinf, isnan: Relax license.
20974         * modules/isinf (License): Change from GPL to LGPL, with consent from
20975         Ben Pfaff.
20976         * modules/isnan (License): Likewise.
20977         Requested by Ludovic Courtès.
20978
20979 2010-09-04  Bruno Haible  <bruno@clisp.org>
20980
20981         gnulib-tool: Help migration from --import to --add-import or --update.
20982         * gnulib-tool: Emit a verbose error message when --import is used
20983         without any module name.
20984
20985 2010-09-04  Bruno Haible  <bruno@clisp.org>
20986
20987         Update doc about gnulib-tool.
20988         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
20989         'gnulib-tool --update' in more detail.
20990         Reported by Eric Blake.
20991
20992 2010-09-04  Bruno Haible  <bruno@clisp.org>
20993
20994         gnulib-tool: Change --import. New options --add/remove-import.
20995         * gnulib-tool: New options --add-import, --remove-import.
20996         (func_usage): Document them.
20997         (have_associative): Define always.
20998         (func_import): In import mode, don't merge the specified settings with
20999         the cached settings. Implement remove-import mode.
21000         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
21001         Explain when to use them versus --import.
21002         (Simple update): Use --add-import instead of --import.
21003         * NEWS: Mention the change.
21004
21005 2010-09-04  Bruno Haible  <bruno@clisp.org>
21006
21007         * doc/gnulib-tool.texi (Initial import): Update paragraph about
21008         separate gnulib.mk.
21009
21010 2010-09-04  Bruno Haible  <bruno@clisp.org>
21011
21012         gnulib-tool: Don't talk about CVS any more.
21013         * gnulib-tool (func_usage, func_import): Write "version control"
21014         instead of CVS.
21015
21016 2010-09-04  Jim Meyering  <meyering@redhat.com>
21017
21018         maint.mk: avoid obscure sc_copyright_check failure in coreutils
21019         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
21020         false positives (whose names may be ill-chosen) when searching
21021         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
21022         would cause a false-positive.
21023
21024         avoid coreutils "make distcheck" failure
21025         Coreutils tests with an absolute build directory name that contains
21026         a space.  Not quoting this directory name caused a failure.
21027         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
21028         * tests/test-vc-list-files-cvs.sh: Likewise.
21029
21030 2010-09-04  Bruno Haible  <bruno@clisp.org>
21031
21032         gnulib-tool: Avoid error when run in a package without Makefile.am.
21033         * gnulib-tool: When collecting the m4dirs in a package that does not
21034         have a Makefile.am, eliminate those directories that contain no
21035         gnulib-cache.m4. Fix expression that counts these directories.
21036
21037 2010-09-04  Bruno Haible  <bruno@clisp.org>
21038
21039         update-copyright test: Improve output when perl is missing or too old.
21040         * tests/test-update-copyright.sh: Move test of Perl version down after
21041         the test whether Perl exists. Provide an explanation relating Perl's
21042         error message to Automake's SKIP: message.
21043
21044 2010-09-04  Bruno Haible  <bruno@clisp.org>
21045
21046         Don't augment PATH in TESTS_ENVIRONMENT.
21047         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
21048         set abs_aux_dir instead of augmenting PATH.
21049         * modules/vc-list-files-tests (Makefile.am): Likewise.
21050         * tests/test-update-copyright.sh: Augment PATH here.
21051         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
21052         path_prepend_.
21053         * tests/test-vc-list-files-git.sh: Likewise.
21054
21055 2010-09-04  Jim Meyering  <meyering@redhat.com>
21056
21057         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
21058         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
21059
21060 2010-09-04  Bruno Haible  <bruno@clisp.org>
21061
21062         strdup: Fix compilation error in C++ mode.
21063         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
21064         the macro.
21065
21066 2010-09-04  Bruno Haible  <bruno@clisp.org>
21067
21068         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
21069         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
21070         macro into a function.
21071         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21072
21073 2010-09-04  Bruno Haible  <bruno@clisp.org>
21074
21075         Set PATH_SEPARATOR the same way autoconf does.
21076         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
21077         the value of PATH_SEPARATOR the same way autoconf-generated configure
21078         scripts do.
21079         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
21080         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
21081
21082 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
21083
21084         Set PATH_SEPARATOR the same way autoconf does.
21085         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
21086         the same way autoconf-generated configure scripts do.
21087         * posix-modules: Likewise.
21088
21089 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
21090
21091         hash: fix safe_hasher const typo
21092         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
21093         const; otherwise, there is a type error later.
21094
21095 2010-09-02  Jim Meyering  <meyering@redhat.com>
21096
21097         test-update-copyright.sh: require perl 5.8.0
21098         * tests/test-update-copyright.sh: Require 5.8.0,
21099         which Tom G. Christensen has confirmed is adequate,
21100         while 5.6.1 is not.
21101
21102 2010-09-02  Eric Blake  <eblake@redhat.com>
21103
21104         tests: init.sh improvements for re-exec'ing with zsh
21105         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
21106         -vx through shell re-exec.
21107         Reported by Tom G. Christensen.
21108
21109         wctype: fix typo in previous commit
21110         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
21111         Reported by Ludovic Courtès.
21112
21113 2010-09-02  Jim Meyering  <meyering@redhat.com>
21114
21115         test-update-copyright.sh: skip test if Perl is too old
21116         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
21117         Reported by Tom G. Christensen.
21118
21119 2010-09-02  Bruno Haible  <bruno@clisp.org>
21120
21121         wctype: Avoid compilation error on IRIX 6.5.30.
21122         * lib/wctype.in.h (iswblank): Declare with a replacement if
21123         REPLACE_ISWBLANK is set.
21124         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
21125         declared. Set REPLACE_ISWBLANK.
21126         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
21127         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
21128         * doc/posix-headers/wctype.texi: Likewise.
21129         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21130
21131 2010-09-01  Bruno Haible  <bruno@clisp.org>
21132
21133         New module 'socketlib'.
21134         * modules/socketlib: New file.
21135         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
21136         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
21137         * modules/sockets (Depends-on): Add socketlib.
21138         Suggested by Sam Steingold <sds@gnu.org>.
21139
21140 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21141
21142         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
21143
21144         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
21145         when one needs search access to a directory but not read access.
21146         On systems where it is available, it works in some cases where
21147         O_RDONLY does not, namely on directories that are searchable but
21148         not readable, and which need only to be searchable.  If O_SEARCH
21149         is not available, fall back to the traditional method of using
21150         O_RDONLY.
21151
21152         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
21153         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
21154         when opening a directory that needs only to be searchable.
21155         * lib/chdir-safer.c (chdir_no_follow): Likewise.
21156         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
21157         * lib/openat-proc.c (openat_proc_name): Likewise.
21158         * lib/openat.c (openat_needs_fchdir): Likewise.
21159         * lib/save-cwd.c (save_cwd): Likewise.
21160         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
21161
21162 2010-08-28  Bruno Haible  <bruno@clisp.org>
21163
21164         New module 'host-cpu-c-abi'.
21165         * modules/host-cpu-c-abi: New file.
21166         * m4/host-cpu-c-abi.m4: New file, based on part of
21167         clisp/src/m4/general.m4.
21168         Requested by Sam Steingold <sds@gnu.org>.
21169
21170 2010-08-31  Eric Blake  <eblake@redhat.com>
21171         and Jim Meyering  <meyering@redhat.com>
21172
21173         hash: factor, and guard against misbehaving hasher function
21174         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
21175         of table->hasher's return value.  Also protect against a hash value
21176         so large that adding it to table->bucket results in a NULL pointer.
21177         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
21178         Use it in place of open-coded check-and-abort.
21179
21180 2010-08-30  Bruno Haible  <bruno@clisp.org>
21181
21182         hash: silence spurious clang warning
21183         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
21184         Reported by Eric Blake.
21185
21186 2010-08-30  Eric Blake  <eblake@redhat.com>
21187
21188         strstr, memmem, strcasestr: avoid leaked shell message
21189         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
21190         FreeBSD.
21191         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
21192         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
21193
21194         tests: silence clang warning
21195         * tests/test-malloca.c (do_allocation): Avoid dead store.
21196
21197 2010-08-29  Bruno Haible  <bruno@clisp.org>
21198
21199         gettext: Fix recent mistake.
21200         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
21201
21202 2010-08-29  Bruno Haible  <bruno@clisp.org>
21203
21204         selinux-h: Offer a --without-selinux option.
21205         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
21206         --without-selinux was specified, skip all tests and define
21207         HAVE_SELINUX_SELINUX_H to 0.
21208         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
21209         set LIB_SELINUX to empty.
21210         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
21211         gl_LIBSELINUX. If --without-selinux was specified, replace
21212         selinux/context.h.
21213         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
21214
21215 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21216             Bruno Haible  <bruno@clisp.org>
21217
21218         Make the module 'realloc-gnu' work again on AIX and OSF/1.
21219         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
21220         of HAVE_REALLOC.
21221         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
21222         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
21223         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
21224         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
21225
21226 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21227             Bruno Haible  <bruno@clisp.org>
21228
21229         Make the module 'calloc-gnu' work again on AIX and OSF/1.
21230         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
21231         HAVE_CALLOC.
21232         * lib/xmalloc.c: Update accordingly.
21233         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
21234         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
21235         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
21236
21237 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21238             Bruno Haible  <bruno@clisp.org>
21239
21240         Make the module 'malloc-gnu' work again on AIX and OSF/1.
21241         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
21242         HAVE_MALLOC.
21243         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
21244         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
21245         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
21246
21247 2010-08-29  Bruno Haible  <bruno@clisp.org>
21248
21249         Update modules list.
21250         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
21251         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
21252         (String handling <string.h>): Add astrxfrm.
21253         (File system functions): Add readlinkat.
21254
21255 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21256
21257         Tests for module 'realloc-gnu'.
21258         * modules/realloc-gnu-tests: New file.
21259         * tests/test-realloc-gnu.c: New file.
21260
21261         Tests for module 'calloc-gnu'.
21262         * modules/calloc-gnu-tests: New file.
21263         * tests/test-calloc-gnu.c: New file.
21264
21265         Tests for module 'malloc-gnu'.
21266         * modules/malloc-gnu-tests: New file.
21267         * tests/test-malloc-gnu.c: New file.
21268
21269 2010-08-28  Bruno Haible  <bruno@clisp.org>
21270
21271         Rename module 'realloc' -> 'realloc-gnu'.
21272         * modules/realloc-gnu: New file, copied from modules/realloc.
21273         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
21274         obsolete.
21275         * modules/mgetgroups (Depends-on): Update.
21276         * doc/posix-functions/realloc.texi: Update.
21277         * NEWS: Mention the change.
21278
21279         Rename module 'calloc' -> 'calloc-gnu'.
21280         * modules/calloc-gnu: New file, copied from modules/calloc.
21281         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
21282         obsolete.
21283         * doc/posix-functions/calloc.texi: Update.
21284         * NEWS: Mention the change.
21285
21286         Rename module 'malloc' -> 'malloc-gnu'.
21287         * modules/malloc-gnu: New file, copied from modules/malloc.
21288         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
21289         obsolete.
21290         * modules/argp (Depends-on): Update.
21291         * modules/regex (Depends-on): Update.
21292         * doc/posix-functions/malloc.texi: Update.
21293         * NEWS: Mention the change.
21294
21295 2010-08-28  Eric Blake  <eblake@redhat.com>
21296
21297         pread, pwrite: add missing dependency
21298         * modules/pread (Depends-on): Add extensions.
21299         * modules/pwrite (Depends-on): Likewise.
21300
21301 2010-08-28  Bruno Haible  <bruno@clisp.org>
21302
21303         unistr/u*-strchr: Fix tests dependencies.
21304         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
21305         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
21306         Reported by Ian Beckwith <ianb@erislabs.net>.
21307
21308 2010-08-28  Bruno Haible  <bruno@clisp.org>
21309
21310         read-file: Don't occupy too much unused memory.
21311         * lib/read-file.c (fread_file): Shrink the buffer at the end.
21312
21313 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
21314             Eric Blake  <eblake@redhat.com>
21315             Bruno Haible  <bruno@clisp.org>
21316
21317         read-file: Avoid memory reallocations with regular files.
21318         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
21319         (fread_file): With regular files, use the remaining length as the
21320         initial buffer size.  Check against overflow.
21321         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
21322         sys_stat.
21323
21324 2010-08-28  Bruno Haible  <bruno@clisp.org>
21325
21326         ftello: Relax license.
21327         * modules/ftello (License): Relax to LGPLv2+.
21328         Reported by Eric Blake.
21329
21330 2010-08-28  Bruno Haible  <bruno@clisp.org>
21331
21332         Avoid relocwrapper link errors due to gnulib replacement functions.
21333         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
21334         function.
21335         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21336
21337 2010-08-28  Bruno Haible  <bruno@clisp.org>
21338
21339         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
21340         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
21341         defined.
21342         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
21343         Suggested by Eric Blake.
21344
21345 2010-08-28  Bruno Haible  <bruno@clisp.org>
21346
21347         sys_socket, netdb: Ensure socklen_t gets defined.
21348         * modules/sys_socket (Depends-on): Add socklen.
21349         * modules/netdb (Depends-on): Likewise.
21350         * modules/getaddrinfo (Depends-on): Remove socklen.
21351         * modules/getsockopt (Depends-on): Likewise.
21352         * modules/setsockopt (Depends-on): Likewise.
21353         * tests/test-sys_socket.c: Check that socklen_t is defined.
21354         * tests/test-netdb.c: Likewise.
21355         * m4/socklen.m4: Update comments.
21356         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21357
21358 2010-08-27  Eric Blake  <eblake@redhat.com>
21359
21360         login_tty: add missing dependency
21361         * modules/login_tty (Depends-on): Add pty.
21362
21363 2010-08-26  Eric Blake  <eblake@redhat.com>
21364
21365         lib-symbol-versions: fix m4 quoting
21366         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
21367         format for AC_LINK_IFELSE.
21368
21369         glob: fix compile test
21370         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
21371
21372         btowc: fix missing file
21373         * modules/btowc (Files): Also ship locale-fr.m4.
21374
21375         lseek: fix link test
21376         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
21377         AC_LINK_IFELSE.
21378
21379         include_next: silence autoconf 2.68 warning
21380         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
21381         AC_COMPILE_IFELSE as special.
21382         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
21383         autoconf < 2.68.
21384
21385         acl: fix compilation test
21386         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
21387         AC_COMPILE_IFELSE.
21388
21389 2010-08-26  Bruno Haible  <bruno@clisp.org>
21390
21391         Modernize AC_TRY_RUN invocations.
21392         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
21393         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
21394         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
21395         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
21396         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
21397         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
21398         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
21399         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
21400         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21401         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
21402         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
21403         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
21404         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
21405         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
21406         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
21407         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
21408         gl_MBRLEN_NUL_RETVAL): Likewise.
21409         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
21410         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
21411         Likewise.
21412         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
21413         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
21414         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
21415         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
21416         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
21417         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
21418         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
21419         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
21420         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
21421         Likewise.
21422         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
21423         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
21424         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
21425         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
21426         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21427         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
21428         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
21429         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
21430         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
21431         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
21432
21433 2010-08-26  Bruno Haible  <bruno@clisp.org>
21434
21435         Modernize AC_TRY_LINK invocations.
21436         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
21437         AC_TRY_LINK.
21438         * m4/argp.m4 (gl_ARGP): Likewise.
21439         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
21440         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
21441         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
21442         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
21443         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
21444         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
21445         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
21446         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
21447         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
21448         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
21449         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
21450         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
21451         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
21452         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21453         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
21454         * m4/hostent.m4 (gl_HOSTENT): Likewise.
21455         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
21456         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
21457         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
21458         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
21459         Likewise.
21460         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
21461         Likewise.
21462         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
21463         Likewise.
21464         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
21465         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
21466         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
21467         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
21468         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
21469         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
21470         * m4/servent.m4 (gl_SERVENT): Likewise.
21471         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
21472         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
21473         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
21474         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
21475         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
21476         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
21477         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
21478         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21479         * modules/tsearch-tests (configure.ac): Likewise.
21480
21481 2010-08-26  Bruno Haible  <bruno@clisp.org>
21482
21483         Modernize AC_TRY_COMPILE invocations.
21484         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
21485         AC_TRY_COMPILE.
21486         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
21487         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
21488         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
21489         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
21490         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
21491         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
21492         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
21493         * m4/lock.m4 (gl_LOCK): Likewise.
21494         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
21495         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
21496         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
21497         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
21498         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
21499         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
21500         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
21501         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
21502         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
21503         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
21504         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
21505         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
21506         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
21507         extraneous semicolon.
21508
21509 2010-08-26  Jim Meyering  <meyering@redhat.com>
21510
21511         stat-time: relax license LGPL
21512         * modules/stat-time (License): Change from GPL to LGPL,
21513         with consent from all contributors, for use in libguile.
21514         Requested by Ludovic Courtès.
21515
21516 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
21517
21518         poll: return immediately on POLLHUP.
21519         * lib/poll.c (poll): Always set timeout before wait_timeout is
21520         computed.
21521
21522 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21523
21524         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
21525         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
21526         rmdir ("dir/.//"), unlinkat.
21527
21528 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21529
21530         stdbool: avoid spurious failure with modern xlc
21531         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
21532
21533 2010-08-24  Bruno Haible  <bruno@clisp.org>
21534
21535         getloadavg: simplify code
21536         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
21537         gl_have_func. Update comments.
21538
21539 2010-08-24  Eric Blake  <eblake@redhat.com>
21540
21541         getloadavg: don't define SVR4 on cygwin
21542         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
21543         only define SVR4 when -lkvm is required.
21544         Reported by Yaakov Selkowitz.
21545
21546 2010-08-24  Bruno Haible  <bruno@clisp.org>
21547
21548         priv-set: fix comment
21549         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
21550
21551 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
21552
21553         priv-set: fix comments
21554         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
21555         to match code, as suggested by David Bartley in:
21556         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
21557
21558 2010-08-23  Eric Blake  <eblake@redhat.com>
21559
21560         stdbool: avoid rejecting clang
21561         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
21562         * tests/test-stdbool.c: Enable more tests if using the system
21563         <stdbool.h> instead of the gnulib replacement.
21564         (main): Move xlc bug test to a runtime test for all compilers.
21565         Reported by Anders Kaseorg.
21566
21567         argz: fix shell quoting issue
21568         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
21569         Reported by Charles Wilson.
21570
21571 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
21572             Erik Faye-Lund <kusmabite@gmail.com>
21573
21574         poll, select: handle ERROR_BROKEN_PIPE.
21575         * lib/poll.c (win32_compute_revents): Return POLLHUP when
21576         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
21577         * lib/select.c (win32_compute_revents): Do not mark a pipe
21578         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
21579
21580 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
21581
21582         fts: allow compilation with C++
21583         * lib/fts_.h: Specify extern "C" linkage with C++.
21584
21585 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21586
21587         Fix gnulib-tool sed script de-commentation for AIX sed.
21588         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
21589         sed.
21590
21591 2010-08-17  Eric Blake  <eblake@redhat.com>
21592
21593         test-stddef: test for (some) offsetof bugs
21594         * tests/test-stddef.c: Enhance test to ensure correct type of
21595         offsetof.
21596         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
21597         that we are not fixing at this time.
21598
21599 2010-08-15  Bruno Haible  <bruno@clisp.org>
21600
21601         stpncpy: Allow stpncpy to be defined as a macro.
21602         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
21603         if it's already correctly declared.
21604         * lib/string.in.h (stpncpy): Undefine before redefining.
21605         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
21606
21607 2010-08-14  Bruno Haible  <bruno@clisp.org>
21608
21609         Rename module 'memxfrm' to 'amemxfrm'.
21610         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
21611         (amemxfrm): Renamed from memxfrm.
21612         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
21613         (amemxfrm): Renamed from memxfrm.
21614         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
21615         * NEWS: Mention the change.
21616         * MODULES.html.sh (String handling <string.h>): Update.
21617         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
21618         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
21619         * lib/unicase/u16-casexfrm.c: Likewise.
21620         * lib/unicase/u32-casexfrm.c: Likewise.
21621         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
21622         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
21623         * lib/uninorm/u16-normxfrm.c: Likewise.
21624         * lib/uninorm/u32-normxfrm.c: Likewise.
21625         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
21626         memxfrm.
21627         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
21628         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
21629         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
21630         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
21631         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
21632         Suggested by Paul Eggert.
21633
21634 2010-08-14  Bruno Haible  <bruno@clisp.org>
21635
21636         Tests for module 'astrxfrm'.
21637         * modules/astrxfrm-tests: New file.
21638         * tests/test-astrxfrm.c: New file.
21639
21640         New module 'astrxfrm'.
21641         * lib/astrxfrm.h: New file.
21642         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
21643         * modules/astrxfrm: New file.
21644
21645 2010-08-14  Reuben Thomas <rrt@sc3d.org>
21646
21647         regex: Tweak doc.
21648         * doc/regex.texi (Overview): Don't mention regex.c.
21649         (GNU Regular Expression Compiling): Likewise.
21650         (Match-end-of-line Operator): Mention 'not_eol'.
21651
21652 2010-08-14  Brian Gough  <bjg@gnu.org>
21653             Bruno Haible  <bruno@clisp.org>
21654
21655         git-merge-changelog: add doc relating to use with bzr and hg.
21656         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
21657
21658 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
21659
21660         pthread: fix pthread.h creation for srcdir != builddir
21661         * modules/pthread (Makefile.am): Fix the rule to work also in a
21662         non-srcdir build.
21663
21664 2010-08-13  Karl Berry  <karl@gnu.org>
21665
21666         * doc/regex.texi (Predefined Syntaxes): @smallexample.
21667         * doc/posix-*/*: force line break before @url of POSIX
21668         specifications.
21669         Suggested by Werner Lemberg.
21670
21671 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
21672
21673         strtod: fix const diagnostic
21674         * lib/strtod.c (strtod): Don't assign const char * to char *,
21675         as this elicits a warning from GCC when warnings are enabled.
21676
21677 2010-08-10  Pádraig Brady <P@draigbrady.com>
21678         and Eric Blake  <eblake@redhat.com>
21679
21680         copy-acl: ignore ENOTSUP on HP-UX
21681         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
21682         so that it is available for HP-UX.
21683         * lib/copy-acl.c (qcopy_acl): Use it.
21684         Reported by Patrick M. Callahan.
21685
21686 2010-08-10  Eric Blake  <eblake@redhat.com>
21687
21688         open, chown: relax license
21689         * modules/open (License): Change to LGPLv2+, with consent by all
21690         authors, for use in augeas.
21691         * modules/chown (License): Likewise.
21692         * modules/lchown (Likewise): Likewise.
21693         Requested by Adam Stokes.
21694
21695 2010-08-09  Karl Berry  <karl@gnu.org>
21696
21697         * build-aux/ar-lib: new file, import from Automake.
21698         * config/srclist.txt: autocheck for updates.
21699
21700 2010-08-09  Eric Blake  <eblake@redhat.com>
21701
21702         readlinkat: adjust client modules
21703         * modules/areadlinkat (Depends-on): Use readlinkat, not
21704         symlinkat.
21705         * modules/areadlinkat-with-size (Depends-on): Likewise.
21706
21707         mknod: be more vocal about danger of running tests as root
21708         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
21709         root, since that is just asking for problems.
21710         Suggested by Bruno Haible, based on a report by Rainer Tammer.
21711
21712         readlinkat: split into its own module
21713         * modules/symlinkat: Split readlinkat...
21714         * modules/readlinkat: ...into separate module.
21715         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
21716         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
21717         * lib/symlinkat.c (readlinkat): Move...
21718         * lib/readlinkat.c: ...into new file.
21719         * modules/symlinkat-tests: Split readlinkat test...
21720         * modules/readlinkat-tests: ...into separate module.
21721         * tests/test-symlinkat.c: Split...
21722         * tests/test-readlinkat.c: ...into new file.
21723         * NEWS: Document the split.
21724         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
21725         * lib/unistd.in.h (readlinkat): Likewise.
21726         Suggested by Bruno Haible.
21727
21728 2010-08-08  Bruno Haible  <bruno@clisp.org>
21729
21730         memxfrm: Speed up.
21731         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
21732         that usually only one call to strxfrm is necessary for each string
21733         part.
21734         Reported by Paul Eggert <eggert@cs.ucla.edu>.
21735
21736 2010-08-07  Karl Berry  <karl@gnu.org>
21737
21738         * doc/posix-headers/limits.texi,
21739         * doc/posix-functions/malloc.texi,
21740         * doc/posix-functions/strsignal.texi: missing @item.
21741         * doc/ld-version-script.texi: spurious leading i.
21742         * doc/regex.texi (Interval Operators): no commas inside @var.
21743
21744 2010-08-01  Bruno Haible  <bruno@clisp.org>
21745
21746         Integrate the regex documentation.
21747         * doc/gnulib.texi: Define 'cn' index.
21748         (Regular expressions): New a chapter that includes regex.texi and
21749         regexprops-generic.texi.
21750         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
21751         syntax.
21752
21753         Whitespace cleanup.
21754         * doc/regex.texi: Remove trailing spaces.
21755
21756         Add regex documentation.
21757         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
21758         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
21759         Written by Kathy A. Hargreaves and Karl Berry.
21760
21761 2010-08-01  Bruno Haible  <bruno@clisp.org>
21762
21763         link: Update documentation.
21764         * doc/posix-functions/link.texi: Update regarding Solaris.
21765
21766 2010-07-31  Bruno Haible  <bruno@clisp.org>
21767
21768         Update modules list.
21769         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
21770         (String handling <string.h>): Add memcmp2, memxfrm.
21771         (Container data structures): Add xlist, xsublist, xoset.
21772         (Core language properties): Add alignof, unused-parameter.
21773         (Process control, Numeric conversion functions <stdlib.h>): Renamed
21774         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
21775         (Unibyte characters <ctype.h>): New section.
21776         (String handling <string.h>): New section.
21777         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
21778         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
21779         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
21780         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
21781         tan, tanh, tanl, y0, y1, yn.
21782         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
21783         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
21784         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
21785         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
21786         unlockpt, vdprintf, vdprintf-posix.
21787         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
21788         (File system functions): Add concat-filename, sys_file, sys_ioctl,
21789         xconcat-filename.
21790         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
21791         getdtablesize, pipe2, pipe2-safer.
21792         (Security): New section.
21793         (Networking functions): Add accept4.
21794         (Signal handling): Add sigpipe.
21795         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
21796         mbmemcasecoll.
21797         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
21798         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
21799         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
21800         pipe-filter-ii.
21801         (Misc): Add argp-version-etc, login_tty, parse-duration.
21802
21803 2010-07-31  Bruno Haible  <bruno@clisp.org>
21804
21805         Improve doc in MODULES.html.
21806         * modules/linkat (Description): Add the word "function".
21807         * modules/mkfifo (Description): Likewise.
21808         * modules/mknod (Description): Likewise.
21809         * modules/remove (Description): Likewise.
21810         * modules/renameat (Description): Likewise.
21811         * modules/stat (Description): Likewise.
21812         * modules/symlink (Description): Likewise.
21813         * modules/unlink (Description): Likewise.
21814
21815 2010-07-31  Bruno Haible  <bruno@clisp.org>
21816
21817         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
21818         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
21819         option --enable/disable-c++ instead of --enable/disable-cxx.
21820         * NEWS: Mention the change.
21821
21822 2010-07-31  Bruno Haible  <bruno@clisp.org>
21823
21824         readlink, areadlink: Relax test a bit.
21825         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
21826         alternative to ENOTDIR.
21827         * tests/test-areadlink.h (test_areadlink): Likewise.
21828         Reported by Rainer Tammer.
21829
21830 2010-07-31  Bruno Haible  <bruno@clisp.org>
21831
21832         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
21833         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
21834         character, perform the search using U_STRCHR.
21835         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
21836         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
21837         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
21838         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
21839         Suggested by Paolo Bonzini.
21840
21841 2010-07-31  Bruno Haible  <bruno@clisp.org>
21842
21843         unistr/u*-strstr: Fix dependencies.
21844         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
21845         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
21846         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
21847
21848 2010-07-31  Bruno Haible  <bruno@clisp.org>
21849
21850         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
21851         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
21852         the beginning of the loop.
21853         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
21854         cases in 'switch' statement.
21855
21856         unistr/u8-strchr: Fix several bugs.
21857         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
21858         the string. When not found, return NULL, not a pointer near the end.
21859
21860         More tests for unistr/u8-strchr.
21861         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
21862         that the function does not read past the first occurrence of the byte
21863         being searched.
21864         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
21865         * tests/unistr/test-u16-strchr.c (main): New function.
21866         * tests/unistr/test-u32-strchr.c (main): New function.
21867
21868 2010-07-31  Bruno Haible  <bruno@clisp.org>
21869
21870         posix-modules: Ignore backup files of documentation files.
21871         * posix-modules: grep only through files named *.texi.
21872
21873 2010-07-31  Bruno Haible  <bruno@clisp.org>
21874
21875         symlinkat: Fix documentation.
21876         * doc/posix-functions/readlinkat.texi: Fix module name.
21877
21878 2010-07-31  Bruno Haible  <bruno@clisp.org>
21879
21880         fchownat: Replace also when chown has the trailing slash bug.
21881         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
21882         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
21883         introduced on 2010-04-10.
21884         Reported by Rainer Tammer.
21885
21886 2010-07-31  Bruno Haible  <bruno@clisp.org>
21887
21888         linkat: Work around AIX 7.1 bug.
21889         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
21890         whether linkat handles trailing slash correctly. If not, replace linkat
21891         and define LINKAT_TRAILING_SLASH_BUG.
21892         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
21893         check whether (fd1,file1) points to a directory if file1 or file2 ends
21894         in a slash. Code taken from lib/link.c.
21895         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
21896         Reported by Rainer Tammer.
21897
21898 2010-07-31  Bruno Haible  <bruno@clisp.org>
21899
21900         Correctly determine whether pow is available in libc on AIX 7 with xlc.
21901         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
21902         This disables an xlc optimization that was causing wrong test results.
21903         Reported by Rainer Tammer.
21904
21905 2010-07-31  Bruno Haible  <bruno@clisp.org>
21906
21907         iconv: Work around AIX 6.1..7.1 bug.
21908         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
21909         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
21910         cross-compiling, guess no on all versions of AIX.
21911         Reported by Rainer Tammer.
21912
21913 2010-07-31  Bruno Haible  <bruno@clisp.org>
21914
21915         readlink: Relax test a bit.
21916         * tests/test-readlink.h (test_readlink): Allow different errno value
21917         when readlink is called with a file name that ends in / and refers to
21918         a file.
21919         Suggested by Eric Blake.
21920         Reported by Rainer Tammer.
21921
21922 2010-07-31  Bruno Haible  <bruno@clisp.org>
21923
21924         copysign: Does not require -lm on glibc systems.
21925         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
21926         gl_COMMON_DOUBLE_MATHFUNC.
21927         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
21928
21929 2010-07-31  Bruno Haible  <bruno@clisp.org>
21930
21931         duplocale: Work around AIX 7.1 bug.
21932         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
21933         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
21934         * lib/duplocale.c (rpl_duplocale): Update comment.
21935         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
21936         Reported by Rainer Tammer.
21937
21938 2010-07-30  Bruno Haible  <bruno@clisp.org>
21939
21940         dirfd: Avoid link error on AIX 7.1.
21941         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
21942         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
21943         exist, set REPLACE_DIRFD.
21944         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
21945         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
21946         * doc/posix-functions/dirfd.texi: Update.
21947         Reported by Rainer Tammer.
21948
21949 2010-07-30  Eric Blake  <eblake@redhat.com>
21950
21951         strtod: next round of AIX fixes
21952         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
21953         exponent.
21954         * tests/test-strtod.c (main): Enhance tests.
21955         * doc/posix-functions/strtod.texi (strtod): Document next bug.
21956         Reported by Rainer Tammer.
21957
21958         futimens: fix configure check
21959         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
21960         Reported by Bruno Haible.
21961
21962 2010-07-30  Bruno Haible  <bruno@clisp.org>
21963
21964         getline: Update regarding AIX.
21965         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
21966         Reported by Rainer Tammer.
21967
21968 2010-07-30  Bruno Haible  <bruno@clisp.org>
21969
21970         wcwidth: Drop replacement on AIX 7.
21971         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
21972         AIX 7.
21973         Reported by Rainer Tammer.
21974
21975 2010-07-30  Bruno Haible  <bruno@clisp.org>
21976
21977         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
21978         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
21979         a 'char *'.
21980         Reported by Rainer Tammer.
21981
21982 2010-07-30  Bruno Haible  <bruno@clisp.org>
21983
21984         unlink: Update regarding AIX.
21985         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
21986         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
21987         Reported by Rainer Tammer.
21988
21989 2010-07-30  Bruno Haible  <bruno@clisp.org>
21990
21991         symlink: Update regarding AIX.
21992         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
21993         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
21994         Reported by Rainer Tammer.
21995
21996 2010-07-30  Bruno Haible  <bruno@clisp.org>
21997
21998         strndup: Update regarding AIX.
21999         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
22000         AIX 7.
22001         Reported by Rainer Tammer.
22002
22003 2010-07-30  Bruno Haible  <bruno@clisp.org>
22004
22005         stat: Update regarding AIX.
22006         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
22007         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
22008         Reported by Rainer Tammer.
22009
22010 2010-07-30  Bruno Haible  <bruno@clisp.org>
22011
22012         truncl: Fix autoconf test.
22013         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
22014         whether truncl works.
22015         Reported by Rainer Tammer.
22016
22017 2010-07-30  Bruno Haible  <bruno@clisp.org>
22018
22019         round: Update regarding AIX.
22020         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
22021         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
22022         Reported by Rainer Tammer.
22023
22024 2010-07-30  Bruno Haible  <bruno@clisp.org>
22025
22026         rename: Update regarding AIX.
22027         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
22028         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
22029         Reported by Rainer Tammer.
22030
22031 2010-07-30  Bruno Haible  <bruno@clisp.org>
22032
22033         printf.m4: Update regarding AIX.
22034         * m4/printf.m4: Update comments regarding AIX.
22035         Reported by Rainer Tammer.
22036
22037 2010-07-30  Bruno Haible  <bruno@clisp.org>
22038
22039         iconv: Update regarding AIX.
22040         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
22041         AIX 7.
22042         Reported by Rainer Tammer.
22043
22044 2010-07-30  Bruno Haible  <bruno@clisp.org>
22045
22046         getopt: Update regarding AIX.
22047         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
22048         no on AIX.
22049         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
22050         Reported by Rainer Tammer.
22051
22052 2010-07-30  Bruno Haible  <bruno@clisp.org>
22053
22054         ldexpl; Update regarding AIX.
22055         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
22056         on AIX 7.
22057         Reported by Rainer Tammer.
22058
22059 2010-07-30  Bruno Haible  <bruno@clisp.org>
22060
22061         frexpl: Update regarding AIX.
22062         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
22063         on AIX 7.
22064         Reported by Rainer Tammer.
22065
22066 2010-07-30  Bruno Haible  <bruno@clisp.org>
22067
22068         open, fopen: Update regarding AIX.
22069         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
22070         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
22071         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
22072         * doc/posix-functions/fopen.texi: Likewise.
22073         Reported by Rainer Tammer.
22074
22075 2010-07-30  Bruno Haible  <bruno@clisp.org>
22076
22077         chown: Update doc regarding AIX.
22078         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
22079         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
22080         Reported by Rainer Tammer.
22081
22082 2010-07-30  Eric Blake  <eblake@redhat.com>
22083
22084         strtod: fix bug in replacement function on AIX
22085         * lib/strtod.c (strtod): Special case broken "0x" parse in
22086         underlying strtod.
22087         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
22088         * doc/posix-functions/strtod.texi (strtod): Likewise.
22089         Reported by Rainer Tammer.
22090
22091 2010-07-30  Bruno Haible  <bruno@clisp.org>
22092
22093         mbrlen: Fix cross-compilation guess for AIX.
22094         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
22095         guess. Leftover from 2008-12-22.
22096
22097 2010-07-30  Bruno Haible  <bruno@clisp.org>
22098
22099         mbrtowc: Fix cross-compilation guess for AIX.
22100         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
22101         guess. Leftover from 2008-12-21.
22102
22103 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
22104
22105         init.sh: work around trap limitation of some shells
22106         * tests/init.sh (setup_): Move exit trap outside of shell function.
22107
22108 2010-07-29  Eric Blake  <eblake@redhat.com>
22109
22110         strtod: aid debugging
22111         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
22112         understanding why strtod is rejected.
22113
22114 2010-07-28  Bruno Haible  <bruno@clisp.org>
22115
22116         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
22117         * lib/unistr/u8-chr.c: Include <string.h>.
22118         * tests/unistr/test-u8-chr.c: Likewise.
22119         * tests/unistr/test-u16-chr.c: Likewise.
22120         * tests/unistr/test-u32-chr.c: Likewise.
22121         * tests/unistr/test-u8-strchr.c: Likewise.
22122         * tests/unistr/test-u16-strchr.c: Likewise.
22123         * tests/unistr/test-u32-strchr.c: Likewise.
22124         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
22125         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
22126         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
22127         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
22128
22129 2010-07-28  Bruno Haible  <bruno@clisp.org>
22130
22131         Use spaces for indentation, not tabs.
22132         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
22133
22134 2010-07-27  Bruno Haible  <bruno@clisp.org>
22135
22136         mbspcasecmp: Fix function specification.
22137         * lib/string.in.h (mbspcasecmp): Fix specification comment.
22138         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
22139         Reported by Eric Blake <eblake@redhat.com>.
22140
22141 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
22142
22143         timespec: use cast and not conditional, as truncation isn't possible
22144         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
22145         instead of a conditional.  Comment about the situation in more detail.
22146         This undoes most of the 2009-10-29 patch.
22147
22148 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
22149
22150         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
22151         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
22152         * lib/unistr/u8-strchr.c: Likewise.
22153         * modules/unistr/u8-chr: Depend on memchr.
22154
22155         unistr/u*-strchr: add tests
22156         * modules/unistr/u8-strchr-tests: New file.
22157         * modules/unistr/u16-strchr-tests: New file.
22158         * modules/unistr/u32-strchr-tests: New file.
22159         * tests/unistr/test-strchr.h: New file.
22160         * tests/unistr/test-u8-strchr.c: New file.
22161         * tests/unistr/test-u16-strchr.c: New file.
22162         * tests/unistr/test-u32-strchr.c: New file.
22163
22164         unistr/u*-chr: test multibyte sequences more
22165         * tests/unistr/test-chr.h: Do complete testing of the characters in the
22166         test vector.
22167         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
22168         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
22169         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
22170
22171         unistr/u*-chr: test multibyte sequences
22172         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
22173
22174         unistr/u*-chr: prepare for multibyte tests
22175         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
22176         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
22177         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
22178         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
22179         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
22180         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
22181
22182 2010-07-18  Bruno Haible  <bruno@clisp.org>
22183
22184         unistr/u8-strchr: Optimize non-ASCII argument case.
22185         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
22186         because the first byte often matches anyway.
22187         Reported by Pádraig Brady <P@draigbrady.com>.
22188
22189 2010-07-15  Karl Berry  <karl@gnu.org>
22190
22191         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
22192
22193 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
22194
22195         getcwd: on Solaris, work better if ancestors are inaccessible
22196         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
22197         buffer and size, try again with a large buffer.  This works better
22198         on Solaris, since its getcwd succeeds even if the path to the root
22199         is inaccessible, and this is helpful in common cases such as .zfs
22200         hidden directories.  Problem reported by J Chapman Flack in
22201         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
22202         Use system getcwd if it's declared, not merely if it's partly
22203         working; use the partly-working test only to avoid needless effort
22204         if the system getcwd fails.
22205         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
22206         comment that was already obsolete and is now even more obsolete.
22207         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
22208         now might call strdup.
22209
22210 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
22211
22212         pthread: Add enough so that coreutils/src/sort.c compiles.
22213         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
22214         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
22215         gnulib. Include <sched.h> and <time.h>, as per POSIX.
22216         Include <sys/types.h>, in case it defines pthread_t.
22217         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
22218         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
22219         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
22220         (pthread_rwlockattr_t, pthread_spinlock_t):
22221         New typedefs, if HAVE_PTHREAD_T is not defined.
22222         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
22223         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
22224         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
22225         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
22226         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
22227         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
22228         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
22229         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
22230         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
22231         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
22232         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
22233         New macros.
22234         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
22235         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
22236         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
22237         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
22238         (pthread_spin_unlock): New dummy functions.
22239         (pthread_create): Return EAGAIN; don't set errno.
22240         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
22241         require AC_C_INLINE.
22242         * modules/pthread (Depends-on): Add sched, time.
22243         (pthread.h): Use AM_V_GEN.
22244
22245 2010-07-13  Bruno Haible  <bruno@clisp.org>
22246
22247         striconveh: Don't malloc memory if the result buffer is sufficient.
22248         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
22249         buffer if its size is sufficient.
22250         Reported by Ludovic Courtès <ludo@gnu.org>.
22251
22252 2010-07-13  Bruno Haible  <bruno@clisp.org>
22253
22254         strtod: Add safety check.
22255         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
22256
22257 2010-07-12  Bruno Haible  <bruno@clisp.org>
22258
22259         Unify tests that set gl_cv_func_ldexpl_no_libm.
22260         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
22261         gl_FUNC_LDEXPL.
22262         (gl_FUNC_LDEXPL): Invoke it.
22263         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
22264
22265 2010-07-12  Bruno Haible  <bruno@clisp.org>
22266
22267         Unify tests that set gl_cv_func_ldexp_no_libm.
22268         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
22269         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
22270         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
22271         (configure.ac): Simply invoke gl_FUNC_LDEXP.
22272         * modules/strtod (Files): Add m4/ldexp.m4.
22273
22274 2010-07-12  Bruno Haible  <bruno@clisp.org>
22275
22276         Unify tests that set gl_cv_func_frexpl_no_libm.
22277         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
22278         gl_FUNC_FREXPL_NO_LIBM.
22279         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
22280         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
22281
22282 2010-07-12  Bruno Haible  <bruno@clisp.org>
22283
22284         Unify tests that set gl_cv_func_frexp_no_libm.
22285         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
22286         gl_FUNC_FREXP_NO_LIBM.
22287         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
22288         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
22289
22290 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
22291
22292         memcoll: clarify sizes versus lengths, document better, and tweak perf
22293         * lib/memcoll.c (strcoll_loop, memcoll0):
22294         Improve quality of descriptive comments.  Name variables
22295         consistently as to whether they are lengths (which do not include
22296         terminating null) versus sizes (which do).
22297         * lib/xmemcoll.c (xmemcoll0): Likewise.
22298         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
22299         returned when s1size == 0; this is easier to compile and saves
22300         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
22301
22302 2010-07-12  Bruno Haible  <bruno@clisp.org>
22303
22304         Tests for module '_Exit'.
22305         * modules/_Exit-tests: New file.
22306         * tests/test-_Exit.sh: New file.
22307         * tests/test-_Exit.c: New file.
22308
22309         New module '_Exit'.
22310         * lib/stdlib.in.h (__attribute__): New macro.
22311         (_Exit): New declaration.
22312         * lib/_Exit.c: New file.
22313         * m4/_Exit.m4: New file.
22314         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
22315         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
22316         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
22317         * modules/_Exit: New file.
22318         * tests/test-stdlib-c++.cc (_Exit): Check signature.
22319         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
22320
22321 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
22322
22323         strtod: make it more-accurate typically, and don't require libm
22324         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
22325         Include limits.h.  Don't include string.h.
22326         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
22327         (locale_isspace): New function, so that no casts are needed to
22328         check whether *s is a space.
22329         (ldexp): Provide an unused dummy if not available.
22330         (scale_radix_exp, parse_number, underlying_strtod): New functions.
22331         (strtod): Use them.  This implementation prefers to use the
22332         underlying strtod if available, falling back on our own code
22333         only to fix known bugs.  This is more likely to produce an
22334         accurate result.  Also, it avoids the use of libm functions.
22335         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
22336         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
22337         was absent, but it caused a test failure with coreutils.
22338         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
22339         with libm.
22340         * modules/strtod (Makefile.am, Link): libm is no longer needed.
22341         * modules/strtod-tests (Makefile.am): Likewise.
22342
22343 2010-07-11  Pádraig Brady  <P@draigBrady.com>
22344             Bruno Haible  <bruno@clisp.org>
22345
22346         unistr/u8-strchr: Optimize ASCII argument case.
22347         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
22348
22349 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
22350
22351         (x)memcoll: minor tweaks
22352         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
22353         is after the type that it qualifies.
22354         (memcoll0): Likewise.
22355         * lib/memcoll.h (memcoll0): Likewise.
22356         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
22357         * lib/xmemcoll.h (xmemcoll0): Likewise.
22358         * lib/memcoll.c (memcoll0): Correct the comment.  This function
22359         differs from memcoll in that the NUL byte is part of the argument.
22360         Omit the abort-checks, as performance is a real issue here.  Plus,
22361         the checks were wrong anyway (an off-by-one error).  Omit local
22362         variable 'diff', as it's a bit clearer that way.
22363         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
22364         no longer needed.
22365
22366 2010-07-08  Chen Guo <chenguo4@yahoo.com>
22367
22368         (x)memcoll: speedup when input is known to be NUL delimited
22369         * lib/memcoll.c: Include stdlib.
22370         (memcoll0): New function.
22371         (strcoll_loop): New function, refactored for use in both memcoll
22372         and memcoll0.
22373         * lib/memcoll.h (memcoll0): Add prototype.
22374         * lib/xmemcoll.c (xmemcoll0): New function.
22375         (collate_error): New function, refactored for use in both xmemcoll
22376         and xmemcoll0.
22377         * lib/xmemcoll.h (xmemcoll0): Add prototype.
22378         * m4/memcoll.m4: add inline invocation.
22379
22380 2010-07-06  Pádraig Brady  <P@draigBrady.com>
22381
22382         * build-aux/bootstrap: Remove any local translations
22383         from the translation project synchronization directory,
22384         so that local only translations are not distributed.
22385
22386 2010-07-04  Bruno Haible  <bruno@clisp.org>
22387
22388         fsusage: Clarify which code applies to which platforms.
22389         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
22390         platform.
22391         * lib/fsusage.c (get_fs_usage): Likewise.
22392
22393 2010-07-04  Bruno Haible  <bruno@clisp.org>
22394
22395         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
22396         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
22397         Reported by Martin Lambers <marlam@marlam.de>.
22398
22399 2010-07-04  Jim Meyering  <meyering@redhat.com>
22400
22401         hash: once again explicitly disallow insertion of NULL
22402         * lib/hash.c (hash_insert0): Reinstate just-removed test:
22403         inserting a NULL pointer cannot work with these functions.
22404         Add a comment with details.
22405         This reverts part of the 2010-07-01 commit, 5bef1a35
22406         "hash: extend module to deal with non-pointer keys".
22407
22408 2010-07-01  Bruno Haible  <bruno@clisp.org>
22409
22410         stdbool: Update doc.
22411         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
22412         Info from Christian Weisgerber <naddy@mips.inka.de>.
22413
22414 2010-07-01  Jim Meyering  <meyering@redhat.com>
22415
22416         hash: extend module to deal with non-pointer keys
22417         * lib/hash.c (hash_insert0): New interface, much like hash_insert
22418         but that allows insertion of non-pointer entries.
22419         Do not disallow an ENTRY value of NULL.
22420         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
22421         * lib/hash.h (hash_insert0): Declare.
22422
22423 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
22424
22425         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
22426         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
22427         not present (i.e. with autoconf 2.59 and when using gettextize, not
22428         gnulib), require AC_GNU_SOURCE instead.
22429
22430 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
22431
22432         idpriv-drop: Fix tests.
22433         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
22434         not to the test-idpriv-droptemp program.
22435
22436 2010-06-29  Bruno Haible  <bruno@clisp.org>
22437
22438         string: Fix syntax error with g++ 2.96.
22439         * lib/string.in.h (__pure__): Remove definition.
22440         (_GL_ATTRIBUTE_PURE): New macro.
22441         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
22442         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
22443         Reported by Christian Weisgerber <naddy@mips.inka.de>.
22444
22445 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
22446
22447         unitypes: Fix bug introduced on 2010-05-18.
22448         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
22449
22450 2010-06-22  Eric Blake  <eblake@redhat.com>
22451
22452         memmem: slight optimization
22453         * lib/str-two-way.h (critical_factorization): Update comments.
22454         Reduce work during factorization phase.
22455         Reported by Carlos Bueno <carlos@bueno.org>.
22456
22457 2010-06-21  Bruno Haible  <bruno@clisp.org>
22458
22459         Fix HAVE_CALLOC_POSIX misnomer.
22460         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
22461         !HAVE_CALLOC_POSIX.
22462         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
22463         HAVE_CALLOC_POSIX.
22464         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
22465         instead of HAVE_CALLOC_POSIX.
22466         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
22467         HAVE_CALLOC_POSIX.
22468
22469         Use modern idiom for calloc() replacement.
22470         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
22471         AC_FUNC_CALLOC.
22472         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
22473         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
22474         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22475         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
22476         (gl_REPLACE_CALLOC): New macro.
22477
22478 2010-06-21  Bruno Haible  <bruno@clisp.org>
22479
22480         Fix HAVE_REALLOC_POSIX misnomer.
22481         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
22482         !HAVE_REALLOC_POSIX.
22483         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
22484         HAVE_REALLOC_POSIX.
22485         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
22486         instead of HAVE_REALLOC_POSIX.
22487         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
22488         HAVE_REALLOC_POSIX.
22489
22490         Use modern idiom for realloc() replacement.
22491         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
22492         AC_FUNC_REALLOC.
22493         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
22494         Autoconf's AC_FUNC_REALLOC.
22495         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22496         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
22497         (gl_REPLACE_REALLOC): New macro.
22498         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
22499
22500 2010-06-21  Bruno Haible  <bruno@clisp.org>
22501
22502         Fix HAVE_MALLOC_POSIX misnomer.
22503         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
22504         !HAVE_MALLOC_POSIX.
22505         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
22506         HAVE_MALLOC_POSIX.
22507         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
22508         instead of HAVE_MALLOC_POSIX.
22509         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
22510         HAVE_MALLOC_POSIX.
22511
22512         Use modern idiom for malloc() replacement.
22513         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
22514         AC_FUNC_MALLOC.
22515         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
22516         Autoconf's AC_FUNC_MALLOC.
22517         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22518         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
22519         (gl_REPLACE_MALLOC): New macro.
22520         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
22521
22522 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
22523
22524         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
22525         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
22526         This macro takes 3 arguments, not 4.
22527
22528 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
22529
22530         ipv6: fix detection under mingw
22531         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
22532         in6_addr.
22533
22534 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
22535
22536         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
22537         that strtod() works when cross-compiling to a glibc version known
22538         to work.
22539
22540 2010-06-15  Bruno Haible  <bruno@clisp.org>
22541
22542         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
22543
22544 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
22545
22546         select: Correct timeout.
22547         * lib/select.c (rpl_select): Compute wait_timeout correctly.
22548
22549 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
22550
22551         git-version-gen: init shell var to avoid env var influence
22552         * build-aux/git-version-gen (v): Init shell var to empty.
22553
22554 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
22555
22556         priv-set: Don't assume that priv.h exists merely because getppriv does.
22557         See Jan Andersen's bug report about AIX 5L in
22558         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
22559         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
22560         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
22561         * lib/priv-set.h: Likewise.
22562         * tests/test-priv-set.c: Likewise.
22563
22564 2010-06-13  Bruno Haible  <bruno@clisp.org>
22565
22566         relocatable: Make it easier to test whether to install wrappers.
22567         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
22568         RELOCATABLE_VIA_WRAPPER.
22569
22570 2010-06-13  Bruno Haible  <bruno@clisp.org>
22571
22572         gnulib-tool: Display specified modules and dependencies differently.
22573         * gnulib-tool (func_show_module_list): New function.
22574         (func_import, func_create_testdir): Invoke it.
22575         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
22576
22577 2010-06-13  Bruno Haible  <bruno@clisp.org>
22578
22579         gnulib-tool: Align code of func_import and func_create_testdir.
22580         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
22581         specified_modules.
22582
22583 2010-06-12  Jim Meyering  <meyering@redhat.com>
22584
22585         test-inttostr: avoid spurious failure on Solaris 9
22586         * tests/test-inttostr.c (main): Skip the test when snprintf fails
22587         to accept "%ju".  Reported by Bruno Haible.
22588
22589 2010-06-11  Jim Meyering  <meyering@redhat.com>
22590
22591         test-sys_socket: mark variables as used more readably
22592         * tests/test-sys_socket.c (main): Mark otherwise unused variables
22593         as "used" explicitly via (void) statement casts.  This is more
22594         readable than using them in an artificial return expression.
22595         Suggestion from Bruno Haible.
22596
22597 2010-06-11  Bruno Haible  <bruno@clisp.org>
22598
22599         Avoid some more warnings from "gcc -Wwrite-strings".
22600         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
22601         to 'const char *'.
22602         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
22603         * tests/test-c-strcasestr.c (main): Likewise.
22604         * tests/test-mbscasestr1.c (main): Likewise.
22605         * tests/test-mbscasestr2.c (main): Likewise.
22606         * tests/test-memmem.c (main): Likewise.
22607         * tests/test-strstr.c (main): Likewise.
22608         * tests/test-strcasestr.c (main): Likewise.
22609
22610 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22611
22612         init.sh: change framework_failure_ to fail with status 99, not 1
22613         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
22614         automake's parallel-tests rule that this is an unexpected failure,
22615         even if the test is listed in XFAIL_TESTS.
22616
22617 2010-06-11  Jim Meyering  <meyering@redhat.com>
22618
22619         test-inttostr: avoid warnings about 4-6KB literal strings
22620         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
22621         Include "macros.h", for its definition of ASSERT.
22622         (CK): s/assert/ASSERT/
22623         * modules/inttostr-tests (Files): Add macros.h.
22624
22625         init.sh: don't use $ME_ or skip_ before they are defined
22626         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
22627         their first uses.  Also hoist their companions: warn_, fail_,
22628         framework_failure_, $stderr_fileno.  Prompted by a patch from
22629         Stefano Lattarini.
22630
22631         test-sys_socket: avoid set-but-not-used warnings from gcc
22632         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
22633         avoid warning about set-but-not-used variables.
22634
22635         test-xvasprintf: avoid 'const' discard warnings
22636         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
22637         "const" when assigning from literal strings.
22638         (test_xasprintf): Add "void" in function argument list to placate
22639         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
22640
22641         tests: avoid compilation warnings in argmatch and exclude tests...
22642         in packages that define ARGMATCH_DIE_DECL, like coreutils.
22643         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
22644         Since it always exits, declare with the "noreturn" attribute.
22645         * tests/test-argmatch.c: Likewise.
22646
22647         tests: avoid 'const' discard warnings in mbsstr tests
22648         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
22649         * tests/test-mbsstr2.c (main): Likewise.
22650
22651         test-verify: avoid warning from gcc's -Wmissing-declarations
22652         * tests/test-verify.c (function): Declare to be static.
22653
22654         test-inttostr.c: include <string.h> for use of strcmp
22655         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
22656
22657         test-linkat: avoid failed assertion on "other" architectures
22658         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
22659         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
22660         sparc: https://bugs.launchpad.net/bugs/591968
22661
22662 2010-06-11  Jim Meyering  <meyering@redhat.com>
22663
22664         printf.m4: avoid autoconf's "Expanded Before Required" warning
22665         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
22666         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
22667         autoconf warning.
22668
22669 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
22670
22671         Replacement header templates are now named with ".in", not "_".
22672         * doc/gnulib-intro.texi: Correct.
22673
22674 2010-06-10  Jim Meyering  <meyering@redhat.com>
22675
22676         inttostr-tests: depend on snprintf, not snprintf-posix
22677         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
22678         snprintf-posix, to avoid this aclocal failure:
22679           missing file gnulib-tests/vasnprintf.c
22680           configure.ac:45: error: expected source file, required through \
22681           AC_LIBSOURCES, not found
22682
22683 2010-06-10  Jim Meyering  <meyering@redhat.com>
22684
22685         inttostr: add a new function, inttostr, and tests
22686         The namesake function was not available.  The existence of the
22687         template file, inttostr.c makes its addition nontrivial.
22688         * lib/anytostr.c: Rename from inttostr.c.
22689         (anytostr): Rename from inttostr.
22690         * lib/inttostr.c: New file.
22691         * modules/inttostr (Files): Add anytostr.c.
22692         (Makefile.am): Set lib_SOURCES instead of ...
22693         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
22694         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
22695         * lib/offtostr.c: Likewise.
22696         * lib/uinttostr.c: Likewise.
22697         * lib/umaxtostr.c: Likewise.
22698         * modules/inttostr-tests: New file.
22699         * tests/test-inttostr.c: New file.  Test these functions.
22700
22701 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
22702             Bruno Haible  <bruno@clisp.org>
22703
22704         Add "Extending Gnulib" chapter to manual.
22705         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
22706         chapter.
22707         (Extending Gnulib): New chapter.
22708         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
22709         chapter.
22710
22711 2010-06-09  Bruno Haible  <bruno@clisp.org>
22712
22713         Avoid relocwrapper link errors due to gnulib replacement functions.
22714         * lib/areadlink.c: Use the system's malloc, realloc functions.
22715         (areadlink): Set errno to ENOMEM explicitly.
22716         * modules/areadlink (Depends-on): Remove malloc-posix.
22717         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22718
22719 2010-06-09  Bruno Haible  <bruno@clisp.org>
22720
22721         Avoid relocwrapper link errors due to gnulib replacement functions.
22722         * lib/canonicalize-lgpl.c: Use the system's malloc function.
22723         * lib/malloca.c: Likewise.
22724         * lib/relocatable.c: Likewise.
22725         * lib/progreloc.c: Use the system's malloc, sprintf functions.
22726         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
22727         * lib/setenv.c: Use the system's malloc, realloc functions.
22728         * lib/strerror.c: Use the system's sprintf function.
22729         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22730
22731 2010-06-04  Bruno Haible  <bruno@clisp.org>
22732
22733         Prefer documented low-level autoconf macro names.
22734         * m4/lib-link.m4: Use m4_translit instead of translit.
22735         * m4/environ.m4: Likewise.
22736         * m4/mathfunc.m4: Likewise.
22737         * m4/onceonly.m4: Likewise.
22738         * m4/stdint.m4: Likewise.
22739         Suggested by Eric Blake.
22740
22741 2010-06-04  Martin Lambers  <marlam@marlam.de>
22742             Bruno Haible  <bruno@clisp.org>
22743
22744         havelib: Allow library names with '+' characters.
22745         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
22746         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
22747
22748 2010-06-09  Bruno Haible  <bruno@clisp.org>
22749
22750         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
22751         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
22752         realloc failed.
22753
22754 2010-06-08  Peter Simons  <simons@cryp.to>
22755
22756         maint.mk: make the news-check rule more configurable
22757         * top/maint.mk (news-check-lines-spec): New variable.
22758         (news-check): Use "sed -n 1,10p" in place of "head".
22759
22760 2010-06-07  Jim Meyering  <meyering@redhat.com>
22761
22762         do-release-commit-and-tag: fix typo in --help
22763         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
22764
22765         regex: avoid new dead-code warning with gcc-4.6.0
22766         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
22767         if-block containing a while-loop.  It's been unused for at least
22768         5 years.
22769
22770 2010-06-05  Bruno Haible  <bruno@clisp.org>
22771
22772         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
22773         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
22774
22775 2010-06-04  Bruno Haible  <bruno@clisp.org>
22776
22777         Update to GNU gettext 0.18.1.
22778         * modules/gettext (configure.ac): Require gettext infrastructure from
22779         version 0.18.1.
22780
22781 2010-06-03  Bruno Haible  <bruno@clisp.org>
22782
22783         Don't use AC_LIBOBJ with file names in subdirectories.
22784         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
22785         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
22786         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
22787         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
22788         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
22789         gl_LIBUNISTRING_LIBSOURCE.
22790         (Makefile.am): Augment lib_SOURCES here, conditionally.
22791         * NEWS: Drop requirement for Automake option 'subdir-objects'.
22792
22793 2010-06-03  Bruno Haible  <bruno@clisp.org>
22794
22795         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
22796         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
22797         expansion does not end with a newline.
22798         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
22799         unnecessary newline.
22800
22801 2010-06-03  Bruno Haible  <bruno@clisp.org>
22802
22803         Reduce dependencies.
22804         * tests/test-quotearg.h: New file, extracted from
22805         tests/test-quotearg.c.
22806         * tests/test-quotearg-simple.c: New file, extracted from
22807         tests/test-quotearg.c.
22808         * tests/test-quotearg.c: Don't include <ctype.h>.
22809         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
22810         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
22811         use_quote_double_quotes, use_quotearg_colon): Moved to
22812         tests/test-quotearg.h.
22813         (results_g, flag_results, custom_quotes, custom_results): Moved
22814         to tests/test-quotearg-simple.c.
22815         (main): Moved the part that does not depend on gettext to
22816         tests/test-quotearg-simple.c. Return 77 if the test cannot be
22817         performed.
22818         * modules/quotearg-simple: New file.
22819         * modules/quotearg-simple-tests: New file.
22820         * modules/quotearg (Depends-on): Add quotearg-simple.
22821         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
22822         (Files): Add tests/test-quotearg.h.
22823         Reported by Paolo Bonzini.
22824
22825 2010-06-03  Bruno Haible  <bruno@clisp.org>
22826
22827         Reduce dependencies.
22828         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
22829
22830 2010-06-03  Bruno Haible  <bruno@clisp.org>
22831
22832         time: Undefine more broken macros.
22833         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
22834         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
22835         Reported by Eric Blake.
22836
22837 2010-06-03  Bruno Haible  <bruno@clisp.org>
22838
22839         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
22840         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
22841         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
22842         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
22843         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
22844         Reported by Ludovic Courtès <ludo@gnu.org>.
22845
22846 2010-06-02  Eric Blake  <eblake@redhat.com>
22847
22848         time: work with mingw + pthreads-win32 library
22849         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
22850         if timespec is defined only in pthread.h.
22851         * modules/time (Makefile.am): Substitute it.
22852         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
22853         <pthread.h>, when needed.
22854         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
22855         from the library.
22856
22857 2010-05-31  Bruno Haible  <bruno@clisp.org>
22858
22859         Avoid expanding two macros in the wrong order.
22860         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
22861         gl_LIBUNISTRING if it is defined.
22862         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
22863         autoconf >= 2.64.
22864         Reported by Ludovic Courtès <ludo@gnu.org>.
22865
22866 2010-05-27  Jim Meyering  <meyering@redhat.com>
22867
22868         maint.mk: also prohibit "#undef" of always-defined symbols
22869         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
22870         Allow more than one space before the symbol name.
22871         (sc_prohibit_always-defined_macros): Use grep's -E, now that
22872         the regexp uses alternation.
22873
22874 2010-05-26  Eric Blake  <eblake@redhat.com>
22875
22876         maint.mk: avoid echo -e
22877         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
22878         Convert all uses of echo -* to printf.
22879         Reported by Matthias Bolte.
22880
22881 2010-05-25  Bruno Haible  <bruno@clisp.org>
22882
22883         Update to GNU gettext 0.18, part 2.
22884         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
22885         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
22886
22887 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22888
22889         Add missing include in test-pwrite.c.
22890         * tests/test-pwrite.c: Include string.h, for strcmp.
22891
22892 2010-05-24  Bruno Haible  <bruno@clisp.org>
22893
22894         * NEWS: Mention requirement for Automake option 'subdir-objects'.
22895
22896 2010-05-24  Bruno Haible  <bruno@clisp.org>
22897
22898         Don't use conversion with transliteration in u{8,16,32}_strcoll.
22899         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
22900         iconveh_error argument.
22901         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
22902         U_STRCONV_TO_LOCALE.
22903         * lib/unistr/u16-strcoll.c: Likewise.
22904         * lib/unistr/u32-strcoll.c: Likewise.
22905         * modules/unistr/u8-strcoll (Depends-on): Add
22906         uniconv/u8-strconv-to-enc, localcharset. Remove
22907         uniconv/u8-strconv-to-locale.
22908         (configure.ac): Bump version number.
22909         * modules/unistr/u16-strcoll (Depends-on): Add
22910         uniconv/u16-strconv-to-enc, localcharset. Remove
22911         uniconv/u16-strconv-to-locale.
22912         (configure.ac): Bump version number.
22913         * modules/unistr/u32-strcoll (Depends-on): Add
22914         uniconv/u32-strconv-to-enc, localcharset. Remove
22915         uniconv/u32-strconv-to-locale.
22916         (configure.ac): Bump version number.
22917
22918 2010-05-24  Bruno Haible  <bruno@clisp.org>
22919
22920         Avoid a test failure on NetBSD 5.0.
22921         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
22922         an iconv() bug.
22923
22924 2010-05-24  Bruno Haible  <bruno@clisp.org>
22925
22926         Adjust #include directive style.
22927         * modules/regex (Includes): Recommend to write <regex.h>.
22928
22929 2010-05-24  Bruno Haible  <bruno@clisp.org>
22930
22931         regex: Don't require alloca.
22932         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
22933         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
22934         only inside if (0).
22935
22936 2010-05-23  Jim Meyering  <meyering@redhat.com>
22937
22938         test-renameat.c: include <sys/stat.h>
22939         * tests/test-renameat.c: Include <sys/stat.h>; required for
22940         definition of S_IS* macros.
22941
22942 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
22943
22944         Update maintainer documentation for 'relocatable-prog' module.
22945         * doc/relocatable-maint.texi: Update.
22946         Comments by Bruno Haible.
22947
22948 2010-05-23  Bruno Haible  <bruno@clisp.org>
22949
22950         git-merge-changelog: Enable --split-merged-entry by default.
22951         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
22952         (usage): Don't mention this option any more.
22953         Reported by Ralf Wildenhues.
22954
22955 2010-05-23  Jim Meyering  <meyering@redhat.com>
22956
22957         test-pwrite: do not leave behind a test file named "out"
22958         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
22959         The trivial-looking use of init.sh is really necessary.
22960         It ensures that the temporary file, "out", is created in
22961         a temporary directory, and removed upon termination.
22962         * tests/test-pwrite.sh: Re-add file.
22963         * modules/pwrite-tests: Reference it.
22964
22965 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22966
22967         Fix output redirection buglet in init.sh.
22968         * tests/init.sh: Fix redirection of stderr.
22969
22970 2010-05-20  Simon Josefsson  <simon@josefsson.org>
22971
22972         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
22973
22974 2010-05-17  Simon Josefsson  <simon@josefsson.org>
22975
22976         * modules/valgrind-tests: New file.
22977         * m4/valgrind-tests.m4: New file.
22978         * doc/valgrind-tests.texi: New file.
22979         * doc/gnulib.texi (Running self-tests under valgrind): New
22980         section.
22981
22982 2010-05-19  Bruno Haible  <bruno@clisp.org>
22983
22984         Clean up dead code in recent commit.
22985         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
22986         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
22987         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
22988         Suggested by Paolo Bonzini.
22989
22990 2010-05-19  Bruno Haible  <bruno@clisp.org>
22991
22992         Avoid valgrind error reports from libunistring.
22993         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
22994         * modules/libunistring (Files): Add it.
22995         * modules/libunistring-optional (Files): Likewise.
22996
22997 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
22998             Bruno Haible  <bruno@clisp.org>
22999
23000         New module 'libunistring-optional'.
23001         * modules/libunistring-optional: New file.
23002         * m4/libunistring-base.m4: New file.
23003         * m4/libunistring-optional.m4: New file.
23004         * lib/unicase.in.h: Renamed from lib/unicase.h.
23005         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
23006         * lib/unictype.in.h: Renamed from lib/unictype.h.
23007         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
23008         * lib/uniname.in.h: Renamed from lib/uniname.h.
23009         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
23010         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
23011         * lib/unistr.in.h: Renamed from lib/unistr.h.
23012         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
23013         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
23014         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
23015         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
23016         gl_LIBUNISTRING. If the library was found, determine the installed
23017         version and set LIBUNISTRING_VERSION.
23018         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
23019         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
23020         handle a configuration option --with-included-libunistring.
23021         * modules/libunistring (Files): Add m4/absolute-header.m4.
23022         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
23023         Add m4/libunistring-base.m4.
23024         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23025         (Makefile.am): Build unicase.h from unicase.in.h.
23026         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
23027         Add m4/libunistring-base.m4.
23028         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23029         (Makefile.am): Build uniconv.h from uniconv.in.h.
23030         * modules/unictype/base (Files): Use unictype.in.h instead of
23031         unictype.h. Add m4/libunistring-base.m4.
23032         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23033         (Makefile.am): Build unictype.h from unictype.in.h.
23034         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
23035         Add m4/libunistring-base.m4.
23036         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23037         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
23038         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
23039         Add m4/libunistring-base.m4.
23040         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23041         (Makefile.am): Build uniname.h from uniname.in.h.
23042         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
23043         Add m4/libunistring-base.m4.
23044         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23045         (Makefile.am): Build uninorm.h from uninorm.in.h.
23046         * modules/unistdio/base (Files): Use unistdio.in.h instead of
23047         unistdio.h. Add m4/libunistring-base.m4.
23048         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23049         (Makefile.am): Build unistdio.h from unistdio.in.h.
23050         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
23051         Add m4/libunistring-base.m4.
23052         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23053         (Makefile.am): Build unistr.h from unistr.in.h.
23054         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
23055         Add m4/libunistring-base.m4.
23056         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23057         (Makefile.am): Build unitypes.h from unitypes.in.h.
23058         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
23059         Add m4/libunistring-base.m4.
23060         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23061         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
23062         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
23063         uniwidth.h. Add m4/libunistring-base.m4.
23064         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23065         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
23066         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
23067         instead of augmenting lib_SOURCES.
23068         * modules/unicase/empty-suffix-context: Likewise.
23069         * modules/unicase/locale-language: Likewise.
23070         * modules/unicase/tolower: Likewise.
23071         * modules/unicase/totitle: Likewise.
23072         * modules/unicase/toupper: Likewise.
23073         * modules/unicase/u8-casecmp: Likewise.
23074         * modules/unicase/u8-casecoll: Likewise.
23075         * modules/unicase/u8-casefold: Likewise.
23076         * modules/unicase/u8-casexfrm: Likewise.
23077         * modules/unicase/u8-ct-casefold: Likewise.
23078         * modules/unicase/u8-ct-tolower: Likewise.
23079         * modules/unicase/u8-ct-totitle: Likewise.
23080         * modules/unicase/u8-ct-toupper: Likewise.
23081         * modules/unicase/u8-is-cased: Likewise.
23082         * modules/unicase/u8-is-casefolded: Likewise.
23083         * modules/unicase/u8-is-lowercase: Likewise.
23084         * modules/unicase/u8-is-titlecase: Likewise.
23085         * modules/unicase/u8-is-uppercase: Likewise.
23086         * modules/unicase/u8-prefix-context: Likewise.
23087         * modules/unicase/u8-suffix-context: Likewise.
23088         * modules/unicase/u8-tolower: Likewise.
23089         * modules/unicase/u8-totitle: Likewise.
23090         * modules/unicase/u8-toupper: Likewise.
23091         * modules/unicase/u16-casecmp: Likewise.
23092         * modules/unicase/u16-casecoll: Likewise.
23093         * modules/unicase/u16-casefold: Likewise.
23094         * modules/unicase/u16-casexfrm: Likewise.
23095         * modules/unicase/u16-ct-casefold: Likewise.
23096         * modules/unicase/u16-ct-tolower: Likewise.
23097         * modules/unicase/u16-ct-totitle: Likewise.
23098         * modules/unicase/u16-ct-toupper: Likewise.
23099         * modules/unicase/u16-is-cased: Likewise.
23100         * modules/unicase/u16-is-casefolded: Likewise.
23101         * modules/unicase/u16-is-lowercase: Likewise.
23102         * modules/unicase/u16-is-titlecase: Likewise.
23103         * modules/unicase/u16-is-uppercase: Likewise.
23104         * modules/unicase/u16-prefix-context: Likewise.
23105         * modules/unicase/u16-suffix-context: Likewise.
23106         * modules/unicase/u16-tolower: Likewise.
23107         * modules/unicase/u16-totitle: Likewise.
23108         * modules/unicase/u16-toupper: Likewise.
23109         * modules/unicase/u32-casecmp: Likewise.
23110         * modules/unicase/u32-casecoll: Likewise.
23111         * modules/unicase/u32-casefold: Likewise.
23112         * modules/unicase/u32-casexfrm: Likewise.
23113         * modules/unicase/u32-ct-casefold: Likewise.
23114         * modules/unicase/u32-ct-tolower: Likewise.
23115         * modules/unicase/u32-ct-totitle: Likewise.
23116         * modules/unicase/u32-ct-toupper: Likewise.
23117         * modules/unicase/u32-is-cased: Likewise.
23118         * modules/unicase/u32-is-casefolded: Likewise.
23119         * modules/unicase/u32-is-lowercase: Likewise.
23120         * modules/unicase/u32-is-titlecase: Likewise.
23121         * modules/unicase/u32-is-uppercase: Likewise.
23122         * modules/unicase/u32-prefix-context: Likewise.
23123         * modules/unicase/u32-suffix-context: Likewise.
23124         * modules/unicase/u32-tolower: Likewise.
23125         * modules/unicase/u32-totitle: Likewise.
23126         * modules/unicase/u32-toupper: Likewise.
23127         * modules/unicase/ulc-casecmp: Likewise.
23128         * modules/unicase/ulc-casecoll: Likewise.
23129         * modules/unicase/ulc-casexfrm: Likewise.
23130         * modules/uniconv/u8-conv-from-enc: Likewise.
23131         * modules/uniconv/u8-conv-to-enc: Likewise.
23132         * modules/uniconv/u8-strconv-from-enc: Likewise.
23133         * modules/uniconv/u8-strconv-from-locale: Likewise.
23134         * modules/uniconv/u8-strconv-to-enc: Likewise.
23135         * modules/uniconv/u8-strconv-to-locale: Likewise.
23136         * modules/uniconv/u16-conv-from-enc: Likewise.
23137         * modules/uniconv/u16-conv-to-enc: Likewise.
23138         * modules/uniconv/u16-strconv-from-enc: Likewise.
23139         * modules/uniconv/u16-strconv-from-locale: Likewise.
23140         * modules/uniconv/u16-strconv-to-enc: Likewise.
23141         * modules/uniconv/u16-strconv-to-locale: Likewise.
23142         * modules/uniconv/u32-conv-from-enc: Likewise.
23143         * modules/uniconv/u32-conv-to-enc: Likewise.
23144         * modules/uniconv/u32-strconv-from-enc: Likewise.
23145         * modules/uniconv/u32-strconv-from-locale: Likewise.
23146         * modules/uniconv/u32-strconv-to-enc: Likewise.
23147         * modules/uniconv/u32-strconv-to-locale: Likewise.
23148         * modules/unictype/bidicategory-byname: Likewise.
23149         * modules/unictype/bidicategory-name: Likewise.
23150         * modules/unictype/bidicategory-of: Likewise.
23151         * modules/unictype/bidicategory-test: Likewise.
23152         * modules/unictype/block-list: Likewise.
23153         * modules/unictype/block-test: Likewise.
23154         * modules/unictype/category-C: Likewise.
23155         * modules/unictype/category-Cc: Likewise.
23156         * modules/unictype/category-Cf: Likewise.
23157         * modules/unictype/category-Cn: Likewise.
23158         * modules/unictype/category-Co: Likewise.
23159         * modules/unictype/category-Cs: Likewise.
23160         * modules/unictype/category-L: Likewise.
23161         * modules/unictype/category-Ll: Likewise.
23162         * modules/unictype/category-Lm: Likewise.
23163         * modules/unictype/category-Lo: Likewise.
23164         * modules/unictype/category-Lt: Likewise.
23165         * modules/unictype/category-Lu: Likewise.
23166         * modules/unictype/category-M: Likewise.
23167         * modules/unictype/category-Mc: Likewise.
23168         * modules/unictype/category-Me: Likewise.
23169         * modules/unictype/category-Mn: Likewise.
23170         * modules/unictype/category-N: Likewise.
23171         * modules/unictype/category-Nd: Likewise.
23172         * modules/unictype/category-Nl: Likewise.
23173         * modules/unictype/category-No: Likewise.
23174         * modules/unictype/category-P: Likewise.
23175         * modules/unictype/category-Pc: Likewise.
23176         * modules/unictype/category-Pd: Likewise.
23177         * modules/unictype/category-Pe: Likewise.
23178         * modules/unictype/category-Pf: Likewise.
23179         * modules/unictype/category-Pi: Likewise.
23180         * modules/unictype/category-Po: Likewise.
23181         * modules/unictype/category-Ps: Likewise.
23182         * modules/unictype/category-S: Likewise.
23183         * modules/unictype/category-Sc: Likewise.
23184         * modules/unictype/category-Sk: Likewise.
23185         * modules/unictype/category-Sm: Likewise.
23186         * modules/unictype/category-So: Likewise.
23187         * modules/unictype/category-Z: Likewise.
23188         * modules/unictype/category-Zl: Likewise.
23189         * modules/unictype/category-Zp: Likewise.
23190         * modules/unictype/category-Zs: Likewise.
23191         * modules/unictype/category-and: Likewise.
23192         * modules/unictype/category-and-not: Likewise.
23193         * modules/unictype/category-byname: Likewise.
23194         * modules/unictype/category-name: Likewise.
23195         * modules/unictype/category-none: Likewise.
23196         * modules/unictype/category-of: Likewise.
23197         * modules/unictype/category-or: Likewise.
23198         * modules/unictype/category-test: Likewise.
23199         * modules/unictype/combining-class: Likewise.
23200         * modules/unictype/ctype-alnum: Likewise.
23201         * modules/unictype/ctype-alpha: Likewise.
23202         * modules/unictype/ctype-blank: Likewise.
23203         * modules/unictype/ctype-cntrl: Likewise.
23204         * modules/unictype/ctype-digit: Likewise.
23205         * modules/unictype/ctype-graph: Likewise.
23206         * modules/unictype/ctype-lower: Likewise.
23207         * modules/unictype/ctype-print: Likewise.
23208         * modules/unictype/ctype-punct: Likewise.
23209         * modules/unictype/ctype-space: Likewise.
23210         * modules/unictype/ctype-upper: Likewise.
23211         * modules/unictype/ctype-xdigit: Likewise.
23212         * modules/unictype/decimal-digit: Likewise.
23213         * modules/unictype/digit: Likewise.
23214         * modules/unictype/mirror: Likewise.
23215         * modules/unictype/numeric: Likewise.
23216         * modules/unictype/property-alphabetic: Likewise.
23217         * modules/unictype/property-ascii-hex-digit: Likewise.
23218         * modules/unictype/property-bidi-arabic-digit: Likewise.
23219         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
23220         * modules/unictype/property-bidi-block-separator: Likewise.
23221         * modules/unictype/property-bidi-boundary-neutral: Likewise.
23222         * modules/unictype/property-bidi-common-separator: Likewise.
23223         * modules/unictype/property-bidi-control: Likewise.
23224         * modules/unictype/property-bidi-embedding-or-override: Likewise.
23225         * modules/unictype/property-bidi-eur-num-separator: Likewise.
23226         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
23227         * modules/unictype/property-bidi-european-digit: Likewise.
23228         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
23229         * modules/unictype/property-bidi-left-to-right: Likewise.
23230         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
23231         * modules/unictype/property-bidi-other-neutral: Likewise.
23232         * modules/unictype/property-bidi-pdf: Likewise.
23233         * modules/unictype/property-bidi-segment-separator: Likewise.
23234         * modules/unictype/property-bidi-whitespace: Likewise.
23235         * modules/unictype/property-byname: Likewise.
23236         * modules/unictype/property-combining: Likewise.
23237         * modules/unictype/property-composite: Likewise.
23238         * modules/unictype/property-currency-symbol: Likewise.
23239         * modules/unictype/property-dash: Likewise.
23240         * modules/unictype/property-decimal-digit: Likewise.
23241         * modules/unictype/property-default-ignorable-code-point: Likewise.
23242         * modules/unictype/property-deprecated: Likewise.
23243         * modules/unictype/property-diacritic: Likewise.
23244         * modules/unictype/property-extender: Likewise.
23245         * modules/unictype/property-format-control: Likewise.
23246         * modules/unictype/property-grapheme-base: Likewise.
23247         * modules/unictype/property-grapheme-extend: Likewise.
23248         * modules/unictype/property-grapheme-link: Likewise.
23249         * modules/unictype/property-hex-digit: Likewise.
23250         * modules/unictype/property-hyphen: Likewise.
23251         * modules/unictype/property-id-continue: Likewise.
23252         * modules/unictype/property-id-start: Likewise.
23253         * modules/unictype/property-ideographic: Likewise.
23254         * modules/unictype/property-ids-binary-operator: Likewise.
23255         * modules/unictype/property-ids-trinary-operator: Likewise.
23256         * modules/unictype/property-ignorable-control: Likewise.
23257         * modules/unictype/property-iso-control: Likewise.
23258         * modules/unictype/property-join-control: Likewise.
23259         * modules/unictype/property-left-of-pair: Likewise.
23260         * modules/unictype/property-line-separator: Likewise.
23261         * modules/unictype/property-logical-order-exception: Likewise.
23262         * modules/unictype/property-lowercase: Likewise.
23263         * modules/unictype/property-math: Likewise.
23264         * modules/unictype/property-non-break: Likewise.
23265         * modules/unictype/property-not-a-character: Likewise.
23266         * modules/unictype/property-numeric: Likewise.
23267         * modules/unictype/property-other-alphabetic: Likewise.
23268         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
23269         * modules/unictype/property-other-grapheme-extend: Likewise.
23270         * modules/unictype/property-other-id-continue: Likewise.
23271         * modules/unictype/property-other-id-start: Likewise.
23272         * modules/unictype/property-other-lowercase: Likewise.
23273         * modules/unictype/property-other-math: Likewise.
23274         * modules/unictype/property-other-uppercase: Likewise.
23275         * modules/unictype/property-paired-punctuation: Likewise.
23276         * modules/unictype/property-paragraph-separator: Likewise.
23277         * modules/unictype/property-pattern-syntax: Likewise.
23278         * modules/unictype/property-pattern-white-space: Likewise.
23279         * modules/unictype/property-private-use: Likewise.
23280         * modules/unictype/property-punctuation: Likewise.
23281         * modules/unictype/property-quotation-mark: Likewise.
23282         * modules/unictype/property-radical: Likewise.
23283         * modules/unictype/property-sentence-terminal: Likewise.
23284         * modules/unictype/property-soft-dotted: Likewise.
23285         * modules/unictype/property-space: Likewise.
23286         * modules/unictype/property-terminal-punctuation: Likewise.
23287         * modules/unictype/property-test: Likewise.
23288         * modules/unictype/property-titlecase: Likewise.
23289         * modules/unictype/property-unassigned-code-value: Likewise.
23290         * modules/unictype/property-unified-ideograph: Likewise.
23291         * modules/unictype/property-uppercase: Likewise.
23292         * modules/unictype/property-variation-selector: Likewise.
23293         * modules/unictype/property-white-space: Likewise.
23294         * modules/unictype/property-xid-continue: Likewise.
23295         * modules/unictype/property-xid-start: Likewise.
23296         * modules/unictype/property-zero-width: Likewise.
23297         * modules/unictype/scripts: Likewise.
23298         * modules/unictype/syntax-c-ident: Likewise.
23299         * modules/unictype/syntax-c-whitespace: Likewise.
23300         * modules/unictype/syntax-java-ident: Likewise.
23301         * modules/unictype/syntax-java-whitespace: Likewise.
23302         * modules/unilbrk/u8-possible-linebreaks: Likewise.
23303         * modules/unilbrk/u8-width-linebreaks: Likewise.
23304         * modules/unilbrk/u16-possible-linebreaks: Likewise.
23305         * modules/unilbrk/u16-width-linebreaks: Likewise.
23306         * modules/unilbrk/u32-possible-linebreaks: Likewise.
23307         * modules/unilbrk/u32-width-linebreaks: Likewise.
23308         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
23309         * modules/unilbrk/ulc-width-linebreaks: Likewise.
23310         * modules/uniname/uniname: Likewise.
23311         * modules/uninorm/canonical-decomposition: Likewise.
23312         * modules/uninorm/composition: Likewise.
23313         * modules/uninorm/decomposing-form: Likewise.
23314         * modules/uninorm/decomposition: Likewise.
23315         * modules/uninorm/filter: Likewise.
23316         * modules/uninorm/nfc: Likewise.
23317         * modules/uninorm/nfd: Likewise.
23318         * modules/uninorm/nfkc: Likewise.
23319         * modules/uninorm/nfkd: Likewise.
23320         * modules/uninorm/u8-normalize: Likewise.
23321         * modules/uninorm/u8-normcmp: Likewise.
23322         * modules/uninorm/u8-normcoll: Likewise.
23323         * modules/uninorm/u8-normxfrm: Likewise.
23324         * modules/uninorm/u16-normalize: Likewise.
23325         * modules/uninorm/u16-normcmp: Likewise.
23326         * modules/uninorm/u16-normcoll: Likewise.
23327         * modules/uninorm/u16-normxfrm: Likewise.
23328         * modules/uninorm/u32-normalize: Likewise.
23329         * modules/uninorm/u32-normcmp: Likewise.
23330         * modules/uninorm/u32-normcoll: Likewise.
23331         * modules/uninorm/u32-normxfrm: Likewise.
23332         * modules/unistdio/u8-asnprintf: Likewise.
23333         * modules/unistdio/u8-asprintf: Likewise.
23334         * modules/unistdio/u8-snprintf: Likewise.
23335         * modules/unistdio/u8-sprintf: Likewise.
23336         * modules/unistdio/u8-u8-asnprintf: Likewise.
23337         * modules/unistdio/u8-u8-asprintf: Likewise.
23338         * modules/unistdio/u8-u8-snprintf: Likewise.
23339         * modules/unistdio/u8-u8-sprintf: Likewise.
23340         * modules/unistdio/u8-u8-vasnprintf: Likewise.
23341         * modules/unistdio/u8-u8-vasprintf: Likewise.
23342         * modules/unistdio/u8-u8-vsnprintf: Likewise.
23343         * modules/unistdio/u8-u8-vsprintf: Likewise.
23344         * modules/unistdio/u8-vasnprintf: Likewise.
23345         * modules/unistdio/u8-vasprintf: Likewise.
23346         * modules/unistdio/u8-vsnprintf: Likewise.
23347         * modules/unistdio/u8-vsprintf: Likewise.
23348         * modules/unistdio/u16-asnprintf: Likewise.
23349         * modules/unistdio/u16-asprintf: Likewise.
23350         * modules/unistdio/u16-snprintf: Likewise.
23351         * modules/unistdio/u16-sprintf: Likewise.
23352         * modules/unistdio/u16-u16-asnprintf: Likewise.
23353         * modules/unistdio/u16-u16-asprintf: Likewise.
23354         * modules/unistdio/u16-u16-snprintf: Likewise.
23355         * modules/unistdio/u16-u16-sprintf: Likewise.
23356         * modules/unistdio/u16-u16-vasnprintf: Likewise.
23357         * modules/unistdio/u16-u16-vasprintf: Likewise.
23358         * modules/unistdio/u16-u16-vsnprintf: Likewise.
23359         * modules/unistdio/u16-u16-vsprintf: Likewise.
23360         * modules/unistdio/u16-vasnprintf: Likewise.
23361         * modules/unistdio/u16-vasprintf: Likewise.
23362         * modules/unistdio/u16-vsnprintf: Likewise.
23363         * modules/unistdio/u16-vsprintf: Likewise.
23364         * modules/unistdio/u32-asnprintf: Likewise.
23365         * modules/unistdio/u32-asprintf: Likewise.
23366         * modules/unistdio/u32-snprintf: Likewise.
23367         * modules/unistdio/u32-sprintf: Likewise.
23368         * modules/unistdio/u32-u32-asnprintf: Likewise.
23369         * modules/unistdio/u32-u32-asprintf: Likewise.
23370         * modules/unistdio/u32-u32-snprintf: Likewise.
23371         * modules/unistdio/u32-u32-sprintf: Likewise.
23372         * modules/unistdio/u32-u32-vasnprintf: Likewise.
23373         * modules/unistdio/u32-u32-vasprintf: Likewise.
23374         * modules/unistdio/u32-u32-vsnprintf: Likewise.
23375         * modules/unistdio/u32-u32-vsprintf: Likewise.
23376         * modules/unistdio/u32-vasnprintf: Likewise.
23377         * modules/unistdio/u32-vasprintf: Likewise.
23378         * modules/unistdio/u32-vsnprintf: Likewise.
23379         * modules/unistdio/u32-vsprintf: Likewise.
23380         * modules/unistdio/ulc-asnprintf: Likewise.
23381         * modules/unistdio/ulc-asprintf: Likewise.
23382         * modules/unistdio/ulc-fprintf: Likewise.
23383         * modules/unistdio/ulc-snprintf: Likewise.
23384         * modules/unistdio/ulc-sprintf: Likewise.
23385         * modules/unistdio/ulc-vasnprintf: Likewise.
23386         * modules/unistdio/ulc-vasprintf: Likewise.
23387         * modules/unistdio/ulc-vfprintf: Likewise.
23388         * modules/unistdio/ulc-vsnprintf: Likewise.
23389         * modules/unistdio/ulc-vsprintf: Likewise.
23390         * modules/unistr/u8-check: Likewise.
23391         * modules/unistr/u8-chr: Likewise.
23392         * modules/unistr/u8-cmp: Likewise.
23393         * modules/unistr/u8-cmp2: Likewise.
23394         * modules/unistr/u8-cpy: Likewise.
23395         * modules/unistr/u8-cpy-alloc: Likewise.
23396         * modules/unistr/u8-endswith: Likewise.
23397         * modules/unistr/u8-mblen: Likewise.
23398         * modules/unistr/u8-mbsnlen: Likewise.
23399         * modules/unistr/u8-mbtouc: Likewise.
23400         * modules/unistr/u8-mbtouc-unsafe: Likewise.
23401         * modules/unistr/u8-mbtoucr: Likewise.
23402         * modules/unistr/u8-move: Likewise.
23403         * modules/unistr/u8-next: Likewise.
23404         * modules/unistr/u8-prev: Likewise.
23405         * modules/unistr/u8-set: Likewise.
23406         * modules/unistr/u8-startswith: Likewise.
23407         * modules/unistr/u8-stpcpy: Likewise.
23408         * modules/unistr/u8-stpncpy: Likewise.
23409         * modules/unistr/u8-strcat: Likewise.
23410         * modules/unistr/u8-strchr: Likewise.
23411         * modules/unistr/u8-strcmp: Likewise.
23412         * modules/unistr/u8-strcoll: Likewise.
23413         * modules/unistr/u8-strcpy: Likewise.
23414         * modules/unistr/u8-strcspn: Likewise.
23415         * modules/unistr/u8-strdup: Likewise.
23416         * modules/unistr/u8-strlen: Likewise.
23417         * modules/unistr/u8-strmblen: Likewise.
23418         * modules/unistr/u8-strmbtouc: Likewise.
23419         * modules/unistr/u8-strncat: Likewise.
23420         * modules/unistr/u8-strncmp: Likewise.
23421         * modules/unistr/u8-strncpy: Likewise.
23422         * modules/unistr/u8-strnlen: Likewise.
23423         * modules/unistr/u8-strpbrk: Likewise.
23424         * modules/unistr/u8-strrchr: Likewise.
23425         * modules/unistr/u8-strspn: Likewise.
23426         * modules/unistr/u8-strstr: Likewise.
23427         * modules/unistr/u8-strtok: Likewise.
23428         * modules/unistr/u8-to-u16: Likewise.
23429         * modules/unistr/u8-to-u32: Likewise.
23430         * modules/unistr/u8-uctomb: Likewise.
23431         * modules/unistr/u16-check: Likewise.
23432         * modules/unistr/u16-chr: Likewise.
23433         * modules/unistr/u16-cmp: Likewise.
23434         * modules/unistr/u16-cmp2: Likewise.
23435         * modules/unistr/u16-cpy: Likewise.
23436         * modules/unistr/u16-cpy-alloc: Likewise.
23437         * modules/unistr/u16-endswith: Likewise.
23438         * modules/unistr/u16-mblen: Likewise.
23439         * modules/unistr/u16-mbsnlen: Likewise.
23440         * modules/unistr/u16-mbtouc: Likewise.
23441         * modules/unistr/u16-mbtouc-unsafe: Likewise.
23442         * modules/unistr/u16-mbtoucr: Likewise.
23443         * modules/unistr/u16-move: Likewise.
23444         * modules/unistr/u16-next: Likewise.
23445         * modules/unistr/u16-prev: Likewise.
23446         * modules/unistr/u16-set: Likewise.
23447         * modules/unistr/u16-startswith: Likewise.
23448         * modules/unistr/u16-stpcpy: Likewise.
23449         * modules/unistr/u16-stpncpy: Likewise.
23450         * modules/unistr/u16-strcat: Likewise.
23451         * modules/unistr/u16-strchr: Likewise.
23452         * modules/unistr/u16-strcmp: Likewise.
23453         * modules/unistr/u16-strcoll: Likewise.
23454         * modules/unistr/u16-strcpy: Likewise.
23455         * modules/unistr/u16-strcspn: Likewise.
23456         * modules/unistr/u16-strdup: Likewise.
23457         * modules/unistr/u16-strlen: Likewise.
23458         * modules/unistr/u16-strmblen: Likewise.
23459         * modules/unistr/u16-strmbtouc: Likewise.
23460         * modules/unistr/u16-strncat: Likewise.
23461         * modules/unistr/u16-strncmp: Likewise.
23462         * modules/unistr/u16-strncpy: Likewise.
23463         * modules/unistr/u16-strnlen: Likewise.
23464         * modules/unistr/u16-strpbrk: Likewise.
23465         * modules/unistr/u16-strrchr: Likewise.
23466         * modules/unistr/u16-strspn: Likewise.
23467         * modules/unistr/u16-strstr: Likewise.
23468         * modules/unistr/u16-strtok: Likewise.
23469         * modules/unistr/u16-to-u32: Likewise.
23470         * modules/unistr/u16-to-u8: Likewise.
23471         * modules/unistr/u16-uctomb: Likewise.
23472         * modules/unistr/u32-check: Likewise.
23473         * modules/unistr/u32-chr: Likewise.
23474         * modules/unistr/u32-cmp: Likewise.
23475         * modules/unistr/u32-cmp2: Likewise.
23476         * modules/unistr/u32-cpy: Likewise.
23477         * modules/unistr/u32-cpy-alloc: Likewise.
23478         * modules/unistr/u32-endswith: Likewise.
23479         * modules/unistr/u32-mblen: Likewise.
23480         * modules/unistr/u32-mbsnlen: Likewise.
23481         * modules/unistr/u32-mbtouc: Likewise.
23482         * modules/unistr/u32-mbtouc-unsafe: Likewise.
23483         * modules/unistr/u32-mbtoucr: Likewise.
23484         * modules/unistr/u32-move: Likewise.
23485         * modules/unistr/u32-next: Likewise.
23486         * modules/unistr/u32-prev: Likewise.
23487         * modules/unistr/u32-set: Likewise.
23488         * modules/unistr/u32-startswith: Likewise.
23489         * modules/unistr/u32-stpcpy: Likewise.
23490         * modules/unistr/u32-stpncpy: Likewise.
23491         * modules/unistr/u32-strcat: Likewise.
23492         * modules/unistr/u32-strchr: Likewise.
23493         * modules/unistr/u32-strcmp: Likewise.
23494         * modules/unistr/u32-strcoll: Likewise.
23495         * modules/unistr/u32-strcpy: Likewise.
23496         * modules/unistr/u32-strcspn: Likewise.
23497         * modules/unistr/u32-strdup: Likewise.
23498         * modules/unistr/u32-strlen: Likewise.
23499         * modules/unistr/u32-strmblen: Likewise.
23500         * modules/unistr/u32-strmbtouc: Likewise.
23501         * modules/unistr/u32-strncat: Likewise.
23502         * modules/unistr/u32-strncmp: Likewise.
23503         * modules/unistr/u32-strncpy: Likewise.
23504         * modules/unistr/u32-strnlen: Likewise.
23505         * modules/unistr/u32-strpbrk: Likewise.
23506         * modules/unistr/u32-strrchr: Likewise.
23507         * modules/unistr/u32-strspn: Likewise.
23508         * modules/unistr/u32-strstr: Likewise.
23509         * modules/unistr/u32-strtok: Likewise.
23510         * modules/unistr/u32-to-u16: Likewise.
23511         * modules/unistr/u32-to-u8: Likewise.
23512         * modules/unistr/u32-uctomb: Likewise.
23513         * modules/uniwbrk/u8-wordbreaks: Likewise.
23514         * modules/uniwbrk/u16-wordbreaks: Likewise.
23515         * modules/uniwbrk/u32-wordbreaks: Likewise.
23516         * modules/uniwbrk/ulc-wordbreaks: Likewise.
23517         * modules/uniwbrk/wordbreak-property: Likewise.
23518         * modules/uniwidth/u8-strwidth: Likewise.
23519         * modules/uniwidth/u8-width: Likewise.
23520         * modules/uniwidth/u16-strwidth: Likewise.
23521         * modules/uniwidth/u16-width: Likewise.
23522         * modules/uniwidth/u32-strwidth: Likewise.
23523         * modules/uniwidth/u32-width: Likewise.
23524         * modules/uniwidth/width: Likewise.
23525         * modules/unicase/cased-tests (Makefile.am): Link all test programs
23526         with $(LIBUNISTRING).
23527         * modules/unicase/ignorable-tests: Likewise.
23528         * modules/unicase/locale-language-tests: Likewise.
23529         * modules/unicase/tolower-tests: Likewise.
23530         * modules/unicase/totitle-tests: Likewise.
23531         * modules/unicase/toupper-tests: Likewise.
23532         * modules/unicase/u8-casecmp-tests: Likewise.
23533         * modules/unicase/u8-casecoll-tests: Likewise.
23534         * modules/unicase/u8-casefold-tests: Likewise.
23535         * modules/unicase/u8-is-cased-tests: Likewise.
23536         * modules/unicase/u8-is-casefolded-tests: Likewise.
23537         * modules/unicase/u8-is-lowercase-tests: Likewise.
23538         * modules/unicase/u8-is-titlecase-tests: Likewise.
23539         * modules/unicase/u8-is-uppercase-tests: Likewise.
23540         * modules/unicase/u8-tolower-tests: Likewise.
23541         * modules/unicase/u8-totitle-tests: Likewise.
23542         * modules/unicase/u8-toupper-tests: Likewise.
23543         * modules/unicase/u16-casecmp-tests: Likewise.
23544         * modules/unicase/u16-casecoll-tests: Likewise.
23545         * modules/unicase/u16-casefold-tests: Likewise.
23546         * modules/unicase/u16-is-cased-tests: Likewise.
23547         * modules/unicase/u16-is-casefolded-tests: Likewise.
23548         * modules/unicase/u16-is-lowercase-tests: Likewise.
23549         * modules/unicase/u16-is-titlecase-tests: Likewise.
23550         * modules/unicase/u16-is-uppercase-tests: Likewise.
23551         * modules/unicase/u16-tolower-tests: Likewise.
23552         * modules/unicase/u16-totitle-tests: Likewise.
23553         * modules/unicase/u16-toupper-tests: Likewise.
23554         * modules/unicase/u32-casecmp-tests: Likewise.
23555         * modules/unicase/u32-casecoll-tests: Likewise.
23556         * modules/unicase/u32-casefold-tests: Likewise.
23557         * modules/unicase/u32-is-cased-tests: Likewise.
23558         * modules/unicase/u32-is-casefolded-tests: Likewise.
23559         * modules/unicase/u32-is-lowercase-tests: Likewise.
23560         * modules/unicase/u32-is-titlecase-tests: Likewise.
23561         * modules/unicase/u32-is-uppercase-tests: Likewise.
23562         * modules/unicase/u32-tolower-tests: Likewise.
23563         * modules/unicase/u32-totitle-tests: Likewise.
23564         * modules/unicase/u32-toupper-tests: Likewise.
23565         * modules/unicase/ulc-casecmp-tests: Likewise.
23566         * modules/unicase/ulc-casecoll-tests: Likewise.
23567         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
23568         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
23569         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
23570         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
23571         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
23572         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
23573         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
23574         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
23575         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
23576         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
23577         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
23578         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
23579         * modules/unictype/bidicategory-byname-tests: Likewise.
23580         * modules/unictype/bidicategory-name-tests: Likewise.
23581         * modules/unictype/bidicategory-of-tests: Likewise.
23582         * modules/unictype/bidicategory-test-tests: Likewise.
23583         * modules/unictype/block-list-tests: Likewise.
23584         * modules/unictype/block-of-tests: Likewise.
23585         * modules/unictype/block-test-tests: Likewise.
23586         * modules/unictype/category-C-tests: Likewise.
23587         * modules/unictype/category-Cc-tests: Likewise.
23588         * modules/unictype/category-Cf-tests: Likewise.
23589         * modules/unictype/category-Cn-tests: Likewise.
23590         * modules/unictype/category-Co-tests: Likewise.
23591         * modules/unictype/category-Cs-tests: Likewise.
23592         * modules/unictype/category-L-tests: Likewise.
23593         * modules/unictype/category-Ll-tests: Likewise.
23594         * modules/unictype/category-Lm-tests: Likewise.
23595         * modules/unictype/category-Lo-tests: Likewise.
23596         * modules/unictype/category-Lt-tests: Likewise.
23597         * modules/unictype/category-Lu-tests: Likewise.
23598         * modules/unictype/category-M-tests: Likewise.
23599         * modules/unictype/category-Mc-tests: Likewise.
23600         * modules/unictype/category-Me-tests: Likewise.
23601         * modules/unictype/category-Mn-tests: Likewise.
23602         * modules/unictype/category-N-tests: Likewise.
23603         * modules/unictype/category-Nd-tests: Likewise.
23604         * modules/unictype/category-Nl-tests: Likewise.
23605         * modules/unictype/category-No-tests: Likewise.
23606         * modules/unictype/category-P-tests: Likewise.
23607         * modules/unictype/category-Pc-tests: Likewise.
23608         * modules/unictype/category-Pd-tests: Likewise.
23609         * modules/unictype/category-Pe-tests: Likewise.
23610         * modules/unictype/category-Pf-tests: Likewise.
23611         * modules/unictype/category-Pi-tests: Likewise.
23612         * modules/unictype/category-Po-tests: Likewise.
23613         * modules/unictype/category-Ps-tests: Likewise.
23614         * modules/unictype/category-S-tests: Likewise.
23615         * modules/unictype/category-Sc-tests: Likewise.
23616         * modules/unictype/category-Sk-tests: Likewise.
23617         * modules/unictype/category-Sm-tests: Likewise.
23618         * modules/unictype/category-So-tests: Likewise.
23619         * modules/unictype/category-Z-tests: Likewise.
23620         * modules/unictype/category-Zl-tests: Likewise.
23621         * modules/unictype/category-Zp-tests: Likewise.
23622         * modules/unictype/category-Zs-tests: Likewise.
23623         * modules/unictype/category-and-not-tests: Likewise.
23624         * modules/unictype/category-and-tests: Likewise.
23625         * modules/unictype/category-byname-tests: Likewise.
23626         * modules/unictype/category-name-tests: Likewise.
23627         * modules/unictype/category-none-tests: Likewise.
23628         * modules/unictype/category-of-tests: Likewise.
23629         * modules/unictype/category-or-tests: Likewise.
23630         * modules/unictype/category-test-withtable-tests: Likewise.
23631         * modules/unictype/combining-class-tests: Likewise.
23632         * modules/unictype/ctype-alnum-tests: Likewise.
23633         * modules/unictype/ctype-alpha-tests: Likewise.
23634         * modules/unictype/ctype-blank-tests: Likewise.
23635         * modules/unictype/ctype-cntrl-tests: Likewise.
23636         * modules/unictype/ctype-digit-tests: Likewise.
23637         * modules/unictype/ctype-graph-tests: Likewise.
23638         * modules/unictype/ctype-lower-tests: Likewise.
23639         * modules/unictype/ctype-print-tests: Likewise.
23640         * modules/unictype/ctype-punct-tests: Likewise.
23641         * modules/unictype/ctype-space-tests: Likewise.
23642         * modules/unictype/ctype-upper-tests: Likewise.
23643         * modules/unictype/ctype-xdigit-tests: Likewise.
23644         * modules/unictype/decimal-digit-tests: Likewise.
23645         * modules/unictype/digit-tests: Likewise.
23646         * modules/unictype/mirror-tests: Likewise.
23647         * modules/unictype/numeric-tests: Likewise.
23648         * modules/unictype/property-alphabetic-tests: Likewise.
23649         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
23650         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
23651         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
23652         * modules/unictype/property-bidi-block-separator-tests: Likewise.
23653         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
23654         * modules/unictype/property-bidi-common-separator-tests: Likewise.
23655         * modules/unictype/property-bidi-control-tests: Likewise.
23656         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
23657         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
23658         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
23659         * modules/unictype/property-bidi-european-digit-tests: Likewise.
23660         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
23661         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
23662         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
23663         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
23664         * modules/unictype/property-bidi-pdf-tests: Likewise.
23665         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
23666         * modules/unictype/property-bidi-whitespace-tests: Likewise.
23667         * modules/unictype/property-byname-tests: Likewise.
23668         * modules/unictype/property-combining-tests: Likewise.
23669         * modules/unictype/property-composite-tests: Likewise.
23670         * modules/unictype/property-currency-symbol-tests: Likewise.
23671         * modules/unictype/property-dash-tests: Likewise.
23672         * modules/unictype/property-decimal-digit-tests: Likewise.
23673         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
23674         * modules/unictype/property-deprecated-tests: Likewise.
23675         * modules/unictype/property-diacritic-tests: Likewise.
23676         * modules/unictype/property-extender-tests: Likewise.
23677         * modules/unictype/property-format-control-tests: Likewise.
23678         * modules/unictype/property-grapheme-base-tests: Likewise.
23679         * modules/unictype/property-grapheme-extend-tests: Likewise.
23680         * modules/unictype/property-grapheme-link-tests: Likewise.
23681         * modules/unictype/property-hex-digit-tests: Likewise.
23682         * modules/unictype/property-hyphen-tests: Likewise.
23683         * modules/unictype/property-id-continue-tests: Likewise.
23684         * modules/unictype/property-id-start-tests: Likewise.
23685         * modules/unictype/property-ideographic-tests: Likewise.
23686         * modules/unictype/property-ids-binary-operator-tests: Likewise.
23687         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
23688         * modules/unictype/property-ignorable-control-tests: Likewise.
23689         * modules/unictype/property-iso-control-tests: Likewise.
23690         * modules/unictype/property-join-control-tests: Likewise.
23691         * modules/unictype/property-left-of-pair-tests: Likewise.
23692         * modules/unictype/property-line-separator-tests: Likewise.
23693         * modules/unictype/property-logical-order-exception-tests: Likewise.
23694         * modules/unictype/property-lowercase-tests: Likewise.
23695         * modules/unictype/property-math-tests: Likewise.
23696         * modules/unictype/property-non-break-tests: Likewise.
23697         * modules/unictype/property-not-a-character-tests: Likewise.
23698         * modules/unictype/property-numeric-tests: Likewise.
23699         * modules/unictype/property-other-alphabetic-tests: Likewise.
23700         * modules/unictype/property-other-default-ignorable-code-point-tests:
23701         Likewise.
23702         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
23703         * modules/unictype/property-other-id-continue-tests: Likewise.
23704         * modules/unictype/property-other-id-start-tests: Likewise.
23705         * modules/unictype/property-other-lowercase-tests: Likewise.
23706         * modules/unictype/property-other-math-tests: Likewise.
23707         * modules/unictype/property-other-uppercase-tests: Likewise.
23708         * modules/unictype/property-paired-punctuation-tests: Likewise.
23709         * modules/unictype/property-paragraph-separator-tests: Likewise.
23710         * modules/unictype/property-pattern-syntax-tests: Likewise.
23711         * modules/unictype/property-pattern-white-space-tests: Likewise.
23712         * modules/unictype/property-private-use-tests: Likewise.
23713         * modules/unictype/property-punctuation-tests: Likewise.
23714         * modules/unictype/property-quotation-mark-tests: Likewise.
23715         * modules/unictype/property-radical-tests: Likewise.
23716         * modules/unictype/property-sentence-terminal-tests: Likewise.
23717         * modules/unictype/property-soft-dotted-tests: Likewise.
23718         * modules/unictype/property-space-tests: Likewise.
23719         * modules/unictype/property-terminal-punctuation-tests: Likewise.
23720         * modules/unictype/property-test-tests: Likewise.
23721         * modules/unictype/property-titlecase-tests: Likewise.
23722         * modules/unictype/property-unassigned-code-value-tests: Likewise.
23723         * modules/unictype/property-unified-ideograph-tests: Likewise.
23724         * modules/unictype/property-uppercase-tests: Likewise.
23725         * modules/unictype/property-variation-selector-tests: Likewise.
23726         * modules/unictype/property-white-space-tests: Likewise.
23727         * modules/unictype/property-xid-continue-tests: Likewise.
23728         * modules/unictype/property-xid-start-tests: Likewise.
23729         * modules/unictype/property-zero-width-tests: Likewise.
23730         * modules/unictype/scripts-tests: Likewise.
23731         * modules/unictype/syntax-c-ident-tests: Likewise.
23732         * modules/unictype/syntax-c-whitespace-tests: Likewise.
23733         * modules/unictype/syntax-java-ident-tests: Likewise.
23734         * modules/unictype/syntax-java-whitespace-tests: Likewise.
23735         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
23736         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
23737         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
23738         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
23739         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
23740         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
23741         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
23742         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
23743         * modules/uniname/uniname-tests: Likewise.
23744         * modules/uninorm/canonical-decomposition-tests: Likewise.
23745         * modules/uninorm/compat-decomposition-tests: Likewise.
23746         * modules/uninorm/composition-tests: Likewise.
23747         * modules/uninorm/decomposing-form-tests: Likewise.
23748         * modules/uninorm/decomposition-tests: Likewise.
23749         * modules/uninorm/filter-tests: Likewise.
23750         * modules/uninorm/nfc-tests: Likewise.
23751         * modules/uninorm/nfd-tests: Likewise.
23752         * modules/uninorm/nfkc-tests: Likewise.
23753         * modules/uninorm/nfkd-tests: Likewise.
23754         * modules/uninorm/u8-normcmp-tests: Likewise.
23755         * modules/uninorm/u8-normcoll-tests: Likewise.
23756         * modules/uninorm/u16-normcmp-tests: Likewise.
23757         * modules/uninorm/u16-normcoll-tests: Likewise.
23758         * modules/uninorm/u32-normcmp-tests: Likewise.
23759         * modules/uninorm/u32-normcoll-tests: Likewise.
23760         * modules/unistdio/u8-asnprintf-tests: Likewise.
23761         * modules/unistdio/u8-vasnprintf-tests: Likewise.
23762         * modules/unistdio/u8-vasprintf-tests: Likewise.
23763         * modules/unistdio/u8-vsnprintf-tests: Likewise.
23764         * modules/unistdio/u8-vsprintf-tests: Likewise.
23765         * modules/unistdio/u16-asnprintf-tests: Likewise.
23766         * modules/unistdio/u16-vasnprintf-tests: Likewise.
23767         * modules/unistdio/u16-vasprintf-tests: Likewise.
23768         * modules/unistdio/u16-vsnprintf-tests: Likewise.
23769         * modules/unistdio/u16-vsprintf-tests: Likewise.
23770         * modules/unistdio/u32-asnprintf-tests: Likewise.
23771         * modules/unistdio/u32-vasnprintf-tests: Likewise.
23772         * modules/unistdio/u32-vasprintf-tests: Likewise.
23773         * modules/unistdio/u32-vsnprintf-tests: Likewise.
23774         * modules/unistdio/u32-vsprintf-tests: Likewise.
23775         * modules/unistdio/ulc-asnprintf-tests: Likewise.
23776         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
23777         * modules/unistdio/ulc-vasprintf-tests: Likewise.
23778         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
23779         * modules/unistdio/ulc-vsprintf-tests: Likewise.
23780         * modules/unistr/u8-check-tests: Likewise.
23781         * modules/unistr/u8-chr-tests: Likewise.
23782         * modules/unistr/u8-cmp-tests: Likewise.
23783         * modules/unistr/u8-cmp2-tests: Likewise.
23784         * modules/unistr/u8-cpy-alloc-tests: Likewise.
23785         * modules/unistr/u8-cpy-tests: Likewise.
23786         * modules/unistr/u8-mblen-tests: Likewise.
23787         * modules/unistr/u8-mbsnlen-tests: Likewise.
23788         * modules/unistr/u8-mbtouc-tests: Likewise.
23789         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
23790         * modules/unistr/u8-mbtoucr-tests: Likewise.
23791         * modules/unistr/u8-move-tests: Likewise.
23792         * modules/unistr/u8-next-tests: Likewise.
23793         * modules/unistr/u8-prev-tests: Likewise.
23794         * modules/unistr/u8-set-tests: Likewise.
23795         * modules/unistr/u8-stpcpy-tests: Likewise.
23796         * modules/unistr/u8-stpncpy-tests: Likewise.
23797         * modules/unistr/u8-strcat-tests: Likewise.
23798         * modules/unistr/u8-strcmp-tests: Likewise.
23799         * modules/unistr/u8-strcoll-tests: Likewise.
23800         * modules/unistr/u8-strcpy-tests: Likewise.
23801         * modules/unistr/u8-strdup-tests: Likewise.
23802         * modules/unistr/u8-strlen-tests: Likewise.
23803         * modules/unistr/u8-strmblen-tests: Likewise.
23804         * modules/unistr/u8-strmbtouc-tests: Likewise.
23805         * modules/unistr/u8-strncat-tests: Likewise.
23806         * modules/unistr/u8-strncmp-tests: Likewise.
23807         * modules/unistr/u8-strncpy-tests: Likewise.
23808         * modules/unistr/u8-strnlen-tests: Likewise.
23809         * modules/unistr/u8-to-u16-tests: Likewise.
23810         * modules/unistr/u8-to-u32-tests: Likewise.
23811         * modules/unistr/u8-uctomb-tests: Likewise.
23812         * modules/unistr/u16-check-tests: Likewise.
23813         * modules/unistr/u16-chr-tests: Likewise.
23814         * modules/unistr/u16-cmp-tests: Likewise.
23815         * modules/unistr/u16-cmp2-tests: Likewise.
23816         * modules/unistr/u16-cpy-alloc-tests: Likewise.
23817         * modules/unistr/u16-cpy-tests: Likewise.
23818         * modules/unistr/u16-mblen-tests: Likewise.
23819         * modules/unistr/u16-mbsnlen-tests: Likewise.
23820         * modules/unistr/u16-mbtouc-tests: Likewise.
23821         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
23822         * modules/unistr/u16-mbtoucr-tests: Likewise.
23823         * modules/unistr/u16-move-tests: Likewise.
23824         * modules/unistr/u16-next-tests: Likewise.
23825         * modules/unistr/u16-prev-tests: Likewise.
23826         * modules/unistr/u16-set-tests: Likewise.
23827         * modules/unistr/u16-stpcpy-tests: Likewise.
23828         * modules/unistr/u16-stpncpy-tests: Likewise.
23829         * modules/unistr/u16-strcat-tests: Likewise.
23830         * modules/unistr/u16-strcmp-tests: Likewise.
23831         * modules/unistr/u16-strcoll-tests: Likewise.
23832         * modules/unistr/u16-strcpy-tests: Likewise.
23833         * modules/unistr/u16-strdup-tests: Likewise.
23834         * modules/unistr/u16-strlen-tests: Likewise.
23835         * modules/unistr/u16-strmblen-tests: Likewise.
23836         * modules/unistr/u16-strmbtouc-tests: Likewise.
23837         * modules/unistr/u16-strncat-tests: Likewise.
23838         * modules/unistr/u16-strncmp-tests: Likewise.
23839         * modules/unistr/u16-strncpy-tests: Likewise.
23840         * modules/unistr/u16-strnlen-tests: Likewise.
23841         * modules/unistr/u16-to-u32-tests: Likewise.
23842         * modules/unistr/u16-to-u8-tests: Likewise.
23843         * modules/unistr/u16-uctomb-tests: Likewise.
23844         * modules/unistr/u32-check-tests: Likewise.
23845         * modules/unistr/u32-chr-tests: Likewise.
23846         * modules/unistr/u32-cmp-tests: Likewise.
23847         * modules/unistr/u32-cmp2-tests: Likewise.
23848         * modules/unistr/u32-cpy-alloc-tests: Likewise.
23849         * modules/unistr/u32-cpy-tests: Likewise.
23850         * modules/unistr/u32-mblen-tests: Likewise.
23851         * modules/unistr/u32-mbsnlen-tests: Likewise.
23852         * modules/unistr/u32-mbtouc-tests: Likewise.
23853         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
23854         * modules/unistr/u32-mbtoucr-tests: Likewise.
23855         * modules/unistr/u32-move-tests: Likewise.
23856         * modules/unistr/u32-next-tests: Likewise.
23857         * modules/unistr/u32-prev-tests: Likewise.
23858         * modules/unistr/u32-set-tests: Likewise.
23859         * modules/unistr/u32-stpcpy-tests: Likewise.
23860         * modules/unistr/u32-stpncpy-tests: Likewise.
23861         * modules/unistr/u32-strcat-tests: Likewise.
23862         * modules/unistr/u32-strcmp-tests: Likewise.
23863         * modules/unistr/u32-strcoll-tests: Likewise.
23864         * modules/unistr/u32-strcpy-tests: Likewise.
23865         * modules/unistr/u32-strdup-tests: Likewise.
23866         * modules/unistr/u32-strlen-tests: Likewise.
23867         * modules/unistr/u32-strmblen-tests: Likewise.
23868         * modules/unistr/u32-strmbtouc-tests: Likewise.
23869         * modules/unistr/u32-strncat-tests: Likewise.
23870         * modules/unistr/u32-strncmp-tests: Likewise.
23871         * modules/unistr/u32-strncpy-tests: Likewise.
23872         * modules/unistr/u32-strnlen-tests: Likewise.
23873         * modules/unistr/u32-to-u16-tests: Likewise.
23874         * modules/unistr/u32-to-u8-tests: Likewise.
23875         * modules/unistr/u32-uctomb-tests: Likewise.
23876         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
23877         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
23878         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
23879         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
23880         * modules/uniwidth/u8-strwidth-tests: Likewise.
23881         * modules/uniwidth/u8-width-tests: Likewise.
23882         * modules/uniwidth/u16-strwidth-tests: Likewise.
23883         * modules/uniwidth/u16-width-tests: Likewise.
23884         * modules/uniwidth/u32-strwidth-tests: Likewise.
23885         * modules/uniwidth/u32-width-tests: Likewise.
23886         * modules/uniwidth/width-tests: Likewise.
23887
23888 2010-05-18  Richard Jones  <rjones@redhat.com>
23889
23890         doc: users.txt: list hivex
23891         * users.txt: Add hivex.
23892
23893 2010-05-18  Richard Jones  <rjones@redhat.com>
23894
23895         doc: users.txt: list febootstrap
23896         * users.txt: Add febootstrap.
23897
23898 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
23899
23900         bootstrap: fix an error when gnulib is not used as a git submodule
23901         * build-aux/bootstrap (gnulib_path): If its length is zero then
23902         assign "gnulib" to it.
23903         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
23904
23905 2010-05-16  Bruno Haible  <bruno@clisp.org>
23906
23907         Avoid autoconf warnings about AM_ICONV.
23908         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
23909         2.64.
23910
23911 2010-05-16  Bruno Haible  <bruno@clisp.org>
23912
23913         absolute-header: Make the macro usable in more situations.
23914         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
23915         from gl_ABSOLUTE_HEADER.
23916         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
23917
23918 2010-05-16  James Youngman  <jay@gnu.org>
23919
23920         doc: update users.txt
23921         * users.txt: Add CSSC.
23922
23923 2010-05-16  Jim Meyering  <meyering@redhat.com>
23924
23925         init.sh: fix an error in the previous change; add more comments
23926         * tests/init.sh: Compare exit code in loop against 9, not 2.
23927         Patch by Bruno Haible.
23928         Make the two tests more similar by adding an empty "then" clause.
23929         Add comments.
23930
23931         init.sh: avoid unnecessary shell re-exec
23932         * tests/init.sh: Improve the re-exec-required check to first test the
23933         current shell.  If it passes the test, do not search for a shell that
23934         does pass, and do not re-exec.  This test is particularly contorted to
23935         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
23936         of $(...) evokes a syntax error and causes immediate shell exit with
23937         status 2.  Bruno Haible reported that the re-exec made it impossible
23938         to single-step through any init.sh-using script.
23939
23940 2010-05-16  Bruno Haible  <bruno@clisp.org>
23941
23942         Fix collision between gnulib's and libintl's printf replacements.
23943         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
23944         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
23945         (printf): When using GNU C, map the __printf__ function to rpl_printf
23946         via __asm__. When not using GNU C, define rpl_printf instead of
23947         __printf__.
23948         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
23949         commit.
23950         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
23951         commit.
23952         * m4/asm-underscore.m4: New file.
23953         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
23954         * modules/stdio (Files): Add m4/asm-underscore.m4.
23955         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
23956         Reported by Ben Pfaff.
23957
23958 2010-05-16  Bruno Haible  <bruno@clisp.org>
23959
23960         verify: Avoid skipping the test on openSUSE 11.0.
23961         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
23962
23963 2010-05-13  Bruno Haible  <bruno@clisp.org>
23964
23965         Avoid useless warnings from G++.
23966         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
23967         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
23968         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23969
23970 2010-05-11  Jim Meyering  <meyering@redhat.com>
23971
23972         maint.mk: tweak preceding change
23973         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
23974         regexps tighter by anchoring at EOL, and make the new group "shy"
23975         for slightly decreased overhead.
23976
23977 2010-05-11  Eric Blake  <eblake@redhat.com>
23978
23979         maint.mk: gnulib doesn't guarantee NSIG
23980         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
23981
23982 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23983
23984         test-pwrite.c: Remove unused variable declaration.
23985         * tests/test-pwrite.c (main): Remove read_buf declaration.
23986
23987         Remove useless test-pwrite.sh file.
23988         * tests/test-pwrite.sh: Delete file.
23989         * modules/pwrite-tests: Remove references.
23990         Reported by Bruno Haible.
23991
23992 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23993
23994         init.sh: fix a typo
23995         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
23996
23997 2010-05-10  Jim Meyering  <meyering@redhat.com>
23998
23999         maint.mk: avoid using a temporary file in the always-defined-macros check
24000         * top/maint.mk (.re-defmac): Remove rule.
24001         (gl_trap_): Remove definition.
24002         (sc_prohibit_always-defined_macros): Rewrite not to create and
24003         depend on a temporary file.  Instead, depend on GNU grep's ability
24004         to read a list of regular expressions from stdin when given "-f -".
24005
24006 2010-05-09  Bruno Haible  <bruno@clisp.org>
24007
24008         Update to GNU gettext 0.18, part 1.
24009         * m4/gettext.m4: Update to GNU gettext 0.18.
24010         * m4/intl.m4: Likewise.
24011         * m4/po.m4: Likewise.
24012         * modules/gettext (Files): Add m4/fcntl-o.m4.
24013         (configure.ac): Require gettext infrastructure from version 0.18.
24014
24015 2010-05-09  Jim Meyering  <meyering@redhat.com>
24016
24017         init.sh: enable MALLOC_PERTURB_
24018         * tests/init.sh: Enable glibc's malloc-perturbing option.
24019
24020         maint.mk: improve sc_cross_check_PATH_usage_in_tests
24021         With my recent change in init.sh from the two-line form:
24022             -#   : ${srcdir=.}
24023             -#   . "$srcdir/init.sh"; path_prepend_ .
24024             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
24025         I noticed that using the one-line form would cause this test
24026         to fail with a false-positive, or to stop working altogether,
24027         depending on whether help-version changed or all the tests did.
24028         * top/maint.mk (_hv_regex): Remove this definition.
24029         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
24030         (_hv_regex_strong): Use a stronger regex to check for conformance.
24031         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
24032         Give a separate diagnostic for lack of conforming use.
24033
24034         maint.mk: prohibit definition of symbols defined by gnulib
24035         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
24036         definition of symbols defined by gnulib.
24037
24038 2010-05-09  Bruno Haible  <bruno@clisp.org>
24039
24040         acl: Avoid test failure on Cygwin-hosted mingw.
24041         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
24042
24043 2010-05-09  Bruno Haible  <bruno@clisp.org>
24044
24045         error: Use system's fcntl function.
24046         * lib/error.c (fcntl): Undefine.
24047
24048 2010-05-09  Jim Meyering  <meyering@redhat.com>
24049
24050         verify: adjust formatting to be more consistent
24051         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
24052         argument-list '('s, and after one comma.
24053
24054 2010-05-09  Bruno Haible  <bruno@clisp.org>
24055
24056         error: More reliable output on mingw.
24057         * lib/error.c: Include <windows.h>.
24058         (is_open): New function.
24059         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
24060         defined.
24061
24062 2010-05-09  Bruno Haible  <bruno@clisp.org>
24063
24064         vasnprintf: Fix syntax errors in libintl build on mingw.
24065         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
24066         pad_ourselves and prec_ourselves after use.
24067
24068 2010-05-08  Bruno Haible  <bruno@clisp.org>
24069
24070         * lib/config.charset: Update comments for Cygwin 1.7.
24071         * lib/localcharset.c: Likewise.
24072
24073 2010-05-07  Jim Meyering  <meyering@redhat.com>
24074
24075         init.sh: improve comments
24076         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
24077         . "${srcdir=.}/init.sh"; path_prepend_ .
24078         Add a note about path_prepend_ and the alternative of using
24079         TESTS_ENVIRONMENT.
24080
24081 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
24082
24083         exclude: Unescape hashed patterns in wildcard mode.
24084         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
24085         to the hash list.
24086         * tests/test-exclude8.sh: New test case.
24087         * modules/exclude-tests: Add new test.
24088
24089 2010-05-05  Eric Blake  <eblake@redhat.com>
24090
24091         verify: automate tests
24092         * modules/verify-tests: New module.
24093         * tests/test-verify.sh: New file.
24094         * tests/test-verify.c: Guard each negative test with a unique id.
24095         Also avoid warning about unused left hand of comma expressions.
24096
24097 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
24098
24099         Further improvements to verify.h, suggested by Eric Blake.
24100         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
24101         the GL_* versions, to avoid collision with OpenGL.
24102         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
24103         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
24104         than testing merely whether it's defined.
24105
24106         Modify verify.h to pacify gcc -Wredundant_decls.
24107         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
24108         These use the prefix "GL_" since they're likely to be useful elsewhere.
24109         We may need to break them out into a different .h file.
24110         (__COUNTER__): Define to 0 if the compiler doesn't support it.
24111         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
24112         of verify_function__.
24113
24114 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
24115
24116         Tests for module pwrite.
24117         * modules/pwrite-tests: New file.
24118         * tests/test-pwrite.sh: New file.
24119         * tests/test-pwrite.c: New file.
24120
24121         New module pwrite.
24122         * lib/unistd.in.h (pwrite): New declaration.
24123         * lib/pwrite.c: New file, from glibc with modifications.
24124         * m4/pwrite.m4: New file.
24125         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
24126         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
24127         REPLACE_PWRITE.
24128         * modules/pwrite: New file.
24129         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
24130         REPLACE_PWRITE.
24131         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
24132         * doc/posix-functions/pwrite.texi: Mention the new module.
24133
24134 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
24135
24136         pread: Update documentation.
24137         * doc/posix-functions/pread.texi: Mention the 'pread' module.
24138
24139 2010-05-04  Eric Blake  <eblake@redhat.com>
24140
24141         docs: update cygwin progress
24142         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
24143         this bug.
24144         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
24145         Added in cygwin 1.7.2.
24146         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
24147         Likewise.
24148         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
24149         Likewise.
24150         * doc/glibc-functions/dup3.texi (dup3): Likewise.
24151         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
24152         * doc/glibc-functions/accept4.texi (accept4): Likewise.
24153         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
24154         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
24155         Mention nproc module.
24156         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
24157         bug in cygwin 1.7.5 addition.
24158         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
24159         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
24160         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
24161         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
24162         1.7.5.
24163         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
24164         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
24165         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
24166         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
24167         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
24168         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
24169         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
24170         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
24171         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
24172         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
24173         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
24174         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
24175         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
24176         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
24177         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
24178         Likewise.
24179         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
24180         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
24181         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
24182         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
24183         Likewise.
24184         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
24185         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
24186         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
24187         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
24188         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
24189         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
24190         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
24191         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
24192         Likewise.
24193         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
24194         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
24195         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
24196         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
24197         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
24198         Likewise.
24199         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
24200         Likewise.
24201         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
24202         Likewise.
24203         * doc/glibc-functions/xdrrec_endofrecord.texi
24204         (xdrrec_endofrecord): Likewise.
24205         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
24206         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
24207         Likewise.
24208         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
24209         Likewise.
24210
24211 2010-05-04  Jim Meyering  <meyering@redhat.com>
24212
24213         gendocs.sh: make its "-s FILE" option more useful
24214         * build-aux/gendocs.sh: When honoring the -s FILE option, update
24215         $PACKAGE to reflect the probably-different basename of "FILE".
24216
24217 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
24218
24219         bootstrap: don't ignore download_po_files failure
24220         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
24221         failure.
24222
24223 2010-05-03  Jim Meyering  <meyering@redhat.com>
24224
24225         maint.mk: allow to pass options to gendocs.sh
24226         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
24227         (gendocs_options_): New overridable variable.
24228
24229         gnu-web-doc-update: don't ignore configure or build failure
24230         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
24231
24232         announce-gen: backslash-escape '@'s in --help output
24233         * build-aux/announce-gen: Fix syntax errors.
24234
24235         maint.mk, announce-gen: allow project-specific announcement mail headers
24236         * top/maint.mk (translation_project_): Define default.
24237         (announcement_Cc_, announcement_mail_headers_): Likewise.
24238         (announcement): Invoke announce-gen with new --mail-headers option.
24239         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
24240
24241         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
24242         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
24243         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
24244         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
24245         line in the "err2" output file when running "make check" in verbose
24246         mode (i.e., with set -x enabled).
24247
24248 2010-05-03  Bruno Haible  <bruno@clisp.org>
24249
24250         wctob: Fix for weird platforms.
24251         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
24252         argument value.
24253
24254 2010-05-03  Jim Meyering  <meyering@redhat.com>
24255
24256         maint.mk: prohibit unwarranted use of <strings.h>
24257         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
24258         strings.h in a file that does not also use strcasecmp, strncasecmp,
24259         ffs or ffsll.
24260
24261         maint.mk: remove obsolete comments
24262         * top/maint.mk: Remove stale, commented-out rules.
24263
24264 2010-05-02  Bruno Haible  <bruno@clisp.org>
24265
24266         wcwidth: Declare also when it's aliased.
24267         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
24268         macro.
24269
24270 2010-05-02  Bruno Haible  <bruno@clisp.org>
24271
24272         Fix regression from 2010-04-25.
24273         * gnulib-tool (func_modules_transitive_closure): Check the status of
24274         all modules, not only of the tests that are of the form foo-tests where
24275         foo is a module.
24276
24277 2010-05-02  Bruno Haible  <bruno@clisp.org>
24278
24279         wctob: Work around nasty Cygwin 1.7.2 bug.
24280         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
24281         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
24282
24283 2010-05-01  Bruno Haible  <bruno@clisp.org>
24284
24285         fpurge: Sharper test.
24286         * tests/test-fpurge.c (main): Add one more ftell check.
24287         * modules/fpurge-tests (Depends-on): Add ftell.
24288         Suggested by Eric Blake.
24289
24290 2010-05-01  Bruno Haible  <bruno@clisp.org>
24291
24292         ftello: Another test.
24293         * tests/test-ftello3.c: New file.
24294         * modules/ftello-tests (Files): Add it.
24295         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
24296         MOSTLYCLEANFILES.
24297
24298         ftell: Another test.
24299         * tests/test-ftell3.c: New file.
24300         * modules/ftell-tests (Files): Add it.
24301         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
24302         MOSTLYCLEANFILES.
24303
24304 2010-05-01  Bruno Haible  <bruno@clisp.org>
24305
24306         ftell, ftello: Work around Solaris bug.
24307         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
24308         * lib/ftello.c: Include stdio-impl.h.
24309         (ftello): On Solaris, when _IOWRT is set, compute the result without
24310         looking at _IOREAD.
24311         * modules/ftello (Files): Add lib/stdio-impl.h.
24312         * doc/posix-functions/ftell.texi: Mention Solaris bug.
24313         * doc/posix-functions/ftello.texi: Likewise.
24314         Reported by Eric Blake.
24315
24316 2010-05-01  Bruno Haible  <bruno@clisp.org>
24317
24318         freading: Adapt to special meaning of _IOREAD flag on Solaris.
24319         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
24320         the _IOWRT flag is also set.
24321
24322 2010-05-01  Bruno Haible  <bruno@clisp.org>
24323
24324         Fix doc about a HP-UX stdio bug.
24325         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
24326         * doc/posix-functions/ftello.texi: Likewise.
24327
24328 2010-05-01  Bruno Haible  <bruno@clisp.org>
24329
24330         lseek test: Fix failure on Solaris.
24331         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
24332         output.
24333
24334 2010-04-30  Jim Meyering  <meyering@redhat.com>
24335
24336         bootstrap: don't ignore failure to generate po*/Makevars
24337         * build-aux/bootstrap (with_gettext): Don't ignore failure
24338         to create po/Makevars or runtime-po/Makevars.
24339
24340 2010-04-29  Eric Blake  <eblake@redhat.com>
24341
24342         headers: relax license to LGPLv2+
24343         * modules/fcntl-h (License): Relax license.
24344         * modules/getopt-posix (License): Likewise.
24345         * modules/locale (License): Likewise.
24346         * modules/math (License): Likewise.
24347         * modules/pty (License): Likewise.
24348         * modules/sched (License): Likewise.
24349         * modules/search (License): Likewise.
24350         * modules/spawn (License): Likewise.
24351         * modules/stdarg (License): Likewise.
24352         * modules/sysexits (License): Likewise.
24353
24354 2010-04-29  Jim Meyering  <meyering@redhat.com>
24355
24356         inttypes: relax license to LGPLv2+
24357         * modules/inttypes (License): Relax license.
24358
24359 2010-04-29  Simon Josefsson  <simon@josefsson.org>
24360
24361         * top/maint.mk (indent): Run twice to produce idempotent results.
24362
24363 2010-04-28  Bruno Haible  <bruno@clisp.org>
24364
24365         getdate: Generate getdate.c in the source directory.
24366         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
24367         MOSTLYCLEANFILES.
24368         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
24369
24370 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
24371
24372         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
24373         is not declared as a const *; avoid warnings in that case.
24374
24375 2010-04-28  Eric Blake  <eblake@redhat.com>
24376
24377         canonicalize-lgpl: avoid compiler warning
24378         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
24379         declaration' / 'extraneous semicolon' warning with some compilers.
24380         Reported by Andreas Gruenbacher.
24381
24382 2010-04-28  Jim Meyering  <meyering@redhat.com>
24383
24384         init.sh: ensure a more reliable exit status when exiting via trap
24385         * tests/init.sh (setup_): Don't rely on $? in signal handler.
24386         Inspired by patches from Dmitry V. Levin.
24387         Also trap on signal 3 (SIGQUIT).
24388
24389 2010-04-27  Bruno Haible  <bruno@clisp.org>
24390
24391         Update doc about utimes().
24392         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
24393         'utimens' module.
24394         Reported by Andreas Gruenbacher <agruen@suse.de>.
24395
24396 2010-04-27  Eric Blake  <eblake@redhat.com>
24397
24398         full-read, full-write: relax license
24399         * modules/full-read (License): Drop to LGPLv2+.
24400         * modules/full-write (License): Likewise.
24401         * modules/safe-read (License): Likewise.
24402         * modules/safe-write (License): Likewise.
24403
24404         pthread: mention library for linking
24405         * modules/pthread (Link): Mention $(LIB_PTHREAD).
24406
24407 2010-04-27  Jim Meyering  <meyering@redhat.com>
24408
24409         maint.mk: fix a bug introduced in last change
24410         * top/maint.mk (gl_assured_headers_): Now that all names are on
24411         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
24412         is not anchored to end of word, it should be adequate.
24413
24414         maint.mk: avoid side-effect in latest syntax-check
24415         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
24416         to run commands via $(shell...), and hence to incur cost only when
24417         the new rule is actually run.
24418
24419         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
24420         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
24421         and use that to create a regexp used to detect all #if HAVE_..._H uses.
24422         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
24423         (gl_assured_headers_, az_, AZ_): Define.
24424         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
24425
24426 2010-04-26  Jim Meyering  <jim@meyering.net>
24427             Bruno Haible  <bruno@clisp.org>
24428
24429         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
24430         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
24431         Prompted by an exchange with Gilles Espinasse.
24432
24433 2010-04-26  Jim Meyering  <meyering@redhat.com>
24434
24435         git-version-gen: aesthetic tweak
24436         * build-aux/git-version-gen: Use "$nl" rather than a literal,
24437         so that the command remains on a single line.
24438
24439 2010-04-26  Eric Blake  <eblake@redhat.com>
24440
24441         git-version-gen: allow use on EBCDIC hosts
24442         * build-aux/git-version-gen (dirty): Use literal rather than tying
24443         ourselves to ascii.
24444         Reported by Steve Goetze.
24445
24446 2010-04-25  Bruno Haible  <bruno@clisp.org>
24447
24448         netdb: Add support for GNULIB_POSIXCHECK.
24449         * lib/netdb.in.h: Include warn-on-use.h.
24450         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
24451         functions are used when GNULIB_POSIXCHECK is defined and the
24452         getaddrinfo module is not in use.
24453         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
24454         freeaddrinfo, gai_strerror, getnameinfo are declared.
24455         * modules/netdb (Depends-on): Add warn-on-use.
24456         (Makefile.am): Include warn-on-use.h in netdb.h.
24457
24458 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
24459
24460         build: avoid "make check" failure without .git/ directory
24461         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
24462         there is no .git/ directory.
24463
24464 2010-04-25  Bruno Haible  <bruno@clisp.org>
24465
24466         ptsname: Fix misuse of ttyname_r.
24467         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
24468         of errno.
24469
24470 2010-04-25  Bruno Haible  <bruno@clisp.org>
24471
24472         ttyname_r: Make it work on Solaris 10.
24473         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
24474         if the system function has the POSIX declaration. Test whether the
24475         function fails if the buffer is less than 128 bytes large.
24476         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
24477         system's ttyname_r function. Provide a reasonably large buffer.
24478         * modules/ttyname_r (Depends-on): Add extensions.
24479         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
24480
24481 2010-04-25  Bruno Haible  <bruno@clisp.org>
24482
24483         Use the 'extensions' module for some more functions on Solaris.
24484         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
24485         module.
24486         * doc/posix-functions/ctime_r.texi: Likewise.
24487         * doc/posix-functions/getgrgid_r.texi: Likewise.
24488         * doc/posix-functions/getgrnam_r.texi: Likewise.
24489         * doc/posix-functions/getpwnam_r.texi: Likewise.
24490         * doc/posix-functions/getpwuid_r.texi: Likewise.
24491         * doc/posix-functions/readdir_r.texi: Likewise.
24492         * doc/posix-functions/sigwait.texi: Likewise.
24493         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
24494         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
24495
24496 2010-04-25  Bruno Haible  <bruno@clisp.org>
24497
24498         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
24499         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
24500         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
24501         * lib/ttyname_r.c: Include <limits.h>.
24502         (ttyname_r): Define using the system's ttyname_r function, if it exists
24503         and not on Solaris.
24504         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
24505         set.
24506         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
24507         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
24508         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
24509         Reported by Simon Josefsson.
24510
24511 2010-04-25  Bruno Haible  <bruno@clisp.org>
24512
24513         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
24514         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
24515         * doc/posix-functions/ctime_r.texi: Likewise.
24516         * doc/posix-functions/getgrgid_r.texi: Likewise.
24517         * doc/posix-functions/getgrnam_r.texi: Likewise.
24518         * doc/posix-functions/getlogin_r.texi: Likewise.
24519         * doc/posix-functions/getpwnam_r.texi: Likewise.
24520         * doc/posix-functions/getpwuid_r.texi: Likewise.
24521         * doc/posix-functions/readdir_r.texi: Likewise.
24522         * doc/posix-functions/sigwait.texi: Likewise.
24523         * doc/posix-functions/ttyname_r.texi: Likewise.
24524         Reported by Simon Josefsson.
24525
24526 2010-04-25  Bruno Haible  <bruno@clisp.org>
24527
24528         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
24529         * gnulib-tool (func_usage): Document that --with-*-tests options apply
24530         also to --create-testdir.
24531         (func_acceptable): Don't consider the status of *-tests modules here.
24532         (func_modules_transitive_closure): Consider it here, before including a
24533         test module.
24534         (func_import, func_create_testdir): Set inc_all_direct_tests,
24535         inc_all_indirect_tests.
24536         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
24537         --create-testdir and --create-megatestdir.
24538
24539 2010-04-25  Bruno Haible  <bruno@clisp.org>
24540
24541         gnulib-tool: Add --without-*-tests options.
24542         * gnulib-tool (func_usage): Document the --without-*-tests options.
24543         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
24544         excl_unportable_tests): New variables.
24545         Fail if they are specified with --import or --update.
24546         (func_acceptable): Respect the excl_*_tests variables.
24547         (func_import): Set the excl_*_tests variables to empty.
24548
24549 2010-04-25  Simon Josefsson  <simon@josefsson.org>
24550             Bruno Haible  <bruno@clisp.org>
24551
24552         Work around a MacOS X 10.4 bug with openpty.
24553         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
24554         * tests/test-openpty.c (main): Close the master side explicitly.
24555
24556 2010-04-25  Bruno Haible  <bruno@clisp.org>
24557
24558         strnlen: Fix a C++ test error on MacOS X and Solaris.
24559         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
24560         the function is not declared.
24561         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
24562         Simon Josefsson.
24563
24564 2010-04-24  Bruno Haible  <bruno@clisp.org>
24565
24566         Avoid a gcc warning.
24567         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
24568         of correct type for %08lx directive.
24569         Reported by Eric Blake.
24570
24571 2010-04-24  Bruno Haible  <bruno@clisp.org>
24572
24573         vasnprintf: Correct errno value in case of out-of-memory.
24574         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
24575         or sprintf. Use the errno value from SNPRINTF or sprintf.
24576         Reported by Ian Beckwith <ianb@erislabs.net>.
24577
24578 2010-04-24  Bruno Haible  <bruno@clisp.org>
24579
24580         ansi-c++-opt: Find correct compiler when cross-compiling.
24581         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
24582         AC_CHECK_PROGS.
24583         Reported by Simon Josefsson.
24584
24585 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
24586
24587         vc-list-files: Add support for subversion
24588         * build-aux/vc-list-files: Use "svn list" to generate the list of
24589         files controlled by subversion.
24590
24591 2010-04-23  Jim Meyering  <meyering@redhat.com>
24592
24593         vc-list-files tests: convert to use init.sh
24594         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
24595         path_prepend_.
24596         Use Exit, not exit.
24597         Use skip_ rather than open coding it.
24598         Remove trap set-up and compare definitions.
24599         * tests/test-vc-list-files-git.sh: Likewise.
24600         * modules/vc-list-files-tests (Files): Add tests/init.sh.
24601
24602 2010-04-22  Simon Josefsson  <simon@josefsson.org>
24603
24604         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
24605         backup files.
24606
24607 2010-04-21  Simon Josefsson  <simon@josefsson.org>
24608
24609         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
24610
24611 2010-04-20  Eric Blake  <eblake@redhat.com>
24612
24613         tests: be robust to ignored SIGPIPE
24614         * tests/test-select-in.sh: Consume all output.
24615         * tests/test-lseek.sh: Check correct exit status, while avoiding
24616         EPIPE.
24617
24618 2010-04-20  Simon Josefsson  <simon@josefsson.org>
24619             Bruno Haible  <bruno@clisp.org>
24620
24621         visibility: Don't use -fvisibility if it leads to a warning.
24622         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
24623         yes, don't pretend that visibility works if it leads to a warning.
24624         Reported by Mike Gran <spk121@yahoo.com>.
24625
24626 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
24627
24628         * build-aux/bootstrap: Use "git -h" for testing for supported options
24629         instead of "git --help".  The short-form option only shows a summary,
24630         and doesn't layout the full man page.  Grep for the full option name
24631         in the summary, too.
24632
24633 2010-04-19  Bruno Haible  <bruno@clisp.org>
24634
24635         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
24636         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
24637         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
24638         mention of RELOCATABLE_STRIP.
24639         Reported by Sylvain Beucler <beuc@beuc.net>.
24640
24641 2010-04-19  Bruno Haible  <bruno@clisp.org>
24642
24643         * lib/diffseq.h: Fix typo in comment.
24644         Reported by Eric Blake.
24645
24646 2010-04-19  Bruno Haible  <bruno@clisp.org>
24647
24648         ioctl: Move autoconf macro to a .m4 file.
24649         * m4/ioctl.m4: New file, extracted from modules/ioctl.
24650         * modules/ioctl (Files): Add it.
24651         (configure.ac): Simply invoke gl_FUNC_IOCTL.
24652         Reported by Ian Beckwith <ianb@erislabs.net>.
24653
24654 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
24655             Bruno Haible  <bruno@clisp.org>
24656
24657         diffseq: Accommodate use-case with abstract arrays.
24658         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
24659         is not defined.
24660         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
24661         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
24662
24663 2010-04-18  Bruno Haible  <bruno@clisp.org>
24664
24665         * doc/posix-headers/stdbool.texi: More precise wording.
24666
24667 2010-04-17  Jim Meyering  <meyering@redhat.com>
24668
24669         maint.mk: use gnu-style indentation in an embedded perl script
24670         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
24671         Rename variable: s/two/last_two_bytes/
24672
24673 2010-04-16  Eric Blake  <eblake@redhat.com>
24674
24675         test-stdbool: skip test that fails with Solaris CC
24676         * tests/test-stdbool.c (f): Skip test that causes compilation
24677         error under buggy C++ compiler.
24678         * lib/stdbool.in.h: Document the limitation.
24679         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
24680
24681         setenv: allow compilation with C++
24682         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
24683         register keyword.
24684
24685         stdint: allow test to pass with C++
24686         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
24687
24688         getopt: allow compilation with C++
24689         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
24690         struct.
24691         * lib/getopt.c (_getopt_internal_r): Use correct type.
24692         Reported by Dagobert Michelson, via Joel E. Denny.
24693
24694 2010-04-16  Bruno Haible  <bruno@clisp.org>
24695
24696         Override netdb.h always.
24697         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
24698         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
24699         Reported by Ludovic Courtès <ludo@gnu.org>.
24700
24701 2010-04-15  Bruno Haible  <bruno@clisp.org>
24702
24703         openpty: Fix mistake from 2010-03-21.
24704         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
24705         Reported by Simon Josefsson.
24706
24707 2010-04-15  Eric Blake  <eblake@redhat.com>
24708
24709         test-forkpty: fix expected signature
24710         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
24711         Reported by Simon Josefsson.
24712
24713 2010-04-15  Jim Meyering  <meyering@redhat.com>
24714
24715         maint.mk: texinfo_suffix_re_: correct the default regexp
24716         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
24717
24718         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
24719         make it configurable via texinfo_suffix_re_.
24720
24721 2010-04-14  Eric Blake  <eblake@redhat.com>
24722
24723         strtok_r: relax license to LGPLv2+
24724         * modules/strtok_r (License): Relax license.
24725         Reported by Matthias Bolte.
24726
24727 2010-04-14  Simon Josefsson  <simon@josefsson.org>
24728
24729         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
24730         version 1.4.4 by default instead of requiring the libgcrypt
24731         version used during build.  This makes it possible to use the
24732         application with older but still binary compatible libgcrypt
24733         versions.
24734
24735 2010-04-13  Eric Blake  <eblake@redhat.com>
24736
24737         getopt-gnu: match recent glibc fixes and posix ruling
24738         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
24739         '+' handling, when requesting extensions.
24740         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
24741         'W;' handling.
24742         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
24743         * doc/posix-functions/getopt.texi (getopt): Document this.
24744         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
24745         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24746         Likewise.
24747
24748         getopt: merge bug fixes from glibc
24749         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
24750         diagnostics.  Honor '+:' correctly.  Reject ';'.
24751
24752         getopt-posix: detect MacOS bug
24753         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
24754         optind when missing a required argument.
24755         * doc/posix-functions/getopt.texi (getopt): Document the bug.
24756         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
24757         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24758         Likewise.
24759
24760         getopt-posix: avoid spurious failure on Solaris
24761         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
24762         an indicator that setting optind=1 is sufficient for reset.
24763
24764         getopt-posix: avoid spurious failure on FreeBSD
24765         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
24766         in POSIX mode, since the m4 test uses it.
24767
24768         gnulib-tool: silence warning on BSD sh
24769         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
24770
24771 2010-04-13  Jim Meyering  <meyering@redhat.com>
24772
24773         doc: users.txt: GNU patch now uses gnulib
24774         * users.txt: Add patch.
24775
24776 2010-04-12  Jim Meyering  <meyering@redhat.com>
24777
24778         maint.mk: generate more concise timing data for syntax-check rules
24779         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
24780         " done" from each line that reports a syntax-check test duration.
24781
24782 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
24783
24784         git-version-gen: use "git update-index..." rather than "git status"
24785         * build-aux/git-version-gen: Use git update-index --refresh, not
24786         "git status".  With some versions of git, "git status" would fail
24787         to update the index and result in an unwarranted "-dirty" suffix.
24788
24789 2010-04-11  Jim Meyering  <meyering@redhat.com>
24790
24791         openat: correct formatting (no semantic change)
24792         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
24793         Suggested by Bruno Haible.
24794
24795 2010-04-11  Bruno Haible  <bruno@clisp.org>
24796
24797         Stricter declaration checking in testdirs.
24798         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24799         If for_tests is true, augment AM_CPPFLAGS to define
24800         GNULIB_STRICT_CHECKING.
24801         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
24802         GNULIB_STRICT_CHECKING is defined, verify that the function is
24803         declared.
24804
24805 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
24806             Bruno Haible  <bruno@clisp.org>
24807
24808         libunistring: Improve configure output.
24809         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
24810         Don't say "consider installing GNU libunistring" when checking again
24811         with libiconv.
24812
24813 2010-04-11  Bruno Haible  <bruno@clisp.org>
24814
24815         libunistring: Correct value of $LTLIBUNISTRING.
24816         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
24817         correct the value of $LTLIBUNISTRING.
24818
24819 2010-04-11  Bruno Haible  <bruno@clisp.org>
24820
24821         havelib: Add static libraries to LIBS in the right order.
24822         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
24823         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
24824
24825 2010-04-11  Bruno Haible  <bruno@clisp.org>
24826
24827         libunistring: Detect libunistring also when it depends on libiconv.
24828         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
24829         the second AC_LIB_HAVE_LINKFLAGS invocation.
24830
24831 2010-04-11  James Youngman  <jay@gnu.org>
24832
24833         close-stream: declare local scalars to be "const"
24834         * lib/close-stream.c (close_stream): Make boolean variables const
24835         to document the fact that we set but do not change them.
24836
24837 2010-04-11  Bruno Haible  <bruno@clisp.org>
24838
24839         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
24840
24841 2010-04-11  Jim Meyering  <meyering@redhat.com>
24842
24843         maint.mk: don't include dist-check.mk
24844         * top/maint.mk: Remove bogus include directive.
24845
24846         maint.mk: improve empty-line-at-EOF check
24847         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
24848         solution, rather than tail+Perl-based one.  The latter would read
24849         a few kilobytes from the end of each file, and did not handle empty
24850         files properly.
24851
24852         maint.mk: print the elapsed time for each syntax-check rule
24853         * top/maint.mk (sc_m_rules_): Save start time in a file.
24854         (sc_z_rules_): New rules: remove temp file and print elapsed time.
24855         (local-check): Interpose the .z rules
24856
24857 2010-04-11  Jim Meyering  <meyering@redhat.com>
24858
24859         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
24860         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
24861         empty file with one that ends in an empty line.
24862
24863 2010-04-10  Bruno Haible  <bruno@clisp.org>
24864
24865         mkdir: Make it work on mingw64.
24866         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
24867         * lib/mkdir.c: Update comment.
24868         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
24869
24870 2010-04-10  Bruno Haible  <bruno@clisp.org>
24871
24872         Don't override improved macro from newer autoconf.
24873         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
24874         autoconf >= 2.62.
24875         Reported by Joel E. Denny <jdenny@clemson.edu>.
24876
24877 2010-04-10  Jim Meyering  <meyering@redhat.com>
24878
24879         maint.mk: new syntax-check rule: prohibit empty lines at end of file
24880         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
24881
24882         maint.mk: correct a diagnostic
24883         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
24884         in diagnostic; now use $prohibit.
24885
24886 2010-04-10  Bruno Haible  <address@hidden>
24887
24888         fchownat: Fix a C++ test error on Solaris 8.
24889         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
24890         the function does not exist.
24891
24892 2010-04-10  Bruno Haible  <bruno@clisp.org>
24893
24894         vasnprintf: Add more tests.
24895         * tests/test-vasnprintf-posix.c: Include <errno.h>.
24896         (test_function): Test converting an invalid wide string.
24897
24898         vasnprintf: Correct handling of unconvertible wide string arguments.
24899         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
24900         VASNPRINTF.
24901         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
24902         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
24903         smaller than the expected maximum need for the directive. Set errno to
24904         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
24905         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
24906         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
24907         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
24908         * modules/vasnprintf (Files): Add m4/printf.m4.
24909         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24910
24911 2010-04-10  Bruno Haible  <bruno@clisp.org>
24912
24913         vasnprintf: Fix crash in %ls directive.
24914         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
24915         string is passed as argument to %ls, with no precision and no width.
24916         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24917
24918 2010-04-10  Bruno Haible  <bruno@clisp.org>
24919
24920         vasnprintf: Fix multiple test failures on mingw.
24921         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
24922         _snprintf, or snwprintf, not _snwprintf.
24923
24924 2010-04-10  Bruno Haible  <bruno@clisp.org>
24925
24926         write: Fix a C++ test error on mingw.
24927         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
24928
24929 2010-04-10  Bruno Haible  <bruno@clisp.org>
24930
24931         vasnprintf test: Reduce code duplication.
24932         * tests/test-vasnprintf.c (test_function): New function, extracted from
24933         test_vasnprintf.
24934         (test_vasnprintf, test_asnprintf): Invoke it.
24935
24936 2010-04-10  Bruno Haible  <bruno@clisp.org>
24937
24938         strnlen: Fix warning in C++ mode on MacOS X.
24939         * lib/string.in.h (strnlen): Use the modern idiom.
24940         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
24941         defining strnlen as a macro already in <config.h>.
24942         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24943         REPLACE_STRNLEN.
24944         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
24945         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24946
24947 2010-04-08  James Youngman  <jay@gnu.org>
24948
24949         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
24950         the example.
24951
24952 2010-04-09  Jim Meyering  <meyering@redhat.com>
24953
24954         maint.mk: print better diagnostic when there is no $(_hv_file)
24955         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
24956         announce that when $(_hv_file) (aka help-version) does not exist.
24957
24958         init.sh: run tr in the "C" locale to avoid multibyte interpretation
24959         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
24960         not try to interpret its random input bytes.  Jarno Rajahalme reported
24961         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
24962         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
24963         (mktempd_): Likewise, just in case.
24964
24965         ftruncate: add two years to projected module removal date: 2012
24966         * m4/ftruncate.m4: Adjust comments.
24967
24968         ftruncate: mark module as obsolete; even MinGW provides it, now
24969         * modules/ftruncate (Status): Obsolete.
24970         (Notice): Say that.
24971         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
24972         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
24973
24974 2010-04-08  Bruno Haible  <bruno@clisp.org>
24975
24976         Fix side effects from tests-related modules.
24977         * modules/dprintf-posix (Comment): New section.
24978         * modules/fprintf-posix (Comment): Likewise.
24979         * modules/obstack-printf-posix (Comment): Likewise.
24980         * modules/printf-posix (Comment): Likewise.
24981         * modules/snprintf-posix (Comment): Likewise.
24982         * modules/sprintf-posix (Comment): Likewise.
24983         * modules/vasnprintf-posix (Comment): Likewise.
24984         * modules/vasprintf-posix (Comment): Likewise.
24985         * modules/vdprintf-posix (Comment): Likewise.
24986         * modules/vfprintf-posix (Comment): Likewise.
24987         * modules/vprintf-posix (Comment): Likewise.
24988         * modules/vsnprintf-posix (Comment): Likewise.
24989         * modules/vsprintf-posix (Comment): Likewise.
24990         * modules/xprintf-posix (Comment): Likewise.
24991         * modules/xvasprintf-posix (Comment): Likewise.
24992         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
24993         * modules/floorf-tests (Depends-on): Likewise.
24994         * modules/round-tests (Depends-on): Likewise.
24995         * modules/roundf-tests (Depends-on): Likewise.
24996         * modules/trunc-tests (Depends-on): Likewise.
24997         * modules/truncf-tests (Depends-on): Likewise.
24998         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
24999         'fprintf-posix' module is not present.
25000         * tests/test-floorf2.c (check): Likewise.
25001         * tests/test-trunc2.c (check): Likewise.
25002         * tests/test-truncf2.c (check): Likewise.
25003         * tests/test-round2.c (equal): Likewise.
25004         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25005
25006 2010-04-07  Karl Berry  <karl@gnu.org>
25007
25008         * config/srclist.txt,
25009         * config/srclistvars.sh,
25010         * config/srclist-update: doc fixes.
25011
25012 2010-04-07  Jim Meyering  <meyering@redhat.com>
25013
25014         maint.mk: add a PATH crosschecking syntax-check rule
25015         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
25016         Useful if you use a test like the one in help-version (coreutils,
25017         diffutils, grep, gzip) that ensures $(VERSION) matches what is
25018         printed by prog --version.
25019
25020 2010-04-06  Bruno Haible  <bruno@clisp.org>
25021
25022         Fix link error on mingw.
25023         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
25024         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
25025
25026 2010-04-06  Bruno Haible  <bruno@clisp.org>
25027
25028         Assume rmdir exists.
25029         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
25030
25031 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
25032
25033         doc: update users.txt
25034         * users.txt: Add gcal.
25035
25036 2010-04-06  Jim Meyering  <meyering@redhat.com>
25037
25038         init.sh: simply unset TMPDIR rather than risking env -i
25039         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
25040         although it probably works fine on all Unix-based systems, some
25041         systems (Cygwin?) cannot tolerate a totally cleared environment.
25042         Suggestion from Eric Blake.
25043
25044 2010-04-06  Jim Meyering  <meyering@redhat.com>
25045
25046         init.sh: portability fix: use env's POSIX-specified -i option not -u
25047         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
25048         than unportable env -u.  Solaris 5.11's env lacks support for -u.
25049
25050 2010-04-05  Bruno Haible  <bruno@clisp.org>
25051
25052         btowc: Work around Cygwin 1.7.2 bug.
25053         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
25054         does not map NUL to 0.
25055         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
25056
25057 2010-04-05  Bruno Haible  <bruno@clisp.org>
25058
25059         Make the multithread modules work on Cygwin 1.7.2.
25060         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
25061         imported symbols can be declared weak, so that it returns "no" on
25062         Cygwin 1.7.2.
25063
25064 2010-04-05  Bruno Haible  <bruno@clisp.org>
25065
25066         Use the module 'strncat'.
25067         * modules/unistr/u8-strncat (Depends-on): Add strncat.
25068
25069         Tests for module 'strncat'.
25070         * modules/strncat-tests: New file.
25071         * tests/test-strncat.c: New file.
25072
25073         New module 'strncat'.
25074         * lib/string.in.h (strncat): New declaration.
25075         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
25076         * m4/strncat.m4: New file, based on m4/memchr.m4.
25077         * modules/strncat: New file.
25078         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
25079         is declared.
25080         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
25081         REPLACE_STRNCAT.
25082         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
25083         REPLACE_STRNCAT.
25084         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
25085         module.
25086         * tests/test-string-c++.cc: Check signature of strncat.
25087
25088 2010-04-05  Jim Meyering  <meyering@redhat.com>
25089
25090         xstrtoumax-tests: convert to use init.sh
25091         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
25092         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25093         Use Exit, not exit.
25094         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25095
25096         xstrtoimax-tests: convert to use init.sh
25097         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
25098         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25099         Use Exit, not exit.
25100         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25101
25102 2010-04-05  Bruno Haible  <bruno@clisp.org>
25103
25104         sys_socket: Avoid #define replacements in C++ mode.
25105         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
25106         warning to the function if possible, rather than #defining the symbol
25107         to a dysfunctional alias.
25108
25109 2010-04-05  Bruno Haible  <bruno@clisp.org>
25110
25111         fseeko: Fix C++ test error on mingw.
25112         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
25113         gl_FUNC_FSEEKO.
25114         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
25115         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
25116         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
25117         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
25118
25119 2010-04-05  Bruno Haible  <bruno@clisp.org>
25120
25121         duplocale: Improve test output.
25122         * tests/test-duplocale.c (main): Print reason for skipped test.
25123
25124 2010-04-05  Bruno Haible  <bruno@clisp.org>
25125
25126         Assume rmdir exists.
25127         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
25128         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
25129
25130 2010-04-05  Bruno Haible  <bruno@clisp.org>
25131
25132         Fix link error on Solaris 8 with cc.
25133         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
25134
25135 2010-04-05  Bruno Haible  <bruno@clisp.org>
25136
25137         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
25138         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
25139
25140 2010-04-05  Bruno Haible  <bruno@clisp.org>
25141
25142         vasprintf: Update documentation.
25143         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
25144
25145 2010-04-05  Bruno Haible  <bruno@clisp.org>
25146
25147         ptsname: Improve test.
25148         * tests/test-ptsname.c (main): Also try the various master names of BSD
25149         systems.
25150
25151 2010-04-05  Bruno Haible  <bruno@clisp.org>
25152
25153         memchr: Avoid a possible C++ test error.
25154         * lib/string.in.h (memchr): Provide declaration if function is missing.
25155         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
25156         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
25157         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
25158         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
25159
25160 2010-04-05  Bruno Haible  <bruno@clisp.org>
25161
25162         strtok_r: Improve idiom.
25163         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
25164         AC_LIBOBJ is used.
25165
25166 2010-04-05  Bruno Haible  <bruno@clisp.org>
25167
25168         strdup: Improve idiom.
25169         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
25170         AC_LIBOBJ is used.
25171         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
25172         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
25173         when AC_LIBOBJ is used.
25174
25175 2010-04-05  Bruno Haible  <bruno@clisp.org>
25176
25177         mbsinit, mbrtowc, wcrtomb: Improve idioms.
25178         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
25179         don't set REPLACE_MBSINIT to 1.
25180         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
25181         don't set REPLACE_MBRTOWC to 1.
25182         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
25183         exist, don't set REPLACE_MBSRTOWCS to 1.
25184         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
25185         exist, don't set REPLACE_MBSNRTOWCS to 1.
25186         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
25187         don't set REPLACE_WCRTOMB to 1.
25188         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
25189         exist, don't set REPLACE_WCSRTOMBS to 1.
25190         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
25191         exist, don't set REPLACE_WCSNRTOMBS to 1.
25192
25193 2010-04-05  Bruno Haible  <bruno@clisp.org>
25194
25195         ldexpl: Improve idiom.
25196         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
25197         make sure to set HAVE_DECL_LDEXPL to 0.
25198
25199 2010-04-05  Jim Meyering  <meyering@redhat.com>
25200
25201         xstrtol-tests: convert to use init.sh
25202         * modules/xstrtol-tests (Files): Add tests/init.sh.
25203         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25204         Use Exit, not exit.
25205         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25206
25207         atexit-tests: convert to use init.sh
25208         * modules/atexit-tests (Files): Add tests/init.sh.
25209         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25210         Use Exit, not exit.
25211         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25212
25213         init.sh: fix typo
25214         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
25215
25216         init.sh: make it easier for a test script to write to the tty, ...
25217         when using automake's parallel-tests mode.
25218         * tests/init.sh (stderr_fileno_): Define overridable variable.
25219         (warn_): New function, to use it.
25220         (fail_, skip_, framework_failure_): Use warn_.
25221
25222 2010-04-04  Bruno Haible  <bruno@clisp.org>
25223
25224         btowc: Avoid warning.
25225         * lib/btowc.c: Include <stdlib.h>.
25226         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
25227
25228 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
25229             Bruno Haible  <bruno@clisp.org>
25230
25231         wchar: Port to NetBSD 1.5.
25232         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
25233         * lib/wctype.in.h (WEOF): Likewise.
25234
25235 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
25236             Bruno Haible  <bruno@clisp.org>
25237
25238         Port extended stdio to NetBSD 1.5.
25239         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
25240         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
25241         older.
25242
25243 2010-04-04  Bruno Haible  <bruno@clisp.org>
25244
25245         string: Remove unused substitution.
25246         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
25247         HAVE_DECL_STRERROR.
25248         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
25249
25250 2010-04-04  Bruno Haible  <bruno@clisp.org>
25251
25252         strtod: Avoid a possible C++ test error.
25253         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
25254         set REPLACE_STRTOD.
25255
25256 2010-04-04  Bruno Haible  <bruno@clisp.org>
25257
25258         strerror: Update documentation.
25259         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
25260
25261 2010-04-04  Bruno Haible  <bruno@clisp.org>
25262
25263         stdio: Fix some C++ test errors on Solaris 8 with GCC.
25264         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
25265         _GL_CXXALIAS_SYS_CAST.
25266
25267 2010-04-04  Bruno Haible  <bruno@clisp.org>
25268
25269         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
25270         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
25271         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
25272         REPLACE_FREXPL to 1.
25273         * doc/posix-functions/frexpl.texi: Update documentation.
25274
25275 2010-04-04  Bruno Haible  <bruno@clisp.org>
25276
25277         math: Fix some C++ test errors on Solaris 8 and Cygwin.
25278         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
25279
25280 2010-04-04  Bruno Haible  <bruno@clisp.org>
25281
25282         Implement nanosleep for native Windows.
25283         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
25284
25285 2010-04-04  Bruno Haible  <bruno@clisp.org>
25286
25287         math: Fix some C++ test errors on Solaris 8.
25288         * lib/math.in.h (truncf, trunc): Use simpler idiom.
25289
25290 2010-04-04  Bruno Haible  <bruno@clisp.org>
25291
25292         math: Fix some C++ test errors on Cygwin.
25293         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
25294         truncl): Provide declaration if the system does not have it.
25295         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
25296         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
25297         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
25298         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
25299         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
25300         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
25301         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
25302         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
25303         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
25304         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
25305         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
25306         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
25307         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
25308         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
25309         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
25310         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
25311         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
25312         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
25313         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
25314         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
25315         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
25316         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
25317
25318 2010-04-04  Bruno Haible  <bruno@clisp.org>
25319
25320         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
25321         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
25322         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
25323         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
25324         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
25325         * m4/isinf.m4 (gl_ISINF): Likewise.
25326         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25327
25328 2010-04-04  Bruno Haible  <bruno@clisp.org>
25329
25330         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
25331         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
25332
25333 2010-04-04  Bruno Haible  <bruno@clisp.org>
25334
25335         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
25336         * modules/tmpfile (configure.ac): Update.
25337
25338         tmpfile: Fix C++ test error on mingw.
25339         * lib/stdio.in.h (tmpfile): New declaration.
25340         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
25341         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
25342         * modules/tmpfile (Depends-on): Add stdio.
25343         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
25344         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
25345         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
25346         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
25347         REPLACE_TMPFILE.
25348         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
25349
25350 2010-04-04  Bruno Haible  <bruno@clisp.org>
25351
25352         ioctl: Fix C++ test error on mingw.
25353         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
25354         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
25355         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
25356
25357 2010-04-03  Bruno Haible  <bruno@clisp.org>
25358
25359         wcwidth: Fix C++ test error on mingw.
25360         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
25361         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
25362         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
25363
25364 2010-04-03  Bruno Haible  <bruno@clisp.org>
25365
25366         nanosleep: Fix C++ test error on mingw.
25367         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
25368         * lib/time.in.h (nanosleep): Use modern idiom.
25369         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
25370         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
25371         REPLACE_NANOSLEEP to 1.
25372         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
25373         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
25374
25375 2010-04-03  Bruno Haible  <bruno@clisp.org>
25376
25377         strptime: Fix C++ test error on mingw.
25378         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
25379         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
25380         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
25381         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
25382         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
25383         not REPLACE_STRPTIME.
25384         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
25385         REPLACE_STRPTIME.
25386
25387 2010-04-03  Bruno Haible  <bruno@clisp.org>
25388
25389         timegm: Fix C++ test error on mingw.
25390         * lib/time.in.h (timegm): Use modern idiom.
25391         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
25392         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
25393         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
25394         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
25395
25396 2010-04-03  Bruno Haible  <bruno@clisp.org>
25397
25398         timegm: Assume declaration if function exists.
25399         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
25400         if it exists. Don't clobber ac_cv_func_timegm.
25401
25402 2010-04-03  Bruno Haible  <bruno@clisp.org>
25403
25404         time_r: Fix C++ test error on mingw.
25405         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
25406         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
25407         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
25408         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
25409         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
25410
25411 2010-04-03  Bruno Haible  <bruno@clisp.org>
25412
25413         time_r: Minor updates.
25414         * modules/time_r (Description): Mention the provided functions.
25415         * lib/time_r.c: Don't include <string.h>.
25416         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
25417         * doc/posix-functions/localtime_r.texi: Likewise.
25418
25419 2010-04-03  Bruno Haible  <bruno@clisp.org>
25420
25421         time: Fix regression introduced on 2010-03-08.
25422         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
25423         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
25424
25425 2010-04-03  Jim Meyering  <meyering@redhat.com>
25426
25427         maint.mk: don't silently disable project-specific syntax-check rules
25428         * top/maint.mk (_prohibit_regexp): Define, to help people realize
25429         that they need to convert their project-specific syntax-check rules
25430         to use the new _sc_search_regexp.
25431
25432 2010-04-03  Bruno Haible  <bruno@clisp.org>
25433
25434         fchdir: Fix regression introduced on 2010-03-08.
25435         * lib/unistd.in.h (fchdir): Fix declaration.
25436         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
25437         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
25438         REPLACE_FCHDIR.
25439         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
25440         REPLACE_FCHDIR.
25441
25442 2010-04-03  Bruno Haible  <bruno@clisp.org>
25443
25444         getpagesize: Fix C++ test error on mingw.
25445         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
25446         system does not declare the function.
25447         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
25448         declared.
25449         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25450         HAVE_DECL_GETPAGESIZE.
25451         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
25452
25453 2010-04-03  Bruno Haible  <bruno@clisp.org>
25454
25455         stdio: Make C++ tests work on mingw.
25456         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
25457         does not declare the function.
25458
25459 2010-04-03  Bruno Haible  <bruno@clisp.org>
25460
25461         ftello: Fix C++ test error on mingw.
25462         * lib/stdio.in.h (ftello): Use modern idiom.
25463         * lib/ftello.c (ftello): Renamed from rpl_ftello.
25464         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
25465         is missing and that it needs to be replaced.
25466         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
25467         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
25468         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
25469
25470 2010-04-03  Bruno Haible  <bruno@clisp.org>
25471
25472         fseeko: Fix C++ test error on mingw.
25473         * lib/stdio.in.h (fseeko): Use modern idiom.
25474         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
25475         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
25476         is missing and that it needs to be replaced.
25477         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
25478         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
25479         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
25480
25481 2010-04-03  Bruno Haible  <bruno@clisp.org>
25482
25483         mkstemp: Fix C++ test error on mingw.
25484         * lib/stdlib.in.h (mkstemp): Use modern idiom.
25485         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
25486         function is missing and that it needs to be replaced.
25487         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
25488         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
25489
25490 2010-04-03  Bruno Haible  <bruno@clisp.org>
25491
25492         stpncpy: Fix C++ test error on mingw.
25493         * lib/string.in.h (stpncpy): Use modern idiom.
25494         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
25495         function is missing and that it needs to be replaced.
25496         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25497         REPLACE_STPNCPY.
25498         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
25499
25500 2010-04-03  Bruno Haible  <bruno@clisp.org>
25501
25502         sys_stat: Fix C++ test error on mingw.
25503         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
25504         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
25505
25506 2010-04-03  Bruno Haible  <bruno@clisp.org>
25507
25508         pty: Update doc.
25509         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
25510
25511 2010-04-03  Bruno Haible  <bruno@clisp.org>
25512
25513         unistd: Fix C++ test error on mingw.
25514         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
25515
25516 2010-04-03  Bruno Haible  <bruno@clisp.org>
25517
25518         Update doc regarding mingw.
25519         * doc/glibc-functions/openpty.texi: Update regarding mingw.
25520         * doc/glibc-functions/login_tty.texi: Likewise.
25521         * doc/glibc-functions/forkpty.texi: Likewise.
25522
25523 2010-04-03  Bruno Haible  <bruno@clisp.org>
25524
25525         stdlib: Avoid compilation failure of c-strtold on mingw.
25526         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
25527
25528 2010-04-03  Bruno Haible  <bruno@clisp.org>
25529
25530         locale: Make C++ tests work on Cygwin and mingw.
25531         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
25532         cannot provide the function.
25533         Reported by Simon Josefsson.
25534
25535 2010-04-03  Bruno Haible  <bruno@clisp.org>
25536
25537         localename: Port to MacOS X 10.6.
25538         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
25539         memory layout of the locales in MacOS X 10.6 as well.
25540         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
25541
25542 2010-04-02  Bruno Haible  <bruno@clisp.org>
25543
25544         gnulib-tool: Ensure that long-running tests are executed last.
25545         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
25546         running tests after the one for the other tests.
25547
25548 2010-04-02  Bruno Haible  <bruno@clisp.org>
25549
25550         gnulib-tool: Ensure the tests in the main directory are executed first.
25551         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
25552         start with the current directory.
25553
25554 2010-04-02  Bruno Haible  <bruno@clisp.org>
25555
25556         Tests for module 'havelib', moved here from GNU gettext.
25557         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
25558         modifications.
25559         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
25560         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
25561         with modifications.
25562         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
25563         modifications.
25564         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
25565         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
25566         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
25567         with modifications.
25568         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
25569         with modifications.
25570         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
25571         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
25572         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
25573         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
25574         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
25575         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
25576         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
25577         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
25578         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
25579         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
25580         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
25581         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
25582         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
25583         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
25584         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
25585         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
25586         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
25587         with modifications.
25588         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
25589         with modifications.
25590         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
25591         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
25592         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
25593         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
25594         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
25595         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
25596         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
25597         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
25598         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
25599         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
25600         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
25601         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
25602         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
25603         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
25604         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
25605         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
25606         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
25607         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
25608         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
25609         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
25610         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
25611         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
25612         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
25613         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
25614         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
25615         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
25616         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
25617         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
25618         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
25619         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
25620         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
25621         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
25622         * tests/havelib/rpathx/rpathx.c: New file, from
25623         gettext/autoconf-lib-link.
25624         * tests/havelib/rpathx/Makefile.am: New file, from
25625         gettext/autoconf-lib-link.
25626         * tests/havelib/rpathx/configure.ac: New file, from
25627         gettext/autoconf-lib-link with modifications.
25628         * tests/havelib/rpathy/rpathy.c: New file, from
25629         gettext/autoconf-lib-link.
25630         * tests/havelib/rpathy/Makefile.am: New file, from
25631         gettext/autoconf-lib-link.
25632         * tests/havelib/rpathy/configure.ac: New file, from
25633         gettext/autoconf-lib-link with modifications.
25634         * tests/havelib/rpathz/rpathz.c: New file, from
25635         gettext/autoconf-lib-link.
25636         * tests/havelib/rpathz/Makefile.am: New file, from
25637         gettext/autoconf-lib-link.
25638         * tests/havelib/rpathz/configure.ac: New file, from
25639         gettext/autoconf-lib-link with modifications.
25640         * tests/havelib/rpathlx/usex.c: New file, from
25641         gettext/autoconf-lib-link.
25642         * tests/havelib/rpathlx/Makefile.am: New file, from
25643         gettext/autoconf-lib-link.
25644         * tests/havelib/rpathlx/configure.ac: New file, from
25645         gettext/autoconf-lib-link with modifications.
25646         * tests/havelib/rpathly/usey.c: New file, from
25647         gettext/autoconf-lib-link.
25648         * tests/havelib/rpathly/Makefile.am: New file, from
25649         gettext/autoconf-lib-link.
25650         * tests/havelib/rpathly/configure.ac: New file, from
25651         gettext/autoconf-lib-link with modifications.
25652         * tests/havelib/rpathlz/usez.c: New file, from
25653         gettext/autoconf-lib-link.
25654         * tests/havelib/rpathlz/Makefile.am: New file, from
25655         gettext/autoconf-lib-link.
25656         * tests/havelib/rpathlz/configure.ac: New file, from
25657         gettext/autoconf-lib-link with modifications.
25658         * tests/havelib/rpathlyx/usey.c: New file, from
25659         gettext/autoconf-lib-link.
25660         * tests/havelib/rpathlyx/Makefile.am: New file, from
25661         gettext/autoconf-lib-link.
25662         * tests/havelib/rpathlyx/configure.ac: New file, from
25663         gettext/autoconf-lib-link with modifications.
25664         * tests/havelib/rpathlzyx/usez.c: New file, from
25665         gettext/autoconf-lib-link.
25666         * tests/havelib/rpathlzyx/Makefile.am: New file, from
25667         gettext/autoconf-lib-link.
25668         * tests/havelib/rpathlzyx/configure.ac: New file, from
25669         gettext/autoconf-lib-link with modifications.
25670         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
25671         with modifications.
25672
25673 2010-04-02  Bruno Haible  <bruno@clisp.org>
25674
25675         gnulib-tool: Create distributed built sources also for the tests.
25676         * gnulib-tool (func_create_testdir): Also generate distributed built
25677         sources in the tests directory.
25678
25679 2010-04-02  Bruno Haible  <bruno@clisp.org>
25680
25681         gnulib-tool: Obey user's environment variables.
25682         * gnulib-tool (func_create_testdir): When creating built sources,
25683         respect the environment variables for autoconf, automake, etc. given by
25684         the user.
25685
25686 2010-04-02  Bruno Haible  <bruno@clisp.org>
25687
25688         gnulib-tool: Provide the value of --m4-base to modules.
25689         * gnulib-tool (func_import, func_create_testdir): Emit a definition
25690         of gl_m4_base.
25691
25692 2010-04-02  Eric Blake  <eblake@redhat.com>
25693
25694         maint.mk: fix some fallout
25695         * NEWS: Document the incompatible change, and its effect on cfg.mk.
25696         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
25697
25698 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
25699
25700         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
25701         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
25702         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
25703         (sc_cast_of_x_alloc_return_value): Likewise.
25704         (sc_cast_of_alloca_return_value): Likewise.
25705         (sc_space_tab): Likewise.
25706         (sc_prohibit_atoi_atof): Likewise.
25707         (sc_prohibit_magic_number_exit): Likewise.
25708         (sc_error_exit_success): Likewise.
25709         (sc_file_system): Likewise.
25710         (sc_prohibit_have_config_h): Likewise.
25711         (sc_require_config_h): Likewise.
25712         (sc_prohibit_HAVE_MBRTOWC): Likewise.
25713         (sc_obsolete_symbols): Likewise.
25714         (sc_changelog): Likewise.
25715         (sc_program_name): Likewise.
25716         (sc_the_the): Likewise.
25717         (sc_trailing_blank): Likewise.
25718         (sc_two_space_separator_in_usage): Likewise.
25719         (sc_useless_cpp_parens): Likewise.
25720         (sc_GPL_version): Likewise.
25721         (sc_GFDL_version): Likewise.
25722         (sc_texinfo_acronym): Likewise.
25723         (sc_prohibit_cvs_keyword): Likewise.
25724         (sc_prohibit_stat_st_blocks): Likewise.
25725         (sc_prohibit_S_IS_definition): Likewise.
25726         (sc_redundant_const): Likewise.
25727         (sc_makefile_TAB_only_indentation): Likewise.
25728         (sc_m4_quote_check): Likewise.
25729         (sc_makefile_path_separator_check): Likewise.
25730         (sc_copyright_check): Likewise.
25731         (sc_Wundef_boolean): Likewise.
25732         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25733
25734         maint.mk: match 0 or more whitespace-before-function-call '('
25735         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
25736         that have zero or two-and-more spaces between the function name
25737         and the open parenthesis.
25738         (sc_error_message_warn_fatal): Likewise.
25739         (sc_error_message_uppercase): Likewise.
25740         (sc_error_message_period): Likewise.
25741
25742 2010-03-31  Eric Blake  <eblake@redhat.com>
25743
25744         maint.mk: check for [ as well as test
25745         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
25746         Based on a libvirt report by Matthias Bolte.
25747
25748         gnumakefile: don't squelch _version output
25749         * top/GNUmakefile (_version): Create one-shot dependency rather
25750         than using $(shell) when version must be regenerated.
25751         (_autoreconf): Run verbosely, by default.
25752
25753         sys_time: avoid compiler warnings
25754         * lib/sys_time.in.h (includes): Ensure gcc pragma is
25755         unconditional, fixing regression from 2010-03-29.
25756         Reported by Simon Josefsson.
25757
25758 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
25759
25760         maint.mk: s/_header_without_use/_sc_header_without_use/
25761         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
25762         (sc_prohibit_assert_without_use): Use the new name.
25763         (sc_prohibit_close_stream_without_use): Likewise.
25764         (sc_prohibit_getopt_without_use): Likewise.
25765         (sc_prohibit_quotearg_without_use): Likewise.
25766         (sc_prohibit_quote_without_use): Likewise.
25767         (sc_prohibit_long_options_without_use): Likewise.
25768         (sc_prohibit_inttostr_without_use): Likewise.
25769         (sc_prohibit_ignore_value_without_use): Likewise.
25770         (sc_prohibit_error_without_use): Likewise.
25771         (sc_prohibit_xalloc_without_use): Likewise.
25772         (sc_prohibit_hash_without_use): Likewise.
25773         (sc_prohibit_hash_pjw_without_use): Likewise.
25774         (sc_prohibit_safe_read_without_use): Likewise.
25775         (sc_prohibit_argmatch_without_use): Likewise.
25776         (sc_prohibit_canonicalize_without_use): Likewise.
25777         (sc_prohibit_root_dev_ino_without_use): Likewise.
25778         (sc_prohibit_openat_without_use): Likewise.
25779         (sc_prohibit_c_ctype_without_use): Likewise.
25780         (sc_prohibit_signal_without_use): Likewise.
25781         (sc_prohibit_intprops_without_use): Likewise.
25782
25783 2010-03-30  Eric Blake  <eblake@redhat.com>
25784
25785         maint: improve module indicators
25786         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
25787         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
25788         columns, and avoid extra macro expansion.
25789
25790         fdopendir: work around FreeBSD bug
25791         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
25792         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
25793         * modules/dirent (Makefile.am): Substitute it.
25794         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
25795         declaration.
25796         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
25797         fix.
25798         Reported by Christian Weisgerber <naddy@mips.inka.de>.
25799
25800 2010-03-29  Bruno Haible  <bruno@clisp.org>
25801
25802         Emit #pragma system_header after the inclusion guard, not before.
25803         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
25804         guard that spans the entire file, not before. This enables an
25805         optimization in GCC's preprocessor.
25806         * lib/ctype.in.h: Likewise.
25807         * lib/dirent.in.h: Likewise.
25808         * lib/errno.in.h: Likewise.
25809         * lib/float.in.h: Likewise.
25810         * lib/getopt.in.h: Likewise.
25811         * lib/iconv.in.h: Likewise.
25812         * lib/langinfo.in.h: Likewise.
25813         * lib/locale.in.h: Likewise.
25814         * lib/math.in.h: Likewise.
25815         * lib/netdb.in.h: Likewise.
25816         * lib/netinet_in.in.h: Likewise.
25817         * lib/pty.in.h: Likewise.
25818         * lib/sched.in.h: Likewise.
25819         * lib/se-selinux.in.h: Likewise.
25820         * lib/search.in.h: Likewise.
25821         * lib/spawn.in.h: Likewise.
25822         * lib/stdarg.in.h: Likewise.
25823         * lib/stdint.in.h: Likewise.
25824         * lib/string.in.h: Likewise.
25825         * lib/strings.in.h: Likewise.
25826         * lib/sys_file.in.h: Likewise.
25827         * lib/sys_ioctl.in.h: Likewise.
25828         * lib/sys_time.in.h: Likewise.
25829         * lib/sys_times.in.h: Likewise.
25830         * lib/sys_utsname.in.h: Likewise.
25831         * lib/sys_wait.in.h: Likewise.
25832         * lib/sysexits.in.h: Likewise.
25833         * lib/wctype.in.h: Likewise.
25834
25835 2010-03-28  James Youngman  <jay@gnu.org>
25836
25837         save-cwd: don't leak a file descriptor when the caller execs.
25838         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
25839         saved file descriptor.
25840         * modules/save-cwd (Depends-on): Depend on cloexec.
25841
25842 2010-03-29  Bruno Haible  <bruno@clisp.org>
25843
25844         Remove vestiges of fts-lgpl module.
25845         * lib/fts_.h: Assume GNULIB_FTS is 1.
25846         * lib/fts.c: Likewise.
25847         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25848
25849 2010-03-28  Bruno Haible  <bruno@clisp.org>
25850
25851         Fix definition of tests witness macro.
25852         * gnulib-tool (func_import): Fix definition of witness macro.
25853
25854 2010-03-28  Bruno Haible  <bruno@clisp.org>
25855
25856         Fix ioctl's protoype on glibc systems.
25857         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
25858         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
25859         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
25860         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
25861         signature. If not, arrange to replace the ioctl function.
25862         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
25863         REPLACE_IOCTL.
25864         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
25865         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
25866         Reported by Ludovic Courtès <ludo@gnu.org>.
25867
25868 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
25869
25870         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
25871         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
25872         made it so grep -r --include=GLOB* ... did not work.
25873
25874 2010-03-26  Jim Meyering  <meyering@redhat.com>
25875             Eric Blake  <eblake@redhat.com>
25876
25877         maint.mk: prohibit use of test's -o and -a operators
25878         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
25879
25880 2010-03-28  Bruno Haible  <bruno@clisp.org>
25881
25882         Remove unused GNULIB_XYZ macro definitions.
25883         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
25884         invocation.
25885
25886 2010-03-28  Bruno Haible  <bruno@clisp.org>
25887
25888         Mark privileged tests modules.
25889         * modules/idpriv-drop-tests (Status): New section.
25890         * modules/idpriv-droptemp-tests (Status): New section.
25891
25892 2010-03-28  Bruno Haible  <bruno@clisp.org>
25893
25894         Split C++ tests into separate tests modules.
25895         * modules/dirent-c++-tests: New file, extracted from
25896         modules/dirent-tests.
25897         * modules/dirent-tests: Depend on it.
25898         * modules/fcntl-h-c++-tests: New file, extracted from
25899         modules/fcntl-h-tests.
25900         * modules/fcntl-h-tests: Depend on it.
25901         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
25902         * modules/glob-tests: Depend on it.
25903         * modules/iconv-h-c++-tests: New file, extracted from
25904         modules/iconv-h-tests.
25905         * modules/iconv-h-tests: Depend on it.
25906         * modules/langinfo-c++-tests: New file, extracted from
25907         modules/langinfo-tests.
25908         * modules/langinfo-tests: Depend on it.
25909         * modules/locale-c++-tests: New file, extracted from
25910         modules/locale-tests.
25911         * modules/locale-tests: Depend on it.
25912         * modules/math-c++-tests: New file, extracted from modules/math-tests.
25913         * modules/math-tests: Depend on it.
25914         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
25915         * modules/pty-tests: Depend on it.
25916         * modules/search-c++-tests: New file, extracted from
25917         modules/search-tests.
25918         * modules/search-tests: Depend on it.
25919         * modules/signal-c++-tests: New file, extracted from
25920         modules/signal-tests.
25921         * modules/signal-tests: Depend on it.
25922         * modules/spawn-c++-tests: New file, extracted from
25923         modules/spawn-tests.
25924         * modules/spawn-tests: Depend on it.
25925         * modules/stdio-c++-tests: New file, extracted from
25926         modules/stdio-tests.
25927         * modules/stdio-tests: Depend on it.
25928         * modules/stdlib-c++-tests: New file, extracted from
25929         modules/stdlib-tests.
25930         * modules/stdlib-tests: Depend on it.
25931         * modules/string-c++-tests: New file, extracted from
25932         modules/string-tests.
25933         * modules/string-tests: Depend on it.
25934         * modules/sys_ioctl-c++-tests: New file, extracted from
25935         modules/sys_ioctl-tests.
25936         * modules/sys_ioctl-tests: Depend on it.
25937         * modules/sys_select-c++-tests: New file, extracted from
25938         modules/sys_select-tests.
25939         * modules/sys_select-tests: Depend on it.
25940         * modules/sys_socket-c++-tests: New file, extracted from
25941         modules/sys_socket-tests.
25942         * modules/sys_socket-tests: Depend on it.
25943         * modules/sys_stat-c++-tests: New file, extracted from
25944         modules/sys_stat-tests.
25945         * modules/sys_stat-tests: Depend on it.
25946         * modules/sys_time-c++-tests: New file, extracted from
25947         modules/sys_time-tests.
25948         * modules/sys_time-tests: Depend on it.
25949         * modules/time-c++-tests: New file, extracted from modules/time-tests.
25950         * modules/time-tests: Depend on it.
25951         * modules/unistd-c++-tests: New file, extracted from
25952         modules/unistd-tests.
25953         * modules/unistd-tests: Depend on it.
25954         * modules/wchar-c++-tests: New file, extracted from
25955         modules/wchar-tests.
25956         * modules/wchar-tests: Depend on it.
25957         * modules/wctype-c++-tests: New file, extracted from
25958         modules/wctype-tests.
25959         * modules/wctype-tests: Depend on it.
25960         Reported by Simon Josefsson.
25961
25962 2010-03-28  Bruno Haible  <bruno@clisp.org>
25963
25964         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
25965         * gnulib-tool (func_exists_module): New function, extracted from
25966         func_verify_module.
25967         (func_verify_module): Use it.
25968         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
25969         'foo' only if 'foo' exists.
25970         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
25971         module.
25972
25973 2010-03-28  Bruno Haible  <bruno@clisp.org>
25974
25975         gnulib-tool: Add support for special categories of tests.
25976         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
25977         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
25978         (func_usage): Document them.
25979         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
25980         inc_unportable_tests, inc_all_tests): New variables.
25981         (func_acceptable): Consider these variables.
25982         (func_modules_transitive_closure): Make it work when the 'Status' field
25983         consists of multiple words.
25984         (func_import): Store and restore the values of inc_cxx_tests,
25985         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
25986         inc_all_tests in gnulib-comp.m4.
25987         (func_create_testdir): Set inc_all_tests to true.
25988         * doc/gnulib.texi (Extra tests modules): New section.
25989         Suggested by Jim Meyering.
25990
25991 2010-03-28  Bruno Haible  <bruno@clisp.org>
25992
25993         ansi-c++-opt: Allow turning off the C++ build by default.
25994         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
25995         gl_CXX_CHOICE_DEFAULT_NO is defined.
25996         Requested by Eric Blake.
25997
25998 2010-03-28  Bruno Haible  <bruno@clisp.org>
25999
26000         unistd: Avoid #define replacements in C++ mode.
26001         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
26002         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
26003         setsockopt, shutdown, select): In C++, attach a warning to the function
26004         if possible, rather than #defining the symbol to a dysfunctional alias.
26005         Reported by John W. Eaton <jwe@gnu.org>.
26006
26007 2010-03-28  Bruno Haible  <bruno@clisp.org>
26008
26009         Fix link errors on mingw.
26010         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
26011         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
26012         $(LIBSOCKET).
26013         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
26014         $(LIBSOCKET).
26015
26016 2010-03-28  Bruno Haible  <bruno@clisp.org>
26017             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26018
26019         lib-ignore: Determine different options for different compilers.
26020         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
26021         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
26022         Add comments.
26023         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
26024         * NEWS: Mention the change.
26025
26026 2010-03-27  Bruno Haible  <bruno@clisp.org>
26027
26028         Remove unused GNULIB_XYZ macro definitions.
26029         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
26030         * modules/fseek (configure.ac): Likewise.
26031         * modules/ioctl (configure.ac): Likewise.
26032         * modules/open (configure.ac): Likewise.
26033         * modules/stdlib-safer (configure.ac): Likewise.
26034
26035 2010-03-27  Bruno Haible  <bruno@clisp.org>
26036
26037         Add a remark about certain modules.
26038         * modules/malloc (Comment): New section.
26039         * modules/realloc (Comment): Likewise.
26040         * modules/sigpipe (Comment): Likewise.
26041
26042 2010-03-27  Bruno Haible  <bruno@clisp.org>
26043
26044         Resolve conflict between the two kinds of module indicators.
26045         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
26046         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
26047         * modules/canonicalize (configure.ac): Invoke
26048         gl_MODULE_INDICATOR_FOR_TESTS.
26049         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
26050         GNULIB_XYZ.
26051         * tests/test-dirent-c++.cc: Likewise.
26052         * tests/test-dirent-safer.c: Likewise.
26053         * tests/test-dup2.c: Likewise.
26054         * tests/test-fchdir.c: Likewise.
26055         * tests/test-fcntl-h-c++.cc: Likewise.
26056         * tests/test-getopt.c: Likewise.
26057         * tests/test-getopt.h: Likewise.
26058         * tests/test-langinfo-c++.cc: Likewise.
26059         * tests/test-locale-c++.cc: Likewise.
26060         * tests/test-math-c++.cc: Likewise.
26061         * tests/test-pty-c++.cc: Likewise.
26062         * tests/test-search-c++.cc: Likewise.
26063         * tests/test-signal-c++.cc: Likewise.
26064         * tests/test-spawn-c++.cc: Likewise.
26065         * tests/test-stdio-c++.cc: Likewise.
26066         * tests/test-stdlib-c++.cc: Likewise.
26067         * tests/test-string-c++.cc: Likewise.
26068         * tests/test-sys_ioctl-c++.cc: Likewise.
26069         * tests/test-sys_select-c++.cc: Likewise.
26070         * tests/test-sys_socket-c++.cc: Likewise.
26071         * tests/test-sys_stat-c++.cc: Likewise.
26072         * tests/test-sys_time-c++.cc: Likewise.
26073         * tests/test-time-c++.cc: Likewise.
26074         * tests/test-unistd-c++.cc: Likewise.
26075         * tests/test-wchar-c++.cc: Likewise.
26076         * tests/uninorm/test-u8-nfc.c: Likewise.
26077         * tests/uninorm/test-u8-nfd.c: Likewise.
26078         * tests/uninorm/test-u8-nfkc.c: Likewise.
26079         * tests/uninorm/test-u8-nfkd.c: Likewise.
26080         * tests/uninorm/test-u16-nfc.c: Likewise.
26081         * tests/uninorm/test-u16-nfd.c: Likewise.
26082         * tests/uninorm/test-u16-nfkc.c: Likewise.
26083         * tests/uninorm/test-u16-nfkd.c: Likewise.
26084         * tests/uninorm/test-u32-nfc.c: Likewise.
26085         * tests/uninorm/test-u32-nfc-big.c: Likewise.
26086         * tests/uninorm/test-u32-nfd.c: Likewise.
26087         * tests/uninorm/test-u32-nfd-big.c: Likewise.
26088         * tests/uninorm/test-u32-nfkc.c: Likewise.
26089         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
26090         * tests/uninorm/test-u32-nfkd.c: Likewise.
26091         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
26092         * tests/uninorm/test-u32-normalize-big.c: Likewise.
26093
26094 2010-03-27  Bruno Haible  <bruno@clisp.org>
26095
26096         Distinguish two kinds of module indicators.
26097         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
26098         gl_MODULE_INDICATOR.
26099         (gl_MODULE_INDICATOR): New macro.
26100         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
26101         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
26102         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
26103         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
26104         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
26105         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
26106         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
26107         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
26108         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
26109         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
26110         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
26111         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
26112         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
26113         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
26114         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
26115         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
26116         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
26117         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
26118         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
26119         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
26120         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
26121         * modules/cloexec (configure.ac): Likewise.
26122         * modules/getopt-gnu (configure.ac): Likewise.
26123         * modules/uninorm/u8-normalize (configure.ac): Likewise.
26124         * modules/uninorm/u16-normalize (configure.ac): Likewise.
26125         * modules/uninorm/u32-normalize (configure.ac): Likewise.
26126         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
26127
26128 2010-03-27  Bruno Haible  <bruno@clisp.org>
26129
26130         New module description field 'Comment'.
26131         * gnulib-tool: New option --extract-comment.
26132         (func_usage): Document it.
26133         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
26134         (func_get_comment): New function.
26135         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
26136
26137 2010-03-27  Bruno Haible  <bruno@clisp.org>
26138
26139         Addendum to 2010-02-07 commit.
26140         * gnulib-tool (func_usage): Document --extract-applicability option.
26141
26142 2010-03-27  Bruno Haible  <bruno@clisp.org>
26143
26144         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
26145         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
26146         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
26147         rather than link errors.
26148
26149 2010-03-27  Bruno Haible  <bruno@clisp.org>
26150
26151         Avoid side effects from tests-related modules on the compilation of lib.
26152         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
26153         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
26154         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
26155         parameter. Emit into AM_CPPFLAGS a definition of the designated C
26156         macro.
26157         (func_import): Define a witness macro. Assign it a value that depends
26158         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
26159         tests-related modules.
26160         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
26161         Reported by Jim Meyering.
26162
26163 2010-03-27  Bruno Haible  <bruno@clisp.org>
26164
26165         Factorize common .m4 code.
26166         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
26167         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
26168         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
26169         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
26170         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
26171         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
26172         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
26173         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
26174         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
26175         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
26176         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
26177         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
26178         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
26179         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
26180         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
26181         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
26182         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
26183         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
26184         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
26185         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
26186         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
26187         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
26188         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
26189         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
26190         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
26191         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
26192         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
26193         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
26194         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
26195         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
26196         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
26197         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
26198
26199 2010-03-27  Bruno Haible  <bruno@clisp.org>
26200
26201         Fix a compilation error on Cygwin with g++ >= 4.3.
26202         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
26203         if it is undefined or if we alias it to chmod.
26204         (lstat): Don't warn about the use of this function if it is undefined
26205         or if we alias it to stat.
26206         Reported by Simon Josefsson.
26207
26208 2010-03-27  Bruno Haible  <bruno@clisp.org>
26209
26210         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
26211         * modules/getlogin (configure.ac): Update.
26212
26213         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
26214         * modules/getlogin_r (configure.ac): Update.
26215
26216         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
26217         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
26218         * modules/inet_ntop (configure.ac): Update.
26219
26220         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
26221         * modules/inet_pton (configure.ac): Update.
26222
26223         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
26224         * modules/mbslen (configure.ac): Update.
26225
26226         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
26227         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
26228         * modules/forkpty (configure.ac): Update.
26229         * modules/openpty (configure.ac): Update.
26230
26231 2010-03-26  Simon Josefsson  <simon@josefsson.org>
26232
26233         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
26234         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
26235
26236 2010-03-25  Eric Blake  <eblake@redhat.com>
26237
26238         maint: use pragma consistently across replacement headers
26239         * lib/ctype.in.h (system_header): Hoist for consistent placement.
26240         * lib/dirent.in.h (system_header): Likewise.
26241         * lib/errno.in.h (system_header): Likewise.
26242         * lib/float.in.h (system_header): Likewise.
26243         * lib/getopt.in.h (system_header): Likewise.
26244         * lib/iconv.in.h (system_header): Likewise.
26245         * lib/inttypes.in.h (system_header): Likewise.
26246         * lib/langinfo.in.h (system_header): Likewise.
26247         * lib/locale.in.h (system_header): Likewise.
26248         * lib/math.in.h (system_header): Likewise.
26249         * lib/netdb.in.h (system_header): Likewise.
26250         * lib/netinet_in.in.h (system_header): Likewise.
26251         * lib/pty.in.h (system_header): Likewise.
26252         * lib/sched.in.h (system_header): Likewise.
26253         * lib/se-selinux.in.h (system_header): Likewise.
26254         * lib/search.in.h (system_header): Likewise.
26255         * lib/spawn.in.h (system_header): Likewise.
26256         * lib/stdarg.in.h (system_header): Likewise.
26257         * lib/stdint.in.h (system_header): Likewise.
26258         * lib/string.in.h (system_header): Likewise.
26259         * lib/strings.in.h (system_header): Likewise.
26260         * lib/sys_file.in.h (system_header): Likewise.
26261         * lib/sys_ioctl.in.h (system_header): Likewise.
26262         * lib/sys_socket.in.h (system_header): Likewise.
26263         * lib/sys_times.in.h (system_header): Likewise.
26264         * lib/sys_utsname.in.h (system_header): Likewise.
26265         * lib/sys_wait.in.h (system_header): Likewise.
26266         * lib/sysexits.in.h (system_header): Likewise.
26267         * lib/unistd.in.h (system_header): Likewise.
26268         * lib/wctype.in.h (system_header): Likewise.
26269
26270         arpa/inet: fix mingw compilation warning
26271         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
26272         Reported by Matthew Bolte.
26273
26274 2010-03-25  Bruno Haible  <bruno@clisp.org>
26275
26276         Avoid collision between gnulib wrapper and libintl wrapper.
26277         * lib/printf.c (printf): Don't define if a printf wrapper is already
26278         defined in intl/printf.c.
26279         Reported by Michel Boaventura <michel@michelboaventura.com>.
26280
26281 2010-03-25  Bruno Haible  <bruno@clisp.org>
26282
26283         Use ANSI C.
26284         * lib/readutmp.h (getutent): Provide ANSI C prototype.
26285
26286 2010-03-25  Bruno Haible  <bruno@clisp.org>
26287
26288         Minor formatting changes.
26289         * lib/acosl.c: Insert space before function argument list.
26290         * lib/argz.c: Likewise.
26291         * lib/asinl.c: Likewise.
26292         * lib/expl.c: Likewise.
26293         * lib/gen-uni-tables.c: Likewise.
26294         * lib/gettext.h: Likewise.
26295         * lib/glthread/lock.h: Likewise.
26296         * lib/tanl.c: Likewise.
26297         * lib/uniname/uniname.c: Likewise.
26298         * tests/test-idpriv-drop.c: Likewise.
26299         * tests/test-idpriv-droptemp.c: Likewise.
26300         * tests/test-lock.c: Likewise.
26301         * tests/test-tls.c: Likewise.
26302         * lib/argp-help.c: Insert space before function-like macro argument
26303         list.
26304         * lib/memcmp.c: Likewise.
26305         * tests/test-base64.c: Likewise.
26306         * lib/localename.c: Insert space before sizeof's argument list.
26307         * lib/safe-alloc.h: Likewise.
26308         * lib/file-set.h: Insert space before macro argument list.
26309         * tests/test-argp.c: Likewise.
26310         * lib/argp-namefrob.h: Insert space before function parameter list.
26311         * lib/getaddrinfo.c: Likewise.
26312         * lib/netdb.in.h: Likewise.
26313         * lib/parse-duration.h: Likewise.
26314         * lib/parse-duration.c: Likewise.
26315         * lib/poll.c: Likewise.
26316         * lib/select.c: Likewise.
26317         * lib/trim.h: Likewise.
26318         * tests/test-usleep.c: Likewise.
26319         * lib/ldexpl.c: Insert space before function parameter list and before
26320         function argument list.
26321         * lib/logl.c: Likewise.
26322         * lib/sqrtl.c: Likewise.
26323         * lib/trim.c: Likewise.
26324         * lib/cosl.c: Use GNU style indentation. Insert space before function
26325         argument list.
26326         * lib/sinl.c: Likewise.
26327         * lib/tsearch.c: Insert space after 'for'.
26328         Reported by Jim Meyering.
26329
26330 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
26331
26332         * maint.mk (sc_Wundef_boolean): Check for the presence of the
26333         config header before grepping, as it's not present before
26334         autoreconf/configure are run.  Reported by Simon Josefsson.
26335
26336 2010-03-23  Bruno Haible  <bruno@clisp.org>
26337
26338         pt_chown: Make it work with automake < 1.11.
26339         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
26340         Reported by Simon Josefsson.
26341
26342 2010-03-23  Bruno Haible  <bruno@clisp.org>
26343
26344         pt_chown: Don't depend on GPLed modules.
26345         * lib/pt_chown.c: Don't include idpriv.h.
26346         (main): Don't drop privileges.
26347         * modules/pt_chown (Depends-on): Remove idpriv-drop.
26348         Reported by Simon Josefsson.
26349
26350 2010-03-24  Simon Josefsson  <simon@josefsson.org>
26351
26352         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
26353         suggestions from karl@freefriends.org (Karl Berry).
26354
26355 2010-03-22  Eric Blake  <eblake@redhat.com>
26356
26357         gethostname: further tweaks
26358         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
26359         are overriding gethostname.
26360         Suggested by Bruno Haible.
26361
26362 2010-03-21  Bruno Haible  <bruno@clisp.org>
26363
26364         Fix comments.
26365         * lib/forkpty.c (rpl_forkpty): Fix comment.
26366         * lib/openpty.c (rpl_openpty): Likewise.
26367         Reported by Eric Blake.
26368
26369 2010-03-22  Eric Blake  <eblake@redhat.com>
26370
26371         gethostname: fix build on mingw
26372         * lib/unistd.in.h (includes): Work around fact that mingw
26373         <winsock2.h> re-includes <unistd.h>, by avoiding any
26374         redeclarations if we are being included by <winsock2.h>.
26375         Reported by Matthias Bolte.
26376
26377 2010-03-21  Bruno Haible  <bruno@clisp.org>
26378
26379         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
26380         * lib/forkpty.c (forkpty): New replacement function, from glibc with
26381         modifications.
26382         * lib/pty.in.h (forkpty): Update declaration. Add comments.
26383         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
26384         provide the replacement.
26385         * modules/forkpty (Depends-on): Add openpty, login_tty.
26386         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
26387         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
26388         * doc/glibc-functions/forkpty.texi: More supported platforms.
26389         * config/srclist.txt: Add forkpty.c (commented).
26390
26391 2010-03-21  Bruno Haible  <bruno@clisp.org>
26392
26393         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
26394         (Makefile.am): Verify that PTY_LIB is defined.
26395
26396         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
26397
26398 2010-03-21  Bruno Haible  <bruno@clisp.org>
26399
26400         Tests for module 'login_tty'.
26401         * modules/login_tty-tests: New file.
26402         * tests/test-login_tty.c: New file.
26403
26404         New module 'login_tty'.
26405         * lib/login_tty.c: New file.
26406         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
26407         * modules/login_tty: New file.
26408         * doc/glibc-functions/login_tty.texi: Mention the new module.
26409
26410 2010-03-21  Bruno Haible  <bruno@clisp.org>
26411
26412         login_tty: Documentation.
26413         * doc/glibc-functions/login_tty.texi: New file.
26414         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
26415
26416 2010-03-21  Bruno Haible  <bruno@clisp.org>
26417
26418         pty: Consistent macro naming.
26419         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
26420         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
26421         * modules/pty (configure.ac): Update.
26422
26423 2010-03-21  Bruno Haible  <bruno@clisp.org>
26424
26425         Tests for openpty: Make stricter.
26426         * tests/test-openpty.c (main): Add test of canonical processing and
26427         erase.
26428         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
26429
26430         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
26431         * lib/openpty.c (openpty): New replacement function.
26432         * lib/pty.in.h: Include <termios.h>.
26433         (openpty): Update declaration. Add comments.
26434         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
26435         is not declared, arrange to provide the replacement. Check for _getpty
26436         and posix_openpt.
26437         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
26438         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
26439         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
26440         * modules/pty-tests (test_pty_c___LDADD): New variable.
26441         * doc/glibc-functions/openpty.texi: More supported platforms.
26442
26443 2010-03-21  Bruno Haible  <bruno@clisp.org>
26444
26445         setenv: Tweaks.
26446         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
26447         the test program.
26448         * doc/posix-functions/setenv.texi: Update platforms list.
26449
26450 2010-03-21  Bruno Haible  <bruno@clisp.org>
26451
26452         New module 'unlockpt'.
26453         * lib/unlockpt.c: New file, from glibc with modifications.
26454         * m4/unlockpt.m4: New file.
26455         * modules/unlockpt: New file.
26456         * lib/stdlib.in.h (unlockpt): New declaration.
26457         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
26458         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
26459         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
26460         HAVE_UNLOCKPT.
26461         * doc/posix-functions/unlockpt.texi: Mention the new module.
26462         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
26463         * config/srclist.txt: Add unlockpt.c (commented).
26464
26465 2010-03-21  Jim Meyering  <meyering@redhat.com>
26466
26467         maint.mk: prohibit inclusion of "intprops.h" without use
26468         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
26469
26470 2010-03-21  Bruno Haible  <bruno@clisp.org>
26471
26472         New module 'grantpt'.
26473         * lib/grantpt.c: New file, from glibc with modifications.
26474         * m4/grantpt.m4: New file.
26475         * modules/grantpt: New file.
26476         * lib/stdlib.in.h (grantpt): New declaration.
26477         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
26478         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
26479         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
26480         HAVE_GRANTPT.
26481         * doc/posix-functions/grantpt.texi: Mention the new module.
26482         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
26483         * config/srclist.txt: Add grantpt.c (commented).
26484
26485 2010-03-21  Bruno Haible  <bruno@clisp.org>
26486
26487         New module 'pt_chown'.
26488         * lib/pt_chown.c: New file, from glibc with modifications.
26489         * lib/pty-private.h: New file, from glibc with modifications.
26490         * modules/pt_chown: New file.
26491         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
26492
26493 2010-03-21  Bruno Haible  <bruno@clisp.org>
26494
26495         Tests for module 'ptsname'.
26496         * modules/ptsname-tests: New file.
26497         * tests/test-ptsname.c: New file.
26498
26499         New module 'ptsname'.
26500         * lib/ptsname.c: New file, from glibc with modifications.
26501         * m4/ptsname.m4: New file.
26502         * modules/ptsname: New file.
26503         * lib/stdlib.in.h (ptsname): New declaration.
26504         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
26505         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
26506         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
26507         HAVE_PTSNAME.
26508         * doc/posix-functions/ptsname.texi: Mention the new module.
26509         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
26510         * config/srclist.txt: Add ptsname.c (commented).
26511
26512 2010-03-21  Bruno Haible  <bruno@clisp.org>
26513
26514         Tests for module 'ttyname_r'.
26515         * modules/ttyname_r-tests: New file.
26516         * tests/test-ttyname_r.c: New file.
26517
26518         New module 'ttyname_r'.
26519         * lib/ttyname_r.c: New file.
26520         * m4/ttyname_r.m4: New file.
26521         * modules/ttyname_r: New file.
26522         * lib/unistd.in.h (ttyname_r): New declaration.
26523         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
26524         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
26525         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
26526         HAVE_TTYNAME_R.
26527         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
26528         * doc/posix-functions/ttyname_r.texi: Mention the new module.
26529
26530 2010-03-20  Bruno Haible  <bruno@clisp.org>
26531
26532         signal: Undefine macro definitions in C++ mode.
26533         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
26534         sigfillset): Undefine macro definitions from the system header in C++
26535         mode.
26536         Reported by John W. Eaton <jwe@gnu.org>.
26537
26538 2010-03-20  Bruno Haible  <bruno@clisp.org>
26539
26540         Ensure no #include statements inside extern "C" { ... }.
26541         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
26542         contain #include statements.
26543         * lib/time.in.h: Likewise.
26544
26545 2010-03-20  Bruno Haible  <bruno@clisp.org>
26546
26547         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
26548         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
26549         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
26550         Reported by John W. Eaton <jwe@gnu.org>.
26551
26552 2010-03-20  Bruno Haible  <bruno@clisp.org>
26553
26554         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
26555         Reported by Jim Meyering.
26556
26557 2010-03-20  Bruno Haible  <bruno@clisp.org>
26558
26559         pipe: Set errno upon failure.
26560         * lib/pipe.h: Specify that when -1 is returned, errno is set.
26561         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
26562         errno value in error message.
26563
26564 2010-03-20  Bruno Haible  <bruno@clisp.org>
26565             Jim Meyering  <meyering@redhat.com>
26566
26567         lchown: Avoid "unused variable" warning.
26568         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
26569
26570 2010-03-20  Bruno Haible  <bruno@clisp.org>
26571
26572         Work around unlink() bug on MacOS X 10.5.6.
26573         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
26574         attempting to unlink a parent directory.
26575         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
26576         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
26577         activate for the replacement function.
26578         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
26579
26580 2010-03-20  Bruno Haible  <bruno@clisp.org>
26581
26582         Fix link errors on Solaris 8.
26583         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
26584         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
26585
26586 2010-03-19  Jim Meyering  <meyering@redhat.com>
26587
26588         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
26589         The _LIBC implementation of build_range_exp correctly honors the
26590         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
26591         However, the non-_LIBC implementation would ignore that syntax-bit
26592         flag and return REG_ERANGE unconditionally.
26593         This change makes it honor that flag.
26594         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
26595         Make two pointer parameters "const".
26596         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
26597         (parse_bracket_exp): Update caller.
26598
26599         regex.m4: correct the reversed range endpoint ([b-a]) test
26600         * m4/regex.m4: When requiring that [b-a] evoke failure,
26601         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
26602         test pass once again for x86-based systems.
26603
26604 2010-03-19  Bruno Haible  <bruno@clisp.org>
26605
26606         scandir: Fix link error on Solaris 8.
26607         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
26608         macros.
26609
26610 2010-03-19  Bruno Haible  <bruno@clisp.org>
26611
26612         getusershell: Fix documentation.
26613         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
26614         module.
26615         * doc/glibc-functions/setusershell.texi: Likewise.
26616
26617         getusershell: Provide declaration, missing on Solaris 9.
26618         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
26619         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
26620         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
26621         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
26622         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26623         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
26624         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
26625         HAVE_GETUSERSHELL.
26626         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
26627
26628 2010-03-19  Bruno Haible  <bruno@clisp.org>
26629
26630         wctype: Provide iswblank function.
26631         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
26632         exists and is fine.
26633         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
26634         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
26635         * tests/test-wctype.c (main): Re-enable the iswblank tests.
26636         * doc/posix-functions/iswblank.texi: Update.
26637
26638 2010-03-19  Bruno Haible  <bruno@clisp.org>
26639
26640         Tests of module 'pty' in C++ mode.
26641         * modules/pty-tests: New file.
26642         * tests/test-pty-c++.cc: New file.
26643         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26644
26645 2010-03-19  Eric Blake  <eblake@redhat.com>
26646
26647         logb: fix documentation
26648         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
26649         1.5 declaration bug.
26650
26651         forkpty, openpty: prefer glibc's const-safe prototype
26652         * lib/forkpty.c (rpl_forkpty): New file.
26653         * lib/openpty.c (rpl_openpty): Likewise.
26654         * modules/forkpty (Files): Distribute it.
26655         * modules/openpty (Files): Likewise.
26656         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
26657         check...
26658         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
26659         replacement for for non-const BSD signature.
26660         * modules/pty (Makefile.am): Substitute witnesses.
26661         * lib/pty.in.h (forkpty, openpty): Declare replacements.
26662         * tests/test-forkpty.c: Update signature check.
26663         * tests/test-openpty.c: Likewise.
26664         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
26665         * doc/glibc-functions/openpty.texi (openpty): Likewise.
26666
26667         forkpty, openpty: split functions into new modules
26668         * modules/pty (Makefile.am): Substitute new witnesses.
26669         (Libraries): Move library detection...
26670         * modules/forkpty: ...into new module.
26671         * modules/openpty: Another new module.
26672         * modules/pty-tests: Rename and split...
26673         * modules/forkpty-tests: ...to this...
26674         * modules/openpty-tests: ...and this.
26675         * tests/test-pty.c: Rename and split...
26676         * tests/test-forkpty.c: ...to this...
26677         * tests/test-openpty.c: ...and this.
26678         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
26679         (gl_PTY): Split library searching...
26680         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
26681         (gl_FORKPTY, gl_OPENPTY): New macros.
26682         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
26683         * NEWS: Mention the split.
26684         * MODULES.html.sh (Misc): Document the modules.
26685         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
26686         * doc/glibc-functions/openpty.texi (openpty): Likewise.
26687
26688         pty: improve replacement header
26689         * lib/pty.in.h: New file.
26690         * modules/pty (Files): Ship it.
26691         (Makefile.am): Always build replacement.
26692         * m4/pty.m4: Rename...
26693         * m4/pty_h.m4: ...to this.
26694         (gl_PTY): Modernize setting of witness macros; update check of
26695         forkpty to take proper advantage of cache.
26696         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
26697
26698         getopt: avoid compiler warning
26699         * lib/getopt.c (attribute_hidden): Remove unused macro.
26700
26701 2010-03-18  Bruno Haible  <bruno@clisp.org>
26702
26703         Fix link errors on Solaris 8.
26704         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
26705         * modules/search-tests (test_search_c___LDADD): Likewise.
26706         * modules/signal-tests (test_signal_c___LDADD): Likewise.
26707         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
26708         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
26709         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
26710         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
26711         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
26712         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
26713
26714 2010-03-18  Bruno Haible  <bruno@clisp.org>
26715
26716         Fix bug introduced on 2010-03-14.
26717         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
26718         (gl_SPAWN_H): Require it.
26719         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
26720         Reported by Simon Josefsson.
26721
26722 2010-03-18  Bruno Haible  <bruno@clisp.org>
26723
26724         Fix typo introduced on 2009-12-31.
26725         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
26726         posix_spawn_file_actions_adddup2.
26727
26728 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
26729         and Eric Blake  <eblake@redhat.com>
26730
26731         test-vc-list-files-git: make more robust
26732         * tests/test-vc-list-files-git.sh: Unset problematic environment
26733         variables.  Chain commands together.
26734
26735 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
26736
26737         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
26738         `AC_CHECK_DECL' invocation.
26739
26740 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
26741
26742         * lib/inttostr.c (inttostr): Make sure the invocation of verify
26743         appears before executable statements. Suggested by Petr Sumbera
26744         <Petr.Sumbera@Sun.COM>.
26745
26746 2010-03-14  Bruno Haible  <bruno@clisp.org>
26747
26748         * tests/test-flock.c (test_exclusive): Comment out a test that causes
26749         portability problems. Instead use a simpler test.
26750         (main): Check that invalid arguments are rejected only on Linux.
26751
26752 2010-03-14  Bruno Haible  <bruno@clisp.org>
26753
26754         Fix bug introduced on 2009-12-31.
26755         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
26756         gl_PREREQ_SYS_H_WINSOCK2 always.
26757         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
26758         SYS_SOCKET_H variable.
26759         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
26760         Update comments.
26761         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
26762         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26763         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26764         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26765         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
26766
26767 2010-03-14  Bruno Haible  <bruno@clisp.org>
26768
26769         Fix values returned by sinl, cosl.
26770         * lib/trigl.h: Add specification comments.
26771         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
26772         that combines the values from the precomputed table with the values of
26773         the Chebyshev polynomials.
26774
26775 2010-03-14  Bruno Haible  <bruno@clisp.org>
26776
26777         Fix compilation error when modules 'posix_spawn[p]' are not used.
26778         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
26779         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
26780
26781 2010-03-14  Bruno Haible  <bruno@clisp.org>
26782
26783         Fix compilation error on mingw when module 'time_r' is not used.
26784         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
26785         is 1.
26786         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
26787         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26788         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
26789         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
26790
26791 2010-03-14  Bruno Haible  <bruno@clisp.org>
26792
26793         Fix compilation error with Sun C.
26794         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
26795         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
26796         instead of GCC specific ULONG_LONG_MAX.
26797         * lib/xstrtoll.c: Likewise.
26798         * lib/xstrtoull.c: Likewise.
26799
26800 2010-03-13  Bruno Haible  <bruno@clisp.org>
26801
26802         Allow the user to disable C++ code and tests.
26803         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
26804         (gl_PROG_ANSI_CXX): Require it.
26805
26806 2010-03-13  Bruno Haible  <bruno@clisp.org>
26807
26808         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
26809         cases.
26810
26811 2010-03-13  Bruno Haible  <bruno@clisp.org>
26812
26813         Test that gnulib does not break the standard C++ headers.
26814         * tests/test-locale-c++2.cc: New file.
26815         * modules/locale-tests (Files): Add it.
26816         (Makefile.am): Compile it for test-locale-c++.
26817         * tests/test-math-c++2.cc: New file.
26818         * modules/math-tests (Files): Add it.
26819         (Makefile.am): Compile it for test-math-c++.
26820         * tests/test-signal-c++2.cc: New file.
26821         * modules/signal-tests (Files): Add it.
26822         (Makefile.am): Compile it for test-signal-c++.
26823         * tests/test-stdio-c++2.cc: New file.
26824         * modules/stdio-tests (Files): Add it.
26825         (Makefile.am): Compile it for test-stdio-c++.
26826         * tests/test-stdlib-c++2.cc: New file.
26827         * modules/stdlib-tests (Files): Add it.
26828         (Makefile.am): Compile it for test-stdlib-c++.
26829         * tests/test-string-c++2.cc: New file.
26830         * modules/string-tests (Files): Add it.
26831         (Makefile.am): Compile it for test-string-c++.
26832         * tests/test-time-c++2.cc: New file.
26833         * modules/time-tests (Files): Add it.
26834         (Makefile.am): Compile it for test-time-c++.
26835         Reported by John W. Eaton <jwe@gnu.org>.
26836
26837 2010-03-13  Bruno Haible  <bruno@clisp.org>
26838
26839         * gnulib-tool (func_usage): Clarify which options are available for
26840         --create-testdir and --create-megatestdir.
26841
26842 2010-03-13  Bruno Haible  <bruno@clisp.org>
26843
26844         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
26845         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
26846         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
26847         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
26848         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
26849         when appropriate.
26850         Reported by Jim Meyering.
26851
26852 2010-03-12  Simon Josefsson  <simon@josefsson.org>
26853
26854         * gnulib-tool (func_import): Explain origin of code.
26855
26856 2010-03-12  Bruno Haible  <bruno@clisp.org>
26857
26858         Fix problem with automake's definition of CXXLINK.
26859         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
26860         Reported by Simon Josefsson and Ludovic Courtès.
26861
26862 2010-03-12  Bruno Haible  <bruno@clisp.org>
26863
26864         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
26865         stable releases.
26866
26867 2010-03-11  Bruno Haible  <bruno@clisp.org>
26868
26869         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
26870         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
26871         whether the system provides one variant or multiple variants of the
26872         function.
26873         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
26874         C++ compilers.
26875         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
26876         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
26877         Reported by Jim Meyering.
26878
26879 2010-03-09  Simon Josefsson  <simon@josefsson.org>
26880
26881         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
26882
26883 2010-03-08  Bruno Haible  <bruno@clisp.org>
26884
26885         gnulib-tool: Add support for --libtool in --create-testdir.
26886         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
26887         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
26888
26889 2010-03-08  Eric Blake  <eblake@redhat.com>
26890
26891         gnulib-tool.texi: mention possibility of git submodule
26892         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
26893         submodules.
26894         * doc/.gitignore: Ignore another generated file.
26895
26896 2010-03-08  Karl Berry  <karl@gnu.org>
26897
26898         * doc/gnulib-tool.texi (VCS Issues): Mention third option
26899         of committing gnulib files while skipping others.
26900
26901 2010-03-07  Bruno Haible  <bruno@clisp.org>
26902
26903         Tests of module 'wctype' in C++ mode.
26904         * tests/test-wctype-c++.cc: New file.
26905         * modules/wctype-tests (Files): Add it and tests/signature.h.
26906         (Depends-on): Add ansi-c++-opt.
26907         (Makefile.am): Arrange to compile and run test-wctype-c++.
26908
26909         Tests of module 'wchar' in C++ mode.
26910         * tests/test-wchar-c++.cc: New file.
26911         * modules/wchar-tests (Files): Add it and tests/signature.h.
26912         (Depends-on): Add ansi-c++-opt.
26913         (Makefile.am): Arrange to compile and run test-wchar-c++.
26914         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
26915         gl_MODULE_INDICATOR.
26916
26917         Tests of module 'unistd' in C++ mode.
26918         * tests/test-unistd-c++.cc: New file.
26919         * modules/unistd-tests (Files): Add it and tests/signature.h.
26920         (Depends-on): Add ansi-c++-opt.
26921         (Makefile.am): Arrange to compile and run test-unistd-c++.
26922         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
26923         gl_MODULE_INDICATOR.
26924
26925         Tests of module 'time' in C++ mode.
26926         * tests/test-time-c++.cc: New file.
26927         * modules/time-tests (Files): Add it and tests/signature.h.
26928         (Depends-on): Add ansi-c++-opt.
26929         (Makefile.am): Arrange to compile and run test-time-c++.
26930         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26931
26932         Tests of module 'sys_time' in C++ mode.
26933         * tests/test-sys_time-c++.cc: New file.
26934         * modules/sys_time-tests (Files): Add it and tests/signature.h.
26935         (Depends-on): Add ansi-c++-opt.
26936         (Makefile.am): Arrange to compile and run test-sys_time-c++.
26937         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
26938         gl_MODULE_INDICATOR.
26939
26940         Tests of module 'sys_stat' in C++ mode.
26941         * tests/test-sys_stat-c++.cc: New file.
26942         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
26943         (Depends-on): Add ansi-c++-opt.
26944         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
26945         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
26946         gl_MODULE_INDICATOR.
26947
26948         Tests of module 'sys_socket' in C++ mode.
26949         * tests/test-sys_socket-c++.cc: New file.
26950         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
26951         (Depends-on): Add ansi-c++-opt.
26952         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
26953         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
26954         gl_MODULE_INDICATOR.
26955
26956         Tests of module 'sys_select' in C++ mode.
26957         * tests/test-sys_select-c++.cc: New file.
26958         * modules/sys_select-tests (Files): Add it and tests/signature.h.
26959         (Depends-on): Add ansi-c++-opt.
26960         (Makefile.am): Arrange to compile and run test-sys_select-c++.
26961         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
26962         gl_MODULE_INDICATOR.
26963
26964         Tests of module 'sys_ioctl' in C++ mode.
26965         * tests/test-sys_ioctl-c++.cc: New file.
26966         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
26967         (Depends-on): Add ansi-c++-opt.
26968         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
26969         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
26970         gl_MODULE_INDICATOR.
26971
26972         Tests of module 'string' in C++ mode.
26973         * tests/test-string-c++.cc: New file.
26974         * modules/string-tests (Files): Add it and tests/signature.h.
26975         (Depends-on): Add ansi-c++-opt.
26976         (Makefile.am): Arrange to compile and run test-string-c++.
26977         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
26978         gl_MODULE_INDICATOR.
26979
26980         Tests of module 'stdlib' in C++ mode.
26981         * tests/test-stdlib-c++.cc: New file.
26982         * modules/stdlib-tests (Files): Add it and tests/signature.h.
26983         (Depends-on): Add ansi-c++-opt.
26984         (Makefile.am): Arrange to compile and run test-stdlib-c++.
26985         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
26986         gl_MODULE_INDICATOR.
26987
26988         Tests of module 'stdio' in C++ mode.
26989         * tests/test-stdio-c++.cc: New file.
26990         * modules/stdio-tests (Files): Add it and tests/signature.h.
26991         (Depends-on): Add ansi-c++-opt.
26992         (Makefile.am): Arrange to compile and run test-stdio-c++.
26993         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
26994         gl_MODULE_INDICATOR.
26995
26996         Tests of module 'spawn' in C++ mode.
26997         * tests/test-spawn-c++.cc: New file.
26998         * modules/spawn-tests (Files): Add it and tests/signature.h.
26999         (Depends-on): Add ansi-c++-opt.
27000         (Makefile.am): Arrange to compile and run test-spawn-c++.
27001         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
27002         gl_MODULE_INDICATOR.
27003
27004         Tests of module 'signal' in C++ mode.
27005         * tests/test-signal-c++.cc: New file.
27006         * modules/signal-tests (Files): Add it and tests/signature.h.
27007         (Depends-on): Add ansi-c++-opt.
27008         (Makefile.am): Arrange to compile and run test-signal-c++.
27009         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
27010         gl_MODULE_INDICATOR.
27011
27012         Tests of module 'search' in C++ mode.
27013         * tests/test-search-c++.cc: New file.
27014         * modules/search-tests (Files): Add it and tests/signature.h.
27015         (Depends-on): Add ansi-c++-opt.
27016         (Makefile.am): Arrange to compile and run test-search-c++.
27017         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
27018         gl_MODULE_INDICATOR.
27019
27020         Tests of module 'math' in C++ mode.
27021         * tests/test-math-c++.cc: New file.
27022         * modules/math-tests (Files): Add it and tests/signature.h.
27023         (Depends-on): Add ansi-c++-opt.
27024         (Makefile.am): Arrange to compile and run test-math-c++.
27025         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27026
27027         Tests of module 'locale' in C++ mode.
27028         * tests/test-locale-c++.cc: New file.
27029         * modules/locale-tests (Files): Add it and tests/signature.h.
27030         (Depends-on): Add ansi-c++-opt.
27031         (Makefile.am): Arrange to compile and run test-locale-c++.
27032         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
27033         gl_MODULE_INDICATOR.
27034
27035         Tests of module 'langinfo' in C++ mode.
27036         * tests/test-langinfo-c++.cc: New file.
27037         * modules/langinfo-tests (Files): Add it and tests/signature.h.
27038         (Depends-on): Add ansi-c++-opt.
27039         (Makefile.am): Arrange to compile and run test-langinfo-c++.
27040         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
27041         gl_MODULE_INDICATOR.
27042
27043         Tests of module 'iconv-h' in C++ mode.
27044         * tests/test-iconv-h-c++.cc: New file.
27045         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
27046         (Depends-on): Add ansi-c++-opt.
27047         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
27048
27049         Tests of module 'glob' in C++ mode.
27050         * tests/test-glob-c++.cc: New file.
27051         * modules/glob-tests (Files): Add it.
27052         (Depends-on): Add ansi-c++-opt.
27053         (Makefile.am): Arrange to compile and run test-glob-c++.
27054
27055         Tests of module 'fcntl-h' in C++ mode.
27056         * tests/test-fcntl-h-c++.cc: New file.
27057         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
27058         (Depends-on): Add ansi-c++-opt.
27059         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
27060         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
27061         gl_MODULE_INDICATOR.
27062
27063         Tests of module 'dirent' in C++ mode.
27064         * tests/test-dirent-c++.cc: New file.
27065         * modules/dirent-tests (Files): Add it and tests/signature.h.
27066         (Depends-on): Add ansi-c++-opt.
27067         (Makefile.am): Arrange to compile and run test-dirent-c++.
27068         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
27069         gl_MODULE_INDICATOR.
27070
27071         New module 'ansi-c++-opt'.
27072         * modules/ansi-c++-opt: New file.
27073         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
27074
27075         Document C++ namespace mode.
27076         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
27077
27078         wctype: Avoid #define replacements in C++ mode.
27079         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
27080         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
27081         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
27082         In C++, define a namespaced alias symbol.
27083         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
27084         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
27085         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
27086         rule.
27087
27088         wchar: Avoid #define replacements in C++ mode.
27089         * lib/wchar.in.h: Include c++defs.h.
27090         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
27091         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
27092         symbol.
27093         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
27094         * modules/wchar (Depends-on): Add c++defs.
27095         (Makefile.am): Update wchar.h rule.
27096
27097         unistd: Avoid #define replacements in C++ mode.
27098         * lib/unistd.in.h: Include c++defs.h.
27099         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
27100         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
27101         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
27102         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
27103         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
27104         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
27105         symbol.
27106         (environ): Update.
27107         * modules/unistd (Depends-on): Add c++defs.
27108         (Makefile.am): Update unistd.h rule.
27109
27110         time: Avoid #define replacements in C++ mode.
27111         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
27112         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
27113         define a namespaced alias symbol.
27114         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
27115         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
27116         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
27117         * modules/time (Depends-on): Add c++defs, warn-on-use.
27118         (Makefile.am): Update time.h rule.
27119         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
27120         * modules/nanosleep (configure.ac): Likewise.
27121         * modules/strptime (configure.ac): Likewise.
27122         * modules/timegm (configure.ac): Likewise.
27123
27124         sys_time: Avoid #define replacements in C++ mode.
27125         * lib/sys_time.in.h: Include c++defs.h.
27126         (gettimeofday): In C++, define a namespaced alias symbol.
27127         * modules/sys_time (Depends-on): Add c++defs.
27128         (Makefile.am): Update sys/time.h rule.
27129
27130         sys_stat: Avoid #define replacements in C++ mode.
27131         * lib/sys_stat.in.h: Include c++defs.h.
27132         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
27133         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
27134         namespaced alias symbol.
27135         In C++, define a namespaced alias symbol.
27136         * modules/sys_stat (Depends-on): Add c++defs.
27137         (Makefile.am): Update sys/stat.h rule.
27138
27139         sys_socket: Avoid #define replacements in C++ mode.
27140         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
27141         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
27142         definitions also when the system has a <sys/socket.h>.
27143         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
27144         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
27145         In C++, define a namespaced alias symbol.
27146         * modules/sys_socket (Depends-on): Add c++defs.
27147         (Makefile.am): Update sys/socket.h rule.
27148
27149         sys_select: Avoid #define replacements in C++ mode.
27150         * lib/sys_select.in.h: Include c++defs.h. Enable the function
27151         definitions also when the system has a <sys/select.h>.
27152         (select): In C++, define a namespaced alias symbol.
27153         * modules/sys_select (Depends-on): Add c++defs.
27154         (Makefile.am): Update sys/select.h rule.
27155
27156         sys_ioctl: Avoid #define replacements in C++ mode.
27157         * lib/sys_ioctl.in.h: Include c++defs.h.
27158         (ioctl): In C++, define a namespaced alias symbol.
27159         * modules/sys_ioctl (Depends-on): Add c++defs.
27160         (Makefile.am): Update sys/ioctl.h rule.
27161
27162         string: Avoid #define replacements in C++ mode.
27163         * lib/string.in.h: Include c++defs.h.
27164         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
27165         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
27166         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
27167         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
27168         strsignal, strverscmp): In C++, define a namespaced alias symbol.
27169         * modules/string (Depends-on): Add c++defs.
27170         (Makefile.am): Update string.h rule.
27171
27172         stdlib: Avoid #define replacements in C++ mode.
27173         * lib/stdlib.in.h: Include c++defs.h.
27174         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
27175         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
27176         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
27177         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
27178         symbol.
27179         * modules/stdlib (Depends-on): Add c++defs.
27180         (Makefile.am): Update stdlib.h rule.
27181
27182         stdio: Avoid #define replacements in C++ mode.
27183         * lib/stdio.in.h: Include c++defs.h.
27184         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
27185         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
27186         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
27187         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
27188         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
27189         namespaced alias symbol.
27190         * modules/stdio (Depends-on): Add c++defs.
27191         (Makefile.am): Update stdio.h rule.
27192
27193         spawn: Avoid #define replacements in C++ mode.
27194         * lib/spawn.in.h: Include c++defs.h.
27195         (posix_spawn, posix_spawnp, posix_spawnattr_init,
27196         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
27197         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
27198         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
27199         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
27200         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
27201         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
27202         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
27203         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
27204         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
27205         In C++, define a namespaced alias symbol.
27206         * modules/spawn (Depends-on): Add c++defs.
27207         (Makefile.am): Update spawn.h rule.
27208
27209         signal: Avoid #define replacements in C++ mode.
27210         * lib/signal.in.h: Include c++defs.h.
27211         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
27212         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
27213         namespaced alias symbol.
27214         * modules/signal (Depends-on): Add c++defs.
27215         (Makefile.am): Update signal.h rule.
27216
27217         search: Avoid #define replacements in C++ mode.
27218         * lib/search.in.h: Include c++defs.h.
27219         (_gl_search_compar_fn, _gl_search_action_fn): New types.
27220         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
27221         symbol.
27222         * modules/search (Depends-on): Add c++defs.
27223         (Makefile.am): Update search.h rule.
27224
27225         math: Avoid #define replacements in C++ mode.
27226         * lib/math.in.h: Include c++defs.h.
27227         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
27228         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
27229         trunc, truncl): In C++, define a namespaced alias symbol.
27230         * modules/math (Depends-on): Add c++defs.
27231         (Makefile.am): Update math.h rule.
27232
27233         locale: Avoid #define replacements in C++ mode.
27234         * lib/locale.in.h: Include c++defs.h.
27235         (duplocale): In C++, define a namespaced alias symbol.
27236         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
27237         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
27238         * modules/locale (Depends-on): Add c++defs.
27239         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
27240
27241         langinfo: Avoid #define replacements in C++ mode.
27242         * lib/langinfo.in.h: Include c++defs.h.
27243         (nl_langinfo): In C++, define a namespaced alias symbol.
27244         * modules/langinfo (Depends-on): Add c++defs.
27245         (Makefile.am): Update langinfo.h rule.
27246
27247         iconv-h: Avoid #define replacements in C++ mode.
27248         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
27249         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
27250         symbol.
27251         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
27252         whenever iconv is present.
27253         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
27254         (Makefile.am): Update iconv.h rule.
27255
27256         glob: Avoid #define replacements in C++ mode.
27257         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
27258         (_gl_glob_errfunc_fn): New type.
27259         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
27260         symbol.
27261         * modules/glob (Depends-on): Add c++defs, warn-on-use.
27262         (Makefile.am): Update glob.h rule.
27263
27264         fcntl-h: Avoid #define replacements in C++ mode.
27265         * lib/fcntl.in.h: Include c++defs.h.
27266         (fcntl, open, openat): In C++, define a namespaced alias symbol.
27267         * modules/fcntl-h (Depends-on): Add c++defs.
27268         (Makefile.am): Update fcntl.h rule.
27269
27270         dirent: Avoid #define replacements in C++ mode.
27271         * lib/dirent.in.h: Include c++defs.h.
27272         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
27273         namespaced alias symbol.
27274         (dirfd): Update declaration.
27275         * modules/dirent (Depends-on): Add c++defs.
27276         (Makefile.am): Update dirent.h rule.
27277
27278         ctype: Make it usable in C++ code.
27279         * lib/ctype.in.h: Include c++defs.h.
27280         (isblank): Declare as extern "C".
27281         * modules/ctype (Depends-on): Add c++defs.
27282         (Makefile.am): Update ctype.h rule.
27283
27284         New module 'c++defs'.
27285         * modules/c++defs: New file.
27286         * build-aux/c++defs.h: New file.
27287         Reported by John W. Eaton <jwe@gnu.org>.
27288
27289 2010-03-07  Bruno Haible  <bruno@clisp.org>
27290
27291         logb: Provide missing declaration for Cygwin.
27292         * lib/math.in.h (logb): New declaration.
27293         * m4/logb.m4: New file.
27294         * modules/logb (Files): Add m4/logb.m4.
27295         (Depends-on): Add math.
27296         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
27297         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
27298         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
27299         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
27300         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
27301
27302 2010-03-07  Bruno Haible  <bruno@clisp.org>
27303
27304         Fix test-cond link error.
27305         * tests/test-cond.c: Include <stdio.h>.
27306
27307 2010-03-07  Bruno Haible  <bruno@clisp.org>
27308
27309         Fix test-dirent-safer link error.
27310         * modules/dirent-safer-tests (Makefile.am): Define
27311         test_dirent_safer_LDADD.
27312
27313 2010-03-07  Bruno Haible  <bruno@clisp.org>
27314
27315         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
27316         among default module list.
27317
27318 2010-03-07  Bruno Haible  <bruno@clisp.org>
27319
27320         Fix link error on platforms with GNU libiconv.
27321         * modules/unistr/u8-strcoll-tests (Makefile): Define
27322         test_u8_strcoll_LDADD.
27323         * modules/unistr/u16-strcoll-tests (Makefile): Define
27324         test_u16_strcoll_LDADD.
27325         * modules/unistr/u32-strcoll-tests (Makefile): Define
27326         test_u32_strcoll_LDADD.
27327
27328 2010-03-07  Bruno Haible  <bruno@clisp.org>
27329
27330         Use POSIX declarations for socket functions.
27331         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
27332         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
27333         rpl_sendto): Change declaration to match POSIX.
27334         * lib/connect.c (rpl_connect): Likewise.
27335         * lib/accept.c (rpl_accept): Likewise.
27336         * lib/bind.c (rpl_bind): Likewise.
27337         * lib/getpeername.c (rpl_getpeername): Likewise.
27338         * lib/getsockname.c (rpl_getsockname): Likewise.
27339         * lib/recv.c (rpl_recv): Likewise.
27340         * lib/send.c (rpl_send): Likewise.
27341         * lib/recvfrom.c (rpl_recvfrom): Likewise.
27342         * lib/sendto.c (rpl_sendto): Likewise.
27343
27344 2010-03-06  Bruno Haible  <bruno@clisp.org>
27345
27346         Clarify access, euidaccess, faccessat.
27347         * doc/posix-functions/faccessat.texi: Mention security problem under
27348         "Other problems", not "Portability problems".
27349         * doc/posix-functions/access.texi: Likewise. Mention a related security
27350         problem.
27351         * doc/glibc-functions/euidaccess.texi: Mention security problems.
27352         * lib/euidaccess.c: Add comments about platforms.
27353         * lib/unistd.in.h (access, euidaccess): Add warnings.
27354
27355 2010-03-07  Bruno Haible  <bruno@clisp.org>
27356
27357         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
27358         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
27359         (POSIX_SPAWN_SETSCHEDULER): Likewise.
27360         (POSIX_SPAWN_USEVFORK): Define in a way that works when
27361         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
27362         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
27363         declare when POSIX_SPAWN_SETSCHEDULER is zero.
27364         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
27365         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
27366         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
27367         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
27368         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
27369         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
27370         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
27371         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
27372         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
27373         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
27374         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
27375         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
27376         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
27377         Likewise.
27378         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
27379         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
27380         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
27381         Likewise.
27382         * tests/test-spawn.c (main): Make it work when
27383         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
27384
27385 2010-03-07  Bruno Haible  <bruno@clisp.org>
27386
27387         Fix incorrect Makefile.am generation in German locale.
27388         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27389         Execute sed command with character range in C locale.
27390
27391 2010-03-06  Bruno Haible  <bruno@clisp.org>
27392
27393         Tests for module 'iconv-h'.
27394         * modules/iconv-h-tests: New file.
27395         * tests/test-iconv-h.c: New file.
27396
27397         New module 'iconv-h'.
27398         * modules/iconv-h: New file.
27399         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
27400         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
27401         (configure.ac): Remove gl_ICONV_H.
27402         (Makefile.am): Remove rule for iconv.h.
27403
27404 2010-03-06  Bruno Haible  <bruno@clisp.org>
27405
27406         More consistent naming of *.m4 files.
27407         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
27408         * modules/wctype (Files): Update.
27409
27410         More consistent naming of *.m4 files.
27411         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
27412         * modules/wchar (Files): Update.
27413
27414 2010-03-06  Jim Meyering  <meyering@redhat.com>
27415
27416         euidaccess: relax license to LGPLv2+
27417         * modules/euidaccess (License): Relax to LGPLv2+.
27418
27419 2010-03-06  Bruno Haible  <bruno@clisp.org>
27420
27421         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
27422         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
27423         (Makefile.am): Augment lib_SOURCES instead.
27424
27425 2010-03-04  Jim Meyering  <meyering@redhat.com>
27426
27427         utime: remove obsolete module
27428         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
27429         unnecessary for years, and has been marked as obsolete for 10 months.
27430         * modules/utime: Remove file.
27431         * lib/utime.c: Remove file.
27432         * m4/utime.m4: Remove file.
27433         * m4/utimes-null.m4: Remove file.
27434         * doc/posix-functions/utime.texi (utime): Remove reference to
27435         the module.  Move the sole "fixed by gnulib" item into the
27436         "problems not fixed by Gnulib" list.
27437         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
27438
27439 2010-03-05  Simon Josefsson  <simon@josefsson.org>
27440
27441         * modules/exit (License): Relax license to LGPLv2+.
27442         (Status): Mark as obsolete.
27443         * NEWS: Mention deprecated 'exit' module.
27444         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
27445         of now obsolete 'exit'.
27446
27447 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27448
27449         fts-lgpl: remove unused module
27450         * modules/fts-lgpl: Remove.
27451         * MODULES.html.sh (func_all_modules): Adjust.
27452         * check-module (find_included_lib_files): Adjust.
27453         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
27454
27455 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
27456
27457         copy-acl: enhance Solaris ACL error handling
27458         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
27459         * lib/set-mode-acl.c (qset_acl): Likewise.
27460
27461 2010-03-02  Bruno Haible  <bruno@clisp.org>
27462
27463         spawn: Don't override the system defined values on FreeBSD 8.
27464         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
27465         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
27466         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
27467         if HAVE_POSIX_SPAWN is 1.
27468         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
27469
27470 2010-03-01  Bruno Haible  <bruno@clisp.org>
27471
27472         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
27473         regarding Automake.
27474
27475 2010-02-25  Bruno Haible  <bruno@clisp.org>
27476
27477         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
27478         * gnulib-tool: Define 'echo' as a function only before the ksh alias
27479         setting, not afterwards.
27480         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
27481
27482 2010-02-24  Eric Blake  <eblake@redhat.com>
27483
27484         bootstrap, git-version-gen: use timestamp
27485         * build-aux/git-version-gen (scriptversion): Force UTC.
27486         * build-aux/bootstrap (scriptversion): New variable.
27487
27488         bootstrap: allow older git
27489         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
27490         older than 1.6.4.  Requested by the libvirt project.
27491
27492 2010-02-23  Eric Blake  <eblake@redhat.com>
27493
27494         warn-on-use: work with old autoconf
27495         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
27496         AS_VAR semantics of autoconf 2.60.
27497         Reported by Bruno Haible.
27498
27499         bootstrap: improve some comments
27500         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
27501         clarification comments.
27502
27503         gettimeofday: provide correct function
27504         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
27505         when replacement is declared, otherwise provide gettimeofday.
27506         Reported by Michael Goffioul.
27507
27508 2010-02-23  Jim Meyering  <meyering@redhat.com>
27509
27510         lib-ignore: relax license to "unlimited", not LGPLv2+
27511         * modules/lib-ignore (License): Relax to "unlimited".
27512
27513 2010-02-23  Jim Meyering  <meyering@redhat.com>
27514
27515         lib-ignore: relax license to LGPLv2+
27516         * modules/lib-ignore (License): Relax to LGPLv2+.
27517
27518 2010-02-22  Eric Blake  <eblake@redhat.com>
27519
27520         lseek: avoid bash 3.2 broken pipe bug
27521         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
27522         warning from bash 3.2.
27523         Reported by Ben Pfaff, with analysis from Bruno Haible.
27524
27525         bootstrap: support non-FSF copyright holder
27526         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
27527         bootstrap.conf override of COPYRIGHT_HOLDER.
27528         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
27529
27530         bootstrap: interoperate with gettext 0.14.1
27531         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
27532
27533         bootstrap: allow for alternate submodule location
27534         * build-aux/bootstrap (gnulib_path): New variable; use instead of
27535         hardcoding submodule location.
27536         (gnulib_mk): Allow direct use of Makefile.am.
27537
27538         bootstrap: use GNULIB_SRCDIR to reduce disk usage
27539         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
27540         rather than reconfiguring where the submodule points.
27541
27542         gettimeofday: restore support for platforms that lack function
27543         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
27544         replacement if function is missing.
27545         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
27546         * modules/sys_time (Makefile.am): Substitute it.
27547         * lib/sys_time.in.h (gettimeofday): Check it.
27548         Reported by Michael Goffioul.
27549
27550 2010-02-21  Bruno Haible  <bruno@clisp.org>
27551
27552         * lib/stdio.in.h (obstack_printf): Fix typo.
27553
27554 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
27555
27556         vc-list-files: use bzr ls's -R option
27557         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
27558         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
27559
27560 2010-02-21  Jim Meyering  <meyering@redhat.com>
27561
27562         init.sh: fix EXEEXT shims to work also for names like test-prog
27563         * tests/init.sh: Re-exec a better shell, when needed.
27564         If the current shell lacks support for posix $(...), an init.sh-using
27565         test will now try to find a shell that supports that.  If EXEEXT is
27566         nonempty, we also require support for hyphen-in-alias-name and shell
27567         substitutions like ${var#glob}.  Failure to find such a shell results
27568         in a skipped test.
27569
27570 2010-02-21  Bruno Haible  <bruno@clisp.org>
27571
27572         Really work around around "broken pipe" error message from bash 3.2.
27573         * gnulib-tool (func_reset_sigpipe): Remove function.
27574         (echo): In bash 3.2, define to a function that uses printf.
27575         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
27576
27577 2010-02-20  Bruno Haible  <bruno@clisp.org>
27578
27579         Restore support for automake 1.9.6 with autoconf 2.61.
27580         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
27581         Reported by James Youngman <jay@gnu.org>.
27582
27583 2010-02-20  Bruno Haible  <bruno@clisp.org>
27584
27585         Improve *printf warning condition.
27586         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
27587         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
27588         and the function is overridden due to SIGPIPE emulation.
27589
27590 2010-02-20  Bruno Haible  <bruno@clisp.org>
27591
27592         * lib/stdio.in.h: Tweak comments.
27593
27594 2010-02-19  Bruno Haible  <bruno@clisp.org>
27595
27596         Make it easier to find modules. New gnulib-tool option '--find'.
27597         * gnulib-tool: New option --find.
27598         (func_usage): Document it.
27599         (func_sanitize_modulelist): New function, extracted from
27600         func_all_modules.
27601         (func_all_modules): Invoke it.
27602         * doc/gnulib-tool.texi (Which modules?): New node.
27603
27604 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
27605
27606         * lib/sys_select.in.h: Provide select replacement even if
27607         sys/select.h exists on a system, for Interix.
27608
27609 2010-02-18  Jim Meyering  <meyering@redhat.com>
27610
27611         init.sh: don't use $(...) just yet
27612         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
27613         to accommodate e.g., Solaris' /bin/sh.
27614
27615 2010-02-17  Bruno Haible  <bruno@clisp.org>
27616
27617         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
27618         Reported by Ludovic Courtès <ludo@gnu.org>.
27619
27620 2010-02-16  Simon Josefsson  <simon@josefsson.org>
27621
27622         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
27623         linking with -lintl.
27624
27625 2010-02-17  Simon Josefsson  <simon@josefsson.org>
27626
27627         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
27628         if not provided by the system's netdb.h.  Reported by
27629         ludo@gnu.org (Ludovic Courtès).
27630
27631 2010-02-15  Jim Meyering  <meyering@redhat.com>
27632
27633         init.sh: improve portability and efficiency
27634         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
27635         "dummy" in a for loop.
27636         Use '!', not '^' to select the complement of a character set used
27637         in a "case" statement.
27638         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
27639         Suggestions from Eric Blake.
27640
27641         init.sh: automatically accommodate programs with the .exe suffix
27642         Automatically arrange for an invocation of "prog" to execute the
27643         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
27644         may use the simpler "prog", yet still work when built on a system
27645         that requires specifying the added suffix.
27646         Do this by constructing a function named "prog" that invokes
27647         "prog.exe" for each .exe file in selected directories.
27648         * tests/init.sh (find_exe_basenames_): New function.
27649         (create_exe_shim_functions_): New function.
27650         (path_prepend_): Use it.
27651
27652         maint.mk: mark syntax-check sc_*.m rules as .PHONY
27653         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
27654         "make -t syntax-check" doesn't create a ton of sc_*.m files.
27655
27656 2010-02-14  Jim Meyering  <meyering@redhat.com>
27657
27658         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
27659         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
27660         (sc_prohibit_hash_pjw_without_use): New rule.
27661
27662         maint.mk: allow the default upload destination dir to be overridden
27663         * top/maint.mk (upload_dest_dir_): Define with a default that
27664         preserves the status quo.
27665         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
27666         Reported by Peter Simons.
27667
27668         maint.mk: prohibit inclusion of "hash.h" without_use
27669         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
27670
27671 2010-02-10  Jim Meyering  <meyering@redhat.com>
27672
27673         maint.mk: prohibit inclusion of "ignore-value.h" without_use
27674         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
27675
27676 2010-02-09  Eric Blake  <ebb9@byu.net>
27677         and Bruno Haible  <bruno@clisp.org>
27678
27679         obstack-printf-posix: ensure declaration
27680         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
27681         extracted from gl_FUNC_OBSTACK_PRINTF.
27682         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
27683         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
27684         Likewise.
27685         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
27686         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
27687         0.
27688
27689 2010-02-08  Bruno Haible  <bruno@clisp.org>
27690
27691         gnulib-tool: Fix typo in 2010-02-07 commit.
27692         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
27693         Reported by Eric Blake.
27694
27695 2010-02-07  Bruno Haible  <bruno@clisp.org>
27696
27697         gnulib-tool: Fix up caching patches.
27698         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
27699         option --no-cache. Use associative arrays when supported by the shell.
27700         (sed_comments): New variable.
27701         (modcache): Renamed from do_cache.
27702         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
27703         abbreviate unnecessarily.
27704         (have_associative): New variable.
27705         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
27706         way also for ksh and zsh.
27707         (func_init_sed_convert_to_cache_statements): New function, extracted
27708         from func_cache_lookup_module. Add support for associative arrays.
27709         Don't set the c_MODULE_cached variable here. Ignore all lines before
27710         the first field header. Remove only the final newline, not all trailing
27711         newlines. Support empty fields correctly. Limit the use of 'eval' to
27712         assignments.
27713         (func_get_description, func_get_status, func_get_notice,
27714         func_get_applicability, func_get_filelist, func_get_dependencies,
27715         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
27716         func_get_automake_snippet, func_get_include_directive,
27717         func_get_link_directive, func_get_license, func_get_maintainer):
27718         Update documentation. List the unoptimized code first. Add support for
27719         associative arrays. Limit the use of 'eval' to assignments.
27720         (func_get_applicability): Undo stylistic pessimisations.
27721         (func_get_automake_snippet, func_get_include_directive): Reduce code
27722         duplication.
27723         (func_modules_transitive_closure, func_modules_add_dummy,
27724         func_modules_notice, func_modules_to_filelist, func_add_file,
27725         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
27726         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
27727         func_create_testdir, func_create_megatestdir): Update documentation.
27728
27729 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27730
27731         * gnulib-tool (func_cache_lookup_module): Store the module name
27732         belonging to the cache variable; error out if two different
27733         module names map to the same cache variable name.
27734
27735 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27736
27737         gnulib-tool: Make caching optional.
27738         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
27739         Update matching short versions of --no-changelog.
27740         (func_usage): Update.
27741         (sed_extract_cache_prog): Renamed from ...
27742         (sed_extract_prog): ... this; revert to old extraction script.
27743         (func_get_description, func_get_status)
27744         (func_get_notice, func_get_applicability, func_get_filelist)
27745         (func_get_dependencies, func_get_autoconf_early_snippet)
27746         (func_get_autoconf_snippet, func_get_automake_snippet)
27747         (func_get_include_directive, func_get_link_directive)
27748         (func_get_license, func_get_maintainer): If $do_cache is false,
27749         use old, non-caching extraction scripts.
27750         Suggestion by Bruno Haible.
27751
27752 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27753
27754         gnulib-tool: cache module metainformation.
27755         * gnulib-tool (sed_extract_prog): Match newline before each
27756         header, and rewrite header to a shell variable suffix.
27757         (func_cache_var, func_cache_lookup_module): New functions,
27758         to turn a module name into a cache variable prefix, and to
27759         look up and cache module metainformation.
27760         (func_get_description, func_get_status)
27761         (func_get_notice, func_get_applicability, func_get_filelist)
27762         (func_get_dependencies, func_get_autoconf_early_snippet)
27763         (func_get_autoconf_snippet, func_get_automake_snippet)
27764         (func_get_include_directive, func_get_link_directive)
27765         (func_get_license, func_get_maintainer): Use
27766         func_cache_lookup_module.
27767
27768 2010-02-07  Bruno Haible  <bruno@clisp.org>
27769
27770         fnctl: Fix missing dependency.
27771         * modules/fcntl (Depends-on): Add getdtablesize.
27772         Reported by John W. Eaton <jwe@gnu.org>.
27773
27774 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27775
27776         Argp: fix recognition of short alias options.
27777
27778         * lib/argp-parse.c (convert_options): Fix improper use of
27779         `|' between character values.
27780         * tests/test-argp.c (group1_option): New alias option
27781         --read (-r).
27782         (group1_parser): Special handling for 'r'.
27783         (test15): New test case.
27784         (test_fun): Add test15.
27785         * tests/test-argp-2.sh: Update expected --help and --usage
27786         outputs.
27787
27788 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27789
27790         * tests/test-argp.c: Fix indentation.
27791
27792 2010-02-04  Eric Blake  <ebb9@byu.net>
27793
27794         gettimeofday: expose type of second argument
27795         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
27796         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
27797         * tests/test-gettimeofday.c: Use it to silence warning.
27798         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
27799         the issue.
27800
27801 2010-02-03  Jim Meyering  <meyering@redhat.com>
27802
27803         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
27804         * lib/regcomp.c (TYPE_SIGNED): Define.
27805         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
27806
27807         regcomp.c: avoid a new -Wshadow warning
27808         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
27809
27810 2010-02-01  Jim Meyering  <meyering@redhat.com>
27811
27812         removing useless parentheses in cpp #define directives
27813         For motivation, see commit c0221df4, "define STREQ(a,b)
27814         consistently, removing useless parentheses"
27815         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
27816         * lib/mountlist.c (MNT_IGNORE): Likewise.
27817         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
27818
27819 2010-02-01  Eric Blake  <ebb9@byu.net>
27820
27821         sys_time: use link-warning
27822         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
27823         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
27824         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
27825         * modules/sys_time (Depends-on): Add warn-on-use.
27826         (Makefile.am): Always build replacement.
27827         (configure.ac): Update substitutions.
27828         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
27829         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
27830         bother with SYS_TIME_H.
27831         * modules/gettimeofday (configure.ac): Declare indicator.
27832         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
27833         in use.
27834
27835         closein-tests: silence compiler warning
27836         * tests/test-closein.c (main): Ignore fread result.
27837         * modules/closein-tests (Depends-on): Add ignore-value.
27838
27839         tests: silence warning about system return
27840         * tests/test-areadlink-with-size.c (main): Ignore system result.
27841         * tests/test-areadlink.c (main): Likewise.
27842         * tests/test-areadlinkat-with-size.c (main): Likewise.
27843         * tests/test-areadlinkat.c (main): Likewise.
27844         * tests/test-canonicalize-lgpl.c (main): Likewise.
27845         * tests/test-canonicalize.c (main): Likewise.
27846         * tests/test-chown.c (main): Likewise.
27847         * tests/test-fchownat.c (main): Likewise.
27848         * tests/test-fdutimensat.c (main): Likewise.
27849         * tests/test-fstatat.c (main): Likewise.
27850         * tests/test-futimens.c (main): Likewise.
27851         * tests/test-lchown.c (main): Likewise.
27852         * tests/test-link.c (main): Likewise.
27853         * tests/test-linkat.c (main): Likewise.
27854         * tests/test-lstat.c (main): Likewise.
27855         * tests/test-mkdir.c (main): Likewise.
27856         * tests/test-mkdirat.c (main): Likewise.
27857         * tests/test-mkfifo.c (main): Likewise.
27858         * tests/test-mkfifoat.c (main): Likewise.
27859         * tests/test-mknod.c (main): Likewise.
27860         * tests/test-readlink.c (main): Likewise.
27861         * tests/test-remove.c (main): Likewise.
27862         * tests/test-rename.c (main): Likewise.
27863         * tests/test-renameat.c (main): Likewise.
27864         * tests/test-rmdir.c (main): Likewise.
27865         * tests/test-symlink.c (main): Likewise.
27866         * tests/test-symlinkat.c (main): Likewise.
27867         * tests/test-unlink.c (main): Likewise.
27868         * tests/test-unlinkat.c (main): Likewise.
27869         * tests/test-utimens.c (main): Likewise.
27870         * tests/test-utimensat.c (main): Likewise.
27871         * modules/areadlink-tests (Depends-on): Add ignore-value.
27872         * modules/areadlink-with-size-tests (Depends-on): Likewise.
27873         * modules/areadlinkat-tests (Depends-on): Likewise.
27874         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
27875         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27876         * modules/canonicalize-tests (Depends-on): Likewise.
27877         * modules/chown-tests (Depends-on): Likewise.
27878         * modules/fdutimensat-tests (Depends-on): Likewise.
27879         * modules/futimens-tests (Depends-on): Likewise.
27880         * modules/lchown-tests (Depends-on): Likewise.
27881         * modules/link-tests (Depends-on): Likewise.
27882         * modules/linkat-tests (Depends-on): Likewise.
27883         * modules/lstat-tests (Depends-on): Likewise.
27884         * modules/mkdir-tests (Depends-on): Likewise.
27885         * modules/mkfifo-tests (Depends-on): Likewise.
27886         * modules/mkfifoat-tests (Depends-on): Likewise.
27887         * modules/mknod-tests (Depends-on): Likewise.
27888         * modules/openat-tests (Depends-on): Likewise.
27889         * modules/readlink-tests (Depends-on): Likewise.
27890         * modules/remove-tests (Depends-on): Likewise.
27891         * modules/rename-tests (Depends-on): Likewise.
27892         * modules/renameat-tests (Depends-on): Likewise.
27893         * modules/rmdir-tests (Depends-on): Likewise.
27894         * modules/symlink-tests (Depends-on): Likewise.
27895         * modules/symlinkat-tests (Depends-on): Likewise.
27896         * modules/unlink-tests (Depends-on): Likewise.
27897         * modules/utimens-tests (Depends-on): Likewise.
27898         * modules/utimensat-tests (Depends-on): Likewise.
27899
27900 2010-01-31  Bruno Haible  <bruno@clisp.org>
27901
27902         Perform the same test for many <math.h> functions.
27903         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
27904         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
27905         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
27906         of gl_MATHFUNC.
27907         * modules/acos (configure.ac): Likewise.
27908         * modules/asin (configure.ac): Likewise.
27909         * modules/atan (configure.ac): Likewise.
27910         * modules/atan2 (configure.ac): Likewise.
27911         * modules/cbrt (configure.ac): Likewise.
27912         * modules/copysign (configure.ac): Likewise.
27913         * modules/cos (configure.ac): Likewise.
27914         * modules/cosh (configure.ac): Likewise.
27915         * modules/erf (configure.ac): Likewise.
27916         * modules/erfc (configure.ac): Likewise.
27917         * modules/exp (configure.ac): Likewise.
27918         * modules/fmod (configure.ac): Likewise.
27919         * modules/hypot (configure.ac): Likewise.
27920         * modules/j0 (configure.ac): Likewise.
27921         * modules/j1 (configure.ac): Likewise.
27922         * modules/jn (configure.ac): Likewise.
27923         * modules/lgamma (configure.ac): Likewise.
27924         * modules/log (configure.ac): Likewise.
27925         * modules/log10 (configure.ac): Likewise.
27926         * modules/log1p (configure.ac): Likewise.
27927         * modules/pow (configure.ac): Likewise.
27928         * modules/remainder (configure.ac): Likewise.
27929         * modules/sin (configure.ac): Likewise.
27930         * modules/sinh (configure.ac): Likewise.
27931         * modules/tan (configure.ac): Likewise.
27932         * modules/tanh (configure.ac): Likewise.
27933         * modules/y0 (configure.ac): Likewise.
27934         * modules/y1 (configure.ac): Likewise.
27935         * modules/yn (configure.ac): Likewise.
27936         Suggested by Paolo Bonzini.
27937
27938 2010-01-31  Bruno Haible  <bruno@clisp.org>
27939
27940         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
27941
27942 2010-01-31  Bruno Haible  <bruno@clisp.org>
27943
27944         Work around getdelim() bug on FreeBSD 8.0.
27945         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
27946         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
27947         not work.
27948         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
27949         is 1.
27950         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
27951         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
27952         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
27953         a non-zero size.
27954         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
27955
27956 2010-01-31  Bruno Haible  <bruno@clisp.org>
27957
27958         Work around getline() bug on FreeBSD 8.0.
27959         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
27960         and a non-zero size.
27961         * tests/test-getline.c (main): Likewise.
27962         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
27963         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
27964
27965 2010-01-28  Eric Blake  <ebb9@byu.net>
27966
27967         regex: fix build failure
27968         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
27969         platforms.
27970
27971 2010-01-28  Jim Meyering  <meyering@redhat.com>
27972
27973         regex: do not ignore memory allocation failure
27974         * lib/regex_internal.c (create_cd_newstate): Detect
27975         re_node_set_init_copy failure.   Extracted from glibc commit
27976         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27977
27978         regex: sync more white-space changes from libc
27979         * lib/regex_internal.c: White-space only changes.
27980         * lib/regexec.c: Likewise.
27981
27982         regex: add many uses of __attribute_warn_unused_result__
27983         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
27984         * lib/regexec.c: Likewise.
27985         Extracted from a messy glibc commit.
27986
27987         regcomp.c: spelling and merge-artifact from glibc
27988         * lib/regcomp.c: Merge remainder of glibc's
27989         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27990
27991         regcomp.c: sync white-space changes from glibc
27992         * lib/regcomp.c: Merge to accommodate white space
27993         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27994
27995         regcomp.c: do not ignore internal return values
27996         * lib/regcomp.c: Do not ignore internal return values.
27997         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
27998         but without its white-space changes and spelling fixes.
27999
28000         regex_internal.h: define __attribute_warn_unused_result__
28001         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
28002
28003         maint: add a syntax-check rule to check for vulnerable Makefile.in
28004         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
28005
28006 2010-01-27  Jim Meyering  <meyering@redhat.com>
28007
28008         ncftpput-ftp: clean up spaces
28009         * build-aux/ncftpput-ftp: Make Copyright line consistent.
28010         Remove trailing blanks.
28011
28012 2010-01-27  Simon Josefsson  <simon@josefsson.org>
28013
28014         * build-aux/git-version-gen: Fix copyright statement.
28015         * build-aux/gnupload: Likewise.
28016         * tests/test-arcfour.c: Likewise.
28017         * tests/test-arctwo.c: Likewise.
28018         * tests/test-count-one-bits.c: Likewise.
28019         * tests/test-crc.c: Likewise.
28020         * tests/test-des.c: Likewise.
28021         * tests/test-gc-arcfour.c: Likewise.
28022         * tests/test-gc-arctwo.c: Likewise.
28023         * tests/test-gc-des.c: Likewise.
28024         * tests/test-gc-hmac-md5.c: Likewise.
28025         * tests/test-gc-hmac-sha1.c: Likewise.
28026         * tests/test-gc-md2.c: Likewise.
28027         * tests/test-gc-md4.c: Likewise.
28028         * tests/test-gc-md5.c: Likewise.
28029         * tests/test-gc-pbkdf2-sha1.c: Likewise.
28030         * tests/test-gc-rijndael.c: Likewise.
28031         * tests/test-gc-sha1.c: Likewise.
28032         * tests/test-gc.c: Likewise.
28033         * tests/test-gethostname.c: Likewise.
28034         * tests/test-gettimeofday.c: Likewise.
28035         * tests/test-hash.c: Likewise.
28036         * tests/test-hmac-md5.c: Likewise.
28037         * tests/test-hmac-sha1.c: Likewise.
28038         * tests/test-md2.c: Likewise.
28039         * tests/test-md4.c: Likewise.
28040         * tests/test-md5.c: Likewise.
28041         * tests/test-memchr.c: Likewise.
28042         * tests/test-memchr2.c: Likewise.
28043         * tests/test-memcmp.c: Likewise.
28044         * tests/test-memmem.c: Likewise.
28045         * tests/test-memrchr.c: Likewise.
28046         * tests/test-rawmemchr.c: Likewise.
28047         * tests/test-read-file.c: Likewise.
28048         * tests/test-rijndael.c: Likewise.
28049         * tests/test-sockets.c: Likewise.
28050         * tests/test-strchrnul.c: Likewise.
28051         * tests/test-strstr.c: Likewise.
28052         * tests/test-strtod.c: Likewise.
28053         * build-aux/ncftpput-ftp: Likewise.
28054
28055 2010-01-26  Eric Blake  <ebb9@byu.net>
28056
28057         ignore-value: update recommended header name
28058         * modules/ignore-value (Include): Only use <> for headers that
28059         exist in glibc.
28060
28061 2010-01-26  Jim Meyering  <meyering@redhat.com>
28062
28063         test-userspec.c: avoid compiler warnings
28064         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
28065         and "initialization discards qualifiers..." warnings.
28066         Put the first "uid" in its own scope, and make char* members "const".
28067
28068 2010-01-25  Bruno Haible  <bruno@clisp.org>
28069
28070         gnulib-tool: Make warning diagnostics consistent.
28071         * gnulib-tool (func_warning): New function.
28072         Use it everywhere where gnulib-tool produces output to stderr and it is
28073         not a fatal error.
28074
28075 2010-01-25  Bruno Haible  <bruno@clisp.org>
28076
28077         Fix test dependencies.
28078         * modules/xstrtol-tests (Depends-on): Add inttypes.
28079         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
28080
28081 2010-01-25 Pádraig Brady <P@draigBrady.com>
28082
28083         syntax-check: detect incorrect boolean macro values in config.h
28084         * modules/maintainer-makefile (configure.ac): Parameterize the location
28085         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
28086         The logic is from Eric Blake and the location indicated by Jim Meyering.
28087         Note the more natural CONFIG_HEADER name is prohibited by automake
28088         for backwards compatibility reasons.
28089         * top/maint.mk (sc_Wundef_boolean): New rule.
28090
28091 2010-01-25  Jim Meyering  <meyering@redhat.com>
28092
28093         bootstrap: detect MacOS 10.6's shasum, too
28094         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
28095         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
28096
28097 2010-01-23  Jim Meyering  <meyering@redhat.com>
28098
28099         xstrtoll: new module
28100         * modules/xstrtoll: New file.
28101         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
28102         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
28103         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
28104         ./configure fails if you use this module and lack "long long".
28105         * modules/xstrtoll-tests: New module.
28106         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
28107         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
28108         new init.sh-based test framework.
28109
28110 2010-01-24  Bruno Haible  <bruno@clisp.org>
28111
28112         Tests for module 'yn'.
28113         * modules/yn-tests: New file.
28114         * tests/test-yn.c: New file.
28115
28116         Tests for module 'y1'.
28117         * modules/y1-tests: New file.
28118         * tests/test-y1.c: New file.
28119
28120         Tests for module 'y0'.
28121         * modules/y0-tests: New file.
28122         * tests/test-y0.c: New file.
28123
28124         Tests for module 'tanh'.
28125         * modules/tanh-tests: New file.
28126         * tests/test-tanh.c: New file.
28127
28128         Tests for module 'tan'.
28129         * modules/tan-tests: New file.
28130         * tests/test-tan.c: New file.
28131
28132         Tests for module 'sqrt'.
28133         * modules/sqrt-tests: New file.
28134         * tests/test-sqrt.c: New file.
28135
28136         Tests for module 'sinh'.
28137         * modules/sinh-tests: New file.
28138         * tests/test-sinh.c: New file.
28139
28140         Tests for module 'sin'.
28141         * modules/sin-tests: New file.
28142         * tests/test-sin.c: New file.
28143
28144         Tests for module 'rint'.
28145         * modules/rint-tests: New file.
28146         * tests/test-rint.c: New file.
28147
28148         Tests for module 'remainder'.
28149         * modules/remainder-tests: New file.
28150         * tests/test-remainder.c: New file.
28151
28152         Tests for module 'pow'.
28153         * modules/pow-tests: New file.
28154         * tests/test-pow.c: New file.
28155
28156         Tests for module 'nextafter'.
28157         * modules/nextafter-tests: New file.
28158         * tests/test-nextafter.c: New file.
28159
28160         Tests for module 'modf'.
28161         * modules/modf-tests: New file.
28162         * tests/test-modf.c: New file.
28163
28164         Tests for module 'logb'.
28165         * modules/logb-tests: New file.
28166         * tests/test-logb.c: New file.
28167
28168         Tests for module 'log1p'.
28169         * modules/log1p-tests: New file.
28170         * tests/test-log1p.c: New file.
28171
28172         Tests for module 'log10'.
28173         * modules/log10-tests: New file.
28174         * tests/test-log10.c: New file.
28175
28176         Tests for module 'log'.
28177         * modules/log-tests: New file.
28178         * tests/test-log.c: New file.
28179
28180         Tests for module 'lgamma'.
28181         * modules/lgamma-tests: New file.
28182         * tests/test-lgamma.c: New file.
28183
28184         Tests for module 'ldexp'.
28185         * modules/ldexp-tests: New file.
28186         * tests/test-ldexp.c: New file.
28187
28188         Tests for module 'jn'.
28189         * modules/jn-tests: New file.
28190         * tests/test-jn.c: New file.
28191
28192         Tests for module 'j1'.
28193         * modules/j1-tests: New file.
28194         * tests/test-j1.c: New file.
28195
28196         Tests for module 'j0'.
28197         * modules/j0-tests: New file.
28198         * tests/test-j0.c: New file.
28199
28200         Tests for module 'hypot'.
28201         * modules/hypot-tests: New file.
28202         * tests/test-hypot.c: New file.
28203
28204         Tests for module 'fmod'.
28205         * modules/fmod-tests: New file.
28206         * tests/test-fmod.c: New file.
28207
28208         Tests for module 'fabs'.
28209         * modules/fabs-tests: New file.
28210         * tests/test-fabs.c: New file.
28211
28212         Tests for module 'exp'.
28213         * modules/exp-tests: New file.
28214         * tests/test-exp.c: New file.
28215
28216         Tests for module 'erfc'.
28217         * modules/erfc-tests: New file.
28218         * tests/test-erfc.c: New file.
28219
28220         Tests for module 'erf'.
28221         * modules/erf-tests: New file.
28222         * tests/test-erf.c: New file.
28223
28224         Tests for module 'cosh'.
28225         * modules/cosh-tests: New file.
28226         * tests/test-cosh.c: New file.
28227
28228         Tests for module 'cos'.
28229         * modules/cos-tests: New file.
28230         * tests/test-cos.c: New file.
28231
28232         Tests for module 'copysign'.
28233         * modules/copysign-tests: New file.
28234         * tests/test-copysign.c: New file.
28235
28236         Tests for module 'cbrt'.
28237         * modules/cbrt-tests: New file.
28238         * tests/test-cbrt.c: New file.
28239
28240         Tests for module 'atan2'.
28241         * modules/atan2-tests: New file.
28242         * tests/test-atan2.c: New file.
28243
28244         Tests for module 'atan'.
28245         * modules/atan-tests: New file.
28246         * tests/test-atan.c: New file.
28247
28248         Tests for module 'asin'.
28249         * modules/asin-tests: New file.
28250         * tests/test-asin.c: New file.
28251
28252         Tests for module 'acos'.
28253         * modules/acos-tests: New file.
28254         * tests/test-acos.c: New file.
28255
28256 2010-01-24  Bruno Haible  <bruno@clisp.org>
28257
28258         Fix tests for common <math.h> functions.
28259         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
28260         code snippet that references the function pointer, rather than merely
28261         calling the function. Substitute the FUNC_LIBM variable.
28262         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
28263         * modules/acos (configure.ac): Likewise.
28264         * modules/asin (configure.ac): Likewise.
28265         * modules/atan (configure.ac): Likewise.
28266         * modules/atan2 (configure.ac): Likewise.
28267         * modules/cbrt (configure.ac): Likewise.
28268         * modules/copysign (configure.ac): Likewise.
28269         * modules/cos (configure.ac): Likewise.
28270         * modules/cosh (configure.ac): Likewise.
28271         * modules/erf (configure.ac): Likewise.
28272         * modules/erfc (configure.ac): Likewise.
28273         * modules/exp (configure.ac): Likewise.
28274         * modules/fabs (configure.ac): Likewise.
28275         * modules/fmod (configure.ac): Likewise.
28276         * modules/hypot (configure.ac): Likewise.
28277         * modules/j0 (configure.ac): Likewise.
28278         * modules/j1 (configure.ac): Likewise.
28279         * modules/jn (configure.ac): Likewise.
28280         * modules/ldexp (configure.ac): Likewise.
28281         * modules/lgamma (configure.ac): Likewise.
28282         * modules/log (configure.ac): Likewise.
28283         * modules/log10 (configure.ac): Likewise.
28284         * modules/log1p (configure.ac): Likewise.
28285         * modules/logb (configure.ac): Likewise.
28286         * modules/modf (configure.ac): Likewise.
28287         * modules/nextafter (configure.ac): Likewise.
28288         * modules/pow (configure.ac): Likewise.
28289         * modules/remainder (configure.ac): Likewise.
28290         * modules/rint (configure.ac): Likewise.
28291         * modules/sin (configure.ac): Likewise.
28292         * modules/sinh (configure.ac): Likewise.
28293         * modules/tan (configure.ac): Likewise.
28294         * modules/tanh (configure.ac): Likewise.
28295         * modules/y0 (configure.ac): Likewise.
28296         * modules/y1 (configure.ac): Likewise.
28297         * modules/yn (configure.ac): Likewise.
28298
28299 2010-01-24  Bruno Haible  <bruno@clisp.org>
28300
28301         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
28302         * tests/test-acosl.c (x): New variable.
28303         (main): Store argument in x and fetch it from x.
28304         * tests/test-asinl.c (x): New variable.
28305         (main): Store argument in x and fetch it from x.
28306         * tests/test-atanl.c (x): New variable.
28307         (main): Store argument in x and fetch it from x.
28308         * tests/test-cosl.c (x): New variable.
28309         (main): Store argument in x and fetch it from x.
28310         * tests/test-expl.c (x): New variable.
28311         (main): Store argument in x and fetch it from x.
28312         * tests/test-logl.c (x): New variable.
28313         (main): Store argument in x and fetch it from x.
28314         * tests/test-sinl.c (x): New variable.
28315         (main): Store argument in x and fetch it from x.
28316         * tests/test-sqrtl.c (x): New variable.
28317         (main): Store argument in x and fetch it from x.
28318         * tests/test-tanl.c (x): New variable.
28319         (main): Store argument in x and fetch it from x.
28320
28321 2010-01-24  Bruno Haible  <bruno@clisp.org>
28322
28323         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
28324         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
28325         assignments to the initial TESTS_ENVIRONMENT.
28326         * doc/gnulib.texi (Unit test modules): Document it.
28327         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
28328         TESTS_ENVIRONMENT.
28329         * modules/btowc-tests (Makefile.am): Likewise.
28330         * modules/c-stack-tests (Makefile.am): Likewise.
28331         * modules/c-strcase-tests (Makefile.am): Likewise.
28332         * modules/copy-file-tests (Makefile.am): Likewise.
28333         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
28334         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
28335         * modules/mbrtowc-tests (Makefile.am): Likewise.
28336         * modules/mbscasecmp-tests (Makefile.am): Likewise.
28337         * modules/mbscasestr-tests (Makefile.am): Likewise.
28338         * modules/mbschr-tests (Makefile.am): Likewise.
28339         * modules/mbscspn-tests (Makefile.am): Likewise.
28340         * modules/mbsinit-tests (Makefile.am): Likewise.
28341         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
28342         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
28343         * modules/mbspbrk-tests (Makefile.am): Likewise.
28344         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
28345         * modules/mbsrchr-tests (Makefile.am): Likewise.
28346         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
28347         * modules/mbsspn-tests (Makefile.am): Likewise.
28348         * modules/mbsstr-tests (Makefile.am): Likewise.
28349         * modules/nl_langinfo-tests (Makefile.am): Likewise.
28350         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
28351         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
28352         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
28353         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
28354         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
28355         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
28356         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
28357         * modules/wcrtomb-tests (Makefile.am): Likewise.
28358         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
28359         * modules/wcsrtombs-tests (Makefile.am): Likewise.
28360         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
28361         assignments from TESTS_ENVIRONMENT.
28362         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
28363         augmentation.
28364         * modules/argp-version-etc-tests (Makefile.am): Likewise.
28365         * modules/atexit-tests (Makefile.am): Likewise.
28366         * modules/binary-io-tests (Makefile.am): Likewise.
28367         * modules/closein-tests (Makefile.am): Likewise.
28368         * modules/dprintf-posix-tests (Makefile.am): Likewise.
28369         * modules/exclude-tests (Makefile.am): Likewise.
28370         * modules/fflush-tests (Makefile.am): Likewise.
28371         * modules/fpending-tests (Makefile.am): Likewise.
28372         * modules/fprintf-posix-tests (Makefile.am): Likewise.
28373         * modules/freadahead-tests (Makefile.am): Likewise.
28374         * modules/freadptr-tests (Makefile.am): Likewise.
28375         * modules/freadseek-tests (Makefile.am): Likewise.
28376         * modules/fseek-tests (Makefile.am): Likewise.
28377         * modules/fseeko-tests (Makefile.am): Likewise.
28378         * modules/ftell-tests (Makefile.am): Likewise.
28379         * modules/ftello-tests (Makefile.am): Likewise.
28380         * modules/idpriv-drop-tests (Makefile.am): Likewise.
28381         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
28382         * modules/lseek-tests (Makefile.am): Likewise.
28383         * modules/parse-duration-tests (Makefile.am): Likewise.
28384         * modules/perror-tests (Makefile.am): Likewise.
28385         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
28386         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
28387         * modules/pipe-tests (Makefile.am): Likewise.
28388         * modules/pread-tests (Makefile.am): Likewise.
28389         * modules/printf-posix-tests (Makefile.am): Likewise.
28390         * modules/select-tests (Makefile.am): Likewise.
28391         * modules/sigpipe-tests (Makefile.am): Likewise.
28392         * modules/tsearch-tests (Makefile.am): Likewise.
28393         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
28394         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
28395         * modules/uniname/uniname-tests (Makefile.am): Likewise.
28396         * modules/uniwidth/width-tests (Makefile.am): Likewise.
28397         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
28398         * modules/version-etc-tests (Makefile.am): Likewise.
28399         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
28400         * modules/vprintf-posix-tests (Makefile.am): Likewise.
28401         * modules/xalloc-die-tests (Makefile.am): Likewise.
28402         * modules/xprintf-posix-tests (Makefile.am): Likewise.
28403         * modules/xstrtoimax-tests (Makefile.am): Likewise.
28404         * modules/xstrtol-tests (Makefile.am): Likewise.
28405         * modules/xstrtoumax-tests (Makefile.am): Likewise.
28406         * modules/yesno-tests (Makefile.am): Likewise.
28407         Suggested by Jim Meyering.
28408
28409 2010-01-24  Bruno Haible  <bruno@clisp.org>
28410
28411         More documentation.
28412         * doc/gnulib.texi (Writing modules): New chapter.
28413         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
28414         the new chapter.
28415
28416 2010-01-24  Jim Meyering  <meyering@redhat.com>
28417
28418         maint.mk: do not prepend "./" after filtering
28419         * top/maint.mk (_prepend_srcdir_prefix): New variable
28420         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
28421         "./" when $(srcdir) is ".".
28422
28423         define STREQ(a,b) consistently, removing useless parentheses
28424         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
28425         since the only risk is that "a" or "b" contains an unparenthesized
28426         comma, but if either did that, STREQ would have 3 or more arguments.
28427         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
28428         * lib/fts.c (STREQ): Remove unnecessary parentheses.
28429         * lib/hash-triple.c (STREQ): Likewise.
28430         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
28431         * lib/getugroups.c (STREQ): Likewise.
28432
28433 2010-01-23  Jim Meyering  <meyering@redhat.com>
28434
28435         maint.mk: fix syntax-check in a non-srcdir build directory
28436         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
28437         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
28438
28439 2010-01-22  Jim Meyering  <meyering@redhat.com>
28440
28441         userspec: add unit tests
28442         * tests/test-userspec.c: New file.
28443         * modules/userspec-tests: Likewise.
28444
28445 2010-01-21  Jim Meyering  <meyering@redhat.com>
28446
28447         maint.mk: handle source file names containing "." robustly
28448         * top/maint.mk (_dot_escaped_srcdir): Define.
28449         (VC_LIST): Use it in LHS of sed substitution.
28450
28451 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
28452
28453         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
28454         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
28455         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
28456         from a non-srcdir build.
28457
28458 2010-01-20  Eric Blake  <ebb9@byu.net>
28459
28460         warn-on-use: use instead of link-warning
28461         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
28462         * modules/unistd (Depends-on, Makefile.am): Likewise.
28463         * modules/arpa_inet (Depends-on): Replace link-warning with
28464         warn-on-use.
28465         (Makefile.am): Update rules accordingly.
28466         * modules/ctype (Depends-on, Makefile.am): Likewise.
28467         * modules/dirent (Depends-on, Makefile.am): Likewise.
28468         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
28469         * modules/inttypes (Depends-on, Makefile.am): Likewise.
28470         * modules/langinfo (Depends-on, Makefile.am): Likewise.
28471         * modules/locale (Depends-on, Makefile.am): Likewise.
28472         * modules/math (Depends-on, Makefile.am): Likewise.
28473         * modules/search (Depends-on, Makefile.am): Likewise.
28474         * modules/signal (Depends-on, Makefile.am): Likewise.
28475         * modules/spawn (Depends-on, Makefile.am): Likewise.
28476         * modules/stdlib (Depends-on, Makefile.am): Likewise.
28477         * modules/string (Depends-on, Makefile.am): Likewise.
28478         * modules/strings (Depends-on, Makefile.am): Likewise.
28479         * modules/sys_file (Depends-on, Makefile.am): Likewise.
28480         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
28481         * modules/sys_select (Depends-on, Makefile.am): Likewise.
28482         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
28483         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
28484         * modules/sys_times (Depends-on, Makefile.am): Likewise.
28485         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
28486         * modules/wchar (Depends-on, Makefile.am): Likewise.
28487         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
28488         should be poisoned.
28489         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
28490         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
28491         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
28492         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
28493         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
28494         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
28495         * m4/math_h.m4 (gl_MATH_H): Likewise.
28496         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
28497         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
28498         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
28499         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
28500         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
28501         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
28502         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
28503         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
28504         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
28505         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28506         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
28507         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
28508         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28509         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
28510         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
28511         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28512         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
28513         GL_LINK_WARNING.
28514         * lib/ctype.in.h: Likewise.
28515         * lib/dirent.in.h: Likewise.
28516         * lib/fcntl.in.h: Likewise.
28517         * lib/inttypes.in.h: Likewise.
28518         * lib/langinfo.in.h: Likewise.
28519         * lib/locale.in.h: Likewise.
28520         * lib/math.in.h: Likewise.
28521         * lib/search.in.h: Likewise.
28522         * lib/signal.in.h: Likewise.
28523         * lib/spawn.in.h: Likewise.
28524         * lib/stdio.in.h: Likewise.
28525         * lib/stdlib.in.h: Likewise.
28526         * lib/string.in.h: Likewise.
28527         * lib/strings.in.h: Likewise.
28528         * lib/sys_file.in.h: Likewise.
28529         * lib/sys_ioctl.in.h: Likewise.
28530         * lib/sys_select.in.h: Likewise.
28531         * lib/sys_socket.in.h: Likewise.
28532         * lib/sys_stat.in.h: Likewise.
28533         * lib/sys_times.in.h: Likewise.
28534         * lib/sys_utsname.in.h: Likewise.
28535         * lib/unistd.in.h: Likewise.
28536         * lib/wchar.in.h: Likewise.
28537
28538 2010-01-20  Bruno Haible  <bruno@clisp.org>
28539
28540         Avoid duplicate -lm.
28541         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
28542         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
28543         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
28544         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
28545         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
28546         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
28547         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
28548         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
28549         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
28550         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
28551         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
28552         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
28553         Reported by Paolo Bonzini.
28554
28555 2010-01-19  Bruno Haible  <bruno@clisp.org>
28556
28557         langinfo, nl_langinfo: Relicense under LGPLv2+.
28558         * modules/langinfo (License): Change to LGPLv2+.
28559         * modules/nl_langinfo (License): Likewise.
28560         Patch by David Lutterkort <lutter@redhat.com>.
28561
28562 2010-01-19  Bruno Haible  <bruno@clisp.org>
28563
28564         Avoid compilation error with cc on OSF/1 5.1.
28565         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
28566         statement, not before.
28567         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28568
28569 2010-01-18  Bruno Haible  <bruno@clisp.org>
28570
28571         Avoid a link error due to the __printf__ symbol.
28572         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
28573         and 2.6.x.
28574         (__format__, __printf__): Remove definitions.
28575         * lib/argp-fmtstream.h: Likewise.
28576         * lib/argp.h: Likewise.
28577         * lib/error.h: Likewise.
28578         * lib/vasnprintf.h: Likewise.
28579         * lib/xprintf.h: Likewise.
28580         * lib/xvasprintf.h: Likewise.
28581         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28582
28583 2010-01-18  Bruno Haible  <bruno@clisp.org>
28584
28585         Tests for module 'tanl'.
28586         * modules/tanl-tests: New file.
28587         * tests/test-tanl.c: New file.
28588
28589         Tests for module 'sqrtl'.
28590         * modules/sqrtl-tests: New file.
28591         * tests/test-sqrtl.c: New file.
28592
28593         Tests for module 'sinl'.
28594         * modules/sinl-tests: New file.
28595         * tests/test-sinl.c: New file.
28596
28597         Tests for module 'logl'.
28598         * modules/logl-tests: New file.
28599         * tests/test-logl.c: New file.
28600
28601         Tests for module 'expl'.
28602         * modules/expl-tests: New file.
28603         * tests/test-expl.c: New file.
28604
28605         Tests for module 'cosl'.
28606         * modules/cosl-tests: New file.
28607         * tests/test-cosl.c: New file.
28608
28609         Tests for module 'atanl'.
28610         * modules/atanl-tests: New file.
28611         * tests/test-atanl.c: New file.
28612
28613         Tests for module 'asinl'.
28614         * modules/asinl-tests: New file.
28615         * tests/test-asinl.c: New file.
28616
28617         Tests for module 'acosl'.
28618         * modules/acosl-tests: New file.
28619         * tests/test-acosl.c: New file.
28620
28621         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
28622         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
28623         tanl): Use the standard gnulib idiom.
28624         * lib/cosl.c: Don't include trigl.c and sincosl.c.
28625         * lib/sinl.c: Likewise.
28626         * lib/tanl.c: Don't include trigl.c.
28627         (kernel_tanl): Make static.
28628         * lib/sincosl.c: Include trigl.h first.
28629         * lib/trigl.c: Likewise.
28630         * m4/acosl.m4: New file.
28631         * m4/asinl.m4: New file.
28632         * m4/atanl.m4: New file.
28633         * m4/cosl.m4: New file.
28634         * m4/expl.m4: New file.
28635         * m4/logl.m4: New file.
28636         * m4/sinl.m4: New file.
28637         * m4/sqrtl.m4: New file.
28638         * m4/tanl.m4: New file.
28639         * m4/mathl.m4: Remove file.
28640         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
28641         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
28642         Don't initialize GNULIB_MATHL.
28643         * modules/acosl: New file.
28644         * modules/asinl: New file.
28645         * modules/atanl: New file.
28646         * modules/cosl: New file.
28647         * modules/expl: New file.
28648         * modules/logl: New file.
28649         * modules/sinl: New file.
28650         * modules/sqrtl: New file.
28651         * modules/tanl: New file.
28652         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
28653         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
28654         substitute GNULIB_MATHL.
28655         * modules/mathl: Rewritten.
28656         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
28657         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
28658         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
28659         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
28660         * doc/posix-functions/expl.texi: Mention the 'expl' module.
28661         * doc/posix-functions/logl.texi: Mention the 'logl' module.
28662         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
28663         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
28664         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
28665
28666 2010-01-18  Bruno Haible  <bruno@clisp.org>
28667
28668         sqrt: Make gl_FUNC_SQRT requirable.
28669         * m4/sqrt.m4: New file.
28670         * modules/sqrt (Files): Add it.
28671         (configure.ac): Invoke gl_FUNC_SQRT.
28672
28673 2010-01-18  Bruno Haible  <bruno@clisp.org>
28674
28675         New modules for common <math.h> functions.
28676         * m4/mathfunc.m4: New file.
28677         * modules/acos: New file.
28678         * modules/asin: New file.
28679         * modules/atan: New file.
28680         * modules/atan2: New file.
28681         * modules/cbrt: New file.
28682         * modules/copysign: New file.
28683         * modules/cos: New file.
28684         * modules/cosh: New file.
28685         * modules/erf: New file.
28686         * modules/erfc: New file.
28687         * modules/exp: New file.
28688         * modules/fabs: New file.
28689         * modules/fmod: New file.
28690         * modules/hypot: New file.
28691         * modules/j0: New file.
28692         * modules/j1: New file.
28693         * modules/jn: New file.
28694         * modules/ldexp: New file.
28695         * modules/lgamma: New file.
28696         * modules/log: New file.
28697         * modules/log10: New file.
28698         * modules/log1p: New file.
28699         * modules/logb: New file.
28700         * modules/modf: New file.
28701         * modules/nextafter: New file.
28702         * modules/pow: New file.
28703         * modules/remainder: New file.
28704         * modules/rint: New file.
28705         * modules/sin: New file.
28706         * modules/sinh: New file.
28707         * modules/sqrt: New file.
28708         * modules/tan: New file.
28709         * modules/tanh: New file.
28710         * modules/y0: New file.
28711         * modules/y1: New file.
28712         * modules/yn: New file.
28713         * doc/posix-functions/acos.texi: Mention the 'acos' module.
28714         * doc/posix-functions/asin.texi: Mention the 'asin' module.
28715         * doc/posix-functions/atan.texi: Mention the 'atan' module.
28716         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
28717         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
28718         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
28719         * doc/posix-functions/cos.texi: Mention the 'cos' module.
28720         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
28721         * doc/posix-functions/erf.texi: Mention the 'erf' module.
28722         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
28723         * doc/posix-functions/exp.texi: Mention the 'exp' module.
28724         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
28725         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
28726         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
28727         * doc/posix-functions/j0.texi: Mention the 'j0' module.
28728         * doc/posix-functions/j1.texi: Mention the 'j1' module.
28729         * doc/posix-functions/jn.texi: Mention the 'jn' module.
28730         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
28731         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
28732         * doc/posix-functions/log.texi: Mention the 'log' module.
28733         * doc/posix-functions/log10.texi: Mention the 'log10' module.
28734         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
28735         * doc/posix-functions/logb.texi: Mention the 'logb' module.
28736         * doc/posix-functions/modf.texi: Mention the 'modf' module.
28737         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
28738         * doc/posix-functions/pow.texi: Mention the 'pow' module.
28739         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
28740         * doc/posix-functions/rint.texi: Mention the 'rint' module.
28741         * doc/posix-functions/sin.texi: Mention the 'sin' module.
28742         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
28743         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
28744         * doc/posix-functions/tan.texi: Mention the 'tan' module.
28745         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
28746         * doc/posix-functions/y0.texi: Mention the 'y0' module.
28747         * doc/posix-functions/y1.texi: Mention the 'y1' module.
28748         * doc/posix-functions/yn.texi: Mention the 'yn' module.
28749
28750 2010-01-18  Jim Meyering  <meyering@redhat.com>
28751
28752         ignore-value: relax license to LGPLv2+
28753         * modules/ignore-value (License): Relax to LGPLv2+.
28754
28755         getdate: don't leak when TZ contains two or more '"'s
28756         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
28757         double quote in TZ after the first one.
28758
28759         readtokens: do not leak internal token_lengths buffer
28760         * lib/readtokens.c (readtokens): Free the local, lengths,
28761         when the supplied "token_lengths" parameter is NULL.
28762
28763 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28764
28765         Fix a couple of missing LIBTHREAD link failures on AIX.
28766         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
28767         $(LIBTHREAD).
28768         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
28769
28770         Link test-poll against INET_PTON_LIB.
28771         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
28772         for inet_pton on Solaris 10.
28773
28774 2010-01-17  Bruno Haible  <bruno@clisp.org>
28775
28776         unistdio/*-sprintf: Fix typo in module description.
28777         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
28778         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
28779         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
28780         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
28781         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
28782         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
28783         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
28784         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28785
28786 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28787
28788         gnulib-tool: fix filelist for AIX, HP-UX ksh.
28789         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
28790         variables in shell case patterns, for AIX and HP-UX ksh.
28791
28792         Split large sed scripts, for HP-UX sed.
28793         * modules/stdio: Split sed scripts around 50 sed commands,
28794         to avoid HP-UX limit of 99 commands, in the near future.
28795         * modules/string: Likewise.
28796         * modules/unistd: Likewise.
28797
28798         gnulib-tool: avoid writing in the current directory.
28799         * gnulib-tool (func_emit_lib_Makefile_am)
28800         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
28801         not in the current directory, so concurrent gnulib-tool
28802         instances do not interfere.
28803
28804 2010-01-16  Jim Meyering  <meyering@redhat.com>
28805
28806         doc: update users.txt
28807         * users.txt: Add grep.
28808         (diffutils, gzip): Update URLs.
28809
28810 2010-01-12  Bruno Haible  <bruno@clisp.org>
28811
28812         posix_spawn: Avoid test failure on Cygwin.
28813         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
28814         characters.
28815         Reported by Simon Josefsson.
28816
28817 2010-01-12  Bruno Haible  <bruno@clisp.org>
28818
28819         * tests/test-cond.c (main): When skipping the test, show the reason.
28820
28821 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28822
28823         * lib/striconv.c (str_cd_iconv): Avoid if before free.
28824
28825 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28826
28827         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
28828         VC_LIST_ALWAYS_EXCLUDE_REGEX.
28829
28830 2010-01-12  Eric Blake  <ebb9@byu.net>
28831
28832         build: guarantee AS_VAR_IF
28833         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
28834         (gl_AS_VAR_IF): Move...
28835         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
28836         Reported by Simon Josefsson.
28837
28838 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28839
28840         * lib/stdio.in.h: Fix typo.
28841
28842 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28843
28844         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
28845         libgpg-error.
28846
28847 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28848
28849         * tests/test-xalloc-die.sh: Use $EXEEXT.
28850
28851 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28852             Bruno Haible  <bruno@clisp.org>
28853
28854         getlogin, getlogin_r: Avoid test failure.
28855         * tests/test-getlogin.c: Include <stdio.h>.
28856         (main): Skip the test when the function fails because stdin is not a
28857         tty.
28858         * tests/test-getlogin_r.c: Include <stdio.h>.
28859         (main): Skip the test when the function fails because stdin is not a
28860         tty.
28861
28862 2010-01-11  Eric Blake  <ebb9@byu.net>
28863
28864         tests: avoid more large file warnings
28865         * tests/test-fflush.c: Avoid warning about ftell use.
28866         * tests/test-fseek.c: Avoid warning about fseek use.
28867
28868 2010-01-10  Bruno Haible  <bruno@clisp.org>
28869
28870         nproc: Work better on Linux when /proc and /sys are not mounted.
28871         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
28872         as lower bound when, on glibc/Linux systems,
28873         sysconf (_SC_NPROCESSORS_CONF) returns 1.
28874         Suggested by Pádraig Brady <P@draigbrady.com>.
28875         Reported by Dmitry V. Levin <ldv@altlinux.org>.
28876
28877         nproc: Refactor.
28878         * lib/nproc.c (num_processors_via_affinity_mask): New function,
28879         extracted from num_processors.
28880         (num_processors): Call it.
28881
28882 2010-01-11  Jim Meyering  <meyering@redhat.com>
28883
28884         utimecmp: avoid new warning from upcoming gcc-4.5.0
28885         * lib/utimecmp.c (BILLION): Define using #define rather than an
28886         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
28887
28888 2010-01-11  Eric Blake  <ebb9@byu.net>
28889
28890         math: add portability warnings for classification macros
28891         * modules/math (Depends-on): Add warn-on-use.
28892         (Makefile.am): Provide new substitutions.
28893         * m4/math_h.m4 (gl_MATH_H): Require inline.
28894         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
28895         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
28896         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
28897         implement warnings.
28898
28899         unistd: warn on use of environ without module
28900         * modules/unistd (Depends-on): Add warn-on-use.
28901         (Makefile.am): Provide new substitutions.
28902         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
28903         * lib/unistd.in.h (environ): Wrap with a warning helper function.
28904
28905         stdio: warn on suspicious uses
28906         * modules/stdio (Depends-on): Add warn-on-use.
28907         (Makefile.am): Provide new substitutions.
28908         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
28909         fseeko.
28910         * lib/stdio.in.h (gets): Always warn on use.
28911         (fseek, ftell): Adjust when warnings are issued, and honor
28912         _GL_NO_LARGE_FILES as a way to silence the warning.
28913         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
28914         any warning about large file offsets.
28915         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
28916         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
28917         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
28918         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
28919         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
28920         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
28921         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
28922         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
28923
28924         warn-on-use: new module
28925         * modules/warn-on-use: New file.
28926         * build-aux/warn-on-use.h: Likewise.
28927         * m4/warn-on-use.m4: Likewise.
28928         * MODULES.html.sh (Support for building): Mention it.
28929
28930 2010-01-10  Bruno Haible  <bruno@clisp.org>
28931
28932         Tests for module 'unistr/u32-strdup'.
28933         * modules/unistr/u32-strdup-tests: New file.
28934         * tests/unistr/test-u32-strdup.c: New file.
28935
28936         Tests for module 'unistr/u16-strdup'.
28937         * modules/unistr/u16-strdup-tests: New file.
28938         * tests/unistr/test-u16-strdup.c: New file.
28939
28940         Tests for module 'unistr/u8-strdup'.
28941         * modules/unistr/u8-strdup-tests: New file.
28942         * tests/unistr/test-u8-strdup.c: New file.
28943         * tests/unistr/test-strdup.h: New file.
28944
28945         Tests for module 'unistr/u32-strncmp'.
28946         * modules/unistr/u32-strncmp-tests: New file.
28947         * tests/unistr/test-u32-strncmp.c: New file.
28948
28949         Tests for module 'unistr/u16-strncmp'.
28950         * modules/unistr/u16-strncmp-tests: New file.
28951         * tests/unistr/test-u16-strncmp.c: New file.
28952
28953         Tests for module 'unistr/u8-strncmp'.
28954         * modules/unistr/u8-strncmp-tests: New file.
28955         * tests/unistr/test-u8-strncmp.c: New file.
28956         * tests/unistr/test-strncmp.h: New file.
28957
28958         Tests for module 'unistr/u32-strcoll'.
28959         * modules/unistr/u32-strcoll-tests: New file.
28960         * tests/unistr/test-u32-strcoll.c: New file.
28961
28962         Tests for module 'unistr/u16-strcoll'.
28963         * modules/unistr/u16-strcoll-tests: New file.
28964         * tests/unistr/test-u16-strcoll.c: New file.
28965
28966         Tests for module 'unistr/u8-strcoll'.
28967         * modules/unistr/u8-strcoll-tests: New file.
28968         * tests/unistr/test-u8-strcoll.c: New file.
28969
28970         Tests for module 'unistr/u32-strcmp'.
28971         * modules/unistr/u32-strcmp-tests: New file.
28972         * tests/unistr/test-u32-strcmp.c: New file.
28973         * tests/unistr/test-u32-strcmp.h: New file.
28974
28975         Tests for module 'unistr/u16-strcmp'.
28976         * modules/unistr/u16-strcmp-tests: New file.
28977         * tests/unistr/test-u16-strcmp.c: New file.
28978         * tests/unistr/test-u16-strcmp.h: New file.
28979
28980         Tests for module 'unistr/u8-strcmp'.
28981         * modules/unistr/u8-strcmp-tests: New file.
28982         * tests/unistr/test-u8-strcmp.c: New file.
28983         * tests/unistr/test-u8-strcmp.h: New file.
28984         * tests/unistr/test-strcmp.h: New file.
28985
28986         Tests for module 'unistr/u32-strncat'.
28987         * modules/unistr/u32-strncat-tests: New file.
28988         * tests/unistr/test-u32-strncat.c: New file.
28989
28990         Tests for module 'unistr/u16-strncat'.
28991         * modules/unistr/u16-strncat-tests: New file.
28992         * tests/unistr/test-u16-strncat.c: New file.
28993
28994         Tests for module 'unistr/u8-strncat'.
28995         * modules/unistr/u8-strncat-tests: New file.
28996         * tests/unistr/test-u8-strncat.c: New file.
28997         * tests/unistr/test-strncat.h: New file.
28998
28999         Tests for module 'unistr/u32-strcat'.
29000         * modules/unistr/u32-strcat-tests: New file.
29001         * tests/unistr/test-u32-strcat.c: New file.
29002
29003         Tests for module 'unistr/u16-strcat'.
29004         * modules/unistr/u16-strcat-tests: New file.
29005         * tests/unistr/test-u16-strcat.c: New file.
29006
29007         Tests for module 'unistr/u8-strcat'.
29008         * modules/unistr/u8-strcat-tests: New file.
29009         * tests/unistr/test-u8-strcat.c: New file.
29010         * tests/unistr/test-strcat.h: New file.
29011
29012         Tests for module 'unistr/u32-stpncpy'.
29013         * modules/unistr/u32-stpncpy-tests: New file.
29014         * tests/unistr/test-u32-stpncpy.c: New file.
29015
29016         Tests for module 'unistr/u16-stpncpy'.
29017         * modules/unistr/u16-stpncpy-tests: New file.
29018         * tests/unistr/test-u16-stpncpy.c: New file.
29019
29020         Tests for module 'unistr/u8-stpncpy'.
29021         * modules/unistr/u8-stpncpy-tests: New file.
29022         * tests/unistr/test-u8-stpncpy.c: New file.
29023         * tests/unistr/test-stpncpy.h: New file.
29024
29025         Tests for module 'unistr/u32-strncpy'.
29026         * modules/unistr/u32-strncpy-tests: New file.
29027         * tests/unistr/test-u32-strncpy.c: New file.
29028
29029         Tests for module 'unistr/u16-strncpy'.
29030         * modules/unistr/u16-strncpy-tests: New file.
29031         * tests/unistr/test-u16-strncpy.c: New file.
29032
29033         Tests for module 'unistr/u8-strncpy'.
29034         * modules/unistr/u8-strncpy-tests: New file.
29035         * tests/unistr/test-u8-strncpy.c: New file.
29036         * tests/unistr/test-strncpy.h: New file.
29037
29038         Tests for module 'unistr/u32-stpcpy'.
29039         * modules/unistr/u32-stpcpy-tests: New file.
29040         * tests/unistr/test-u32-stpcpy.c: New file.
29041
29042         Tests for module 'unistr/u16-stpcpy'.
29043         * modules/unistr/u16-stpcpy-tests: New file.
29044         * tests/unistr/test-u16-stpcpy.c: New file.
29045
29046         Tests for module 'unistr/u8-stpcpy'.
29047         * modules/unistr/u8-stpcpy-tests: New file.
29048         * tests/unistr/test-u8-stpcpy.c: New file.
29049         * tests/unistr/test-stpcpy.h: New file.
29050
29051         Tests for module 'unistr/u32-strcpy'.
29052         * modules/unistr/u32-strcpy-tests: New file.
29053         * tests/unistr/test-u32-strcpy.c: New file.
29054
29055         Tests for module 'unistr/u16-strcpy'.
29056         * modules/unistr/u16-strcpy-tests: New file.
29057         * tests/unistr/test-u16-strcpy.c: New file.
29058
29059         Tests for module 'unistr/u8-strcpy'.
29060         * modules/unistr/u8-strcpy-tests: New file.
29061         * tests/unistr/test-u8-strcpy.c: New file.
29062         * tests/unistr/test-strcpy.h: New file.
29063
29064         Tests for module 'unistr/u32-strnlen'.
29065         * modules/unistr/u32-strnlen-tests: New file.
29066         * tests/unistr/test-u32-strnlen.c: New file.
29067
29068         Tests for module 'unistr/u16-strnlen'.
29069         * modules/unistr/u16-strnlen-tests: New file.
29070         * tests/unistr/test-u16-strnlen.c: New file.
29071
29072         Tests for module 'unistr/u8-strnlen'.
29073         * modules/unistr/u8-strnlen-tests: New file.
29074         * tests/unistr/test-u8-strnlen.c: New file.
29075         * tests/unistr/test-strnlen.h: New file.
29076
29077         Tests for module 'unistr/u32-strlen'.
29078         * modules/unistr/u32-strlen-tests: New file.
29079         * tests/unistr/test-u32-strlen.c: New file.
29080
29081         Tests for module 'unistr/u16-strlen'.
29082         * modules/unistr/u16-strlen-tests: New file.
29083         * tests/unistr/test-u16-strlen.c: New file.
29084
29085         Tests for module 'unistr/u8-strlen'.
29086         * modules/unistr/u8-strlen-tests: New file.
29087         * tests/unistr/test-u8-strlen.c: New file.
29088
29089         Tests for module 'unistr/u32-prev'.
29090         * modules/unistr/u32-prev-tests: New file.
29091         * tests/unistr/test-u32-prev.c: New file.
29092
29093         Tests for module 'unistr/u16-prev'.
29094         * modules/unistr/u16-prev-tests: New file.
29095         * tests/unistr/test-u16-prev.c: New file.
29096
29097         Tests for module 'unistr/u8-prev'.
29098         * modules/unistr/u8-prev-tests: New file.
29099         * tests/unistr/test-u8-prev.c: New file.
29100
29101         Tests for module 'unistr/u32-next'.
29102         * modules/unistr/u32-next-tests: New file.
29103         * tests/unistr/test-u32-next.c: New file.
29104
29105         Tests for module 'unistr/u16-next'.
29106         * modules/unistr/u16-next-tests: New file.
29107         * tests/unistr/test-u16-next.c: New file.
29108
29109         Tests for module 'unistr/u8-next'.
29110         * modules/unistr/u8-next-tests: New file.
29111         * tests/unistr/test-u8-next.c: New file.
29112
29113         Tests for module 'unistr/u32-strmbtouc'.
29114         * modules/unistr/u32-strmbtouc-tests: New file.
29115         * tests/unistr/test-u32-strmbtouc.c: New file.
29116
29117         Tests for module 'unistr/u16-strmbtouc'.
29118         * modules/unistr/u16-strmbtouc-tests: New file.
29119         * tests/unistr/test-u16-strmbtouc.c: New file.
29120
29121         Tests for module 'unistr/u8-strmbtouc'.
29122         * modules/unistr/u8-strmbtouc-tests: New file.
29123         * tests/unistr/test-u8-strmbtouc.c: New file.
29124
29125         Tests for module 'unistr/u32-strmblen'.
29126         * modules/unistr/u32-strmblen-tests: New file.
29127         * tests/unistr/test-u32-strmblen.c: New file.
29128
29129         Tests for module 'unistr/u16-strmblen'.
29130         * modules/unistr/u16-strmblen-tests: New file.
29131         * tests/unistr/test-u16-strmblen.c: New file.
29132
29133         Tests for module 'unistr/u8-strmblen'.
29134         * modules/unistr/u8-strmblen-tests: New file.
29135         * tests/unistr/test-u8-strmblen.c: New file.
29136
29137         Tests for module 'unistr/u32-cpy-alloc'.
29138         * modules/unistr/u32-cpy-alloc-tests: New file.
29139         * tests/unistr/test-u32-cpy-alloc.c: New file.
29140
29141         Tests for module 'unistr/u16-cpy-alloc'.
29142         * modules/unistr/u16-cpy-alloc-tests: New file.
29143         * tests/unistr/test-u16-cpy-alloc.c: New file.
29144
29145         Tests for module 'unistr/u8-cpy-alloc'.
29146         * modules/unistr/u8-cpy-alloc-tests: New file.
29147         * tests/unistr/test-u8-cpy-alloc.c: New file.
29148         * tests/unistr/test-cpy-alloc.h: New file.
29149
29150         Tests for module 'unistr/u32-mbsnlen'.
29151         * modules/unistr/u32-mbsnlen-tests: New file.
29152         * tests/unistr/test-u32-mbsnlen.c: New file.
29153
29154         Tests for module 'unistr/u16-mbsnlen'.
29155         * modules/unistr/u16-mbsnlen-tests: New file.
29156         * tests/unistr/test-u16-mbsnlen.c: New file.
29157
29158         Tests for module 'unistr/u8-mbsnlen'.
29159         * modules/unistr/u8-mbsnlen-tests: New file.
29160         * tests/unistr/test-u8-mbsnlen.c: New file.
29161
29162         Tests for module 'unistr/u32-chr'.
29163         * modules/unistr/u32-chr-tests: New file.
29164         * tests/unistr/test-u32-chr.c: New file.
29165
29166         Tests for module 'unistr/u16-chr'.
29167         * modules/unistr/u16-chr-tests: New file.
29168         * tests/unistr/test-u16-chr.c: New file.
29169
29170         Tests for module 'unistr/u8-chr'.
29171         * modules/unistr/u8-chr-tests: New file.
29172         * tests/unistr/test-u8-chr.c: New file.
29173         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
29174
29175         Tests for module 'unistr/u32-cmp2'.
29176         * modules/unistr/u32-cmp2-tests: New file.
29177         * tests/unistr/test-u32-cmp2.c: New file.
29178
29179         Tests for module 'unistr/u16-cmp2'.
29180         * modules/unistr/u16-cmp2-tests: New file.
29181         * tests/unistr/test-u16-cmp2.c: New file.
29182
29183         Tests for module 'unistr/u8-cmp2'.
29184         * modules/unistr/u8-cmp2-tests: New file.
29185         * tests/unistr/test-u8-cmp2.c: New file.
29186         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
29187
29188         Tests for module 'unistr/u32-cmp'.
29189         * modules/unistr/u32-cmp-tests: New file.
29190         * tests/unistr/test-u32-cmp.c: New file.
29191
29192         Tests for module 'unistr/u16-cmp'.
29193         * modules/unistr/u16-cmp-tests: New file.
29194         * tests/unistr/test-u16-cmp.c: New file.
29195
29196         Tests for module 'unistr/u8-cmp'.
29197         * modules/unistr/u8-cmp-tests: New file.
29198         * tests/unistr/test-u8-cmp.c: New file.
29199         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
29200
29201         Tests for module 'unistr/u32-set'.
29202         * modules/unistr/u32-set-tests: New file.
29203         * tests/unistr/test-u32-set.c: New file.
29204
29205         Tests for module 'unistr/u16-set'.
29206         * modules/unistr/u16-set-tests: New file.
29207         * tests/unistr/test-u16-set.c: New file.
29208
29209         Tests for module 'unistr/u8-set'.
29210         * modules/unistr/u8-set-tests: New file.
29211         * tests/unistr/test-u8-set.c: New file.
29212         * tests/unistr/test-set.h: New file.
29213
29214         Tests for module 'unistr/u32-move'.
29215         * modules/unistr/u32-move-tests: New file.
29216         * tests/unistr/test-u32-move.c: New file.
29217
29218         Tests for module 'unistr/u16-move'.
29219         * modules/unistr/u16-move-tests: New file.
29220         * tests/unistr/test-u16-move.c: New file.
29221
29222         Tests for module 'unistr/u8-move'.
29223         * modules/unistr/u8-move-tests: New file.
29224         * tests/unistr/test-u8-move.c: New file.
29225         * tests/unistr/test-move.h: New file.
29226
29227         Tests for module 'unistr/u32-cpy'.
29228         * modules/unistr/u32-cpy-tests: New file.
29229         * tests/unistr/test-u32-cpy.c: New file.
29230
29231         Tests for module 'unistr/u16-cpy'.
29232         * modules/unistr/u16-cpy-tests: New file.
29233         * tests/unistr/test-u16-cpy.c: New file.
29234
29235         Tests for module 'unistr/u8-cpy'.
29236         * modules/unistr/u8-cpy-tests: New file.
29237         * tests/unistr/test-u8-cpy.c: New file.
29238         * tests/unistr/test-cpy.h: New file.
29239
29240 2010-01-09  Bruno Haible  <bruno@clisp.org>
29241
29242         Tests for module 'unistr/u32-uctomb'.
29243         * modules/unistr/u32-uctomb-tests: New file.
29244         * tests/unistr/test-u32-uctomb.c: New file.
29245
29246         Tests for module 'unistr/u16-uctomb'.
29247         * modules/unistr/u16-uctomb-tests: New file.
29248         * tests/unistr/test-u16-uctomb.c: New file.
29249
29250         Tests for module 'unistr/u8-uctomb'.
29251         * modules/unistr/u8-uctomb-tests: New file.
29252         * tests/unistr/test-u8-uctomb.c: New file.
29253
29254         Tests for module 'unistr/u32-mbtoucr'.
29255         * modules/unistr/u32-mbtoucr-tests: New file.
29256         * tests/unistr/test-u32-mbtoucr.c: New file.
29257
29258         Tests for module 'unistr/u16-mbtoucr'.
29259         * modules/unistr/u16-mbtoucr-tests: New file.
29260         * tests/unistr/test-u16-mbtoucr.c: New file.
29261
29262         Tests for module 'unistr/u8-mbtoucr'.
29263         * modules/unistr/u8-mbtoucr-tests: New file.
29264         * tests/unistr/test-u8-mbtoucr.c: New file.
29265
29266         Tests for module 'unistr/u32-mbtouc'.
29267         * modules/unistr/u32-mbtouc-tests: New file.
29268         * tests/unistr/test-u32-mbtouc.c: New file.
29269
29270         Tests for module 'unistr/u16-mbtouc'.
29271         * modules/unistr/u16-mbtouc-tests: New file.
29272         * tests/unistr/test-u16-mbtouc.c: New file.
29273
29274         Tests for module 'unistr/u8-mbtouc'.
29275         * modules/unistr/u8-mbtouc-tests: New file.
29276         * tests/unistr/test-u8-mbtouc.c: New file.
29277
29278         Tests for module 'unistr/u32-mbtouc-unsafe'.
29279         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
29280         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
29281         * tests/unistr/test-u32-mbtouc.h: New file.
29282
29283         Tests for module 'unistr/u16-mbtouc-unsafe'.
29284         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
29285         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
29286         * tests/unistr/test-u16-mbtouc.h: New file.
29287
29288         Tests for module 'unistr/u8-mbtouc-unsafe'.
29289         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
29290         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
29291         * tests/unistr/test-u8-mbtouc.h: New file.
29292
29293         Tests for module 'unistr/u32-mblen'.
29294         * modules/unistr/u32-mblen-tests: New file.
29295         * tests/unistr/test-u32-mblen.c: New file.
29296
29297         Tests for module 'unistr/u16-mblen'.
29298         * modules/unistr/u16-mblen-tests: New file.
29299         * tests/unistr/test-u16-mblen.c: New file.
29300
29301         Tests for module 'unistr/u8-mblen'.
29302         * modules/unistr/u8-mblen-tests: New file.
29303         * tests/unistr/test-u8-mblen.c: New file.
29304
29305         Tests for module 'unistr/u32-to-u16'.
29306         * modules/unistr/u32-to-u16-tests: New file.
29307         * tests/unistr/test-u32-to-u16.c: New file.
29308
29309         Tests for module 'unistr/u32-to-u8'.
29310         * modules/unistr/u32-to-u8-tests: New file.
29311         * tests/unistr/test-u32-to-u8.c: New file.
29312
29313         Tests for module 'unistr/u16-to-u32'.
29314         * modules/unistr/u16-to-u32-tests: New file.
29315         * tests/unistr/test-u16-to-u32.c: New file.
29316
29317         Tests for module 'unistr/u16-to-u8'.
29318         * modules/unistr/u16-to-u8-tests: New file.
29319         * tests/unistr/test-u16-to-u8.c: New file.
29320
29321         Tests for module 'unistr/u8-to-u32'.
29322         * modules/unistr/u8-to-u32-tests: New file.
29323         * tests/unistr/test-u8-to-u32.c: New file.
29324
29325         Tests for module 'unistr/u8-to-u16'.
29326         * modules/unistr/u8-to-u16-tests: New file.
29327         * tests/unistr/test-u8-to-u16.c: New file.
29328
29329         Tests for module 'unistr/u32-check'.
29330         * modules/unistr/u32-check-tests: New file.
29331         * tests/unistr/test-u32-check.c: New file.
29332
29333         Tests for module 'unistr/u16-check'.
29334         * modules/unistr/u16-check-tests: New file.
29335         * tests/unistr/test-u16-check.c: New file.
29336
29337         Tests for module 'unistr/u8-check'.
29338         * modules/unistr/u8-check-tests: New file.
29339         * tests/unistr/test-u8-check.c: New file.
29340
29341         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
29342         (category_equals): New function.
29343         (main): Add more tests.
29344         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
29345
29346         * tests/unictype/test-bidi_byname.c (main): Add more tests.
29347
29348 2010-01-10  Bruno Haible  <bruno@clisp.org>
29349
29350         unistr/u*-strcoll: Try harder to distinguish different strings.
29351         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
29352         compare s1 and s2 to see if they are different.
29353
29354 2010-01-10  Bruno Haible  <bruno@clisp.org>
29355
29356         unistr/u*-stpncpy: Fix the return value.
29357         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
29358         description of the return value consistent with stpncpy in glibc.
29359         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
29360         written non-NUL unit.
29361
29362 2010-01-10  Bruno Haible  <bruno@clisp.org>
29363
29364         unistr/u*-next: Add missing dependencies.
29365         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
29366         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
29367         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
29368
29369 2010-01-10  Bruno Haible  <bruno@clisp.org>
29370
29371         unistr/u8-mbsnlen: Fix return value for incomplete character.
29372         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
29373         u8_mblen.
29374         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
29375         Remove unistr/u8-mblen.
29376         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
29377         u16_mblen.
29378         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
29379         Remove unistr/u16-mblen.
29380
29381 2010-01-10  Bruno Haible  <bruno@clisp.org>
29382
29383         wchar: Fix compilation error when <wchar.h> is used from coreutils.
29384         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
29385         Reported by Brian Gough <bjg@gnu.org> and
29386         Chris Clayton <chris2553@googlemail.com> via
29387         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
29388
29389 2010-01-09  Bruno Haible  <bruno@clisp.org>
29390
29391         unistr/u16-to-u32: Reject invalid input.
29392         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
29393         u16_mbtouc.
29394         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
29395         Remove unistr/u16-mbtouc.
29396
29397         unistr/u16-to-u8: Reject invalid input.
29398         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
29399         u16_mbtouc.
29400         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
29401         Remove unistr/u16-mbtouc.
29402
29403         unistr/u8-to-u32: Reject invalid input.
29404         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
29405         u8_mbtouc.
29406         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
29407         Remove unistr/u8-mbtouc.
29408
29409         unistr/u8-to-u16: Reject invalid input.
29410         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
29411         u8_mbtouc.
29412         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
29413         Remove unistr/u8-mbtouc.
29414
29415 2010-01-09  Bruno Haible  <bruno@clisp.org>
29416
29417         Tests for module 'getlogin'.
29418         * modules/getlogin-tests: New file.
29419         * tests/test-getlogin.c: New file.
29420
29421         New module 'getlogin'.
29422         * lib/unistd.in.h (getlogin): New declaration.
29423         * lib/getlogin.c: New file.
29424         * m4/getlogin.m4: New file.
29425         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
29426         HAVE_GETLOGIN.
29427         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
29428         HAVE_GETLOGIN.
29429         * modules/getlogin: New file.
29430         * doc/posix-functions/getlogin.texi: Mention the new module.
29431         Reported by John W. Eaton <jwe@gnu.org>.
29432
29433 2010-01-09  Bruno Haible  <bruno@clisp.org>
29434
29435         getlogin_r: Support for native Windows.
29436         * lib/getlogin_r.c: Include <windows.h>
29437         (getlogin_r): Implement for native Windows.
29438         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
29439         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
29440         via John W. Eaton <jwe@gnu.org>.
29441
29442 2010-01-09  Bruno Haible  <bruno@clisp.org>
29443
29444         getlogin_r: Small fixes.
29445         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
29446         succeeds.
29447         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
29448         before testing whether getlogin_r is declared. No need to set
29449         HAVE_DECL_GETLOGIN_R to 1.
29450         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
29451
29452 2010-01-09  Bruno Haible  <bruno@clisp.org>
29453
29454         * lib/unistd.in.h (getlogin_r): Add comment.
29455
29456 2010-01-09  Bruno Haible  <bruno@clisp.org>
29457
29458         Tests for module 'getlogin_r'.
29459         * modules/getlogin_r-tests: New file.
29460         * tests/test-getlogin_r.c: New file.
29461
29462 2010-01-09  Jim Meyering  <meyering@redhat.com>
29463
29464         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
29465         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
29466         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
29467
29468 2010-01-08  Simon Josefsson  <simon@josefsson.org>
29469
29470         * lib/dup2.c (rpl_dup2): Improve comment.
29471
29472 2010-01-08  Eric Blake  <ebb9@byu.net>
29473
29474         maint.mk: allow packages to add makefile @@ exceptions
29475         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
29476         (sc_makefile_check): Rename...
29477         (sc_makefile_at_at_check): ...to this, and use hook.
29478
29479         dup2: work around mingw bug
29480         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
29481         Reported by Simon Josefsson.
29482
29483 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
29484
29485         glob: Fix C++ compilation.
29486         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
29487         C++.
29488
29489 2010-01-07  Bruno Haible  <bruno@clisp.org>
29490
29491         Fix indentation of wctype.in.h, broken since 2007-01-06.
29492         * lib/wctype.in.h: Fix indentation of preprocessor directives.
29493
29494 2010-01-07  Bruno Haible  <bruno@clisp.org>
29495
29496         mbslen: Avoid collision with system function.
29497         * lib/string.in.h [MirBSD]: Include <wchar.h>.
29498         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
29499         * m4/mbslen.m4: New file.
29500         * modules/mbslen (Files): Add it.
29501         (configure.ac): Invoke gl_MBSLEN.
29502         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
29503         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
29504         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
29505         via Ian Beckwith <ianb@erislabs.net>.
29506
29507 2010-01-07  Bruno Haible  <bruno@clisp.org>
29508
29509         dirent: Document the last fix.
29510         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
29511
29512 2010-01-07  Bruno Haible  <bruno@clisp.org>
29513
29514         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
29515         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
29516         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
29517         va_list are defined.
29518         * doc/posix-headers/stdio.texi: Document the bug of missing types.
29519         Reported by Eric Blake.
29520
29521 2010-01-07  Bruno Haible  <bruno@clisp.org>
29522
29523         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
29524         * modules/xlist (Depends-on): Add 'list',
29525         * modules/xoset (Depends-on): Add 'oset'.
29526         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29527
29528 2010-01-07  Bruno Haible  <bruno@clisp.org>
29529
29530         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
29531         * doc/posix-functions/strncasecmp.texi: Likewise.
29532
29533 2010-01-07  Bruno Haible  <bruno@clisp.org>
29534
29535         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
29536
29537 2010-01-07  John W. Eaton  <jwe@octave.org>
29538
29539         wctype: allow C++ use
29540         * lib/wctype.in.h: Add extern "C" block for C++.
29541
29542 2010-01-06  Eric Blake  <ebb9@byu.net>
29543
29544         maint.mk: detect incorrect GFDL usage
29545         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
29546
29547 2010-01-06  Jim Meyering  <meyering@redhat.com>
29548         and Eric Blake  <ebb9@byu.net>
29549
29550         maint.mk: ignore multi-line copyright in NEWS
29551         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
29552
29553 2010-01-06  Eric Blake  <ebb9@byu.net>
29554
29555         select: add missing dependency
29556         * modules/select-tests (Depends-on): Move sockets dependency...
29557         * modules/select (Depends-on): ...here.
29558         Reported by Ian Beckwith.
29559
29560         doc: regenerate INSTALL
29561         * doc/INSTALL: Reflect recent autoconf update.
29562         * doc/INSTALL.ISO: Likewise.
29563         * doc/INSTALL.UTF-8: Likewise.
29564
29565         pread: fix compilation on glibc
29566         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
29567         Reported by Ralf Wildenhues.
29568
29569         dirent: fix test failure
29570         * lib/dirent.in.h (includes): Guarantee ino_t.
29571         Reported by Ralf Wildenhues.
29572
29573 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
29574
29575         linkat, renameat: avoid bad free
29576         * lib/at-func2.c (at_func2): Fix typo.
29577         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
29578
29579 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29580
29581         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
29582         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
29583         to avoid failure of symlink test later.
29584
29585 2010-01-06  Eric Blake  <ebb9@byu.net>
29586
29587         stdio, unistd: guarantee ssize_t
29588         * lib/unistd.in.h (includes): Ensure that types required by POSIX
29589         2008 are exposed when needed.
29590         * lib/stdio.in.h (includes): Likewise.
29591         Reported by Ralf Wildenhues.
29592
29593 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
29594
29595         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
29596         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
29597         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
29598
29599 2010-01-06  Jim Meyering  <meyering@redhat.com>
29600
29601         readtokens: this module *does* require xalloc.h
29602         It uses only functions that were omitted by the old syntax-check rule.
29603         * lib/readtokens.c: Include "xalloc.h" once again.
29604         * modules/readtokens (Depends-on): Add xalloc.
29605         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
29606
29607 2010-01-05  Eric Blake  <ebb9@byu.net>
29608
29609         maint: support 'make announcement' from a VPATH build
29610         * top/maint.mk (announcement): Look for correct NEWS file.
29611
29612 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
29613
29614         utimens (fdutimens): ignore a negative FD, per contract
29615         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
29616         when we have a valid file descriptor.  Otherwise, using a brand
29617         new glibc (with just-patched futimens that now fails with EBADF)
29618         would cause this function to fail with ENOSYS.
29619         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
29620         See also http://bugzilla.redhat.com/552320.
29621
29622 2010-01-05  Eric Blake  <ebb9@byu.net>
29623
29624         strcase: document what it provides
29625         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
29626         gnulib module.
29627         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
29628         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
29629
29630 2010-01-05  Jim Meyering  <meyering@redhat.com>
29631
29632         maint: remove useless inclusions of "xalloc.h"
29633         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
29634         * lib/readtokens.c: Likewise.
29635         * lib/same.c: Likewise.
29636         * modules/getloadavg (Depends-on): Remove xalloc.
29637         * modules/readtokens: Likewise.
29638         * modules/same: Likewise.
29639
29640         maint.mk: include 4 more function names in alloca.h-checking regexp
29641         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
29642         regexp.  Before, we would give a false-positive (saying alloca.h
29643         is included unnecessarily) when the only uses involved omitted symbols.
29644
29645         xalloc.h: use consistent formatting
29646         * lib/xalloc.h: Move declarations to start in the first column.
29647
29648 2010-01-05  Eric Blake  <ebb9@byu.net>
29649
29650         mkdir: avoid xalloc
29651         * lib/mkdir.c (includes): Drop unused header.
29652         Reported by John W. Eaton.
29653
29654 2010-01-04  Jim Meyering  <meyering@redhat.com>
29655
29656         nl_langinfo: avoid configure-time syntax error
29657         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
29658         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
29659         the empty string.  Don't let that provoke a shell syntax error.
29660
29661         regcomp, regexec, fnmatch: avoid array bounds read error
29662         * lib/regcomp.c (build_equiv_class): From glibc:
29663         Use only the low 24 bits of a findidx return value as an index
29664         into the weights array.  Patch by Ulrich Drepper:
29665         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
29666         * lib/regexec.c (check_node_accept_bytes): Likewise.
29667         * lib/fnmatch_loop.c (FCT): Likewise.
29668
29669         regcomp: skip collseq lookup when there are no rules
29670         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
29671         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
29672
29673         regcomp: recognize ill-formed { } expressions
29674         * lib/regcomp.c (parse_dup_op): From glibc:
29675         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
29676
29677         regcomp: fix typo in comment
29678         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
29679         s/satisfy/satisfies/.
29680
29681         regcomp: sync from glibc: remove dead store
29682         * lib/regcomp.c (duplicate_node_closure): Remove useless
29683         search_duplicated_node call and dead store.
29684
29685         regcomp: sync from glibc; always use nl_langinfo
29686         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
29687         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
29688         * modules/regex (Depends-on): Add nl_langinfo.
29689
29690 2010-01-04  Eric Blake  <ebb9@byu.net>
29691
29692         fdopendir: fix configure test
29693         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
29694
29695 2010-01-01  Bruno Haible  <bruno@clisp.org>
29696
29697         wchar: Remove unused configure check.
29698         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
29699
29700 2010-01-01  Eric Blake  <ebb9@byu.net>
29701
29702         headers: make check of system header explicit
29703         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
29704         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
29705         ourselves.
29706         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
29707         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29708         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
29709         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
29710         internals.
29711         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
29712         missing.
29713         Suggested by Bruno Haible.
29714
29715 2010-01-01  Jim Meyering  <meyering@redhat.com>
29716
29717         ChangeLog: tweak to eliminate unnecessary copyright line
29718         * ChangeLog: Remove a copyright line that was mistakenly updated
29719         by today's update-copyright run.  Reported by Eric Blake.
29720
29721         test-update-copyright: don't let envvar setting cause test failure
29722         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
29723
29724 2010-01-01  Bruno Haible  <bruno@clisp.org>
29725
29726         localename: Avoid gcc warning.
29727         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
29728         function if it is not used.
29729
29730 2010-01-01  Jim Meyering  <meyering@redhat.com>
29731
29732         update nearly all FSF copyright year lists to include 2010
29733         Use the same procedure as for 2009, outlined in
29734         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
29735
29736         version-etc: set COPYRIGHT_YEAR to 2010
29737         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
29738
29739 2009-12-31  Eric Blake  <ebb9@byu.net>
29740
29741         doc: correct availability of cygwin 1.5.x getopt
29742         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
29743         variables.
29744         * doc/posix-functions/opterr.texi (opterr): Likewise.
29745         * doc/posix-functions/optind.texi (optind): Likewise.
29746         * doc/posix-functions/optopt.texi (optopt): Likewise.
29747         * doc/posix-functions/tzname.texi (tzname): Likewise.
29748
29749         openat: update maintainer
29750         * modules/openat (Maintainer): Add myself.
29751
29752         utimens: avoid shadowing warning
29753         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
29754         buffers into one, to avoid shadowing, as well as avoiding a
29755         redundant stat.
29756         Reported by Jim Meyering.
29757
29758         test-dup2: avoid compiler warning
29759         * tests/test-dup2.c (is_inheritable): Only define if used.
29760
29761 2010-01-01  Bruno Haible  <bruno@clisp.org>
29762
29763         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
29764         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
29765         defined, use wctomb instead of wcrtomb.
29766
29767 2010-01-01  Bruno Haible  <bruno@clisp.org>
29768
29769         iconv: Reject native Solaris iconv.
29770         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
29771         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
29772
29773 2009-12-31  Bruno Haible  <bruno@clisp.org>
29774
29775         * tests/test-signal.c (main): Remove test of 'SIG'.
29776
29777 2009-12-31  Bruno Haible  <bruno@clisp.org>
29778
29779         spawn: Fix incomplete fix.
29780         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29781         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29782         warnings for GNULIB_POSIXCHECK again.
29783         Reported by Eric Blake.
29784
29785 2009-12-31  Bruno Haible  <bruno@clisp.org>
29786
29787         Avoid namespace pollution on glibc systems.
29788         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
29789         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
29790         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
29791         glibc systems.
29792
29793 2009-12-31  Bruno Haible  <bruno@clisp.org>
29794
29795         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
29796         (gl_REPLACE_WCHAR_H): Turn into a no-op.
29797         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
29798         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
29799         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
29800         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
29801         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
29802
29803 2009-12-31  Bruno Haible  <bruno@clisp.org>
29804
29805         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
29806         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
29807         afterwards.
29808
29809 2009-12-31  Bruno Haible  <bruno@clisp.org>
29810
29811         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
29812         SYS_UTSNAME_H.
29813
29814 2009-12-31  Bruno Haible  <bruno@clisp.org>
29815
29816         spawn: Fix misapplied patch.
29817         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29818         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29819         warnings for GNULIB_POSIXCHECK.
29820
29821 2009-12-31  Bruno Haible  <bruno@clisp.org>
29822
29823         times: Update after sys_times changed.
29824         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
29825         * modules/times (Files): Add it.
29826         (configure.ac): Invoke gl_FUNC_TIMES.
29827
29828 2009-12-31  Bruno Haible  <bruno@clisp.org>
29829
29830         Use AC_C_INLINE where necessary.
29831         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
29832         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
29833         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
29834         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
29835         * m4/mbfile.m4 (gl_MBFILE): Likewise.
29836         * m4/mbiter.m4 (gl_MBITER): Likewise.
29837         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
29838         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29839         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
29840         * modules/u64 (configure.ac): Likewise.
29841
29842 2009-12-31  Bruno Haible  <bruno@clisp.org>
29843
29844         Use AC_C_INLINE instead of module 'inline' where possible.
29845         * modules/inline (Description): Clarify purpose.
29846         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
29847         * modules/count-one-bits (Depends-on): Remove inline.
29848         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
29849         * modules/openat (Depends-on): Remove inline.
29850         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
29851         instead of depending on module 'inline'.
29852         * modules/filevercmp (Depends-on, configure.ac): Likewise.
29853         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
29854         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
29855         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
29856         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
29857         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
29858         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
29859         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
29860         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
29861         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
29862         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
29863         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
29864         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
29865         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
29866         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
29867         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
29868         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
29869         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
29870         Likewise.
29871         * modules/unictype/property-ascii-hex-digit (Depends-on,
29872         configure.ac): Likewise.
29873         * modules/unictype/property-bidi-arabic-digit (Depends-on,
29874         configure.ac): Likewise.
29875         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
29876         configure.ac): Likewise.
29877         * modules/unictype/property-bidi-block-separator (Depends-on,
29878         configure.ac): Likewise.
29879         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
29880         configure.ac): Likewise.
29881         * modules/unictype/property-bidi-common-separator (Depends-on,
29882         configure.ac): Likewise.
29883         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
29884         Likewise.
29885         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
29886         configure.ac): Likewise.
29887         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
29888         configure.ac): Likewise.
29889         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
29890         configure.ac): Likewise.
29891         * modules/unictype/property-bidi-european-digit (Depends-on,
29892         configure.ac): Likewise.
29893         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
29894         configure.ac): Likewise.
29895         * modules/unictype/property-bidi-left-to-right (Depends-on,
29896         configure.ac): Likewise.
29897         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
29898         configure.ac): Likewise.
29899         * modules/unictype/property-bidi-other-neutral (Depends-on,
29900         configure.ac): Likewise.
29901         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
29902         Likewise.
29903         * modules/unictype/property-bidi-segment-separator (Depends-on,
29904         configure.ac): Likewise.
29905         * modules/unictype/property-bidi-whitespace (Depends-on,
29906         configure.ac): Likewise.
29907         * modules/unictype/property-combining (Depends-on, configure.ac):
29908         Likewise.
29909         * modules/unictype/property-composite (Depends-on, configure.ac):
29910         Likewise.
29911         * modules/unictype/property-currency-symbol (Depends-on,
29912         configure.ac): Likewise.
29913         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
29914         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
29915         Likewise.
29916         * modules/unictype/property-default-ignorable-code-point (Depends-on,
29917         configure.ac): Likewise.
29918         * modules/unictype/property-deprecated (Depends-on, configure.ac):
29919         Likewise.
29920         * modules/unictype/property-diacritic (Depends-on, configure.ac):
29921         Likewise.
29922         * modules/unictype/property-extender (Depends-on, configure.ac):
29923         Likewise.
29924         * modules/unictype/property-format-control (Depends-on, configure.ac):
29925         Likewise.
29926         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
29927         Likewise.
29928         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
29929         Likewise.
29930         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
29931         Likewise.
29932         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
29933         Likewise.
29934         * modules/unictype/property-hyphen (Depends-on, configure.ac):
29935         Likewise.
29936         * modules/unictype/property-id-continue (Depends-on, configure.ac):
29937         Likewise.
29938         * modules/unictype/property-id-start (Depends-on, configure.ac):
29939         Likewise.
29940         * modules/unictype/property-ideographic (Depends-on, configure.ac):
29941         Likewise.
29942         * modules/unictype/property-ids-binary-operator (Depends-on,
29943         configure.ac): Likewise.
29944         * modules/unictype/property-ids-trinary-operator (Depends-on,
29945         configure.ac): Likewise.
29946         * modules/unictype/property-ignorable-control (Depends-on,
29947         configure.ac): Likewise.
29948         * modules/unictype/property-iso-control (Depends-on, configure.ac):
29949         Likewise.
29950         * modules/unictype/property-join-control (Depends-on, configure.ac):
29951         Likewise.
29952         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
29953         Likewise.
29954         * modules/unictype/property-line-separator (Depends-on, configure.ac):
29955         Likewise.
29956         * modules/unictype/property-logical-order-exception (Depends-on,
29957         configure.ac): Likewise.
29958         * modules/unictype/property-lowercase (Depends-on, configure.ac):
29959         Likewise.
29960         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
29961         * modules/unictype/property-non-break (Depends-on, configure.ac):
29962         Likewise.
29963         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
29964         Likewise.
29965         * modules/unictype/property-numeric (Depends-on, configure.ac):
29966         Likewise.
29967         * modules/unictype/property-other-alphabetic (Depends-on,
29968         configure.ac): Likewise.
29969         * modules/unictype/property-other-default-ignorable-code-point
29970         (Depends-on, configure.ac): Likewise.
29971         * modules/unictype/property-other-grapheme-extend (Depends-on,
29972         configure.ac): Likewise.
29973         * modules/unictype/property-other-id-continue (Depends-on,
29974         configure.ac): Likewise.
29975         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
29976         Likewise.
29977         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
29978         Likewise.
29979         * modules/unictype/property-other-math (Depends-on, configure.ac):
29980         Likewise.
29981         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
29982         Likewise.
29983         * modules/unictype/property-paired-punctuation (Depends-on,
29984         configure.ac): Likewise.
29985         * modules/unictype/property-paragraph-separator (Depends-on,
29986         configure.ac): Likewise.
29987         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
29988         Likewise.
29989         * modules/unictype/property-pattern-white-space (Depends-on,
29990         configure.ac): Likewise.
29991         * modules/unictype/property-private-use (Depends-on, configure.ac):
29992         Likewise.
29993         * modules/unictype/property-punctuation (Depends-on, configure.ac):
29994         Likewise.
29995         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
29996         Likewise.
29997         * modules/unictype/property-radical (Depends-on, configure.ac):
29998         Likewise.
29999         * modules/unictype/property-sentence-terminal (Depends-on,
30000         configure.ac): Likewise.
30001         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
30002         Likewise.
30003         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
30004         * modules/unictype/property-terminal-punctuation (Depends-on,
30005         configure.ac): Likewise.
30006         * modules/unictype/property-titlecase (Depends-on, configure.ac):
30007         Likewise.
30008         * modules/unictype/property-unassigned-code-value (Depends-on,
30009         configure.ac): Likewise.
30010         * modules/unictype/property-unified-ideograph (Depends-on,
30011         configure.ac): Likewise.
30012         * modules/unictype/property-uppercase (Depends-on, configure.ac):
30013         Likewise.
30014         * modules/unictype/property-variation-selector (Depends-on,
30015         configure.ac): Likewise.
30016         * modules/unictype/property-white-space (Depends-on, configure.ac):
30017         Likewise.
30018         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
30019         Likewise.
30020         * modules/unictype/property-xid-start (Depends-on, configure.ac):
30021         Likewise.
30022         * modules/unictype/property-zero-width (Depends-on, configure.ac):
30023         Likewise.
30024         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
30025         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
30026         Likewise.
30027
30028 2009-12-31  Bruno Haible  <bruno@clisp.org>
30029
30030         Remove unnecessary AC_C_INLINE invocation.
30031         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
30032         since 2009-08-21.
30033
30034 2009-12-31  Jim Meyering  <meyering@redhat.com>
30035
30036         maint.mk: don't require explicit gpg_key_ID in cfg.mk
30037         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
30038         With this change, we can all remove the gpg_key_ID = ... definition
30039         from our respective cfg.mk files.
30040
30041         maint.mk: create announcement template in ~/, not in /tmp
30042         * top/maint.mk (emit_upload_commands): Adjust.
30043         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
30044         Remove temporary file, .ci-msg.
30045
30046 2009-12-31  Eric Blake  <ebb9@byu.net>
30047
30048         link-warning: always build headers with link warnings
30049         * modules/arpa_inet (Makefile.am): Always build replacement
30050         header.
30051         * modules/ctype (Makefile.am): Likewise.
30052         * modules/dirent (Makefile.am): Likewise.
30053         * modules/inttypes (Makefile.am): Likewise.
30054         * modules/langinfo (Makefile.am): Likewise.
30055         * modules/locale (Makefile.am): Likewise.
30056         * modules/spawn (Makefile.am): Likewise.
30057         * modules/sys_file (Makefile.am): Likewise.
30058         * modules/sys_ioctl (Makefile.am): Likewise.
30059         * modules/sys_select (Makefile.am): Likewise.
30060         * modules/sys_socket (Makefile.am): Likewise.
30061         * modules/sys_times (Makefile.am): Likewise.
30062         * modules/sys_utsname (Makefile.am): Likewise.
30063         * modules/sys_wait (Makefile.am): Likewise.
30064         * modules/wchar (Makefile.am): Likewise.
30065         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
30066         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
30067         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
30068         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
30069         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
30070         Likewise.
30071         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
30072         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
30073         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
30074         Likewise.
30075         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
30076         Likewise.
30077         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
30078         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
30079         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
30080         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30081         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
30082         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
30083         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
30084         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
30085         (gl_WCHAR_H_DEFAULTS): Likewise.
30086
30087 2009-12-31  Eric Blake  <ebb9@byu.net>
30088
30089         signal, spawn: use link warnings
30090         * lib/signal.in.h (sigset_t): Make unconditional.
30091         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
30092         (sigpending, sigprocmask, sigaction): Add link warnings.
30093         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
30094         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
30095         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
30096         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
30097         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
30098         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
30099         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
30100         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
30101         (posix_spawn_file_actions_destroy)
30102         (posix_spawn_file_actions_addopen)
30103         (posix_spawn_file_actions_addclose)
30104         (posix_spawn_file_actions_adddup2): Likewise.
30105         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
30106         * tests/test-signal.c (main): Enhance test.
30107
30108         spawn: improve wrapper support
30109         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
30110         (gl_SPAWN_H_DEFAULTS): New defaults.
30111         * modules/spawn (Makefile.am): Substitute them.
30112         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
30113         Only declare if missing or broken.
30114
30115         sys_times, sys_utsname: use include_next
30116         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
30117         header.
30118         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
30119         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
30120         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
30121         * modules/sys_times (Depends-on): Add include_next.
30122         (Makefile.am): Substitute additional values.
30123         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
30124         * lib/sys_times.in.h (includes): Include native header, if
30125         available.
30126         * lib/sys_utsname.in.h (includes): Likewise.
30127         * tests/test-sys_times.c (main): Enhance test.
30128
30129         fdutimensat: revert prior patch
30130         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
30131         utimens.h.
30132         Reported by Bruno Haible.
30133
30134 2009-12-30  Eric Blake  <ebb9@byu.net>
30135
30136         sys_wait: drop link-warning dependency
30137         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
30138         link-warning efforts.
30139         * lib/sys_wait.in.h: Likewise.
30140
30141         fdutimensat: remove bogus dependency
30142         * modules/fdutimensat (Depends-on): Drop inline.
30143
30144         unistd: fix typo
30145         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
30146
30147 2009-12-30  Bruno Haible  <bruno@clisp.org>
30148
30149         Fix compilation error with Solaris cc.
30150         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
30151         * lib/unicase/u16-is-invariant.c: Likewise.
30152         * lib/unicase/u32-is-invariant.c: Likewise.
30153         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
30154
30155 2009-12-30  Bruno Haible  <bruno@clisp.org>
30156
30157         Fix test crash.
30158         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
30159         locales.
30160         Reported by Simon Josefsson <simon@josefsson.org>.
30161
30162 2009-12-30  Bruno Haible  <bruno@clisp.org>
30163
30164         Fix compilation error on most platforms.
30165         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
30166         Reported by Simon Josefsson <simon@josefsson.org>
30167         and Nelson H. F. Beebe <beebe@math.utah.edu>.
30168
30169 2009-12-30  Eric Blake  <ebb9@byu.net>
30170
30171         futimens, utimensat: work around ntfs-3g bug
30172         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
30173         a ctime bug is present, and expand workaround to cover ntfs-3g.
30174         * lib/utimens.c (fdutimens, lutimens): Likewise.
30175         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
30176         (validate_timespec): Adjust return value.
30177         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
30178         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
30179         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
30180
30181 2009-12-29  Eric Blake  <ebb9@byu.net>
30182
30183         link-warning: make usage consistent
30184         * modules/ctype (Depends-on): Add link-warning.
30185         (Makefile.am): Update rules accordingly.
30186         * modules/langinfo (Depends-on, Makefile.am): Likewise.
30187         * modules/locale (Depends-on, Makefile.am): Likewise.
30188         * modules/sys_file (Makefile.am): Likewise.
30189         * modules/getopt-posix (Makefile.am): Delete unused link warning
30190         efforts.
30191         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
30192         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
30193         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
30194         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
30195
30196         stdio: remove unused variables
30197         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
30198         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
30199         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
30200
30201         tests: test more substitute headers
30202         * modules/ctype-tests: New file.
30203         * modules/dirent-tests: Likewise.
30204         * modules/spawn-tests: Likewise.
30205         * modules/sys_file-tests: Likewise.
30206         * modules/sys_ioctl-tests: Likewise.
30207         * modules/sys_wait-tests: Likewise.
30208         * tests/test-ctype.c: Likewise.
30209         * tests/test-dirent.c: Likewise.
30210         * tests/test-spawn.c: Likewise.
30211         * tests/test-sys_file.c: Likewise.
30212         * tests/test-sys_ioctl.c: Likewise.
30213         * tests/test-sys_wait.c: Likewise.
30214         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
30215         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
30216         whether or not flock is in use.
30217
30218         tests: remove License section from module
30219         * modules/arpa_inet-tests: Remove unneeded section.
30220         * modules/byteswap-tests: Likewise.
30221         * modules/ceilf-tests: Likewise.
30222         * modules/ceill-tests: Likewise.
30223         * modules/crypto/des-tests: Likewise.
30224         * modules/crypto/gc-arcfour-tests: Likewise.
30225         * modules/crypto/gc-arctwo-tests: Likewise.
30226         * modules/crypto/gc-des-tests: Likewise.
30227         * modules/crypto/gc-hmac-md5-tests: Likewise.
30228         * modules/crypto/gc-hmac-sha1-tests: Likewise.
30229         * modules/crypto/gc-md2-tests: Likewise.
30230         * modules/crypto/gc-md4-tests: Likewise.
30231         * modules/crypto/gc-md5-tests: Likewise.
30232         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
30233         * modules/crypto/gc-rijndael-tests: Likewise.
30234         * modules/crypto/gc-sha1-tests: Likewise.
30235         * modules/crypto/gc-tests: Likewise.
30236         * modules/crypto/md2-tests: Likewise.
30237         * modules/crypto/md4-tests: Likewise.
30238         * modules/fcntl-h-tests: Likewise.
30239         * modules/floorf-tests: Likewise.
30240         * modules/floorl-tests: Likewise.
30241         * modules/frexp-nolibm-tests: Likewise.
30242         * modules/frexp-tests: Likewise.
30243         * modules/frexpl-nolibm-tests: Likewise.
30244         * modules/frexpl-tests: Likewise.
30245         * modules/getaddrinfo-tests: Likewise.
30246         * modules/inttypes-tests: Likewise.
30247         * modules/isfinite-tests: Likewise.
30248         * modules/isinf-tests: Likewise.
30249         * modules/ldexpl-tests: Likewise.
30250         * modules/locale-tests: Likewise.
30251         * modules/math-tests: Likewise.
30252         * modules/netdb-tests: Likewise.
30253         * modules/netinet_in-tests: Likewise.
30254         * modules/printf-frexp-tests: Likewise.
30255         * modules/printf-frexpl-tests: Likewise.
30256         * modules/priv-set-tests: Likewise.
30257         * modules/random_r-tests: Likewise.
30258         * modules/round-tests: Likewise.
30259         * modules/roundf-tests: Likewise.
30260         * modules/roundl-tests: Likewise.
30261         * modules/search-tests: Likewise.
30262         * modules/select-tests: Likewise.
30263         * modules/signal-tests: Likewise.
30264         * modules/stdbool-tests: Likewise.
30265         * modules/stddef-tests: Likewise.
30266         * modules/stdint-tests: Likewise.
30267         * modules/stdio-tests: Likewise.
30268         * modules/stdlib-tests: Likewise.
30269         * modules/string-tests: Likewise.
30270         * modules/strings-tests: Likewise.
30271         * modules/sys_select-tests: Likewise.
30272         * modules/sys_socket-tests: Likewise.
30273         * modules/sys_stat-tests: Likewise.
30274         * modules/sys_time-tests: Likewise.
30275         * modules/sys_utsname-tests: Likewise.
30276         * modules/sysexits-tests: Likewise.
30277         * modules/time-tests: Likewise.
30278         * modules/trunc-tests: Likewise.
30279         * modules/truncf-tests: Likewise.
30280         * modules/truncl-tests: Likewise.
30281         * modules/tsearch-tests: Likewise.
30282         * modules/unistd-tests: Likewise.
30283         * modules/wchar-tests: Likewise.
30284         * modules/wctype-tests: Likewise.
30285
30286         tests: fix license on several tests
30287         * tests/test-des.c: Update to GPLv3+.
30288         * tests/test-flock.c: Likewise.
30289         * tests/test-fsync.c: Likewise.
30290         * tests/test-futimens.h: Likewise.
30291         * tests/test-gc-arcfour.c: Likewise.
30292         * tests/test-gc-arctwo.c: Likewise.
30293         * tests/test-gc-des.c: Likewise.
30294         * tests/test-gc-hmac-md5.c: Likewise.
30295         * tests/test-gc-hmac-sha1.c: Likewise.
30296         * tests/test-gc-md2.c: Likewise.
30297         * tests/test-gc-md4.c: Likewise.
30298         * tests/test-gc-md5.c: Likewise.
30299         * tests/test-gc-pbkdf2-sha1.c: Likewise.
30300         * tests/test-gc-rijndael.c: Likewise.
30301         * tests/test-gc-sha1.c: Likewise.
30302         * tests/test-gc.c: Likewise.
30303         * tests/test-getcwd.c: Likewise.
30304         * tests/test-link.c: Likewise.
30305         * tests/test-link.h: Likewise.
30306         * tests/test-lutimens.h: Likewise.
30307         * tests/test-md2.c: Likewise.
30308         * tests/test-md4.c: Likewise.
30309         * tests/test-mkdir.h: Likewise.
30310         * tests/test-rename.c: Likewise.
30311         * tests/test-rename.h: Likewise.
30312         * tests/test-safe-alloc.c: Likewise.
30313         * tests/test-utimens-common.h: Likewise.
30314         * tests/test-utimens.h: Likewise.
30315
30316         maint: sync license texts
30317         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
30318         * doc/gpl-3.0.texi: Revert copyright year update.
30319         * doc/lgpl-3.0.texi: Likewise.
30320
30321 2009-12-29  Jim Meyering  <meyering@redhat.com>
30322
30323         update nearly all FSF copyright year lists to include 2009
30324         The files named by the following are exempted:
30325             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
30326               test -f "$dst" && { echo "$dst"; continue; }
30327               test -d "$dst" || continue
30328               echo "$dst"/$(basename "$src")
30329             done > exempt
30330             git ls-files tests/unictype >> exempt
30331         In the remaining files, convert to all-interval notation if
30332         - there is already at least one year interval like 2000-2003
30333         - the file is maintained by me
30334         - the file is in lib/uni*/, where that style already prevails
30335         Otherwise, use update-copyright's default.
30336
30337 2009-12-29  Simon Josefsson  <simon@josefsson.org>
30338         and Eric Blake  <ebb9@byu.net>
30339
30340         tests: don't require debug system() to pass
30341         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
30342         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30343         * tests/test-unlink.h (test_unlink_func): Likewise.
30344         * tests/test-fstatat.c (main): ...into callers.
30345         * tests/test-lstat.c (main): Likewise.
30346         * tests/test-rmdir.c (main): Likewise.
30347         * tests/test-unlink.c (main): Likewise.
30348         * tests/test-unlinkat.c (main): Likewise.
30349         * tests/test-areadlink-with-size.c (main): Don't require a
30350         debug-only system call to pass, aiding cross-testing to mingw.
30351         * tests/test-areadlink.c (main): Likewise.
30352         * tests/test-areadlinkat-with-size.c (main): Likewise.
30353         * tests/test-areadlinkat.c (main): Likewise.
30354         * tests/test-canonicalize-lgpl.c (main): Likewise.
30355         * tests/test-canonicalize.c (main): Likewise.
30356         * tests/test-chown.c (main): Likewise.
30357         * tests/test-fchownat.c (main): Likewise.
30358         * tests/test-lchown.c (main): Likewise.
30359         * tests/test-fdutimensat.c (main): Likewise.
30360         * tests/test-futimens.c (main): Likewise.
30361         * tests/test-link.c (main): Likewise.
30362         * tests/test-linkat.c (main): Likewise.
30363         * tests/test-mkdir.c (main): Likewise.
30364         * tests/test-mkdirat.c (main): Likewise.
30365         * tests/test-mkfifo.c (main): Likewise.
30366         * tests/test-mkfifoat.c (main): Likewise.
30367         * tests/test-mknod.c (main): Likewise.
30368         * tests/test-readlink.c (main): Likewise.
30369         * tests/test-remove.c (main): Likewise.
30370         * tests/test-rename.c (main): Likewise.
30371         * tests/test-renameat.c (main): Likewise.
30372         * tests/test-symlink.c (main): Likewise.
30373         * tests/test-symlinkat.c (main): Likewise.
30374         * tests/test-utimens.c (main): Likewise.
30375         * tests/test-utimensat.c (main): Likewise.
30376
30377 2009-12-29  Simon Josefsson  <simon@josefsson.org>
30378
30379         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
30380         on $(UNUSED_PARAMETER_H) to avoid build failure.
30381
30382 2009-12-28  Jim Meyering  <meyering@redhat.com>
30383
30384         update-copyright: you may specify a max. line length other than 72
30385         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
30386
30387         maint: use consistent FSF copyright line syntax
30388         * lib/posixtm.c: Add missing comma in FSF copyright line.
30389         * lib/posixtm.h: Likewise.
30390         * lib/getugroups.c: Add missing ", Inc.".
30391
30392         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
30393         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
30394         FSF copyright line.  Remove trailing blanks.
30395
30396 2009-12-28  Eric Blake  <ebb9@byu.net>
30397
30398         test-dup2: reduce dependencies
30399         * modules/cloexec (Configure.ac): Set witness.
30400         * modules/dup2-tests (Depends-on): Drop cloexec.
30401         * tests/test-dup2.c (main): Skip portion of test if cloexec module
30402         not present.
30403         Suggested by Bruno Haible.
30404
30405 2009-12-26  Bruno Haible  <bruno@clisp.org>
30406
30407         Remove an unneeded dependency.
30408         * modules/fseterr (Depends-on): Remove dup2.
30409
30410 2009-12-26  Eric Blake  <ebb9@byu.net>
30411
30412         tests: use macros.h in more places
30413         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
30414         (ASSERT_STREAM): Provide default of stderr.
30415         * tests/test-dirent-safer.c: Include macros.h, using alternate
30416         stream for assertions.
30417         * tests/test-dup-safer.c: Likewise.
30418         * tests/test-freopen-safer.c: Likewise.
30419         * tests/test-getopt.c: Likewise.
30420         * tests/test-openat-safer.c: Likewise.
30421         * tests/test-pipe.c: Likewise.
30422         * tests/test-popen-safer.c: Likewise.
30423         * modules/dirent-safer-tests (Files): Include macros.h.
30424         * modules/unistd-safer-tests (Files): Likewise.
30425         * modules/freopen-safer-tests (Files): Likewise.
30426         * modules/getopt-posix-tests (Files): Likewise.
30427         * modules/openat-safer-tests (Files): Likewise.
30428         * modules/pipe-tests (Files): Likewise.
30429
30430 2009-12-26  Bruno Haible  <bruno@clisp.org>
30431
30432         javacomp: Portability fix.
30433         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
30434         that it also works on Solaris.
30435
30436 2009-12-26  Bruno Haible  <bruno@clisp.org>
30437
30438         localename: Fix storage allocation of gl_locale_name_thread's result.
30439         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
30440         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
30441         all platforms that have 'uselocale'.
30442         (gl_locale_name_thread_unsafe): New function, extracted from
30443         gl_locale_name_thread.
30444         (gl_locale_name_thread): Call struniq on all platforms that have
30445         'uselocale'.
30446         * tests/test-localename.c (test_locale_name_thread): Check that the
30447         resulting strings are permanently allocated.
30448         * modules/localename-tests (Depends-on): Add strdup.
30449
30450 2009-12-26  Bruno Haible  <bruno@clisp.org>
30451
30452         * tests/test-localename.c (categories): Fill in the strings.
30453
30454 2009-12-26  Jim Meyering  <meyering@redhat.com>
30455
30456         isdir: complete the removal of m4/isdir.m4
30457         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
30458
30459         isdir: clean up, since at least grep still uses it
30460         * lib/isdir.c: Include "isdir.h".
30461         (S_ISDIR): Remove now-unneeded definition.
30462         * modules/isdir (Files): Add lib/isdir.h.
30463         * lib/isdir.h: New file, with declaration.
30464         * m4/isdir.m4: Remove file -- unneeded.
30465
30466 2009-12-25  Bruno Haible  <bruno@clisp.org>
30467
30468         selinux-h: Make generated .h files standalone.
30469         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
30470         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
30471         * lib/se-selinux.in.h: Likewise.
30472         * modules/selinux-h (Depends-on): Add unused-parameter.
30473         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
30474         selinux/selinux.h and selinux/context.h.
30475         Suggested by Eric Blake.
30476
30477 2009-12-25  Bruno Haible  <bruno@clisp.org>
30478
30479         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
30480         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
30481         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
30482         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
30483         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
30484
30485 2009-12-24  Bruno Haible  <bruno@clisp.org>
30486
30487         openat: Fix warning.
30488         * lib/openat-proc.c: Include <unistd.h>.
30489
30490 2009-12-24  Bruno Haible  <bruno@clisp.org>
30491
30492         New module 'unused-parameter'.
30493         * build-aux/unused-parameter.h: New file, extracted from earlier
30494         gnulib-common.m4.
30495         * modules/unused-parameter: New file.
30496         * lib/unistr.h: Include unused-parameter.h.
30497         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
30498         _GL_UNUSED.
30499         * modules/unistr/base (Depends-on): Add unused-parameter.
30500
30501 2009-12-24  Bruno Haible  <bruno@clisp.org>
30502
30503         Add missing dependencies to 'extensions' module.
30504         * m4/extensions.m4: Add comment.
30505         * modules/accept4 (Depends-on): Add extensions.
30506         * modules/dup3 (Depends-on): Likewise.
30507         * modules/fcntl (Depends-on): Likewise.
30508         * modules/futimens (Depends-on): Likewise.
30509         * modules/mknod (Depends-on): Likewise.
30510         * modules/pipe2 (Depends-on): Likewise.
30511         * modules/stat-time (Depends-on): Likewise.
30512         * modules/strcasestr-simple (Depends-on): Likewise.
30513         * modules/strsignal (Depends-on): Likewise.
30514         * modules/utimensat (Depends-on): Likewise.
30515         * modules/localcharset (Depends-on): Likewise. Needed because of
30516         gl_FCNTL_O_FLAGS.
30517         * modules/wcrtomb (Depends-on): Likewise. Needed because of
30518         AC_TYPE_MBSTATE_T.
30519         * modules/wcsnrtombs (Depends-on): Likewise.
30520         * modules/wcsrtombs (Depends-on): Likewise.
30521
30522 2009-12-24  Bruno Haible  <bruno@clisp.org>
30523
30524         binary-io: Avoid gcc warning due to SET_BINARY.
30525         * lib/binary-io.h (SET_BINARY): Cast the result to void.
30526         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
30527
30528 2009-12-24  Bruno Haible  <bruno@clisp.org>
30529
30530         Avoid future namespace pollution on glibc systems.
30531         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
30532         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
30533         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
30534         glibc systems.
30535
30536 2009-12-24  Bruno Haible  <bruno@clisp.org>
30537
30538         Refactor common macros used in tests.
30539         * tests/macros.h: New file.
30540         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
30541         and/or <stdlib.h>, if appropriate.
30542         (ASSERT, SIZEOF): Remove macros.
30543         * tests/test-areadlink-with-size.c: Likewise.
30544         * tests/test-areadlinkat.c: Likewise.
30545         * tests/test-areadlinkat-with-size.c: Likewise.
30546         * tests/test-argmatch.c: Likewise.
30547         * tests/test-argv-iter.c: Likewise.
30548         * tests/test-array-mergesort.c: Likewise.
30549         * tests/test-array_list.c: Likewise.
30550         * tests/test-array_oset.c: Likewise.
30551         * tests/test-avltree_list.c: Likewise.
30552         * tests/test-avltree_oset.c: Likewise.
30553         * tests/test-avltreehash_list.c: Likewise.
30554         * tests/test-base64.c: Likewise.
30555         * tests/test-binary-io.c: Likewise.
30556         * tests/test-bitrotate.c: Likewise.
30557         * tests/test-btowc.c: Likewise.
30558         * tests/test-byteswap.c: Likewise.
30559         * tests/test-c-ctype.c: Likewise.
30560         * tests/test-c-stack.c: Likewise.
30561         * tests/test-c-strcasecmp.c: Likewise.
30562         * tests/test-c-strcasestr.c: Likewise.
30563         * tests/test-c-strncasecmp.c: Likewise.
30564         * tests/test-c-strstr.c: Likewise.
30565         * tests/test-canonicalize-lgpl.c: Likewise.
30566         * tests/test-canonicalize.c: Likewise.
30567         * tests/test-carray_list.c: Likewise.
30568         * tests/test-ceilf1.c: Likewise.
30569         * tests/test-ceilf2.c: Likewise.
30570         * tests/test-ceill.c: Likewise.
30571         * tests/test-chown.c: Likewise.
30572         * tests/test-cloexec.c: Likewise.
30573         * tests/test-copy-acl.c: Likewise.
30574         * tests/test-copy-file.c: Likewise.
30575         * tests/test-count-one-bits.c: Likewise.
30576         * tests/test-dprintf-posix.c: Likewise.
30577         * tests/test-dup2.c: Likewise.
30578         * tests/test-dup3.c: Likewise.
30579         * tests/test-duplocale.c: Likewise.
30580         * tests/test-fbufmode.c: Likewise.
30581         * tests/test-fchdir.c: Likewise.
30582         * tests/test-fchownat.c: Likewise.
30583         * tests/test-fcntl-safer.c: Likewise.
30584         * tests/test-fcntl.c: Likewise.
30585         * tests/test-fdopendir.c: Likewise.
30586         * tests/test-fdutimensat.c: Likewise.
30587         * tests/test-fflush2.c: Likewise.
30588         * tests/test-file-has-acl.c: Likewise.
30589         * tests/test-filevercmp.c: Likewise.
30590         * tests/test-flock.c: Likewise.
30591         * tests/test-floorf1.c: Likewise.
30592         * tests/test-floorf2.c: Likewise.
30593         * tests/test-floorl.c: Likewise.
30594         * tests/test-fnmatch.c: Likewise.
30595         * tests/test-fopen.h: Likewise.
30596         * tests/test-fpending.c: Likewise.
30597         * tests/test-fprintf-posix.c: Likewise.
30598         * tests/test-fpurge.c: Likewise.
30599         * tests/test-freadable.c: Likewise.
30600         * tests/test-freadahead.c: Likewise.
30601         * tests/test-freading.c: Likewise.
30602         * tests/test-freadptr.c: Likewise.
30603         * tests/test-freadptr2.c: Likewise.
30604         * tests/test-freadseek.c: Likewise.
30605         * tests/test-freopen.c: Likewise.
30606         * tests/test-frexp.c: Likewise.
30607         * tests/test-frexpl.c: Likewise.
30608         * tests/test-fseek.c: Likewise.
30609         * tests/test-fseeko.c: Likewise.
30610         * tests/test-fstatat.c: Likewise.
30611         * tests/test-fstrcmp.c: Likewise.
30612         * tests/test-fsync.c: Likewise.
30613         * tests/test-ftell.c: Likewise.
30614         * tests/test-ftello.c: Likewise.
30615         * tests/test-func.c: Likewise.
30616         * tests/test-futimens.c: Likewise.
30617         * tests/test-fwritable.c: Likewise.
30618         * tests/test-fwriting.c: Likewise.
30619         * tests/test-getcwd.c: Likewise.
30620         * tests/test-getdate.c: Likewise.
30621         * tests/test-getdelim.c: Likewise.
30622         * tests/test-getdtablesize.c: Likewise.
30623         * tests/test-getgroups.c: Likewise.
30624         * tests/test-getline.c: Likewise.
30625         * tests/test-getndelim2.c: Likewise.
30626         * tests/test-glob.c: Likewise.
30627         * tests/test-hash.c: Likewise.
30628         * tests/test-i-ring.c: Likewise.
30629         * tests/test-iconv-utf.c: Likewise.
30630         * tests/test-iconv.c: Likewise.
30631         * tests/test-idpriv-drop.c: Likewise.
30632         * tests/test-idpriv-droptemp.c: Likewise.
30633         * tests/test-inet_ntop.c: Likewise.
30634         * tests/test-inet_pton.c: Likewise.
30635         * tests/test-isblank.c: Likewise.
30636         * tests/test-isfinite.c: Likewise.
30637         * tests/test-isinf.c: Likewise.
30638         * tests/test-isnan.c: Likewise.
30639         * tests/test-isnand.h: Likewise.
30640         * tests/test-isnanf.h: Likewise.
30641         * tests/test-isnanl.h: Likewise.
30642         * tests/test-lchown.c: Likewise.
30643         * tests/test-ldexpl.c: Likewise.
30644         * tests/test-link.c: Likewise.
30645         * tests/test-linkat.c: Likewise.
30646         * tests/test-linked_list.c: Likewise.
30647         * tests/test-linkedhash_list.c: Likewise.
30648         * tests/test-localename.c: Likewise.
30649         * tests/test-lseek.c: Likewise.
30650         * tests/test-lstat.c: Likewise.
30651         * tests/test-mbmemcasecmp.c: Likewise.
30652         * tests/test-mbmemcasecoll.c: Likewise.
30653         * tests/test-mbrtowc.c: Likewise.
30654         * tests/test-mbscasecmp.c: Likewise.
30655         * tests/test-mbscasestr1.c: Likewise.
30656         * tests/test-mbscasestr2.c: Likewise.
30657         * tests/test-mbscasestr3.c: Likewise.
30658         * tests/test-mbscasestr4.c: Likewise.
30659         * tests/test-mbschr.c: Likewise.
30660         * tests/test-mbscspn.c: Likewise.
30661         * tests/test-mbsinit.c: Likewise.
30662         * tests/test-mbsncasecmp.c: Likewise.
30663         * tests/test-mbsnrtowcs.c: Likewise.
30664         * tests/test-mbspbrk.c: Likewise.
30665         * tests/test-mbspcasecmp.c: Likewise.
30666         * tests/test-mbsrchr.c: Likewise.
30667         * tests/test-mbsrtowcs.c: Likewise.
30668         * tests/test-mbsspn.c: Likewise.
30669         * tests/test-mbsstr1.c: Likewise.
30670         * tests/test-mbsstr2.c: Likewise.
30671         * tests/test-mbsstr3.c: Likewise.
30672         * tests/test-memchr.c: Likewise.
30673         * tests/test-memchr2.c: Likewise.
30674         * tests/test-memcmp.c: Likewise.
30675         * tests/test-memmem.c: Likewise.
30676         * tests/test-memrchr.c: Likewise.
30677         * tests/test-mkdir.c: Likewise.
30678         * tests/test-mkdirat.c: Likewise.
30679         * tests/test-mkfifo.c: Likewise.
30680         * tests/test-mkfifoat.c: Likewise.
30681         * tests/test-mknod.c: Likewise.
30682         * tests/test-nanosleep.c: Likewise.
30683         * tests/test-nl_langinfo.c: Likewise.
30684         * tests/test-obstack-printf.c: Likewise.
30685         * tests/test-open.c: Likewise.
30686         * tests/test-openat.c: Likewise.
30687         * tests/test-pipe-filter-gi1.c: Likewise.
30688         * tests/test-pipe-filter-gi2-main.c: Likewise.
30689         * tests/test-pipe-filter-ii1.c: Likewise.
30690         * tests/test-pipe-filter-ii2-main.c: Likewise.
30691         * tests/test-pipe2.c: Likewise.
30692         * tests/test-popen.h: Likewise.
30693         * tests/test-posixtm.c: Likewise.
30694         * tests/test-pread.c: Likewise.
30695         * tests/test-printf-frexp.c: Likewise.
30696         * tests/test-printf-frexpl.c: Likewise.
30697         * tests/test-printf-posix.c: Likewise.
30698         * tests/test-priv-set.c: Likewise.
30699         * tests/test-quotearg.c: Likewise.
30700         * tests/test-random_r.c: Likewise.
30701         * tests/test-rawmemchr.c: Likewise.
30702         * tests/test-rbtree_list.c: Likewise.
30703         * tests/test-rbtree_oset.c: Likewise.
30704         * tests/test-rbtreehash_list.c: Likewise.
30705         * tests/test-readlink.c: Likewise.
30706         * tests/test-remove.c: Likewise.
30707         * tests/test-rename.c: Likewise.
30708         * tests/test-renameat.c: Likewise.
30709         * tests/test-rmdir.c: Likewise.
30710         * tests/test-round1.c: Likewise.
30711         * tests/test-roundf1.c: Likewise.
30712         * tests/test-roundl.c: Likewise.
30713         * tests/test-safe-alloc.c: Likewise.
30714         * tests/test-sameacls.c: Likewise.
30715         * tests/test-set-mode-acl.c: Likewise.
30716         * tests/test-setenv.c: Likewise.
30717         * tests/test-sigaction.c: Likewise.
30718         * tests/test-signbit.c: Likewise.
30719         * tests/test-sleep.c: Likewise.
30720         * tests/test-snprintf-posix.c: Likewise.
30721         * tests/test-snprintf.c: Likewise.
30722         * tests/test-sprintf-posix.c: Likewise.
30723         * tests/test-stat-time.c: Likewise.
30724         * tests/test-stat.c: Likewise.
30725         * tests/test-strcasestr.c: Likewise.
30726         * tests/test-strchrnul.c: Likewise.
30727         * tests/test-strerror.c: Likewise.
30728         * tests/test-striconv.c: Likewise.
30729         * tests/test-striconveh.c: Likewise.
30730         * tests/test-striconveha.c: Likewise.
30731         * tests/test-strsignal.c: Likewise.
30732         * tests/test-strstr.c: Likewise.
30733         * tests/test-strtod.c: Likewise.
30734         * tests/test-strverscmp.c: Likewise.
30735         * tests/test-symlink.c: Likewise.
30736         * tests/test-symlinkat.c: Likewise.
30737         * tests/test-trunc1.c: Likewise.
30738         * tests/test-trunc2.c: Likewise.
30739         * tests/test-truncf1.c: Likewise.
30740         * tests/test-truncf2.c: Likewise.
30741         * tests/test-truncl.c: Likewise.
30742         * tests/test-uname.c: Likewise.
30743         * tests/test-unlink.c: Likewise.
30744         * tests/test-unlinkat.c: Likewise.
30745         * tests/test-unsetenv.c: Likewise.
30746         * tests/test-usleep.c: Likewise.
30747         * tests/test-utimens.c: Likewise.
30748         * tests/test-utimensat.c: Likewise.
30749         * tests/test-vasnprintf-posix.c: Likewise.
30750         * tests/test-vasnprintf-posix2.c: Likewise.
30751         * tests/test-vasnprintf.c: Likewise.
30752         * tests/test-vasprintf-posix.c: Likewise.
30753         * tests/test-vasprintf.c: Likewise.
30754         * tests/test-vdprintf-posix.c: Likewise.
30755         * tests/test-vfprintf-posix.c: Likewise.
30756         * tests/test-vprintf-posix.c: Likewise.
30757         * tests/test-vsnprintf-posix.c: Likewise.
30758         * tests/test-vsnprintf.c: Likewise.
30759         * tests/test-vsprintf-posix.c: Likewise.
30760         * tests/test-wcrtomb.c: Likewise.
30761         * tests/test-wcsnrtombs.c: Likewise.
30762         * tests/test-wcsrtombs.c: Likewise.
30763         * tests/test-wctype.c: Likewise.
30764         * tests/test-wcwidth.c: Likewise.
30765         * tests/test-xfprintf-posix.c: Likewise.
30766         * tests/test-xmemdup0.c: Likewise.
30767         * tests/test-xprintf-posix.c: Likewise.
30768         * tests/test-xvasprintf.c: Likewise.
30769         * tests/unicase/test-locale-language.c: Likewise.
30770         * tests/unicase/test-mapping-part1.h: Likewise.
30771         * tests/unicase/test-predicate-part1.h: Likewise.
30772         * tests/unicase/test-u8-casecmp.c: Likewise.
30773         * tests/unicase/test-u8-casecoll.c: Likewise.
30774         * tests/unicase/test-u8-casefold.c: Likewise.
30775         * tests/unicase/test-u8-is-cased.c: Likewise.
30776         * tests/unicase/test-u8-is-casefolded.c: Likewise.
30777         * tests/unicase/test-u8-is-lowercase.c: Likewise.
30778         * tests/unicase/test-u8-is-titlecase.c: Likewise.
30779         * tests/unicase/test-u8-is-uppercase.c: Likewise.
30780         * tests/unicase/test-u8-tolower.c: Likewise.
30781         * tests/unicase/test-u8-totitle.c: Likewise.
30782         * tests/unicase/test-u8-toupper.c: Likewise.
30783         * tests/unicase/test-u16-casecmp.c: Likewise.
30784         * tests/unicase/test-u16-casecoll.c: Likewise.
30785         * tests/unicase/test-u16-casefold.c: Likewise.
30786         * tests/unicase/test-u16-is-cased.c: Likewise.
30787         * tests/unicase/test-u16-is-casefolded.c: Likewise.
30788         * tests/unicase/test-u16-is-lowercase.c: Likewise.
30789         * tests/unicase/test-u16-is-titlecase.c: Likewise.
30790         * tests/unicase/test-u16-is-uppercase.c: Likewise.
30791         * tests/unicase/test-u16-tolower.c: Likewise.
30792         * tests/unicase/test-u16-totitle.c: Likewise.
30793         * tests/unicase/test-u16-toupper.c: Likewise.
30794         * tests/unicase/test-u32-casecmp.c: Likewise.
30795         * tests/unicase/test-u32-casecoll.c: Likewise.
30796         * tests/unicase/test-u32-casefold.c: Likewise.
30797         * tests/unicase/test-u32-is-cased.c: Likewise.
30798         * tests/unicase/test-u32-is-casefolded.c: Likewise.
30799         * tests/unicase/test-u32-is-lowercase.c: Likewise.
30800         * tests/unicase/test-u32-is-titlecase.c: Likewise.
30801         * tests/unicase/test-u32-is-uppercase.c: Likewise.
30802         * tests/unicase/test-u32-tolower.c: Likewise.
30803         * tests/unicase/test-u32-totitle.c: Likewise.
30804         * tests/unicase/test-u32-toupper.c: Likewise.
30805         * tests/unicase/test-ulc-casecmp.c: Likewise.
30806         * tests/unicase/test-ulc-casecoll.c: Likewise.
30807         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30808         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
30809         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30810         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30811         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
30812         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
30813         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30814         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30815         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30816         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
30817         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30818         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30819         * tests/unictype/test-bidi_byname.c: Likewise.
30820         * tests/unictype/test-bidi_name.c: Likewise.
30821         * tests/unictype/test-bidi_of.c: Likewise.
30822         * tests/unictype/test-bidi_test.c: Likewise.
30823         * tests/unictype/test-block_list.c: Likewise.
30824         * tests/unictype/test-block_of.c: Likewise.
30825         * tests/unictype/test-block_test.c: Likewise.
30826         * tests/unictype/test-categ_and.c: Likewise.
30827         * tests/unictype/test-categ_and_not.c: Likewise.
30828         * tests/unictype/test-categ_byname.c: Likewise.
30829         * tests/unictype/test-categ_name.c: Likewise.
30830         * tests/unictype/test-categ_none.c: Likewise.
30831         * tests/unictype/test-categ_of.c: Likewise.
30832         * tests/unictype/test-categ_or.c: Likewise.
30833         * tests/unictype/test-categ_test_withtable.c: Likewise.
30834         * tests/unictype/test-combining.c: Likewise.
30835         * tests/unictype/test-decdigit.c: Likewise.
30836         * tests/unictype/test-digit.c: Likewise.
30837         * tests/unictype/test-mirror.c: Likewise.
30838         * tests/unictype/test-numeric.c: Likewise.
30839         * tests/unictype/test-pr_byname.c: Likewise.
30840         * tests/unictype/test-pr_test.c: Likewise.
30841         * tests/unictype/test-predicate-part1.h: Likewise.
30842         * tests/unictype/test-scripts.c: Likewise.
30843         * tests/unictype/test-sy_c_ident.c: Likewise.
30844         * tests/unictype/test-sy_java_ident.c: Likewise.
30845         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
30846         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
30847         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
30848         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
30849         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
30850         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
30851         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
30852         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
30853         * tests/uninorm/test-canonical-decomposition.c: Likewise.
30854         * tests/uninorm/test-compat-decomposition.c: Likewise.
30855         * tests/uninorm/test-composition.c: Likewise.
30856         * tests/uninorm/test-decomposing-form.c: Likewise.
30857         * tests/uninorm/test-decomposition.c: Likewise.
30858         * tests/uninorm/test-u8-nfc.c: Likewise.
30859         * tests/uninorm/test-u8-nfd.c: Likewise.
30860         * tests/uninorm/test-u8-nfkc.c: Likewise.
30861         * tests/uninorm/test-u8-nfkd.c: Likewise.
30862         * tests/uninorm/test-u8-normcmp.c: Likewise.
30863         * tests/uninorm/test-u8-normcoll.c: Likewise.
30864         * tests/uninorm/test-u16-nfc.c: Likewise.
30865         * tests/uninorm/test-u16-nfd.c: Likewise.
30866         * tests/uninorm/test-u16-nfkc.c: Likewise.
30867         * tests/uninorm/test-u16-nfkd.c: Likewise.
30868         * tests/uninorm/test-u16-normcmp.c: Likewise.
30869         * tests/uninorm/test-u16-normcoll.c: Likewise.
30870         * tests/uninorm/test-u32-nfc.c: Likewise.
30871         * tests/uninorm/test-u32-nfd.c: Likewise.
30872         * tests/uninorm/test-u32-nfkc.c: Likewise.
30873         * tests/uninorm/test-u32-nfkd.c: Likewise.
30874         * tests/uninorm/test-u32-normalize-big.c: Likewise.
30875         * tests/uninorm/test-u32-normcmp.c: Likewise.
30876         * tests/uninorm/test-u32-normcoll.c: Likewise.
30877         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
30878         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
30879         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
30880         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
30881         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
30882         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
30883         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
30884         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
30885         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
30886         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
30887         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
30888         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
30889         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
30890         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
30891         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
30892         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
30893         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
30894         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
30895         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
30896         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
30897         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
30898         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
30899         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
30900         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
30901         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
30902         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
30903         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
30904         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
30905         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
30906         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
30907         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
30908         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
30909         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
30910         * tests/uniwidth/test-u8-strwidth.c: Likewise.
30911         * tests/uniwidth/test-u8-width.c: Likewise.
30912         * tests/uniwidth/test-u16-strwidth.c: Likewise.
30913         * tests/uniwidth/test-u16-width.c: Likewise.
30914         * tests/uniwidth/test-u32-strwidth.c: Likewise.
30915         * tests/uniwidth/test-u32-width.c: Likewise.
30916         * tests/uniwidth/test-uc_width.c: Likewise.
30917         * tests/uniwidth/test-uc_width2.c: Likewise.
30918         * modules/acl-tests (Files): Add tests/macros.h.
30919         * modules/areadlink-tests (Files): Likewise.
30920         * modules/areadlink-with-size-tests (Files): Likewise.
30921         * modules/areadlinkat-tests (Files): Likewise.
30922         * modules/areadlinkat-with-size-tests (Files): Likewise.
30923         * modules/argmatch-tests (Files): Likewise.
30924         * modules/argv-iter-tests (Files): Likewise.
30925         * modules/array-list-tests (Files): Likewise.
30926         * modules/array-mergesort-tests (Files): Likewise.
30927         * modules/array-oset-tests (Files): Likewise.
30928         * modules/avltree-list-tests (Files): Likewise.
30929         * modules/avltree-oset-tests (Files): Likewise.
30930         * modules/avltreehash-list-tests (Files): Likewise.
30931         * modules/base64-tests (Files): Likewise.
30932         * modules/binary-io-tests (Files): Likewise.
30933         * modules/bitrotate-tests (Files): Likewise.
30934         * modules/btowc-tests (Files): Likewise.
30935         * modules/byteswap-tests (Files): Likewise.
30936         * modules/c-ctype-tests (Files): Likewise.
30937         * modules/c-stack-tests (Files): Likewise.
30938         * modules/c-strcase-tests (Files): Likewise.
30939         * modules/c-strcasestr-tests (Files): Likewise.
30940         * modules/c-strstr-tests (Files): Likewise.
30941         * modules/canonicalize-lgpl-tests (Files): Likewise.
30942         * modules/canonicalize-tests (Files): Likewise.
30943         * modules/carray-list-tests (Files): Likewise.
30944         * modules/ceilf-tests (Files): Likewise.
30945         * modules/ceill-tests (Files): Likewise.
30946         * modules/chown-tests (Files): Likewise.
30947         * modules/cloexec-tests (Files): Likewise.
30948         * modules/copy-file-tests (Files): Likewise.
30949         * modules/count-one-bits-tests (Files): Likewise.
30950         * modules/dprintf-posix-tests (Files): Likewise.
30951         * modules/dup2-tests (Files): Likewise.
30952         * modules/dup3-tests (Files): Likewise.
30953         * modules/duplocale-tests (Files): Likewise.
30954         * modules/fbufmode-tests (Files): Likewise.
30955         * modules/fchdir-tests (Files): Likewise.
30956         * modules/fcntl-safer-tests (Files): Likewise.
30957         * modules/fcntl-tests (Files): Likewise.
30958         * modules/fdopendir-tests (Files): Likewise.
30959         * modules/fdutimensat-tests (Files): Likewise.
30960         * modules/fflush-tests (Files): Likewise.
30961         * modules/filevercmp-tests (Files): Likewise.
30962         * modules/flock-tests (Files): Likewise.
30963         * modules/floorf-tests (Files): Likewise.
30964         * modules/floorl-tests (Files): Likewise.
30965         * modules/fnmatch-tests (Files): Likewise.
30966         * modules/fopen-safer-tests (Files): Likewise.
30967         * modules/fopen-tests (Files): Likewise.
30968         * modules/fpending-tests (Files): Likewise.
30969         * modules/fprintf-posix-tests (Files): Likewise.
30970         * modules/fpurge-tests (Files): Likewise.
30971         * modules/freadable-tests (Files): Likewise.
30972         * modules/freadahead-tests (Files): Likewise.
30973         * modules/freading-tests (Files): Likewise.
30974         * modules/freadptr-tests (Files): Likewise.
30975         * modules/freadseek-tests (Files): Likewise.
30976         * modules/freopen-tests (Files): Likewise.
30977         * modules/frexp-nolibm-tests (Files): Likewise.
30978         * modules/frexp-tests (Files): Likewise.
30979         * modules/frexpl-nolibm-tests (Files): Likewise.
30980         * modules/frexpl-tests (Files): Likewise.
30981         * modules/fseek-tests (Files): Likewise.
30982         * modules/fseeko-tests (Files): Likewise.
30983         * modules/fstrcmp-tests (Files): Likewise.
30984         * modules/fsync-tests (Files): Likewise.
30985         * modules/ftell-tests (Files): Likewise.
30986         * modules/ftello-tests (Files): Likewise.
30987         * modules/func-tests (Files): Likewise.
30988         * modules/futimens-tests (Files): Likewise.
30989         * modules/fwritable-tests (Files): Likewise.
30990         * modules/fwriting-tests (Files): Likewise.
30991         * modules/getcwd-tests (Files): Likewise.
30992         * modules/getdate-tests (Files): Likewise.
30993         * modules/getdelim-tests (Files): Likewise.
30994         * modules/getdtablesize-tests (Files): Likewise.
30995         * modules/getgroups-tests (Files): Likewise.
30996         * modules/getline-tests (Files): Likewise.
30997         * modules/getndelim2-tests (Files): Likewise.
30998         * modules/glob-tests (Files): Likewise.
30999         * modules/hash-tests (Files): Likewise.
31000         * modules/i-ring-tests (Files): Likewise.
31001         * modules/iconv-tests (Files): Likewise.
31002         * modules/iconv_open-utf-tests (Files): Likewise.
31003         * modules/idpriv-drop-tests (Files): Likewise.
31004         * modules/idpriv-droptemp-tests (Files): Likewise.
31005         * modules/inet_ntop-tests (Files): Likewise.
31006         * modules/inet_pton-tests (Files): Likewise.
31007         * modules/isblank-tests (Files): Likewise.
31008         * modules/isfinite-tests (Files): Likewise.
31009         * modules/isinf-tests (Files): Likewise.
31010         * modules/isnan-tests (Files): Likewise.
31011         * modules/isnand-nolibm-tests (Files): Likewise.
31012         * modules/isnand-tests (Files): Likewise.
31013         * modules/isnanf-nolibm-tests (Files): Likewise.
31014         * modules/isnanf-tests (Files): Likewise.
31015         * modules/isnanl-nolibm-tests (Files): Likewise.
31016         * modules/isnanl-tests (Files): Likewise.
31017         * modules/lchown-tests (Files): Likewise.
31018         * modules/ldexpl-tests (Files): Likewise.
31019         * modules/link-tests (Files): Likewise.
31020         * modules/linkat-tests (Files): Likewise.
31021         * modules/linked-list-tests (Files): Likewise.
31022         * modules/linkedhash-list-tests (Files): Likewise.
31023         * modules/localename-tests (Files): Likewise.
31024         * modules/lseek-tests (Files): Likewise.
31025         * modules/lstat-tests (Files): Likewise.
31026         * modules/mbmemcasecmp-tests (Files): Likewise.
31027         * modules/mbmemcasecoll-tests (Files): Likewise.
31028         * modules/mbrtowc-tests (Files): Likewise.
31029         * modules/mbscasecmp-tests (Files): Likewise.
31030         * modules/mbscasestr-tests (Files): Likewise.
31031         * modules/mbschr-tests (Files): Likewise.
31032         * modules/mbscspn-tests (Files): Likewise.
31033         * modules/mbsinit-tests (Files): Likewise.
31034         * modules/mbsncasecmp-tests (Files): Likewise.
31035         * modules/mbsnrtowcs-tests (Files): Likewise.
31036         * modules/mbspbrk-tests (Files): Likewise.
31037         * modules/mbspcasecmp-tests (Files): Likewise.
31038         * modules/mbsrchr-tests (Files): Likewise.
31039         * modules/mbsrtowcs-tests (Files): Likewise.
31040         * modules/mbsspn-tests (Files): Likewise.
31041         * modules/mbsstr-tests (Files): Likewise.
31042         * modules/memchr-tests (Files): Likewise.
31043         * modules/memchr2-tests (Files): Likewise.
31044         * modules/memcmp-tests (Files): Likewise.
31045         * modules/memmem-tests (Files): Likewise.
31046         * modules/memrchr-tests (Files): Likewise.
31047         * modules/mkdir-tests (Files): Likewise.
31048         * modules/mkfifo-tests (Files): Likewise.
31049         * modules/mkfifoat-tests (Files): Likewise.
31050         * modules/mknod-tests (Files): Likewise.
31051         * modules/nanosleep-tests (Files): Likewise.
31052         * modules/nl_langinfo-tests (Files): Likewise.
31053         * modules/obstack-printf-tests (Files): Likewise.
31054         * modules/open-tests (Files): Likewise.
31055         * modules/openat-tests (Files): Likewise.
31056         * modules/pipe-filter-gi-tests (Files): Likewise.
31057         * modules/pipe-filter-ii-tests (Files): Likewise.
31058         * modules/pipe2-tests (Files): Likewise.
31059         * modules/popen-safer-tests (Files): Likewise.
31060         * modules/popen-tests (Files): Likewise.
31061         * modules/posixtm-tests (Files): Likewise.
31062         * modules/pread-tests (Files): Likewise.
31063         * modules/printf-frexp-tests (Files): Likewise.
31064         * modules/printf-frexpl-tests (Files): Likewise.
31065         * modules/printf-posix-tests (Files): Likewise.
31066         * modules/priv-set-tests (Files): Likewise.
31067         * modules/quotearg-tests (Files): Likewise.
31068         * modules/random_r-tests (Files): Likewise.
31069         * modules/rawmemchr-tests (Files): Likewise.
31070         * modules/rbtree-list-tests (Files): Likewise.
31071         * modules/rbtree-oset-tests (Files): Likewise.
31072         * modules/rbtreehash-list-tests (Files): Likewise.
31073         * modules/readlink-tests (Files): Likewise.
31074         * modules/remove-tests (Files): Likewise.
31075         * modules/rename-tests (Files): Likewise.
31076         * modules/renameat-tests (Files): Likewise.
31077         * modules/rmdir-tests (Files): Likewise.
31078         * modules/round-tests (Files): Likewise.
31079         * modules/roundf-tests (Files): Likewise.
31080         * modules/roundl-tests (Files): Likewise.
31081         * modules/safe-alloc-tests (Files): Likewise.
31082         * modules/setenv-tests (Files): Likewise.
31083         * modules/sigaction-tests (Files): Likewise.
31084         * modules/signbit-tests (Files): Likewise.
31085         * modules/sleep-tests (Files): Likewise.
31086         * modules/snprintf-posix-tests (Files): Likewise.
31087         * modules/snprintf-tests (Files): Likewise.
31088         * modules/sprintf-posix-tests (Files): Likewise.
31089         * modules/stat-tests (Files): Likewise.
31090         * modules/stat-time-tests (Files): Likewise.
31091         * modules/strcasestr-tests (Files): Likewise.
31092         * modules/strchrnul-tests (Files): Likewise.
31093         * modules/strerror-tests (Files): Likewise.
31094         * modules/striconv-tests (Files): Likewise.
31095         * modules/striconveh-tests (Files): Likewise.
31096         * modules/striconveha-tests (Files): Likewise.
31097         * modules/strsignal-tests (Files): Likewise.
31098         * modules/strstr-tests (Files): Likewise.
31099         * modules/strtod-tests (Files): Likewise.
31100         * modules/strverscmp-tests (Files): Likewise.
31101         * modules/symlink-tests (Files): Likewise.
31102         * modules/symlinkat-tests (Files): Likewise.
31103         * modules/trunc-tests (Files): Likewise.
31104         * modules/truncf-tests (Files): Likewise.
31105         * modules/truncl-tests (Files): Likewise.
31106         * modules/uname-tests (Files): Likewise.
31107         * modules/unicase/cased-tests (Files): Likewise.
31108         * modules/unicase/ignorable-tests (Files): Likewise.
31109         * modules/unicase/locale-language-tests (Files): Likewise.
31110         * modules/unicase/tolower-tests (Files): Likewise.
31111         * modules/unicase/totitle-tests (Files): Likewise.
31112         * modules/unicase/toupper-tests (Files): Likewise.
31113         * modules/unicase/u8-casecmp-tests (Files): Likewise.
31114         * modules/unicase/u8-casecoll-tests (Files): Likewise.
31115         * modules/unicase/u8-casefold-tests (Files): Likewise.
31116         * modules/unicase/u8-is-cased-tests (Files): Likewise.
31117         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
31118         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
31119         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
31120         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
31121         * modules/unicase/u8-tolower-tests (Files): Likewise.
31122         * modules/unicase/u8-totitle-tests (Files): Likewise.
31123         * modules/unicase/u8-toupper-tests (Files): Likewise.
31124         * modules/unicase/u16-casecmp-tests (Files): Likewise.
31125         * modules/unicase/u16-casecoll-tests (Files): Likewise.
31126         * modules/unicase/u16-casefold-tests (Files): Likewise.
31127         * modules/unicase/u16-is-cased-tests (Files): Likewise.
31128         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
31129         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
31130         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
31131         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
31132         * modules/unicase/u16-tolower-tests (Files): Likewise.
31133         * modules/unicase/u16-totitle-tests (Files): Likewise.
31134         * modules/unicase/u16-toupper-tests (Files): Likewise.
31135         * modules/unicase/u32-casecmp-tests (Files): Likewise.
31136         * modules/unicase/u32-casecoll-tests (Files): Likewise.
31137         * modules/unicase/u32-casefold-tests (Files): Likewise.
31138         * modules/unicase/u32-is-cased-tests (Files): Likewise.
31139         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
31140         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
31141         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
31142         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
31143         * modules/unicase/u32-tolower-tests (Files): Likewise.
31144         * modules/unicase/u32-totitle-tests (Files): Likewise.
31145         * modules/unicase/u32-toupper-tests (Files): Likewise.
31146         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
31147         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
31148         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
31149         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
31150         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
31151         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
31152         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
31153         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
31154         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
31155         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
31156         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
31157         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
31158         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
31159         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
31160         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
31161         * modules/unictype/bidicategory-name-tests (Files): Likewise.
31162         * modules/unictype/bidicategory-of-tests (Files): Likewise.
31163         * modules/unictype/bidicategory-test-tests (Files): Likewise.
31164         * modules/unictype/block-list-tests (Files): Likewise.
31165         * modules/unictype/block-of-tests (Files): Likewise.
31166         * modules/unictype/block-test-tests (Files): Likewise.
31167         * modules/unictype/category-C-tests (Files): Likewise.
31168         * modules/unictype/category-Cc-tests (Files): Likewise.
31169         * modules/unictype/category-Cf-tests (Files): Likewise.
31170         * modules/unictype/category-Cn-tests (Files): Likewise.
31171         * modules/unictype/category-Co-tests (Files): Likewise.
31172         * modules/unictype/category-Cs-tests (Files): Likewise.
31173         * modules/unictype/category-L-tests (Files): Likewise.
31174         * modules/unictype/category-Ll-tests (Files): Likewise.
31175         * modules/unictype/category-Lm-tests (Files): Likewise.
31176         * modules/unictype/category-Lo-tests (Files): Likewise.
31177         * modules/unictype/category-Lt-tests (Files): Likewise.
31178         * modules/unictype/category-Lu-tests (Files): Likewise.
31179         * modules/unictype/category-M-tests (Files): Likewise.
31180         * modules/unictype/category-Mc-tests (Files): Likewise.
31181         * modules/unictype/category-Me-tests (Files): Likewise.
31182         * modules/unictype/category-Mn-tests (Files): Likewise.
31183         * modules/unictype/category-N-tests (Files): Likewise.
31184         * modules/unictype/category-Nd-tests (Files): Likewise.
31185         * modules/unictype/category-Nl-tests (Files): Likewise.
31186         * modules/unictype/category-No-tests (Files): Likewise.
31187         * modules/unictype/category-P-tests (Files): Likewise.
31188         * modules/unictype/category-Pc-tests (Files): Likewise.
31189         * modules/unictype/category-Pd-tests (Files): Likewise.
31190         * modules/unictype/category-Pe-tests (Files): Likewise.
31191         * modules/unictype/category-Pf-tests (Files): Likewise.
31192         * modules/unictype/category-Pi-tests (Files): Likewise.
31193         * modules/unictype/category-Po-tests (Files): Likewise.
31194         * modules/unictype/category-Ps-tests (Files): Likewise.
31195         * modules/unictype/category-S-tests (Files): Likewise.
31196         * modules/unictype/category-Sc-tests (Files): Likewise.
31197         * modules/unictype/category-Sk-tests (Files): Likewise.
31198         * modules/unictype/category-Sm-tests (Files): Likewise.
31199         * modules/unictype/category-So-tests (Files): Likewise.
31200         * modules/unictype/category-Z-tests (Files): Likewise.
31201         * modules/unictype/category-Zl-tests (Files): Likewise.
31202         * modules/unictype/category-Zp-tests (Files): Likewise.
31203         * modules/unictype/category-Zs-tests (Files): Likewise.
31204         * modules/unictype/category-and-not-tests (Files): Likewise.
31205         * modules/unictype/category-and-tests (Files): Likewise.
31206         * modules/unictype/category-byname-tests (Files): Likewise.
31207         * modules/unictype/category-name-tests (Files): Likewise.
31208         * modules/unictype/category-none-tests (Files): Likewise.
31209         * modules/unictype/category-of-tests (Files): Likewise.
31210         * modules/unictype/category-or-tests (Files): Likewise.
31211         * modules/unictype/category-test-withtable-tests (Files): Likewise.
31212         * modules/unictype/combining-class-tests (Files): Likewise.
31213         * modules/unictype/ctype-alnum-tests (Files): Likewise.
31214         * modules/unictype/ctype-alpha-tests (Files): Likewise.
31215         * modules/unictype/ctype-blank-tests (Files): Likewise.
31216         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
31217         * modules/unictype/ctype-digit-tests (Files): Likewise.
31218         * modules/unictype/ctype-graph-tests (Files): Likewise.
31219         * modules/unictype/ctype-lower-tests (Files): Likewise.
31220         * modules/unictype/ctype-print-tests (Files): Likewise.
31221         * modules/unictype/ctype-punct-tests (Files): Likewise.
31222         * modules/unictype/ctype-space-tests (Files): Likewise.
31223         * modules/unictype/ctype-upper-tests (Files): Likewise.
31224         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
31225         * modules/unictype/decimal-digit-tests (Files): Likewise.
31226         * modules/unictype/digit-tests (Files): Likewise.
31227         * modules/unictype/mirror-tests (Files): Likewise.
31228         * modules/unictype/numeric-tests (Files): Likewise.
31229         * modules/unictype/property-alphabetic-tests (Files): Likewise.
31230         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
31231         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
31232         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
31233         Likewise.
31234         * modules/unictype/property-bidi-block-separator-tests (Files):
31235         Likewise.
31236         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
31237         Likewise.
31238         * modules/unictype/property-bidi-common-separator-tests (Files):
31239         Likewise.
31240         * modules/unictype/property-bidi-control-tests (Files): Likewise.
31241         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
31242         Likewise.
31243         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
31244         Likewise.
31245         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
31246         Likewise.
31247         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
31248         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
31249         Likewise.
31250         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
31251         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
31252         Likewise.
31253         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
31254         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
31255         * modules/unictype/property-bidi-segment-separator-tests (Files):
31256         Likewise.
31257         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
31258         * modules/unictype/property-byname-tests (Files): Likewise.
31259         * modules/unictype/property-combining-tests (Files): Likewise.
31260         * modules/unictype/property-composite-tests (Files): Likewise.
31261         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
31262         * modules/unictype/property-dash-tests (Files): Likewise.
31263         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
31264         * modules/unictype/property-default-ignorable-code-point-tests (Files):
31265         Likewise.
31266         * modules/unictype/property-deprecated-tests (Files): Likewise.
31267         * modules/unictype/property-diacritic-tests (Files): Likewise.
31268         * modules/unictype/property-extender-tests (Files): Likewise.
31269         * modules/unictype/property-format-control-tests (Files): Likewise.
31270         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
31271         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
31272         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
31273         * modules/unictype/property-hex-digit-tests (Files): Likewise.
31274         * modules/unictype/property-hyphen-tests (Files): Likewise.
31275         * modules/unictype/property-id-continue-tests (Files): Likewise.
31276         * modules/unictype/property-id-start-tests (Files): Likewise.
31277         * modules/unictype/property-ideographic-tests (Files): Likewise.
31278         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
31279         * modules/unictype/property-ids-trinary-operator-tests (Files):
31280         Likewise.
31281         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
31282         * modules/unictype/property-iso-control-tests (Files): Likewise.
31283         * modules/unictype/property-join-control-tests (Files): Likewise.
31284         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
31285         * modules/unictype/property-line-separator-tests (Files): Likewise.
31286         * modules/unictype/property-logical-order-exception-tests (Files):
31287         Likewise.
31288         * modules/unictype/property-lowercase-tests (Files): Likewise.
31289         * modules/unictype/property-math-tests (Files): Likewise.
31290         * modules/unictype/property-non-break-tests (Files): Likewise.
31291         * modules/unictype/property-not-a-character-tests (Files): Likewise.
31292         * modules/unictype/property-numeric-tests (Files): Likewise.
31293         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
31294         * modules/unictype/property-other-default-ignorable-code-point-tests
31295         (Files): Likewise.
31296         * modules/unictype/property-other-grapheme-extend-tests (Files):
31297         Likewise.
31298         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
31299         * modules/unictype/property-other-id-start-tests (Files): Likewise.
31300         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
31301         * modules/unictype/property-other-math-tests (Files): Likewise.
31302         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
31303         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
31304         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
31305         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
31306         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
31307         * modules/unictype/property-private-use-tests (Files): Likewise.
31308         * modules/unictype/property-punctuation-tests (Files): Likewise.
31309         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
31310         * modules/unictype/property-radical-tests (Files): Likewise.
31311         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
31312         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
31313         * modules/unictype/property-space-tests (Files): Likewise.
31314         * modules/unictype/property-terminal-punctuation-tests (Files):
31315         Likewise.
31316         * modules/unictype/property-test-tests (Files): Likewise.
31317         * modules/unictype/property-titlecase-tests (Files): Likewise.
31318         * modules/unictype/property-unassigned-code-value-tests (Files):
31319         Likewise.
31320         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
31321         * modules/unictype/property-uppercase-tests (Files): Likewise.
31322         * modules/unictype/property-variation-selector-tests (Files): Likewise.
31323         * modules/unictype/property-white-space-tests (Files): Likewise.
31324         * modules/unictype/property-xid-continue-tests (Files): Likewise.
31325         * modules/unictype/property-xid-start-tests (Files): Likewise.
31326         * modules/unictype/property-zero-width-tests (Files): Likewise.
31327         * modules/unictype/scripts-tests (Files): Likewise.
31328         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
31329         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
31330         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
31331         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
31332         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
31333         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
31334         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
31335         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
31336         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
31337         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
31338         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
31339         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
31340         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
31341         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
31342         * modules/uninorm/composition-tests (Files): Likewise.
31343         * modules/uninorm/decomposing-form-tests (Files): Likewise.
31344         * modules/uninorm/decomposition-tests (Files): Likewise.
31345         * modules/uninorm/filter-tests (Files): Likewise.
31346         * modules/uninorm/nfc-tests (Files): Likewise.
31347         * modules/uninorm/nfd-tests (Files): Likewise.
31348         * modules/uninorm/nfkc-tests (Files): Likewise.
31349         * modules/uninorm/nfkd-tests (Files): Likewise.
31350         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
31351         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
31352         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
31353         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
31354         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
31355         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
31356         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
31357         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
31358         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
31359         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
31360         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
31361         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
31362         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
31363         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
31364         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
31365         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
31366         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
31367         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
31368         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
31369         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
31370         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
31371         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
31372         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
31373         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
31374         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
31375         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
31376         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
31377         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
31378         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
31379         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
31380         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
31381         * modules/uniwidth/u8-width-tests (Files): Likewise.
31382         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
31383         * modules/uniwidth/u16-width-tests (Files): Likewise.
31384         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
31385         * modules/uniwidth/u32-width-tests (Files): Likewise.
31386         * modules/uniwidth/width-tests (Files): Likewise.
31387         * modules/unlink-tests (Files): Likewise.
31388         * modules/unsetenv-tests (Files): Likewise.
31389         * modules/usleep-tests (Files): Likewise.
31390         * modules/utimens-tests (Files): Likewise.
31391         * modules/utimensat-tests (Files): Likewise.
31392         * modules/vasnprintf-posix-tests (Files): Likewise.
31393         * modules/vasnprintf-tests (Files): Likewise.
31394         * modules/vasprintf-posix-tests (Files): Likewise.
31395         * modules/vasprintf-tests (Files): Likewise.
31396         * modules/vdprintf-posix-tests (Files): Likewise.
31397         * modules/vfprintf-posix-tests (Files): Likewise.
31398         * modules/vprintf-posix-tests (Files): Likewise.
31399         * modules/vsnprintf-posix-tests (Files): Likewise.
31400         * modules/vsnprintf-tests (Files): Likewise.
31401         * modules/vsprintf-posix-tests (Files): Likewise.
31402         * modules/wcrtomb-tests (Files): Likewise.
31403         * modules/wcsnrtombs-tests (Files): Likewise.
31404         * modules/wcsrtombs-tests (Files): Likewise.
31405         * modules/wctype-tests (Files): Likewise.
31406         * modules/wcwidth-tests (Files): Likewise.
31407         * modules/xmemdup0-tests (Files): Likewise.
31408         * modules/xprintf-posix-tests (Files): Likewise.
31409         * modules/xvasprintf-tests (Files): Likewise.
31410
31411 2009-12-24  Eric Blake  <ebb9@byu.net>
31412
31413         test-nanosleep: fix typo
31414         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
31415         patch.
31416         Reported by Bruno Haible.
31417
31418 2009-12-24  Bruno Haible  <bruno@clisp.org>
31419
31420         Reduce namespace pollution on glibc systems.
31421         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
31422         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
31423         systems.
31424         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
31425         <getopt.h> on glibc systems.
31426         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
31427         systems.
31428         * lib/fcntl.c: Include <unistd.h> here instead.
31429
31430 2009-12-24  Bruno Haible  <bruno@clisp.org>
31431
31432         * lib/stdlib.in.h (includes): Fix typo in today's commit.
31433
31434 2009-12-24  Eric Blake  <ebb9@byu.net>
31435
31436         tests: add signature checks
31437         * tests/signature.h (SIGNATURE_CHECK): New file.
31438         * modules/atexit-tests (Files): Use it.
31439         * modules/btowc-tests (Files): Likewise.
31440         * modules/canonicalize-lgpl-tests (Files): Likewise.
31441         * modules/ceilf-tests (Files): Likewise.
31442         * modules/ceill-tests (Files): Likewise.
31443         * modules/chown-tests (Files): Likewise.
31444         * modules/dprintf-posix-tests (Files): Likewise.
31445         * modules/dup2-tests (Files): Likewise.
31446         * modules/dup3-tests (Files): Likewise.
31447         * modules/duplocale-tests (Files): Likewise.
31448         * modules/fchdir-tests (Files): Likewise.
31449         * modules/fcntl-tests (Files): Likewise.
31450         * modules/fdopendir-tests (Files): Likewise.
31451         * modules/fflush-tests (Files): Likewise.
31452         * modules/flock-tests (Files): Likewise.
31453         * modules/floorf-tests (Files): Likewise.
31454         * modules/floorl-tests (Files): Likewise.
31455         * modules/fnmatch-tests (Files): Likewise.
31456         * modules/fopen-tests (Files): Likewise.
31457         * modules/fprintf-posix-tests (Files): Likewise.
31458         * modules/freopen-tests (Files): Likewise.
31459         * modules/frexp-nolibm-tests (Files): Likewise.
31460         * modules/frexp-tests (Files): Likewise.
31461         * modules/frexpl-nolibm-tests (Files): Likewise.
31462         * modules/frexpl-tests (Files): Likewise.
31463         * modules/fseek-tests (Files): Likewise.
31464         * modules/fseeko-tests (Files): Likewise.
31465         * modules/fsync-tests (Files): Likewise.
31466         * modules/ftell-tests (Files): Likewise.
31467         * modules/ftello-tests (Files): Likewise.
31468         * modules/futimens-tests (Files): Likewise.
31469         * modules/getaddrinfo-tests (Files): Likewise.
31470         * modules/getcwd-tests (Files): Likewise.
31471         * modules/getdelim-tests (Files): Likewise.
31472         * modules/getdtablesize-tests (Files): Likewise.
31473         * modules/getgroups-tests (Files): Likewise.
31474         * modules/gethostname-tests (Files): Likewise.
31475         * modules/getline-tests (Files): Likewise.
31476         * modules/getopt-posix-tests (Files): Likewise.
31477         * modules/gettimeofday-tests (Files): Likewise.
31478         * modules/glob-tests (Files): Likewise.
31479         * modules/iconv-tests (Files): Likewise.
31480         * modules/inet_ntop-tests (Files): Likewise.
31481         * modules/inet_pton-tests (Files): Likewise.
31482         * modules/isblank-tests (Files): Likewise.
31483         * modules/lchown-tests (Files): Likewise.
31484         * modules/ldexpl-tests (Files): Likewise.
31485         * modules/link-tests (Files): Likewise.
31486         * modules/linkat-tests (Files): Likewise.
31487         * modules/lseek-tests (Files): Likewise.
31488         * modules/lstat-tests (Files): Likewise.
31489         * modules/mbrtowc-tests (Files): Likewise.
31490         * modules/mbsinit-tests (Files): Likewise.
31491         * modules/mbsnrtowcs-tests (Files): Likewise.
31492         * modules/mbsrtowcs-tests (Files): Likewise.
31493         * modules/memchr-tests (Files): Likewise.
31494         * modules/memcmp-tests (Files): Likewise.
31495         * modules/memmem-tests (Files): Likewise.
31496         * modules/memrchr-tests (Files): Likewise.
31497         * modules/mkdir-tests (Files): Likewise.
31498         * modules/mkfifo-tests (Files): Likewise.
31499         * modules/mkfifoat-tests (Files): Likewise.
31500         * modules/mknod-tests (Files): Likewise.
31501         * modules/nanosleep-tests (Files): Likewise.
31502         * modules/nl_langinfo-tests (Files): Likewise.
31503         * modules/obstack-printf-tests (Files): Likewise.
31504         * modules/open-tests (Files): Likewise.
31505         * modules/openat-tests (Files): Likewise.
31506         * modules/perror-tests (Files): Likewise.
31507         * modules/pipe2-tests (Files): Likewise.
31508         * modules/poll-tests (Files): Likewise.
31509         * modules/popen-tests (Files): Likewise.
31510         * modules/posix_spawn-tests (Files): Likewise.
31511         * modules/posix_spawnp-tests (Files): Likewise.
31512         * modules/pread-tests (Files): Likewise.
31513         * modules/printf-posix-tests (Files): Likewise.
31514         * modules/pty-tests (Files): Likewise.
31515         * modules/random_r-tests (Files): Likewise.
31516         * modules/rawmemchr-tests (Files): Likewise.
31517         * modules/readlink-tests (Files): Likewise.
31518         * modules/remove-tests (Files): Likewise.
31519         * modules/rename-tests (Files): Likewise.
31520         * modules/renameat-tests (Files): Likewise.
31521         * modules/rmdir-tests (Files): Likewise.
31522         * modules/round-tests (Files): Likewise.
31523         * modules/roundf-tests (Files): Likewise.
31524         * modules/roundl-tests (Files): Likewise.
31525         * modules/select-tests (Files): Likewise.
31526         * modules/setenv-tests (Files): Likewise.
31527         * modules/sigaction-tests (Files): Likewise.
31528         * modules/sleep-tests (Files): Likewise.
31529         * modules/snprintf-posix-tests (Files): Likewise.
31530         * modules/snprintf-tests (Files): Likewise.
31531         * modules/sprintf-posix-tests (Files): Likewise.
31532         * modules/stat-tests (Files): Likewise.
31533         * modules/strcasestr-tests (Files): Likewise.
31534         * modules/strchrnul-tests (Files): Likewise.
31535         * modules/strerror-tests (Files): Likewise.
31536         * modules/strsignal-tests (Files): Likewise.
31537         * modules/strstr-tests (Files): Likewise.
31538         * modules/strtod-tests (Files): Likewise.
31539         * modules/strverscmp-tests (Files): Likewise.
31540         * modules/symlink-tests (Files): Likewise.
31541         * modules/symlinkat-tests (Files): Likewise.
31542         * modules/times-tests (Files): Likewise.
31543         * modules/trunc-tests (Files): Likewise.
31544         * modules/truncf-tests (Files): Likewise.
31545         * modules/truncl-tests (Files): Likewise.
31546         * modules/tsearch-tests (Files): Likewise.
31547         * modules/uname-tests (Files): Likewise.
31548         * modules/unlink-tests (Files): Likewise.
31549         * modules/unsetenv-tests (Files): Likewise.
31550         * modules/usleep-tests (Files): Likewise.
31551         * modules/utimensat-tests (Files): Likewise.
31552         * modules/vasprintf-tests (Files): Likewise.
31553         * modules/vdprintf-posix-tests (Files): Likewise.
31554         * modules/vfprintf-posix-tests (Files): Likewise.
31555         * modules/vprintf-posix-tests (Files): Likewise.
31556         * modules/vsnprintf-posix-tests (Files): Likewise.
31557         * modules/vsnprintf-tests (Files): Likewise.
31558         * modules/vsprintf-posix-tests (Files): Likewise.
31559         * modules/wcrtomb-tests (Files): Likewise.
31560         * modules/wcsnrtombs-tests (Files): Likewise.
31561         * modules/wcsrtombs-tests (Files): Likewise.
31562         * modules/wcwidth-tests (Files): Likewise.
31563         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
31564         * tests/test-isinf.c (isinf): Likewise.
31565         * tests/test-isnan.c (isnan): Likewise.
31566         * tests/test-signbit.c (signbit): Likewise.
31567         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
31568         declaration, either as macro or with correct signature.
31569         (select): Ensure function under test is declared with correct
31570         signature in correct header.
31571         * tests/test-atexit.c (atexit): Likewise.
31572         * tests/test-btowc.c (btowc): Likewise.
31573         * tests/test-canonicalize-lgpl.c (realpath)
31574         (canonicalize_file_name): Likewise.
31575         * tests/test-ceilf1.c (ceilf): Likewise.
31576         * tests/test-ceill.c (ceill): Likewise.
31577         * tests/test-chown.c (chown): Likewise.
31578         * tests/test-dprintf-posix.c (dprintf): Likewise.
31579         * tests/test-dup2.c (dup2): Likewise.
31580         * tests/test-dup3.c (dup3): Likewise.
31581         * tests/test-duplocale.c (duplocale): Likewise.
31582         * tests/test-fchdir.c (fchdir): Likewise.
31583         * tests/test-fchownat.c (fchownat): Likewise.
31584         * tests/test-fcntl.c (fcntl): Likewise.
31585         * tests/test-fdopendir.c (fdopendir): Likewise.
31586         * tests/test-fflush.c (fflush): Likewise.
31587         * tests/test-flock.c (flock): Likewise.
31588         * tests/test-floorf1.c (floorf): Likewise.
31589         * tests/test-floorl.c (floorl): Likewise.
31590         * tests/test-fnmatch.c (fnmatch): Likewise.
31591         * tests/test-fopen.c (fopen): Likewise.
31592         * tests/test-fprintf-posix.c (fprintf): Likewise.
31593         * tests/test-freopen.c (freopen): Likewise.
31594         * tests/test-frexp.c (frexp): Likewise.
31595         * tests/test-frexpl.c (frexpl): Likewise.
31596         * tests/test-fseek.c (fseek): Likewise.
31597         * tests/test-fseeko.c (fseeko): Likewise.
31598         * tests/test-fstatat.c (fstatat): Likewise.
31599         * tests/test-fsync.c (fsync): Likewise.
31600         * tests/test-ftell.c (ftell): Likewise.
31601         * tests/test-ftello.c (ftello): Likewise.
31602         * tests/test-futimens.c (futimens): Likewise.
31603         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
31604         (gai_strerror): Likewise.
31605         * tests/test-getcwd.c (getcwd): Likewise.
31606         * tests/test-getdelim.c (getdelim): Likewise.
31607         * tests/test-getdtablesize.c (getdtablesize): Likewise.
31608         * tests/test-getgroups.c (getgroups): Likewise.
31609         * tests/test-gethostname.c (gethostname): Likewise.
31610         * tests/test-getline.c (getline): Likewise.
31611         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
31612         Likewise.
31613         * tests/test-gettimeofday.c (gettimeofday): Likewise.
31614         * tests/test-glob.c (glob, globfree): Likewise.
31615         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
31616         * tests/test-inet_ntop.c (inet_ntop): Likewise.
31617         * tests/test-inet_pton.c (inet_pton): Likewise.
31618         * tests/test-isblank.c (isblank): Likewise.
31619         * tests/test-lchown.c (lchown): Likewise.
31620         * tests/test-ldexpl.c (ldexpl): Likewise.
31621         * tests/test-link.c (link): Likewise.
31622         * tests/test-linkat.c (linkat): Likewise.
31623         * tests/test-lseek.c (lseek): Likewise.
31624         * tests/test-lstat.c (lstat): Likewise.
31625         * tests/test-mbrtowc.c (mbrtowc): Likewise.
31626         * tests/test-mbsinit.c (mbsinit): Likewise.
31627         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
31628         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
31629         * tests/test-memchr.c (memchr): Likewise.
31630         * tests/test-memcmp.c (memcmp): Likewise.
31631         * tests/test-memmem.c (memmem): Likewise.
31632         * tests/test-memrchr.c (memrchr): Likewise.
31633         * tests/test-mkdir.c (mkdir): Likewise.
31634         * tests/test-mkdirat.c (mkdirat): Likewise.
31635         * tests/test-mkfifo.c (mkfifo): Likewise.
31636         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
31637         * tests/test-mknod.c (mknod): Likewise.
31638         * tests/test-nanosleep.c (nanosleep): Likewise.
31639         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
31640         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
31641         Likewise.
31642         * tests/test-open.c (open): Likewise.
31643         * tests/test-openat.c (openat): Likewise.
31644         * tests/test-perror.c (perror): Likewise.
31645         * tests/test-pipe2.c (pipe2): Likewise.
31646         * tests/test-poll.c (poll): Likewise.
31647         * tests/test-popen.c (popen, pclose): Likewise.
31648         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
31649         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
31650         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
31651         (posix_spawn_file_actions_destroy)
31652         (posix_spawn_file_actions_addclose)
31653         (posix_spawn_file_actions_addopen)
31654         (posix_spawn_file_actions_adddup2): Likewise.
31655         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
31656         * tests/test-pread.c (pread): Likewise.
31657         * tests/test-printf-posix.c (printf): Likewise.
31658         * tests/test-pty.c (openpty, forkpty): Likewise.
31659         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
31660         (random_r): Likewise.
31661         * tests/test-rawmemchr.c (rawmemchr): Likewise.
31662         * tests/test-readlink.c (readlink): Likewise.
31663         * tests/test-remove.c (remove): Likewise.
31664         * tests/test-rename.c (rename): Likewise.
31665         * tests/test-renameat.c (renameat): Likewise.
31666         * tests/test-rmdir.c (rmdir): Likewise.
31667         * tests/test-round1.c (round): Likewise.
31668         * tests/test-roundf1.c (roundf): Likewise.
31669         * tests/test-roundl.c (roundl): Likewise.
31670         * tests/test-setenv.c (setenv): Likewise.
31671         * tests/test-sigaction.c (sigaction): Likewise.
31672         * tests/test-sleep.c (sleep): Likewise.
31673         * tests/test-snprintf.c (snprintf): Likewise.
31674         * tests/test-sprintf-posix.c (sprintf): Likewise.
31675         * tests/test-stat.c (stat): Likewise.
31676         * tests/test-stpncpy.c (stpncpy): Likewise.
31677         * tests/test-strcasestr.c (strcasestr): Likewise.
31678         * tests/test-strchrnul.c (strchrnul): Likewise.
31679         * tests/test-strerror.c (strerror): Likewise.
31680         * tests/test-strsignal.c (strsignal): Likewise.
31681         * tests/test-strstr.c (strstr): Likewise.
31682         * tests/test-strtod.c (strtod): Likewise.
31683         * tests/test-strverscmp.c (strverscmp): Likewise.
31684         * tests/test-symlink.c (symlink): Likewise.
31685         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
31686         * tests/test-times.c (times): Likewise.
31687         * tests/test-trunc1.c (trunc): Likewise.
31688         * tests/test-truncf1.c (truncf): Likewise.
31689         * tests/test-truncl.c (truncl): Likewise.
31690         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
31691         Likewise.
31692         * tests/test-uname.c (uname): Likewise.
31693         * tests/test-unlink.c (unlink): Likewise.
31694         * tests/test-unlinkat.c (unlinkat): Likewise.
31695         * tests/test-unsetenv.c (unsetenv): Likewise.
31696         * tests/test-usleep.c (usleep): Likewise.
31697         * tests/test-utimensat.c (utimensat): Likewise.
31698         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
31699         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
31700         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
31701         * tests/test-vprintf-posix.c (vprintf): Likewise.
31702         * tests/test-vsnprintf.c (vsnprintf): Likewise.
31703         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
31704         * tests/test-wcrtomb.c (wcrtomb): Likewise.
31705         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
31706         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
31707         * tests/test-wcwidth.c (wcwidth): Likewise.
31708
31709         build: pull in conditional headers during GNULIB_POSIXCHECK
31710         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
31711         definitions from any conditionally-included headers.
31712         * lib/stdlib.in.h (includes): Likewise.
31713         * lib/unistd.in.h (includes): Likewise.
31714
31715 2009-12-24  Bruno Haible  <bruno@clisp.org>
31716
31717         * tests/test-argv-iter.c: Include header file being tested immediately
31718         after config.h.
31719         * tests/test-base64.c: Likewise.
31720         * tests/test-flock.c: Likewise.
31721         * tests/test-fsync.c: Likewise.
31722         * tests/test-getdate.c: Likewise.
31723         * tests/test-getndelim2.c: Likewise.
31724         * tests/test-isfinite.c: Likewise.
31725         * tests/test-isinf.c: Likewise.
31726         * tests/test-strerror.c: Likewise.
31727         * tests/test-strsignal.c: Likewise.
31728
31729 2009-12-23  Eric Blake  <ebb9@byu.net>
31730
31731         unistd: work around cygwin bug
31732         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
31733         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
31734         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31735
31736 2009-12-23  Bruno Haible  <bruno@clisp.org>
31737
31738         localename: More tests.
31739         * tests/test-localename.c (SIZEOF): New macro.
31740         (categories): New variable.
31741         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
31742         test_locale_name_default): Add test w.r.t. thread locale.
31743         (test_locale_name_thread): New function.
31744         (main): Invoke it.
31745
31746         localename: Make aware of thread locale.
31747         * lib/localename.h (gl_locale_name_thread): New declaration.
31748         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
31749         behaviour with respect to thread locale.
31750         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
31751         <langinfo.h>, glthread/lock.h.
31752         (SIZE_BITS): New macro.
31753         (string_hash): New function.
31754         (struct hash_node): New type.
31755         (HASH_TABLE_SIZE): New macro.
31756         (struniq_hash_table, struniq_lock): New variables.
31757         (struniq): New function.
31758         (gl_locale_name_thread): New function.
31759         (gl_locale_name): Invoke it.
31760         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
31761         * modules/localename (Depends-on): Add lock.
31762         Reported by Mike Gran <spk121@yahoo.com>.
31763
31764 2009-12-23  Eric Blake  <ebb9@byu.net>
31765
31766         va-args: new module
31767         * modules/va-args: New file.
31768         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
31769         * MODULES.html.sh (Core language properties): Mention it.
31770
31771         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
31772         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
31773         named alias for __attribute__((__unused__)).
31774         * lib/chown.c: Update client.
31775         * lib/fchmodat.c: Likewise.
31776         * lib/fts.c: Likewise.
31777         * lib/getdate.y: Likewise.
31778         * lib/getgroups.c: Likewise.
31779         * lib/getopt.c: Likewise.
31780         * lib/getugroups.c: Likewise.
31781         * lib/mkdir.c: Likewise.
31782         * lib/mkfifo.c: Likewise.
31783         * lib/mkfifoat.c: Likewise.
31784         * lib/mknod.c: Likewise.
31785         * lib/mknodat.c: Likewise.
31786         * lib/readlink.c: Likewise.
31787         * lib/se-context.in.h: Likewise.
31788         * lib/se-selinux.in.h: Likewise.
31789         * lib/sockets.c: Likewise.
31790         * lib/symlink.c: Likewise.
31791         * lib/symlinkat.c: Likewise.
31792         * lib/unicodeio.c: Likewise.
31793         * lib/unistr.h: Likewise.
31794         * tests/test-areadlink.c: Likewise.
31795         * tests/test-areadlinkat.c: Likewise.
31796         * tests/test-filenamecat.c: Likewise.
31797         * tests/test-fseeko.c: Likewise.
31798         * tests/test-ftello.c: Likewise.
31799         * tests/test-getdate.c: Likewise.
31800         * tests/test-getgroups.c: Likewise.
31801         * tests/test-gethostname.c: Likewise.
31802         * tests/test-quotearg.c: Likewise.
31803         * tests/test-version-etc.c: Likewise.
31804         * tests/test-xalloc-die.c: Likewise.
31805         * tests/test-xfprintf-posix.c: Likewise.
31806         * tests/test-xprintf-posix.c: Likewise.
31807         * tests/test-xvasprintf.c: Likewise.
31808
31809         tests: avoid compiler warnings
31810         * tests/test-fcntl.c (main): Delete unused parameters.
31811         * tests/test-freopen-safer.c (main): Likewise.
31812         * tests/test-xalloc-die.c (main): Mark unused parameters.
31813         * tests/test-fseeko.c (main): Likewise.
31814         * tests/test-ftello.c (main): Likewise.
31815         * tests/test-nanosleep.c (main): Avoid declaration warning.
31816         * tests/test-sleep.c (main): Likewise.
31817         * tests/test-unsetenv.c (main): Silence warning about string
31818         literal.
31819         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
31820
31821 2009-12-23  Bruno Haible  <bruno@clisp.org>
31822
31823         * tests/test-localename.c (test_locale_name): New function, extracted
31824         from main. Also test mixed situations.
31825         (test_locale_name_posix, test_locale_name_environ,
31826         test_locale_name_default): New functions.
31827         (main): Invoke them all.
31828         * modules/localename-tests (configure.ac): Test for newlocale.
31829
31830 2009-12-23  Bruno Haible  <bruno@clisp.org>
31831
31832         unistd: Ensure getcwd gets declared before being overridden.
31833         * lib/unistd.in.h: Conditionally include <io.h>.
31834
31835 2009-12-22  Bruno Haible  <bruno@clisp.org>
31836
31837         wchar: Diagnose broken combination of glibc and gcc versions and flags.
31838         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
31839         (gl_WCHAR_H): Invoke it.
31840         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
31841         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
31842         Reported by Karl Berry <karl@freefriends.org>.
31843
31844 2009-12-22  Eric Blake  <ebb9@byu.net>
31845
31846         math, unistd: avoid redundant includes
31847         * lib/math.in.h (isnan): No need to re-include <math.h>.
31848         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
31849
31850         getsubopt: work around cygwin bug
31851         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
31852         avoid conflicting with system getsubopt.
31853         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
31854         bug.
31855
31856         getopt: synchronize from glibc
31857         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
31858         parameter order.  Adjust all callers.
31859         (_getopt_internal_r, main): Adjust quoting in error messages.
31860         Drop considerations for outdated POSIX 1003.2 error message.
31861         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
31862         callers.
31863         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
31864
31865         test-getopt: test stderr behavior
31866         * modules/getopt-posix-tests (Depends-on): Add dup2.
31867         * tests/test-getopt.c (ASSERT): Avoid stderr.
31868         (main): Move stderr to a temporary file.
31869         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
31870         Instead, add parameter to inform caller if output occurred.
31871         (test_getopt): Adjust all existing tests to expect silence, and
31872         add new tests of leading ":".
31873         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31874         glibc shortcomings with leading "-:" or "+:" in optstring.
31875         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31876         Likewise.
31877         * doc/posix-functions/getopt.texi (getopt): Likewise.
31878
31879         test-getopt: enhance test
31880         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
31881         supports optind=0.
31882         * tests/test-getopt.c (OPTIND_MIN): Move...
31883         * tests/test-getopt.h (OPTIND_MIN): ...here.
31884         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
31885         Require that optind=0 works, since modern BSD supports it in
31886         addition to optreset, and since coreutils expects it.
31887         (test_getopt_long_only): New test.
31888         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31889         glibc shortcomings with 'W;', and enforcement of optind=0.
31890         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31891         Likewise.
31892
31893 2009-12-21  Bruno Haible  <bruno@clisp.org>
31894
31895         localename: Improvements for MacOS X and Cygwin.
31896         * lib/localename.h (gl_locale_name_environ): New declaration.
31897         * lib/localename.c (gl_locale_name_environ): New function, extracted from
31898         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
31899         (gl_locale_name_posix): Invoke it.
31900         (gl_locale_name_default): Add comments. Use Windows native API also on
31901         Cygwin.
31902
31903 2009-12-21  Bruno Haible  <bruno@clisp.org>
31904
31905         Update list of Win32 locale ids.
31906         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
31907         (LANG_SAMI): Renamed from LANG_SAAMI.
31908         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
31909         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
31910         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
31911         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
31912         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
31913         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
31914         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
31915         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
31916         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
31917         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
31918         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
31919         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
31920         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
31921         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
31922         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
31923         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
31924         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
31925         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
31926         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
31927         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
31928         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
31929         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
31930         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
31931         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
31932         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
31933         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
31934         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
31935         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
31936         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
31937         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
31938         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
31939         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
31940         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
31941         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
31942         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
31943         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
31944         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
31945         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
31946         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
31947         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
31948         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
31949         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
31950         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
31951         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
31952         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
31953         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
31954         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
31955         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
31956         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
31957         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
31958         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
31959         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
31960         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
31961         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
31962         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
31963         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
31964         Add more languages and countries for Sami, Sorbian. Add more countries
31965         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
31966         for Pashto. Change country for Syriac, Tswana.
31967
31968 2009-12-21  Eric Blake  <ebb9@byu.net>
31969
31970         test-utimens: avoid spurious failure
31971         * tests/test-chown.h (nap): Factor...
31972         * tests/nap.h: ...into new file.
31973         * tests/test-lchown.h (nap): Avoid duplication.
31974         * tests/test-utimens-common.h (nap): Use shared implementation,
31975         necessary on file systems with 1-second resolution.
31976         * modules/chown-tests (Files): Include new file.
31977         * modules/fdutimensat-tests (Files): Likewise.
31978         * modules/futimens-tests (Files): Likewise.
31979         * modules/lchown-tests (Files): Likewise.
31980         * modules/openat-tests (Files): Likewise.
31981         * modules/utimens-tests (Files): Likewise.
31982         * modules/utimensat-tests (Files): Likewise.
31983
31984 2009-12-19  Eric Blake  <ebb9@byu.net>
31985
31986         futimens, utimensat: work around Linux bug
31987         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
31988         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31989         * lib/utimensat.c (rpl_utimensat): Work around it.
31990         * lib/futimens.c (rpl_futimens): Adjust comment.
31991
31992         utimens: work around Linux ctime bug
31993         * lib/utimens.c (detect_ctime_bug): New helper function.
31994         (update_timespec): Differentiate between workaround needed for
31995         this bug vs. what is needed for systems that lack utimensat.
31996         (fdutimens, lutimens): Work around bug.
31997
31998         utimens: check for ctime update
31999         * tests/test-utimens-common.h (check_ctime): Define.
32000         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
32001         * tests/test-futimens.h (test_futimens): Likewise.
32002         * tests/test-lutimens.h (test_lutimens): Likewise.
32003         * doc/posix-functions/futimens.texi (futimens): Document the bug.
32004         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32005
32006 2009-12-19  Bruno Haible  <bruno@clisp.org>
32007
32008         dprintf-posix: Check against memory leak fixed on 2009-12-15.
32009         * tests/test-dprintf-posix2.sh: New file.
32010         * tests/test-dprintf-posix2.c: New file.
32011         * modules/dprintf-posix-tests (Files): Add them.
32012         (configure.ac): Check for getrlimit and setrlimit.
32013         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
32014
32015 2009-12-19  Bruno Haible  <bruno@clisp.org>
32016
32017         fprintf-posix: Check against memory leak fixed on 2009-12-15.
32018         * tests/test-fprintf-posix3.sh: New file.
32019         * tests/test-fprintf-posix3.c: New file.
32020         * modules/fprintf-posix-tests (Files): Add them.
32021         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
32022
32023 2009-12-19  Eric Blake  <ebb9@byu.net>
32024
32025         dirfd: fix prototype
32026         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
32027         * lib/dirfd.c (dirfd): Likewise.
32028
32029         canonicalize: reduce memory usage
32030         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
32031         allocation to size.
32032         Reported by Solar Designer <solar@openwall.com>.
32033
32034 2009-12-19  Bruno Haible  <bruno@clisp.org>
32035
32036         New module attribute 'Applicability'.
32037         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
32038         * gnulib-tool: New option --extract-applicability.
32039         (func_usage): Document it.
32040         (sed_extract_prog): Recognize it.
32041         (func_get_applicability): New function.
32042         (func_import): Generalize handling of 'link-warning' module.
32043         * modules/link-warning (Applicability): New section.
32044         * modules/arg-nonnull (Applicability): New section.
32045         Repoted by Simon Josefsson <simon@josefsson.org>.
32046
32047 2009-12-19  Bruno Haible  <bruno@clisp.org>
32048
32049         fflush: tweak
32050         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
32051         * lib/fseeko.c (rpl_fseeko): Likewise.
32052
32053 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
32054
32055         * lib/gl_list.h: Fix typo in comment.
32056
32057 2009-12-16  Eric Blake  <ebb9@byu.net>
32058
32059         fcntl: use to simplify other modules
32060         * modules/cloexec (Depends-on): Add fcntl.
32061         * modules/fchdir (Depends-on): Likewise.
32062         * modules/fd-safer-flag (Depends-on): Likewise.
32063         * modules/unistd-safer (Depends-on): Likewise.
32064         * modules/dup3 (configure.ac): Set module indicator.
32065         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
32066         missing.
32067         * lib/fchdir.c (_gl_register_dup): Fix comment.
32068         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
32069         * lib/dup-safer.c (dup_safer): Likewise.
32070         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
32071         * lib/dup3.c (dup3): Likewise.
32072         * tests/test-fchdir.c (main): Enhance test.
32073         Fixes a dup_cloexec bug reported by Ondřej Vašík.
32074
32075         fcntl: port portions of fcntl to mingw
32076         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
32077         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
32078         replacement for mingw.
32079         * modules/fcntl (Description): Update.
32080         (Depends-on): Add dup2.
32081         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
32082         * modules/fcntl-h (Makefile.am): Substitute it.
32083         * lib/fcntl.in.h (fcntl): Update declaration.
32084         (F_DUPFD, F_GETFD): New macros, when needed.
32085         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32086         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
32087         * tests/test-fcntl.c (check_flags, main): Enhance test for items
32088         we now guarantee.
32089
32090         fcntl: work around cygwin bug in F_DUPFD
32091         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
32092         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
32093         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
32094         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
32095         * doc/posix-functions/fcntl.texi (fcntl): Document it.
32096
32097         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
32098         * modules/fcntl (Files): List new files.
32099         (configure.ac): Run a test.
32100         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
32101         * lib/fcntl.c (rpl_fcntl): Likewise.
32102         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
32103         (gl_FCNTL_H): Always replace fcntl.h.
32104         * modules/fcntl-h (Makefile.am): Substitute witnesses.
32105         * lib/fcntl.in.h (fcntl): Declare replacement.
32106         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
32107         needed, plus a witness.
32108         * doc/posix-functions/fcntl.texi (fcntl): Document this.
32109         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
32110         * tests/test-fcntl.c: New file.
32111         * modules/fcntl-tests: Likewise.
32112
32113         binary-io: avoid potential compilation warning
32114         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
32115         directives.
32116
32117         fflush: avoid compilation error on NetBSD
32118         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
32119         between off_t and fpos_t, since the latter is sometimes a struct.
32120         * lib/fseeko.c (rpl_fseeko): Likewise.
32121         Reported by Alexander Nasonov <alnsn@yandex.ru>.
32122
32123 2009-12-15  Eric Blake  <ebb9@byu.net>
32124
32125         fcntl-h, stdio, sys_ioctl: fix declarations
32126         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
32127         function must not take arguments.
32128         * lib/sys_ioctl.in.h (ioctl): Likewise.
32129         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
32130         (open): Add a link warning.
32131
32132 2009-12-15  Jim Meyering  <meyering@redhat.com>
32133
32134         areadlink, areadlink-with-size: relax license to LGPLv2+
32135         * modules/areadlink (License): Relax to LGPLv2+.
32136         * modules/areadlink-with-size (License): Likewise.
32137
32138 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
32139             Bruno Haible  <bruno@clisp.org>
32140
32141         *printf: Fix memory leak.
32142         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
32143         * lib/vfprintf.c (vfprintf): Likewise.
32144         * lib/dprintf.c (dprintf): Likewise.
32145         * lib/vdprintf.c (vdprintf): Likewise.
32146
32147 2009-12-14  Eric Blake  <ebb9@byu.net>
32148
32149         accept4: adjust module dependencies
32150         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
32151
32152         utimens: one more try at avoiding compiler warning
32153         * lib/utimens.c (lutimens): Lower scope of result.
32154
32155 2009-12-13  Bruno Haible  <bruno@clisp.org>
32156
32157         Move the malloc checking from module 'list' to new module 'xlist'.
32158         * modules/xlist: New file.
32159         * lib/gl_xlist.h: New file.
32160         * lib/gl_xlist.c: New file.
32161         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
32162         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
32163         gl_list_add_last, gl_list_add_before, gl_list_add_after,
32164         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
32165         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
32166         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
32167         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
32168         gl_sortedlist_nx_add): New declarations.
32169         (struct gl_list_implementation): Rename and change methods accordingly.
32170         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
32171         (gl_list_nx_create): Renamed from gl_list_create.
32172         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
32173         (gl_list_nx_set_at): Renamed from gl_list_set_at.
32174         (gl_list_nx_add_first): Renamed from gl_list_add_first.
32175         (gl_list_nx_add_last): Renamed from gl_list_add_last.
32176         (gl_list_nx_add_before): Renamed from gl_list_add_before.
32177         (gl_list_nx_add_after): Renamed from gl_list_add_after.
32178         (gl_list_nx_add_at): Renamed from gl_list_add_at.
32179         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
32180         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
32181         gl_list_create_empty.
32182         (gl_list_nx_create): Renamed from gl_list_create.
32183         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
32184         (gl_list_nx_set_at): Renamed from gl_list_set_at.
32185         (gl_list_nx_add_first): Renamed from gl_list_add_first.
32186         (gl_list_nx_add_last): Renamed from gl_list_add_last.
32187         (gl_list_nx_add_before): Renamed from gl_list_add_before.
32188         (gl_list_nx_add_after): Renamed from gl_list_add_after.
32189         (gl_list_nx_add_at): Renamed from gl_list_add_at.
32190         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
32191         * lib/gl_array_list.c: Don't include xalloc.h.
32192         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
32193         NULL upon out-of-memory.
32194         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
32195         out-of-memory.
32196         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
32197         Change return type to 'int'.
32198         (gl_array_nx_set_at): Renamed from gl_array_set_at.
32199         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
32200         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
32201         upon out-of-memory.
32202         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
32203         upon out-of-memory.
32204         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
32205         upon out-of-memory.
32206         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
32207         upon out-of-memory.
32208         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
32209         out-of-memory.
32210         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
32211         Update.
32212         (gl_array_list_implementation): Update.
32213         * lib/gl_carray_list.c: Don't include xalloc.h.
32214         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
32215         Return NULL upon out-of-memory.
32216         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
32217         out-of-memory.
32218         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
32219         Change return type to 'int'.
32220         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
32221         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
32222         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
32223         upon out-of-memory.
32224         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
32225         upon out-of-memory.
32226         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
32227         out-of-memory.
32228         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
32229         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
32230         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
32231         Update.
32232         (gl_carray_list_implementation): Update.
32233         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
32234         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
32235         gl_linked_create_empty. Return NULL upon out-of-memory.
32236         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
32237         out-of-memory.
32238         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
32239         Change return type to 'int'. Return -1 upon out-of-memory.
32240         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
32241         out-of-memory.
32242         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
32243         upon out-of-memory.
32244         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
32245         upon out-of-memory.
32246         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
32247         NULL upon out-of-memory.
32248         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
32249         upon out-of-memory.
32250         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
32251         out-of-memory.
32252         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
32253         Update.
32254         * lib/gl_linked_list.c: Don't include xalloc.h.
32255         (gl_linked_list_implementation): Update.
32256         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
32257         (add_to_bucket): Change return type to 'int'.
32258         (gl_linkedhash_list_implementation): Update.
32259         * lib/gl_anytree_list1.h (free_subtree): New function.
32260         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
32261         gl_tree_create_empty. Return NULL upon out-of-memory.
32262         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
32263         Change return type to 'int'. Return -1 upon out-of-memory.
32264         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
32265         out-of-memory.
32266         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
32267         (gl_tree_remove_node): New function, moved here from
32268         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
32269         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
32270         Update.
32271         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
32272         malloc, not xmalloc. Return NULL upon out-of-memory.
32273         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
32274         out-of-memory.
32275         (gl_tree_remove_node_from_tree): New function, extracted from
32276         gl_tree_remove_node.
32277         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
32278         upon out-of-memory.
32279         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
32280         out-of-memory.
32281         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
32282         upon out-of-memory.
32283         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
32284         upon out-of-memory.
32285         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
32286         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
32287         not xmalloc. Return NULL upon out-of-memory.
32288         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
32289         out-of-memory.
32290         (gl_tree_remove_node_from_tree): New function, extracted from
32291         gl_tree_remove_node.
32292         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
32293         upon out-of-memory.
32294         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
32295         out-of-memory.
32296         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
32297         upon out-of-memory.
32298         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
32299         upon out-of-memory.
32300         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
32301         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
32302         gl_anytree_list1.h before gl_anyavltree_list2.h.
32303         (gl_avltree_list_implementation): Update.
32304         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
32305         gl_anytree_list1.h before gl_anyavltree_list2.h.
32306         (gl_rbtree_list_implementation): Update.
32307         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
32308         Change return type to 'int'. Return -1 upon out-of-memory. Use
32309         __builtin_expect.
32310         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
32311         (gl_avltreehash_list_implementation): Update.
32312         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
32313         (gl_rbtreehash_list_implementation): Update.
32314         * modules/array-list (Depends-on): Remove xalloc.
32315         * modules/carray-list (Depends-on): Likewise.
32316         * modules/linked-list (Depends-on): Likewise.
32317         * modules/linkedhash-list (Depends-on): Likewise.
32318         * modules/avltree-list (Depends-on): Likewise.
32319         * modules/rbtree-list (Depends-on): Likewise.
32320         * modules/avltreehash-list (Depends-on): Likewise.
32321         * modules/rbtreehash-list (Depends-on): Likewise.
32322
32323         * modules/xsublist: New file.
32324         * lib/gl_xsublist.h: New file.
32325         * lib/gl_xsublist.c: New file.
32326         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
32327         (gl_sublist_nx_create): New declaration.
32328         * lib/gl_sublist.c: Don't include xalloc.h.
32329         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
32330         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
32331         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
32332         Change return type to 'int'. Return -1 upon out-of-memory.
32333         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
32334         upon out-of-memory.
32335         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
32336         NULL upon out-of-memory.
32337         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
32338         upon out-of-memory.
32339         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
32340         NULL upon out-of-memory.
32341         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
32342         NULL upon out-of-memory.
32343         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
32344         upon out-of-memory.
32345         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
32346         (gl_sublist_list_implementation): Update.
32347         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
32348         upon out-of-memory.
32349         * modules/sublist (Depends-on): Remove xalloc.
32350
32351         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
32352         * tests/test-carray_list.c: Likewise.
32353         * tests/test-linked_list.c: Likewise.
32354         * tests/test-linkedhash_list.c: Likewise.
32355         * tests/test-avltree_list.c: Likewise.
32356         * tests/test-rbtree_list.c: Likewise.
32357         * tests/test-avltreehash_list.c: Likewise.
32358         * tests/test-rbtreehash_list.c: Likewise.
32359         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
32360         * modules/carray-list-tests (Makefile.am): Likewise.
32361         * modules/linked-list-tests (Makefile.am): Likewise.
32362         * modules/linkedhash-list-tests (Makefile.am): Likewise.
32363         * modules/avltree-list-tests (Makefile.am): Likewise.
32364         * modules/rbtree-list-tests (Makefile.am): Likewise.
32365         * modules/avltreehash-list-tests (Makefile.am): Likewise.
32366         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
32367
32368         * NEWS: Mention the changes.
32369
32370         * lib/clean-temp.c: Include gl_xlist.h.
32371         * modules/clean-temp (Depends-on): Add xlist.
32372
32373         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
32374         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
32375
32376         * tests/test-array_oset.c: Include gl_xlist.h.
32377         * modules/array-oset-tests (Depends-on): Add xlist.
32378
32379         Reported by José E. Marchesi <jemarch@gnu.org>.
32380
32381 2009-12-13  Bruno Haible  <bruno@clisp.org>
32382
32383         Move the malloc checking from module 'oset' to new module 'xoset'.
32384         * modules/xoset: New file.
32385         * lib/gl_xoset.h: New file.
32386         * lib/gl_xoset.c: New file.
32387         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
32388         declarations.
32389         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
32390         (struct gl_oset_implementation): Rename and change methods accordingly.
32391         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
32392         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
32393         'int'. Mark as __warn_unused_result__.
32394         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
32395         gl_oset_create_empty.
32396         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
32397         'int'.
32398         * lib/gl_array_oset.c: Don't include xalloc.h.
32399         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
32400         malloc, not xmalloc.
32401         (grow): Change return type to 'int'. Don't call xalloc_die.
32402         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
32403         to 'int'.
32404         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
32405         'int'.
32406         (gl_array_oset_implementation): Update.
32407         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
32408         gl_tree_create_empty.
32409         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
32410         'int'.
32411         * lib/gl_avltree_oset.c: Don't include xalloc.h.
32412         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
32413         xmalloc.
32414         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
32415         not xmalloc.
32416         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
32417         xmalloc.
32418         (gl_avltree_oset_implementation): Update.
32419         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
32420         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
32421         xmalloc.
32422         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
32423         not xmalloc.
32424         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
32425         xmalloc.
32426         (gl_rbtree_oset_implementation): Update.
32427         * modules/array-oset (Depends-on): Remove xalloc.
32428         * modules/avltree-oset (Depends-on): Likewise.
32429         * modules/rbtree-oset (Depends-on): Likewise.
32430         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
32431         * tests/test-avltree_oset.c: Likewise.
32432         * tests/test-rbtree_oset.c: Likewise.
32433         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
32434         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
32435         * modules/rbtree-oset-tests (Makefile.am): Likewise.
32436         * NEWS: Mention the change.
32437
32438 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
32439
32440         maint.mk: allow a project to override release-prep commands
32441         * top/maint.mk (alpha, beta, stable): Move release-preparatory
32442         commands into a new rule.
32443         (release-prep): New rule.
32444         (release-prep-hook): New overridable variable.
32445
32446 2009-12-13  Bruno Haible  <bruno@clisp.org>
32447
32448         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
32449
32450 2009-12-13  Jim Meyering  <meyering@redhat.com>
32451
32452         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
32453         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
32454
32455 2009-12-12  Bruno Haible  <bruno@clisp.org>
32456
32457         duplocale: Tweak.
32458         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
32459
32460 2009-12-12  Karl Berry  <karl@gnu.org>
32461
32462         * config/srclist.txt (strtoll.c): tab changes, no more sync.
32463
32464 2009-12-12  Bruno Haible  <bruno@clisp.org>
32465
32466         * m4/po.m4: Undo incorrect untabification.
32467
32468 2009-12-12  Bruno Haible  <bruno@clisp.org>
32469
32470         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
32471         * modules/c-strtod (Depends-on): Add locale.
32472         * modules/c-strtold (Depends-on): Likewise.
32473
32474 2009-12-12  Bruno Haible  <bruno@clisp.org>
32475
32476         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
32477
32478 2009-12-11  Eric Blake  <ebb9@byu.net>
32479
32480         setenv: relax requirement in light of POSIX ruling
32481         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
32482         not NULL.
32483         * tests/test-setenv.c (main): Relax test.
32484         * tests/test-unsetenv.c (main): Likewise.
32485         * doc/posix-functions/setenv.texi (setenv): Document this.
32486         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
32487
32488 2009-12-11  Bruno Haible  <bruno@clisp.org>
32489
32490         New module 'fd-safer-flag'.
32491         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
32492         * lib/dup-safer.c (dup_safer_flag): Remove function.
32493         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
32494         * lib/fd-safer.c (fd_safer_flag): Remove function.
32495         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
32496         * modules/cloexec (configure.ac): Drop indicator macro.
32497         * modules/fd-safer-flag: New file.
32498         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
32499         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
32500         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
32501
32502 2009-12-11  Bruno Haible  <bruno@clisp.org>
32503
32504         Tests for module 'nl_langinfo'.
32505         * modules/nl_langinfo-tests: New file.
32506         * tests/test-nl_langinfo.sh: New file.
32507         * tests/test-nl_langinfo.c: New file.
32508
32509         New module 'nl_langinfo'.
32510         * lib/nl_langinfo.c: New file.
32511         * m4/nl_langinfo.m4: New file.
32512         * modules/nl_langinfo: New file.
32513         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
32514
32515 2009-12-11  Bruno Haible  <bruno@clisp.org>
32516
32517         Tests for module 'langinfo'.
32518         * modules/langinfo-tests: New file.
32519         * tests/test-langinfo.c: New file.
32520
32521         New module 'langinfo'.
32522         * lib/langinfo.in.h: New file.
32523         * m4/langinfo_h.m4: New file.
32524         * modules/langinfo: New file.
32525         * doc/posix-headers/langinfo.texi: Mention the new module.
32526
32527 2009-12-11  Bruno Haible  <bruno@clisp.org>
32528
32529         * lib/config.charset: Untabify.
32530
32531 2009-12-11  Bruno Haible  <bruno@clisp.org>
32532
32533         * modules/unistd-safer (configure.ac): Drop indicator macro.
32534
32535 2009-12-11  Bruno Haible  <bruno@clisp.org>
32536
32537         Move pipe2-safer code to its own file.
32538         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
32539         * lib/pipe-safer.c (pipe2_safer): Remove function.
32540         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
32541         (Makefile.am): Add it to lib_SOURCES.
32542
32543 2009-12-10  Bruno Haible  <bruno@clisp.org>
32544
32545         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
32546
32547 2009-12-10  Bruno Haible  <bruno@clisp.org>
32548
32549         Declare which arguments expect non-NULL values, for GCC and clang.
32550         * build-aux/arg-nonnull.h: New file.
32551         * modules/arg-nonnull: New file.
32552         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
32553         (inet_ntop, inet_pton): Use it.
32554         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
32555         (closedir, dirfd, opendir, scandir, alphasort): Use it.
32556         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
32557         (open, openat): Use it.
32558         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
32559         (fnmatch): Use it.
32560         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
32561         (getopt, getopt_long, getopt_long_only): Use it.
32562         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
32563         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
32564         Use it.
32565         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
32566         (iconv_open): Use it.
32567         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
32568         (strtoimax, strtoumax): Use it.
32569         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
32570         (duplocale): Use it.
32571         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
32572         (frexp, frexpl): Use it.
32573         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
32574         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
32575         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
32576         (tsearch, tfind, tdelete, twalk): Use it.
32577         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
32578         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
32579         sigpending): Use it.
32580         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
32581         (posix_spawn, posix_spawnp, posix_spawnattr_init,
32582         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
32583         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
32584         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
32585         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
32586         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
32587         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
32588         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
32589         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
32590         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
32591         Use it.
32592         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
32593         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
32594         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
32595         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
32596         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
32597         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
32598         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
32599         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
32600         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
32601         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
32602         strtoull, unsetenv): Use it.
32603         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
32604         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
32605         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
32606         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
32607         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
32608         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
32609         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
32610         (strcasecmp, strncasecmp): Use it.
32611         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
32612         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
32613         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
32614         rpl_setsockopt): Use it.
32615         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
32616         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
32617         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
32618         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
32619         (gettimeofday): Use it.
32620         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
32621         (times): Use it.
32622         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
32623         (uname): Use it.
32624         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
32625         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
32626         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
32627         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
32628         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
32629         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
32630         unlinkat, write): Use it.
32631         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
32632         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
32633         * lib/argv-iter.h: Include arg-nonnull.h.
32634         (_ATTRIBUTE_NONNULL_): Remove macro.
32635         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
32636         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
32637         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
32638         optimization.
32639         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
32640         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
32641         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
32642         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
32643         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
32644         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
32645         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
32646         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
32647         * modules/arpa_inet (Depends-on): Add arg-nonnull.
32648         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
32649         * modules/dirent (Depends-on): Add arg-nonnull.
32650         (Makefile.am): Insert arg-nonnull.h into dirent.h.
32651         * modules/fcntl-h (Depends-on): Add arg-nonnull.
32652         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
32653         * modules/fnmatch (Depends-on): Add arg-nonnull.
32654         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
32655         * modules/getopt-posix (Depends-on): Add arg-nonnull.
32656         (Makefile.am): Insert arg-nonnull.h into getopt.h.
32657         * modules/glob (Depends-on): Add arg-nonnull.
32658         (Makefile.am): Insert arg-nonnull.h into glob.h.
32659         * modules/iconv_open (Depends-on): Add arg-nonnull.
32660         (Makefile.am): Insert arg-nonnull.h into iconv.h.
32661         * modules/inttypes (Depends-on): Add arg-nonnull.
32662         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
32663         * modules/locale (Depends-on): Add arg-nonnull.
32664         (Makefile.am): Insert arg-nonnull.h into locale.h.
32665         * modules/math (Depends-on): Add arg-nonnull.
32666         (Makefile.am): Insert arg-nonnull.h into math.h.
32667         * modules/netdb (Depends-on): Add arg-nonnull.
32668         (Makefile.am): Insert arg-nonnull.h into netdb.h.
32669         * modules/search (Depends-on): Add arg-nonnull.
32670         (Makefile.am): Insert arg-nonnull.h into search.h.
32671         * modules/signal (Depends-on): Add arg-nonnull.
32672         (Makefile.am): Insert arg-nonnull.h into signal.h.
32673         * modules/spawn (Depends-on): Add arg-nonnull.
32674         (Makefile.am): Insert arg-nonnull.h into spawn.h.
32675         * modules/stdio (Depends-on): Add arg-nonnull.
32676         (Makefile.am): Insert arg-nonnull.h into stdio.h.
32677         * modules/stdlib (Depends-on): Add arg-nonnull.
32678         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
32679         * modules/string (Depends-on): Add arg-nonnull.
32680         (Makefile.am): Insert arg-nonnull.h into string.h.
32681         * modules/strings (Depends-on): Add arg-nonnull.
32682         (Makefile.am): Insert arg-nonnull.h into strings.h.
32683         * modules/sys_socket (Depends-on): Add arg-nonnull.
32684         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
32685         * modules/sys_stat (Depends-on): Add arg-nonnull.
32686         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
32687         * modules/sys_time (Depends-on): Add arg-nonnull.
32688         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
32689         * modules/sys_times (Depends-on): Add arg-nonnull.
32690         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
32691         * modules/sys_utsname (Depends-on): Add arg-nonnull.
32692         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
32693         * modules/time (Depends-on): Add arg-nonnull.
32694         (Makefile.am): Insert arg-nonnull.h into time.h.
32695         * modules/unistd (Depends-on): Add arg-nonnull.
32696         (Makefile.am): Insert arg-nonnull.h into unistd.h.
32697         * modules/wchar (Depends-on): Add arg-nonnull.
32698         (Makefile.am): Insert arg-nonnull.h into wchar.h.
32699         * modules/argv-iter (Depends-on): Add arg-nonnull.
32700         * tests/test-canonicalize.c (null_ptr): New function.
32701         (main): Use it.
32702         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
32703         (main): Use it.
32704         * tests/test-memmem.c (null_ptr): New function.
32705         (main): Use it.
32706         Reported by Jim Meyering.
32707
32708 2009-12-10  Bruno Haible  <bruno@clisp.org>
32709
32710         Use spaces for indentation, not tabs.
32711         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
32712         * m4/*.m4: Untabify.
32713         * build-aux/*.h: Untabify.
32714         * tests/**/*.[hc]: Untabify.
32715         * README: New section "Indent with spaces, not TABs", based on
32716         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
32717         * NEWS: Mention the change.
32718
32719 2009-12-10  Bruno Haible  <bruno@clisp.org>
32720
32721         pty test: Fix link error.
32722         * modules/pty-tests (Makefile.am): Add the default LDADD value to
32723         test_pty_LDADD.
32724
32725 2009-12-07  Simon Josefsson  <simon@josefsson.org>
32726
32727         * modules/pty: New file.
32728         * modules/pty-tests: New file.
32729         * m4/pty.m4: New file.
32730         * tests/test-pty.c: New file.
32731         * doc/glibc-headers/pty.texi: Modified.
32732         * doc/glibc-functions/forkpty.texi: Modified.
32733         * doc/glibc-functions/openpty.texi: Modified.
32734
32735 2009-12-10  Bruno Haible  <bruno@clisp.org>
32736
32737         Avoid syntax error in C++ mode.
32738         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
32739
32740 2009-12-10  Bruno Haible  <bruno@clisp.org>
32741
32742         Use sed with option -e.
32743         * gnulib-tool (func_version, func_emit_copyright_notice,
32744         func_emit_initmacro_end, func_import, func_create_testdir): Pass
32745         option -e to sed.
32746         * modules/link-warning (Makefile.am): Likewise.
32747
32748 2009-12-10  Jim Meyering  <meyering@redhat.com>
32749
32750         mgetgroups: do not write bytes beyond end of malloc'd buffer
32751         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
32752         username, we call getgroups with a one-element-shorter buffer,
32753         but still told it the length was original, max_n_groups.
32754
32755 2009-12-09  Eric Blake  <ebb9@byu.net>
32756
32757         cloexec: relax license
32758         * modules/cloexec (Maintainer): Add myself.
32759         (License): Use LGPL, not GPL.
32760
32761         link-warning: optimize generation
32762         * modules/link-warning (Makefile.am): Reduce process usage.
32763
32764 2009-12-09  Bruno Haible  <bruno@clisp.org>
32765
32766         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
32767         workaround was added on 2009-11-17.
32768
32769 2009-12-09  Jim Meyering  <meyering@redhat.com>
32770             Bruno Haible  <bruno@clisp.org>
32771
32772         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
32773         * modules/link-warning (Makefile.am): Make the comment-removing sed
32774         command more robust in the face of bootstrap-prepended comment lines.
32775
32776 2009-12-09  Bruno Haible  <bruno@clisp.org>
32777
32778         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
32779         most one group.
32780
32781 2009-12-09  Simon Josefsson <simon@josefsson.org>
32782             Bruno Haible  <bruno@clisp.org>
32783
32784         * build-aux/link-warning.h: Add copyright notice.
32785         * modules/link-warning (Makefile.am): Generate link-warning.h from
32786         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
32787         * NEWS: Mention change in link-warning module.
32788         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
32789         * modules/dirent (Makefile.am): Add dependency to dirent.h.
32790         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
32791         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
32792         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
32793         * modules/math (Makefile.am): Add dependency to math.h.
32794         * modules/search (Makefile.am): Add dependency to search.h.
32795         * modules/signal (Makefile.am): Add dependency to signal.h.
32796         * modules/spawn (Makefile.am): Add dependency to spawn.h.
32797         * modules/stdio (Makefile.am): Add dependency to stdio.h.
32798         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
32799         * modules/string (Makefile.am): Add dependency to string.h.
32800         * modules/strings (Makefile.am): Add dependency to strings.h.
32801         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
32802         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
32803         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
32804         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
32805         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
32806         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
32807         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
32808         * modules/unistd (Makefile.am): Add dependency to unistd.h.
32809         * modules/wchar (Makefile.am): Add dependency to wchar.h.
32810
32811 2009-12-09  Bruno Haible  <bruno@clisp.org>
32812
32813         fchdir: Optimize away rpl_fstat when possible.
32814         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
32815         REPLACE_OPEN_DIRECTORY.
32816         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
32817
32818 2009-12-09  Bruno Haible  <bruno@clisp.org>
32819
32820         * lib/fchdir.c: Update comment.
32821
32822 2009-12-09  Bruno Haible  <bruno@clisp.org>
32823
32824         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
32825
32826 2009-12-08  Eric Blake  <ebb9@byu.net>
32827
32828         fchdir: avoid memory leak on re-registration.
32829         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
32830
32831 2009-12-08  Jim Meyering  <meyering@redhat.com>
32832
32833         init.sh: avoid Solaris 10 /bin/sh portability problem
32834         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
32835         sourced script:
32836           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
32837           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
32838           bar
32839         tests/init.sh relied on that, accepting a --set-path=DIR argument,
32840         and two tests used that idiom.
32841         * tests/init.sh: Update suggested usage comments.
32842         (path_prepend_): New function, to be used in place
32843         of the --src-path=DIR option.
32844         (setup_): Move PATH-prepending code into path_prepend_.
32845         * tests/test-pread.sh: Adapt to new usage.
32846         * tests/test-xalloc-die.sh: Likewise.
32847
32848 2009-12-08  Simon Josefsson  <simon@josefsson.org>
32849
32850         * doc/gnulib.texi (Glibc pty.h): Add.
32851         * doc/glibc-functions/forkpty.texi: Add.
32852         * doc/glibc-functions/openpty.texi: Add.
32853         Suggested by Bruno Haible.
32854
32855 2009-12-08  Eric Blake  <ebb9@byu.net>
32856
32857         fchdir: fix logic bugs
32858         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
32859         * tests/test-fchdir.c (main): Enhance test.
32860         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
32861         is in use.
32862
32863         dup2: fix logic bugs
32864         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
32865         REPLACE_DUP2 to decide when rpl_dup2 is needed.
32866         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
32867         exists.
32868         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
32869
32870 2009-12-07  Eric Blake  <ebb9@byu.net>
32871
32872         unlink: fix m4 detection
32873         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
32874
32875         unistd-safer: add unit test
32876         * modules/unistd-safer-tests: New file.
32877         * tests/test-dup-safer.c: Likewise.
32878         * tests/test-cloexec.c (setmode): Avoid compiler warning.
32879         * tests/test-dup2.c (setmode): Likewise.
32880         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
32881
32882         cloexec: preserve text vs. binary across dup_cloexec
32883         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
32884         mode.
32885         * modules/dup2-tests (Depends-on): Add binary-io.
32886         * modules/cloexec-tests (Depends-on): Likewise.
32887         * tests/test-dup2.c (setmode, is_mode): New helpers.
32888         (main): Add tests that translation mode is preserved.
32889         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
32890         Reported by Bruno Haible.
32891
32892         mgetgroups: reduce duplicate listings
32893         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
32894         resulting array.
32895         * tests/test-chown.h (test_chown): Simplify client.
32896         * tests/test-lchown.h (test_lchown): Likewise.
32897
32898 2009-12-06  Bruno Haible  <bruno@clisp.org>
32899
32900         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
32901         value.
32902
32903 2009-12-06  Bruno Haible  <bruno@clisp.org>
32904
32905         * lib/progname.c: Include stdio.h, stdlib.h.
32906         (set_program_name): Reject a NULL argument.
32907
32908 2009-12-05  Eric Blake  <ebb9@byu.net>
32909
32910         pipe2-safer: new module
32911         * modules/pipe2-safer: New file.
32912         * lib/unistd-safer.h (pipe2_safer): New prototype.
32913         * lib/unistd--.h (pipe2): New wrapper.
32914         * lib/pipe-safer.c (pipe2_safer): New function.
32915         * modules/pipe (Depends-on): Add pipe2-safer.
32916         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
32917
32918         stdlib-safer: preserve cloexec flag for mkostemp[s]
32919         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
32920         fd_safer_flag.
32921
32922         unistd-safer: allow preservation of cloexec status via flag
32923         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
32924         prototypes.
32925         * lib/dup-safer.c (dup_safer_flag): New function.
32926         * lib/fd-safer.c (fd_safer_flag): Likewise.
32927         * modules/cloexec (configure.ac): Set witness.
32928
32929         test-dup2: enhance test
32930         * modules/dup2-tests (Depends-on): Add cloexec.
32931         * tests/test-dup2.c (main): Enhance test.
32932
32933         cloexec: add dup_cloexec
32934         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
32935         header and comments.
32936         * lib/cloexec.c (set_cloexec_flag): Add comments.
32937         (dup_cloexec): New function, with mingw implementation borrowed
32938         from...
32939         * lib/w32spawn.h (dup_noinherit): ...here.
32940         * modules/execute (Depends-on): Add cloexec.
32941         * modules/pipe (Depends-on): Likewise.
32942         * modules/cloexec (Depends-on): Add dup2.
32943         * modules/cloexec-tests (Files): New file.
32944         * tests/test-cloexec.c: Likewise.
32945
32946         test-xalloc-die: fix test for mingw
32947         * modules/xalloc-die-tests (Files): Add tests/init.sh.
32948         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
32949         directory and .exe suffix off argv[0] output.
32950
32951         test-fseeko: fix test for mingw
32952         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
32953         than undefining fseek, so test will pass on mingw.
32954
32955 2009-12-05  Bruno Haible  <bruno@clisp.org>
32956
32957         * lib/progname.h (set_program_name): Clarify specification.
32958         * lib/progname.c (set_program_name): Likewise.
32959         Reported by Jim Meyering.
32960
32961 2009-12-05  Jim Meyering  <meyering@redhat.com>
32962
32963         maint.mk: backslash-escape parens in default regexp
32964         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
32965         backslash-escape the literal parentheses.
32966
32967         maint.mk: news-date-check: use grep -E
32968         * top/maint.mk (today): Define a Make variable, not a...
32969         (news-date-check): ...shell variable.
32970         (news-date-regexp): Use the Make variable.
32971         Use grep's -E option.  Change the failing diagnostic to mention
32972         the variable, $(news-date-regexp).
32973
32974 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
32975
32976         maintainer-makefile: allow customization of NEWS entry format
32977         * top/maint.mk (news-date-regexp): New overridable variable.
32978         (news-date-check): Use it.
32979
32980 2009-12-04  Eric Blake  <ebb9@byu.net>
32981
32982         mgetgroups: add xgetgroups, and avoid ENOSYS failures
32983         * lib/mgetgroups.h (xgetgroups): New prototype.
32984         * lib/mgetgroups.c (xgetgroups): New wrapper.
32985         (mgetgroups): Handle ENOSYS.
32986         * modules/mgetgroups (Depends-on): Add realloc.
32987         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
32988
32989         mgetgroups: avoid argument promotion issues with -1
32990         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
32991         for invalid gid_t.
32992         * tests/test-chown.h (getegid, test_chown): Likewise.
32993         * tests/test-lchown.h (getegid, test_lchown): Likewise.
32994
32995 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
32996
32997         exclude: Fix header file problems.
32998         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
32999
33000 2009-12-01  Jim Meyering  <meyering@redhat.com>
33001
33002         fts: fts_open: do not let an empty string cause immediate failure
33003         This is required in support of GNU rm, for which the command
33004         "rm A '' B" must process and remove both A and B, in spite of
33005         the empty string argument.
33006         * lib/fts.c (fts_open): Do not let the presence of an empty string
33007         cause fts_open to fail immediately.  Most fts-using tools must be
33008         able to process all arguments, in order, and can be expected to
33009         diagnose such arguments themselves.
33010
33011 2009-11-30  Eric Blake  <ebb9@byu.net>
33012
33013         utimens: fix compilation error
33014         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
33015         Declare variable at right scope.
33016
33017 2009-11-29  Jim Meyering  <meyering@redhat.com>
33018
33019         bootstrap: handle perl-5.11's changed --version output
33020         * build-aux/bootstrap (get_version): Handle perl separately,
33021         since perl-5.11's --version output is different.
33022
33023 2009-11-28  Jim Meyering  <meyering@redhat.com>
33024
33025         userspec: depend on the inttostr module, too
33026         * modules/userspec (Depends-on): Add inttostr.
33027
33028         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
33029         * lib/userspec.c (parse_with_separator): Do not accept a user ID
33030         number of MAXUID when it evaluates to (uid_t) -1.
33031         Likewise for group ID.  Reported by Matt McCutchen in
33032         <http://savannah.gnu.org/bugs/?28113>
33033
33034         userspec: reformat to use spaces, not TABs
33035         * lib/userspec.c: Expand TABs to spaces.
33036         Add Emacs' "indent-tabs-mode: nil" hint.
33037
33038 2009-11-27  Eric Blake  <ebb9@byu.net>
33039
33040         getopt-gnu: flush out another BSD bug
33041         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
33042         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
33043         flush out BSD bug.
33044         * tests/test-getopt.h (test_getopt): End lists with NULL.
33045         * tests/test-getopt_long.h (test_getopt_long): Likewise.
33046         (test_getopt_long_posix): Enhance test.
33047         * modules/getopt-posix-tests (Depends-on): Add stdbool.
33048         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
33049         getopt-gnu.
33050         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33051         Likewise.
33052
33053 2009-11-27  Simon Josefsson  <simon@josefsson.org>
33054
33055         * modules/idpriv-droptemp-tests (Notice): Fix text.
33056
33057 2009-11-27  Jim Meyering  <meyering@redhat.com>
33058
33059         test-xalloc-die: avoid spurious failure due to libtool argv difference
33060         In a libtool-enabled project, this test would fail due to a difference
33061         in the emitted program name, e.g.,
33062         -test-xalloc-die: memory exhausted
33063         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
33064         Use program to avoid that.
33065         * modules/xalloc-die-tests (Depends-on): Add progname.
33066         * tests/test-xalloc-die.c: Include progname.h".
33067         (program_name): Remove decl.
33068         (main): Call set_program_name.
33069         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
33070
33071 2009-11-26  Richard Jones  <rjones@redhat.com>
33072
33073         w32sock: leave win32 error in place.
33074         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
33075
33076 2009-11-26  Eric Blake  <ebb9@byu.net>
33077
33078         init.sh: suggest to use skip_ and fail_ functions in comments
33079         * tests/init.sh: Add a sentence.
33080
33081 2009-11-25  Bruno Haible  <bruno@clisp.org>
33082
33083         init.sh: add documentation in comments
33084         * tests/init.sh: Add some developer and user documentation.
33085
33086 2009-11-26  Jim Meyering  <meyering@redhat.com>
33087
33088         init.sh: accommodate even those who specify bogus srcdir manually
33089         * tests/init.sh: Normally, srcdir is guaranteed by automake and
33090         configure-time tests to be sanitized, so that there is no need to
33091         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
33092         (with no double quotes) suffices.  However, since tests may be
33093         invoked manually, and since you may explicitly set srcdir to the
33094         name of a directory containing spaces, do quote its uses here.
33095         * tests/test-pread.sh: Likewise.
33096         Suggested by Bruno Haible.
33097
33098         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
33099         * tests/test-pread.sh: Write no data into the pipe, because
33100         test-pread actually reads none.  This avoids a diagnostic,
33101         "bash: echo: write error: Broken pipe", that arises in the unusual
33102         event something is ignoring SIGPIPE, and might be interpreted
33103         as some sort of failure.  Reported by Bruno Haible.
33104
33105 2009-11-25  Jim Meyering  <meyering@redhat.com>
33106
33107         test-pread: cover failure with ESPIPE and EINVAL
33108         * tests/test-pread.c (main): Test for failure, too.
33109         * tests/test-pread.sh: Invoke with stdin on a pipe.
33110         Suggested by Eric Blake.
33111
33112         pread: improvement and fix
33113         * modules/pread (Depends-on): Depend on lseek, for portability to
33114         e.g., mingw.  Suggested by Eric Blake.
33115         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
33116
33117         unistd.in.h: correct declaration of pread
33118         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
33119         Reported by Richard W.M. Jones.
33120
33121         test-pread.sh: distribute the test script
33122         * modules/pread-tests (Files): Include test-pread.sh.
33123
33124         test-pread.sh: clean up
33125         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
33126         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
33127         That is unnecessary, since it's always ".".
33128         Suggestion from Eric Blake.
33129
33130         test-pread.sh: make executable
33131         * tests/test-pread.sh: Set executable bit.
33132         Reported by Eric Blake.
33133
33134         correct typo in test-pread.sh
33135         * tests/test-pread.sh: Add #! line.
33136
33137         test pread
33138         * tests/test-pread.c: New file.
33139         * tests/test-pread.sh: Likewise.
33140         * modules/pread-tests: Likewise.
33141
33142         pread: new module
33143         * modules/pread: New file.
33144         * lib/unistd.in.h (pread): Define/declare.
33145         * lib/pread.c (pread): New file.
33146         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
33147         * modules/unistd (Makefile.am): Substitute witnesses.
33148         * doc/posix-functions/pread.texi (pread): Update.
33149         * MODULES.html.sh: Add pread.
33150
33151 2009-11-25  Jim Meyering  <meyering@redhat.com>
33152
33153         tests/init.sh: new file to be used via most *.sh tests
33154         * tests/init.sh: New file.
33155
33156 2009-11-25  Eric Blake  <ebb9@byu.net>
33157
33158         utimens: work around older Linux failure with symlinks
33159         * lib/utimens.c (lutimensat_works_really): New variable.
33160         (fdutimens, lutimens): Use it to manage kernels that support
33161         nanosecond times on files, but not on symlinks.
33162         Reported by Ondřej Vašík.
33163
33164         utimes: fix configure grammar
33165         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
33166
33167 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
33168
33169         regex: Fix fastmap for multibyte character ranges.
33170         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
33171         characters when a multibyte character range is included.
33172
33173 2009-11-22  Andy Wingo  <wingo@pobox.com>
33174
33175         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
33176         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
33177
33178 2009-11-24  Bruno Haible  <bruno@clisp.org>
33179
33180         doc: Most *_l functions exist in MacOS X 10.5.
33181         * doc/posix-functions/duplocale.texi: Update platforms list.
33182         * doc/posix-functions/freelocale.texi: Likewise.
33183         * doc/posix-functions/newlocale.texi: Likewise.
33184         * doc/posix-functions/uselocale.texi: Likewise.
33185         * doc/posix-functions/isalnum_l.texi: Likewise.
33186         * doc/posix-functions/isalpha_l.texi: Likewise.
33187         * doc/posix-functions/isblank_l.texi: Likewise.
33188         * doc/posix-functions/iscntrl_l.texi: Likewise.
33189         * doc/posix-functions/isdigit_l.texi: Likewise.
33190         * doc/posix-functions/isgraph_l.texi: Likewise.
33191         * doc/posix-functions/islower_l.texi: Likewise.
33192         * doc/posix-functions/isprint_l.texi: Likewise.
33193         * doc/posix-functions/ispunct_l.texi: Likewise.
33194         * doc/posix-functions/isspace_l.texi: Likewise.
33195         * doc/posix-functions/isupper_l.texi: Likewise.
33196         * doc/posix-functions/iswalnum_l.texi: Likewise.
33197         * doc/posix-functions/iswalpha_l.texi: Likewise.
33198         * doc/posix-functions/iswblank_l.texi: Likewise.
33199         * doc/posix-functions/iswcntrl_l.texi: Likewise.
33200         * doc/posix-functions/iswctype_l.texi: Likewise.
33201         * doc/posix-functions/iswdigit_l.texi: Likewise.
33202         * doc/posix-functions/iswgraph_l.texi: Likewise.
33203         * doc/posix-functions/iswlower_l.texi: Likewise.
33204         * doc/posix-functions/iswprint_l.texi: Likewise.
33205         * doc/posix-functions/iswpunct_l.texi: Likewise.
33206         * doc/posix-functions/iswspace_l.texi: Likewise.
33207         * doc/posix-functions/iswupper_l.texi: Likewise.
33208         * doc/posix-functions/iswxdigit_l.texi: Likewise.
33209         * doc/posix-functions/isxdigit_l.texi: Likewise.
33210         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
33211         * doc/posix-functions/strcasecmp_l.texi: Likewise.
33212         * doc/posix-functions/strcoll_l.texi: Likewise.
33213         * doc/posix-functions/strfmon_l.texi: Likewise.
33214         * doc/posix-functions/strftime_l.texi: Likewise.
33215         * doc/posix-functions/strncasecmp_l.texi: Likewise.
33216         * doc/posix-functions/strxfrm_l.texi: Likewise.
33217         * doc/posix-functions/tolower_l.texi: Likewise.
33218         * doc/posix-functions/toupper_l.texi: Likewise.
33219         * doc/posix-functions/towctrans_l.texi: Likewise.
33220         * doc/posix-functions/towlower_l.texi: Likewise.
33221         * doc/posix-functions/towupper_l.texi: Likewise.
33222         * doc/posix-functions/wcscoll_l.texi: Likewise.
33223         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
33224         * doc/posix-functions/wctrans_l.texi: Likewise.
33225         * doc/posix-functions/wctype_l.texi: Likewise.
33226         * doc/glibc-functions/strptime_l.texi: Likewise.
33227         * doc/glibc-functions/strtod_l.texi: Likewise.
33228         * doc/glibc-functions/strtof_l.texi: Likewise.
33229         * doc/glibc-functions/strtol_l.texi: Likewise.
33230         * doc/glibc-functions/strtold_l.texi: Likewise.
33231         * doc/glibc-functions/strtoll_l.texi: Likewise.
33232         * doc/glibc-functions/strtoul_l.texi: Likewise.
33233         * doc/glibc-functions/strtoull_l.texi: Likewise.
33234         * doc/glibc-functions/wcsftime_l.texi: Likewise.
33235         * doc/glibc-functions/wcstod_l.texi: Likewise.
33236         * doc/glibc-functions/wcstof_l.texi: Likewise.
33237         * doc/glibc-functions/wcstol_l.texi: Likewise.
33238         * doc/glibc-functions/wcstold_l.texi: Likewise.
33239         * doc/glibc-functions/wcstoll_l.texi: Likewise.
33240         * doc/glibc-functions/wcstoul_l.texi: Likewise.
33241         * doc/glibc-functions/wcstoull_l.texi: Likewise.
33242
33243 2009-11-24  Bruno Haible  <bruno@clisp.org>
33244
33245         duplocale: Fix logic bug.
33246         * lib/duplocale.c: Don't include <langinfo.h>.
33247         (_NL_LOCALE_NAME): Remove macro.
33248         (rpl_duplocale): Use setlocale instead of nl_langinfo.
33249         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
33250
33251 2009-11-23  Jim Meyering  <meyering@redhat.com>
33252
33253         test-update-copyright: don't hard-code /usr/bin/perl
33254         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
33255         perl to print the current year.  Gilles Espinasse reported that
33256         the replaced use of perl was hard-coded as /usr/bin/perl.
33257
33258 2009-11-23  Bruno Haible  <bruno@clisp.org>
33259
33260         duplocale: Add support for glibc 2.3.x.
33261         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
33262
33263 2009-11-22  Bruno Haible  <bruno@clisp.org>
33264
33265         vasnprintf: Tiny optimization.
33266         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
33267         MacOS X.
33268
33269 2009-11-22  Bruno Haible  <bruno@clisp.org>
33270
33271         Tests for module 'duplocale'.
33272         * modules/duplocale-tests: New file.
33273         * tests/test-duplocale.c: New file.
33274
33275         New module 'duplocale'.
33276         * m4/duplocale.m4: New file.
33277         * lib/locale.in.h (duplocale): New declaration.
33278         * lib/duplocale.c: New file.
33279         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
33280         gl_LOCALE_H_DEFAULTS): New macros.
33281         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
33282         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
33283         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
33284         REPLACE_DUPLOCALE.
33285         * modules/duplocale: New file.
33286         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
33287
33288 2009-11-22  Bruno Haible  <bruno@clisp.org>
33289
33290         * modules/locale-tests (configure.ac): Test for newlocale function.
33291         * tests/test-locale.c: When the system has extended locale functions,
33292         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
33293
33294         locale: Make locale_t available when possible.
33295         * lib/locale.in.h: Include <xlocale.h> when it exists.
33296         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
33297         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
33298         * modules/locale (Depends-on): Add extensions.
33299         (Makefile.am): Also substitute HAVE_XLOCALE_H.
33300         * doc/posix-headers/locale.texi: Document the problem with locale_t.
33301
33302 2009-11-22  Bruno Haible  <bruno@clisp.org>
33303
33304         Add comments.
33305         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
33306         invocation.
33307         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
33308         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33309         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33310
33311 2009-11-22  Bruno Haible  <bruno@clisp.org>
33312
33313         error: account for the possibility of freopen (stdout).
33314         * lib/error.c: Include <unistd.h>.
33315         (flush_stdout): New function, extracted from error and error_at_line.
33316         Determine stdout's fd dynamically.
33317         (error, error_at_line): Invoke flush_stdout.
33318         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
33319         * modules/error (Depends-on): Add unistd.
33320
33321 2009-11-22  Bruno Haible  <bruno@clisp.org>
33322
33323         diffseq: Add comment.
33324         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
33325
33326 2009-11-22  Jim Meyering  <meyering@redhat.com>
33327
33328         c-stack: avoid defining an unused static function
33329         * lib/c-stack.c (find_stack_direction): Do not define this function
33330         when it will not be used.
33331
33332         diffseq: avoid spurious gcc warnings
33333         * lib/diffseq.h (IF_LINT2): Define.
33334         (compareseq): Use it to initialize two members of "part".
33335         This avoids two used-uninitialized warnings.
33336
33337 2009-11-21  Jim Meyering  <meyering@redhat.com>
33338
33339         c-stack: avoid "ignoring return value of `write'" warning
33340         * lib/c-stack.c: Include "ignore-value.h".
33341         (die): Explicitly ignore each write return value.
33342         * modules/c-stack (Depends-on): Add ignore-value.
33343
33344 2009-11-21  Bruno Haible  <bruno@clisp.org>
33345
33346         diffseq: reduce scope of variable 'best'.
33347         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
33348         variable, earlier used for two different purposes.
33349
33350 2009-11-21  Jim Meyering  <meyering@redhat.com>
33351
33352         diffseq: remove useless assignment to "best"
33353         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
33354         assignment.  At that point "best" is already guaranteed to be zero.
33355
33356 2009-11-20  Eric Blake  <ebb9@byu.net>
33357
33358         build: mention ftp redirector in release announcements
33359         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
33360         values that used to come from cfg.mk; mention FTP redirect URL.
33361         * build-aux/announce-gen: Mention the mirror list.
33362         Suggested by Karl Berry.
33363
33364         nanosleep: improve port to mingw
33365         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
33366         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
33367         LIB_NANOSLEEP, but only when needed.
33368         * modules/select (Link): Document LIBSOCKET.
33369         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
33370         enough.
33371
33372         nanosleep: work around cygwin bug
33373         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
33374         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
33375         bug.
33376         (getnow): Delete, not needed.
33377         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
33378         LIB_CLOCK_GETTIME.
33379         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
33380         clock-time, gettime.
33381         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
33382         bug.
33383         * modules/nanosleep-tests: New test.
33384         * tests/test-nanosleep.c: New file.
33385
33386         sleep: work around cygwin bug
33387         * lib/sleep.c (rpl_sleep): Work around the bug.
33388         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
33389         (gl_PREREQ_SLEEP): Delete unused macro.
33390         * modules/sleep (Depends-on): Add verify.
33391         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
33392         * modules/unistd (Makefile.am): Substitute witness.
33393         * lib/unistd.in.h (sleep): Update prototype.
33394         * doc/posix-functions/sleep.texi (sleep): Document the bug.
33395         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
33396         * modules/sleep-tests (Depends-on): Check for alarm.
33397
33398 2009-11-20  Jim Meyering  <meyering@redhat.com>
33399
33400         maint.mk: improve sc_prohibit_magic_number_exit
33401         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
33402         so it does not match uses like System.exit(1).
33403         Add comments showing how to correct all offenders.
33404
33405 2009-11-19  Eric Blake  <ebb9@byu.net>
33406
33407         xalloc-die-tests: add missing library
33408         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
33409
33410         test-xvasprintf: silence compiler warnings
33411         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
33412         empty string from gcc.
33413
33414 2009-11-19  Jim Meyering  <meyering@redhat.com>
33415
33416         xfreopen: new module, from coreutils
33417         * modules/xfreopen: New module.
33418         * lib/xfreopen.c: New file.
33419         * lib/xfreopen.h: New file.
33420         * MODULES.html.sh (File stream based Input/Output"): Add it.
33421
33422 2009-11-19  Eric Blake  <ebb9@byu.net>
33423
33424         manywarnings: depend on warnings
33425         * modules/manywarnings (Depends-on): Add warnings.
33426
33427         build: avoid compiler warnings
33428         * lib/select.c (rpl_select): Delete unused variable.
33429         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
33430
33431 2009-11-18  Eric Blake  <ebb9@byu.net>
33432
33433         tests: avoid false negative with --with-packager
33434         * tests/test-version-etc.sh: Discard packager information.
33435         * tests/test-argp-version-etc-1.sh: Likewise.
33436         Reported by Mike Frysinger.
33437
33438         utimens: fix regression on Solaris
33439         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
33440         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
33441         can only change fd timestamps via futimesat.  Instead, use an
33442         additional witness macro to avoid BSD bug.
33443         Reported by Jim Meyering.
33444
33445 2009-11-17  Eric Blake  <ebb9@byu.net>
33446
33447         usleep: use it to simplify tests
33448         * modules/stat-time-tests (Depends-on): Add usleep.
33449         (configure.ac): Drop usleep check.
33450         * modules/chown-tests (Depends-on, configure.ac): Likewise.
33451         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
33452         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
33453         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
33454         * modules/openat-tests (Depends-on, configure.ac): Likewise.
33455         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
33456         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
33457         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
33458         Likewise.
33459         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
33460         * tests/test-lchown.h (nap): Likewise.
33461         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
33462         * tests/test-stat-time.c (nap): Likewise.
33463         * tests/test-utimens-common.h (nap): Update comments.
33464
33465         usleep: new module
33466         * modules/usleep: New file.
33467         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
33468         * lib/usleep.c (usleep): Likewise.
33469         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
33470         * modules/unistd (Makefile.am): Substitute witnesses.
33471         * lib/unistd.in.h (usleep): Add declaration.
33472         * doc/pastposix-functions/usleep.texi (usleep): Document this.
33473         * MODULES.html.sh (Date and time): Likewise.
33474         * modules/usleep-tests (Depends-on): New test.
33475         * tests/test-usleep.c: New file.
33476
33477         chown: work around OpenBSD bug
33478         * lib/chown.c (rpl_chown): Work around the bug.
33479         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
33480         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
33481         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
33482         * modules/chown (Depends-on): Add stdbool.
33483         * modules/lchown (Depends-on): Likewise.
33484         * doc/posix-functions/chown.texi (chown): Document the bug.
33485         * doc/posix-functions/lchown.texi (lchown): Likewise.
33486         * tests/test-lchown.h (test_chown): Relax test.
33487
33488         mkstemp: avoid conflict with C++ keyword template
33489         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
33490         * lib/mkostemp.c (mkostemp): Likewise.
33491         * lib/mkostemps.c (mkostemps): Likewise.
33492         * lib/mkstemp.c (mkstemp): Likewise.
33493         * lib/mkstemps.c (mkstemps): Likewise.
33494
33495         xalloc-die-tests: optimize
33496         * tests/test-xalloc-die.sh: Reduce number of processes.
33497
33498 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33499
33500         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
33501         patch from ludo@gnu.org (Ludovic Courtès).
33502
33503 2009-11-17  Jim Meyering  <meyering@redhat.com>
33504
33505         version-etc: use proper license string
33506         * modules/version-etc (License): Use LGPL, not LGPLv3+.
33507         * modules/version-etc-fsf: Likewise.
33508
33509 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33510
33511         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
33512         printed to stdout.  Deal with EOL differences.
33513
33514 2009-11-17  Eric Blake  <ebb9@byu.net>
33515
33516         unsetenv: work around Solaris bug
33517         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
33518         * lib/unsetenv.c (rpl_unsetenv): Work around it.
33519         Reported by Jim Meyering.
33520
33521         vasnprintf: avoid compiler warnings
33522         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
33523         variables.
33524         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
33525
33526 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33527
33528         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
33529         settings since xalloc-die is no longer the self test,
33530         xalloc-die.sh is.
33531
33532 2009-11-17  Jim Meyering  <meyering@redhat.com>
33533
33534         test-xalloc-die.sh: make the code agree with the commit log
33535         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
33536         at the end, just in case you happen to have a test-xalloc-die
33537         program in some other PATH directory.
33538
33539         test-xalloc-die.sh: fix a portability bug
33540         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
33541         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
33542         Otherwise, argv[0] (as often seen in diagnostics) would be too
33543         system-dependent, sometimes with, and sometimes without the leading "./".
33544
33545         version-etc-fsf: relax license to LGPLv3+
33546         * modules/version-etc-fsf (License): Relax license.
33547
33548 2009-11-16  Eric Blake  <ebb9@byu.net>
33549
33550         xalloc-die-tests: avoid printing null pointer
33551         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
33552         shell script.
33553         * tests/test-xalloc-die.c (program_name): Declare.
33554         * tests/test-xalloc-die.sh (tmpfiles): New file.
33555
33556         setenv, unsetenv: work around various bugs
33557         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
33558         (setenv) [HAVE_SETENV]: Work around bugs.
33559         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
33560         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
33561         for bugs.
33562         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
33563         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
33564         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
33565         * modules/stdlib (Makefile.am): Update substitutions.
33566         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
33567         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
33568         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
33569         * modules/setenv-tests: New test.
33570         * modules/unsetenv-tests: Likewise.
33571         * tests/test-setenv.c: New file.
33572         * tests/test-unsetenv.c: Likewise.
33573
33574 2009-11-16  Jim Meyering  <meyering@redhat.com>
33575
33576         version-etc: relax license to LGPLv3+
33577         * modules/version-etc (License): Relax license.
33578
33579         better AC_REQUIRE expanded-before-required-warning avoidance
33580         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
33581         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
33582         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
33583         which is no longer needed.
33584
33585 2009-11-16  Eric Blake  <ebb9@byu.net>
33586
33587         test-freading: clean up temporary file
33588         * tests/test-freading.c (main): Remove file on success, and use
33589         ASSERT more liberally.
33590         Reported by Jim Meyering.
33591
33592 2009-11-16  Jim Meyering  <meyering@redhat.com>
33593
33594         avoid new AC_REQUIRE expanded-before-required warnings
33595         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
33596         merely using it.
33597         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
33598         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
33599
33600 2009-11-15  Simon Josefsson  <simon@josefsson.org>
33601
33602         * tests/test-xalloc-die.c: New file.
33603         * modules/xalloc-die-tests: New file.
33604         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
33605         XFAIL_TESTS so it can be appended by modules.
33606
33607 2009-11-15  Simon Josefsson  <simon@josefsson.org>
33608
33609         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
33610         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
33611
33612 2009-11-14  Eric Blake  <ebb9@byu.net>
33613
33614         fnmatch: avoid compiler warning
33615         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
33616         to silence compiler warning about mismatch signedness in ?:.
33617         Reported by Robert Millan.
33618
33619         intprops: add double-inclusion guard
33620         * lib/intprops.h: Allow idempotent includes.
33621         Suggested by Bruce Korb.
33622
33623         openat: detect Solaris fchownat bug
33624         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
33625         penalizing glibc chownat when only lchownat is broken.
33626         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
33627         trailing slash bugs.
33628         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
33629         * modules/openat-tests (Files): Include more files.
33630         (Depends-on): Add mgetgroups, sleep, stat-time.
33631         (configure.ac): Add additional checks.
33632         (Makefile.am): Build new test.
33633         * tests/test-fchownat.c: New file.
33634
33635         lchown: detect Solaris and FreeBSD bug
33636         * lib/lchown.c (rpl_lchown): Work around bug.
33637         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
33638         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33639         * modules/unistd (Makefile.am): Populate it.
33640         * lib/unistd.in.h (lchown): Update declaration.
33641         * doc/posix-functions/lchown.texi (lchown): Document the bug.
33642         * modules/lchown-tests: New file.
33643         * tests/test-lchown.h (test_lchown): Likewise.
33644         * tests/test-lchown.c (main): Likewise.
33645
33646         chown: detect Solaris and FreeBSD bug
33647         * lib/chown.c (rpl_chown): Work around bug.
33648         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
33649         (gl_PREREQ_CHOWN): Delete.
33650         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33651         * modules/unistd (Makefile.am): Populate it.
33652         * lib/unistd.in.h (chown): Update declaration.
33653         * lib/lchown.c (chown): Update client.
33654         * modules/lchown (Depends-on): Add lstat.
33655         * doc/posix-functions/chown.texi (chown): Document the bug.
33656         * doc/posix-functions/getgroups.texi (getgroups): Document
33657         getgroups pitfall.
33658         * modules/chown-tests: New file.
33659         * tests/test-chown.h (test_chown): Likewise.
33660         * tests/test-chown.c (main): Likewise.
33661
33662 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
33663
33664         gnulib-tool: correctly detect absence of m4 directories
33665         * gnulib-tool: Avoid extra newline on data passed to wc -l.
33666
33667 2009-11-14  Jim Meyering  <meyering@redhat.com>
33668
33669         maint.mk: Prohibit inclusion of "xalloc.h" without use.
33670         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33671
33672 2009-11-14  John W. Eaton  <jwe@gnu.org>
33673
33674         strftime.h: wrap funtion declaration in extern "C" block
33675         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
33676
33677 2009-11-13  Eric Blake  <ebb9@byu.net>
33678
33679         getgroups: avoid compiler warning
33680         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
33681
33682         getgroups: work around FreeBSD bug
33683         * lib/getgroups.c (rpl_getgroups): Work around the bug.
33684         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
33685         * doc/posix-functions/getgroups.texi (getgroups): Document it.
33686         * tests/test-getgroups.c (main): Fix buffer overrun.
33687
33688         getgroups: avoid compilation failure
33689         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
33690         * modules/getgroups (Depends-on): Add stdint.
33691
33692 2009-11-13  Jim Meyering  <meyering@redhat.com>
33693
33694         test-getgroups: avoid compilation failure
33695         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
33696
33697 2009-11-13  Eric Blake  <ebb9@byu.net>
33698
33699         mgetgroups: new module, taken from coreutils
33700         * modules/mgetgroups: New file.
33701         * lib/mgetgroups.h: Likewise.
33702         * lib/mgetgroups.c (mgetgroups): Likewise.
33703         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
33704         * MODULES.html.sh (Users and groups): Mention it.
33705
33706         getgroups: don't expose GETGROUPS_T to user
33707         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
33708         an element at a time if GETGROUPS_T is wrong size.
33709         * lib/getugroups.h (getugroups): Change signature.
33710         * lib/unistd.in.h (getgroups): Likewise.
33711         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
33712         signature needs fixing.
33713         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
33714         AC_TYPE_GETGROUPS.
33715         * modules/group-member (Depends-on): Add getgroups.
33716         * lib/group-member.c (group_info, get_group_info): Use gid_t.
33717         (group_member): Rely on getgroups replacement.
33718         * lib/getugroups.c (getugroups): Use gid_t.
33719         * tests/test-getgroups.c (main): Likewise.
33720         * NEWS: Mention the signature change.
33721         * doc/posix-functions/getgroups.texi (getgroups): Mention the
33722         problem with signature.
33723         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
33724         GETGROUPS_T is still useful for setgroups.
33725
33726         getgroups, getugroups: provide stubs for mingw
33727         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
33728         * lib/getugroups.c (getugroups): Likewise.
33729         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
33730         function.  Modernize replacement scheme.
33731         (gl_PREREQ_GETGROUPS): Delete.
33732         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
33733         * modules/getgroups (configure.ac): Declare witness.
33734         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
33735         * modules/unistd (Depends-on): Substitute witness.
33736         * lib/unistd.in.h (getgroups): Declare replacement.
33737
33738         getgroups: avoid calling exit
33739         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
33740         drop xalloc.
33741         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
33742         dependencies.
33743         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
33744         exiting, in the rare case of malloc failure.
33745
33746         getgroups: fix logic error
33747         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
33748         has more than 20 groups.
33749         * modules/getgroups-tests: New test.
33750         * tests/test-getgroups.c: New file.
33751
33752 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33753
33754         * tests/test-base64.c: Improve.
33755
33756 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33757
33758         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
33759         Blake <ebb9@byu.net>.
33760
33761 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33762
33763         * tests/test-xvasprintf.c: Add %s%s related checks.
33764
33765 2009-11-12  Eric Blake  <ebb9@byu.net>
33766
33767         version-etc: match standards.texi style
33768         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
33769         and use <> only for URLs.
33770
33771 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
33772
33773         fts: do not fail on a submount during traversal
33774         * lib/fts.c (fts_build): Read the stat info again after opening
33775         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
33776         Original report at http://bugzilla.redhat.com/501848.
33777
33778 2009-11-12  Jim Meyering  <meyering@redhat.com>
33779
33780         bootstrap: sync from coreutils
33781         * build-aux/bootstrap (bootstrap_epilogue): New function.
33782         Use git_modules_config in one more place.  This make bootstrap's
33783         --gnulib-srcdir option more useful for testing.
33784
33785         bootstrap: generalize autoheader check
33786         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
33787         AC_CONFIG_HEADERS.
33788
33789 2009-11-11  Eric Blake  <ebb9@byu.net>
33790
33791         mkfifoat: use new modules for Solaris and BSD bugs
33792         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
33793         * lib/mkfifoat.c (mknodat): Split...
33794         * lib/mknodat.c (mknodat): ...into new file.
33795         * modules/mkfifoat (Files): Ship new file.
33796         (Depends-on): Add mkfifo, mknod.
33797         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
33798         (Depends-on): Add symlink.
33799         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
33800         redundant with test_mkfifo.h.
33801         (do_mkfifoat, do_mknodat): New helpers.
33802
33803         mknod: new module
33804         * modules/mknod: New file.
33805         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
33806         * lib/mknod.c (mknod): Likewise.
33807         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33808         defaults.
33809         * modules/sys_stat (Makefile.am): Substitute them.
33810         * lib/sys_stat.in.h (mknod): Declare replacement.
33811         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33812         Document it.
33813         * doc/posix-functions/mknod.texi (mknod): Likewise.
33814         * modules/mknod-tests: New test.
33815         * tests/test-mknod.c: Likewise.
33816
33817         mkfifo: new module
33818         * modules/mkfifo: New file.
33819         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
33820         * lib/mkfifo.c (mkfifo): Likewise.
33821         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33822         defaults.
33823         * modules/sys_stat (Makefile.am): Substitute them.
33824         * lib/sys_stat.in.h (mkfifo): Declare replacement.
33825         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33826         Document it.
33827         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
33828         * modules/mkfifo-tests: New test.
33829         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
33830         from test-mkfifoat.c.
33831         * tests/test-mkfifo.c: New file.
33832
33833         readlink: detect FreeBSD bug
33834         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
33835         slash on symlink.
33836         * doc/posix-functions/readlink.texi (readlink): Document the bug.
33837         * tests/test-readlink.h (test_readlink): Enhance test.
33838
33839         symlink: detect FreeBSD bug
33840         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
33841         slash on symlink.
33842         * doc/posix-functions/symlink.texi (symlink): Document the bug.
33843         * tests/test-symlink.h (test_symlink): Enhance test.
33844
33845 2009-11-10  Eric Blake  <ebb9@byu.net>
33846
33847         link: detect FreeBSD bug
33848         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
33849         symlink.
33850         * doc/posix-functions/link.texi (link): Document the bug.
33851         * tests/test-link.h (test_link): Enhance test.
33852         * tests/test-linkat.c (main): Update caller.
33853
33854         unlink, remove: detect FreeBSD bug
33855         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
33856         slash on symlink.
33857         * doc/posix-functions/unlink.texi (unlink): Document the bug.
33858         * doc/posix-functions/remove.texi (remove): Likewise.
33859         * tests/test-unlink.h (test_unlink): Enhance test.
33860         * tests/test-remove.c (main): Likewise.
33861
33862 2009-11-09  Eric Blake  <ebb9@byu.net>
33863
33864         rename: detect FreeBSD bug
33865         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
33866         slash on symlink.
33867         * modules/renameat-tests (Depends-on): Add filenamecat.
33868         * tests/test-rename.h (test_rename): Allow one more errno.
33869         * tests/test-renameat.c (main): Likewise.
33870         * doc/posix-functions/rename.texi (rename): Document the bug.
33871
33872         open: detect FreeBSD bug
33873         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
33874         symlink.
33875         * doc/posix-functions/open.texi (open): Document the bug.
33876         * doc/posix-functions/utimes.texi (utimes): Likewise.
33877         * tests/test-open.h (test_open): Add parameters, and test symlink
33878         handling.
33879         * tests/test-open.c (main): Adjust caller.
33880         * tests/test-fcntl-safer.c (main): Likewise.
33881         * modules/open-tests (Depends-on): Add stdbool, symlink.
33882         * modules/fcntl-safer-tests (Depends-on): Likewise.
33883         * tests/test-openat.c (main): Add test-open tests.
33884
33885         stat: detect FreeBSD bug
33886         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
33887         symlink.
33888         * doc/posix-functions/stat.texi (stat): Document the bug.
33889         * tests/test-stat.h (test_stat_func): Add argument.
33890         * tests/test-stat.c (main): Adjust caller.
33891         * tests/test-fstatat.c (main): Likewise.
33892         * modules/stat-tests (Depends-on): Add stdbool, symlink.
33893         Reported by Jim Meyering.
33894
33895 2009-11-09  James Youngman  <jay@gnu.org>
33896
33897         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
33898         * lib/strftime.c: Correct placement of #include "ignore-value.h".
33899
33900 2009-11-08  Jim Meyering  <meyering@redhat.com>
33901
33902         utimens: remove invalid futimesat call
33903         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
33904         It used the file descriptor of the target file as the DIR_FD
33905         parameter and NULL as the file name.  That caused failure with
33906         errno == EFAULT on FreeBSD-8.0-rc2
33907
33908 2009-11-07  Eric Blake  <ebb9@byu.net>
33909
33910         fflush, freadseek: use fseeko, not fseek
33911         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
33912         (clear_ungetc_buffer): Avoid potential problems on large files.
33913         * lib/freadseek.c (freadseek): Likewise.
33914         * modules/freadseek (Depends-on): Add fseeko.
33915         * modules/fseek (configure.ac): Set a witness.
33916         * tests/test-fflush.c (main): Use fseeko.
33917         * tests/test-fpurge.c (fseek): Disable link warning.
33918         * tests/test-freadable.c (fseek): Likewise.
33919         * tests/test-freading.c (fseek): Likewise.
33920         * tests/test-fseeko.c (fseek): Likewise.
33921         * tests/test-ftell.c (fseek): Likewise.
33922         * tests/test-ftello.c (fseek): Likewise.
33923         * tests/test-fwritable.c (fseek): Likewise.
33924         * tests/test-fwriting.c (fseek): Likewise.
33925
33926 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33927
33928         * modules/memchr (Depends-on): Drop getpagesize dependency.
33929
33930 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33931
33932         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
33933         Reported by Ludovic Courtès.
33934         * build-aux/pmccabe2html: Improve example usage.
33935         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
33936
33937 2009-11-06  Jim Meyering  <meyering@redhat.com>
33938
33939         do-release-commit-and-tag: New module.
33940         Automate the release-commit and tag process.
33941         * build-aux/do-release-commit-and-tag: New script, from coreutils.
33942         * modules/do-release-commit-and-tag: New file.
33943         * MODULES.html.sh (Support for maintaining and releasing): Add it.
33944
33945 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33946
33947         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
33948         because test-select.c uses inet_pton.
33949
33950 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33951
33952         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
33953         GETADDRINFO_LIB.  Bump serial number.
33954         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
33955         Suggested by Eric Blake <ebb9@byu.net>.
33956
33957 2009-11-05  Eric Blake  <ebb9@byu.net>
33958
33959         strtod: detect darwin bug
33960         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
33961         Reported by Leo Davis.
33962
33963         freopen-safer: new module
33964         * modules/freopen-safer: New module.
33965         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
33966         * lib/freopen-safer.c (freopen_safer): New file.
33967         * lib/stdio-safer.h (freopen_safer): New declaration.
33968         * lib/stdio--.h (freopen): New override.
33969         * MODULES.html.sh (File stream based Input/Output): Mention it.
33970         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
33971         freopen-safer module.
33972         * doc/posix-functions/stderr.texi (stderr): Likewise.
33973         * doc/posix-functions/stdin.texi (stdin): Likewise.
33974         * doc/posix-functions/stdout.texi (stdout): Likewise.
33975         * modules/freopen-safer-tests: New test.
33976         * tests/test-reopen-safer.c: New file.
33977
33978 2009-11-05  Jim Meyering  <meyering@redhat.com>
33979
33980         maint.mk: Prohibit inclusion of "close-stream.h" without use.
33981         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33982
33983 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33984
33985         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
33986
33987 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33988
33989         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
33990
33991 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33992
33993         Fix link error.
33994         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33995         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33996
33997 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33998
33999         * tests/test-func.c: Also test value of __func__.
34000
34001 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34002
34003         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
34004         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
34005
34006 2009-11-05  Bruno Haible  <bruno@clisp.org>
34007
34008         Fix link error.
34009         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
34010         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34011         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
34012
34013 2009-11-05  Bruno Haible  <bruno@clisp.org>
34014
34015         Tests for module 'inet_pton'.
34016         * modules/inet_pton-tests: New file.
34017         * tests/test-inet_pton.c: New file.
34018
34019 2009-11-05  Bruno Haible  <bruno@clisp.org>
34020
34021         Tests for module 'inet_ntop'.
34022         * modules/inet_ntop-tests: New file.
34023         * tests/test-inet_ntop.c: New file.
34024
34025 2009-11-04  Eric Blake  <ebb9@byu.net>
34026
34027         stdlib-safer: wrap all mkstemp variants
34028         * modules/mkostemp (configure.ac): Set witness.
34029         * modules/mkostemps (configure.ac): Likewise.
34030         * modules/mkstemps (configure.ac): Likewise.
34031         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
34032         (mkstemps_safer): Wrap more functions.
34033         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
34034         wrapping.
34035         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
34036         (mkstemps_safer): Implement the wrappers.
34037
34038         mkstemps, mkostemps: new modules
34039         * modules/mkostemps: New module.
34040         * modules/mkstemps: Likewise.
34041         * lib/mkostemps.c (mkostemps): New file.
34042         * lib/mkstemps.c (mkstemps): Likewise.
34043         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
34044         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
34045         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
34046         * modules/stdlib (Makefile.am): Substitute them.
34047         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
34048         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
34049         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
34050         * doc/gnulib.texi (Glibc stdlib.h): Include them.
34051         * MODULES.html.sh (File system functions): Mention them.
34052
34053         tempname: resync from glibc
34054         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
34055         same values for __GT_FILE as glibc.  Abort even when assertions
34056         are disabled.
34057         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
34058         match its value otherwise.  Allow idempotent inclusion.
34059         * lib/mkdtemp.c (mkdtemp): Adjust caller.
34060         * lib/mkostemp.c (mkostemp): Likewise.
34061         * lib/mkstemp.c (mkstemp): Likewise.
34062         * lib/tmpfile.c (tmpfile): Likewise.
34063         * NEWS: Document this.
34064
34065         utimens: fix use of futimens on older Linux
34066         * lib/utimens.c (fdutimens): Use updated, rather than original,
34067         timespec to avoid bug in older Linux kernel.
34068         Reported by Simon Josefsson.
34069
34070 2009-11-04  Bruno Haible  <bruno@clisp.org>
34071
34072         Make num_processors more flexible and consistent.
34073         * lib/nproc.h (enum nproc_query): New type.
34074         (num_processors): Add a 'query' argument.
34075         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
34076         (num_processors): Add a 'query' argument. Test the value of the
34077         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
34078         mingw, count the number of CPUs available for the current process.
34079         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
34080         Check for sched_getaffinity and sched_getaffinity_np.
34081         * modules/nproc (Depends-on): Add c-ctype, extensions.
34082         * NEWS: Mention the change.
34083
34084 2009-11-03  Bruno Haible  <bruno@clisp.org>
34085
34086         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
34087
34088 2009-11-03  Jim Meyering  <meyering@redhat.com>
34089
34090         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
34091         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
34092         if it is defined.
34093
34094 2009-11-02  Eric Blake  <ebb9@byu.net>
34095
34096         mktime, timegm: share common declaration
34097         * lib/mktime-internal.h: New file.
34098         * lib/mktime.c: Use it rather than open-coding a declaration.
34099         * lib/timegm.c: Likewise.
34100         * modules/mktime (Files): Ship it.
34101         * modules/timegm (Files): Likewise.
34102         Suggested by Bruno Haible.
34103
34104         test-update-copyright: update test to match script changes
34105         * tests/test-update-copyright.sh: Avoid hard-coding perl
34106         location.  Don't update *.bak created by earlier runs.
34107
34108 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
34109             Simon Josefsson  <simon@josefsson.org>
34110             Bruno Haible  <bruno@clisp.org>
34111
34112         Fix link error on Solaris 8.
34113         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
34114         also in libnsl. Define also INET_PTON_LIB.
34115         * modules/inet_pton (Link): New section.
34116
34117 2009-11-02  Simon Josefsson  <simon@josefsson.org>
34118             Bruno Haible  <bruno@clisp.org>
34119
34120         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
34121         * modules/inet_ntop (Link): New section.
34122         Reported by Boyan Kasarov <bkasarov@gmail.com>.
34123
34124 2009-11-02  Eric Blake  <ebb9@byu.net>
34125
34126         maint: avoid compiler warnings in m4 macros
34127         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
34128         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
34129
34130 2009-11-02  Simon Josefsson  <simon@josefsson.org>
34131
34132         * m4/pmccabe2html.m4: Remove file.
34133         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
34134         function.  Change maintainer.
34135         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
34136         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
34137         Courtès).
34138
34139 2009-10-31  Eric Blake  <ebb9@byu.net>
34140
34141         fseeko: fix m4 regression
34142         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
34143         regression from 2009-10-27.
34144         Reported by Ralf Wildenhues.
34145
34146 2009-10-31  Jim Meyering  <meyering@redhat.com>
34147
34148         inttostr: aesthetics and improved (compile-time) safety
34149         Define inttype_is_signed rather than inttype_is_unsigned,
34150         since the sole use is via "#if inttype_is_signed".
34151         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
34152         inttype_is_unsigned.
34153         * lib/offtostr.c (inttype_is_signed): Likewise.
34154         * lib/uinttostr.c (inttype_is_signed): Likewise.
34155         * lib/umaxtostr.c (inttype_is_signed): Likewise.
34156         * lib/inttostr.c (inttostr): Use verify to cross-check the
34157         inttype_is_signed value and the signedness of the actual type.
34158         * modules/inttostr (Depends-on): Add verify.
34159
34160 2009-10-30  Eric Blake  <ebb9@byu.net>
34161
34162         build: avoid compiler warnings
34163         * lib/fchmodat.c (lchmod): Mark unused variables.
34164         * lib/getopt.c (_getopt_initialize): Likewise.
34165         * lib/mktime.c (__mktime_internal): Provide prototype.
34166         * lib/inttostr.c (inttostr): Avoid compiler warning even with
34167         older gcc that do not understand #pragma GCC diagnostic.
34168         * lib/uinttostr.c (inttype_is_unsigned): Define.
34169         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
34170
34171 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
34172
34173         stat: fix compilation on AIX
34174         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
34175         only see struct stat64.
34176
34177 2009-10-30  Eric Blake  <ebb9@byu.net>
34178
34179         exclude: make more robust
34180         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
34181         rather than masking a coding bug.
34182         Suggested by Bruno Haible.
34183
34184 2009-10-30  Jim Meyering  <meyering@redhat.com>
34185
34186         perl scripts: remove #!/usr/bin/perl in favor of more portable...
34187         Rather than putting #!/usr/bin/perl on the first line,
34188         start with a variant of what's recommended by "man perlrun" that
34189         invokes the first "perl" program from your shell's search path.
34190         * build-aux/gitlog-to-changelog: Replace #!... as above.
34191         Add a "Local Variables" perl mode setting.
34192         Prompted by a patch from Ludovic Courtès.
34193         Improved by Eric Blake.
34194         * build-aux/useless-if-before-free: Likewise.
34195         * build-aux/announce-gen: Likewise.
34196         * build-aux/update-copyright: Likewise.
34197
34198 2009-10-29  Eric Blake  <ebb9@byu.net>
34199
34200         filenamecat-lgpl: adjust clients
34201         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
34202         filenamecat.
34203         * modules/renameat (Depends-on): Likewise.
34204
34205         filenamecat: split into filenamecat-lgpl
34206         * modules/filenamecat-lgpl: New module.
34207         * modules/filenamecat (Files): Move library-safe files into
34208         filenamecat-lgpl.
34209         (Depends-on): Add filenamecat-lgpl.
34210         (configure.ac): Declare witness.
34211         * lib/filenamecat.h (file_name_concat): Only declare when using
34212         GPL module.
34213         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
34214         Move...
34215         * lib/filenamecat-lgpl.c: ...into new file.
34216         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
34217         (gl_FILE_NAME_CONCAT): Use it.
34218         * MODULES.html.sh (File system functions): Mention new module.
34219
34220         argp: avoid memory leak
34221         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
34222         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
34223         base_name, since the latter malloc()s and can call exit().
34224         Leak introduced 2006-07-03.
34225
34226         dirname-lgpl: adjust clients that don't need full dirname
34227         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
34228         * modules/filenamecat (Depends-on): Likewise.
34229         * modules/linkat (Depends-on): Likewise.
34230         * modules/mkancesdirs (Depends-on): Likewise.
34231         * modules/mkdir (Depends-on): Likewise.
34232         * modules/openat (Depends-on): Likewise.
34233         * modules/savewd (Depends-on): Likewise.
34234         * modules/rename (Depends-on): Likewise.
34235         (License): Relax license.
34236         * modules/mkdir-tests (Depends-on): Drop progname.
34237         (Makefile.am): Delete unneeded LDADD.
34238         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
34239
34240         dirname: split into dirname-lgpl
34241         * modules/dirname-lgpl: New module.
34242         * modules/dirname (Files): Move library-safe files into
34243         dirname-lgpl.
34244         (Depends-on): Add dirname-lgpl.
34245         (configure.ac): Declare witness.
34246         * modules/double-slash-root (License): Relax license.
34247         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
34248         module.
34249         * lib/dirname.c (dir_len, mdir_name): Move...
34250         * lib/dirname-lgpl.c: ...into new file.
34251         * lib/basename.c (last_component, base_len): Move...
34252         * lib/basename-lgpl.c: ...into new file.
34253         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
34254         (gl_DIRNAME): Use it.
34255         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
34256         Mention new module.
34257         * modules/dirname-tests (Depends-on): Add progname.
34258         * tests/test-dirname.c (program_name): Delete.
34259
34260         mkdir: make safe for libraries
34261         * modules/mkdir (Depends-on): Drop xalloc.
34262         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
34263         exit.
34264
34265         tests: avoid some compiler warnings
34266         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
34267         literals.
34268         * tests/test-memchr.c (main): Avoid type mismatch.
34269         * tests/test-arpa_inet.c (main): Avoid unused parameters.
34270         * tests/test-base64.c (main): Likewise.
34271         * tests/test-getdelim.c (main): Likewise.
34272         * tests/test-gethostname.c (main): Likewise.
34273         * tests/test-getline.c (main): Likewise.
34274         * tests/test-netinet_in.c (main): Likewise.
34275         * tests/test-select.c (open_server_socket, main): Likewise.
34276         * tests/test-select-stdin.c (main): Likewise.
34277         * tests/test-sockets.c (main): Likewise.
34278         * tests/test-strsignal.c (main): Likewise.
34279         * tests/test-sys_select.c (main): Likewise.
34280         * tests/test-sys_socket.c (main): Likewise.
34281         * tests/test-u64.c (main): Likewise.
34282         * tests/test-xfprintf-posix.c (main): Likewise.
34283         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
34284
34285         sockets: avoid compiler warning
34286         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
34287
34288         maint: detect usage(1) and other suspicious exits
34289         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
34290
34291 2009-10-29  Jim Meyering  <meyering@redhat.com>
34292
34293         timespec: long-to-int truncation could make timespec_cmp malfunction
34294         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
34295         a multiple of 2^32 nanoseconds as no difference.
34296
34297 2009-10-28  Jim Meyering  <meyering@redhat.com>
34298
34299         fprintftime: wrap macro code argument in "do {...} while(0)"
34300         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
34301         cpy macro must be a statement that can be followed by a semicolon.
34302         Now that the else clause contains a comment and is hence longer
34303         than one line, I require curly braces.  That in turn requires
34304         that we wrap this code block in the standard do...while(0).
34305
34306         fprintftime: remove stray semicolon from previous change
34307         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
34308
34309         fprintftime: avoid a warning about ignored fwrite return value
34310         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
34311         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
34312         that is unsafe.
34313         * modules/fprintftime (Depends-on): Add ignore-value.
34314
34315         exclude: avoid an unwarranted warning
34316         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
34317
34318 2009-10-27  Eric Blake  <ebb9@byu.net>
34319
34320         fseek: avoid compilation failure when fflush is replaced
34321         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
34322         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
34323         module is in use.
34324         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
34325         module is not in use; since REPLACE_FSEEK worked otherwise.
34326         (GNULIB_FTELLO): Likewise for ftell.
34327         Reported by Ian Beckwith and others.
34328
34329 2009-10-27  Bruno Haible  <bruno@clisp.org>
34330
34331         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
34332         Reported by Jim Meyering.
34333
34334 2009-10-27  Jim Meyering  <jim@meyering.net>
34335             Bruno Haible  <bruno@clisp.org>
34336
34337         Avoid warning despite dropping the return value of fwrite.
34338         * lib/unicodeio.c: Include ignore-value.h.
34339         (fwrite_success_callback): Explicitly ignore fwrite's return value.
34340         * modules/unicodeio (Depends-on): Add ignore-value.
34341
34342 2009-10-26  Eric Blake  <ebb9@byu.net>
34343
34344         areadlinkat: fix fallback path
34345         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
34346         pointer and zero.
34347
34348 2009-10-22  Pádraig Brady  <P@draigBrady.com>
34349
34350         Use a better IO block size for modern systems
34351         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
34352         * lib/md2.c: Likewise.
34353         * lib/md4.c: Likewise.
34354         * lib/md5.c: Likewise.
34355         * lib/sha1.c: Likewise.
34356         * lib/sha256.c: Likewise.
34357         * lib/sha512.c: Likewise.
34358
34359 2009-10-22  Eric Blake  <ebb9@byu.net>
34360
34361         tests: avoid several compiler warnings
34362         * tests/test-getcwd.c (main): Avoid buffer underflow.
34363         * tests/test-getdate.c (main): String literals are not safe with
34364         putenv, so use setenv.  Declare unused argument.
34365         * modules/getdate-tests (Depends-on): Add setenv.
34366         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
34367         problems with string literals in char *.
34368         * tests/test-hash.c (main): Avoid shadowing declaration.
34369         (insert_new): Treat string literals as char const *.
34370         * tests/test-getopt.h (test_getopt): Likewise.
34371         (getopt_loop): Alter types to minimize casting elsewhere.
34372         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
34373         (test_getopt_long_posix): Likewise.
34374         (do_getopt_long): Add wrapper to minimize casting.
34375         * tests/test-atexit.c (clear_temp_file): Use void.
34376         * tests/test-areadlink-with-size.c (main): Declare unused
34377         arguments.
34378         * tests/test-areadlink.c (main): Likewise.
34379         * tests/test-areadlinkat-with-size.c (main): Likewise.
34380         * tests/test-areadlinkat.c (main): Likewise.
34381         * tests/test-canonicalize-lgpl.c (main): Likewise.
34382         * tests/test-canonicalize.c (main): Likewise.
34383         * tests/test-dirent-safer.c (main): Likewise.
34384         * tests/test-dirname.c (main): Likewise.
34385         * tests/test-dup2.c (main): Likewise.
34386         * tests/test-fchdir.c (main): Likewise.
34387         * tests/test-fcntl-h.c (main): Likewise.
34388         * tests/test-fcntl-safer.c (main): Likewise.
34389         * tests/test-fdopendir.c (main): Likewise.
34390         * tests/test-fdutimensat.c (main): Likewise.
34391         * tests/test-fflush.c (main): Likewise.
34392         * tests/test-filenamecat.c (main): Likewise.
34393         * tests/test-filevercmp.c (main): Likewise.
34394         * tests/test-fopen-safer.c (main): Likewise.
34395         * tests/test-fopen.c (main): Likewise.
34396         * tests/test-fpending.c (main): Likewise.
34397         * tests/test-fpurge.c (main): Likewise.
34398         * tests/test-freading.c (main): Likewise.
34399         * tests/test-fstatat.c (main): Likewise.
34400         * tests/test-fsync.c (main): Likewise.
34401         * tests/test-futimens.c (main): Likewise.
34402         * tests/test-getndelim2.c (main): Likewise.
34403         * tests/test-gettimeofday.c (main): Likewise.
34404         * tests/test-getopt.c (main): Likewise.
34405         * tests/test-i-ring.c (main): Likewise.
34406         * tests/test-inttypes.c (main): Likewise.
34407         * tests/test-link.c (main): Likewise.
34408         * tests/test-lstat.c (main): Likewise.
34409         * tests/test-math.c (main): Likewise.
34410         * tests/test-md5.c (main): Likewise.
34411         * tests/test-memchr2.c (main): Likewise.
34412         * tests/test-memrchr.c (main): Likewise.
34413         * tests/test-mkdir.c (main): Likewise.
34414         * tests/test-mkdirat.c (main): Likewise.
34415         * tests/test-mkfifoat.c (main): Likewise.
34416         * tests/test-open.c (main): Likewise.
34417         * tests/test-openat-safer.c (main): Likewise.
34418         * tests/test-openat.c (main): Likewise.
34419         * tests/test-quotearg.c (main): Likewise.
34420         * tests/test-rawmemchr.c (main): Likewise.
34421         * tests/test-readlink.c (main): Likewise.
34422         * tests/test-remove.c (main): Likewise.
34423         * tests/test-rename.c (main): Likewise.
34424         * tests/test-renameat.c (main): Likewise.
34425         * tests/test-rmdir.c (main): Likewise.
34426         * tests/test-sha1.c (main): Likewise.
34427         * tests/test-signal.c (main): Likewise.
34428         * tests/test-sigaction.c (main): Likewise.
34429         * tests/test-stat.c (main): Likewise.
34430         * tests/test-stat-time.c (main): Likewise.
34431         * tests/test-stddef.c (main): Likewise.
34432         * tests/test-stdint.c (main): Likewise.
34433         * tests/test-stdio.c (main): Likewise.
34434         * tests/test-stdlib.c (main): Likewise.
34435         * tests/test-strchrnul.c (main): Likewise.
34436         * tests/test-strerror.c (main): Likewise.
34437         * tests/test-string.c (main): Likewise.
34438         * tests/test-strtod.c (main): Likewise.
34439         * tests/test-strverscmp.c (main): Likewise.
34440         * tests/test-symlink.c (main): Likewise.
34441         * tests/test-symlinkat.c (main): Likewise.
34442         * tests/test-sys_stat.c (main): Likewise.
34443         * tests/test-sys_time.c (main): Likewise.
34444         * tests/test-time.c (main): Likewise.
34445         * tests/test-unistd.c (main): Likewise.
34446         * tests/test-unlink.c (main): Likewise.
34447         * tests/test-unlinkat.c (main): Likewise.
34448         * tests/test-utimens.c (main): Likewise.
34449         * tests/test-utimensat.c (main): Likewise.
34450         * tests/test-version-etc.c (main): Likewise.
34451         * tests/test-wchar.c (main): Likewise.
34452         * tests/test-wctype.c (main): Likewise.
34453         * tests/test-xprintf-posix.c (main): Likewise.
34454         * tests/test-posixtm.c (main): Likewise.
34455         (STREQ): Delete unused macro.
34456         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
34457         shadowed variables.
34458         * tests/test-memchr.c (main): Likewise.
34459
34460 2009-10-21  Eric Blake  <ebb9@byu.net>
34461
34462         areadlinkat: avoid failure on older glibc
34463         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
34464         rather than mis-comparing 0 against FUNC_RESULT of char*.
34465
34466 2009-10-21  Bruno Haible  <bruno@clisp.org>
34467
34468         * modules/stpncpy (License): Relicense under LGPLv2+.
34469         Reported by David Lutterkort <lutter@redhat.com>.
34470
34471 2009-10-20  Eric Blake  <ebb9@byu.net>
34472
34473         utimensat: work around Solaris 9 bug
34474         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
34475         has trailing slash bugs.
34476         * tests/test-lutimens.h (test_lutimens): Enhance test.
34477         * tests/test-utimens.h (test_utimens): Likewise.
34478         * doc/posix-functions/utime.texi (utime): Enhance documentation.
34479         * doc/posix-functions/utimes.texi (utimes): Likewise.
34480         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34481         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
34482         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
34483         * doc/posix-functions/futimens.texi (futimens): Likewise.
34484
34485         fdutimensat: new module
34486         * modules/fdutimensat: New file.
34487         * lib/fdutimensat.c (fdutimensat): Likewise.
34488         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
34489         * MODULES.html.sh (File system functions): Mention module.
34490         * modules/fdutimensat-tests: New test.
34491         * tests/test-fdutimensat.c: Likewise.
34492
34493         doc: regenerate INSTALL
34494         * doc/INSTALL: Reflect recent autoconf update.
34495         * doc/INSTALL.ISO: Likewise.
34496         * doc/INSTALL.UTF-8: Likewise.
34497
34498 2009-10-20  Pádraig Brady  <P@draigBrady.com>
34499
34500         acl: warn if ACL support is not detected
34501         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
34502
34503 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
34504
34505         * lib/nproc.h: Add extern "C" block for C++.
34506
34507 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
34508             Bruno Haible  <bruno@clisp.org>
34509
34510         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
34511         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
34512         * doc/posix-functions/isalpha.texi: Likewise.
34513         * doc/posix-functions/isblank.texi: Likewise.
34514         * doc/posix-functions/iscntrl.texi: Likewise.
34515         * doc/posix-functions/isdigit.texi: Likewise.
34516         * doc/posix-functions/isgraph.texi: Likewise.
34517         * doc/posix-functions/islower.texi: Likewise.
34518         * doc/posix-functions/isprint.texi: Likewise.
34519         * doc/posix-functions/ispunct.texi: Likewise.
34520         * doc/posix-functions/isspace.texi: Likewise.
34521         * doc/posix-functions/isupper.texi: Likewise.
34522         * doc/posix-functions/isxdigit.texi: Likewise.
34523
34524 2009-10-18  Bruno Haible  <bruno@clisp.org>
34525
34526         Tests for module 'isblank'.
34527         * modules/isblank-tests: New file.
34528         * tests/test-isblank.c: New file.
34529
34530         New module 'isblank'.
34531         * lib/isblank.c: New file.
34532         * m4/isblank.m4: New file.
34533         * modules/isblank: New file.
34534         * doc/posix-functions/isblank.texi: Mention the new module.
34535
34536 2009-10-18  Bruno Haible  <bruno@clisp.org>
34537
34538         New module 'ctype'.
34539         * lib/ctype.in.h: New file.
34540         * m4/ctype.m4: New file.
34541         * modules/ctype: New file.
34542         * doc/posix-headers/ctype.texi: Mention the new module.
34543
34544 2009-10-18  Jim Meyering  <meyering@redhat.com>
34545
34546         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
34547         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
34548         right after its initialization, rather than farther down.
34549         Keeping these in close proximity makes it easier to ensure
34550         that each such variable is initialized.  E.g.,
34551
34552             LIB_CLOCK_GETTIME=
34553             AC_SUBST([LIB_CLOCK_GETTIME])
34554
34555         This change also increments these serial numbers.
34556         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
34557         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
34558         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
34559
34560 2009-10-18  Bruno Haible  <bruno@clisp.org>
34561
34562         Don't let environment variables perturb build.
34563         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
34564         (gl_PREREQ_GETHRXTIME): ... not here.
34565
34566 2009-10-18  Bruno Haible  <bruno@clisp.org>
34567
34568         Avoid symlink attack in localcharset module.
34569         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
34570         (O_NOFOLLOW): Define fallback.
34571         (get_charset_aliases): Don't open the file if it is a symbolic link.
34572         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
34573         gl_FCNTL_H.
34574         (gl_FCNTL_H): Require it.
34575         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
34576         * modules/localcharset (Files): Add m4/fcntl_h.m4.
34577         Reported by Fergal Glynn <fglynn@veracode.com>.
34578
34579 2009-10-18  Bruno Haible  <bruno@clisp.org>
34580
34581         Implement nproc for mingw.
34582         * lib/nproc.c: Include <windows.h>
34583         (num_processors): On native Windows platforms, try GetSystemInfo.
34584
34585 2009-10-18  Bruno Haible  <bruno@clisp.org>
34586
34587         Implement nproc for IRIX.
34588         * lib/nproc.c: Include <sys/sysmp.h>.
34589         (num_processors): On IRIX systems, try sysmp.
34590         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
34591
34592 2009-10-18  Bruno Haible  <bruno@clisp.org>
34593
34594         Implement nproc for HP-UX.
34595         * lib/nproc.c: Include <sys/pstat.h>
34596         (num_processors): On HP-UX systems, try pstat_getdynamic.
34597         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
34598         pstat_getdynamic.
34599
34600 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
34601             Bruno Haible  <bruno@clisp.org>
34602
34603         Implement nproc for NetBSD, OpenBSD.
34604         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
34605         (ARRAY_SIZE): New macro.
34606         (num_processors): On BSD systems, try sysctl of HW_NCPU.
34607         * m4/nproc.m4: New file.
34608         * modules/nproc (Files): Add m4/nproc.m4.
34609         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
34610         (Makefile.am): Instead, augment lib_SOURCES.
34611
34612 2009-10-18  Bruno Haible  <bruno@clisp.org>
34613
34614         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
34615         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
34616         sys/param.h.
34617
34618 2009-10-16  Eric Blake  <ebb9@byu.net>
34619
34620         utimensat: new module
34621         * modules/utimensat: New file.
34622         * lib/utimensat.c (utimensat): Likewise.
34623         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34624         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
34625         so we can work around Linux bugs.
34626         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34627         * modules/sys_stat (Makefile.am): Substitute them.
34628         * lib/sys_stat.in.h (utimensat): Declare it.
34629         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34630         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34631         * modules/utimensat-tests: New test.
34632         * tests/test-utimensat.c: Likewise.
34633
34634         utimens: let lutimens work on non-symlinks
34635         * lib/utimens.c (lutimens): Fall back to utimens rather than
34636         failing with ENOSYS, when file is not a symlink.
34637         (utimens): Reduce redirection.
34638         * tests/test-lutimens.h (test_lutimens): Update test to cover
34639         non-symlinks.
34640         * tests/test-utimens.h (test_utimens): Update test to cover
34641         symlinks.
34642         * tests/test-utimens.c (main): Update caller.
34643
34644         utimens: cache whether utimensat syscall works
34645         * lib/utimens.c (utimensat_works_really): New cache variable.
34646         (fdutimens, lutimens): Use it to avoid failing syscall.
34647
34648         test-stat-time, test-utimens: improve portability
34649         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
34650         ext4 on alpha, and for cygwin.
34651         * tests/test-utimens-common.h: New file.
34652         (nap): Factor delays into single function.
34653         * tests/test-lutimens.h (test_lutimens): Use new header.
34654         * tests/test-futimens.h (test_futimens): Likewise.
34655         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
34656         timestamps to occur from same machine, as was done previously for
34657         test_utimens.
34658         * modules/utimens-tests (Files): Ship new file.
34659         * modules/futimens-tests (Files): Likewise.
34660         Reported in part by Jim Meyering.
34661
34662         sys_stat: sort replacement declarations
34663         * lib/sys_stat.in.h: Sort declarations.
34664         * lib/futimens.c (futimens): Fix typo.
34665
34666 2009-10-15  Jim Meyering  <meyering@redhat.com>
34667
34668         don't let environment settings perturb build
34669         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
34670         could cause a configure-time and/or build-time malfunction.
34671         Typically, a configure-time function-in-library test is performed
34672         via code like this:
34673
34674           LIB_VAR=
34675           AC_SUBST([LIB_VAR])
34676           prefix_saved_LIBS=$LIBS
34677             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
34678                        [test "$ac_cv_search_FUNC" = "none required" ||
34679                         LIB_VAR=$ac_cv_search_FUNC])
34680           LIBS=$prefix_saved_LIBS
34681
34682         However, in each of the files affected by this change, the LIB_VAR=
34683         initialization was omitted.  Thus, when set in the environment, its
34684         value would propagate into generated Makefiles when FUNC is not found
34685         in LIB_NAME.
34686         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
34687         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
34688         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
34689
34690 2009-10-14  Eric Blake  <ebb9@byu.net>
34691
34692         fchdir: avoid infinite recursion in mingw
34693         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
34694         recursing.
34695
34696         test-stat-time: port to mingw
34697         * tests/test-stat-time.c (force_unlink): Return a value.
34698         (test_ctime) [W32]: Fix compilation error.
34699         (nap): Don't call usleep with too large an argument.  Use
34700         force_unlink.
34701         * doc/pastposix-functions/usleep.texi (usleep): Document the
34702         portability issue.
34703
34704 2009-10-13  Jim Meyering  <meyering@redhat.com>
34705
34706         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
34707         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
34708         * modules/pipe-filter-ii: Likewise.
34709         * modules/sys_socket-tests: Likewise.
34710         * modules/tsearch-tests: Likewise.
34711         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
34712         (check): Depend on it.
34713
34714 2009-10-12  Eric Blake  <ebb9@byu.net>
34715
34716         utimens-tests: port to NFS file systems
34717         * tests/test-utimens.h (test_utimens): Refactor utimecmp
34718         comparisons to avoid spurious failures from timestamp drift
34719         between NFS machines.
34720
34721 2009-10-12  Eric Blake  <ebb9@byu.net>
34722
34723         stat-time-tests: minor cleanups
34724         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
34725         * tests/test-stat-time.c (nap): Separate assignment from call.
34726         Suggested by Paolo Bonzini and Bruno Haible.
34727
34728         sys_stat: guarantee struct timespec
34729         * lib/sys_stat.in.h (includes): Always include <time.h>
34730         * modules/sys_stat (Depends-on): Add time.
34731         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
34732         mode_t permission values.
34733         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
34734         get at subsecond timestamps.
34735
34736 2009-10-10  Eric Blake  <ebb9@byu.net>
34737
34738         futimens: new module
34739         * modules/futimens: New file.
34740         * lib/futimens.c (futimens): Likewise.
34741         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
34742         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
34743         we can work around Linux bugs.
34744         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34745         * modules/sys_stat (Makefile.am): Substitute them.
34746         * lib/sys_stat.in.h (futimens): Declare it.
34747         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34748         * doc/posix-functions/futimens.texi (futimens): Likewise.
34749         * modules/futimens-tests: New test.
34750         * tests/test-futimens.c: Likewise.
34751
34752         utimens: introduce fdutimens
34753         * lib/utimens.h (fdutimens): New prototype.
34754         * lib/utimens.c (gl_futimens): Move guts...
34755         (fdutimens): ...to new interface.
34756         * tests/test-utimens.c (do_fdutimens): Use it.
34757
34758         utimens: add UTIME_NOW and UTIME_OMIT support
34759         * lib/utimens.c (validate_timespec, update_timespec): New helper
34760         functions.
34761         (gl_futimens, lutimens): Use them.
34762         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
34763         stdbool, sys_stat.
34764         (Link): Mention resulting library dependency.
34765         * modules/utimecmp (Link): Likewise.
34766         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
34767         (Makefile.am): Pick up library dependency.
34768         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
34769         definition.
34770         * tests/test-sys_stat.c: Test the definitions.
34771         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
34772         * NEWS: Document library dependency.
34773
34774         utimecmp: support symlink timestamps
34775         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
34776         hashing when possible.  Use pathconf when available.
34777         (SYSCALL_RESOLUTION): Recognize tighter resolution.
34778         * modules/utimecmp (Depends-on): Add lstat.
34779
34780         utimens: add lutimens interface
34781         * lib/utimens.c (lutimens): New function.
34782         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
34783         * lib/utimens.h (lutimens): Declare new interface.
34784         * tests/test-utimens.c (main): Enhance test.
34785         * tests/test-lutimens.h (test_lutimens): New file.
34786         * modules/utimens-tests (Files): Distribute it.
34787         (Depends-on): Add symlink.
34788         (configure.ac): Check for usleep.
34789
34790         utimens: validate futimens usage
34791         * lib/utimens.c (gl_futimens): Require valid fd up front, using
34792         fewer syscalls on failure later on.  Avoid compiler warning on
34793         mingw.
34794         * modules/utimens (Depends-on): Add dup2.
34795
34796         utimens: add test
34797         * modules/utimens-tests: New test.
34798         * tests/test-utimens.h: New file.
34799         * tests/test-futimens.h: Likewise.
34800         * tests/test-utimens.c: Likewise.
34801
34802         doc: mention timestamp portability issues
34803         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
34804         instead.
34805         * doc/posix-functions/utime.texi (utime): Likewise.
34806         * doc/posix-functions/utimes.texi (utimes): Likewise.
34807         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
34808         instead.
34809         * doc/posix-functions/futimens.texi (futimens): Mention utimens
34810         module.
34811         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34812         Mention weakness with symlink timestamps.
34813         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
34814         to utimensat/futimens instead.
34815         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
34816
34817         test-dup2: enhance test
34818         * tests/test-dup2.c (main): Also check AT_FDCWD.
34819
34820         test-stat-time: avoid more spurious failures
34821         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
34822         xfs; and avoid race if the two timestamps cross quantization edge.
34823
34824         relocatable: prefer 'file system' over 'filesystem'
34825         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
34826         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
34827         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
34828         * doc/relocatable.texi (Enabling Relocatability): Likewise.
34829         * lib/relocatable.c (compute_curr_prefix): Likewise.
34830
34831 2009-10-10  Jim Meyering  <meyering@redhat.com>
34832
34833         stat-time-tests: check for the usleep function
34834         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
34835
34836 2009-10-10  Bruno Haible  <bruno@clisp.org>
34837
34838         * modules/xnanosleep: Put the Link section after the Include section.
34839
34840 2009-10-09  Eric Blake  <ebb9@byu.net>
34841
34842         dup2: work around FreeBSD 6.1 bug
34843         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
34844         * doc/posix-functions/dup2.texi (dup2): Document it.
34845         Reported by Nelson H. F. Beebe and Jim Meyering.
34846
34847         test-stat-time: port to buggy NFS clients
34848         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
34849         (test_ctime): Also skip test if mtime and ctime are skewed.
34850
34851         maint: prefer 'file system' over 'filesystem'
34852         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
34853         * doc/posix-functions/lstat.texi (lstat): Likewise.
34854         * lib/file-has-acl.c (file_has_acl): Likewise.
34855         * lib/fwriteerror.c [TEST]: Likewise.
34856         * tests/test-areadlink.h (test_areadlink): Likewise.
34857         * tests/test-areadlinkat-with-size.c (main): Likewise.
34858         * tests/test-areadlinkat.c (main): Likewise.
34859         * tests/test-canonicalize-lgpl.c (main): Likewise.
34860         * tests/test-canonicalize.c (main): Likewise.
34861         * tests/test-fstatat.c (main): Likewise.
34862         * tests/test-linkat.c (main): Likewise.
34863         * tests/test-lstat.h (test_lstat_func): Likewise.
34864         * tests/test-mkdir.h (test_mkdir): Likewise.
34865         * tests/test-readlink.h (test_readlink): Likewise.
34866         * tests/test-remove.c (main): Likewise.
34867         * tests/test-rename.h (test_rename): Likewise.
34868         * tests/test-renameat.c (main): Likewise.
34869         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34870         * tests/test-symlink.h (test_symlink): Likewise.
34871         * tests/test-symlinkat.c (main): Likewise.
34872         * tests/test-unlink.h (test_unlink_func): Likewise.
34873         * tests/test-unlinkat.c (main): Likewise.
34874
34875         maint: make realtime library usage explicit
34876         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
34877         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
34878         * modules/settime (Link): Likewise.
34879         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
34880
34881         test-stat-time: speed up execution
34882         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
34883         warning on mingw.
34884         (nap): New helper function.
34885         (prepare_test): Use it to reduce sleep time.
34886         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
34887         execution.
34888         * modules/stat-time-tests (configure.ac): Check for usleep.
34889
34890 2009-10-09  Jim Meyering  <meyering@redhat.com>
34891
34892         selinux-h: always use getfilecon wrappers
34893         * lib/getfilecon.c: New file.
34894         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
34895         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
34896         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
34897         (fgetfilecon): Provide a stub.
34898         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
34899         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
34900         file unconditionally.
34901         When <selinux/selinux.h> is found, arrange to use wrappers.
34902         * modules/selinux-h (Files): Add getfilecon.c.
34903         (Makefile.am): Substitute include-next-related bits
34904         into the now-always-generated selinux/selinux.h file.
34905         * doc/glibc-functions/lgetfilecon.texi: New file.
34906         * doc/glibc-functions/fgetfilecon.texi: New file.
34907         * doc/glibc-functions/getfilecon.texi: New file.
34908         * doc/glibc-functions/getfilecon-desc.texi: New file.
34909         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
34910         which to pull in the new files.
34911         * MODULES.html.sh (Misc): Add selinux-h.
34912
34913 2009-10-08  Jim Meyering  <meyering@redhat.com>
34914
34915         unistd: fix comment typo
34916         * lib/unistd.in.h (euidaccess): Fix a comment typo.
34917
34918 2009-10-08  Eric Blake  <ebb9@byu.net>
34919
34920         areadlink: use SIZE_MAX consistently
34921         * modules/areadlink (Depends-on): Add stdint.
34922         * modules/areadlink-with-size (Depends-on): Likewise.
34923         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
34924         gives NULL; drop sys/types, since unistd gives size_t; and add
34925         stdint for SIZE_MAX.
34926         (SIZE_MAX): Rely on headers.
34927         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
34928         and add stdint.
34929         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
34930         (SIZE_MAX): Likewise.
34931         (INITIAL_BUF_SIZE): Turn into enum.
34932         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
34933
34934 2009-10-08  Jim Meyering  <meyering@redhat.com>
34935
34936         areadlinkat: avoid compilation failure
34937         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
34938         Fix typo in comment.
34939
34940 2009-10-07  Eric Blake  <ebb9@byu.net>
34941
34942         areadlinkat-with-size: new module
34943         * modules/areadlinkat-with-size: New module.
34944         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
34945         * lib/areadlink.h (areadlinkat): Declare it.
34946         * MODULES.html.sh (File system functions): Mention it.
34947         * modules/areadlinkat-with-size-tests: New test.
34948         * tests/test-areadlinkat-with-size.c: New file.
34949
34950         xreadlinkat: new module
34951         * modules/xreadlinkat: New module.
34952         * lib/xreadlinkat.c (xreadlinkat): New file.
34953         * lib/xreadlink.h (xreadlinkat): Declare it.
34954         * MODULES.html.sh (File system functions): Mention it.
34955
34956         areadlinkat: new module
34957         * lib/at-func.c (FUNC_FAIL): New define.
34958         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
34959         * modules/areadlinkat: New module.
34960         * lib/linkat.c (areadlinkat): Move...
34961         * lib/areadlinkat.c (areadlinkat): ...to new file.
34962         * lib/areadlink.h (areadlinkat): Declare it.
34963         * modules/linkat (Depends-on): Add areadlinkat.
34964         * MODULES.html.sh (File system functions): Mention it.
34965         * modules/areadlinkat-tests: New test.
34966         * tests/test-areadlinkat.c: New file.
34967
34968         areadlink, areadlink-with-size: add tests
34969         * modules/areadlink-tests: New test.
34970         * modules/areadlink-with-size-tests: Likewise.
34971         * tests/test-areadlink.h: New file.
34972         * tests/test-areadlink.c: Likewise.
34973         * tests/test-areadlink-with-size.c: Likewise.
34974
34975         maint: minor cleanups
34976         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
34977         _UNUSED_PARAMETER_ instead.
34978         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
34979         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
34980         * modules/linkat-tests (Files): Distribute test-link.h.
34981
34982         openat, utimens: whitespace cleanup
34983         * lib/openat.c: Prefer space throughout, rather than mix of 8
34984         spaces vs. tabs.
34985         * lib/at-func.c: Likewise.
34986         * lib/utimens.c: Likewise.
34987
34988         openat: avoid using wrong fd
34989         * lib/openat.c (openat_permissive): Reject user's fd if saving the
34990         working directory chooses same fd.
34991         * lib/at-func.c (AT_FUNC_NAME): Likewise.
34992
34993         mkdir, mkdirat: fix cygwin 1.5.x bug
34994         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
34995         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
34996         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
34997         bug.
34998         (gl_PREREQ_MKDIR): Delete unused macro.
34999         * modules/mkdir (Files): Track file rename.
35000         (configure.ac): Update macro name.
35001         * modules/openat (Depends-on): Add mkdir.
35002         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
35003
35004         mkdir, mkdirat: add tests
35005         * modules/mkdir-tests: New test.
35006         * tests/test-mkdir.h: New file.
35007         * tests/test-mkdir.c: Likewise.
35008         * tests/test-mkdirat.c: Likewise.
35009         * modules/openat-tests (Files): Add new files.
35010         (Makefile.am): Run new test.
35011
35012 2009-10-06  Eric Blake  <ebb9@byu.net>
35013
35014         doc: tweak *at function documentation
35015         * doc/posix-functions/faccessat.texi (faccessat): Mention
35016         known issue with replacement.
35017         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
35018         * doc/posix-functions/linkat.texi (linkat): Likewise.
35019         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
35020         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
35021         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35022         * doc/posix-functions/renameat.texi (renameat): Likewise.
35023         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35024
35025         openat: fix GNU/Hurd bug in unlinkat
35026         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
35027         broken.
35028         * doc/posix-functions/unlink.texi (unlink): Document this.
35029         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
35030
35031         fdopendir: fix GNU/Hurd bug
35032         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
35033         allowing non-directory fds.
35034         * lib/fdopendir.c (rpl_fdopendir): Work around it.
35035         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
35036         * modules/dirent (Makefile.am): Substitute it.
35037         * lib/dirent.in.h (fdopendir): Declare replacement.
35038         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
35039         * tests/test-fdopendir.c (main): Test something other than
35040         /dev/null, since on Hurd that behaves like a directory.
35041
35042         test-symlink: port to GNU/Hurd
35043         * tests/test-symlink.h (test_symlink): Relax expected errno.
35044
35045         doc: tweak more cygwin information
35046         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
35047         now compatible with glibc.
35048         * doc/posix-functions/getopt.texi (getopt): Likewise.
35049
35050         getopt-gnu: add another test
35051         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
35052         guarantee behavior relied on by m4.
35053         * tests/test-getopt.c (main): Use it.
35054         * modules/getopt-posix-tests (Depends-on): Add setenv.
35055         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
35056
35057         getopt: fix compilation on darwin
35058         * lib/getopt.in.h (includes): Leave breadcrumbs during system
35059         include.
35060         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
35061         Reported by Ludovic Courtès.
35062
35063 2009-10-06  Bruno Haible  <bruno@clisp.org>
35064
35065         * modules/size_max (Description): Discourage its use.
35066         Reported by Simon Josefsson.
35067
35068 2009-10-06  Jim Meyering  <meyering@redhat.com>
35069
35070         linkat: avoid compilation failure
35071         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
35072
35073 2009-10-05  Eric Blake  <ebb9@byu.net>
35074
35075         linkat: support Linux 2.6.17
35076         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
35077         linkat on Linux, but allow cache variable override.
35078         * lib/linkat.c (rpl_linkat): Define override.
35079         * modules/linkat (Depends-on): Add symlinkat.
35080         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
35081         * modules/unistd (Makefile.am): Substitute it.
35082         * lib/unistd.in.h (linkat): Declare replacement.
35083         Reported by Pádraig Brady.
35084
35085         quotearg: port test to systems with C.UTF-8 locale
35086         * tests/test-quotearg.c (struct result_strings): Add another
35087         member, differentiating between C.ASCII and C.UTF-8 handling.
35088         (compare_strings): Add parameter.
35089         (main): Adjust all callers.
35090
35091         getopt: avoid clash with FreeBSD _getopt_internal
35092         * lib/getopt.in.h (_getopt_internal): Override the name.
35093         * lib/getopt_int.h (includes): Pick up any overrides.
35094         Reported by Reuben Thomas.
35095
35096         hash: allow C89 compilation
35097         * lib/hash.c (check_tuning): Move declaration before statement.
35098         Reported by Reuben Thomas.
35099
35100 2009-10-05  Karl Berry  <karl@gnu.org>
35101
35102         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
35103
35104 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
35105             Bruno Haible  <bruno@clisp.org>
35106
35107         * lib/uname.c (uname): Use a table-driven algorithm to compute
35108         Windows NT versions.
35109
35110 2009-10-04  Bruno Haible  <bruno@clisp.org>
35111
35112         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
35113         program_invocation_short_name.
35114         * modules/progname (configure.ac): Test for presence of
35115         program_invocation_short_name.
35116         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
35117
35118 2009-10-04  Bruno Haible  <bruno@clisp.org>
35119
35120         * lib/progname.c (set_program_name): Fix comment.
35121         Reported by Jim Meyering.
35122
35123 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
35124             Bruno Haible  <bruno@clisp.org>
35125
35126         * lib/uname.c: Include <string.h>.
35127         (uname): Do only one call to GetVersionEx in the common case.
35128
35129 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
35130             Bruno Haible  <bruno@clisp.org>
35131
35132         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
35133         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
35134         (uname): Add support for Windows CE and various non-x86 CPU types.
35135
35136 2009-10-03  Bruno Haible  <bruno@clisp.org>
35137
35138         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
35139         invocation to tests/configure.ac.
35140         Reported by Ian Beckwith <ianb@erislabs.net>.
35141
35142 2009-10-02  Eric Blake  <ebb9@byu.net>
35143
35144         fchdir: avoid compiler warning
35145         * lib/fchdir.c (canonicalize_file_name)
35146         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
35147
35148         test-open: support mingw errno values
35149         * tests/test-open.h (test_open): Relax test.
35150         * tests/test-fopen.h (test_fopen): Likewise.
35151         * tests/test-openat-safer.c (main): Likewise.
35152
35153         open: fix opening directory on mingw
35154         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
35155
35156         test-open: on GNU/Hurd, /dev/null is a directory
35157         * tests/test-fopen.h (main): Rename...
35158         (test_fopen): ...to this.  Use a guaranteed non-directory when
35159         confirming open behavior on trailing slash.
35160         * tests/test-openat-safer.c (main): Likewise.
35161         * tests/test-open.h (main): Likewise....
35162         (test_open): ...to this.
35163         * tests/test-fopen.c (main): Adjust caller.
35164         * tests/test-fopen-safer.c (main): Likewise.
35165         * tests/test-open.c (main): Likewise.
35166         * tests/test-fcntl-safer.c (main): Likewise.
35167         Reported by Samuel Thibault.
35168
35169         rename, fchdir: don't ignore chdir failure
35170         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
35171         * lib/rename.c (rpl_rename) [W32]: Likewise.
35172         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
35173         an empty destination directory if source cannot be renamed,
35174         although there is still possibility for failure.
35175         * doc/posix-functions/rename.texi (rename): Document the race.
35176         Reported by Jim Meyering.
35177
35178         maint: cleanup whitespace in recent commits
35179         * lib/rename.c (rpl_rename): Remove tabs.
35180         * tests/test-link.h (test_link): Likewise.
35181         * lib/fchdir.c (get_name): Likewise.
35182         Reported by Jim Meyering.
35183
35184 2009-10-02  Ben Pfaff  <blp@gnu.org>
35185
35186         relocatable-prog-wrapper: Add missing dependency on
35187         double-slash-root.
35188         * modules/relocatable-prog-wrapper: Add dependency.
35189         Reported by Ian Beckwith <ianb@erislabs.net>.
35190
35191 2009-10-02  Eric Blake  <ebb9@byu.net>
35192
35193         renameat: fix Solaris bugs
35194         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
35195         needed fixing.
35196         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
35197         * modules/stdio (Makefile.am): Substitute it.
35198         * lib/stdio.in.h (renameat): Declare replacement.
35199         * lib/renameat.c (rpl_renameat): Implement fix.
35200
35201         renameat: new module
35202         * modules/renameat: New file.
35203         * lib/renameat.c (renameat): Likewise.
35204         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
35205         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
35206         * modules/stdio (Makefile.am): Substitute them.
35207         * lib/stdio.in.h (renameat): Declare it.
35208         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35209         * doc/posix-functions/renameat.texi (renameat): Likewise.
35210         * modules/renameat-tests: New test.
35211         * tests/test-renameat.c: Likewise.
35212
35213         rename: fix mingw bugs
35214         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
35215         directory overwrite bugs.
35216
35217         rename: fix another cygwin 1.5 bug
35218         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
35219         checks.
35220         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
35221         unnecessary cygwin workarounds.  Also work around bug with moving
35222         full directory onto an empty one.
35223         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
35224
35225         rename-dest-slash: merge into rename module
35226         * modules/rename-dest-slash (Status): Mark obsolete.
35227         (Depends-on): Add rename.
35228         (Files): Let rename do it all.
35229         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
35230         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
35231         * m4/rename-dest-slash.m4: ...so this file can be deleted.
35232         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
35233         * lib/rename.c (rpl_rename): Update comments.
35234
35235         rename: fix cygwin 1.5.x bugs
35236         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
35237         * lib/rename.c (rpl_rename): Work around them.
35238         * modules/rename (Depends-on): Add same-inode.
35239
35240         rename: fix Solaris 10 bug
35241         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
35242         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
35243         was the only bug.
35244
35245         rename: fix Solaris 9 bug
35246         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
35247         on non-directory.  Avoid calling exit.
35248         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
35249         strdup.
35250         * modules/rename-tests (Depends-on): Drop lstat.
35251         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
35252         (gl_PREREQ_RENAME): Delete unused macro.
35253
35254         rename-dest-slash: fix NetBSD bug
35255         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
35256         links.
35257         * modules/rename-dest-slash (Depends-on): Add same-inode.
35258
35259         rename-tests: new test, exposes several platform bugs
35260         * modules/rename-tests: New file.
35261         * tests/test-rename.h: Likewise.
35262         * tests/test-rename.c: Likewise.
35263         * doc/posix-functions/rename.texi (rename): Improve documentation,
35264         including bugs that will eventually be fixed in gnulib.
35265
35266 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
35267
35268         * lib/uname.c: Include <stdlib.h>
35269         (uname): Assume version info is available.
35270
35271 2009-10-02  Jim Meyering  <meyering@redhat.com>
35272
35273         gnu-web-doc-update: correct --help output
35274         * build-aux/gnu-web-doc-update: Make --help output relevant.
35275
35276         gnu-web-doc-update: add standard options
35277         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
35278
35279         gnu-web-doc-update: New module.
35280         Use this script to automatically update the on-line web documentation
35281         for your GNU project at http://www.gnu.org/software/$pkg/manual/
35282         * modules/gnu-web-doc-update: New file, from coreutils.
35283         * build-aux/gnu-web-doc-update: New script.
35284
35285 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
35286
35287         link: LoadLibrary is not needed.
35288         * lib/link.c: Use GetModuleHandle.
35289
35290 2009-10-01  Eric Blake  <ebb9@byu.net>
35291
35292         getopt: bump serial number
35293         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
35294         change.
35295
35296         tests: tighten link, rmdir, and remove tests
35297         * tests/test-link.h (includes): No need to use <config.h> here.
35298         Clean up if directory hard link was created, otherwise test for
35299         trailing '.'.
35300         * tests/test-linkat.c (main): Simplify.
35301         * tests/test-remove.c (main): Enhance test for trailing '.'.
35302         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35303
35304 2009-10-01  Jim Meyering  <meyering@redhat.com>
35305
35306         maint.mk: requiring "make major" was annoying, for a "minor" release.
35307         What is intended is "stable", to contrast with alpha and beta,
35308         so require "make stable", not "make major".
35309         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
35310         (get_tool_versions): Likewise.
35311         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
35312
35313 2009-09-30  Ben Pfaff  <blp@gnu.org>
35314
35315         Fix broken build of replacement for Windows tmpfile().
35316         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
35317         flags argument added along with the 'mkostemp' module.
35318
35319 2009-09-28  Bruno Haible  <bruno@clisp.org>
35320
35321         Avoid identifier clash with POSIX function 'remove' defined as a macro.
35322         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
35323         to 'remove_elt'.
35324         (gl_list_remove): Update.
35325         * lib/gl_list.c (gl_list_remove): Update.
35326         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
35327         to 'remove_elt'.
35328         (gl_oset_remove): Update.
35329         * lib/gl_list.c (gl_oset_remove): Update.
35330         Reported by Eric Blake.
35331
35332 2009-09-28  Eric Blake  <ebb9@byu.net>
35333
35334         doc: mention yet more cygwin 1.7 status
35335         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
35336         cygwin.
35337         * doc/glibc-functions/execvpe.texi (execvpe): New file.
35338         * doc/gnulib.texi (Glibc unistd.h): Mention it.
35339
35340         argp: fix test failure
35341         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
35342         that are not upper-case.  Pass correct range to tolower.
35343
35344 2009-09-27  Jim Meyering  <meyering@redhat.com>
35345
35346         test-yesno: work around sparc-dash here-document infelicity
35347         Without this change, the literal \177 byte in a here document
35348         would make dash 0.5.5.1-3 access uninitialized memory.
35349         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
35350         Instead, use a marker, "@", and filter through tr to create the desired
35351         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
35352
35353 2009-09-27  Bruno Haible  <bruno@clisp.org>
35354
35355         Disable untested support for new flavours of ACLs on AIX.
35356         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
35357         progress.
35358         * lib/set-mode-acl.c (qset_acl): Likewise.
35359
35360 2008-12-07  Bruno Haible  <bruno@clisp.org>
35361
35362         Add support for new flavours of ACLs on AIX. (Untested.)
35363         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
35364         (file_has_acl): Add support for newer AIX.
35365         * lib/set-mode-acl.c (qset_acl): Likewise.
35366         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
35367         Rainer Tammer <tammer@tammer.net>.
35368
35369 2009-09-26  Eric Blake  <ebb9@byu.net>
35370
35371         argp: fix compilation of getopt
35372         * lib/getopt.in.h (includes): Use different guard than glibc.
35373         Reported by Sergey Poznyakoff.
35374
35375         doc: mention more cygwin 1.7 status
35376         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
35377         bug.
35378         * doc/posix-functions/execl.texi (execl): Likewise.
35379         * doc/posix-functions/execle.texi (execle): Likewise.
35380         * doc/posix-functions/execlp.texi (execlp): Likewise.
35381         * doc/posix-functions/execv.texi (execv): Likewise.
35382         * doc/posix-functions/execve.texi (execve): Likewise.
35383         * doc/posix-functions/execvp.texi (execvp): Likewise.
35384         * doc/glibc-functions/canonicalize_file_name.texi
35385         (canonicalize_file_name): Cygwin 1.7 now provides this.
35386         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
35387         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
35388         on AT_SYMLINK_NOFOLLOW.
35389
35390 2009-09-24  Eric Blake  <ebb9@byu.net>
35391
35392         test-linkat: make test more robust
35393         * tests/test-linkat.c (main): Avoid collision with EEXIST.
35394
35395         getopt: fix inclusion guards for cygwin
35396         * modules/getopt-posix (Depends-on): Add include-next.
35397         (Makefile.am): Substitute more items in replacement header.
35398         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
35399         <getopt.h>.
35400         * lib/getopt.in.h (includes): Use split inclusion guard, and
35401         prefer <getopt.h> over include <unistd.h> when one is present.
35402         (option): Also override name of 'struct option'.
35403
35404         same-inode: revert prior change; it is not yet ready
35405         * NEWS: Undo mention of this change.
35406         * lib/same-inode.h (same-inode.h): Undo tri-state change.
35407         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
35408         * lib/cycle-check.c (cycle_check): Likewise.
35409         * lib/same.c (same_name): Likewise.
35410         * lib/at-func2.c (at_func2): Likewise.
35411
35412 2009-09-23  Eric Blake  <ebb9@byu.net>
35413
35414         linkat: new module
35415         * modules/linkat: New file.
35416         * lib/at-func2.c (at_func2): Likewise.
35417         * lib/linkat.c (linkat): Likewise.
35418         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
35419         * lib/openat-priv.h (at_func2): Add declaration.
35420         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35421         * modules/unistd (Makefile.am): Substitute them.
35422         * lib/unistd.in.h (linkat): Declare it.
35423         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35424         * doc/posix-functions/linkat.texi (linkat): Likewise.
35425         * doc/posix-functions/link.texi (link): Tweak wording.
35426         * tests/test-link.c (main): Move guts...
35427         * tests/test-link.h (test_link): ...into new file.
35428         * modules/linkat-tests: New test.
35429         * tests/test-linkat.c: Likewise.
35430         * modules/link-tests (Files): Ship new file.
35431         (Depends-on): Add stdbool.
35432
35433         dirname: add library-safe mdir_name
35434         * lib/dirname.h (mdir_name): New prototype.
35435         * lib/dirname.c (dir_name): Move guts...
35436         (mdir_name): ...to new function that avoids xalloc_die.
35437
35438         fchdir: another mingw fix
35439         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
35440         * lib/fchdir.c (get_name): New helper method; skips canonicalize
35441         on mingw (where it has not yet been ported), and make it optional
35442         elsewhere.
35443         (_gl_register_fd): Use it.
35444
35445         same-inode: make SAME_INODE tri-state, to port to mingw
35446         * NEWS: Mention this change.
35447         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
35448         st_ino always being 0.
35449         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
35450         * lib/cycle-check.c (cycle_check): Likewise.
35451         * lib/same.c (same_name): Likewise.
35452
35453         lstat: avoid mingw compilation error
35454         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
35455         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
35456         lstat ourselves.
35457         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
35458         was adequate.
35459         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
35460         the checks for lstat.
35461         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
35462
35463         link: fix test failure on Solaris 9
35464         * lib/link.c (rpl_link): Don't assume link will catch bogus
35465         trailing slash on source.
35466
35467         test-symlinkat: enhance test
35468         * tests/test-readlink.c (main): Move guts...
35469         * tests/test-readlink.h (test_readlink): ...into new file.
35470         * tests/test-symlink.c (main): Move guts...
35471         * tests/test-symlink.h (test_symlink): ...into new file.
35472         * tests/test-symlinkat.c (main): Use new files for further
35473         coverage.
35474         (do_symlink, do_readlink): New helper functions.
35475         * modules/symlink-tests (Files): Ship new file.
35476         (Depends-on): Add stdbool.
35477         * modules/readlink-tests (Files): Ship new file.
35478         (Depends-on): Add stdbool.
35479         * modules/symlinkat-tests (Files): Use new files.
35480
35481 2009-09-23  Eric Blake  <ebb9@byu.net>
35482
35483         readlink: document portability issue with symlink length
35484         * doc/posix-functions/lstat.texi (lstat): Mention that some file
35485         systems have bogus st_size on symlinks, and mention the
35486         areadlink-with-size module.
35487         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
35488         * doc/posix-functions/readlink.texi (readlink): Mention the
35489         areadlink module, and ERANGE failure.
35490         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35491         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
35492
35493         readlink: fix Solaris 9 bug with trailing slash
35494         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
35495         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
35496         * doc/posix-functions/readlink.texi (readlink): Document this.
35497         * modules/readlink-tests: New test.
35498         * tests/test-readlink.c: Likewise.
35499
35500         readlink: fix cygwin 1.5.x bug with return type
35501         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
35502         * lib/unistd.in.h (readlink): Use ssize_t.
35503         * lib/readlink.c (readlink): Likewise.
35504         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35505         * modules/unistd (Makefile.am): Substitute it.
35506         * lib/unistd.in.h (readlink): Declare replacement.
35507         * doc/posix-functions/readlink.texi (readlink): Document this.
35508
35509         symlink: use throughout gnulib
35510         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
35511         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
35512         symlink is not used.
35513         * modules/symlinkat (Depends-on): Add symlink.
35514         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35515         * modules/canonicalize-tests (Depends-on): Likewise.
35516         * modules/lstat-tests (Depends-on): Likewise.
35517         * modules/openat-tests (Depends-on): Likewise.
35518         * modules/remove-tests (Depends-on): Likewise.
35519         * modules/rmdir-tests (Depends-on): Likewise.
35520         * modules/unlink-tests (Depends-on): Likewise.
35521         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
35522         * tests/test-canonicalize.c (symlink): Likewise.
35523         * tests/test-fstatat.c (symlink): Likewise.
35524         * tests/test-lstat.c (symlink): Likewise.
35525         * tests/test-remove.c (symlink): Likewise.
35526         * tests/test-rmdir.c (symlink): Likewise.
35527         * tests/test-unlink.c (symlink): Likewise.
35528         * tests/test-unlinkat.c (symlink): Likewise.
35529
35530         symlink: new module, for Solaris 9 bug
35531         * modules/symlink: New file.
35532         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
35533         * lib/symlink.c: Likewise.
35534         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
35535         * modules/unistd (Makefile.am): Substitute them.
35536         * lib/unistd.in.h (symlink): Declare replacement.
35537         * MODULES.html.sh (File system functions): Mention it.
35538         * doc/posix-functions/symlink.texi (symlink): Likewise.
35539         * modules/symlink-tests: New test.
35540         * tests/test-symlink.c: Likewise.
35541
35542 2009-09-23  Bruno Haible  <bruno@clisp.org>
35543
35544         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
35545         when needed.
35546         Test case: gnulib-tool --import --with-tests atexit inttypes.
35547         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
35548
35549 2009-09-23  Bruno Haible  <bruno@clisp.org>
35550
35551         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
35552         subcommand, not in a subshell.
35553
35554 2009-09-22  Eric Blake  <ebb9@byu.net>
35555
35556         unistd: sort replacement declarations
35557         * lib/unistd.in.h: Sort declarations.
35558
35559         open, openat: minor optimization
35560         * lib/open.c (open): If open succeeded, len is non-zero.
35561         * lib/openat.c (rpl_openat): Likewise.
35562
35563         link-follow: ensure correct result
35564         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
35565         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
35566         distinguish between possible failures.
35567
35568 2009-09-21  Eric Blake  <ebb9@byu.net>
35569
35570         fts: avoid compiler warning
35571         * lib/fts.c (dirent_inode_sort_may_be_useful)
35572         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
35573
35574 2009-09-19  Bruno Haible  <bruno@clisp.org>
35575
35576         * lib/progreloc.c (canonicalize_file_name): New declaration.
35577
35578 2009-09-19  Eric Blake  <ebb9@byu.net>
35579
35580         link: fix quoting
35581         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
35582
35583         openat: fix openat bugs on Solaris 9
35584         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
35585         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
35586         * modules/openat (Depends-on): Add open.
35587         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
35588         * modules/fcntl-h (Makefile.am): Substitute it.
35589         * lib/fcntl.in.h (openat): Declare replacement.
35590         * doc/posix-functions/openat.texi (openat): Document this.
35591
35592         openat: move fstatat and unlinkat into correct files
35593         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
35594         compiled.
35595         * lib/openat.c (fstatat, unlinkat): Move...
35596         * lib/fstatat.c (fstatat): ...into correct files.
35597         * lib/unlinkat.c (unlinkat): Likewise.
35598
35599         openat: fix unlinkat bugs on Solaris 9
35600         * lib/unlinkat.c (unlinkat): New file.
35601         * modules/openat (Depends-on): Add unlink.
35602         (Files): Distribute it.
35603         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
35604         trailing slash behavior is broken.
35605         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35606         * modules/unistd (Makefile.am): Substitute it.
35607         * lib/unistd.in.h (unlinkat): Declare replacement.
35608         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
35609
35610         openat: fix fstatat bugs on Solaris 9
35611         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
35612         stat.
35613         * doc/posix-functions/fstatat.texi (fstatat): Document this.
35614
35615         test-unlinkat: enhance test, to expose Solaris 9 bug
35616         * tests/test-unlink.c (main): Factor guts...
35617         * tests/test-unlink.h (test_rmdir_func): ...into new file.
35618         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
35619         * tests/test-rmdir.c (main): Adjust caller.
35620         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
35621         (unlinker): New helper function.
35622         (rmdirat): Enhance check.
35623         * modules/rmdir-tests (Depends-on): Add stdbool.
35624         * modules/unlink-tests (Depends-on): Likewise.
35625         (Files): Add test-unlink.h.
35626         * modules/openat-tests (Files): Likewise.
35627         (Depends-on): Add unlinkdir.
35628
35629         test-fstatat: new test, to expose Solaris 9 bugs
35630         * tests/test-stat.c (main): Factor guts...
35631         * tests/test-stat.h (test_stat_func): ...into new file.
35632         * tests/test-lstat.c (main): Factor guts...
35633         * tests/test-lstat.h (test_lstat_func): ...into new file.
35634         * tests/test-fstatat.c: New file.
35635         * modules/stat-tests (Files): Add test-stat.h.
35636         * modules/lstat-tests (Files): Add test-lstat.h.
35637         (Depends-on): Add stdbool.
35638         * modules/openat-tests (Depends-on): Add pathmax.
35639         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
35640         (Makefile.am): Run new test.
35641
35642         remove: new module, for mingw and Solaris 9 bugs
35643         * modules/remove: New file.
35644         * lib/remove.c: Likewise.
35645         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
35646         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
35647         * modules/stdio (Makefile.am): Use them.
35648         * lib/stdio.in.h (remove): Declare replacement.
35649         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35650         * doc/posix-functions/remove.texi (remove): Likewise.
35651         * modules/remove-tests: New test.
35652         * tests/test-remove.c: Likewise.
35653
35654         unlink: new module, for Solaris 9 bug
35655         * modules/unlink: New file.
35656         * lib/unlink.c: Likewise.
35657         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
35658         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35659         * modules/unistd (Makefile.am): Use them.
35660         * lib/unistd.in.h (stat): Declare replacement.
35661         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35662         * doc/posix-functions/unlink.texi (unlink): Likewise.
35663         * modules/unlink-tests: New test.
35664         * tests/test-unlink.c: Likewise.
35665
35666         lstat: fix Solaris 9 bug
35667         * lib/lstat.c (lstat): Also check for trailing slash on
35668         non-symlink, non-directories.  Use stat module to simplify logic.
35669         * doc/posix-functions/lstat.texi (lstat): Document it.
35670         * modules/lstat-tests (Depends-on): Add errno, same-inode.
35671         (configure.ac): Check for symlink.
35672         * tests/test-lstat.c (main): Add more tests.
35673
35674         stat: add as dependency to other modules
35675         * modules/chown (Depends-on): Add stat.
35676         * modules/euidaccess (Depends-on): Likewise.
35677         * modules/fchdir (Depends-on): Likewise.
35678         * modules/isdir (Depends-on): Likewise.
35679         * modules/link (Depends-on): Likewise.
35680         * modules/lstat (Depends-on): Likewise.
35681         * modules/mkdir-p (Depends-on): Likewise.
35682         * modules/modechange (Depends-on): Likewise.
35683         * modules/open (Depends-on): Likewise.
35684         * modules/readlink (Depends-on): Likewise.
35685         * modules/same (Depends-on): Likewise.
35686
35687         stat: fix Solaris 9 bug
35688         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
35689         slash.
35690         * lib/stat.c (rpl_stat): Work around it.
35691         * doc/posix-functions/stat.texi (stat): Update documentation.
35692
35693         stat: new module, for mingw bug
35694         * modules/stat: New file.
35695         * lib/stat.c: Likewise.
35696         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
35697         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35698         * modules/sys_stat (Makefile.am): Use them.
35699         * lib/sys_stat.in.h (stat): Declare replacement.
35700         * lib/openat.c (fstatat): Deal with lstat and stat being function
35701         macros.
35702         * modules/openat (Depends-on): Add inline.
35703         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35704         * doc/posix-functions/stat.texi (stat): Likewise.
35705         * modules/stat-tests: New test.
35706         * tests/test-stat.c: Likewise.
35707
35708 2009-09-19  Jim Meyering  <meyering@redhat.com>
35709
35710         syntax-check: detect unnecessary inclusion of canonicalize.h
35711         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
35712
35713 2009-09-19  Eric Blake  <ebb9@byu.net>
35714
35715         canonicalize-lgpl: adjust clients to use correct header
35716         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35717         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
35718         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
35719         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
35720         * lib/progreloc.c (includes): Likewise.
35721
35722 2009-09-19  Jim Meyering  <meyering@redhat.com>
35723
35724         test-posixtm.c: correct a comment
35725         * tests/test-posixtm.c: Correct first-line comment.
35726         Spotted by Eric Blake.
35727
35728 2009-09-16  Jim Meyering  <meyering@redhat.com>
35729
35730         posixtm-tests: make T const-correct; add a test case
35731         * tests/test-posixtm.c (T): Declare const.
35732         Add a test for -(2^31+1).
35733         Remove useless can-succeed-only-in-2002 test.
35734
35735         posixtm-tests: adjust the sole failing test
35736         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
35737         expected output matches what mktime now produces.  Cross-checked via
35738         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
35739
35740         posixtm: move #ifdef'd tests into a new module
35741         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
35742         * tests/test-posixtm.c: ... this new file.
35743         * modules/posixtm-tests: New module.
35744
35745 2009-09-19  Eric Blake  <ebb9@byu.net>
35746
35747         openat: simplify use of at-func.c
35748         * lib/at-func.c (includes): Include prerequisites here, to
35749         simplify requirements on client files.
35750         * lib/openat-priv.h: Add double-inclusion guard.
35751         * lib/faccessat.c (includes): Simplify.
35752         * lib/fchmodat.c (includes): Likewise.
35753         * lib/fchownat.c (includes): Likewise.
35754         * lib/mkdirat.c (includes): Likewise.
35755         * lib/mkfifoat.c (includes): Likewise.
35756         * lib/symlinkat.c (includes): Likewise.
35757
35758         openat: allow return of fd 0
35759         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
35760         * modules/save-cwd (Depends-on): Replace fcntl-safer with
35761         unistd-safer.
35762         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
35763         <fcntl.h>; this module does not leak fds.
35764         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
35765         must be allowed to return 0, leaving openat_safer to add the
35766         safety.
35767         (openat_permissive): Avoid writing to just-opened fd 2 if
35768         restoring the current directory fails.
35769         * lib/openat-die.c (openat_restore_fail): Add comment.
35770         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
35771         (save_cwd): Guarantee safe fd, but without use of open_safer.
35772         * tests/test-openat.c: New test.
35773         * modules/openat-tests (Files, Makefile.am): Distribute and build
35774         new file.
35775
35776         relocatable-prog-wrapper: fix build
35777         * modules/relocatable-prog-wrapper (Files): Update name of
35778         canonicalize m4 file, broken on 2009-09-17.
35779         Reported by emad hajjar <aleppos@hotmail.com>.
35780
35781 2009-09-19  Bruno Haible  <bruno@clisp.org>
35782
35783         * lib/safe-alloc.h: Use the standard header with GPL copyright.
35784         * lib/safe-alloc.c: Likewise.
35785         Reported by Ian Beckwith <ianb@erislabs.net>.
35786
35787 2009-09-18  Bruno Haible  <bruno@clisp.org>
35788
35789         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
35790         Reported by <erobles@sensacd.com.mx>.
35791
35792 2009-09-17  Eric Blake  <ebb9@byu.net>
35793
35794         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
35795         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
35796         slashes when checking if last component is missing.
35797         * tests/test-canonicalize.c (main): Test this.
35798
35799         canonicalize, canonicalize-lgpl: honor // if distinct from /
35800         * modules/canonicalize (Files): Add double-slash-root.m4.
35801         * modules/canonicalize-lgpl (Files): Likewise.
35802         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35803         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
35804         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
35805         fallback definition.
35806         (canonicalize_filename_mode): Use it to protect //.
35807         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
35808         (__realpath): Likewise.
35809         * tests/test-canonicalize.c (main): Test this.
35810         * tests/test-canonicalize-lgpl.c (main): Likewise.
35811         * modules/canonicalize-tests (Depends-on): Add same-inode.
35812         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35813
35814         canonicalize-lgpl: fix glibc bug with trailing slash
35815         * m4/canonicalize-lgpl.m4: Move contents...
35816         * m4/canonicalize.m4: ...here.
35817         (gl_CANONICALIZE_LGPL): Factor realpath check...
35818         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
35819         glibc 2.3.5 bug, fixed 2005-04-27.
35820         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
35821         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
35822         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
35823         * modules/canonicalize-lgpl (Files): Manage file rename.
35824         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35825         * modules/stdlib (Makefile.am): Substitute witness.
35826         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
35827         is needed.
35828         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
35829         replacement is required.
35830         * lib/canonicalize.c (canonicalize_file_name): Likewise.
35831         * doc/glibc-functions/canonicalize_file_name.texi
35832         (canonicalize_file_name): Document this.
35833         * doc/posix-functions/realpath.texi (realpath): Likewise.
35834
35835         canonicalize-lgpl: reject non-directory with trailing slash
35836         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
35837         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
35838         catches failures in glibc 2.3.5.
35839         * tests/test-canonicalize.c (main): Likewise.
35840
35841         canonicalize-lgpl: use native realpath if it works
35842         * lib/canonicalize-lgpl.c (realpath): Guard with
35843         FUNC_REALPATH_WORKS.
35844         * lib/stdlib.in.h (realpath): Make declaration optional based on
35845         HAVE_REALPATH.
35846         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
35847         native realpath works.
35848         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35849         * modules/stdlib (Makefile.am): Substitute witness.
35850
35851         canonicalize, canonicalize-lgpl: use <stdlib.h>
35852         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
35853         (Include): Mention <stdlib.h>.
35854         (configure.ac): Mention functions we provide.
35855         * modules/canonicalize (configure.ac): Likewise.
35856         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
35857         realpath if canonicalize_file_name is missing.
35858         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
35859         * modules/stdlib (Makefile.am): Substitute witnesses.
35860         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
35861         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
35862         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
35863         * NEWS: Document this.
35864         * doc/glibc-functions/canonicalize_file_name.texi
35865         (canonicalize_file_name): Likewise.
35866         * doc/posix-functions/realpath.texi (realpath): Likewise.
35867         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
35868
35869         test-canonicalize: consolidate into single C program
35870         * tests/test-canonicalize.sh: Delete; move setup into...
35871         * tests/test-canonicalize.c (main): ...the program, making it
35872         easier to run in debugger.  Add some tests.
35873         * modules/canonicalize-tests (Files): Remove unused file.
35874         (Depends-on): Add progname.
35875         (configure.ac, Makefile.am): Simplify.
35876
35877         test-canonicalize-lgpl: consolidate into single C program
35878         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
35879         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
35880         easier to run in debugger.  Add some tests.
35881         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
35882         (configure.ac, Makefile.am): Simplify.
35883
35884         canonicalize: avoid resolvepath
35885         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
35886         unnecessary checks.
35887         * lib/canonicalize.c (includes): Simplify.
35888         (canonicalize_file_name): Drop resolvepath implementation.
35889         * modules/canonicalize (Depends-on): Drop filenamecat.
35890
35891         canonicalize: don't lose errno
35892         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
35893         over calls to free.
35894
35895         canonicalize: simplify errno handling
35896         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
35897         assignment.
35898
35899         canonicalize, canonicalize-lgpl: update module dependencies
35900         * modules/canonicalize (Depends-on): Add extensions, lstat,
35901         pathmax, stdlib.
35902         (Files): Drop pathmax.h.
35903         (configure.ac): Adjust macro name.
35904         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
35905         lstat, stdlib, sys_stat.
35906         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
35907         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
35908         extensions.
35909         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
35910         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
35911         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
35912         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
35913         declaration, if available.
35914         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
35915         we can rely on the readlink module.
35916         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
35917         (includes): Use <unistd.h> unconditionally.
35918
35919 2009-09-17  Eric Blake  <ebb9@byu.net>
35920
35921         maint: make Include sections of modules consistent
35922         * modules/alloca: Use only header name; no need to list #include.
35923         * modules/alloca-opt: Likewise.
35924         * modules/arpa_inet: Likewise.
35925         * modules/canon-host: Likewise.
35926         * modules/configmake: Likewise.
35927         * modules/dirent: Likewise.
35928         * modules/eealloc: Likewise.
35929         * modules/environ: Likewise.
35930         * modules/fchdir: Likewise.
35931         * modules/fcntl: Likewise.
35932         * modules/fcntl-h: Likewise.
35933         * modules/gethrxtime: Likewise.
35934         * modules/gettime: Likewise.
35935         * modules/ignore-value: Likewise.
35936         * modules/inet_ntop: Likewise.
35937         * modules/inet_pton: Likewise.
35938         * modules/inttypes: Likewise.
35939         * modules/isnand-nolibm: Likewise.
35940         * modules/isnanf-nolibm: Likewise.
35941         * modules/mbchar: Likewise.
35942         * modules/mbfile: Likewise.
35943         * modules/mbiter: Likewise.
35944         * modules/mbuiter: Likewise.
35945         * modules/netdb: Likewise.
35946         * modules/netinet_in: Likewise.
35947         * modules/nproc: Likewise.
35948         * modules/pagealign_alloc: Likewise.
35949         * modules/poll: Likewise.
35950         * modules/printf-frexp: Likewise.
35951         * modules/pthread: Likewise.
35952         * modules/putenv: Likewise.
35953         * modules/random_r: Likewise.
35954         * modules/relocatable-prog: Likewise.
35955         * modules/search: Likewise.
35956         * modules/select: Likewise.
35957         * modules/selinux-h: Likewise.
35958         * modules/settime: Likewise.
35959         * modules/signal: Likewise.
35960         * modules/size_max: Likewise.
35961         * modules/socklen: Likewise.
35962         * modules/ssize_t: Likewise.
35963         * modules/stdarg: Likewise.
35964         * modules/stdbool: Likewise.
35965         * modules/stddef: Likewise.
35966         * modules/stdint: Likewise.
35967         * modules/stdio: Likewise.
35968         * modules/stdlib: Likewise.
35969         * modules/string: Likewise.
35970         * modules/strings: Likewise.
35971         * modules/sys_file: Likewise.
35972         * modules/sys_ioctl: Likewise.
35973         * modules/sys_select: Likewise.
35974         * modules/sys_socket: Likewise.
35975         * modules/sys_stat: Likewise.
35976         * modules/sys_time: Likewise.
35977         * modules/sys_times: Likewise.
35978         * modules/sys_utsname: Likewise.
35979         * modules/sys_wait: Likewise.
35980         * modules/sysexits: Likewise.
35981         * modules/time: Likewise.
35982         * modules/times: Likewise.
35983         * modules/tmpfile: Likewise.
35984         * modules/trim: Likewise.
35985         * modules/unistd: Likewise.
35986         * modules/wchar: Likewise.
35987         * modules/wctype: Likewise.
35988
35989 2009-09-17  Bruno Haible  <bruno@clisp.org>
35990
35991         Make getdate.y compile on QNX and NetBSD 5 / i386.
35992         * m4/getdate.m4 (gl_GETDATE): Conditionally define
35993         TIME_T_FITS_IN_LONG_INT.
35994         * lib/getdate.y (long_time_t): New type.
35995         (relative_time): Change type of 'seconds' field to long_time_t.
35996         (get_date): Update types of local variables. Check against overflow
35997         during conversion from long_time_t to time_t.
35998         Reported by Matt Kraai <kraai@ftbfs.org>
35999         and Hasso Tepper <hasso@netbsd.org>.
36000
36001 2009-09-17  Bruno Haible  <bruno@clisp.org>
36002
36003         * modules/COPYING: Update copyright years.
36004         * modules/README: Likeiwse.
36005         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
36006         Reported by Ian Beckwith <ianb@erislabs.net>.
36007
36008 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
36009
36010         * users.txt: Update references for gnuit package.
36011
36012 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
36013
36014         * m4/getdelim.m4: Fix typo in copyright line.
36015
36016 2009-09-17  Bruno Haible  <bruno@clisp.org>
36017
36018         * lib/atoll.c: Use the standard header with GPL copyright.
36019         * lib/argz.in.h: Likewise.
36020         * lib/glob.c: Likewise.
36021         * lib/glob-libc.h: Likewise.
36022         * lib/random_r.c: Likewise.
36023         * lib/siglist.h: Likewise.
36024         * lib/strsignal.c: Likewise.
36025         Reported by Ian Beckwith <ianb@erislabs.net>.
36026
36027 2009-09-17  Eric Blake  <ebb9@byu.net>
36028
36029         rmdir: ensure correct dependency order
36030         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
36031
36032 2009-09-17  Bruno Haible  <bruno@clisp.org>
36033
36034         Disable assertion that fails on NetBSD 5 / i386.
36035         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
36036         Reported by Sam Steingold <sds@gnu.org>
36037         and Hasso Tepper <hasso@netbsd.org>.
36038
36039 2009-09-16  Eric Blake  <ebb9@byu.net>
36040
36041         unlinkdir: port to mingw
36042         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
36043         on which no one can unlink a directory.
36044
36045         stdlib: sort witness names
36046         * modules/stdlib (Makefile.am): Sort replacements.
36047         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
36048         * lib/stdlib.in.h: Likewise.
36049
36050         parse-duration-tests: avoid link failure
36051         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
36052         LIBINTL.
36053         Reported by Tom G. Christensen.
36054
36055         openat-tests: ensure unlinkat behaves like rmdir
36056         * tests/test-rmdir.c (main): Factor guts...
36057         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
36058         * modules/rmdir-tests (Files): Ship new file.
36059         * modules/openat-tests: New test.
36060         * tests/test-unlinkat.c: Likewise.
36061
36062         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
36063         * modules/rmdir-errno (Status, Notice): Now obsolete.
36064
36065         rmdir: work around cygwin 1.5.x and mingw bugs
36066         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
36067         * lib/rmdir.c (rmdir): Work around it.
36068         * modules/rmdir (Status, Notice): No longer obsolete.
36069         (Files): Add dos.m4.
36070         (Depends-on): Add unistd.
36071         (configure.ac): Set witnesses.
36072         (License): Relax to LGPLv2+.
36073         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
36074         * modules/unistd (Makefile.am): Substitute witnesses.
36075         * lib/unistd.in.h (rmdir): Declare replacement.
36076         * doc/posix-functions/rmdir.texi (rmdir): Document this.
36077         * modules/rmdir-tests: New tests.
36078         * tests/test-rmdir.c: Likewise.
36079
36080 2009-09-15  Eric Blake  <ebb9@byu.net>
36081
36082         fchdir: improve use of replacement functions
36083         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
36084         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
36085         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
36086         REPLACE_CLOSEDIR.
36087         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
36088         * modules/sys_stat (Makefile.am): Substitute correct witness.
36089         * modules/dirent (Makefile.am): Likewise.
36090         * modules/unistd (Makefile.am): Likewise.
36091         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
36092         * lib/unistd.in.h (dup): Likewise.
36093         * lib/sys_stat.in.h (fstat): Likewise.
36094
36095         maint: ignore gnulib-tool temp files
36096         * .gitignore: Ignore files created during gnulib-tool --test.
36097
36098 2009-09-13  Jim Meyering  <meyering@redhat.com>
36099
36100         posixtm: don't reject a time that specify "60" as the number of seconds
36101         * lib/posixtm.c (posixtime): The code to reject invalid dates
36102         would also reject a time specified with the .60 suffix.
36103         But POSIX allows that, in order to accommodate leap seconds.
36104         So don't reject it.
36105         (main): Adjust tests accordingly.
36106         * modules/posixtm (Depends-on): Add stpcpy.
36107
36108 2009-09-11  Jim Meyering  <meyering@redhat.com>
36109
36110         announce-gen: include [$release_type] in emitted Subject:
36111         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
36112         e.g., [stable] in the emitted Subject: line.
36113
36114 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36115
36116         Remove obsolete macros from several modules.
36117         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
36118         obsolete Autoconf macros with their modern counterparts.
36119         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
36120         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
36121         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
36122         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
36123         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
36124         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
36125         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
36126         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
36127         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
36128         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
36129         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
36130         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
36131         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
36132         * m4/sockets.m4 (gl_SOCKETS): Likewise.
36133         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
36134         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
36135         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
36136         * m4/time_r.m4 (gl_TIME_R): Likewise.
36137         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
36138         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
36139         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
36140
36141         Fix copyright header in build-aux scripts.
36142         * build-aux/git-version-gen: Fix copyright header to match GPLv3
36143         recommendation.
36144         * build-aux/ncftpput-ftp: Likewise.
36145         * build-aux/update-copyright: Likewise.
36146
36147 2009-09-09  Eric Blake  <ebb9@byu.net>
36148
36149         test-link: allow Linux choice of errno
36150         * tests/test-link.c (main): Relax test for alternate error.
36151
36152         strndup: fix improper m4 caching
36153         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
36154         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
36155         (gl_PREREQ_STRNDUP): Delete.
36156         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
36157         * modules/string (Makefile.am): Substitute it.
36158         * lib/string.in.h (strndup): Modernize prototype.
36159
36160         getcwd: port to mingw
36161         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
36162         different from the POSIX assumptions made throughout the getcwd
36163         module; fortunately, the mingw getcwd does not need replacement.
36164         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
36165         * modules/getcwd-tests: New test.
36166         * tests/test-getcwd.c: Likewise.
36167
36168         link: fix platform bugs
36169         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
36170         * lib/link.c (link): Work around them.  Fix related mingw bug.
36171         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
36172         * modules/unistd (Makefile.am): Substitute it.
36173         * lib/unistd.in.h (link): Declare replacement.
36174         * doc/posix-functions/link.texi (link): Document this.
36175         * modules/link (Depends-on): Add strdup-posix, sys_stat.
36176
36177         test-link: consolidate into single C program, test more cases
36178         * tests/test-link.sh: Delete.
36179         * tests/test-link.c: Test more error conditions.  Exposes bugs on
36180         at least Cygwin and Solaris.
36181         * modules/link-tests (Files): Remove unused file.
36182         (Depends-on): Add errno, sys_stat.
36183         (Makefile.am): Simplify.
36184
36185 2009-09-08  Bruno Haible  <bruno@clisp.org>
36186
36187         Work around towlower, towupper bug on mingw.
36188         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
36189         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
36190         * doc/posix-functions/towlower.texi: Mention the mingw bug.
36191         * doc/posix-functions/towupper.texi: Likewise.
36192         Reported by Eric Blake.
36193
36194 2009-09-08  Jim Meyering  <meyering@redhat.com>
36195
36196         build: don't try to run autoheader if we don't use it
36197         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
36198         is not used in configure.ac.
36199
36200 2009-09-08  Eric Blake  <ebb9@byu.net>
36201
36202         euidaccess: fix compilation error
36203         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
36204
36205         rawmemchr: relax license
36206         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
36207         okay.
36208         Reported by Jim Meyering.
36209
36210         mkfifoat: new module
36211         * modules/mkfifoat: New file.
36212         * lib/mkfifoat.c: Likewise.
36213         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
36214         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36215         * modules/sys_stat (Makefile.am): Use them.
36216         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
36217         * MODULES.html.sh (File system functions): Mention module.
36218         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
36219         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
36220         * modules/mkfifoat-tests: New test.
36221         * tests/test-mkfifoat.c: Likewise.
36222
36223         strchrnul: relax license
36224         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
36225         okay.
36226         Reported by Jim Meyering.
36227
36228 2009-09-08  Eric Blake  <ebb9@byu.net>
36229
36230         fstatat: fix compilation on Solaris
36231         * lib/fstatat.c (includes): Add fcntl.h.
36232         Reported by Pádraig Brady.
36233
36234 2009-09-07  Eric Blake  <ebb9@byu.net>
36235
36236         rename: modernize replacement
36237         * modules/rename (Depends-on): Add stdio.
36238         (configure.ac): Declare witness.
36239         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
36240         stdio take care of replacement.
36241         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
36242         * modules/stdio (Makefile.am): Substitute them.
36243         * lib/stdio.in.h (rename): Declare replacement.
36244         * lib/rename.c (includes): Allow cross-compilation to non-windows
36245         machines.
36246         * doc/posix-functions/rename.texi (rename): Improve
36247         documentation.
36248
36249         stdio: sort witness names
36250         * modules/stdio (Makefile.am): Sort replacements.
36251         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36252         * lib/stdio.in.h: Likewise.
36253
36254         getcwd: minor cleanups
36255         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
36256         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
36257
36258         openat: provide more convenience names
36259         * modules/faccessat (configure.ac): Add C witness.
36260         * lib/unistd.in.h (readlinkat): Fix typo.
36261         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
36262         convenience wrappers.
36263         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
36264         wrappers in syntax checks.
36265
36266 2009-09-06  Eric Blake  <ebb9@byu.net>
36267
36268         doc: fix comments in recent patches
36269         * lib/faccessat.c: Mention correct function.
36270         * lib/fchmodat.c: Likewise.
36271         * lib/fchownat.c: Likewise.
36272         * lib/symlinkat.c: Likewise.
36273         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
36274         constants.
36275
36276         faccessat, symlinkat: continue cleanup of previous patch
36277         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
36278         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
36279         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
36280         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
36281         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
36282         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
36283         set.
36284
36285 2009-09-06  Bruno Haible  <bruno@clisp.org>
36286
36287         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
36288         (fstatat): Declare if GNULIB_FSTATAT is set.
36289         (mkdirat): Declare if GNULIB_MKDIRAT is set.
36290         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
36291         (unlinkat): Declare if GNULIB_UNLINKAT is set.
36292         * modules/fcntl-h (Files): Remove m4/openat.m4.
36293         * modules/sys_stat (Files): Remove m4/openat.m4.
36294         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
36295         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
36296         * modules/unistd (Files): Remove m4/openat.m4.
36297         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
36298         GNULIB_OPENAT.
36299         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
36300         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
36301         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
36302         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
36303         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
36304         gl_OPENAT_DEFAULTS.
36305         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
36306         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
36307         Don't require gl_OPENAT_DEFAULTS.
36308         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
36309         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
36310         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
36311         (gl_OPENAT_DEFAULTS): Remove macro.
36312
36313 2009-09-06  Bruno Haible  <bruno@clisp.org>
36314
36315         * modules/openat (configure.ac): Remove unneeded witness.
36316
36317 2009-09-06  Bruno Haible  <bruno@clisp.org>
36318
36319         Set errno to ENOSYS when a function is entirely unsupported.
36320         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
36321         EOPNOTSUPP.
36322         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
36323         * modules/chown (Depends-on): Remove errno.
36324
36325 2009-09-06  Bruno Haible  <bruno@clisp.org>
36326
36327         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
36328
36329 2009-09-06  Bruno Haible  <bruno@clisp.org>
36330
36331         * lib/sys_stat.in.h: Fix preprocessor command indentation.
36332
36333 2009-09-06  Ben Pfaff  <blp@gnu.org>
36334             Bruno Haible  <bruno@clisp.org>
36335
36336         Work around a glibc bug in strtok_r.
36337         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
36338         Undefine if UNDEFINE_STRTOK_R is set.
36339         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
36340         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36341         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
36342         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
36343         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
36344         UNDEFINE_STRTOK_R.
36345         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
36346
36347 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
36348
36349         exclude: minor fix
36350         * lib/exclude.c: Include wctype.h
36351
36352 2009-09-06  Akim Demaille  <demaille@gostai.com>
36353
36354         bootstrap: improve error message
36355         * build-aux/bootstrap (find_tool): Upon failure, report the list
36356         of candidates.
36357         Honor the initial value of the envvar.
36358
36359 2009-09-05  Eric Blake  <ebb9@byu.net>
36360
36361         symlinkat: new module
36362         * modules/symlinkat: New file.
36363         * lib/symlinkat.c: Likewise.
36364         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
36365         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36366         * modules/unistd (Makefile.am): Use them.
36367         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
36368         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
36369         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
36370         * MODULES.html.sh (File system functions): Mention module.
36371         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36372         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
36373         * modules/symlinkat-tests: New test.
36374         * tests/test-symlinkat.c: Likewise.
36375
36376         test-openat-safer: add more checks
36377         * tests/test-openat-safer.c (main): Check more code paths.
36378
36379 2009-09-05  Jim Meyering  <meyering@redhat.com>
36380
36381         syntax-check: detect unnecessary inclusion of openat.h
36382         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
36383
36384 2009-09-05  Bruno Haible  <bruno@clisp.org>
36385
36386         Support towlower, towupper.
36387         * doc/posix-functions/towlower.texi: Mention module wctype.
36388         * doc/posix-functions/towupper.texi: Likewise.
36389         * lib/wctype.in.h (towlower, towupper): New functions.
36390         * tests/test-wctype.c: Include stdio.h, stdlib.h.
36391         (ASSERT): New macro.
36392         (e): New variable.
36393         (main): Test also towlower, towupper. Test WEOF argument.
36394         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36395
36396 2009-09-05  Bruno Haible  <bruno@clisp.org>
36397
36398         Fix conversion behaviour when the input is invalid.
36399         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
36400         mark occurring in first pass of indirect conversion.
36401         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
36402         input.
36403         Found by clang's static analyzer.
36404
36405 2009-09-05  Bruno Haible  <bruno@clisp.org>
36406
36407         * tests/test-striconveh.c (main): Test indirect conversion on platforms
36408         where direct conversion is possible.
36409
36410 2009-09-04  Eric Blake  <ebb9@byu.net>
36411
36412         openat: fail with ENOENT on empty name
36413         * lib/openat-proc.c (openat_proc_name): Special-case the empty
36414         buffer.
36415
36416         link-follow: fix logic bug in prior patch
36417         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
36418         reversed sense of yes and no in prior patch.  Avoid confusing
36419         compilation failure with desired semantics.
36420
36421         link-follow: accomodate mingw and cross-compilation
36422         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
36423         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
36424         cross-compilation results to -1, to make linkat easier to
36425         implement when cross-compiling.  Trivially support mingw.
36426         * modules/link-follow (configure.ac): Call new name.
36427         * NEWS: Mention this.
36428
36429 2009-09-03  Eric Blake  <ebb9@byu.net>
36430
36431         faccessat: compile replacement
36432         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
36433         needed.
36434
36435         fts: fix compilation error
36436         * lib/fts.c (includes): Re-add "openat.h", for
36437         openat_needs_fchdir.
36438
36439         faccessat: new module
36440         * modules/faccessat: New file.
36441         * lib/faccessat.c: Likewise.
36442         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
36443         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36444         * modules/unistd (Makefile.am): Use it.
36445         * lib/unistd.in.h (faccessat): Declare it.
36446         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
36447         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
36448         * MODULES.html.sh (File system functions): Mention it.
36449         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
36450         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
36451
36452         euidaccess: prefer POSIX over non-standard implementation
36453         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
36454         * lib/euidaccess.c (euidaccess): Use it if available.
36455
36456         openat: make template easier to use
36457         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
36458         AT_FUNC_F2 to be undefined.
36459         (VALIDATE_FLAG): New macro; use it to reject bad flags.
36460         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
36461         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
36462         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
36463         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
36464         Likewise.
36465         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
36466         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
36467         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
36468         Likewise.
36469
36470         openat: declare in POSIX headers
36471         * NEWS: Mention this.
36472         * modules/openat (configure.ac): Declare witnesses.
36473         (Depends-on): Add fcntl-h, sys_stat, unistd.
36474         (Include): Mention correct headers.
36475         * modules/fcntl-h (Depends-on): Add link-warning.
36476         (Files): Add openat.m4.
36477         (Makefile.am): Substitute witnesses.
36478         * modules/sys_stat (Files, Makefile.am): Likewise.
36479         * modules/unistd (Files, Makefile.am): Likewise.
36480         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
36481         (gl_OPENAT_DEFAULTS): New macro.
36482         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
36483         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
36484         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
36485         (SYS_STAT_H): Remove unused variable.
36486         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
36487         * lib/fcntl--.h (includes): Remove unneeded header.
36488         * lib/openat-safer.c (includes): Likewise.
36489         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
36490         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
36491         appropriate headers.
36492         (__OPENAT_PREFIX): Delete.
36493         * lib/fcntl.in.h (openat): Provide declaration.
36494         (AT_FDCWD): Fix Solaris bug.
36495         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
36496         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
36497         * lib/fchmodat.c (includes):  Adjust to find declaration.
36498         * lib/fchownat.c (includes): Likewise.
36499         * lib/mkdirat.c (includes): Likewise.
36500         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
36501         still visible.
36502
36503 2009-09-02  Eric Blake  <ebb9@byu.net>
36504
36505         errno: use consistently
36506         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
36507         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
36508         * lib/canonicalize.c (ELOOP): Likewise.
36509         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
36510         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
36511         * lib/lchown.c (EOPNOTSUPP): Likewise.
36512         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
36513         * lib/savewd.c (ESTALE): Likewise.
36514         * lib/settime.c (ENOSYS): Likewise.
36515         * lib/utimens.c (ENOSYS): Likewise.
36516         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
36517         * lib/chdir-safer.c (ELOOP): Likewise.
36518         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
36519         * modules/c-stack (Depends-on): Add errno.
36520         * modules/canonicalize (Depends-on): Likewise.
36521         * modules/chdir-safer (Depends-on): Likewise.
36522         * modules/fdopendir (Depends-on): Likewise.
36523         * modules/inet_ntop (Depends-on): Likewise.
36524         * modules/inet_pton (Depends-on): Likewise.
36525         * modules/lchown (Depends-on): Likewise.
36526         * modules/openat (Depends-on): Likewise.
36527         * modules/savewd (Depends-on): Likewise.
36528         * modules/settime (Depends-on): Likewise.
36529         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
36530
36531         fts: avoid leaking fds
36532         * modules/fts (Depends-on): Add cloexec.
36533         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
36534         flag.
36535
36536         fts: make directory fds more robust
36537         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
36538         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
36539
36540         backupfile, chdir-long, fts, savedir: make safer
36541         * lib/backupfile.c (includes): Use "dirent--.h", since
36542         numbered_backup can write to stderr during readdir.
36543         * lib/savedir.c (includes): Likewise.
36544         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
36545         emulation can write to stderr on failure.
36546         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
36547         * lib/getcwd.c: Document why opendir_safer is unused.
36548         * lib/glob.c: Likewise.
36549         * lib/scandir.c: Likewise.
36550         * lib/openat-proc.c: Likewise, for open_safer.
36551         * modules/backupfile (Depends-on): Add dirent-safer.
36552         * modules/savedir (Depends-on): Likewise.
36553         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
36554         * modules/chdir-long (Depends-on): Add openat-safer.
36555
36556         openat-safer: new module
36557         * modules/openat-safer: New file.
36558         * lib/openat-safer.c: Likewise.
36559         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
36560         * lib/fcntl-safer.h (openat_safer): Declare.
36561         * lib/fcntl--.h (openat): Override.
36562         * MODULES.html.sh (File descriptor based I/O): Mention it.
36563         * lib/openat.h: Add double-inclusion guards.
36564         * lib/openat.c (includes): Only include "fcntl-safer.h", not
36565         "fcntl--.h", so we can implement openat.
36566         * modules/openat-safer-tests: New test.
36567         * tests/test-openat-safer.c: New file.
36568
36569         dirent-safer: new module
36570         * modules/dirent-safer: New file.
36571         * lib/dirent--.h: Likewise.
36572         * lib/dirent-safer.h: Likewise.
36573         * lib/opendir-safer.c: Likewise.
36574         * m4/dirent-safer.m4: Likewise.
36575         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
36576         * modules/dirent-safer-tests: New test.
36577         * tests/test-dirent-safer.c: New file.
36578         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
36579
36580         fdopendir: optimize on mingw
36581         * lib/unistd.in.h (_gl_directory_name): New prototype.
36582         * lib/fchdir.c (_gl_directory_name): Implement it.
36583         (fchdir): Use it to simplify implementation.
36584         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
36585         fchdir, when available, to avoid calling [f]chdir().
36586
36587         fdopendir: split into its own module
36588         * lib/openat.c (fdopendir): Move...
36589         * lib/fdopendir.c: ...into new file.
36590         * modules/fdopendir: New module.
36591         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
36592         * modules/openat (Depends-on): Add fdopendir.
36593         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
36594         fdopendir here.
36595         * modules/savedir (Depends-on): Only need fdopendir, not full
36596         openat.
36597         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
36598         * lib/openat.h (fdopendir): Drop prototype.
36599         * lib/dirent.in.h (fdopendir): Provide prototype.
36600         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
36601         * modules/dirent (Makefile.am): Substitute them.
36602         * MODULES.html.sh (File system functions): Mention it.
36603         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
36604         * modules/fdopendir-tests: New file.
36605         * tests/test-fdopendir.c: Likewise.
36606
36607         fchdir: use more consistent macro convention
36608         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
36609         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
36610         REPLACE_FCHDIR, rather than relying on config.h macros.
36611         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
36612         inside a single make-time REPLACE_FCHDIR block, rather than using
36613         the config.h FCHDIR_REPLACEMENT.
36614         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
36615         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
36616         Manage fstat replacement.
36617         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
36618         REPLACE_FCHDIR.
36619         * modules/sys_stat (Files): Add m4/unistd_h.m4.
36620         (Makefile.am): Substitute REPLACE_FCHDIR.
36621         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
36622         FCHDIR_REPLACEMENT.
36623         * lib/dup-safer.c (dup_safer): Likewise.
36624         * lib/dup2.c (rpl_dup2): Likewise.
36625         * lib/dup3.c (rpl_dup3): Likewise.
36626         * lib/open.c (rpl_open): Likewise.
36627
36628         fchdir: simplify error handling, and support dup3
36629         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
36630         stdbool, malloc-posix, realloc-posix.
36631         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
36632         (ensure_dirs_slot): Return false on allocation failure.
36633         (rpl_dup2): Delete.
36634         (_gl_register_dup): New function.
36635         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
36636         (_gl_register_fd): Close fd on allocation failure.
36637         * lib/fcntl.in.h (_gl_register_fd): Update signature.
36638         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
36639         prototype.
36640         (rpl_dup2_fchdir): Delete prototype.
36641         * lib/open.c (open): Update caller.
36642         * lib/dup2.c (dup2): Track fchdir metadata.
36643         * lib/dup3.c (dup3): Likewise.
36644         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
36645         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
36646
36647 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36648
36649         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
36650         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
36651         don't pass arguments to AC_OUTPUT.
36652
36653 2009-09-02  Bruno Haible  <bruno@clisp.org>
36654
36655         * modules/mkdtemp (License): Relicense under LGPLv2+.
36656         Reported by Paolo Bonzini.
36657
36658 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36659
36660         Replace uses of obsolete autoconf macros in Jim's modules.
36661         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
36662         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
36663         can evoke a warning from autoconf when run with -Wobsolete
36664         enabled.  They were declared obsolete for good reasons (see
36665         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
36666         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
36667         should not continue using the deprecated macros.
36668         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
36669         obsolete Autoconf macros with modern counterparts.
36670         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
36671         * m4/dos.m4 (gl_AC_DOS): Likewise.
36672         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
36673         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
36674         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
36675         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
36676         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
36677         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
36678         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
36679         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
36680         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
36681         Likewise.
36682         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
36683         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
36684         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
36685         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
36686         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
36687         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
36688
36689 2009-09-01  Eric Blake  <ebb9@byu.net>
36690
36691         fchdir: fix off-by-one bug in previous patch
36692         * lib/fchdir.c (rpl_fstat): Use correct bounds.
36693         (_gl_unregister_fd): Delete useless if.
36694
36695 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
36696
36697         maint.mk: sort the list of syntax-check rules
36698         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
36699         easier to get a sense of progress when the rules are run sequentially
36700         and take a long time.
36701
36702 2009-09-01  Simon Josefsson  <simon@josefsson.org>
36703
36704         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
36705         * modules/netinet_in: Likewise.
36706         * modules/sys_file: Likewise.
36707         * modules/sys_ioctl: Likewise.
36708         * modules/sys_select: Likewise.
36709         * modules/sys_socket: Likewise.
36710         * modules/sys_stat: Likewise.
36711         * modules/sys_time: Likewise.
36712         * modules/sys_times: Likewise.
36713         * modules/sys_utsname: Likewise.
36714         * modules/sys_wait: Likewise.
36715
36716 2009-09-01  Jim Meyering  <meyering@redhat.com>
36717
36718         fts: help ensure that return values are not ignored
36719         * lib/fts_.h (__GNUC_PREREQ): Define.
36720         (__attribute_warn_unused_result__): Define.
36721         (fts_children, fts_close, fts_open, fts_read): Declare with
36722         __attribute_warn_unused_result__.
36723
36724         fts: fts_close now fails also when closing a dir file descriptor fails
36725         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
36726         and propagate to caller, along with errno.
36727
36728         announce-gen: correct formatting in --help output
36729         * build-aux/announce-gen (usage): Move the one-line description in
36730         --help output "up", to where it belongs, just after Usage:.
36731
36732 2009-08-31  Eric Blake  <ebb9@byu.net>
36733
36734         fchdir: port to mingw
36735         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
36736         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
36737         opened, then use a substitute.
36738         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
36739         replacement.
36740         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
36741         (_gl_register_fd): No need to check stat if open already filters
36742         all directories.
36743         (fchdir): Fix error condition to match POSIX.
36744         * modules/fchdir (Depends-on): Add sys_stat.
36745         * doc/posix-functions/open.texi (open): Document the limitation.
36746         * modules/fchdir-tests: New file.
36747         * tests/test-fchdir.c: Likewise.
36748
36749         canonicalize: allow cross-testing from cygwin to mingw
36750         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
36751         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
36752         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
36753         Likewise.
36754         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
36755         target does not support symlinks.
36756         * tests/test-canonicalize-lgpl.sh: Likewise.
36757
36758         chown: avoid compilation warning on mingw
36759         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
36760         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
36761         mingw.
36762         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
36763         * modules/chown (Depends-on): Add errno.
36764
36765 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
36766
36767         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
36768         command.
36769
36770 2009-08-31  Jim Meyering  <meyering@redhat.com>
36771
36772         canonicalize: remove useless initialization
36773         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
36774         initialization of local, "end".
36775
36776 2009-08-30  Bruno Haible  <bruno@clisp.org>
36777
36778         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
36779         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
36780         ENOSYS.
36781
36782 2009-08-30  Bruno Haible  <bruno@clisp.org>
36783
36784         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
36785         /usr/xpg4/bin/tr when it exists.
36786         * tests/test-pipe-filter-gi1.sh: Likewise.
36787
36788 2009-08-30  Bruno Haible  <bruno@clisp.org>
36789
36790         Work around deficient /usr/bin/id program on Solaris.
36791         * tests/test-file-has-acl.sh (ID): New variable.
36792         * tests/test-set-mode-acl.sh (ID): Likewise.
36793         * tests/test-copy-acl.sh (ID): Likewise.
36794         * tests/test-copy-file.sh (ID): Likewise.
36795
36796 2009-08-30  Bruno Haible  <bruno@clisp.org>
36797
36798         New module 'xstriconveh'.
36799         * lib/xstriconveh.h: New file.
36800         * lib/xstriconveh.c: New file.
36801         * modules/xstriconveh: New file.
36802
36803 2009-08-30  Bruno Haible  <bruno@clisp.org>
36804
36805         Make it easier to use mem_cd_iconveh.
36806         * lib/striconveh.h (iconveh_t): New type.
36807         (iconveh_open, iconveh_close): New declarations.
36808         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36809         with a single 'const iconveh_t *' argument.
36810         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
36811         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36812         with a single 'const iconveh_t *' argument.
36813         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
36814         * tests/test-striconveh.c (main): Update.
36815         * NEWS: Mention the change.
36816
36817 2009-08-30  Bruno Haible  <bruno@clisp.org>
36818
36819         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
36820         problem.
36821
36822 2009-08-30  Bruno Haible  <bruno@clisp.org>
36823
36824         Work around iconv_open problem on Solaris.
36825         * lib/iconv_open-solaris.gperf: New file.
36826         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
36827         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
36828         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
36829         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
36830         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
36831         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
36832
36833 2009-08-29  Jim Meyering  <meyering@redhat.com>
36834
36835         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
36836         * top/maint.mk (cvs-check): Remove target; it was just an alias
36837         to the better-named vc-diff-check.
36838         (maintainer-distcheck): Remove rule.  It was used only from
36839         the (alpha/beta/major) target, and all of its commands but one
36840         were coreutils-specific.
36841         (vc-dist): Remove rule.
36842         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
36843         Run vc-diff-check, not vc-dist.
36844         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
36845
36846 2009-08-27  Bruno Haible  <bruno@clisp.org>
36847
36848         * tests/test-bitrotate.c (main): Remove test that uses a shift count
36849         of 0.
36850
36851 2009-08-27  Bruno Haible  <bruno@clisp.org>
36852
36853         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
36854         compilers.
36855         * doc/func.texi: Document the SunPRO C bug.
36856
36857 2009-08-27  Bruno Haible  <bruno@clisp.org>
36858
36859         Fix link error on Solaris.
36860         * tests/test-parse-duration.c (xstrdup): Remove function.
36861
36862 2009-08-26  Pádraig Brady  <P@draigbrady.com>
36863
36864         ignore-value: handle pointer types, too
36865         * lib/ignore-value.h (__attribute__): Remove definition.
36866         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
36867         of a more concise and more-often effective "(void) i" statement.
36868         (ignore_ptr): New function to suppress warnings from functions that
36869         return pointers, and to make it explicit that one function doesn't
36870         handle all cases.
36871
36872 2009-08-25  Bruno Haible  <bruno@clisp.org>
36873
36874         dup2: work around a Linux bug.
36875         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
36876         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
36877         * doc/posix-functions/dup2.texi: Mention the Linux bug.
36878         Reported by Simon Josefsson.
36879
36880 2009-08-25  Jim Meyering  <meyering@redhat.com>
36881
36882         libguestfs uses gnulib
36883         * users.txt: Add libguestfs.
36884
36885 2009-08-24  Eric Blake  <ebb9@byu.net>
36886
36887         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
36888         * lib/pipe2.c (includes): Add binary-io.h.
36889         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
36890
36891 2009-08-24  Bruno Haible  <bruno@clisp.org>
36892
36893         Tolerate declared but missing accept4 syscall.
36894         * lib/accept4.c (accept4): Invoke original accept4 function first, if
36895         available.
36896         * lib/sys_socket.in.h (accept4): If the function is already present,
36897         override it.
36898         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
36899         * modules/accept4 (Makefile.am): Compile accept4.c always.
36900         Reported by Paolo Bonzini and Eric Blake.
36901
36902 2009-08-23  Bruno Haible  <bruno@clisp.org>
36903
36904         New module 'accept4'.
36905         * lib/sys_socket.in.h (accept4): New declaration.
36906         * lib/accept4.c: New file.
36907         * m4/accept4.m4: New file.
36908         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
36909         GNULIB_ACCEPT4, HAVE_ACCEPT4.
36910         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
36911         HAVE_ACCEPT4.
36912         * modules/accept4: New file.
36913         * doc/glibc-functions/accept4.texi: Mention the new module.
36914
36915 2009-08-24  Jim Meyering  <meyering@redhat.com>
36916
36917         progname: also set global program_invocation_name, when possible
36918         Before this change, a libtool-enabled program that calls glibc's
36919         error function would report the program name as
36920         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
36921         * modules/progname (configure.ac): Check for a declaration of
36922         program_invocation_name.
36923         * lib/progname.c:  Include <errno.h>.
36924         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
36925         Set program_invocation_name.
36926
36927 2009-08-23  Bruno Haible  <bruno@clisp.org>
36928
36929         * lib/dup3.c: Include <string.h>.
36930
36931 2009-08-23  Bruno Haible  <bruno@clisp.org>
36932
36933         * lib/dup3.c (dup3): Test only once whether the system actually exists.
36934         * lib/pipe2.c (pipe2): Likewise.
36935         Suggested by Eric Blake.
36936
36937 2009-08-23  Bruno Haible  <bruno@clisp.org>
36938
36939         Tolerate declared but missing dup3 syscall.
36940         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
36941         * lib/unistd.in.h (dup3): If the function is already present,
36942         override it.
36943         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
36944         * modules/dup3 (Makefile.am): Compile dup3.c always.
36945         Reported by Paolo Bonzini.
36946
36947 2009-08-23  Bruno Haible  <bruno@clisp.org>
36948
36949         Tolerate declared but missing pipe2 syscall.
36950         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
36951         available.
36952         * lib/unistd.in.h (pipe2): If the function is already present,
36953         override it.
36954         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
36955         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
36956         Reported by Paolo Bonzini.
36957
36958 2009-08-23  Bruno Haible  <bruno@clisp.org>
36959
36960         * lib/pipe2.c (pipe2): Move #ifs inside function.
36961
36962 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36963
36964         quotearg: document limitations of quote_these_too
36965         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
36966         those limitations are created.
36967         * lib/quotearg.h (set_char_quoting): Document that digits and
36968         letters that are special after backslash are not permitted.
36969         (quotearg_char): Cross-reference set_char_quoting documentation.
36970
36971 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
36972
36973         quotearg: implement custom_quoting_style
36974         * lib/quotearg.c: (struct quoting_options): Add left_quote and
36975         right_quote fields.
36976         (set_custom_quoting): New public function.
36977         (quotearg_buffer_restyled): Add left_quote and right_quote
36978         arguments, handle them very much like locale quoting, and update
36979         all uses.
36980         (quotearg_n_custom): New public function.
36981         (quotearg_n_custom_mem): New public function.
36982         (quotearg_custom): New public function.
36983         (quotearg_custom_mem): New public function.
36984         * lib/quotearg.h: Prototype and document new public functions.
36985         (enum quoting_style): For escape_quoting_style and
36986         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
36987         ignored even though they're otherwise like c_quoting_style.
36988         Add custom_quoting_style member and document with comparison to
36989         clocale_quoting_style.
36990         * tests/test-quotearg.c (custom_quotes): New array.
36991         (custom_results): New array.
36992         (main): Extend to test custom quoting.
36993
36994 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36995
36996         quotearg: fix right quote escaping when it's in quote_these_too
36997         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
36998         quote, be sure to prepend only one backslash.
36999         * tests/test-quotearg.c (use_quote_double_quotes): New function.
37000         (main): Test it.
37001
37002 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37003
37004         quotearg-tests: test escaping of embedded locale quotes
37005         * tests/test-quotearg.c (struct result_strings): Add member for
37006         new input.
37007         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
37008         (inputs): Add new input.
37009         (results_g): Add expected results.
37010         (flag_results): Likewise.
37011         (locale_results): Likewise.
37012         (compare_strings): Check those.
37013
37014 2009-08-23  Bruno Haible  <bruno@clisp.org>
37015
37016         Tests for module 'dup3'.
37017         * modules/dup3-tests: New file.
37018         * tests/test-dup3.c: New file.
37019
37020         New module 'dup3'.
37021         * lib/unistd.in.h (dup3): New declaration.
37022         * lib/dup3.c: New file.
37023         * m4/dup3.m4: New file.
37024         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
37025         HAVE_DUP3.
37026         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
37027         * modules/dup3: New file.
37028         * doc/glibc-functions/dup3.texi: Mention the new module.
37029
37030 2009-08-23  Bruno Haible  <bruno@clisp.org>
37031
37032         Tweak the dup2 test.
37033         * tests/test-dup2.c (main): Create the test file empty. Verify that an
37034         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
37035         the test file is still empty. Fix argument order of lseek.
37036
37037 2009-08-23  Bruno Haible  <bruno@clisp.org>
37038
37039         Avoid test link errors when the modules getopt-gnu, gettext are used.
37040         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
37041         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37042
37043 2009-08-23  Bruno Haible  <bruno@clisp.org>
37044
37045         Fix getdtablesize() on mingw.
37046         * lib/getdtablesize.c (getdtablesize): Implement differently.
37047         * lib/unistd.in.h (getdtablesize): Improve comment.
37048
37049 2009-08-23  Bruno Haible  <bruno@clisp.org>
37050
37051         New module 'mkostemp'.
37052         Based on Ulrich Drepper's 2007-08-10 change in glibc.
37053         * lib/stdlib.in.h (mksotemp): New declaration.
37054         * lib/mkostemp.c: New file, from glibc with modifications.
37055         * lib/tempname.h (GT_FILE): Remove outdated comment.
37056         (gen_tempname): Add flags argument.
37057         * lib/tempname.c (__GT_BIGFILE): Remove macro.
37058         (__GT_FILE): Map to 1.
37059         (small_open, large_open): Remove macros.
37060         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
37061         * lib/mkstemp.c (mkstemp): Update.
37062         * lib/mkdtemp.c (mkdtemp): Likewise.
37063         * m4/mkostemp.m4: New file.
37064         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
37065         HAVE_MKOSTEMP.
37066         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
37067         HAVE_MKOSTEMP.
37068         * modules/mkostemp: New file, based on modules/mkstemp.
37069         * doc/glibc-functions/mkostemp.texi: Mention the new module.
37070         * NEWS: Mention the change.
37071
37072 2009-08-23  Bruno Haible  <bruno@clisp.org>
37073
37074         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
37075         Reported by Eric Blake.
37076
37077 2009-08-23  Bruno Haible  <bruno@clisp.org>
37078
37079         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
37080         Reported by Eric Blake.
37081
37082 2009-08-23  Bruno Haible  <bruno@clisp.org>
37083
37084         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
37085         * modules/pipe2 (Depends-on): Likewise.
37086
37087 2009-08-23  Eric Blake  <ebb9@byu.net>
37088
37089         fcntl-h: add O_TTY_INIT support
37090         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
37091         * tests/test-fcntl-h.c (o): Test it.
37092         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37093
37094         fcntl-h: rename from fcntl, in preparation for fcntl(2)
37095         * modules/fcntl: Move <fcntl.h> header replacement...
37096         * modules/fcntl-h: ...to new name, so as not to collide with
37097         like-named function.
37098         * tests/test-fcntl.c: Rename...
37099         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
37100         * modules/fcntl-tests: Rename...
37101         * modules/fcntl-h-tests: ...to this.  Update test file name.
37102         * modules/chdir-long (Depends-on): Update clients.
37103         * modules/chdir-safer (Depends-on): Likewise.
37104         * modules/fcntl-safer (Depends-on): Likewise.
37105         * modules/fts (Depends-on): Likewise.
37106         * modules/mkancesdirs (Depends-on): Likewise.
37107         * modules/mkdir-p (Depends-on): Likewise.
37108         * modules/open (Depends-on): Likewise.
37109         * modules/savewd (Depends-on): Likewise.
37110         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
37111         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37112
37113 2009-08-22  Bruno Haible  <bruno@clisp.org>
37114
37115         * modules/binary-io (License): Relicense under LGPL.
37116         * modules/pipe2 (License): Likewise.
37117
37118 2009-08-22  Bruno Haible  <bruno@clisp.org>
37119
37120         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
37121         return value.
37122         * lib/pipe-filter-gi.c (filter_init): Likewise.
37123         Reported by Eric Blake.
37124
37125 2009-08-22  Bruno Haible  <bruno@clisp.org>
37126
37127         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
37128         * modules/pipe (Depends-on): Add pipe2.
37129
37130 2009-08-22  Bruno Haible  <bruno@clisp.org>
37131
37132         Tests for module 'pipe2'.
37133         * modules/pipe2-tests: New file.
37134         * tests/test-pipe2.c: New file.
37135
37136         New module 'pipe2'.
37137         * lib/unistd.in.h (pipe2): New declaration.
37138         * lib/pipe2.c: New file.
37139         * m4/pipe2.m4: New file.
37140         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
37141         HAVE_PIPE2.
37142         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
37143         * modules/pipe2: New file.
37144         * doc/glibc-functions/pipe2.texi: Mention the new module.
37145
37146 2009-08-22  Bruno Haible  <bruno@clisp.org>
37147
37148         Reference some new glibc functions.
37149         * doc/glibc-functions/accept4.texi: New file.
37150         * doc/glibc-functions/dup3.texi: New file.
37151         * doc/glibc-functions/mkostemp.texi: New file.
37152         * doc/glibc-functions/pipe2.texi: New file.
37153         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
37154         (Glibc sys/socket.h): Refer to accept4.
37155         (Glibc unistd.h): Refer to dup3, pipe2.
37156         Reported by Eric Blake.
37157
37158 2009-08-22  Jim Meyering  <meyering@redhat.com>
37159             Bruno Haible  <bruno@clisp.org>
37160
37161         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
37162         This makes it so packages using automake-1.11's silent-rules option
37163         can print e.g., a single "GEN    configmake.h" line, rather than
37164         the 30+ statements that perform the job.  If you want to see the
37165         actual commands, you can still run "make V=1".
37166         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
37167         so that make output is abbreviated when those variables are defined
37168         appropriately.
37169         * modules/argz: Likewise.
37170         * modules/arpa_inet: Likewise.
37171         * modules/byteswap: Likewise.
37172         * modules/configmake: Likewise.
37173         * modules/dirent: Likewise.
37174         * modules/errno: Likewise.
37175         * modules/fcntl: Likewise.
37176         * modules/float: Likewise.
37177         * modules/fnmatch: Likewise.
37178         * modules/getopt-posix: Likewise.
37179         * modules/glob: Likewise.
37180         * modules/iconv_open: Likewise.
37181         * modules/inttypes: Likewise.
37182         * modules/localcharset: Likewise.
37183         * modules/locale: Likewise.
37184         * modules/math: Likewise.
37185         * modules/netdb: Likewise.
37186         * modules/netinet_in: Likewise.
37187         * modules/poll: Likewise.
37188         * modules/posix_spawnp-tests: Likewise.
37189         * modules/sched: Likewise.
37190         * modules/search: Likewise.
37191         * modules/selinux-h: Likewise.
37192         * modules/signal: Likewise.
37193         * modules/spawn: Likewise.
37194         * modules/stdarg: Likewise.
37195         * modules/stdbool: Likewise.
37196         * modules/stddef: Likewise.
37197         * modules/stdint: Likewise.
37198         * modules/stdio: Likewise.
37199         * modules/stdlib: Likewise.
37200         * modules/string: Likewise.
37201         * modules/strings: Likewise.
37202         * modules/sys_file: Likewise.
37203         * modules/sys_ioctl: Likewise.
37204         * modules/sys_select: Likewise.
37205         * modules/sys_socket: Likewise.
37206         * modules/sys_stat: Likewise.
37207         * modules/sys_time: Likewise.
37208         * modules/sys_times: Likewise.
37209         * modules/sys_utsname: Likewise.
37210         * modules/sys_wait: Likewise.
37211         * modules/sysexits: Likewise.
37212         * modules/time: Likewise.
37213         * modules/unistd: Likewise.
37214         * modules/wchar: Likewise.
37215         * modules/wctype: Likewise.
37216
37217 2009-08-22  Jim Meyering  <meyering@redhat.com>
37218
37219         announce-gen: detect write failure
37220         * build-aux/announce-gen: Add Coda at end.
37221         Remove equivalent-but-more-verbose block at top.
37222
37223 2009-08-19  Akim Demaille  <demaille@gostai.com>
37224
37225         bootstrap: --help to stdout.
37226         * bootstrap (usage): Don't send --help to stderr.
37227         Use a here doc instead of a long string.
37228
37229 2009-08-21  Eric Blake  <ebb9@byu.net>
37230
37231         test-popen-safer: split from test-popen
37232         * tests/test-popen.c (main): Move...
37233         * tests/test-popen.h: ...into new file.
37234         * tests/test-popen-safer2.c: New file.
37235         * modules/popen-tests (Files): Add test-popen.h.
37236         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
37237         Suggested by Bruno Haible.
37238
37239         test-fcntl-safer: split from test-open
37240         * tests/test-open.c (main): Move...
37241         * tests/test-open.h: ...into new file.
37242         * tests/test-fcntl-safer.c: New file.
37243         * modules/open-tests (Files): Add test-open.h.
37244         * modules/fcntl-safer-tests: New file.
37245         Suggested by Bruno Haible.
37246
37247         test-fopen-safer: split from test-fopen
37248         * tests/test-fopen.c (main): Move...
37249         * tests/test-fopen.h: ...into new file.
37250         * tests/test-fopen-safer.c: New file.
37251         * modules/fopen-tests (Files): Add test-fopen.h.
37252         * modules/fopen-safer-tests: New file.
37253         Suggested by Bruno Haible.
37254
37255 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
37256
37257         popen-safer: test O_CLOEXEC at run-time.
37258         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
37259
37260 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
37261
37262         fcntl: move more flags to the header
37263         * lib/cloexec.c: Do not define FD_CLOEXEC here.
37264         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
37265         * lib/fcntl.in.h: Do both things here.
37266
37267 2009-08-21  Jim Meyering  <meyering@redhat.com>
37268
37269         consistently remove $@-t before redirecting to it
37270         * modules/argz: Remove $@-t and $@ before redirecting to the former.
37271         * modules/alloca-opt: Likewise.
37272         * modules/byteswap: Likewise.
37273         * modules/fnmatch: Likewise.
37274         * modules/getopt-posix: Likewise.
37275         * modules/glob: Likewise.
37276         * modules/poll: Likewise.
37277         * modules/posix_spawnp-tests: Likewise.
37278         * modules/sys_socket: Likewise.
37279         * modules/sysexits: Likewise.
37280
37281 2009-08-21  Eric Blake  <ebb9@byu.net>
37282
37283         popen: simplify access to original popen
37284         * lib/popen.c (rpl_popen): No need to worry about popen being a
37285         macro.
37286         Reported by Bruno Haible.
37287
37288 2009-08-20  Eric Blake  <ebb9@byu.net>
37289
37290         build: avoid some compiler warnings
37291         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
37292         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
37293         type.
37294         (new_exclude_segment, excluded_file_pattern_p)
37295         (excluded_file_name_p): Reduce scope.
37296         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
37297         old-style declaration.
37298
37299 2009-08-20  Simon Josefsson  <simon@josefsson.org>
37300
37301         * tests/test-exclude1.sh: Handle Windows EOL.
37302         * tests/test-exclude2.sh: Likewise.
37303         * tests/test-exclude3.sh: Likewise.
37304         * tests/test-exclude4.sh: Likewise.
37305         * tests/test-exclude5.sh: Likewise.
37306         * tests/test-exclude6.sh: Likewise.
37307         * tests/test-exclude7.sh: Likewise.
37308
37309 2009-08-19  Akim Demaille  <demaille@gostai.com>
37310
37311         bootstrap: find sha1sum when named gsha1sum.
37312         * bootstrap (find_tool): New.
37313         ($SHA1SUM): New.
37314         Use it.
37315
37316 2009-08-20  Jim Meyering  <meyering@redhat.com>
37317
37318         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
37319         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
37320         expression that converts "." in a file name to "\." in the resulting
37321         regexp.  Start with a dummy statement, so that prior shell variable
37322         definitions are expanded portably.  Reported by Simon Josefsson.
37323
37324 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
37325
37326         Fix polling for writeability of a screen buffer.
37327         * lib/poll.c: Distinguish input and screen buffers for the
37328         Win32 implementation.
37329         * lib/select.c: Likewise.
37330
37331 2009-08-19  Eric Blake  <ebb9@byu.net>
37332
37333         popen-safer: prevent popen from clobbering std descriptors
37334         * modules/popen-safer: New file.
37335         * lib/popen-safer.c: Likewise.
37336         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
37337         * lib/stdio--.h (popen): Provide override.
37338         * lib/stdio-safer.h (popen_safer): Provide declaration.
37339         * tests/test-popen.c (includes): Partially test this.
37340         * modules/popen-safer-tests: New file, for more tests.
37341         * tests/test-popen-safer.c: Likewise.
37342         * MODULES.html.sh (file stream based Input/Output): Mention it.
37343
37344         tests: test some of the *-safer modules
37345         * modules/fopen-safer (Depends-on): Add fopen.
37346         * modules/fcntl-safer (Depends-on): Add fcntl.
37347         * modules/stdlib-safer (Depends-on): Add stdlib.
37348         (configure.ac): Set indicator.
37349         * modules/unistd-safer (configure.ac): Likewise.
37350         * modules/tmpfile-safer (configure.ac): Likewise.
37351         (Depends-on): Add tmpfile.
37352         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
37353         active.
37354         * tests/test-fopen.c (includes): Test safer versions when they are
37355         in use.
37356         * tests/test-open.c (includes): Likewise.
37357
37358         popen: fix cygwin 1.5 bug when stdin closed
37359         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
37360         * modules/popen: New file.
37361         * modules/popen-tests: Likewise.
37362         * tests/test-popen.c: Likewise.
37363         * m4/popen.m4: Likewise.
37364         * lib/popen.c: Likewise.
37365         * lib/stdio.in.h (popen): New declaration.
37366         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
37367         * modules/stdio (Makefile.am): Likewise.
37368         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
37369
37370 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
37371
37372         maint.mk: give full control over update-copyright exclusions
37373         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
37374         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
37375         (update-copyright): Don't force inclusion of top-level
37376         ChangeLog.  Don't force exclusion of all COPYING files, but make
37377         them the default exclusion instead.
37378
37379 2009-08-16  Bruno Haible  <bruno@clisp.org>
37380
37381         Fix test failures on Solaris 10.
37382         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
37383         tests when Solaris iconv() is used.
37384         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
37385         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
37386         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
37387         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
37388         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
37389
37390 2009-08-16  Bruno Haible  <bruno@clisp.org>
37391
37392         Fix test failures on Solaris 10.
37393         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
37394         'tr' program and pass it as first argument.
37395         * tests/test-pipe-filter-gi1.sh: Likewise.
37396         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
37397         program as first argument.
37398         * tests/test-pipe-filter-gi1.c (main): Likewise.
37399
37400 2009-08-16  Eric Blake  <ebb9@byu.net>
37401
37402         fpurge: fix previous commits
37403         * modules/fpurge (Makefile.am): Make replacement conditional,
37404         partially reverting 2007-04-29 change; missed in previous
37405         attempt.
37406         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
37407         is missing.
37408
37409 2009-08-16  Bruno Haible  <bruno@clisp.org>
37410
37411         Clarify fpurge's effect on the file position.
37412         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
37413         * tests/test-fpurge.c (main): Make a second pass for checking the file
37414         position.
37415
37416 2009-08-16  Bruno Haible  <bruno@clisp.org>
37417
37418         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
37419         declaration of fpurge is missing.
37420         * tests/test-fpurge.c (main): Check that the file has not more contents
37421         than expected. Close the file before removing it.
37422
37423 2009-08-15  Eric Blake  <ebb9@byu.net>
37424
37425         fpurge: don't wrap working cygwin implementation
37426         * lib/fpurge.c (fpurge): Fix comment typo.
37427         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
37428         1.7 to avoid replacement.
37429         * tests/test-fpurge.c (main): Enhance test.
37430
37431 2009-08-15  Eric Blake  <ebb9@byu.net>
37432         and Jim Meyering  <meyering@redhat.com>
37433
37434         test-update-copyright: skip if perl is insufficient
37435         * tests/test-update-copyright.sh: Failure to run maintainer tool
37436         should not cause testsuite failure on cygwin 1.5.
37437
37438 2009-08-14  Eric Blake  <ebb9@byu.net>
37439
37440         doc: mention more functions added in cygwin 1.7.0
37441         * doc/posix-headers/limits.texi (limits.h): Update for recent
37442         cygwin additions.
37443         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
37444         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
37445         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
37446         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
37447         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
37448
37449 2009-08-14  Eric Blake  <ebb9@byu.net>
37450
37451         maint.mk: simplify update-copyright rule
37452         * top/maint.mk (update-copyright-local): Delete, and document how
37453         to do it in cfg.mk instead.
37454         (update-copyright-exclude-regexp): Delete, and document how to do
37455         it in .x-update-copyright instead.
37456         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
37457         exclude ChangeLog.
37458
37459 2009-08-14  Bruno Haible  <bruno@clisp.org>
37460
37461         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
37462
37463 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37464
37465         maint.mk: support update-copyright-env
37466         * top/maint.mk (update-copyright-env): Define place-holder.
37467         (update-copyright): Expand $(update-copyright-env) before
37468         invoking update-copyright.
37469
37470 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37471
37472         update-copyright: implement forced reformatting
37473         * build-aux/update-copyright: Implement and document
37474         UPDATE_COPYRIGHT_FORCE.
37475         * tests/test-update-copyright.sh: Test it.
37476
37477 2009-08-14  Eric Blake  <ebb9@byu.net>
37478         and Bruno Haible  <bruno@clisp.org>
37479
37480         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
37481         * tests/test-locale.c: Revert previous patch related to NULL.
37482         * tests/test-stdio.c: Likewise.
37483         * tests/test-stdlib.c: Likewise.
37484         * tests/test-string.c: Likewise.
37485         * tests/test-unistd.c: Likewise.
37486         * modules/time-tests (Depends-on): Add verify.
37487         * modules/wchar-tests (Depends-on): Likewise.
37488         * tests/test-time.c: Test for NULL compliance.
37489         * tests/test-wchar.c: Likewise.
37490         * modules/locale (Depends-on): Add stddef.
37491         * modules/stdio (Depends-on): Likewise.
37492         * modules/stdlib (Depends-on): Likewise.
37493         * modules/string (Depends-on): Likewise.
37494         * modules/time (Depends-on): Likewise.
37495         * modules/unistd (Depends-on): Likewise.
37496         * modules/wchar (Depends-on): Likewise.
37497         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
37498         * lib/stdlib.in.h (includes): Likewise.
37499         * lib/string.in.h (includes): Likewise.
37500         * lib/time.in.h (includes): Likewise.
37501         * lib/unistd.in.h (includes): Likewise.
37502         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
37503         replaced.
37504         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37505         * m4/stddef_h.m4: New file.
37506         * modules/stddef: Likewise.
37507         * lib/stddef.in.h: Likewise.
37508         * modules/stddef-tests: Likewise.
37509         * tests/test-stddef.c: Likewise.
37510         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
37511         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
37512         * doc/posix-headers/locale.texi (locale.h): Likewise.
37513         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
37514         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
37515         * doc/posix-headers/string.texi (string.h): Likewise.
37516         * doc/posix-headers/time.texi (time.h): Likewise.
37517         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
37518         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
37519
37520 2009-08-14  Eric Blake  <ebb9@byu.net>
37521
37522         doc: improve git diff of texinfo files
37523         * .gitattributes: Add rule for *.texi files, with hint on how to
37524         use it.
37525         Copied from m4, and based on a report by Bruno Haible.
37526
37527 2009-08-14  Bruno Haible  <bruno@clisp.org>
37528
37529         Disable multithread support by default on Cygwin 1.5.x for real.
37530         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
37531
37532 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37533
37534         update-copyright: much ado about intervals
37535         * build-aux/update-copyright: Implement and document
37536         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
37537         of copyright year intervals.
37538         Also, document UPDATE_COPYRIGHT_YEAR.
37539         * tests/test-update-copyright.sh: Test it.
37540
37541         update-copyright: convert 2-digit to 4-digit years
37542         * build-aux/update-copyright: Implement and document.
37543         * tests/test-update-copyright.sh: Update.
37544
37545 2009-08-14  Jim Meyering  <meyering@redhat.com>
37546
37547         test-exclude: avoid coreutils "make check" failure
37548         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
37549         just as in test-argmatch.c.
37550
37551 2009-08-13  Eric Blake  <ebb9@byu.net>
37552
37553         test-dup2: fix bad assumption
37554         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
37555         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
37556
37557         test-version-etc: fix CRLF portability issue
37558         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
37559         recognize \r.
37560         * tests/test-argp-version-etc-1.sh: Likewise.
37561
37562         getopt: update client modules
37563         * modules/argp (Depends-on): Use getopt-gnu.
37564         * modules/git-merge-changelog (Depends-on): Likewise.
37565         * modules/long-options (Depends-on): Likewise.
37566         * modules/xstrtol (Depends-on): Likewise.
37567
37568 2009-08-13  Simon Josefsson  <simon@josefsson.org>
37569
37570         * tests/test-version-etc.sh: Don't fail on different
37571         project/version.  Don't fail on CRLF differences.  Rewrite to use
37572         multiple -e instead of multiple sed forks, suggested by Eric Blake
37573         <ebb9@byu.net>.
37574         * tests/test-argp-version-etc-1.sh: Likewise.
37575
37576 2009-08-13  Simon Josefsson  <simon@josefsson.org>
37577
37578         * tests/test-version-etc.sh: Don't fail on different
37579         project/version.
37580
37581 2009-08-12  Bruno Haible  <bruno@clisp.org>
37582
37583         Tests for modules 'getopt-posix', 'getopt-gnu'.
37584         * modules/getopt-posix-tests: New file.
37585         * tests/test-getopt.c: New file.
37586         * tests/test-getopt.h: New file.
37587         * tests/test-getopt_long.h: New file.
37588
37589         New modules 'getopt-posix', 'getopt-gnu'.
37590         * modules/getopt-gnu: New file, renamed from modules/getopt.
37591         * modules/getopt-posix: New file.
37592         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
37593         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
37594         (gl_GETOPT): Remove macro.
37595         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
37596         Disable the test against BSD systems that declare optreset. Test
37597         against mingw bug. Test against lack of support of optional arguments
37598         on many platforms.
37599         * doc/glibc-headers/getopt.texi: Update module name and list of
37600         relevant platforms.
37601         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
37602         'getopt-gnu' and more portability problems.
37603         * NEWS: Mention the changes.
37604
37605 2009-08-12  Bruno Haible  <bruno@clisp.org>
37606
37607         Ensure that optarg etc. get declared by <unistd.h>.
37608         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
37609         AC_USE_SYSTEM_EXTENSIONS.
37610         * modules/getopt (Depends-on): Add 'extensions'.
37611
37612 2009-08-12  Bruno Haible  <bruno@clisp.org>
37613
37614         Avoid test link errors.
37615         * modules/pipe-filter-ii-tests (Makefile.am): Define
37616         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
37617         * modules/pipe-filter-gi-tests (Makefile.am): Define
37618         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
37619         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37620
37621 2009-08-12  Bruno Haible  <bruno@clisp.org>
37622
37623         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
37624         gl_GETOPT_SUBSTITUTE before.
37625         (gl_GETOPT): Use it.
37626         * m4/argp.m4 (gl_ARGP): Update.
37627         Reported by Sergey Poznyakoff.
37628
37629         * m4/getopt.m4: Reorder macros.
37630         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
37631         (gl_GETOPT_SUBSTITUTE): Remove macro.
37632
37633 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37634
37635         Minor improvement in gitlog-to-changelog
37636
37637         * build-aux/gitlog-to-changelog: New option `--format' makes
37638         output format string configurable.
37639
37640 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37641
37642         Optimize exclude: use hash tables for non-wildcard patterns.
37643
37644         * lib/exclude.c: Include hash.h and mbuiter.h
37645         (struct exclude_pattern, exclude_segment): New data types.
37646         (struct exclude): Rewrite.
37647         (fnmatch_pattern_has_wildcards): New function.
37648         (new_exclude_segment, free_exclude_segment): New functions.
37649         (excluded_file_pattern_p, excluded_file_name_p): New functions.
37650         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
37651         * lib/exclude.h (is_fnmatch_pattern): New prototype.
37652         * modules/exclude: Depend on hash and mbuiter.
37653
37654         * modules/exclude-tests: New file.
37655         * tests/test-exclude.c: New file.
37656         * tests/test-exclude1.sh: New file.
37657         * tests/test-exclude2.sh: New file.
37658         * tests/test-exclude3.sh: New file.
37659         * tests/test-exclude4.sh: New file.
37660         * tests/test-exclude5.sh: New file.
37661         * tests/test-exclude6.sh: New file.
37662         * tests/test-exclude7.sh: New file.
37663
37664 2009-08-12  Bruno Haible  <bruno@clisp.org>
37665
37666         Ensure that getopt() gets declared by <unistd.h>.
37667         * lib/unistd.in.h: Conditionally include getopt.h.
37668         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
37669         Set GNULIB_UNISTD_H_GETOPT.
37670         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37671         GNULIB_UNISTD_H_GETOPT.
37672         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
37673
37674 2009-08-12  Bruno Haible  <bruno@clisp.org>
37675
37676         Clarify logic.
37677         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
37678         gl_replace_getopt instead of GETOPT_H.
37679
37680 2009-08-12  Bruno Haible  <bruno@clisp.org>
37681
37682         * m4/getopt.m4: Add comments.
37683
37684 2009-08-12  Bruno Haible  <bruno@clisp.org>
37685
37686         Disable multithread support by default on Cygwin 1.5.x.
37687         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
37688         set gl_use_threads=no if not specified otherwise.
37689
37690 2009-08-11  Bruno Haible  <bruno@clisp.org>
37691
37692         Avoid compilation error on NetBSD 5.0.
37693         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
37694         * tests/test-stdio.c: Likewise.
37695         * tests/test-stdlib.c: Likewise.
37696         * tests/test-string.c: Likewise.
37697         * tests/test-unistd.c: Likewise.
37698         Reported by Greg Troxel <gdt@ir.bbn.com>
37699         at <https://savannah.gnu.org/support/?106973>.
37700
37701 2009-08-11  Bruno Haible  <bruno@clisp.org>
37702
37703         * modules/dup2-tests (Depends-on): Remove close.
37704
37705         Undo 2009-07-19 commit.
37706         * modules/acl-tests (Depends-on): Remove close.
37707         * modules/binary-io-tests (Depends-on): Likewise.
37708         * modules/closein-tests (Depends-on): Likewise.
37709         * modules/flock-tests (Depends-on): Likewise.
37710         * modules/fsync-tests (Depends-on): Likewise.
37711         * modules/lseek-tests (Depends-on): Likewise.
37712         * modules/pipe-tests (Depends-on): Likewise.
37713         * modules/posix_spawn-tests (Depends-on): Likewise.
37714         * modules/posix_spawnp-tests (Depends-on): Likewise.
37715         * modules/stat-time-tests (Depends-on): Likewise.
37716         * modules/yesno-tests (Depends-on): Likewise.
37717
37718 2009-08-10  Bruno Haible  <bruno@clisp.org>
37719
37720         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
37721
37722 2009-08-10  Bruno Haible  <bruno@clisp.org>
37723
37724         Fix a gcc warning.
37725         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
37726
37727 2009-08-10  Bruno Haible  <bruno@clisp.org>
37728
37729         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
37730         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
37731         not only the first time.
37732         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
37733         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
37734         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
37735         is 1, not only the the first time.
37736
37737 2009-08-10  Bruno Haible  <bruno@clisp.org>
37738
37739         Make it possible to use module 'gethostname' without module 'close'.
37740         * lib/unistd.in.h (close): Evoke a link error only if
37741         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37742         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37743         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37744         * modules/unistd (Makefile.am): Substitute
37745         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37746         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
37747         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37748         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
37749         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37750         * modules/sys_ioctl (Makefile.am): Substitute
37751         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37752         * modules/socket (configure.ac): On native Windows, set
37753         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
37754         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37755         Reported by Sam Steingold <sds@gnu.org>.
37756
37757 2009-08-10  Bruno Haible  <bruno@clisp.org>
37758
37759         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
37760         * modules/ioctl (configure.ac): Likewise.
37761
37762 2009-08-10  Bruno Haible  <bruno@clisp.org>
37763
37764         Avoid collision between gnulib wrapper and libintl wrapper.
37765         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
37766         already defined in intl/printf.c.
37767         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
37768         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
37769
37770 2009-08-09  Bruno Haible  <bruno@clisp.org>
37771
37772         Make <sys/select.h> really self-contained, also on Solaris 10.
37773         * lib/sys_select.in.h: Include <string.h>.
37774         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
37775         Solaris 10 problem.
37776         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
37777         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
37778         Reported by Jim Meyering.
37779
37780 2009-08-09  Bruno Haible  <bruno@clisp.org>
37781
37782         Avoid warnings from 'aclocal' that are due to a use of macro name
37783         AM_XGETTEXT_OPTION that is not defined in automake.
37784         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
37785         automake.
37786         * modules/error (configure.ac): Likewise.
37787         * modules/propername (configure.ac): Likewise.
37788         * modules/vasprintf (configure.ac): Likewise.
37789         * modules/verror (configure.ac): Likewise.
37790         * modules/xprintf (configure.ac): Likewise.
37791         * modules/xvasprintf (configure.ac): Likewise.
37792
37793 2009-08-08  Bruno Haible  <bruno@clisp.org>
37794
37795         Avoid compilation error in C++ mode.
37796         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
37797         Reported by Sam Steingold <sds@gnu.org>.
37798
37799 2009-08-08  Bruno Haible  <bruno@clisp.org>
37800
37801         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
37802         for the various Unix platforms.
37803         * doc/posix-headers/limits.texi: Update platforms list regarding
37804         HOST_NAME_MAX.
37805         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37806
37807 2009-08-07  Jim Meyering  <meyering@redhat.com>
37808
37809         selinux-at: fix typo in a comment
37810         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
37811         Spotted by Paolo Bonzini.
37812
37813         selinux-at: remove redundant m4 code, add documentation
37814         * modules/selinux-at (configure.ac): Remove redundant code.
37815         LIB_SELINUX is already set via the dependent module, selinux-h.
37816         (Include): Add quotes around selinux-at.h.
37817         * lib/selinux-at.h: Add documentation.
37818         Reported by Bruno Haible in
37819         http://marc.info/?l=gnulib-bug&m=124958988300749
37820
37821 2009-08-07  Bruno Haible  <bruno@clisp.org>
37822
37823         Avoid link error on MacOS X 10.3 and 10.4.
37824         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
37825         on non-ELF systems.
37826         * lib/argp-pv.c (argp_program_version): Likewise.
37827         Reported by Simon Josefsson.
37828
37829 2009-08-07  Simon Josefsson  <simon@josefsson.org>
37830
37831         * tests/test-version-etc.sh: Use $EXEEXT.
37832
37833 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
37834
37835         update-copyright: update documentation to point to maint.mk
37836         * build-aux/update-copyright: Here.
37837
37838 2009-08-06  Jim Meyering  <meyering@redhat.com>
37839
37840         maint.mk: support update-copyright-local
37841         * top/maint.mk (update-copyright-local): Define place-holder.
37842         (update-copyright): Depend on $(update-copyright-local).
37843
37844 2009-08-06  Jim Meyering  <meyering@redhat.com>
37845
37846         selinux-at: new module
37847         Initially written for coreutils, this module will soon be
37848         used by findutils, too.
37849         * MODULES.html.sh [Misc]: Add selinux-at.
37850         * lib/selinux-at.h: New file, from coreutils.
37851         * lib/selinux-at.c: Likewise.
37852         * modules/selinux-at: Likewise.
37853         (License): Change from LGPL to GPL, since it depends
37854         on the GPL'd openat module.
37855
37856         doc: update README
37857         * README: Remove references to cogito.
37858         Remove cvs-repo-updating instructions from 2007.
37859         Don't imply that CVS is better if you have limited disk space.
37860
37861 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37862
37863         update-copyright: support C-style comments
37864         * build-aux/update-copyright: Implement and document.
37865         * tests/test-update-copyright.sh: Test.
37866
37867 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37868
37869         update-copyright: support omitted "(C)"
37870         * build-aux/update-copyright: Implement and document.  Also,
37871         allow variable whitespace before "(C)".
37872         * tests/test-update-copyright.sh: Test.
37873
37874 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37875
37876         update-copyright: don't trip on non-FSF copyright statements
37877         * build-aux/update-copyright: Fix so that the first correctly
37878         formatted FSF copyright statement is recognized no matter what
37879         appears before it.  Update documentation.
37880         * tests/test-update-copyright.sh: Test that.
37881
37882 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37883
37884         update-copyright: clean up code a little
37885         * build-aux/update-copyright: Append "_re" to the name of any
37886         variable holding a regular expression.
37887         Replace "old" and "new" with "stmt" in variable names.
37888         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
37889         handled correctly.
37890         Format code more consistently.
37891
37892 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37893
37894         update-copyright-tests: improve portability
37895         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
37896         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
37897
37898 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37899
37900         update-copyright: support @copyright{} and &copy;
37901         * build-aux/update-copyright: Implement and document.
37902         * tests/test-update-copyright.sh: Test.
37903
37904 2009-08-04  Jim Meyering  <meyering@redhat.com>
37905
37906         update-copyright-tests: correctly test EOL=\r\n handling
37907         * tests/test-update-copyright.sh: Put \r at the end of some lines
37908         for the dos-eol tests.  Based on a patch by Joel E. Denny.
37909
37910         maint.mk: make update-copyright exclusion list more configurable
37911         * top/maint.mk (update-copyright): Default to excluding COPYING,
37912         but allow an override, in case someone does want to update that file.
37913
37914         maint.mk: don't update copyright date in COPYING
37915         * top/maint.mk (update-copyright): Exclude COPYING.
37916
37917         maint.mk: add a copyright-updating rule
37918         * top/maint.mk (update-copyright): New rule.
37919         Derived from coreutils/Makefile.am.
37920
37921         update-copyright: rename some variables
37922         * build-aux/update-copyright: Rename a few variables for clarity.
37923         Tweak syntax.  List Joel E. Denny as coauthor.
37924
37925 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37926
37927         update-copyright: fix bug for 2-digit last year and add tests
37928         * build-aux/update-copyright: Fix bug.
37929         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
37930         specified.
37931         * modules/update-copyright-tests: New
37932         * tests/test-update-copyright.sh: New.
37933
37934 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37935
37936         update-copyright: handle leading tabs in line prefix
37937         * build-aux/update-copyright: Count leading tabs as 8 spaces
37938         when computing margin.  This helps with the formatting of
37939         ChangeLogs, for example.
37940         Fix documentation a little.
37941
37942 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37943
37944         update-copyright: support EOL=\r\n
37945         * build-aux/update-copyright: Implement that.
37946
37947 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37948
37949         update-copyright: automatically format copyright statements
37950         * build-aux/update-copyright: Implement that.
37951         Also, be a little more predictable and safer by always failing
37952         when the full copyright format is not perfectly recognized as an
37953         unbroken whole.  Discussed at
37954         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
37955         Rewrite documentation.
37956
37957 2009-08-03  Bruno Haible  <bruno@clisp.org>
37958
37959         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
37960
37961 2009-08-02  Bruno Haible  <bruno@clisp.org>
37962
37963         Tests for module 'uname'.
37964         * modules/uname-tests: New file.
37965         * tests/test-uname.c: New file.
37966
37967         New module 'uname'.
37968         * lib/uname.c: New file.
37969         * m4/uname.m4: New file.
37970         * modules/uname: New file.
37971         * doc/posix-functions/uname.texi: Mention the new module.
37972
37973 2009-08-02  Bruno Haible  <bruno@clisp.org>
37974
37975         Tests for module 'sys_utsname'.
37976         * modules/sys_utsname-tests: New file.
37977         * tests/test-sys_utsname.c: New file.
37978
37979         New module 'sys_utsname'.
37980         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
37981         * m4/sys_utsname_h.m4: New file.
37982         * modules/sys_utsname: New file.
37983         * doc/posix-headers/sys_utsname.texi: Mention the new module.
37984
37985 2009-08-02  Bruno Haible  <bruno@clisp.org>
37986
37987         Implicitly initialize the sockets library.
37988         * lib/gethostname.c: Include sockets.h.
37989         (rpl_gethostname): Invoke gl_sockets_startup.
37990         * lib/socket.c: Include sockets.h.
37991         (rpl_socket): Invoke gl_sockets_startup.
37992         * modules/gethostname (Depends-on): Add sockets.
37993         * modules/socket (Depends-on): Likewise.
37994         * tests/test-poll.c: Don't include sockets.h.
37995         (main): Don't invoke gl_sockets_startup.
37996         * tests/test-select.c: Don't include sockets.h.
37997         (main): Don't invoke gl_sockets_startup.
37998
37999 2009-08-02  Bruno Haible  <bruno@clisp.org>
38000
38001         Allow multiple calls to gl_sockets_startup.
38002         * lib/sockets.c (initialized_sockets_version): New variable.
38003         (gl_sockets_startup): Do nothing if already called for this or a higher
38004         version.
38005         (gl_sockets_cleanup): Reset initialized_sockets_version.
38006
38007 2009-08-03  Simon Josefsson  <simon@josefsson.org>
38008
38009         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
38010         different project/version.
38011
38012 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
38013             Bruno Haible  <bruno@clisp.org>
38014
38015         Tests for module 'pipe-filter-gi'.
38016         * modules/pipe-filter-gi-tests: New file.
38017         * tests/test-pipe-filter-gi1.sh: New file.
38018         * tests/test-pipe-filter-gi1.c: New file.
38019         * tests/test-pipe-filter-gi2.sh: New file.
38020         * tests/test-pipe-filter-gi2-main.c: New file.
38021         * tests/test-pipe-filter-gi2-child.c: New file.
38022
38023         New module 'pipe-filter-gi'.
38024         * lib/pipe-filter-gi.c: New file.
38025         * modules/pipe-filter-gi: New file.
38026
38027 2009-08-02  Bruno Haible  <bruno@clisp.org>
38028             Paolo Bonzini  <bonzini@gnu.org>
38029
38030         Tests for module 'pipe-filter-ii'.
38031         * modules/pipe-filter-ii-tests: New file.
38032         * tests/test-pipe-filter-ii1.sh: New file.
38033         * tests/test-pipe-filter-ii1.c: New file.
38034         * tests/test-pipe-filter-ii2.sh: New file.
38035         * tests/test-pipe-filter-ii2-main.c: New file.
38036         * tests/test-pipe-filter-ii2-child.c: New file.
38037
38038         New module 'pipe-filter-ii'.
38039         * lib/pipe-filter.h: New file.
38040         * lib/pipe-filter-ii.c: New file.
38041         * lib/pipe-filter-aux.h: New file.
38042         * modules/pipe-filter-ii: New file.
38043
38044 2009-08-02  Simon Josefsson  <simon@josefsson.org>
38045
38046         * lib/gc-libgcrypt.c: Change copyright to FSF.
38047         * lib/gc-gnulib.c: Likewise.
38048
38049 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
38050
38051         * lib/gethostname.c: Include limits.h.
38052
38053 2009-08-02  Simon Josefsson  <simon@josefsson.org>
38054             Bruno Haible  <bruno@clisp.org>
38055
38056         Ensure HOST_NAME_MAX as part of the gethostname module.
38057         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
38058         define also HOST_NAME_MAX.
38059         * tests/test-gethostname.c: Include <limits.h>.
38060         (main): Check also HOST_NAME_MAX.
38061         * doc/posix-headers/limits.texi: Document the mingw problem.
38062
38063 2009-08-02  Bruno Haible  <bruno@clisp.org>
38064
38065         * lib/gethostname.c (gethostname): Fix handling of large len argument.
38066         Add comments.
38067
38068 2009-03-31  Simon Josefsson  <simon@josefsson.org>
38069
38070         * lib/gethostname.c: Add Windows wrapper.
38071         * m4/gethostname.m4: Look for gethostname in -lws2_32.
38072         * modules/gethostname: Depend on sys_socket & errno, for also
38073         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
38074         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
38075
38076 2009-07-31  Jim Meyering  <meyering@redhat.com>
38077
38078         getloadavg: fix symbol name in comment
38079         * lib/getloadavg.c: Correct a typo I introduced when adding
38080         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
38081         Matt Kraai spotted the problem.
38082
38083 2009-07-29  Matt Kraai  <mkraai@beckman.com>
38084
38085         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
38086         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
38087         code also if ! defined N_NAME_POINTER.
38088         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
38089         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
38090         but the n_name member is a 12-byte array.
38091
38092 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
38093
38094         update-copyright: generalize comment handling
38095         * build-aux/update-copyright: Handle copyright statements
38096         within more comment styles.
38097         Document usage.
38098         Report any file with an external copyright holder or parse failure.
38099
38100 2009-07-29  Jim Meyering  <meyering@redhat.com>
38101
38102         mktime: correct setting of REPLACE_MKTIME
38103         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
38104
38105         update-copyright: new module
38106         * modules/update-copyright: New file.
38107         * build-aux/update-copyright: New file.
38108         * MODULES.html.sh (maint+release support): Add update-copyright.
38109
38110 2009-07-27  Bruno Haible  <bruno@clisp.org>
38111
38112         Fix compilation error when <ctime> is used and mktime is replaced.
38113         * lib/time.in.h (mktime): New declaration.
38114         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
38115         REPLACE_MKTIME instead of defining mktime in config.h.
38116         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
38117         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
38118         Reported by Ross McFarland <rwmcfa1@neces.com>.
38119
38120 2009-07-27  Bruno Haible  <bruno@clisp.org>
38121
38122         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
38123         Reported by Matt Kraai <mkraai@beckman.com>.
38124
38125 2009-07-25  Jim Meyering  <meyering@redhat.com>
38126
38127         maint.mk: avoid warnings about missing files
38128         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
38129         diagnostic when .prev-version does not exist.
38130         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
38131         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
38132         nonexistent cfg.mk.
38133         Suggestions from Simon Josefsson.
38134
38135 2009-07-25  Bruno Haible  <bruno@clisp.org>
38136
38137         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
38138         defined as macros. Needed on QNX 6.4.1.
38139         Reported by Matt Kraai <mkraai@beckman.com>.
38140
38141 2009-07-23  Jim Meyering  <meyering@redhat.com>
38142
38143         maint.mk: invoke "make dist" with a working value of XZ_OPT
38144         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
38145
38146 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
38147
38148         Make fseeko.c compile on QNX.
38149         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
38150
38151 2009-07-22  Peter Simons  <simons@cryp.to>
38152
38153         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
38154         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
38155         * lib/md4.h: Likewise.
38156         * lib/md5.h: Likewise.
38157         * lib/sha1.h: Likewise.
38158         * lib/sha256.h: Likewise.
38159         * lib/sha512.h: Likewise.
38160
38161         tests-sha1: don't assign literal string to 'char *' variable
38162         * tests/test-sha1.c (main): Declare locals with "const" to match
38163         attributes of the right hand side.
38164
38165 2009-07-21  Eric Blake  <ebb9@byu.net>
38166
38167         dup2: fix more mingw problems
38168         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
38169         fd to itself.
38170         * doc/posix-functions/dup2.texi (dup2): Document the bug.
38171         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
38172         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
38173         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
38174         care of mingw bugs.
38175
38176 2009-07-21  Jim Meyering  <meyering@redhat.com>
38177
38178         vc-list-files: avoid failure when /bin/sh is dash
38179         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
38180         On some Debian based systems, /bin/sh is a symlink to dash, and running
38181         this command would omit the "/" following each 'tests' prefix:
38182           dash -x build-aux/vc-list-files -C . tests
38183         That is because bash and dash work differently:
38184           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
38185           bash ok
38186           dash odd
38187
38188 2009-07-21  Eric Blake  <ebb9@byu.net>
38189
38190         dup2-tests: test previous patch
38191         * modules/dup2-tests: New file.
38192         * tests/test-dup2.c: Likewise.
38193         * tests/test-open.c (main): Avoid unspecified behavior.
38194         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
38195         test.
38196
38197         dup2: work around mingw and cygwin 1.5 bug
38198         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
38199         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38200         * modules/unistd (Makefile.am): Substitute it.
38201         * lib/unistd.in.h (dup2): Declare the replacement.
38202         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
38203         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
38204         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
38205         * modules/execute (Depends-on): Add dup2.
38206         * modules/fseterr (Depends-on): Likewise.
38207         * modules/pipe (Depends-on): Likewise.
38208         * modules/posix_spawn-internal (Depends-on): Likewise.
38209
38210 2009-07-21  Bruno Haible  <bruno@clisp.org>
38211
38212         * modules/.gitattributes: New file.
38213
38214 2009-07-20  Bruno Haible  <bruno@clisp.org>
38215
38216         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
38217         (main): Use it.
38218
38219 2009-07-20  Eric Blake  <ebb9@byu.net>
38220
38221         test-pipe: make a bit more robust.
38222         * tests/test-pipe.c (myerr): Allow error messages regardless of
38223         what we do to stderr.
38224         (test_pipe): Rearrange to avoid deadlock.
38225         (child_main): Try a larger read, to ensure we avoided deadlock.
38226         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
38227         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
38228         if misused.
38229
38230 2009-07-19  Jim Meyering  <meyering@redhat.com>
38231
38232         fts: avoid false-positive cycle-detection
38233         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
38234         for each new command line argument.
38235
38236 2009-07-19  Bruno Haible  <bruno@clisp.org>
38237
38238         Fix build error on mingw with the modules sys_select and unistd.
38239         * modules/acl-tests (Depends-on): Add close.
38240         * modules/binary-io-tests (Depends-on): Likewise.
38241         * modules/closein-tests (Depends-on): Likewise.
38242         * modules/flock-tests (Depends-on): Likewise.
38243         * modules/fsync-tests (Depends-on): Likewise.
38244         * modules/lseek-tests (Depends-on): Likewise.
38245         * modules/pipe-tests (Depends-on): Likewise.
38246         * modules/posix_spawn-tests (Depends-on): Likewise.
38247         * modules/posix_spawnp-tests (Depends-on): Likewise.
38248         * modules/stat-time-tests (Depends-on): Likewise.
38249         * modules/yesno-tests (Depends-on): Likewise.
38250
38251 2009-07-19  Bruno Haible  <bruno@clisp.org>
38252
38253         Unify conditionals.
38254         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
38255         macros, not at the compiler macros.
38256         * lib/pipe.c: Likewise.
38257         * lib/execute.c: Likewise.
38258         * lib/spawni.c: Likewise.
38259
38260 2009-07-19  Bruno Haible  <bruno@clisp.org>
38261
38262         Fix handling of closed stdin/stdout/stderr on mingw.
38263         * lib/w32spawn.h: Include unistd.h.
38264         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
38265         file descriptor with O_NOINHERIT flag.
38266         (fd_safer_noinherit): New function, based on fd-safer.c.
38267         (dup_safer_noinherit): New function, based on dup-safer.c.
38268         (undup_safer_noinherit): New function.
38269         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
38270         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
38271         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
38272         instead of fd_safer.
38273         * tests/test-pipe.c: Include <windows.h>.
38274         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
38275         result.
38276
38277         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
38278         from main.
38279         (test_pipe): Pass an extra argument for disambiguation.
38280         (main): Invoke parent_main or child_main.
38281
38282         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
38283         consistently.
38284
38285 2009-07-18  Eric Blake  <ebb9@byu.net>
38286
38287         test-pipe: fix mingw build
38288         * tests/test-pipe.c (main): Avoid fcntl on mingw.
38289
38290 2009-07-18  Bruno Haible  <bruno@clisp.org>
38291
38292         * modules/pipe-tests (Makefile.am): Fix typo.
38293
38294 2009-07-18  Eric Blake  <ebb9@byu.net>
38295
38296         error: fix mingw build
38297         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
38298         Reported by Bruno Haible.
38299
38300         error: avoid undefined use of stdout
38301         * lib/error.c (error, error_at_line): Check that fd 1 is open
38302         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
38303         is handling faults and the close_stdout module wants to report the
38304         detection of closed stdout as an error.
38305
38306 2009-07-17  Eric Blake  <ebb9@byu.net>
38307
38308         pipe: be robust in face of closed fds
38309         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
38310         should cause child to misbehave.
38311         * modules/pipe-tests: New module.
38312         * tests/test-pipe.c: New file.
38313         * tests/test-pipe.sh: New file.
38314         Reported by Akim Demaille.
38315
38316 2009-07-14  Bruno Haible  <bruno@clisp.org>
38317
38318         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
38319         Reported by anonymous kc.
38320
38321 2009-07-07  Jim Meyering  <meyering@redhat.com>
38322
38323         maint.mk: don't look for translatable strings in *.m4 or *.mk
38324         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
38325         when searching for translatable strings.
38326
38327 2009-07-05  Jim Meyering  <meyering@redhat.com>
38328
38329         remove superfluous parentheses in STREQ definition
38330         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
38331         * lib/getugroups.c (STREQ): Likewise.
38332         * lib/fnmatch.c (STREQ): Likewise.
38333         Spotted by Bruno Haible.
38334
38335 2009-07-04  Jim Meyering  <meyering@redhat.com>
38336
38337         argv-iter: new module
38338         * MODULES.html.sh: Add argv-iter.
38339         * lib/argv-iter.c, lib/argv-iter.h: New files.
38340         * modules/argv-iter: New file.
38341         * modules/argv-iter-tests: New file.
38342         * tests/test-argv-iter.c: Test it.
38343
38344 2009-07-04  Bruno Haible  <bruno@clisp.org>
38345
38346         Fix assertion.
38347         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
38348         contains more exact copies of a given entry than file2, leave the extra
38349         copies unpaired rather than aborting.
38350         Reported by Eric Blake.
38351
38352 2009-07-02  Bruno Haible  <bruno@clisp.org>
38353
38354         Speedup git-merge-changelog for git cherry-pick.
38355         * lib/git-merge-changelog.c (struct entries_mapping): New type.
38356         (entries_mapping_get): New function, extracted from compute_mapping.
38357         (entries_mapping_reverse_get): New function.
38358         (compute_mapping): Add a 'full' argument. Return the result in a
38359         'struct entries_mapping'.
38360         (main): Update. Access the mappings through entries_mapping_get.
38361         Reported by Eric Blake.
38362
38363 2009-07-02  Bruno Haible  <bruno@clisp.org>
38364
38365         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
38366         best_i.
38367
38368 2009-07-02  Bruno Haible  <bruno@clisp.org>
38369
38370         Speed up approximate search for matching ChangeLog entries.
38371         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
38372         argument. Call fstrcmp_bounded instead of fstrcmp.
38373         (compute_mapping, try_split_merged_entry, main): Update callers.
38374
38375 2009-07-02  Bruno Haible  <bruno@clisp.org>
38376
38377         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
38378
38379 2009-06-30  Bruno Haible  <bruno@clisp.org>
38380
38381         Reduce the number of uc_is_cased calls.
38382         * lib/unicase.h (casing_suffix_context_t): Add
38383         'first_char_except_ignorable' field.
38384         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
38385         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
38386         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
38387         Update initializer.
38388         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
38389         case-ignorable characters.
38390         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
38391         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
38392         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
38393         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
38394         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
38395
38396 2009-06-30  Bruno Haible  <bruno@clisp.org>
38397
38398         Tests for module 'unicase/ignorable'.
38399         * modules/unicase/ignorable-tests: New file.
38400         * tests/unicase/test-ignorable.c: New file, generated by
38401         gen-uni-tables.
38402
38403         Tests for module 'unicase/cased'.
38404         * modules/unicase/cased-tests: New file.
38405         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
38406         * tests/unicase/test-predicate-part1.h: New file, derived from
38407         tests/unictype/test-predicate-part1.h.
38408         * tests/unicase/test-predicate-part2.h: New file, same as
38409         tests/unictype/test-predicate-part2.h.
38410
38411         Fix evaluation of "Before C" condition of FINAL_SIGMA.
38412         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
38413         (output_casing_properties): New function.
38414         (main): Call it.
38415         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
38416         * lib/unicase/cased.c: Include unictype/bitmap.h.
38417         (uc_is_cased): Define through a bitmap lookup.
38418         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
38419         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
38420         (uc_is_case_ignorable): Define through a bitmap lookup.
38421         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
38422         lib/unictype/bitmap.h.
38423         (Depends-on): Add inline. Clean up.
38424         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
38425         lib/unictype/bitmap.h.
38426         (Depends-on): Add inline. Clean up.
38427         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
38428         recognition.
38429         * tests/unicase/test-u16-tolower.c (main): Likewise.
38430         * tests/unicase/test-u32-tolower.c (main): Likewise.
38431
38432 2009-06-30  Bruno Haible  <bruno@clisp.org>
38433
38434         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
38435         * lib/unicase/u16-casemap.c: Likewise.
38436         * lib/unicase/u32-casemap.c: Likewise.
38437
38438 2009-06-29  Bruno Haible  <bruno@clisp.org>
38439
38440         Define u32_casefold as a wrapper around u32_ct_casefold.
38441         * lib/unicase/u32-casefold.c: Update.
38442         * modules/unicase/u32-casefold (Depends-on): Add
38443         unicase/u32-ct-casefold, unicase/empty-prefix-context,
38444         unicase/empty-suffix-context. Clean up.
38445
38446         Define u16_casefold as a wrapper around u16_ct_casefold.
38447         * lib/unicase/u16-casefold.c: Update.
38448         * modules/unicase/u16-casefold (Depends-on): Add
38449         unicase/u16-ct-casefold, unicase/empty-prefix-context,
38450         unicase/empty-suffix-context. Clean up.
38451
38452         Define u8_casefold as a wrapper around u8_ct_casefold.
38453         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
38454         * lib/unicase/u8-casefold.c: Update.
38455         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
38456         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38457
38458         Define u32_totitle as a wrapper around u32_ct_totitle.
38459         * lib/unicase/u32-totitle.c: Update.
38460         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
38461         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38462
38463         Define u16_totitle as a wrapper around u16_ct_totitle.
38464         * lib/unicase/u16-totitle.c: Update.
38465         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
38466         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38467
38468         Define u8_totitle as a wrapper around u8_ct_totitle.
38469         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
38470         functions.
38471         (FUNC): Delegate to U_CT_TOTITLE.
38472         * lib/unicase/u8-totitle.c: Update.
38473         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
38474         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38475
38476         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
38477         invocation.
38478         * modules/unicase/u32-tolower (Depends-on): Add
38479         unicase/empty-prefix-context, unicase/empty-suffix-context.
38480
38481         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
38482         invocation.
38483         * modules/unicase/u16-tolower (Depends-on): Add
38484         unicase/empty-prefix-context, unicase/empty-suffix-context.
38485
38486         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
38487         * modules/unicase/u8-tolower (Depends-on): Add
38488         unicase/empty-prefix-context, unicase/empty-suffix-context.
38489
38490         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
38491         invocation.
38492         * modules/unicase/u32-toupper (Depends-on): Add
38493         unicase/empty-prefix-context, unicase/empty-suffix-context.
38494
38495         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
38496         invocation.
38497         * modules/unicase/u16-toupper (Depends-on): Add
38498         unicase/empty-prefix-context, unicase/empty-suffix-context.
38499
38500         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
38501         * modules/unicase/u8-toupper (Depends-on): Add
38502         unicase/empty-prefix-context, unicase/empty-suffix-context.
38503
38504         New module 'unicase/u32-ct-casefold'.
38505         * lib/unicase/u32-ct-casefold.c: New file.
38506         * modules/unicase/u32-ct-casefold: New file.
38507
38508         New module 'unicase/u16-ct-casefold'.
38509         * lib/unicase/u16-ct-casefold.c: New file.
38510         * modules/unicase/u16-ct-casefold: New file.
38511
38512         New module 'unicase/u8-ct-casefold'.
38513         * lib/unicase/u8-ct-casefold.c: New file.
38514         * lib/unicase/u-ct-casefold.h: New file, derived from
38515         lib/unicase/u-casefold.h.
38516         * modules/unicase/u8-ct-casefold: New file.
38517
38518         New module 'unicase/u32-ct-totitle'.
38519         * lib/unicase/u32-ct-totitle.c: New file.
38520         * modules/unicase/u32-ct-totitle: New file.
38521
38522         New module 'unicase/u16-ct-totitle'.
38523         * lib/unicase/u16-ct-totitle.c: New file.
38524         * modules/unicase/u16-ct-totitle: New file.
38525
38526         New module 'unicase/u8-ct-totitle'.
38527         * lib/unicase/u8-ct-totitle.c: New file.
38528         * lib/unicase/u-ct-totitle.h: New file, derived from
38529         lib/unicase/u-totitle.h.
38530         * modules/unicase/u8-ct-totitle: New file.
38531
38532         New module 'unicase/u32-ct-tolower'.
38533         * lib/unicase/u32-ct-tolower.c: New file.
38534         * modules/unicase/u32-ct-tolower: New file.
38535
38536         New module 'unicase/u16-ct-tolower'.
38537         * lib/unicase/u16-ct-tolower.c: New file.
38538         * modules/unicase/u16-ct-tolower: New file.
38539
38540         New module 'unicase/u8-ct-tolower'.
38541         * lib/unicase/u8-ct-tolower.c: New file.
38542         * modules/unicase/u8-ct-tolower: New file.
38543
38544         New module 'unicase/u32-ct-toupper'.
38545         * lib/unicase/u32-ct-toupper.c: New file.
38546         * modules/unicase/u32-ct-toupper: New file.
38547
38548         New module 'unicase/u16-ct-toupper'.
38549         * lib/unicase/u16-ct-toupper.c: New file.
38550         * modules/unicase/u16-ct-toupper: New file.
38551
38552         New module 'unicase/u8-ct-toupper'.
38553         * lib/unicase/u8-ct-toupper.c: New file.
38554         * modules/unicase/u8-ct-toupper: New file.
38555
38556         Add context arguments to u*_casemap functions.
38557         * lib/unicase/unicasemap.h: Include unicase.h.
38558         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
38559         suffix_context arguments.
38560         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
38561         functions.
38562         (FUNC): Add prefix_context and suffix_context arguments. Use
38563         uc_is_cased and uc_is_case_ignorable.
38564         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
38565         * lib/unicase/u16-casemap.c: Likewise.
38566         * lib/unicase/u32-casemap.c: Likewise.
38567         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
38568         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38569         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
38570         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38571         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
38572         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38573
38574         New module 'unicase/u32-suffix-context'.
38575         * lib/unicase/u32-suffix-context.c: New file.
38576         * modules/unicase/u32-suffix-context: New file.
38577
38578         New module 'unicase/u16-suffix-context'.
38579         * lib/unicase/u16-suffix-context.c: New file.
38580         * modules/unicase/u16-suffix-context: New file.
38581
38582         New module 'unicase/u8-suffix-context'.
38583         * lib/unicase/u8-suffix-context.c: New file.
38584         * lib/unicase/u-suffix-context.h: New file.
38585         * modules/unicase/u8-suffix-context: New file.
38586
38587         New module 'unicase/empty-suffix-context'.
38588         * lib/unicase/empty-suffix-context.c: New file.
38589         * modules/unicase/empty-suffix-context: New file.
38590
38591         New module 'unicase/u32-prefix-context'.
38592         * lib/unicase/u32-prefix-context.c: New file.
38593         * modules/unicase/u32-prefix-context: New file.
38594
38595         New module 'unicase/u16-prefix-context'.
38596         * lib/unicase/u16-prefix-context.c: New file.
38597         * modules/unicase/u16-prefix-context: New file.
38598
38599         New module 'unicase/u8-prefix-context'.
38600         * lib/unicase/u8-prefix-context.c: New file.
38601         * lib/unicase/u-prefix-context.h: New file.
38602         * lib/unicase/context.h: New file.
38603         * modules/unicase/u8-prefix-context: New file.
38604
38605         New module 'unicase/empty-prefix-context'.
38606         * lib/unicase/empty-prefix-context.c: New file.
38607         * modules/unicase/empty-prefix-context: New file.
38608
38609         New module 'unicase/ignorable'.
38610         * lib/unicase/ignorable.c: New file.
38611         * modules/unicase/ignorable: New file.
38612
38613         New module 'unicase/cased'.
38614         * lib/unicase/caseprop.h: New file.
38615         * lib/unicase/cased.c: New file.
38616         * modules/unicase/cased: New file.
38617
38618         New functions for case mapping of substrings.
38619         * lib/unicase.h (casing_prefix_context_t): New type.
38620         (unicase_empty_prefix_context): New variable.
38621         (u8_casing_prefix_context, u16_casing_prefix_context,
38622         u32_casing_prefix_context, u8_casing_prefixes_context,
38623         u16_casing_prefixes_context, u32_casing_prefixes_context): New
38624         declarations.
38625         (casing_suffix_context_t): New type.
38626         (unicase_empty_suffix_context): New variable.
38627         (u8_casing_suffix_context, u16_casing_suffix_context,
38628         u32_casing_suffix_context, u8_casing_suffixes_context,
38629         u16_casing_suffixes_context, u32_casing_suffixes_context,
38630         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
38631         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
38632         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
38633         declarations.
38634
38635 2009-06-28  Jim Meyering  <meyering@redhat.com>
38636
38637         boostrap: indent only with spaces
38638         * build-aux/bootstrap: Indent only with spaces, never TABs.
38639
38640         bootstrap: split long lines
38641         * build-aux/bootstrap: Keep line length < 80.
38642
38643         bootstrap: sync from coreutils
38644         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
38645         just as autoreconf does.  Verify a list of prerequisite
38646         package-name,version-number pairs if defined in bootstrap.conf.
38647         Refer to README-prereq, if prerequisites are not satisfied.
38648
38649 2009-06-27  Eric Blake  <ebb9@byu.net>
38650
38651         tests: add test for bogus NULL definition
38652         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
38653         * tests/test-stdlib.c: Likewise.
38654         * tests/test-string.c: Likewise.
38655         * tests/test-locale.c: Likewise.
38656         * tests/test-unistd.c: Likewise.
38657         * modules/stdio-tests (Depends-on): Add verify.
38658         * modules/stdlib-tests (Depends-on): Likewise.
38659         * modules/string-tests (Depends-on): Likewise.
38660         * modules/locale-tests (Depends-on): Likewise.
38661         * modules/unistd-tests (Depends-on): Likewise.
38662
38663 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
38664
38665         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
38666         self-explaining comment.
38667         * m4/selinux-selinux-h: Update serial.
38668         (gl_LIBSELINUX): New macro, adding a warning for missing development
38669         packages to code extracted from...
38670         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
38671         Add warning for missing development packages here, too.
38672
38673 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
38674
38675         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
38676
38677 2009-06-25  Eric Blake  <ebb9@byu.net>
38678
38679         version-etc: fix regression
38680         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
38681         gcc.
38682         (version_etc): Use it, to catch bugs with trailing NULL.
38683         * lib/version-etc.c (version_etc_arn): Delete unused argument.
38684         (version_etc_va): Fix logic bug.
38685         * modules/version-etc-tests: Add test.
38686         * tests/test-version-etc.c: New file.
38687         * tests/test-version-etc.sh: Likewise.
38688
38689 2009-06-25  Sam Steingold  <sds@gnu.org>
38690
38691         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
38692         mbtowc declaration.
38693
38694 2009-06-25  Eric Blake  <ebb9@byu.net>
38695
38696         fpurge: migrate into <stdio.h>
38697         * lib/fpurge.h: Delete...
38698         * lib/stdio.in.h (fpurge): ...and declare here, instead.
38699         * lib/fpurge.c (fpurge): Change declaring header.
38700         * modules/fpurge (Files): Drop deleted file.
38701         (Depends-on): Add stdio.
38702         (configure.ac): Set witness.
38703         * modules/stdio (Makefile.am): Support fpurge macros.
38704         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38705         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
38706         * lib/fflush.c: Update client.
38707         * tests/test-fpurge.c: Likewise.
38708         * NEWS: Mention the change.
38709
38710 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38711
38712         * lib/argp-version-etc.c (program_authors): Add const
38713         qualifier.
38714         * lib/version-etc.c: Fix typos in the comments.
38715         * modules/argp-version-etc: Depends on version-etc.
38716
38717 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38718
38719         argp-version-etc: new module.
38720
38721         * lib/argp-version-etc.c: New file.
38722         * lib/argp-version-etc.h: New file.
38723         * modules/argp-version-etc: New file.
38724         * modules/argp-version-etc-tests: New file.
38725         * tests/test-argp-version-etc.c: New test.
38726         * tests/test-argp-version-etc-1.sh: New test.
38727
38728 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38729
38730         Provide additional interfaces and documentation for version-etc
38731         module.
38732
38733         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
38734         interfaces.
38735         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
38736         prototypes.
38737
38738 2009-06-24  Bruno Haible  <bruno@clisp.org>
38739
38740         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
38741         HAVE_LIB${NAME} macro.
38742         Reported by Sam Steingold <sds@gnu.org>.
38743
38744 2009-06-23  Simon Josefsson  <simon@josefsson.org>
38745
38746         * modules/hash-tests (test_hash_LDADD): Link to libintl when
38747         needed.
38748
38749 2009-06-21  Bruno Haible  <bruno@clisp.org>
38750
38751         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
38752         work.
38753         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
38754         together with LIB${NAME}, LTLIB${NAME}.
38755         Reported by Sam Steingold <sds@gnu.org>.
38756
38757 2009-06-20  Jim Meyering  <meyering@redhat.com>
38758
38759         tests: make sc_require_test_exit_idiom more generic
38760         * top/maint.mk (Exit_witness_file): New overridable variable.
38761         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
38762         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
38763
38764 2009-06-19  Jim Meyering  <meyering@redhat.com>
38765
38766         hash: reverse order of src/dst parameters in an internal interface
38767         * lib/hash.c (transfer_entries): Reverse order of parameters to
38768         put DST before SRC.  Adjust callers.
38769
38770         tests: test-hash: avoid wholesale duplication
38771         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
38772         Instead, use a loop and add a single conditional.
38773
38774         tests: test-hash: allow seed selection via a command line argument
38775         * tests/test-hash.c (get_seed): New function.
38776         (main): Use it.
38777
38778 2009-06-19  Eric Blake  <ebb9@byu.net>
38779
38780         hash: avoid memory leak on allocation failure
38781         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
38782         failure.  Factor repeated algorithm...
38783         (transfer_entries): ...into new helper routine.
38784         (hash_delete): React to hash_rehash return value.
38785
38786         hash: reduce memory pressure in hash_rehash no-op case
38787         * lib/hash.c (next_prime): Avoid overflow.
38788         (hash_initialize): Factor bucket size computation...
38789         (compute_bucket_size): ...into new helper function.
38790         (hash_rehash): Use new function and open coding to reduce memory
38791         pressure, and avoid a memory leak in USE_OBSTACK code.
38792         Reported by Jim Meyering.
38793
38794 2009-06-18  Eric Blake  <ebb9@byu.net>
38795
38796         hash: make rotation more obvious
38797         * modules/hash (Depends-on): Add bitrotate and stdint.
38798         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
38799         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
38800         (SIZE_MAX): Rely on headers for definition.
38801         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
38802         (raw_hasher): Use rotr_sz.
38803         Suggested by Jim Meyering.
38804
38805         hash: fix memory leak in last patch
38806         * lib/hash.c (hash_rehash): Avoid memory leak.
38807
38808         hash: avoid no-op rehashing
38809         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
38810
38811         hash: provide default callback functions
38812         * lib/hash.c (raw_hasher, raw_comparator): New functions.
38813         (hash_initialize): Use them as defaults.
38814         * tests/test-hash.c (main): Test this.
38815
38816         hash: minor optimization
38817         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
38818         when possible.
38819         (hash_initialize): Document this promise.
38820         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
38821         * tests/test-hash.c (hash_compare_strings): Test this.
38822
38823 2009-06-18  Bruno Haible  <bruno@clisp.org>
38824
38825         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
38826         going to be replaced anyway.
38827
38828 2009-06-18  Bruno Haible  <bruno@clisp.org>
38829
38830         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
38831         in one place.
38832         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
38833         be replaced anyway.
38834
38835 2009-06-18  Eric Blake  <ebb9@byu.net>
38836
38837         hash: check for resize before insertion
38838         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
38839         threshold before insertion, so that a pathological hash_rehash
38840         that fills every bucket can still trigger another rehash.
38841
38842 2009-06-18  Jim Meyering  <meyering@redhat.com>
38843
38844         hash-tests: add a loop around the small tests
38845         * tests/test-hash.c (main): Repeat small tests with selected
38846         small initial table sizes.
38847
38848 2009-06-17  Eric Blake  <ebb9@byu.net>
38849
38850         hash: minor cleanups
38851         * lib/hash.h (hash_entry): Make opaque, by moving...
38852         * lib/hash.c (hash_entry): ...here.
38853         (hash_insert): Clarify restrictions on what can be inserted.
38854         (hash_get_next): Clarify when it is safe to remove an element
38855         during traversal.
38856         (check_tuning): Skip verification when tuning is known safe.
38857         (hash_initialize): Clarify restrictions on tuning.
38858
38859 2009-06-17  Jim Meyering  <jim@meyering.net>
38860         and Eric Blake  <ebb9@byu.net>
38861
38862         hash-tests: new module
38863         * modules/hash-tests: New file.
38864         * tests/test-hash.c: New file.
38865
38866 2009-06-17  Eric Blake  <ebb9@byu.net>
38867
38868         strstr-simple: document new module
38869         * MODULES.html.sh: Document new module.
38870
38871         strstr, strcasestr: replace on platforms with broken memchr
38872         * modules/strstr: Split into...
38873         * modules/strstr-simple: ...new module that does not care about
38874         performance, but does care about glibc bug.
38875         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
38876         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
38877         if platform memchr is broken, per Debian bug 521737.
38878         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
38879         memchr.
38880         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
38881         * doc/posix-functions/strstr.texi (strstr): Document the fix.
38882         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
38883         * modules/mountlist (Depends-on): Add strstr-simple.
38884         * modules/gen-uni-tables (Depends-on): Likewise.
38885         * modules/argz (Depends-on): Add strstr.
38886
38887 2009-06-17  Bruno Haible  <bruno@clisp.org>
38888
38889         * modules/posix_spawn-internal (Depends-on): Add errno.
38890
38891 2009-06-17  Bruno Haible  <bruno@clisp.org>
38892
38893         Define missing ESTALE on Interix 3.5.
38894         * lib/errno.in.h (ESTALE): Assign a value if missing.
38895         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
38896         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
38897         missing.
38898         * doc/posix-headers/errno.texi: Mention the Interix bug.
38899         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
38900
38901 2009-06-15  Eric Blake  <ebb9@byu.net>
38902
38903         memchr, memchr2: add valgrind exception
38904         * lib/memchr.valgrind: New file.
38905         * lib/memchr2.valgrind: New file.
38906         * modules/memchr (Files): Distribute valgrind file.
38907         * modules/memchr2 (Files): Likewise.
38908
38909         docs: memchr is no longer obsolete
38910         * MODULES.html.sh: Move memchr from obsolete to string.h section.
38911         * lib/string.in.h (memchr): Simplify logic.
38912
38913 2009-06-14  Jim Meyering  <meyering@redhat.com>
38914
38915         link-follow: fix the "checking..." message to not mention trailing slash
38916         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
38917         never considered trailing slashes.
38918
38919 2009-06-14  Bruno Haible  <bruno@clisp.org>
38920
38921         * m4/memchr.m4: Mention also the bug on IA-64.
38922         * doc/posix-functions/memchr.texi: Likewise.
38923
38924 2009-06-12  Eric Blake  <ebb9@byu.net>
38925
38926         memchr: detect broken x86_64 and alpha implementations
38927         * modules/memchr-tests (Depends-on): Move mmap detection...
38928         * modules/memchr (Depends-on): ...here.
38929         (configure.ac): Set indicator.
38930         * lib/string.in.h (memchr): Declare replacement.
38931         * modules/string (Makefile.am): Trigger replacement.
38932         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
38933         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
38934         bugs.
38935         * doc/posix-functions/memchr.texi (memchr): Document the bug.
38936         * modules/getpagesize (License): Relax license.
38937
38938 2009-06-11  Bruno Haible  <bruno@clisp.org>
38939
38940         * lib/idpriv.h: Add more references.
38941
38942 2009-06-08  Bruno Haible  <bruno@clisp.org>
38943
38944         Tests for module 'idpriv-droptemp'.
38945         * modules/idpriv-droptemp-tests: New file.
38946         * tests/test-idpriv-droptemp.sh: New file.
38947         * tests/test-idpriv-droptemp.su.sh: New file.
38948         * tests/test-idpriv-droptemp.c: New file.
38949
38950         New module 'idpriv-droptemp'.
38951         * lib/idpriv-droptemp.c: New file.
38952         * modules/idpriv-droptemp: New file.
38953
38954 2009-06-08  Bruno Haible  <bruno@clisp.org>
38955
38956         Tests for module 'idpriv-drop'.
38957         * modules/idpriv-drop-tests: New file.
38958         * tests/test-idpriv-drop.sh: New file.
38959         * tests/test-idpriv-drop.su.sh: New file.
38960         * tests/test-idpriv-drop.c: New file.
38961
38962         New module 'idpriv-drop'.
38963         * lib/idpriv.h: New file.
38964         * lib-idpriv-drop.c: New file.
38965         * m4/idpriv.m4: New file.
38966         * modules/idpriv-drop: New file.
38967
38968 2009-06-08  Bruno Haible  <bruno@clisp.org>
38969
38970         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
38971         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38972         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38973         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38974         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38975         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38976         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38977
38978 2009-06-08  Eric Blake  <ebb9@byu.net>
38979
38980         test-strstr: use memory fence, when possible
38981         * tests/test-strstr.c (main): Use memory fence, in order to be
38982         more likely to trigger Debian bug 521737.
38983         * modules/strstr-tests (Files): Pull in additional files.
38984
38985         memchr: no longer obsolete, for wider field testing
38986         * modules/memchr (Status, Notice): Delete, this module is no
38987         longer obsolete.
38988         * modules/vasnprintf (Depends-on): Add memchr.
38989
38990 2009-06-07  Jim Meyering  <meyering@redhat.com>
38991
38992         hash: declare some functions with the warn_unused_result attribute
38993         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
38994
38995 2009-06-07  Bruno Haible  <bruno@clisp.org>
38996
38997         * tests/test-alignof.c: Don't test int64_t if it does not exist.
38998         Reported by Eric Blake.
38999
39000 2009-06-06  Eric Blake  <ebb9@byu.net>
39001
39002         test-alignof: fix typo with long double
39003         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
39004         compiler error.
39005
39006 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
39007
39008         Escape non-texinfo { and }s.
39009         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
39010         markup error.
39011
39012 2009-06-04  Jim Meyering  <meyering@redhat.com>
39013
39014         gitlog-to-changelog: don't infloop on an empty commit log
39015         * build-aux/gitlog-to-changelog: Warn about an empty log message.
39016         Reported by Boris Petersen <transacid@centerim.org>.
39017
39018 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
39019
39020         version-etc: extend for packagers
39021         Add three new configure options, intended for packagers:
39022           --with-packager="packager name"
39023           --with-packager-version="packager-specific version"
39024           --with-packager-bug-reports="packager bug reporting"
39025         An example with coreutils:
39026           $ ./configure \
39027             --with-packager=Gentoo \
39028             --with-packager-bug-report=http://bugs.gentoo.org/ \
39029             --with-packager-version="patchset 1.6"
39030           $ ./src/ls --version | head -n2
39031           ls (GNU coreutils) 7.1-dirty
39032           Packaged by Gentoo (patchset 1.6)
39033         Note that the bug reporting info via --help doesn't show up because
39034         coreutils uses its own custom emit_bug_reporting_address() implementation
39035         in src/system.h.  If it didn't, it'd look like:
39036           $ ./src/ls --help | tail -n4
39037           Report bugs to <bug-coreutils@gnu.org>.
39038           Report Gentoo bugs to <http://bugs.gentoo.org/>.
39039           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
39040           General help using GNU software: <http://www.gnu.org/gethelp/>.
39041         * lib/version-etc.c: Print new information, if provided.
39042         * m4/version-etc.m4: New file.
39043         * modules/version-etc (Files): Add m4/version-etc.m4.
39044         (configure.ac): Add gl_VERSION_ETC.
39045
39046 2009-05-31  Bruno Haible  <bruno@clisp.org>
39047
39048         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
39049         and 'int64_t'.
39050         * modules/alignof-tests (Dependencies): Add stdint.
39051         Reported by Eric Blake.
39052
39053 2009-05-31  Bruno Haible  <bruno@clisp.org>
39054
39055         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
39056         restriction due to compiler bugs.
39057         Reported by Eric Blake.
39058
39059 2009-05-31  Simon Josefsson  <simon@josefsson.org>
39060             Bruno Haible  <bruno@clisp.org>
39061
39062         Fix test-alignof failure.
39063         * lib/alignof.h (alignof_slot): New macro.
39064         (alignof_type): New macro, with the same semantics as the previous
39065         'alignof'.
39066         (alignof): Alias to alignof_slot.
39067         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
39068         check that the results are usable as constant expressions.
39069
39070 2009-05-31  Bruno Haible  <bruno@clisp.org>
39071
39072         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
39073         * tests/test-memchr.c (main): Check that memchr does not read past the
39074         first occurrence of the byte.
39075         * tests/test-strstr.c (main): Update comment.
39076         Suggested by Eric Blake.
39077
39078 2009-05-30  Bruno Haible  <bruno@clisp.org>
39079
39080         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
39081         detail how to use dumpbin.
39082         Reported by David Byron <dbyron@dbyron.com>.
39083
39084 2009-06-02  Simon Josefsson  <simon@josefsson.org>
39085
39086         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
39087
39088 2009-06-02  Simon Josefsson  <simon@josefsson.org>
39089
39090         * m4/manywarnings.m4: Add GCC 4.4 warnings.
39091
39092 2009-05-28  Bruno Haible  <bruno@clisp.org>
39093
39094         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
39095         build-aux/ files.
39096
39097 2009-05-28  Simon Josefsson  <simon@josefsson.org>
39098
39099         * gnulib-tool (func_import): Transform license on build-aux/ files too.
39100
39101 2009-05-27  Simon Josefsson  <simon@josefsson.org>
39102
39103         * gnulib-tool (sed_transform_main_lib_file)
39104         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
39105         regexps.
39106
39107 2009-05-26  Simon Josefsson  <simon@josefsson.org>
39108
39109         * tests/test-strstr.c: Add another self-test.
39110         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
39111         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
39112
39113 2009-05-23  Bruno Haible  <bruno@clisp.org>
39114
39115         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
39116         change.
39117
39118 2009-05-21  Bruno Haible  <bruno@clisp.org>
39119
39120         Simplify use of mode_t varargs.
39121         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
39122         uses 'mode_t' or 'int'.
39123         * lib/openat.c (openat): Likewise.
39124         * lib/open-safer.c (open_safer): Likewise.
39125         * m4/mode_t.m4: New file.
39126         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
39127         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
39128         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
39129         * modules/open (Files): Add m4/mode_t.m4.
39130         * modules/openat (Files): Likewise.
39131         * modules/fcntl-safer (Files): Likewise.
39132         Suggested by Eric Blake.
39133
39134 2009-05-21  Pádraig Brady  <P@draigbrady.com>
39135
39136         * doc/glibc-functions/fallocate.texi: New file.
39137         * doc/gnulib.texi: Include it.
39138
39139 2009-05-21  Eric Blake  <ebb9@byu.net>
39140             Bruno Haible  <bruno@clisp.org>
39141
39142         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
39143         invocations.
39144         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
39145
39146 2009-05-21  Eric Blake  <ebb9@byu.net>
39147             Bruno Haible  <bruno@clisp.org>
39148
39149         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
39150         include_next. Fix of 2008-11-20 commit.
39151         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
39152         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
39153         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
39154         NEXT_MATH_H.
39155         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
39156         instead of NEXT_MATH_H.
39157
39158 2009-05-21  Bruno Haible  <bruno@clisp.org>
39159
39160         Avoid redefinition warnings for SIZE_MAX.
39161         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
39162         Reported by Simon Josefsson.
39163
39164 2009-05-21  Bruno Haible  <bruno@clisp.org>
39165
39166         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
39167         AC_CACHE_VAL.
39168
39169 2009-05-20  Bruno Haible  <bruno@clisp.org>
39170
39171         Make zeroptr.h work on mingw.
39172         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
39173         mprotect.
39174         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
39175         * modules/memchr2-tests (configure.ac): Likewise.
39176         * modules/memcmp-tests (configure.ac): Likewise.
39177         * modules/memmem-tests (configure.ac): Likewise.
39178         * modules/memrchr-tests (configure.ac): Likewise.
39179         Reported by Simon Josefsson.
39180
39181 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39182
39183         * tests/test-glob.c: Include string.h for strcmp prototype.
39184
39185 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39186
39187         * modules/getdelim (Depends-on): Add explicit stdint, although it
39188         was implicitly already pulled in via realloc-posix.
39189         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
39190
39191 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39192
39193         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
39194         G. Christensen" <tgc@jupiterrise.com>.
39195         * m4/sys_socket_h.m4: Check for sa_family_t.
39196         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
39197         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
39198         * tests/test-sys_socket.c: Check that sa_family_t works.
39199
39200 2009-05-18  Eric Blake  <ebb9@byu.net>
39201
39202         maint.mk: allow gnulib_dir in VPATH build
39203         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
39204
39205 2009-05-15  Jim Meyering  <meyering@redhat.com>
39206
39207         maint.mk: Give gnulib_dir a default definition.
39208         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
39209         Thus, most packages no longer need to specify this variable in cfg.mk
39210
39211 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
39212
39213         rename.m4: fix typos that would make non-mingw cross-configure fail
39214         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
39215
39216 2009-05-13  Eric Blake  <ebb9@byu.net>
39217
39218         mmap-anon: avoid out-of-order autoconf expansion
39219         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
39220         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
39221         * modules/memchr-tests (Depends-on): Add extensions.
39222         * modules/memchr2-tests (Depends-on): Add extensions.
39223         * modules/memcmp-tests (Depends-on): Add extensions.
39224         * modules/memmem-tests (Depends-on): Add extensions.
39225         * modules/memrchr-tests (Depends-on): Add extensions.
39226
39227 2009-05-13  Bruno Haible  <bruno@clisp.org>
39228
39229         Make some tests ISO C 99 compliant.
39230         * tests/zerosize-ptr.h: New file.
39231         * tests/test-memchr.c: Include zerosize-ptr.h.
39232         (main): Use a zero-size object pointer instead of NULL.
39233         * tests/test-memchr2.c: Include zerosize-ptr.h.
39234         (main): Use a zero-size object pointer instead of NULL.
39235         * tests/test-memcmp.c: Include zerosize-ptr.h.
39236         (main): Use a zero-size object pointer instead of NULL.
39237         * tests/test-memmem.c: Include zerosize-ptr.h.
39238         (main): Use a zero-size object pointer instead of NULL.
39239         * tests/test-memrchr.c: Include zerosize-ptr.h.
39240         (main): Use a zero-size object pointer instead of NULL.
39241         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
39242         m4/mmap-anon.m4.
39243         (Depends-on): Add getpagesize.
39244         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39245         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
39246         m4/mmap-anon.m4.
39247         (Depends-on): Add getpagesize.
39248         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39249         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
39250         m4/mmap-anon.m4.
39251         (Depends-on): Add getpagesize.
39252         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39253         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
39254         m4/mmap-anon.m4.
39255         (Depends-on): Add getpagesize.
39256         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39257         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
39258         m4/mmap-anon.m4.
39259         (Depends-on): Add getpagesize.
39260         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39261
39262 2009-05-12  Bruno Haible  <bruno@clisp.org>
39263
39264         Tests for module 'alignof'.
39265         * modules/alignof-tests: New file.
39266         * tests/test-alignof.c: New file.
39267
39268 2009-05-12  Bruno Haible  <bruno@clisp.org>
39269
39270         Fix alignof macro.
39271         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
39272         vendor compilers that are always correct.
39273
39274 2009-05-12  Bruno Haible  <bruno@clisp.org>
39275
39276         Make the MAP_ANONYMOUS detection work on HP-UX 11.
39277         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
39278         not whether its fully works.
39279
39280 2009-05-12  Bruno Haible  <bruno@clisp.org>
39281
39282         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
39283
39284 2009-05-12  Jim Meyering  <meyering@redhat.com>
39285
39286         * top/maint.mk: Adjust backslash alignment.
39287
39288 2009-05-11  Simon Josefsson  <simon@josefsson.org>
39289
39290         * top/maint.mk: Make $(srcdir)/build-aux configurable.
39291
39292 2009-05-11  Eric Blake  <ebb9@byu.net>
39293
39294         argp: avoid undefined behavior
39295         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
39296         macros.
39297
39298 2009-05-08  Simon Josefsson  <simon@josefsson.org>
39299
39300         * tests/test-vc-list-files-git.sh: Do git config of user.email and
39301         user.name to prevent git commit from complaining.
39302
39303 2009-05-10  Bruno Haible  <bruno@clisp.org>
39304
39305         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
39306         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
39307         it rewrites every file name only once.
39308         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
39309
39310 2009-05-08  Bruno Haible  <bruno@clisp.org>
39311
39312         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
39313         instead of 'max'.
39314
39315 2009-05-08  Simon Josefsson  <simon@josefsson.org>
39316
39317         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
39318         sockaddr_storage test.
39319
39320 2009-05-07  Simon Josefsson  <simon@josefsson.org>
39321
39322         * modules/sys_socket (Makefile.am): Substitute
39323         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
39324         * m4/sys_socket_h.m4: Check for sockaddr_storage.
39325         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
39326         * tests/test-sys_socket.c: Check sockaddr_storage.
39327
39328 2009-05-08  Bruno Haible  <bruno@clisp.org>
39329
39330         New module 'alignof'.
39331         * lib/alignof.h: New file.
39332         * modules/alignof: New file.
39333
39334 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39335             Bruno Haible  <bruno@clisp.org>
39336
39337         Fix test-file-has-acl on FreeBSD.
39338         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
39339         mask is implicitly added.
39340         * tests/test-file-has-acl.c: Include <signal.h>.
39341         (main): Terminate the test after 5 seconds.
39342         * modules/acl-tests (configure.ac): Check for alarm function.
39343
39344 2009-05-04  Bruno Haible  <bruno@clisp.org>
39345
39346         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
39347         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
39348         * modules/errno (configure.ac): Drop AC_REQUIRE.
39349         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
39350         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
39351
39352 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39353
39354         * modules/glob-tests: New module.
39355         * tests/test-glob.c: Add.
39356
39357 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39358
39359         * modules/fnmatch-tests: New module.
39360         * tests/test-fnmatch.c: Add.
39361
39362 2009-05-04  Eric Blake  <ebb9@byu.net>
39363
39364         maint: make the new no-submodule-changes rule VPATH-safe
39365         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
39366
39367 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39368             Bruno Haible  <bruno@clisp.org>
39369
39370         acl: Fix infinite loop on FreeBSD.
39371         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
39372         of return value from acl_get_entry.
39373         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
39374         Likewise.
39375
39376 2009-05-03  Bruno Haible  <bruno@clisp.org>
39377
39378         * lib/acl-internal.h (acl_entries): Clarify return value.
39379         * lib/acl_entries.c (acl_entries): Likewise.
39380
39381 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39382
39383         Bug fix in acl module.
39384         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
39385
39386 2009-05-03  Bruno Haible  <bruno@clisp.org>
39387
39388         Create gperf-generated file in the source dir, not in the build dir.
39389         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
39390         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
39391         * modules/unicase/locale-language (unicase/locale-languages.h):
39392         Likewise.
39393         * modules/unicase/special-casing (unicase/special-casing-table.h):
39394         Likewise.
39395         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
39396         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
39397         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
39398         Reported by Ralf Wildenhues.
39399
39400 2009-05-03  Bruno Haible  <bruno@clisp.org>
39401
39402         * modules/fnmatch (Description, configure.ac): Taken from
39403         fnmatch-posix.
39404         * modules/fnmatch-posix: Turn into a symbolic reference to the
39405         'fnmatch' module, and deprecate.
39406         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
39407
39408 2009-05-03  Bruno Haible  <bruno@clisp.org>
39409
39410         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
39411         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
39412         Reported by Ralf Wildenhues.
39413
39414 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39415
39416         * m4/fnmatch.m4: Fix fnmatch re-define.
39417
39418 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39419
39420         priv-set: new module and tests; adapt write-any-file
39421         * lib/priv-set.c: New file.
39422         * lib/priv-set.h: New file.
39423         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
39424         * lib/write-any-file.c: Simplify by using priv-set module.
39425         * m4/priv-set.m4: New file.
39426         * modules/priv-set: New file.
39427         * modules/unlinkdir: Add dependency on priv-set module.
39428         * modules/write-any-file: Likewise.
39429
39430         Tests for module 'priv-set'.
39431         * modules/priv-set-tests: New file.
39432         * tests/test-priv-set.c: New file.
39433
39434 2009-05-03  Jim Meyering  <meyering@redhat.com>
39435             Bruno Haible  <bruno@clisp.org>
39436
39437         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
39438         use the converted UTF-8 variant of the name instead.
39439
39440 2009-05-03  Jim Meyering  <meyering@redhat.com>
39441
39442         tests: tighten some getdate tests
39443         * tests/test-getdate.c (main): Tighten tests: require equality,
39444         not just greater than.  Set TZ envvar to UTC0.
39445
39446 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
39447
39448         getdate: correctly interpret "next monday" when run on a Monday
39449         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
39450         that e.g., "next tues" (when run on a tuesday) results in a date
39451         that is one week in the future, and not today's date.
39452         I.e., add a week when the wday is the same as the current one.
39453         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
39454         and earlier by Martin Bernreuther and Jan Minář.
39455         * tests/test-getdate.c (main): Check that "next DAY" is always in
39456         the future and that "last DAY" is always in the past.
39457
39458 2009-05-02  Jim Meyering  <meyering@redhat.com>
39459
39460         build: ensure that a release build fails when a submodule is unclean
39461         * top/maint.mk (no-submodule-changes): New rule.
39462         (alpha beta major): Depend on it.
39463
39464 2009-05-02  Bruno Haible  <bruno@clisp.org>
39465
39466         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
39467         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
39468         shell variable gl_fnmatch_required to detect which variant is
39469         requested.
39470         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
39471         gl_FUNC_FNMATCH_POSIX.
39472         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
39473         exclude fnmatch-posix.
39474
39475 2009-05-02  Bruno Haible  <bruno@clisp.org>
39476
39477         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
39478         * modules/mbsrtowcs (License): Change to LGPLv2+.
39479         * modules/strnlen1 (License): Likewise.
39480         Reported by Simon Josefsson.
39481
39482 2009-05-02  Bruno Haible  <bruno@clisp.org>
39483
39484         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
39485         "cross".
39486         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
39487         gnulib-tool was called with option --source-base=lib.
39488
39489 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39490
39491         Use automake *-local hooks without commands, for extensibility.
39492         * modules/localcharset (Makefile.am): Rename install-exec-local
39493         rule to install-exec-localcharset, and make it a prerequisite of
39494         install-exec-local.  Likewise, rename the uninstall-local rule to
39495         uninstall-localcharset, and make it a prerequisite of the former.
39496
39497 2009-05-01  Bruno Haible  <bruno@clisp.org>
39498
39499         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
39500         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
39501         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
39502         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
39503         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
39504         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
39505         m4/locale-zh.m4, m4/codeset.m4.
39506
39507         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
39508         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
39509         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
39510         m4/locale-zh.m4.
39511
39512         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
39513         REPLACE_WCRTOMB if mbstate_t must be replaced.
39514         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
39515         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
39516
39517 2009-05-01  Bruno Haible  <bruno@clisp.org>
39518
39519         Avoid compiler warnings when redefining macros defined by <libintl.h>.
39520         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
39521         dngettext, dcngettext, textdomain, bindtextdomain,
39522         bind_textdomain_codeset): Undefine before redefining.
39523
39524 2009-04-30  Bruno Haible  <bruno@clisp.org>
39525
39526         Fix bug introduced on 2009-04-25.
39527         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
39528         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
39529         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
39530         is defined.
39531         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
39532         is defined.
39533         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
39534         is defined.
39535         Reported by Elbert_Pol <elbert.pol@gmail.com>.
39536
39537 2009-04-28  Bruno Haible  <bruno@clisp.org>
39538
39539         Comment tweaks.
39540         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
39541         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
39542         * lib/unicase.h (u*_casexfrm): Likewise.
39543         Reported by Paolo Bonzini.
39544
39545 2009-04-28  Bruno Haible  <bruno@clisp.org>
39546
39547         Fix a compilation error.
39548         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
39549         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
39550         Reported by Jim Meyering.
39551
39552 2009-04-27  Bruno Haible  <bruno@clisp.org>
39553
39554         New module 'libunistring'.
39555         * modules/libunistring: New file.
39556         * m4/libunistring.m4: New file.
39557         * MODULES.html.sh (Unicode string functions): Add it.
39558
39559 2009-04-27  Eric Blake  <ebb9@byu.net>
39560
39561         maint.mk: allow package-specific header to provide <config.h>
39562         * top/maint.mk (sc_require_config_h): New variable.
39563         (sc_require_config_h, sc_require_config_h_first): Use it.
39564
39565 2009-04-27  Simon Josefsson  <simon@josefsson.org>
39566
39567         * top/maint.mk (sc_avoid_if_before_free): Except
39568         useless-if-before-free script.
39569
39570 2009-04-27  Eric Blake  <ebb9@byu.net>
39571
39572         maintainer-makefile: depend on all required helper scripts
39573         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
39574         useless-if-before-free.
39575         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
39576         version, rather than assuming gnulib checkout is available.
39577         Reported by Simen Josefsson.
39578
39579 2009-04-26  Bruno Haible  <bruno@clisp.org>
39580
39581         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
39582         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
39583         "../" or "..".
39584
39585 2009-04-26  Bruno Haible  <bruno@clisp.org>
39586
39587         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
39588         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
39589         AC_LIB_HAVE_LINKFLAGS.
39590
39591 2009-04-26  Bruno Haible  <bruno@clisp.org>
39592
39593         Simplify calling convention of u*_conv_from_encoding.
39594         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
39595         u32_conv_from_encoding): Expect a resultbuf argument and return the
39596         result directly as a pointer.
39597         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
39598         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
39599         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
39600         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
39601         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
39602         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
39603         Update.
39604         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
39605         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
39606         * lib/vasnprintf.c (VASNPRINTF): Update.
39607         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
39608         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
39609         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
39610         * NEWS: Mention the change.
39611
39612 2009-04-26  Bruno Haible  <bruno@clisp.org>
39613
39614         Simplify calling convention of u*_conv_to_encoding.
39615         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
39616         u32_conv_to_encoding): Expect a resultbuf argument and return the
39617         result directly as a pointer.
39618         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
39619         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
39620         freeing scaled_offsets if mem_iconveha failed.
39621         * lib/unicase/u-casexfrm.h (FUNC): Update.
39622         * lib/uninorm/u-normxfrm.h (FUNC): Update.
39623         * lib/vasnprintf.c (VASNPRINTF): Update.
39624         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
39625         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
39626         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
39627         * NEWS: Mention the change.
39628
39629 2009-04-26  Bruno Haible  <bruno@clisp.org>
39630
39631         Avoid test failures on AIX and OSF/1.
39632         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
39633         malloc(0).
39634         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
39635         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
39636         Likewise.
39637         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
39638         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
39639         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
39640         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
39641         * doc/posix-functions/malloc.texi: Document the portability problem
39642         related to malloc(0).
39643
39644 2009-04-26  Bruno Haible  <bruno@clisp.org>
39645
39646         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
39647         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
39648         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
39649
39650 2009-04-25  Bruno Haible  <bruno@clisp.org>
39651
39652         Avoid link error when creating a namespace clean library.
39653         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
39654         as macro with arguments if already defined as an alias.
39655         * lib/signbitf.c (gl_signbitf): Don't undefine.
39656         * lib/signbitd.c (gl_signbitd): Don't undefine.
39657         * lib/signbitl.c (gl_signbitl): Don't undefine.
39658
39659 2009-04-25  Jim Meyering  <meyering@redhat.com>
39660
39661         vc-list-files: fix another quoting bug
39662         * build-aux/vc-list-files: Avoid sed backslash expansion
39663         of pathological directory names.
39664
39665 2009-04-25  Eric Blake  <ebb9@byu.net>
39666
39667         vc-list-files: fix shell quoting error
39668         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
39669         timestamp.
39670
39671 2009-04-25  Jim Meyering  <meyering@redhat.com>
39672
39673         vc-list-files: restore lost functionality with subdir argument
39674         * build-aux/vc-list-files: When given a non-"." sub-directory
39675         argument, substitute the $dir/ prefix back onto each resulting name.
39676         Otherwise, coreutils' root_tests check would fail.
39677
39678 2009-04-24  Eric Blake  <ebb9@byu.net>
39679
39680         vc-list-files: ignore git symlinks
39681         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
39682         than ls-files, to ignore git symlinks.
39683
39684         maint.mk: import improvements from m4
39685         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
39686         (move_if_change): Delete unused macro.
39687         (news-date-check, vc-diff-check): Support VPATH builds.
39688         (announcement): Likewise.  Split --bootstrap-tools list...
39689         (boostrap-tools): ...into separate list, which can be overridden
39690         in cfg.mk.
39691         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
39692         requiring dependency on useless-if-before-free module.
39693         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
39694         Support VPATH builds.
39695
39696 2009-04-24  Jim Meyering  <meyering@redhat.com>
39697
39698         maint.mk: remove coreutils-specific rules and variables
39699         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
39700         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
39701         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
39702
39703         maint.mk: remove obsolete rule
39704         * top/maint.mk (rel-check): Remove rule.
39705         (WGET, WGETFLAGS): Remove now-unused variables.
39706
39707 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39708
39709         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
39710         consistency.
39711
39712         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
39713         '$(PATH_SEPARATOR)' instead of ':'.
39714
39715 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39716
39717         * lib/getopt1.c (main): Use 'const' for static array.
39718
39719 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39720
39721         * top/maint.mk: Sync with coreutils.
39722         * NEWS: Explain incompatibilities.
39723
39724 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39725             Bruno Haible  <bruno@clisp.org>
39726
39727         Fix cross-compilation results.
39728         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
39729         statement, as third argument of AC_TRY_RUN.
39730         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
39731         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
39732         Likewise.
39733         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
39734         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
39735         Likewise.
39736         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
39737         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
39738         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
39739
39740 2009-04-20  Bruno Haible  <bruno@clisp.org>
39741
39742         Avoid test failure on mingw.
39743         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
39744
39745 2009-04-20  Bruno Haible  <bruno@clisp.org>
39746
39747         Avoid compilation error on mingw.
39748         * modules/localename-tests (Depends-on): Add locale.
39749
39750 2009-04-19  Bruno Haible  <bruno@clisp.org>
39751
39752         Support for building a shared library on Windows platforms.
39753         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
39754         (main): Test the presence of UNINORM_NFC here.
39755         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
39756         (main): Test the presence of UNINORM_NFD here.
39757         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
39758         (main): Test the presence of UNINORM_NFKC here.
39759         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
39760         (main): Test the presence of UNINORM_NFKD here.
39761
39762 2009-04-19  Bruno Haible  <bruno@clisp.org>
39763
39764         Avoid a compiler warning.
39765         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
39766         Change type of variable 'sequence'.
39767
39768 2009-04-19  Bruno Haible  <bruno@clisp.org>
39769
39770         * modules/configmake (Makefile.am): When the contents of configmake.h
39771         does not change, arrange to preserve its modification time.
39772
39773 2009-04-17  Simon Josefsson  <simon@josefsson.org>
39774
39775         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
39776         gettext domain.
39777
39778 2009-04-16  Jim Meyering  <meyering@redhat.com>
39779
39780         useless-if-before-free: improve conversion code
39781         * build-aux/useless-if-before-free: Adjust code-in-comment to match
39782         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
39783
39784 2009-04-14  Bruno Haible  <bruno@clisp.org>
39785
39786         * modules/fcntl (Depends-on): Add extensions.
39787         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
39788
39789 2009-04-12  Ben Pfaff  <blp@gnu.org>
39790
39791         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
39792         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
39793
39794 2009-03-20  Ben Pfaff  <blp@gnu.org>
39795
39796         Make rename replace existing destinations on Windows.
39797         * m4/rename.m4: Add test for Mingw.
39798         * lib/rename.c: Add rename replacement that uses MoveFileEx with
39799         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
39800         * doc/posix-functions/rename.texi: Document.
39801
39802 2009-04-10  Bruno Haible  <bruno@clisp.org>
39803
39804         New include file "iconveh.h".
39805         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
39806         * lib/striconveh.h: Include it.
39807         (enum iconv_ilseq_handler): Remove definition.
39808         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
39809         striconveh.h.
39810         * lib/striconveha.c: Include striconveh.h.
39811         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
39812         * modules/striconveh (Files): Add lib/iconveh.h.
39813         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
39814         lib/striconveh.h.
39815
39816 2009-04-10  Bruno Haible  <bruno@clisp.org>
39817
39818         * lib/uniconv.h: Update comment.
39819
39820 2009-04-10  Bruno Haible  <bruno@clisp.org>
39821
39822         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
39823         always.
39824         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
39825         * lib/unistr/u16-mbtouc-aux.c: Likewise.
39826         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
39827         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
39828         "unistring-notinline.h", so that the function gets defined always.
39829         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
39830         * lib/unistr/u8-uctomb.c: Likewise.
39831         * lib/unistr/u16-mbtouc.c: Likewise.
39832         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
39833         * lib/unistr/u16-uctomb.c: Likewise.
39834         * lib/unistr/u32-mbtouc.c: Likewise.
39835         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
39836         * lib/unistr/u32-uctomb.c: Likewise.
39837
39838 2009-04-10  Bruno Haible  <bruno@clisp.org>
39839
39840         Mark 'utime' obsolete.
39841         * modules/utime (Status, Notice): New sections.
39842         Suggested by Jim Meyering.
39843
39844         Fix cross-compile guess for utime test.
39845         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
39846         autoconf.
39847         * doc/posix-functions/utime.texi: Give more precisions.
39848         Reported by Jan <ipif@ymail.com>.
39849
39850 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
39851
39852         filevercmp: correct today's change
39853         * lib/filevercmp.c: Also handle coreutils' test inputs.
39854         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
39855
39856         Fix regression in 'filevercmp' module. Thanks Sven Joachim
39857         for reporting it.
39858         * lib/filevercmp.c: Special handle for "", "." and "..".
39859         * tests/test-filevercmp.c: Enlarge the set suite.
39860
39861 2009-04-07  Jim Meyering  <meyering@redhat.com>
39862
39863         useless-if-before-free: show how to remove braced useless free, too
39864         * build-aux/useless-if-before-free: still only in a comment, though.
39865
39866 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
39867
39868         maint.mk: import changes to syntax-check macros from coreutils
39869         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
39870         Use them in the relevant macros.
39871
39872 2009-04-06  Bruno Haible  <bruno@clisp.org>
39873
39874         Fix unportable use of bit-fields.
39875         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
39876         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
39877         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
39878
39879 2009-04-06  Bruno Haible  <bruno@clisp.org>
39880
39881         Avoid test failures on AIX and OSF/1.
39882         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
39883         that malloc(0) = NULL.
39884         * tests/unicase/test-u8-tolower.c (check): Likewise.
39885         * tests/unicase/test-u8-totitle.c (check): Likewise.
39886         * tests/unicase/test-u8-toupper.c (check): Likewise.
39887         * tests/unicase/test-u16-casefold.c (check): Likewise.
39888         * tests/unicase/test-u16-tolower.c (check): Likewise.
39889         * tests/unicase/test-u16-totitle.c (check): Likewise.
39890         * tests/unicase/test-u16-toupper.c (check): Likewise.
39891         * tests/unicase/test-u32-casefold.c (check): Likewise.
39892         * tests/unicase/test-u32-tolower.c (check): Likewise.
39893         * tests/unicase/test-u32-totitle.c (check): Likewise.
39894         * tests/unicase/test-u32-toupper.c (check): Likewise.
39895         * tests/uninorm/test-u8-nfc.c (check): Likewise.
39896         * tests/uninorm/test-u8-nfd.c (check): Likewise.
39897         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
39898         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
39899         * tests/uninorm/test-u16-nfc.c (check): Likewise.
39900         * tests/uninorm/test-u16-nfd.c (check): Likewise.
39901         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
39902         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
39903         * tests/uninorm/test-u32-nfc.c (check): Likewise.
39904         * tests/uninorm/test-u32-nfd.c (check): Likewise.
39905         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
39906         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
39907
39908 2009-04-05  Bruno Haible  <bruno@clisp.org>
39909
39910         Work around an autoconf limitation.
39911         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
39912         comment line if it would be longer than 3 KB.
39913
39914 2009-04-05  Bruno Haible  <bruno@clisp.org>
39915
39916         Avoid test failure with libiconv-1.13.
39917         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
39918         of the expected test results.
39919
39920 2009-04-05  Bruno Haible  <bruno@clisp.org>
39921
39922         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
39923         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
39924         that it should be installed.
39925
39926 2009-04-05  Bruno Haible  <bruno@clisp.org>
39927
39928         * gnulib-tool: New option --copy-file.
39929         (func_usage): Document it.
39930         (func_dest_tmpfilename): Moved out of func_import.
39931         (func_add_file, func_update_file): New functions, extracted from
39932         func_import.
39933         (func_import): Update.
39934
39935 2009-04-05  Karl Berry  <karl@gnu.org>
39936
39937         * README: prominently mention gnulib-tool.
39938         Rearrange sections so getting the code is near the top.
39939
39940 2009-04-05  Bruno Haible  <bruno@clisp.org>
39941
39942         * lib/unicase.h: Mention u*_cmp2.
39943         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39944         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
39945         * lib/unicase/ulc-casecmp.c: Likewise.
39946         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
39947         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
39948         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
39949         unistr/u8-cmp.
39950         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
39951         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
39952         unistr/u16-cmp.
39953         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
39954         unistr/u32-cmp.
39955
39956         * lib/uninorm.h: Mention u*_cmp2.
39957         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39958         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
39959         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
39960         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
39961         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
39962         unistr/u8-cmp.
39963         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
39964         unistr/u16-cmp.
39965         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
39966         unistr/u32-cmp.
39967
39968         New module 'unistr/u32-cmp2'.
39969         * lib/unistr/u32-cmp2.c: New file.
39970         * modules/unistr/u32-cmp2: New file.
39971
39972         New module 'unistr/u16-cmp2'.
39973         * lib/unistr/u16-cmp2.c: New file.
39974         * modules/unistr/u16-cmp2: New file.
39975
39976         New module 'unistr/u8-cmp2'.
39977         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
39978         * lib/unistr/u8-cmp2.c: New file.
39979         * lib/unistr/u-cmp2.h: New file.
39980         * modules/unistr/u8-cmp2: New file.
39981
39982 2009-04-05  Bruno Haible  <bruno@clisp.org>
39983
39984         * lib/unictype.h (uc_property_is_valid): New macro.
39985         * tests/unictype/test-pr_byname.c (main): Use it.
39986
39987         * lib/unistr.h: Doc fixes.
39988         * lib/uniconv.h: Doc fixes.
39989         * lib/unictype.h: Doc fixes.
39990
39991 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
39992
39993         Port coreutils 7.2 to Solaris 8.
39994
39995         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
39996         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
39997         for Solaris 8.  This is a bit of a hack, as it means it's the
39998         caller's responsibility to add -lnsl if needed, but most likely it
39999         won't be needed since only getaddrinfo uses this and getaddrinfo
40000         isn't needed on Solaris 8.
40001
40002         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
40003         problem to Solaris 8 encountered with coreutils 7.2, which
40004         resulted in a message "fnmatch.c:292: warning: passing argument 4
40005         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
40006         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
40007
40008 2009-04-03  Simon Josefsson  <simon@josefsson.org>
40009
40010         * m4/ld-version-script.m4: Add FIXME comment.
40011
40012 2009-04-02  Simon Josefsson  <simon@josefsson.org>
40013
40014         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
40015         SOVERSION variable.
40016
40017 2009-04-02  Bruno Haible  <bruno@clisp.org>
40018
40019         * Makefile (info, html, dvi, pdf): Combine the rules.
40020         Suggested by Jim Meyering.
40021
40022 2009-04-01  Bruno Haible  <bruno@clisp.org>
40023
40024         * Makefile (info, html, dvi, pdf): New targets.
40025         Reported by Reuben Thomas <rrt@sc3d.org>.
40026
40027 2009-04-01  Bruno Haible  <bruno@clisp.org>
40028
40029         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
40030         can be put into PATH.
40031         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
40032
40033 2009-04-01  Bruno Haible  <bruno@clisp.org>
40034
40035         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
40036
40037 2009-04-01  Bruno Haible  <bruno@clisp.org>
40038
40039         Rename module 'visibility'.
40040         * modules/lib-symbol-visibility: Renamed from modules/visibility.
40041         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
40042         * doc/gnulib.texi: Update.
40043         * MODULES.html.sh (Misc): Update.
40044         * NEWS: Mention the change.
40045
40046 2009-04-01  Simon Josefsson  <simon@josefsson.org>
40047
40048         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
40049         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
40050         Eric Blake <ebb9@byu.net> for review.
40051         * MODULES.html.sh: Add lib-msvc-compat.
40052         * doc/gnulib.texi: Link to new section.
40053         * m4/ld-output-def.m4: New file.
40054         * doc/ld-output-def.texi: New file.
40055
40056 2009-04-01  Simon Josefsson  <simon@josefsson.org>
40057
40058         Rename ld-version-script to lib-symbol-versions.  Suggested by
40059         Bruno Haible <bruno@clisp.org>.
40060         * modules/ld-version-script: Renamed to lib-symbol-versions.
40061         * doc/ld-version-script.texi: Fix module name.
40062         * MODULES.html.sh: Add lib-symbol-versions.
40063
40064 2009-03-31  Simon Josefsson  <simon@josefsson.org>
40065
40066         * modules/u64-tests: New file.
40067         * tests/test-u64.c: New file.
40068
40069 2009-03-04  Simon Josefsson  <simon@josefsson.org>
40070
40071         * MODULES.html.sh: Mention u64.
40072         * modules/u64: New module.
40073         * modules/crypto/sha512: Depend on u64 module instead of providing
40074         u64.h.
40075
40076 2009-03-27  Eric Blake  <ebb9@byu.net>
40077
40078         test-strerror: make debugging EAI_SYSTEM easier
40079         * modules/getaddrinfo-tests (Depends-on): Add strerror.
40080         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
40081         failure was EAI_SYSTEM.
40082
40083 2009-03-25  Bruno Haible  <bruno@clisp.org>
40084
40085         Fix a problem with --enable-relocatable on Solaris 7.
40086         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
40087         since 2008-02-24.
40088
40089 2009-03-25  Eric Blake  <ebb9@byu.net>
40090
40091         test-sockets: avoid gcc warning
40092         * tests/test-sockets.c (main): Silence compiler warning.
40093
40094 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
40095
40096         New modules nproc, pthread, contributed by Glen Lenker.
40097
40098         * MODULES.html.sh: Add pthread, nproc.
40099         * lib/nproc.c: New file.
40100         * lib/nproc.h: New file.
40101         * lib/pthread.in.h: New file.
40102         * m4/pthread.m4: New file.
40103         * modules/nproc: New file.
40104         * modules/pthread: New file.
40105
40106 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40107
40108         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
40109         New variable.
40110
40111 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
40112
40113         filevercmp: handle simple~ and numbered.~3~ backup suffixes
40114         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
40115         * tests/test-filevercmp.c: Add tests for backup suffixes.
40116
40117 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40118
40119         * modules/stdlib (Depends-on): Add stdint, needed when defining
40120         struct random_data on, for example, HP-UX 10.20.  Reported by
40121         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40122
40123 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40124
40125         * lib/readline.c (readline): Call fflush on stdout after printing
40126         prompt.
40127
40128 2009-03-20  Bruno Haible  <bruno@clisp.org>
40129
40130         Remove dependency from 'close' module to -lws2_32 on native Windows.
40131         * lib/close-hook.h: New file.
40132         * lib/close-hook.c: New file.
40133         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
40134         w32sock.h.
40135         (_gl_close_fd_maybe_socket): Remove function.
40136         (rpl_close): Invoke execute_all_close_hooks instead of
40137         _gl_close_fd_maybe_socket.
40138         * lib/sockets.c: Include close-hook.h, w32sock.h.
40139         (close_fd_maybe_socket): New function, essentially from lib/close.c.
40140         (close_sockets_hook): New variable.
40141         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
40142         (gl_sockets_cleanup): Unregister it.
40143         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
40144         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
40145         * modules/close-hook: New file.
40146         * modules/close (Files): Remove lib/w32sock.h.
40147         (Depends-on): Add close-hook.
40148         (Link): Remove section.
40149         * modules/sockets (Files): Add lib/w32sock.h.
40150         (Depends-on): Add close-hook.
40151         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
40152         invocation.
40153         * NEWS: Mention that LIB_CLOSE is gone.
40154
40155 2009-03-23  Eric Blake  <ebb9@byu.net>
40156
40157         signal-tests: test previous patch
40158         * tests/test-signal.c: New file.
40159         * modules/signal-tests: Likewise.
40160
40161         signal.h: always support 'volatile sig_atomic_t'
40162         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
40163         (gl_SIGNAL_H_DEFAULTS): Add a default.
40164         * modules/signal (Makefile.am): Substitute if needed.
40165         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
40166         users can blindly add volatile.
40167         * doc/posix-headers/signal.texi (signal.h): Document it.
40168         Reported by Matthew Woehlke.
40169
40170 2009-03-23  Jim Meyering  <meyering@redhat.com>
40171
40172         pathmax: PATH_MAX: use pathconf only when available
40173         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
40174         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
40175         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
40176         This avoids a link failure in a PSP cross-compilation environment
40177         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
40178
40179         * lib/vasnprintf.c (divide): Fix typo in comment.
40180
40181 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40182
40183         * gnulib-tool (func_filter_filelist): Fix comment.
40184
40185 2009-03-20  Bruno Haible  <bruno@clisp.org>
40186
40187         Make sockets.h self-contained.
40188         * lib/sockets.c: Include sockets.h first.
40189         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
40190
40191 2009-03-19  Eric Blake  <ebb9@byu.net>
40192
40193         doc: mention more functions added in cygwin 1.7.0
40194         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
40195         addition.
40196         * doc/posix-functions/log2f.texi: Likewise.
40197
40198 2009-03-19  Jim Meyering  <meyering@redhat.com>
40199
40200         fsusage: avoid syntax error due to statement-before-declaration
40201         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
40202         after all declarations.  Reported by Matthew Woehlke in
40203         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
40204
40205 2009-03-18  Eric Blake  <ebb9@byu.net>
40206
40207         build-aux/compile: sync from automake
40208         * build-aux/compile: New file, from automake.
40209         * config/srclist.txt: Mention build-aux/compile.
40210
40211 2009-03-17  Bruno Haible  <bruno@clisp.org>
40212
40213         * lib/git-merge-changelog.c: Fix typo in comment.
40214         Reported by Reuben Thomas <rrt@sc3d.org>.
40215
40216 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
40217
40218         * m4/regex.m4: update and improve help for
40219         --without-included-regex.
40220
40221 2009-03-17  Simon Josefsson  <simon@josefsson.org>
40222
40223         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
40224         failure on missing include files.
40225
40226 2009-03-17  Eric Blake  <ebb9@byu.net>
40227
40228         doc: mention more functions added in cygwin 1.7.0
40229         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
40230         addition.
40231         * doc/posix-functions/fwscanf.texi: Likewise.
40232         * doc/posix-functions/swprintf.texi: Likewise.
40233         * doc/posix-functions/swscanf.texi: Likewise.
40234         * doc/posix-functions/vfwprintf.texi: Likewise.
40235         * doc/posix-functions/vfwscanf.texi: Likewise.
40236         * doc/posix-functions/vswprintf.texi: Likewise.
40237         * doc/posix-functions/vswscanf.texi: Likewise.
40238         * doc/posix-functions/vwprintf.texi: Likewise.
40239         * doc/posix-functions/vwscanf.texi: Likewise.
40240         * doc/posix-functions/wcscasecmp.texi: Likewise.
40241         * doc/posix-functions/wcsdup.texi: Likewise.
40242         * doc/posix-functions/wcsftime.texi: Likewise.
40243         * doc/posix-functions/wcsncasecmp.texi: Likewise.
40244         * doc/posix-functions/wprintf.texi: Likewise.
40245         * doc/posix-functions/wscanf.texi: Likewise.
40246         * doc/glibc-functions/gethostbyname2.texi: Likewise.
40247
40248 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40249
40250         maint.mk: really add $(AM_MAKEFLAGS)
40251         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
40252         was inadvertently omitted in the last commit.
40253         Spotted by Bruno Haible.
40254
40255         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
40256         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
40257         $(AM_MAKEFLAGS)' rather than plain `make'.
40258
40259         gnulib-tool: execute $MAKE not make
40260         * gnulib-tool: Default $MAKE to 'make'.
40261         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
40262         than make.  Initialize $MAKE in the do-autobuild script.
40263
40264         gnulib-tool: use $MAKE not make in generated files
40265         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
40266         make, in generated files.  Initialize $MAKE in the do-autobuild
40267         script.
40268
40269         * top/GNUmakefile (_have-git-version-gen): Fix typo.
40270
40271         GNUmakefile: disable parallelism only for multiple, recursive targets
40272         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
40273         additions in the Makefile.
40274         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
40275         by Automake.
40276         (.NOTPARALLEL): Only disable parallel builds if multiple targets
40277         are listed on the command line and at least one of them is
40278         listed in $(ALL_RECURSIVE_TARGETS).
40279
40280 2009-03-14  Bruno Haible  <bruno@clisp.org>
40281
40282         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
40283         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
40284         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
40285         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
40286         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
40287         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
40288         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
40289         unistr/u8-uctomb.
40290         * modules/unistr/u8-strchr (Depends-on): Likewise.
40291         * modules/unistr/u8-strrchr (Depends-on): Likewise.
40292         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
40293         unistr/u16-uctomb.
40294         * modules/unistr/u16-strchr (Depends-on): Likewise.
40295         * modules/unistr/u16-strrchr (Depends-on): Likewise.
40296
40297 2009-03-12  Bruno Haible  <bruno@clisp.org>
40298
40299         Work around select() bug on Interix 3.5.
40300         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
40301         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
40302         * m4/select.m4: New file.
40303         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
40304         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
40305         * modules/select (Files): Add m4/select.m4.
40306         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
40307         * modules/nanosleep (Depends-on): Add select.
40308         * modules/poll (Depends-on): Likewise.
40309         * doc/posix-functions/select.texi: Mention the Interix bug.
40310         Reported by Markus Duft <mduft@gentoo.org>.
40311
40312         * lib/select.c: Renamed from lib/winsock-select.c.
40313         * modules/select (Files): Add lib/select.c, remove
40314         lib/winsock-select.c.
40315         (configure.ac): Update.
40316
40317 2009-03-12  Jim Meyering  <meyering@redhat.com>
40318
40319         avoid gcc warnings about unused macro definitions
40320         * lib/readtokens.c (STREQ): Remove unused definition.
40321         * lib/xmalloc.c (SIZE_MAX): Likewise.
40322         * lib/openat-die.c (N_): Likewise.
40323         * lib/mountlist.c (SIZE_MAX): Remove definition.
40324         Instead, include <stdint.h>.
40325         * lib/readutmp.c: Likewise.
40326         * modules/readutmp (Depends-on): Add stdint.
40327         * modules/mountlist (Depends-on): Add stdint.
40328         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
40329
40330 2009-03-10  Bruno Haible  <bruno@clisp.org>
40331
40332         Tests for module 'mbmemcasecoll'.
40333         * modules/mbmemcasecoll-tests: New file.
40334         * tests/test-mbmemcasecoll1.sh: New file.
40335         * tests/test-mbmemcasecoll2.sh: New file.
40336         * tests/test-mbmemcasecoll3.sh: New file.
40337         * tests/test-mbmemcasecoll.c: New file.
40338
40339         New module 'mbmemcasecoll'.
40340         * lib/mbmemcasecoll.h: New file.
40341         * lib/mbmemcasecoll.c: New file.
40342         * modules/mbmemcasecoll: New file.
40343
40344         * tests/test-mbmemcasecmp.h: New file, extracted from
40345         tests/test-mbmemcasecmp.c.
40346         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
40347         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
40348         (main): Update.
40349         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
40350
40351 2009-03-09  Bruno Haible  <bruno@clisp.org>
40352
40353         Tests for module 'mbmemcasecmp'.
40354         * modules/mbmemcasecmp-tests: New file.
40355         * tests/test-mbmemcasecmp1.sh: New file.
40356         * tests/test-mbmemcasecmp2.sh: New file.
40357         * tests/test-mbmemcasecmp3.sh: New file.
40358         * tests/test-mbmemcasecmp.c: New file.
40359
40360         New module 'mbmemcasecmp'.
40361         * lib/mbmemcasecmp.h: New file.
40362         * lib/mbmemcasecmp.c: New file.
40363         * modules/mbmemcasecmp: New file.
40364
40365 2009-03-09  Bruno Haible  <bruno@clisp.org>
40366
40367         Tests for module 'unicase/ulc-casecoll'.
40368         * modules/unicase/ulc-casecoll-tests: New file.
40369         * tests/unicase/test-ulc-casecoll1.sh: New file.
40370         * tests/unicase/test-ulc-casecoll2.sh: New file.
40371         * tests/unicase/test-ulc-casecoll.c: New file.
40372
40373         New module 'unicase/ulc-casecoll'.
40374         * lib/unicase.h (ulc_casecoll): New declaration.
40375         * lib/unicase/ulc-casecoll.c: New file.
40376         * modules/unicase/ulc-casecoll: New file.
40377
40378         New module 'unicase/ulc-casexfrm'.
40379         * lib/unicase.h (ulc_casexfrm): New declaration.
40380         * lib/unicase/ulc-casexfrm.c: New file.
40381         * modules/unicase/ulc-casexfrm: New file.
40382
40383 2009-03-09  Bruno Haible  <bruno@clisp.org>
40384
40385         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
40386         invocations.
40387
40388         * m4/mbscasecmp.m4: Remove file.
40389         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
40390         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
40391
40392         * m4/mbscasestr.m4: Remove file.
40393         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
40394         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
40395
40396         * m4/mbschr.m4: Remove file.
40397         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
40398         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
40399
40400         * m4/mbscspn.m4: Remove file.
40401         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
40402         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
40403
40404         * m4/mbslen.m4: Remove file.
40405         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
40406         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
40407
40408         * m4/mbsncasecmp.m4: Remove file.
40409         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
40410         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
40411
40412         * m4/mbsnlen.m4: Remove file.
40413         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
40414         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
40415
40416         * m4/mbspbrk.m4: Remove file.
40417         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
40418         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
40419
40420         * m4/mbspcasecmp.m4: Remove file.
40421         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
40422         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
40423
40424         * m4/mbsrchr.m4: Remove file.
40425         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
40426         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
40427
40428         * m4/mbssep.m4: Remove file.
40429         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
40430         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
40431
40432         * m4/mbsspn.m4: Remove file.
40433         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
40434         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
40435
40436         * m4/mbsstr.m4: Remove file.
40437         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
40438         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
40439
40440         * m4/mbstok_r.m4: Remove file.
40441         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
40442         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
40443
40444         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
40445
40446         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
40447         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
40448
40449         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
40450
40451 2009-03-08  Bruno Haible  <bruno@clisp.org>
40452
40453         Tests for module 'unicase/ulc-casecmp'.
40454         * modules/unicase/ulc-casecmp-tests: New file.
40455         * tests/unicase/test-ulc-casecmp1.sh: New file.
40456         * tests/unicase/test-ulc-casecmp2.sh: New file.
40457         * tests/unicase/test-ulc-casecmp.c: New file.
40458
40459         New module 'unicase/ulc-casecmp'.
40460         * lib/unicase.h (ulc_casecmp): New declaration.
40461         * lib/unicase/ulc-casecmp.c: New file.
40462         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
40463         'const SRC_UNIT *'.
40464         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
40465         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
40466         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
40467         * modules/unicase/ulc-casecmp: New file.
40468
40469         Tests for module 'unicase/u32-is-cased'.
40470         * modules/unicase/u32-is-cased-tests: New file.
40471         * tests/unicase/test-u32-is-cased.c: New file.
40472
40473         Tests for module 'unicase/u16-is-cased'.
40474         * modules/unicase/u16-is-cased-tests: New file.
40475         * tests/unicase/test-u16-is-cased.c: New file.
40476
40477         Tests for module 'unicase/u8-is-cased'.
40478         * modules/unicase/u8-is-cased-tests: New file.
40479         * tests/unicase/test-u8-is-cased.c: New file.
40480         * tests/unicase/test-is-cased.h: New file.
40481
40482         New module 'unicase/u32-is-cased'.
40483         * lib/unicase/u32-is-cased.c: New file.
40484         * modules/unicase/u32-is-cased: New file.
40485
40486         New module 'unicase/u16-is-cased'.
40487         * lib/unicase/u16-is-cased.c: New file.
40488         * modules/unicase/u16-is-cased: New file.
40489
40490         New module 'unicase/u8-is-cased'.
40491         * lib/unicase/u8-is-cased.c: New file.
40492         * lib/unicase/u-is-cased.h: New file.
40493         * modules/unicase/u8-is-cased: New file.
40494
40495         Tests for module 'unicase/u32-is-casefolded'.
40496         * modules/unicase/u32-is-casefolded-tests: New file.
40497         * tests/unicase/test-u32-is-casefolded.c: New file.
40498
40499         Tests for module 'unicase/u16-is-casefolded'.
40500         * modules/unicase/u16-is-casefolded-tests: New file.
40501         * tests/unicase/test-u16-is-casefolded.c: New file.
40502
40503         Tests for module 'unicase/u8-is-casefolded'.
40504         * modules/unicase/u8-is-casefolded-tests: New file.
40505         * tests/unicase/test-u8-is-casefolded.c: New file.
40506         * tests/unicase/test-is-casefolded.h: New file.
40507
40508         New module 'unicase/u32-is-casefolded'.
40509         * lib/unicase/u32-is-casefolded.c: New file.
40510         * modules/unicase/u32-is-casefolded: New file.
40511
40512         New module 'unicase/u16-is-casefolded'.
40513         * lib/unicase/u16-is-casefolded.c: New file.
40514         * modules/unicase/u16-is-casefolded: New file.
40515
40516         New module 'unicase/u8-is-casefolded'.
40517         * lib/unicase/u8-is-casefolded.c: New file.
40518         * modules/unicase/u8-is-casefolded: New file.
40519
40520         Tests for module 'unicase/u32-is-titlecase'.
40521         * modules/unicase/u32-is-titlecase-tests: New file.
40522         * tests/unicase/test-u32-is-titlecase.c: New file.
40523
40524         Tests for module 'unicase/u16-is-titlecase'.
40525         * modules/unicase/u16-is-titlecase-tests: New file.
40526         * tests/unicase/test-u16-is-titlecase.c: New file.
40527
40528         Tests for module 'unicase/u8-is-titlecase'.
40529         * modules/unicase/u8-is-titlecase-tests: New file.
40530         * tests/unicase/test-u8-is-titlecase.c: New file.
40531         * tests/unicase/test-is-titlecase.h: New file.
40532
40533         New module 'unicase/u32-is-titlecase'.
40534         * lib/unicase/u32-is-titlecase.c: New file.
40535         * modules/unicase/u32-is-titlecase: New file.
40536
40537         New module 'unicase/u16-is-titlecase'.
40538         * lib/unicase/u16-is-titlecase.c: New file.
40539         * modules/unicase/u16-is-titlecase: New file.
40540
40541         New module 'unicase/u8-is-titlecase'.
40542         * lib/unicase/u8-is-titlecase.c: New file.
40543         * modules/unicase/u8-is-titlecase: New file.
40544
40545         Tests for module 'unicase/u32-is-lowercase'.
40546         * modules/unicase/u32-is-lowercase-tests: New file.
40547         * tests/unicase/test-u32-is-lowercase.c: New file.
40548
40549         Tests for module 'unicase/u16-is-lowercase'.
40550         * modules/unicase/u16-is-lowercase-tests: New file.
40551         * tests/unicase/test-u16-is-lowercase.c: New file.
40552
40553         Tests for module 'unicase/u8-is-lowercase'.
40554         * modules/unicase/u8-is-lowercase-tests: New file.
40555         * tests/unicase/test-u8-is-lowercase.c: New file.
40556         * tests/unicase/test-is-lowercase.h: New file.
40557
40558         New module 'unicase/u32-is-lowercase'.
40559         * lib/unicase/u32-is-lowercase.c: New file.
40560         * modules/unicase/u32-is-lowercase: New file.
40561
40562         New module 'unicase/u16-is-lowercase'.
40563         * lib/unicase/u16-is-lowercase.c: New file.
40564         * modules/unicase/u16-is-lowercase: New file.
40565
40566         New module 'unicase/u8-is-lowercase'.
40567         * lib/unicase/u8-is-lowercase.c: New file.
40568         * modules/unicase/u8-is-lowercase: New file.
40569
40570         Tests for module 'unicase/u32-is-uppercase'.
40571         * modules/unicase/u32-is-uppercase-tests: New file.
40572         * tests/unicase/test-u32-is-uppercase.c: New file.
40573
40574         Tests for module 'unicase/u16-is-uppercase'.
40575         * modules/unicase/u16-is-uppercase-tests: New file.
40576         * tests/unicase/test-u16-is-uppercase.c: New file.
40577
40578         Tests for module 'unicase/u8-is-uppercase'.
40579         * modules/unicase/u8-is-uppercase-tests: New file.
40580         * tests/unicase/test-u8-is-uppercase.c: New file.
40581         * tests/unicase/test-is-uppercase.h: New file.
40582
40583         New module 'unicase/u32-is-uppercase'.
40584         * lib/unicase/u32-is-uppercase.c: New file.
40585         * modules/unicase/u32-is-uppercase: New file.
40586
40587         New module 'unicase/u16-is-uppercase'.
40588         * lib/unicase/u16-is-uppercase.c: New file.
40589         * modules/unicase/u16-is-uppercase: New file.
40590
40591         New module 'unicase/u8-is-uppercase'.
40592         * lib/unicase/u8-is-uppercase.c: New file.
40593         * modules/unicase/u8-is-uppercase: New file.
40594
40595         New module 'unicase/u32-is-invariant'.
40596         * lib/unicase/u32-is-invariant.c: New file.
40597         * modules/unicase/u32-is-invariant: New file.
40598
40599         New module 'unicase/u16-is-invariant'.
40600         * lib/unicase/u16-is-invariant.c: New file.
40601         * modules/unicase/u16-is-invariant: New file.
40602
40603         New module 'unicase/u8-is-invariant'.
40604         * lib/unicase/u8-is-invariant.c: New file.
40605         * lib/unicase/invariant.h: New file.
40606         * lib/unicase/u-is-invariant.h: New file.
40607         * modules/unicase/u8-is-invariant: New file.
40608
40609         Tests for module 'unicase/u32-casecoll'.
40610         * modules/unicase/u32-casecoll-tests: New file.
40611         * tests/unicase/test-u32-casecoll.c: New file.
40612
40613         Tests for module 'unicase/u16-casecoll'.
40614         * modules/unicase/u16-casecoll-tests: New file.
40615         * tests/unicase/test-u16-casecoll.c: New file.
40616
40617         Tests for module 'unicase/u8-casecoll'.
40618         * modules/unicase/u8-casecoll-tests: New file.
40619         * tests/unicase/test-u8-casecoll.c: New file.
40620
40621         New module 'unicase/u32-casecoll'.
40622         * lib/unicase/u32-casecoll.c: New file.
40623         * modules/unicase/u32-casecoll: New file.
40624
40625         New module 'unicase/u16-casecoll'.
40626         * lib/unicase/u16-casecoll.c: New file.
40627         * modules/unicase/u16-casecoll: New file.
40628
40629         New module 'unicase/u8-casecoll'.
40630         * lib/unicase/u8-casecoll.c: New file.
40631         * lib/unicase/u-casecoll.h: New file.
40632         * modules/unicase/u8-casecoll: New file.
40633
40634         New module 'unicase/u32-casexfrm'.
40635         * lib/unicase/u32-casexfrm.c: New file.
40636         * modules/unicase/u32-casexfrm: New file.
40637
40638         New module 'unicase/u16-casexfrm'.
40639         * lib/unicase/u16-casexfrm.c: New file.
40640         * modules/unicase/u16-casexfrm: New file.
40641
40642         New module 'unicase/u8-casexfrm'.
40643         * lib/unicase/u8-casexfrm.c: New file.
40644         * lib/unicase/u-casexfrm.h: New file.
40645         * modules/unicase/u8-casexfrm: New file.
40646
40647         Tests for module 'unicase/u32-casecmp'.
40648         * modules/unicase/u32-casecmp-tests: New file.
40649         * tests/unicase/test-u32-casecmp.c: New file.
40650
40651         Tests for module 'unicase/u16-casecmp'.
40652         * modules/unicase/u16-casecmp-tests: New file.
40653         * tests/unicase/test-u16-casecmp.c: New file.
40654
40655         Tests for module 'unicase/u8-casecmp'.
40656         * modules/unicase/u8-casecmp-tests: New file.
40657         * tests/unicase/test-u8-casecmp.c: New file.
40658         * tests/unicase/test-casecmp.h: New file.
40659
40660         New module 'unicase/u32-casecmp'.
40661         * lib/unicase/u32-casecmp.c: New file.
40662         * modules/unicase/u32-casecmp: New file.
40663
40664         New module 'unicase/u16-casecmp'.
40665         * lib/unicase/u16-casecmp.c: New file.
40666         * modules/unicase/u16-casecmp: New file.
40667
40668         New module 'unicase/u8-casecmp'.
40669         * lib/unicase/u8-casecmp.c: New file.
40670         * lib/unicase/u-casecmp.h: New file.
40671         * modules/unicase/u8-casecmp: New file.
40672
40673         Tests for module 'unicase/u32-casefold'.
40674         * modules/unicase/u32-casefold-tests: New file.
40675         * tests/unicase/test-u32-casefold.c: New file.
40676
40677         Tests for module 'unicase/u16-casefold'.
40678         * modules/unicase/u16-casefold-tests: New file.
40679         * tests/unicase/test-u16-casefold.c: New file.
40680
40681         Tests for module 'unicase/u8-casefold'.
40682         * modules/unicase/u8-casefold-tests: New file.
40683         * tests/unicase/test-u8-casefold.c: New file.
40684
40685         New module 'unicase/u32-casefold'.
40686         * lib/unicase/u32-casefold.c: New file.
40687         * modules/unicase/u32-casefold: New file.
40688
40689         New module 'unicase/u16-casefold'.
40690         * lib/unicase/u16-casefold.c: New file.
40691         * modules/unicase/u16-casefold: New file.
40692
40693         New module 'unicase/u8-casefold'.
40694         * lib/unicase/u8-casefold.c: New file.
40695         * lib/unicase/u-casefold.h: New file.
40696         * modules/unicase/u8-casefold: New file.
40697
40698         New module 'unicase/tocasefold'.
40699         * lib/unicase/casefold.h: New file.
40700         * lib/unicase/tocasefold.c: New file.
40701         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
40702         * modules/unicase/tocasefold: New file.
40703
40704         Tests for module 'unicase/u32-totitle'.
40705         * modules/unicase/u32-totitle-tests: New file.
40706         * tests/unicase/test-u32-totitle.c: New file.
40707
40708         Tests for module 'unicase/u16-totitle'.
40709         * modules/unicase/u16-totitle-tests: New file.
40710         * tests/unicase/test-u16-totitle.c: New file.
40711
40712         Tests for module 'unicase/u8-totitle'.
40713         * modules/unicase/u8-totitle-tests: New file.
40714         * tests/unicase/test-u8-totitle.c: New file.
40715
40716         New module 'unicase/u32-totitle'.
40717         * lib/unicase/u32-totitle.c: New file.
40718         * modules/unicase/u32-totitle: New file.
40719
40720         New module 'unicase/u16-totitle'.
40721         * lib/unicase/u16-totitle.c: New file.
40722         * modules/unicase/u16-totitle: New file.
40723
40724         New module 'unicase/u8-totitle'.
40725         * lib/unicase/u8-totitle.c: New file.
40726         * lib/unicase/u-totitle.h: New file.
40727         * modules/unicase/u8-totitle: New file.
40728
40729         Tests for module 'unicase/u32-tolower'.
40730         * modules/unicase/u32-tolower-tests: New file.
40731         * tests/unicase/test-u32-tolower.c: New file.
40732
40733         Tests for module 'unicase/u16-tolower'.
40734         * modules/unicase/u16-tolower-tests: New file.
40735         * tests/unicase/test-u16-tolower.c: New file.
40736
40737         Tests for module 'unicase/u8-tolower'.
40738         * modules/unicase/u8-tolower-tests: New file.
40739         * tests/unicase/test-u8-tolower.c: New file.
40740
40741         New module 'unicase/u32-tolower'.
40742         * lib/unicase/u32-tolower.c: New file.
40743         * modules/unicase/u32-tolower: New file.
40744
40745         New module 'unicase/u16-tolower'.
40746         * lib/unicase/u16-tolower.c: New file.
40747         * modules/unicase/u16-tolower: New file.
40748
40749         New module 'unicase/u8-tolower'.
40750         * lib/unicase/u8-tolower.c: New file.
40751         * modules/unicase/u8-tolower: New file.
40752
40753         Tests for module 'unicase/u32-toupper'.
40754         * modules/unicase/u32-toupper-tests: New file.
40755         * tests/unicase/test-u32-toupper.c: New file.
40756
40757         Tests for module 'unicase/u16-toupper'.
40758         * modules/unicase/u16-toupper-tests: New file.
40759         * tests/unicase/test-u16-toupper.c: New file.
40760
40761         Tests for module 'unicase/u8-toupper'.
40762         * modules/unicase/u8-toupper-tests: New file.
40763         * tests/unicase/test-u8-toupper.c: New file.
40764
40765         New module 'unicase/u32-toupper'.
40766         * lib/unicase/u32-toupper.c: New file.
40767         * modules/unicase/u32-toupper: New file.
40768
40769         New module 'unicase/u16-toupper'.
40770         * lib/unicase/u16-toupper.c: New file.
40771         * modules/unicase/u16-toupper: New file.
40772
40773         New module 'unicase/u8-toupper'.
40774         * lib/unicase/u8-toupper.c: New file.
40775         * modules/unicase/u8-toupper: New file.
40776
40777         New module 'unicase/u32-casemap'.
40778         * lib/unicase/u32-casemap.c: New file.
40779         * modules/unicase/u32-casemap: New file.
40780
40781         New module 'unicase/u16-casemap'.
40782         * lib/unicase/u16-casemap.c: New file.
40783         * modules/unicase/u16-casemap: New file.
40784
40785         New module 'unicase/u8-casemap'.
40786         * lib/unicase/unicasemap.h: New file.
40787         * lib/unicase/u8-casemap.c: New file.
40788         * lib/unicase/u-casemap.h: New file.
40789         * modules/unicase/u8-casemap: New file.
40790
40791         New module 'unicase/special-casing'.
40792         * lib/unicase/special-casing.h: New file.
40793         * lib/unicase/special-casing.c: New file.
40794         * lib/unicase/special-casing-table.gperf: New file, generated by
40795         gen-uni-tables.c.
40796         * modules/unicase/special-casing: New file.
40797
40798         Tests for module 'unicase/locale-language'.
40799         * modules/unicase/locale-language-tests: New file.
40800         * tests/unicase/test-locale-language.sh: New file.
40801         * tests/unicase/test-locale-language.c: New file.
40802
40803         New module 'unicase/locale-language'.
40804         * lib/unicase/locale-language.c: New file.
40805         * lib/unicase/locale-languages.gperf: New file.
40806         * modules/unicase/locale-language: New file.
40807
40808         Generate more tables for case conversion and case folding.
40809         * lib/gen-uni-tables.c (SCC_*): New enum items.
40810         (struct special_casing_rule): New type.
40811         (casing_rules, num_casing_rules, allocated_casing_rules): New
40812         variables.
40813         (add_casing_rule, fill_casing_rules): New functions.
40814         (struct casefold_rule): New type.
40815         (casefolding_rules, num_casefolding_rules,
40816         allocated_casefolding_rules): New variables.
40817         (fill_casefolding_rules): New function.
40818         (unicode_casefold): New variable.
40819         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
40820         sort_casing_rules, output_casing_rules): New functions.
40821         (main): Accept to more arguments: SpecialCasing.txt and
40822         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
40823         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
40824         Output mapping for casefolding.
40825
40826         * lib/unicase.h: Include stdbool.h, uninorm.h.
40827         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
40828         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
40829         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
40830         arguments.
40831         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
40832         resultp arguments.
40833         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
40834         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
40835         resultp arguments.
40836         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
40837         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
40838         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
40839         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
40840         declarations.
40841         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
40842
40843 2009-03-08  Bruno Haible  <bruno@clisp.org>
40844
40845         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40846         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
40847         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
40848         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40849
40850 2009-03-07  Bruno Haible  <bruno@clisp.org>
40851
40852         Adjust u*_normcmp, u*_normcoll API.
40853         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40854         u16_normcoll, u32_normcoll): Change failure conventions.
40855         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
40856         errno and return -1.
40857         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40858
40859 2009-03-07  Bruno Haible  <bruno@clisp.org>
40860
40861         Tests for module 'uninorm/u32-normcoll'.
40862         * modules/uninorm/u32-normcoll-tests: New file.
40863         * tests/uninorm/test-u32-normcoll.c: New file.
40864
40865         Tests for module 'uninorm/u16-normcoll'.
40866         * modules/uninorm/u16-normcoll-tests: New file.
40867         * tests/uninorm/test-u16-normcoll.c: New file.
40868
40869         Tests for module 'uninorm/u8-normcoll'.
40870         * modules/uninorm/u8-normcoll-tests: New file.
40871         * tests/uninorm/test-u8-normcoll.c: New file.
40872
40873 2009-03-07  Bruno Haible  <bruno@clisp.org>
40874
40875         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
40876         tests/uninorm/test-u32-normcmp.c.
40877         * tests/uninorm/test-u32-normcmp.c: Include it.
40878         (test_nonascii): New function, extracted from main. Add some more
40879         tests.
40880         (main): Invoke test_ascii and test_nonascii.
40881         * modules/uninorm/u32-normcmp-tests (Files): Add
40882         tests/uninorm/test-u32-normcmp.h.
40883         (Depends-on): Remove uninorm/u32-normcmp.
40884
40885         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
40886         tests/uninorm/test-u16-normcmp.c.
40887         * tests/uninorm/test-u16-normcmp.c: Include it.
40888         (test_nonascii): New function, extracted from main. Add some more
40889         tests.
40890         (main): Invoke test_ascii and test_nonascii.
40891         * modules/uninorm/u16-normcmp-tests (Files): Add
40892         tests/uninorm/test-u16-normcmp.h.
40893         (Depends-on): Remove uninorm/u16-normcmp.
40894
40895         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
40896         tests/uninorm/test-u8-normcmp.c.
40897         * tests/uninorm/test-u8-normcmp.c: Include it.
40898         (test_nonascii): New function, extracted from main. Add some more
40899         tests.
40900         (main): Invoke test_ascii and test_nonascii.
40901         * modules/uninorm/u8-normcmp-tests (Files): Add
40902         tests/uninorm/test-u8-normcmp.h.
40903         (Depends-on): Remove uninorm/u8-normcmp.
40904
40905 2009-03-07  Bruno Haible  <bruno@clisp.org>
40906
40907         New module 'uninorm/u32-normcoll'.
40908         * lib/uninorm/u32-normcoll.c: New file.
40909         * modules/uninorm/u32-normcoll: New file.
40910
40911         New module 'uninorm/u16-normcoll'.
40912         * lib/uninorm/u16-normcoll.c: New file.
40913         * modules/uninorm/u16-normcoll: New file.
40914
40915         New module 'uninorm/u8-normcoll'.
40916         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
40917         declarations.
40918         * lib/uninorm/u8-normcoll.c: New file.
40919         * lib/uninorm/u-normcoll.h: New file.
40920         * modules/uninorm/u8-normcoll: New file.
40921
40922         New module 'uninorm/u32-normxfrm'.
40923         * lib/uninorm/u32-normxfrm.c: New file.
40924         * modules/uninorm/u32-normxfrm: New file.
40925
40926         New module 'uninorm/u16-normxfrm'.
40927         * lib/uninorm/u16-normxfrm.c: New file.
40928         * modules/uninorm/u16-normxfrm: New file.
40929
40930         New module 'uninorm/u8-normxfrm'.
40931         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
40932         declarations.
40933         * lib/uninorm/u8-normxfrm.c: New file.
40934         * lib/uninorm/u-normxfrm.h: New file.
40935         * modules/uninorm/u8-normxfrm: New file.
40936
40937 2009-03-07  Bruno Haible  <bruno@clisp.org>
40938
40939         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
40940         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
40941         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
40942
40943 2009-03-07  Bruno Haible  <bruno@clisp.org>
40944
40945         New module 'memxfrm'.
40946         * lib/memxfrm.h: New file.
40947         * lib/memxfrm.c: New file.
40948         * modules/memxfrm: New file.
40949
40950 2009-03-07  Bruno Haible  <bruno@clisp.org>
40951
40952         New module 'memcmp2'.
40953         * lib/memcmp2.h: New file.
40954         * lib/memcmp2.c: New file.
40955         * modules/memcmp2: New file.
40956
40957 2009-03-07  Bruno Haible  <bruno@clisp.org>
40958
40959         Tests for module 'uninorm/decomposing-form'.
40960         * modules/uninorm/decomposing-form-tests: New file.
40961         * tests/uninorm/test-decomposing-form.c: New file.
40962
40963         New module 'uninorm/decomposing-form'.
40964         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
40965         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
40966         Add 'decomposing_variant' field.
40967         * lib/uninorm/decomposing-form.c: New file.
40968         * lib/uninorm/nfc.c (uninorm_nfc): Update.
40969         * lib/uninorm/nfd.c (uninorm_nfd): Update.
40970         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
40971         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
40972         * modules/uninorm/decomposing-form: New file.
40973         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
40974         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
40975
40976 2009-03-07  Bruno Haible  <bruno@clisp.org>
40977
40978         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
40979         strings.
40980
40981 2009-03-06  Bruno Haible  <bruno@clisp.org>
40982
40983         Tests for module 'uninorm/u32-normcmp'.
40984         * tests/uninorm/test-u32-normcmp.c: New file.
40985         * modules/uninorm/u32-normcmp-tests: New file.
40986
40987         Tests for module 'uninorm/u16-normcmp'.
40988         * tests/uninorm/test-u16-normcmp.c: New file.
40989         * modules/uninorm/u16-normcmp-tests: New file.
40990
40991         Tests for module 'uninorm/u8-normcmp'.
40992         * tests/uninorm/test-u8-normcmp.c: New file.
40993         * modules/uninorm/u8-normcmp-tests: New file.
40994
40995         New module 'uninorm/u32-normcmp'.
40996         * lib/uninorm/u32-normcmp.c: New file.
40997         * modules/uninorm/u32-normcmp: New file.
40998
40999         New module 'uninorm/u16-normcmp'.
41000         * lib/uninorm/u16-normcmp.c: New file.
41001         * modules/uninorm/u16-normcmp: New file.
41002
41003         New module 'uninorm/u8-normcmp'.
41004         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
41005         declarations.
41006         * lib/uninorm/u8-normcmp.c: New file.
41007         * lib/uninorm/u-normcmp.h: New file.
41008         * modules/uninorm/u8-normcmp: New file.
41009
41010 2009-03-06  Bruno Haible  <bruno@clisp.org>
41011
41012         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
41013         Reported by Eric Blake.
41014
41015 2009-03-06  Eric Blake  <ebb9@byu.net>
41016             Bruno Haible  <bruno@clisp.org>
41017
41018         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
41019         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
41020         condition.
41021         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
41022         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
41023         condition.
41024         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
41025
41026 2009-03-06  Eric Blake  <ebb9@byu.net>
41027
41028         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
41029         to avoid compiler warnings.
41030         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
41031
41032 2009-03-05  Bruno Haible  <bruno@clisp.org>
41033
41034         * tests/test-ftell.c (main): Disable test beyond end of file on
41035         FreeMiNT.
41036         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
41037
41038 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
41039
41040         * lib/filevercmp.c: Move hidden files up in ordering.
41041         * tests/test-filevercmp.c: Add tests for hidden files.
41042
41043 2009-03-04  Bruno Haible  <bruno@clisp.org>
41044
41045         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
41046         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
41047         AM_CFLAGS.
41048         Reported by Simon Josefsson.
41049
41050 2009-03-03  Bruno Haible  <bruno@clisp.org>
41051
41052         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
41053         Reported by Simon Josefsson.
41054
41055         * doc/ld-version-script.texi: Update node reference.
41056
41057 2009-03-03  Bruno Haible  <bruno@clisp.org>
41058
41059         * modules/visibility (License): Change to 'unlimited'.
41060         Suggested by Simon Josefsson.
41061
41062 2009-03-03  Jim Meyering  <meyering@redhat.com>
41063
41064         unlinkdir: cannot_unlink_dir may modify process state
41065         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
41066         it's neither thread-safe nor appropriate for use in a library.
41067
41068 2009-03-03  Eric Blake  <ebb9@byu.net>
41069
41070         test-closein: silence test under Darwin
41071         * tests/test-closein.sh: Ignore stderr from cat, since we don't
41072         care if it dies from EPIPE or EBADF.
41073
41074 2009-03-03  Bruno Haible  <bruno@clisp.org>
41075
41076         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
41077         earlier.
41078         * doc/visibility.texi: Fix @node and @section.
41079
41080 2009-03-03  Simon Josefsson  <simon@josefsson.org>
41081
41082         * doc/gnulib.texi: Link to sections for ld version script and
41083         visibility.
41084         * doc/visibility.texi: Add @node and @section.
41085         * modules/ld-version-script: New module.
41086         * m4/ld-version-script.m4: New file.
41087         * doc/ld-version-script.texi: New file.
41088
41089 2009-03-02  David Lutterkort  <lutter@redhat.com>
41090
41091         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
41092         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41093
41094 2009-03-02  Bruno Haible  <bruno@clisp.org>
41095
41096         * doc/visibility.texi: Mention libtool's -export-symbols option.
41097
41098 2009-03-02  Jim Meyering  <meyering@redhat.com>
41099
41100         announce-gen: new option: --no-print-checksums
41101         * build-aux/announce-gen (usage): Describe it.
41102         (print_checksums): Print a newline here, not in the [*] footnote.
41103         (main): Honor it.
41104
41105 2009-03-01  Bruno Haible  <bruno@clisp.org>
41106
41107         Use socklen_t in the native Windows replacements prototypes.
41108         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
41109         instead of 'int'.
41110         * lib/getsockopt.c (rpl_getsockopt): Likewise.
41111         * lib/setsockopt.c (rpl_setsockopt): Likewise.
41112         * modules/getsockopt (Depends-on): Add socklen.
41113         * modules/setsockopt (Depends-on): Add socklen.
41114
41115 2009-03-01  Bruno Haible  <bruno@clisp.org>
41116
41117         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
41118         least 4.2.
41119
41120 2009-03-01  Eric Blake  <ebb9@byu.net>
41121             Bruno Haible  <bruno@clisp.org>
41122
41123         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
41124         error messages.
41125         * lib/wait-process.c (wait_subprocess): Omit error message about
41126         deadly signal sent to the child of termsigp != NULL.
41127
41128 2009-03-01  Eric Blake  <ebb9@byu.net>
41129
41130         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
41131
41132 2009-03-01  Bruno Haible  <bruno@clisp.org>
41133
41134         Avoid a gcc warning.
41135         * tests/test-sched.c (b): Make global.
41136         Reported by Eric Blake.
41137
41138 2009-01-19  Martin Lambers  <marlam@marlam.de>
41139
41140         Provide POSIX semantics for socket timeout options on W32.
41141         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
41142         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
41143         * modules/setsockopt: Depend on sys_time module for struct timeval.
41144         * modules/getsockopt: Depend on sys_time module for struct timeval.
41145
41146 2009-03-01  Simon Josefsson  <simon@josefsson.org>
41147
41148         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
41149         __USE_GNU, for consistency with netdb.in.h.
41150         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41151
41152 2009-03-01  Bruno Haible  <bruno@clisp.org>
41153
41154         More support for FreeMiNT.
41155         * lib/fseeko.c (rpl_fseeko): Complete last commit.
41156         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41157
41158 2009-03-01  Bruno Haible  <bruno@clisp.org>
41159
41160         More support for FreeMiNT.
41161         * lib/fpurge.c (fpurge): Correct last commit.
41162         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41163
41164 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41165
41166         Fix unportable awk script in vc-list-files.
41167         * build-aux/vc-list-files: In the replacement awk script, use
41168         substr with a second argument of 1, not zero.
41169         Report by Simon Josefsson.
41170
41171 2009-02-28  Bruno Haible  <bruno@clisp.org>
41172
41173         More support for FreeMiNT.
41174         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
41175         to FreeMiNT today.
41176         * lib/fwriting.c (fwriting): Likewise.
41177         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
41178
41179 2009-02-28  Bruno Haible  <bruno@clisp.org>
41180
41181         * tests/test-freadseek.c (main): Disable test beyond end of file on
41182         FreeMiNT.
41183         * tests/test-ftello.c (main): Likewise.
41184         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
41185
41186 2009-02-28  Bruno Haible  <bruno@clisp.org>
41187
41188         Add tentative support for FreeMiNT.
41189         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
41190         * lib/fpurge.c (fpurge): Likewise.
41191         * lib/freadable.c (freadable): Likewise.
41192         * lib/freading.c (freading): Likewise.
41193         * lib/freadptr.c (freadptr): Likewise.
41194         * lib/freadseek.c (freadptrinc): Likewise.
41195         * lib/fseeko.c (rpl_fseeko): Likewise.
41196         * lib/fseterr.c (fseterr): Likewise.
41197         * lib/fwritable.c (fwritable): Likewise.
41198         * lib/fwriting.c (fwriting): Likewise.
41199         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
41200         Hourihane.
41201         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41202
41203 2009-02-28  Bruno Haible  <bruno@clisp.org>
41204
41205         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
41206         SIGCHLD.
41207         Reported by Jim Meyering.
41208
41209 2009-02-28  Bruno Haible  <bruno@clisp.org>
41210
41211         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
41212         Mention the results of these tests on various platforms.
41213         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
41214         order.
41215         * doc/posix-functions/printf.texi: Likewise.
41216         * doc/posix-functions/snprintf.texi: Likewise.
41217         * doc/posix-functions/sprintf.texi: Likewise.
41218         * doc/posix-functions/vfprintf.texi: Likewise.
41219         * doc/posix-functions/vprintf.texi: Likewise.
41220         * doc/posix-functions/vsnprintf.texi: Likewise.
41221         * doc/posix-functions/vsprintf.texi: Likewise.
41222         * doc/glibc-functions/obstack_printf.texi: Likewise.
41223         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
41224
41225 2009-02-28  Bruno Haible  <bruno@clisp.org>
41226
41227         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
41228         Reported by Loïc Minier <lool@dooz.org>.
41229
41230 2009-02-27  Bruno Haible  <bruno@clisp.org>
41231
41232         * gnulib-tool (func_import): Make the sed expression used to create the
41233         sed script for updating the .gitignore file POSIX compliant.
41234         Reported by Eric Blake.
41235
41236 2009-02-27  Bruno Haible  <bruno@clisp.org>
41237
41238         * gnulib-tool (sed): Don't alias as "sed --posix".
41239         Reported by Eric Blake.
41240
41241 2009-02-27  Bruno Haible  <bruno@clisp.org>
41242
41243         Avoid test link errors.
41244         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
41245         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
41246         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
41247         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
41248         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41249
41250 2009-02-27  Bruno Haible  <bruno@clisp.org>
41251
41252         Avoid spurious "(cached)" in configure output.
41253         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
41254         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
41255         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
41256         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
41257         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
41258         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
41259         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
41260         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
41261         Reported by Eric Blake.
41262
41263 2009-02-27  Eric Blake  <ebb9@byu.net>
41264
41265         printf: fix regression in previous patch
41266         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
41267
41268 2009-02-27  Bruno Haible  <bruno@clisp.org>
41269
41270         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
41271         value.
41272         * lib/stdint.in.h: Likewise.
41273         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
41274
41275 2009-02-27  Eric Blake  <ebb9@byu.net>
41276
41277         doc: mention more functions added in cygwin 1.7.0
41278         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
41279         addition.
41280         * doc/posix-functions/open_wmemstream.texi: Likewise.
41281         * doc/posix-functions/wcsnlen.texi: Likewise.
41282         * doc/posix-functions/wcsnrtombs.texi: Likewise.
41283         * doc/posix-functions/wcstod.texi: Likewise.
41284         * doc/posix-functions/wcstof.texi: Likewise.
41285         * doc/posix-functions/wcstoimax.texi: Likewise.
41286         * doc/posix-functions/wcstok.texi: Likewise.
41287         * doc/posix-functions/wcstoumax.texi: Likewise.
41288
41289         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
41290         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
41291         * doc/posix-functions/fprintf.texi: Update.
41292         * doc/posix-functions/printf.texi: Update.
41293         * doc/posix-functions/snprintf.texi: Update.
41294         * doc/posix-functions/sprintf.texi: Update.
41295         * doc/posix-functions/vfprintf.texi: Update.
41296         * doc/posix-functions/vprintf.texi: Update.
41297         * doc/posix-functions/vsnprintf.texi: Update.
41298         * doc/posix-functions/vsprintf.texi: Update.
41299         * doc/glibc-functions/obstack_printf.texi: Update.
41300         * doc/glibc-functions/obstack_vprintf.texi: Update.
41301
41302 2009-02-26  Eric Blake  <ebb9@byu.net>
41303
41304         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
41305         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
41306         compilation bug by using runtime conversion.
41307         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
41308         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
41309         * modules/ceill-tests (Files): Use nan.h.
41310         * modules/floorl-tests (Files): Likewise.
41311         * modules/frexpl-tests (Files): Likewise.
41312         * modules/isnanl-tests (Files): Likewise.
41313         * modules/ldexpl-tests (Files): Likewise.
41314         * modules/roundl-tests (Files): Likewise.
41315         * modules/truncl-tests (Files): Likewise.
41316         * tests/test-ceill.c (main): Use a working NaN.
41317         * tests/test-floorl.c (main): Likewise.
41318         * tests/test-frexpl.c (main): Likewise.
41319         * tests/test-isnan.c (test_long_double): Likewise.
41320         * tests/test-isnanl.h (main): Likewise.
41321         * tests/test-ldexpl.h (main): Likewise.
41322         * tests/test-roundl.h (main): Likewise.
41323         * tests/test-truncl.h (main): Likewise.
41324         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
41325
41326 2009-02-26  Eric Blake  <ebb9@byu.net>
41327             Bruno Haible  <bruno@clisp.org>
41328
41329         Work around a *printf bug with %ls on Solaris.
41330         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
41331         precision is specified, sprintf stops converting the wide string
41332         argument when the number of bytes that have been produced by this
41333         conversion equals or exceeds the precision.
41334         * doc/posix-functions/fprintf.texi: Update.
41335         * doc/posix-functions/printf.texi: Update.
41336         * doc/posix-functions/snprintf.texi: Update.
41337         * doc/posix-functions/sprintf.texi: Update.
41338         * doc/posix-functions/vfprintf.texi: Update.
41339         * doc/posix-functions/vprintf.texi: Update.
41340         * doc/posix-functions/vsnprintf.texi: Update.
41341         * doc/posix-functions/vsprintf.texi: Update.
41342         * doc/glibc-functions/obstack_printf.texi: Update.
41343         * doc/glibc-functions/obstack_vprintf.texi: Update.
41344
41345 2009-02-26  Eric Blake  <ebb9@byu.net>
41346
41347         stdlib: favor compiler check of random.h
41348         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
41349         to avoid an ObjC random.h installed by Swarm.
41350
41351 2009-02-26  Bruno Haible  <bruno@clisp.org>
41352
41353         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
41354         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
41355         Reported by Gary V. Vaughan <gary@gnu.org>.
41356
41357 2009-02-26  Bruno Haible  <bruno@clisp.org>
41358
41359         Fix *printf behaviour regarding the %ls directive.
41360         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
41361         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
41362         NEED_PRINTF_DIRECTIVE_LS.
41363         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
41364         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
41365         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41366         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
41367         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
41368         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
41369         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
41370         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41371         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41372         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41373         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41374         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
41375         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41376         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41377         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41378         * doc/posix-functions/fprintf.texi: Update.
41379         * doc/posix-functions/printf.texi: Update.
41380         * doc/posix-functions/snprintf.texi: Update.
41381         * doc/posix-functions/sprintf.texi: Update.
41382         * doc/posix-functions/vfprintf.texi: Update.
41383         * doc/posix-functions/vprintf.texi: Update.
41384         * doc/posix-functions/vsnprintf.texi: Update.
41385         * doc/posix-functions/vsprintf.texi: Update.
41386         * doc/glibc-functions/obstack_printf.texi: Update.
41387         * doc/glibc-functions/obstack_vprintf.texi: Update.
41388         Reported by Eric Blake.
41389
41390 2009-02-25  Bruno Haible  <bruno@clisp.org>
41391
41392         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
41393         with known value.
41394         Reported by Gary V. Vaughan <gary@gnu.org>.
41395
41396 2009-02-25  Bruno Haible  <bruno@clisp.org>
41397
41398         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
41399         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
41400         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
41401         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
41402         Reported by Gary V. Vaughan <gary@gnu.org>.
41403
41404 2009-02-25  Bruno Haible  <bruno@clisp.org>
41405
41406         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
41407         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
41408         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
41409         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
41410         Reported by Gary V. Vaughan <gary@gnu.org>.
41411
41412 2009-02-25  Eric Blake  <ebb9@byu.net>
41413
41414         tests: skip fseek/ftell tests if ungetc is broken
41415         * m4/ungetc.m4: New file.
41416         * modules/fseek-tests: Split test, so ungetc dependency is
41417         separate from rest of test.
41418         * modules/fseeko-tests: Likewise.
41419         * modules/ftell-tests: Likewise.
41420         * modules/ftello-tests: Likewise.
41421         * tests/test-fseek.c (main): Isolate ungetc dependency.
41422         * tests/test-fseeko.c (main): Likewise.
41423         * tests/test-ftell.c (main): Likewise.
41424         * tests/test-ftello.c (main): Likewise.
41425         * tests/test-fseek2.sh: New file.
41426         * tests/test-fseeko2.sh: Likewise.
41427         * tests/test-ftell2.sh: Likewise.
41428         * tests/test-ftello2.sh: Likewise.
41429
41430 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
41431
41432         test-getaddrinfo: fix usage of skip return code 77
41433         * tests/test-gettaddrinfo.c: Return skip code 77 only
41434         for first occurance of skip (4x77 is not 77)
41435
41436 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
41437
41438         strtod: avoid C99 decl-after-statement
41439         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
41440
41441 2009-02-24  Eric Blake  <ebb9@byu.net>
41442
41443         strtod: detect HP-UX 11.31 bug
41444         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
41445         Reported by Gary V. Vaughan.
41446
41447 2009-02-23  Bruno Haible  <bruno@clisp.org>
41448
41449         Fix invalid read past end of memory block.
41450         * lib/vasnprintf.c (DCHAR_SET): Define.
41451         (local_wcslen): Define only when needed.
41452         (local_strnlen, local_wcsnlen): New functions.
41453         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
41454         directives that involve a conversion ourselves.
41455         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
41456         wcsnlen, mbrtowc, wcrtomb.
41457         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
41458         * tests/test-vasprintf-posix.c (test_function): Likewise.
41459         * tests/test-snprintf-posix.h (test_function): Likewise.
41460         * tests/test-sprintf-posix.h (test_function): Likewise.
41461         Reported by Ben Pfaff <blp@cs.stanford.edu>.
41462
41463 2009-02-22  Bruno Haible  <bruno@clisp.org>
41464
41465         Implement new clarified decomposition of Hangul syllables.
41466         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
41467         of type LTV, return only a pairwise decomposition.
41468         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
41469         Likewise.
41470         * tests/uninorm/test-decomposition.c (main): Updated expected result.
41471         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
41472         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
41473
41474 2009-02-22  Bruno Haible  <bruno@clisp.org>
41475
41476         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
41477         zero-length results and shrink excess allocated memory.
41478         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
41479         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
41480         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
41481         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
41482         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
41483         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
41484         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
41485         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
41486         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
41487         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
41488         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
41489         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
41490
41491 2009-02-21  Bruno Haible  <bruno@clisp.org>
41492
41493         * doc/gnulib.texi: Include safe-alloc.texi earlier.
41494         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
41495         spaces after a period. Put a space between a macro name and its
41496         argument list. Trivial rewordings.
41497         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
41498         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
41499         (main): Return 0 explicitly.
41500
41501 2009-02-21  Bruno Haible  <bruno@clisp.org>
41502
41503         Tests for module 'uninorm/filter'.
41504         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
41505         * modules/uninorm/filter-tests: New file.
41506
41507         New module 'uninorm/filter'.
41508         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
41509         uninorm_filter_flush, uninorm_filter_free): New declarations.
41510         * lib/uninorm/uninorm-filter.c: New file.
41511         * modules/uninorm/filter: New file.
41512
41513 2009-02-21  Bruno Haible  <bruno@clisp.org>
41514
41515         Tests for module 'uninorm/nfkc'.
41516         * tests/uninorm/test-nfkc.c: New file.
41517         * tests/uninorm/test-u8-nfkc.c: New file.
41518         * tests/uninorm/test-u16-nfkc.c: New file.
41519         * tests/uninorm/test-u32-nfkc.c: New file.
41520         * tests/uninorm/test-u32-nfkc-big.sh: New file.
41521         * tests/uninorm/test-u32-nfkc-big.c: New file.
41522         * modules/uninorm/nfkc-tests: New file.
41523
41524         New module 'uninorm/nfkc'.
41525         * lib/uninorm/nfkc.c: New file.
41526         * modules/uninorm/nfkc: New file.
41527
41528         Tests for module 'uninorm/nfkd'.
41529         * tests/uninorm/test-nfkd.c: New file.
41530         * tests/uninorm/test-u8-nfkd.c: New file.
41531         * tests/uninorm/test-u16-nfkd.c: New file.
41532         * tests/uninorm/test-u32-nfkd.c: New file.
41533         * tests/uninorm/test-u32-nfkd-big.sh: New file.
41534         * tests/uninorm/test-u32-nfkd-big.c: New file.
41535         * modules/uninorm/nfkd-tests: New file.
41536
41537         New module 'uninorm/nfkd'.
41538         * lib/uninorm/nfkd.c: New file.
41539         * modules/uninorm/nfkd: New file.
41540
41541         Tests for module 'uninorm/nfc'.
41542         * tests/uninorm/test-nfc.c: New file.
41543         * tests/uninorm/test-u8-nfc.c: New file.
41544         * tests/uninorm/test-u16-nfc.c: New file.
41545         * tests/uninorm/test-u32-nfc.c: New file.
41546         * tests/uninorm/test-u32-nfc-big.sh: New file.
41547         * tests/uninorm/test-u32-nfc-big.c: New file.
41548         * modules/uninorm/nfc-tests: New file.
41549
41550         New module 'uninorm/nfc'.
41551         * lib/uninorm/nfc.c: New file.
41552         * modules/uninorm/nfc: New file.
41553
41554         Tests for module 'uninorm/nfd'.
41555         * tests/uninorm/test-nfd.c: New file.
41556         * tests/uninorm/test-u8-nfd.c: New file.
41557         * tests/uninorm/test-u16-nfd.c: New file.
41558         * tests/uninorm/test-u32-nfd.c: New file.
41559         * tests/uninorm/test-u32-nfd-big.sh: New file.
41560         * tests/uninorm/test-u32-nfd-big.c: New file.
41561         * tests/uninorm/test-u32-normalize-big.h: New file.
41562         * tests/uninorm/test-u32-normalize-big.c: New file.
41563         * tests/uninorm/NormalizationTest.txt: New file, created from
41564         Unicode 5.1.0 NormalizationTest.txt.
41565         * modules/uninorm/nfd-tests: New file.
41566
41567         New module 'uninorm/nfd'.
41568         * lib/uninorm/nfd.c: New file.
41569         * modules/uninorm/nfd: New file.
41570
41571         New module 'uninorm/u32-normalize'.
41572         * lib/uninorm/u32-normalize.c: New file.
41573         * modules/uninorm/u32-normalize: New file.
41574
41575         New module 'uninorm/u16-normalize'.
41576         * lib/uninorm/u16-normalize.c: New file.
41577         * modules/uninorm/u16-normalize: New file.
41578
41579         New module 'uninorm/u8-normalize'.
41580         * lib/uninorm/u8-normalize.c: New file.
41581         * lib/uninorm/normalize-internal.h: New file.
41582         * lib/uninorm/u-normalize-internal.h: New file.
41583         * modules/uninorm/u8-normalize: New file.
41584
41585         New module 'uninorm/decompose-internal'.
41586         * lib/uninorm/decompose-internal.c: New file.
41587         * modules/uninorm/decompose-internal: New file.
41588
41589         Tests for module 'uninorm/composition'.
41590         * tests/uninorm/test-composition.c: New file.
41591         * modules/uninorm/composition-tests: New file.
41592
41593         New module 'uninorm/composition'.
41594         * lib/uninorm/composition.c: New file.
41595         * lib/uninorm/composition-table.gperf: New file, generated by
41596         gen-uni-tables.
41597         * modules/uninorm/composition: New file.
41598
41599         Tests for module 'uninorm/compat-decomposition'.
41600         * tests/uninorm/test-compat-decomposition.c: New file.
41601         * modules/uninorm/compat-decomposition-tests: New file.
41602
41603         New module 'uninorm/compat-decomposition'.
41604         * lib/uninorm/decompose-internal.h: New file.
41605         * lib/uninorm/compat-decomposition.c: New file.
41606         * modules/uninorm/compat-decomposition: New file.
41607
41608         Tests for module 'uninorm/canonical-decomposition'.
41609         * tests/uninorm/test-canonical-decomposition.c: New file.
41610         * modules/uninorm/canonical-decomposition-tests: New file.
41611
41612         New module 'uninorm/canonical-decomposition'.
41613         * lib/uninorm/canonical-decomposition.c: New file.
41614         * modules/uninorm/canonical-decomposition: New file.
41615
41616         Tests for module 'uninorm/decomposition'.
41617         * tests/uninorm/test-decomposition.c: New file.
41618         * modules/uninorm/decomposition-tests: New file.
41619
41620         New module 'uninorm/decomposition'.
41621         * lib/uninorm/decomposition.c: New file.
41622         * modules/uninorm/decomposition: New file.
41623
41624         New module 'uninorm/decomposition-table'.
41625         * lib/uninorm/decomposition-table.h: New file.
41626         * lib/uninorm/decomposition-table.c: New file.
41627         * lib/uninorm/decomposition-table1.h: New file, generated by
41628         gen-uni-tables.
41629         * lib/uninorm/decomposition-table2.h: New file, generated by
41630         gen-uni-tables.
41631         * modules/uninorm/decomposition-table: New file.
41632
41633         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
41634         (UC_DECOMP_*): New enumeration items.
41635         (get_decomposition): New function.
41636         (struct decomp_table): New type.
41637         (output_decomposition, output_decomposition_tables): New functions.
41638         (unicode_composition_exclusions): New variable.
41639         (fill_composition_exclusions, debug_output_composition_tables): New
41640         functions.
41641         (main): Accept one more argument. Invoke fill_composition_exclusions.
41642         Output decomposition and composition tables.
41643
41644         New module 'uninorm/base'.
41645         * lib/uninorm.h: New file.
41646         * lib/unictype.h: Update comment.
41647         * modules/uninorm/base: New file.
41648
41649 2009-02-21  David Lutterkort  <lutter@redhat.com>
41650
41651         Tests for module 'safe-alloc'.
41652         * tests/test-safe-alloc.c: New file.
41653         * modules/safe-alloc-tests: New file.
41654
41655         New module 'safe-alloc'.
41656         * lib/safe-alloc.h: New file.
41657         * lib/safe-alloc.c: New file.
41658         * m4/safe-alloc.m4: New file.
41659         * modules/safe-alloc: New file.
41660         * doc/safe-alloc.texi: New file.
41661         * doc/gnulib.texi: Include it.
41662         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
41663         safe-alloc.
41664
41665 2009-02-18  Bruno Haible  <bruno@clisp.org>
41666
41667         Fix link error on non-glibc systems.
41668         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
41669         variable.
41670         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41671
41672 2009-02-18  Jim Meyering  <meyering@redhat.com>
41673
41674         fts: avoid used-uninitialized error due to recent change
41675         * lib/fts.c (fts_read): Guard uses of the new member,
41676         parent->fts_n_dirs_remaining, since it's not relevant for
41677         the parent of a directory specified on the command-line.
41678
41679 2009-02-17  James Youngman  <jay@gnu.org>
41680             Bruno Haible  <bruno@clisp.org>
41681
41682         * m4/include_next.m4: Reformulate comment.
41683
41684 2009-02-16  Jim Meyering  <meyering@redhat.com>
41685
41686         fts: add #if guards so that the fts_lgpl module still builds
41687         * lib/fts.c: Guard just-added hash-table-using parts with
41688         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
41689         Reported by Simon Josefsson.
41690
41691 2009-02-15  Bruno Haible  <bruno@clisp.org>
41692
41693         * modules/array-mergesort-tests: New file.
41694         * tests/test-array-mergesort.c: New file.
41695
41696         New module 'array-mergesort'.
41697         * modules/array-mergesort: New file.
41698         * lib/array-mergesort.h: New file.
41699
41700 2009-02-15  Bruno Haible  <bruno@clisp.org>
41701
41702         Fix 2009-02-07 commit.
41703         * lib/gen-uni-tables.c (output_predicate, output_category,
41704         output_combclass, output_bidi_category, output_decimal_digit,
41705         output_digit, output_numeric, output_mirror, output_scripts,
41706         output_ident_category, output_simple_mapping): Fix format directives.
41707         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
41708
41709 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
41710
41711         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
41712         fixes are available from IBM.
41713
41714 2009-02-13  Jim Meyering  <meyering@redhat.com>
41715
41716         fts: arrange not to stat non-directories in more cases
41717         This makes GNU find (when it doesn't need to stat each file)
41718         *much* more efficient at traversing reiserfs file systems.
41719         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
41720         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
41721         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
41722         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
41723         (leaf_optimization_applies): New function.
41724         (LCO_hash, LCO_compare): New helper functions.
41725         (link_count_optimize_ok): New function.
41726         (fts_stat): Initialize new member (if dir).
41727         (fts_read): Decrement parent's fts_n_dirs_remaining count if
41728         we've just stat'ed a directory.  Skip the stat call when possible.
41729         ---
41730         Note this AFS-related exchange:
41731         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
41732         and note find's pioctl call in find/fstype.c.
41733         But that is necessary only if you want to enable the
41734         optimization for AFS, and for now, I don't.
41735
41736         fts: move a function definition "up" (no semantic change)
41737         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
41738         "up" to precede upcoming use of a related function.
41739
41740 2009-02-11  Jim Meyering  <meyering@redhat.com>
41741
41742         fts: correct internal computation of nlinks (optimization-related)
41743         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
41744         whether the current entry is a directory, so don't test it.
41745
41746 2009-02-10  Bruno Haible  <bruno@clisp.org>
41747
41748         Tests for module 'uniwbrk/ulc-wordbreaks'.
41749         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
41750         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
41751         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
41752
41753         Tests for module 'uniwbrk/u32-wordbreaks'.
41754         * modules/uniwbrk/u32-wordbreaks-tests: New file.
41755         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
41756
41757         Tests for module 'uniwbrk/u16-wordbreaks'.
41758         * modules/uniwbrk/u16-wordbreaks-tests: New file.
41759         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
41760
41761         Tests for module 'uniwbrk/u8-wordbreaks'.
41762         * modules/uniwbrk/u8-wordbreaks-tests: New file.
41763         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
41764
41765 2009-02-10  Bruno Haible  <bruno@clisp.org>
41766
41767         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
41768         property.
41769         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
41770         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
41771         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
41772
41773 2009-02-10  Simon Josefsson  <simon@josefsson.org>
41774
41775         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
41776         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
41777
41778 2009-02-10  Bruno Haible  <bruno@clisp.org>
41779
41780         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
41781         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
41782         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
41783         * lib/unilbrk/u8-possible-linebreaks.c: Update.
41784         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
41785         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
41786
41787 2009-02-09  Simon Josefsson  <simon@josefsson.org>
41788
41789         * lib/sockets.h (gl_fd_to_handle): New function.
41790
41791         * tests/test-sockets.c: Call gl_fd_to_handle.
41792
41793 2009-02-09  Bruno Haible  <bruno@clisp.org>
41794
41795         * doc/havelib.texi: Document the conventions on bi-arch systems.
41796
41797 2009-02-08  Bruno Haible  <bruno@clisp.org>
41798
41799         Document the AC_LIB_LINKFLAGS macro.
41800         * doc/havelib.texi: New file, mostly written on 2005-05-24.
41801         * doc/gnulib.texi: Include it.
41802
41803 2009-02-08  Bruno Haible  <bruno@clisp.org>
41804
41805         Fix wrong order of sections, compared to TOC.
41806         * doc/gnulib.texi: Include relocatable-maint.texi after the
41807         "Regular expressions" node, not before.
41808
41809 2009-02-08  Bruno Haible  <bruno@clisp.org>
41810
41811         Tests for module 'unicase/totitle'.
41812         * modules/unicase/totitle-tests: New file.
41813
41814         Tests for module 'unicase/tolower'.
41815         * modules/unicase/tolower-tests: New file.
41816
41817         Tests for module 'unicase/toupper'.
41818         * modules/unicase/toupper-tests: New file.
41819         * tests/unicase/test-mapping-part1.h: New file.
41820         * tests/unicase/test-mapping-part2.h: New file.
41821
41822         New module 'unicase/totitle'.
41823         * modules/unicase/totitle: New file.
41824         * lib/unicase/totitle.c: New file.
41825
41826         New module 'unicase/tolower'.
41827         * modules/unicase/tolower: New file.
41828         * lib/unicase/tolower.c: New file.
41829
41830         New module 'unicase/toupper'.
41831         * modules/unicase/toupper: New file.
41832         * lib/unicase/toupper.c: New file.
41833         * lib/unicase/simple-mapping.h: New file.
41834
41835         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
41836         (mapping_table): New structure.
41837         (output_simple_mapping): New function.
41838         (main): Invoke output_simple_mapping_test and output_simple_mapping.
41839         * modules/gen-uni-tables (Description): Update.
41840         * lib/unicase/toupper.h: New file, automatically generated by
41841         gen-uni-tables.
41842         * lib/unicase/tolower.h: New file, automatically generated by
41843         gen-uni-tables.
41844         * lib/unicase/totitle.h: New file, automatically generated by
41845         gen-uni-tables.
41846         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
41847         gen-uni-tables.
41848         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
41849         gen-uni-tables.
41850         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
41851         gen-uni-tables.
41852
41853         New module 'unicase/base'.
41854         * modules/unicase/base: New file.
41855         * lib/unicase.h: New file.
41856
41857 2009-02-08  Bruno Haible  <bruno@clisp.org>
41858
41859         New module 'uniwbrk/ulc-wordbreaks'.
41860         * modules/uniwbrk/ulc-wordbreaks: New file.
41861         * lib/uniwbrk/ulc-wordbreaks.c: New file.
41862
41863         New module 'uniwbrk/u32-wordbreaks'.
41864         * modules/uniwbrk/u32-wordbreaks: New file.
41865         * lib/uniwbrk/u32-wordbreaks.c: New file.
41866
41867         New module 'uniwbrk/u16-wordbreaks'.
41868         * modules/uniwbrk/u16-wordbreaks: New file.
41869         * lib/uniwbrk/u16-wordbreaks.c: New file.
41870
41871         New module 'uniwbrk/u8-wordbreaks'.
41872         * modules/uniwbrk/u8-wordbreaks: New file.
41873         * lib/uniwbrk/u8-wordbreaks.c: New file.
41874         * lib/uniwbrk/u-wordbreaks.h: New file.
41875
41876         New module 'uniwbrk/table'.
41877         * modules/uniwbrk/table: New file.
41878         * lib/uniwbrk/wbrktable.h: New file.
41879         * lib/uniwbrk/wbrktable.c: New file.
41880
41881         New module 'uniwbrk/wordbreak-property'.
41882         * modules/uniwbrk/wordbreak-property: New file.
41883         * lib/uniwbrk/wordbreak-property.c: New file.
41884
41885         * lib/gen-uni-tables.c (WBP_*): New enum items.
41886         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
41887         (unicode_org_wbp): New variable.
41888         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
41889         New functions.
41890         (wbp_table): New structure.
41891         (output_wbp, output_wbrk_tables): New functions.
41892         (main): Accept additional argument. Invoke fill_org_wbp,
41893         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
41894         output_wbrk_tables.
41895         * modules/gen-uni-tables (Description): Update.
41896         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
41897         gen-uni-tables.
41898
41899         New module 'uniwbrk/base'.
41900         * modules/uniwbrk/base: New file.
41901         * lib/uniwbrk.h: New file.
41902
41903 2009-02-08  Bruno Haible  <bruno@clisp.org>
41904
41905         Update to Unicode 5.1.0.
41906         * lib/gen-uni-tables.c (is_property_alphabetic): Include
41907         U+2185..U+2188.
41908         (is_property_default_ignorable_code_point): Don't include characters
41909         of category Cc or Cs and not-a-characters.
41910         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
41911         U+0D79, U+109E, U+109F, U+A60C.
41912         * lib/unictype/bidi_of.h: Regenerated.
41913         * lib/unictype/blocks.h: Regenerated.
41914         * lib/unictype/categ_C.h: Regenerated.
41915         * lib/unictype/categ_Cf.h: Regenerated.
41916         * lib/unictype/categ_Cn.h: Regenerated.
41917         * lib/unictype/categ_L.h: Regenerated.
41918         * lib/unictype/categ_Ll.h: Regenerated.
41919         * lib/unictype/categ_Lm.h: Regenerated.
41920         * lib/unictype/categ_Lo.h: Regenerated.
41921         * lib/unictype/categ_Lu.h: Regenerated.
41922         * lib/unictype/categ_M.h: Regenerated.
41923         * lib/unictype/categ_Mc.h: Regenerated.
41924         * lib/unictype/categ_Me.h: Regenerated.
41925         * lib/unictype/categ_Mn.h: Regenerated.
41926         * lib/unictype/categ_N.h: Regenerated.
41927         * lib/unictype/categ_Nd.h: Regenerated.
41928         * lib/unictype/categ_Nl.h: Regenerated.
41929         * lib/unictype/categ_No.h: Regenerated.
41930         * lib/unictype/categ_P.h: Regenerated.
41931         * lib/unictype/categ_Pd.h: Regenerated.
41932         * lib/unictype/categ_Pe.h: Regenerated.
41933         * lib/unictype/categ_Pf.h: Regenerated.
41934         * lib/unictype/categ_Pi.h: Regenerated.
41935         * lib/unictype/categ_Po.h: Regenerated.
41936         * lib/unictype/categ_Ps.h: Regenerated.
41937         * lib/unictype/categ_S.h: Regenerated.
41938         * lib/unictype/categ_Sk.h: Regenerated.
41939         * lib/unictype/categ_Sm.h: Regenerated.
41940         * lib/unictype/categ_So.h: Regenerated.
41941         * lib/unictype/categ_of.h: Regenerated.
41942         * lib/unictype/combining.h: Regenerated.
41943         * lib/unictype/ctype_alnum.h: Regenerated.
41944         * lib/unictype/ctype_alpha.h: Regenerated.
41945         * lib/unictype/ctype_graph.h: Regenerated.
41946         * lib/unictype/ctype_lower.h: Regenerated.
41947         * lib/unictype/ctype_print.h: Regenerated.
41948         * lib/unictype/ctype_punct.h: Regenerated.
41949         * lib/unictype/ctype_upper.h: Regenerated.
41950         * lib/unictype/decdigit.h: Regenerated.
41951         * lib/unictype/digit.h: Regenerated.
41952         * lib/unictype/mirror.h: Regenerated.
41953         * lib/unictype/numeric.h: Regenerated.
41954         * lib/unictype/pr_alphabetic.h: Regenerated.
41955         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
41956         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
41957         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
41958         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
41959         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
41960         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
41961         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
41962         * lib/unictype/pr_combining.h: Regenerated.
41963         * lib/unictype/pr_dash.h: Regenerated.
41964         * lib/unictype/pr_decimal_digit.h: Regenerated.
41965         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
41966         * lib/unictype/pr_deprecated.h: Regenerated.
41967         * lib/unictype/pr_diacritic.h: Regenerated.
41968         * lib/unictype/pr_extender.h: Regenerated.
41969         * lib/unictype/pr_format_control.h: Regenerated.
41970         * lib/unictype/pr_grapheme_base.h: Regenerated.
41971         * lib/unictype/pr_grapheme_extend.h: Regenerated.
41972         * lib/unictype/pr_grapheme_link.h: Regenerated.
41973         * lib/unictype/pr_id_continue.h: Regenerated.
41974         * lib/unictype/pr_id_start.h: Regenerated.
41975         * lib/unictype/pr_ideographic.h: Regenerated.
41976         * lib/unictype/pr_ignorable_control.h: Regenerated.
41977         * lib/unictype/pr_lowercase.h: Regenerated.
41978         * lib/unictype/pr_math.h: Regenerated.
41979         * lib/unictype/pr_numeric.h: Regenerated.
41980         * lib/unictype/pr_other_alphabetic.h: Regenerated.
41981         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
41982         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
41983         * lib/unictype/pr_other_id_continue.h: Regenerated.
41984         * lib/unictype/pr_other_lowercase.h: Regenerated.
41985         * lib/unictype/pr_other_math.h: Regenerated.
41986         * lib/unictype/pr_punctuation.h: Regenerated.
41987         * lib/unictype/pr_sentence_terminal.h: Regenerated.
41988         * lib/unictype/pr_soft_dotted.h: Regenerated.
41989         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
41990         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
41991         * lib/unictype/pr_unified_ideograph.h: Regenerated.
41992         * lib/unictype/pr_uppercase.h: Regenerated.
41993         * lib/unictype/pr_xid_continue.h: Regenerated.
41994         * lib/unictype/pr_xid_start.h: Regenerated.
41995         * lib/unictype/pr_zero_width.h: Regenerated.
41996         * lib/unictype/scripts.h: Regenerated.
41997         * lib/unictype/scripts_byname.gperf: Regenerated.
41998         * lib/unictype/sy_java_ident.h: Regenerated.
41999         * lib/unilbrk/lbrkprop1.h: Regenerated.
42000         * lib/unilbrk/lbrkprop2.h: Regenerated.
42001         * tests/unictype/test-categ_C.c: Regenerated.
42002         * tests/unictype/test-categ_Cf.c: Regenerated.
42003         * tests/unictype/test-categ_Cn.c: Regenerated.
42004         * tests/unictype/test-categ_L.c: Regenerated.
42005         * tests/unictype/test-categ_Ll.c: Regenerated.
42006         * tests/unictype/test-categ_Lm.c: Regenerated.
42007         * tests/unictype/test-categ_Lo.c: Regenerated.
42008         * tests/unictype/test-categ_Lu.c: Regenerated.
42009         * tests/unictype/test-categ_M.c: Regenerated.
42010         * tests/unictype/test-categ_Mc.c: Regenerated.
42011         * tests/unictype/test-categ_Me.c: Regenerated.
42012         * tests/unictype/test-categ_Mn.c: Regenerated.
42013         * tests/unictype/test-categ_N.c: Regenerated.
42014         * tests/unictype/test-categ_Nd.c: Regenerated.
42015         * tests/unictype/test-categ_Nl.c: Regenerated.
42016         * tests/unictype/test-categ_No.c: Regenerated.
42017         * tests/unictype/test-categ_P.c: Regenerated.
42018         * tests/unictype/test-categ_Pd.c: Regenerated.
42019         * tests/unictype/test-categ_Pe.c: Regenerated.
42020         * tests/unictype/test-categ_Pf.c: Regenerated.
42021         * tests/unictype/test-categ_Pi.c: Regenerated.
42022         * tests/unictype/test-categ_Po.c: Regenerated.
42023         * tests/unictype/test-categ_Ps.c: Regenerated.
42024         * tests/unictype/test-categ_S.c: Regenerated.
42025         * tests/unictype/test-categ_Sk.c: Regenerated.
42026         * tests/unictype/test-categ_Sm.c: Regenerated.
42027         * tests/unictype/test-categ_So.c: Regenerated.
42028         * tests/unictype/test-ctype_alnum.c: Regenerated.
42029         * tests/unictype/test-ctype_alpha.c: Regenerated.
42030         * tests/unictype/test-ctype_graph.c: Regenerated.
42031         * tests/unictype/test-ctype_lower.c: Regenerated.
42032         * tests/unictype/test-ctype_print.c: Regenerated.
42033         * tests/unictype/test-ctype_punct.c: Regenerated.
42034         * tests/unictype/test-ctype_upper.c: Regenerated.
42035         * tests/unictype/test-decdigit.h: Regenerated.
42036         * tests/unictype/test-digit.h: Regenerated.
42037         * tests/unictype/test-numeric.h: Regenerated.
42038         * tests/unictype/test-pr_alphabetic.c: Regenerated.
42039         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
42040         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
42041         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
42042         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
42043         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
42044         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
42045         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
42046         * tests/unictype/test-pr_combining.c: Regenerated.
42047         * tests/unictype/test-pr_dash.c: Regenerated.
42048         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
42049         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
42050         * tests/unictype/test-pr_deprecated.c: Regenerated.
42051         * tests/unictype/test-pr_diacritic.c: Regenerated.
42052         * tests/unictype/test-pr_extender.c: Regenerated.
42053         * tests/unictype/test-pr_format_control.c: Regenerated.
42054         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
42055         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
42056         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
42057         * tests/unictype/test-pr_id_continue.c: Regenerated.
42058         * tests/unictype/test-pr_id_start.c: Regenerated.
42059         * tests/unictype/test-pr_ideographic.c: Regenerated.
42060         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
42061         * tests/unictype/test-pr_lowercase.c: Regenerated.
42062         * tests/unictype/test-pr_math.c: Regenerated.
42063         * tests/unictype/test-pr_numeric.c: Regenerated.
42064         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
42065         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
42066         Regenerated.
42067         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
42068         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
42069         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
42070         * tests/unictype/test-pr_other_math.c: Regenerated.
42071         * tests/unictype/test-pr_punctuation.c: Regenerated.
42072         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
42073         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
42074         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
42075         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
42076         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
42077         * tests/unictype/test-pr_uppercase.c: Regenerated.
42078         * tests/unictype/test-pr_xid_continue.c: Regenerated.
42079         * tests/unictype/test-pr_xid_start.c: Regenerated.
42080         * tests/unictype/test-pr_zero_width.c: Regenerated.
42081
42082         Update to Unicode 5.1.0.
42083         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
42084         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
42085         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
42086         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
42087         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
42088         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
42089         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
42090         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
42091         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
42092         (nonspacing_table_ind): Update.
42093         * tests/uniwidth/test-uc_width2.sh: Update expected result.
42094
42095         Update to Unicode 5.1.0.
42096         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
42097         code transform.
42098         * lib/uniname/uniname.c (unicode_character_name,
42099         unicode_name_character): Add the range 0x1Fxxx to the code transform.
42100         * lib/uniname/uninames.h: Regenerated.
42101         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
42102
42103 2009-02-07  Bruno Haible  <bruno@clisp.org>
42104
42105         Merge gen-ctype and gen-lbrk into a single program.
42106         * lib/gen-uni-tables.c: New file, incorporating
42107         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
42108         Add directory prefixes to the names of the generated files.
42109         * lib/unictype/gen-ctype.c: Remove file.
42110         * lib/unilbrk/gen-lbrk.c: Remove file.
42111         * modules/gen-uni-tables: New file.
42112         * modules/unictype/gen-ctype: Remove file.
42113         * modules/unilbrk/gen-lbrk: Remove file.
42114
42115 2009-02-07  Bruno Haible  <bruno@clisp.org>
42116
42117         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
42118
42119         New module 'unistr/u32-strcoll'.
42120         * modules/unistr/u32-strcoll: New file.
42121         * lib/unistr/u32-strcoll.c: New file.
42122
42123         New module 'unistr/u16-strcoll'.
42124         * modules/unistr/u16-strcoll: New file.
42125         * lib/unistr/u16-strcoll.c: New file.
42126
42127         New module 'unistr/u8-strcoll'.
42128         * modules/unistr/u8-strcoll: New file.
42129         * lib/unistr/u8-strcoll.c: New file.
42130         * lib/unistr/u-strcoll.h: New file.
42131
42132 2009-02-07  Bruno Haible  <bruno@clisp.org>
42133
42134         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
42135         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
42136         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
42137         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
42138         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
42139         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
42140
42141 2009-02-07  Bruno Haible  <bruno@clisp.org>
42142
42143         Make 64-bit clean.
42144         * lib/unictype/gen-ctype.c (output_predicate, output_category,
42145         output_combclass, output_bidi_category, output_decimal_digit,
42146         output_digit, output_numeric, output_mirror, output_scripts,
42147         output_ident_category): Use proper width specifier in format strings.
42148
42149 2009-02-07  Bruno Haible  <bruno@clisp.org>
42150
42151         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
42152         failure behaviour.
42153
42154 2009-02-07  Jim Meyering  <meyering@redhat.com>
42155
42156         regex: avoid compilation failure with upcoming gcc-4.4
42157         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
42158         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
42159         "... error: integer overflow in preprocessor expression".
42160
42161 2009-02-05  Ben Pfaff  <blp@gnu.org>
42162
42163         Fix link errors on Windows when close module is used.
42164         * modules/close: Add $(LIB_CLOSE) to Link section.
42165         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
42166         $(LIB_CLOSE) on Windows.
42167
42168 2009-02-05  Jim Meyering  <meyering@redhat.com>
42169
42170         still avoid unused-parameter warnings, but do it cleanly
42171         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
42172         (get_fs_usage): Cast to void instead.
42173         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
42174         (dev_from_mount_options, read_file_system_list): Cast to void.
42175         Prompted by Bruno Haible.
42176
42177 2009-02-04  Jim Meyering  <meyering@redhat.com>
42178
42179         fsusage.c: correct copyright year
42180         * lib/fsusage.c: Reflect year in which the change is pushed into
42181
42182         avoid misc. warnings
42183         * lib/fsusage.c (UNUSED_PARAM): Define.
42184         (get_fs_usage): Mark parameter "disk" as unused.
42185         * lib/getugroups.c (getgrent): Use "void" in prototype.
42186         * lib/mountlist.c: Mark unused parameters.
42187         (read_file_system_list): Declare a local with "const".
42188         * lib/nanosleep.c (getnow): Declare static.
42189         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
42190
42191         dirfd: set errno upon failure
42192         * lib/dirfd.c: Include <errno.h>.
42193         Set errno to ENOTSUP when returning -1.
42194         * modules/dirfd (Depends-on): Add errno.
42195         Suggested by John Kodis <kodis@comcast.net>.
42196
42197 2009-02-01  Bruno Haible  <bruno@clisp.org>
42198
42199         Don't assume sizeof (long) >= sizeof (void *).
42200         * lib/memcmp.c: Include stdint.h.
42201         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
42202         srcp2 to 'const byte *'.
42203         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
42204         types to uintptr_t.
42205         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
42206         * modules/memcmp (Depends-on): Add stdint.
42207         Reported by Ozkan Sezer <sezeroz@gmail.com>.
42208
42209 2009-01-30  Eric Blake  <ebb9@byu.net>
42210
42211         fix more require-before-expand issues
42212         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
42213         expand, AC_PROG_AWK.
42214         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
42215
42216 2009-01-28  Eric Blake  <ebb9@byu.net>
42217
42218         version-etc: use consistent URL formatting
42219         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
42220         Improve formatting.  Use fputs for string without %.
42221
42222 2009-01-28  Jim Meyering  <meyering@redhat.com>
42223
42224         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
42225         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
42226         "underquoted definition of NAME" from autoconf-2.59.
42227
42228 2009-01-28  Bruno Haible  <bruno@clisp.org>
42229
42230         * doc/gnulib.texi: Add "Obsolete modules" to index.
42231
42232 2009-01-28  Jim Meyering  <meyering@redhat.com>
42233
42234         useless-if-before-free: recognize more variants
42235         * build-aux/useless-if-before-free: Also recognize e.g.,
42236         if (NULL != p) free (p);
42237
42238 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
42239
42240         test-getaddrinfo: skip (don't fail) this test when there's no network
42241         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
42242         on the presumption that it means you lack network access.
42243
42244 2009-01-26  Jim Meyering  <meyering@redhat.com>
42245
42246         fflush: avoid warnings on modern systems
42247         * lib/fflush.c (rpl_fflush): Move declarations of locals,
42248         pos and result, into scopes where they're used.
42249
42250 2009-01-26  Eric Blake  <ebb9@byu.net>
42251
42252         Silence warning reintroduced by recent extensions patch.
42253         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
42254         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
42255         autoconf.
42256
42257         Backport improved autoconf semantics of AC_DEFUN_ONCE.
42258         * m4/00gnulib.m4: New file.
42259         * gnulib-tool (func_get_filelist): Always use it.
42260         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
42261         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
42262
42263 2009-01-25  Bruno Haible  <bruno@clisp.org>
42264
42265         Make test-quotearg work on MacOS X and AIX.
42266         * tests/test-quotearg.sh: New file.
42267         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
42268         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
42269         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
42270         include <libintl.h>.
42271         (fake_locale): Remove variable.
42272         (gettext, dgettext, dcgettext): Remove functions.
42273         (main): Instead of setting a fake locale, set a real locale. Call
42274         textdomain and bindtextdomain.
42275         * modules/quotearg-tests (Files): Add the new files.
42276         (Depends-on): Add gettext, setenv, unsetenv.
42277         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
42278         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
42279         Augment TESTS_ENVIRONMENT.
42280
42281 2009-01-25  Bruno Haible  <bruno@clisp.org>
42282
42283         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
42284         fr_FR.ISO8859-1 locale on MacOS X.
42285         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
42286         ja_JP.eucJP locale on MacOS X.
42287         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
42288         zh_CN.GB18030 locale on MacOS X.
42289
42290 2009-01-25  Bruno Haible  <bruno@clisp.org>
42291
42292         Avoid link errors on MacOS X 10.3.
42293         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
42294         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
42295
42296 2009-01-25  Bruno Haible  <bruno@clisp.org>
42297
42298         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
42299         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
42300         * modules/pipe (Files): Remove m4/posix_spawn.m4.
42301         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
42302         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
42303         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
42304         posix_spawnattr_init, posix_spawnattr_setsigmask,
42305         posix_spawnattr_setflags, posix_spawnattr_destroy.
42306
42307         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
42308         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
42309         * modules/execute (Files): Remove m4/posix_spawn.m4.
42310         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
42311         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
42312         posix_spawnattr_init, posix_spawnattr_setsigmask,
42313         posix_spawnattr_setflags, posix_spawnattr_destroy.
42314
42315 2009-01-25  Bruno Haible  <bruno@clisp.org>
42316
42317         * lib/glthread/threadlib.c: Include <stdlib.h>.
42318
42319 2009-01-25  Bruno Haible  <bruno@clisp.org>
42320
42321         * lib/glthread/threadlib.c (dummy): New declaration.
42322
42323 2009-01-25  Bruno Haible  <bruno@clisp.org>
42324
42325         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
42326         multibyte characters also for the GB18030 encoding. Don't crash when
42327         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
42328
42329 2009-01-25  Bruno Haible  <bruno@clisp.org>
42330
42331         Avoid redefining 'struct random_data' on OSF/1 5.1.
42332         * lib/stdlib.in.h: Include <random.h> if it exists.
42333         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
42334         HAVE_RANDOM_H. Include <random.h> when testing whether
42335         'struct random_data' exists.
42336         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
42337
42338 2009-01-25  Bruno Haible  <bruno@clisp.org>
42339
42340         Don't install charset.alias on MacOS X >= 10.3.
42341         * lib/localcharset.c (DARWIN7): New macro.
42342         (get_charset_aliases): Hardcode the result for Darwin7.
42343         * modules/localcharset (install-exec-local): Don't install
42344         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
42345
42346 2009-01-25  Bruno Haible  <bruno@clisp.org>
42347
42348         Don't install charset.alias on mingw and Cygwin.
42349         * modules/localcharset (install-exec-local): Don't install
42350         charset.alias on mingw and Cygwin, if the file does not yet exist.
42351         The result for these platforms is hardcoded in localcharset.c.
42352
42353 2009-01-25  Bruno Haible  <bruno@clisp.org>
42354
42355         Make it possible again to use AC_GNU_SOURCE together with gnulib.
42356         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
42357         before requiring AC_USE_SYSTEM_EXTENSIONS.
42358
42359 2009-01-25  Jim Meyering  <meyering@redhat.com>
42360
42361         c-strtod: avoid warnings
42362         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
42363         "assignment discards qualifiers from pointer target type" warnings.
42364
42365 2009-01-24  Bruno Haible  <bruno@clisp.org>
42366
42367         Add support for non-UTF-8 locales on MacOS X.
42368         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
42369         canonical encodings. For Darwin 7 and newer, don't map traditional
42370         encodings to UTF-8.
42371         Reported by Vincent Lefevre <vincent@vinc17.org>
42372         at <http://savannah.gnu.org/bugs/?25235>.
42373
42374 2009-01-24  Bruno Haible  <bruno@clisp.org>
42375
42376         * doc/gnulib.texi (Obsolete modules): New section.
42377         Reported by Mike Frysinger <vapier@gentoo.org>.
42378
42379 2009-01-24  Bruno Haible  <bruno@clisp.org>
42380
42381         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
42382         (%.dvi): New rule.
42383
42384 2009-01-24  Bruno Haible  <bruno@clisp.org>
42385
42386         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
42387         Reported by Eric Blake.
42388
42389 2009-01-24  Bruno Haible  <bruno@clisp.org>
42390
42391         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
42392         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
42393         Reported by Gary V. Vaughan <gary@gnu.org>.
42394
42395 2009-01-24  Bruno Haible  <bruno@clisp.org>
42396
42397         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
42398
42399 2009-01-23  Bruno Haible  <bruno@clisp.org>
42400
42401         Make c-strtod, c-strtold usable in libraries.
42402         * lib/c-strtod.c: Include string.h instead of xalloc.h.
42403         (C_STRTOD): Call strdup instead of xstrdup.
42404         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
42405         * modules/c-strtold (Depends-on): Likewise.
42406         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
42407         * NEWS: Mention the change.
42408         Reported by Michael Gold <mgold@ncf.ca>.
42409
42410 2009-01-23  Jim Meyering  <meyering@redhat.com>
42411
42412         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
42413         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
42414         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
42415
42416 2009-01-23  Simon Josefsson  <simon@josefsson.org>
42417
42418         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
42419         GNU CoreUtils.
42420         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
42421         * modules/version-etc (Description): Update.
42422
42423 2009-01-22  Bruno Haible  <bruno@clisp.org>
42424
42425         Cache the C locale object.
42426         * lib/c-strtod.c (c_locale_cache): New variable.
42427         (c_locale): New function.
42428         (C_STRTOD): Use it, and don't call freelocale.
42429         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
42430         Suggested by Paolo Bonzini.
42431
42432 2009-01-21  Bruno Haible  <bruno@clisp.org>
42433
42434         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
42435         conditions other than overflow.
42436
42437 2009-01-21  Bruno Haible  <bruno@clisp.org>
42438
42439         * lib/c-strtod.c: Include errno.h.
42440         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
42441         value from STRTOD_L and STRTOD.
42442
42443 2009-01-21  Bruno Haible  <bruno@clisp.org>
42444         and Jim Meyering  <meyering@redhat.com>
42445
42446         nanosleep: skip configure test (fail it) for apple universal builds
42447         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
42448         universal builds, assume that nanosleep does not work.
42449         * modules/nanosleep (Depends-on): Add multiarch.
42450
42451         mktime: skip configure test (fail it) for apple universal builds
42452         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
42453         universal builds, assume that mktime does not work.
42454         * modules/mktime (Depends-on): Add multiarch.
42455
42456 2009-01-21  Eric Blake  <ebb9@byu.net>
42457
42458         multiarch: avoid expand-before-require warning
42459         * modules/multiarch (configure.ac): Require, rather than expand,
42460         gl_MULTIARCH.
42461         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
42462         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
42463         enforce that all clients require it.  Partial reversion of
42464         2008-12-29 patch.
42465
42466         error: avoid expand-before-require warning
42467         * modules/errno (configure.ac): Require, rather than expand,
42468         gl_HEADER_ERRNO_H.
42469         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
42470         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
42471         enforce that all clients require it.
42472
42473         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
42474         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
42475         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
42476         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
42477
42478 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
42479
42480         Revert:
42481         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
42482
42483         regex: do not depend on obsolete modules.
42484         * modules/regex: Remove memcmp and memmove.
42485
42486 2009-01-20  Bruno Haible  <bruno@clisp.org>
42487
42488         Make the 'link' module link on Windows NT 4.
42489         * lib/link.c (_WIN32_WINNT): Don't define.
42490         (CreateHardLinkFuncType): New type.
42491         (CreateHardLinkFunc, initialized): New variables.
42492         (initialize): New function.
42493         (link): Invoke CreateHardLink indirectly through the function pointer.
42494
42495 2009-01-20  Bruno Haible  <bruno@clisp.org>
42496
42497         Fix compilation failure on mingw.
42498         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
42499
42500 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
42501
42502         * doc/c-strtod.texi: Mention a couple of restrictions.
42503
42504 2009-01-20  Jim Meyering  <meyering@redhat.com>
42505
42506         gettimeofday: move more declarations out of functions
42507         * lib/gettimeofday.c: Move extern declarations of tzset and
42508         gmtime out of containing functions.  Prompted by Bruno Haible.
42509
42510 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
42511
42512         regex: do not depend on obsolete modules.
42513         * modules/regex: Remove memcmp and memmove.
42514
42515 2009-01-19  Bruno Haible  <bruno@clisp.org>
42516
42517         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
42518         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
42519         gl_BIGENDIAN, not AC_C_BIGENDIAN.
42520         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
42521         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
42522
42523 2009-01-19  Bruno Haible  <bruno@clisp.org>
42524
42525         * tests/test-link.c: Include <errno.h>.
42526         (main): Exit with code 77 when a hard link cannot be created due to
42527         the file system.
42528         * tests/test-link.sh: Skip test when a hard link cannot be created due
42529         to the file system.
42530         Suggested by Eric Blake.
42531
42532 2009-01-19  Martin Lambers  <marlam@marlam.de>
42533
42534         * modules/link-tests: New file.
42535         * tests/test-link.sh: New file.
42536         * tests/test-link.c: New file.
42537
42538 2009-01-19  Eric Blake  <ebb9@byu.net>
42539
42540         doc: mention another function added in cygwin 1.7.0
42541         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
42542         Another new function in cygwin 1.7.
42543
42544 2009-01-19  Bruno Haible  <bruno@clisp.org>
42545
42546         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
42547         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
42548         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
42549         gl_BIGENDIAN, not AC_C_BIGENDIAN.
42550         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
42551         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
42552         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
42553         * m4/md4.m4 (gl_MD4): Likewise.
42554         * m4/md5.m4 (gl_MD5): Likewise.
42555         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
42556         * m4/sha1.m4 (gl_SHA1): Likewise.
42557         * m4/sha256.m4 (gl_SHA256): Likewise.
42558         * m4/sha512.m4 (gl_SHA512): Likewise.
42559
42560 2009-01-19  Bruno Haible  <bruno@clisp.org>
42561
42562         * modules/uniname/uniname-tests (Depends-on): Add progname.
42563         * tests/uniname/test-uninames.c: Include progname.h.
42564         (main): Call set_program_name.
42565
42566         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
42567         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
42568         (main): Call set_program_name.
42569
42570         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
42571         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
42572         (main): Call set_program_name.
42573
42574         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
42575         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
42576         (main): Call set_program_name.
42577
42578         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
42579         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
42580         (main): Call set_program_name.
42581
42582         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
42583         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
42584         (main): Call set_program_name.
42585
42586         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
42587         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
42588         (main): Call set_program_name.
42589
42590         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
42591         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
42592         (main): Call set_program_name.
42593
42594         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
42595         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
42596         (main): Call set_program_name.
42597
42598 2009-01-19  Eric Blake  <ebb9@byu.net>
42599
42600         test-unistd: test previous patch
42601         * tests/test-unistd.c: Test *_FILENO macros.
42602
42603         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
42604         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42605         Guarantee a definition.
42606         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
42607         * modules/unistd-safer (Depends-on): Add dependency on unistd.
42608         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
42609         * lib/dup-safer.c (STDERR_FILENO): Likewise.
42610         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42611         Likewise.
42612         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
42613         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
42614         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42615         Likewise.
42616         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
42617         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
42618         (STDERR_FILENO): Likewise.
42619         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
42620         (STDERR_FILENO): Likewise.
42621         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
42622         (STDERR_FILENO): Likewise.
42623         Reported by Elbert Pol.
42624
42625 2009-01-19  Eric Blake  <ebb9@byu.net>
42626
42627         doc: mention more functions added in cygwin 1.7.0
42628         * doc/posix-functions/abort.texi (abort): Update wording related
42629         to cygwin.
42630         * doc/posix-functions/daylight.texi (daylight): Likewise.
42631         * doc/posix-functions/optarg.texi (optarg): Likewise.
42632         * doc/posix-functions/optarg.texi (opterr): Likewise.
42633         * doc/posix-functions/optarg.texi (optind): Likewise.
42634         * doc/posix-functions/optarg.texi (optopt): Likewise.
42635         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
42636         worked in 1.5.x, and was withdrawn in 1.7.
42637         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
42638         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
42639         cygwin versions.
42640         * doc/posix-functions/perror.texi (perror): Likewise.
42641         * doc/posix-functions/printf.texi (printf): Likewise.
42642         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
42643         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
42644         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
42645         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
42646         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
42647         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
42648         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
42649         Likewise.
42650         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
42651         Likewise.
42652         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
42653         this function.
42654         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
42655         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
42656         Likewise.
42657         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
42658         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
42659         * doc/posix-functions/confstr.texi (confstr): Likewise.
42660         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
42661         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
42662         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
42663         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
42664         * doc/posix-functions/fputws.texi (fputws): Likewise.
42665         * doc/posix-functions/fwide.texi (fwide): Likewise.
42666         * doc/posix-functions/getwc.texi (getwc): Likewise.
42667         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
42668         * doc/posix-functions/putwc.texi (putwc): Likewise.
42669         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
42670         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
42671         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
42672         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
42673         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
42674         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
42675         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
42676         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
42677         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
42678         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
42679         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
42680
42681 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
42682
42683         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
42684         * lib/ioctl.c: Include <sys/ioctl.h>.
42685
42686 2009-01-19  Simon Josefsson  <simon@josefsson.org>
42687
42688         * modules/getdate-tests (Depends-on): Add progname.
42689         * tests/test-getdate.c: Use progname module, to avoid link errors
42690         on non-glibc systems.
42691
42692 2009-01-18  Simon Josefsson  <simon@josefsson.org>
42693
42694         * modules/filenamecat-tests (Depends-on): Add progname.
42695         * modules/fstrcmp-tests (Depends-on): Likewise.
42696
42697         * tests/test-filenamecat.c: Use progname module, to avoid link
42698         errors on non-glibc systems.
42699         * tests/test-fstrcmp.c: Likewise.
42700
42701 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
42702
42703         gettimeofday: avoid warning: nested extern declaration of 'localtime'
42704         * lib/gettimeofday.c: Move extern declaration out of function.
42705
42706 2009-01-18  Bruno Haible  <bruno@clisp.org>
42707
42708         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
42709         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
42710         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
42711
42712 2009-01-18  Bruno Haible  <bruno@clisp.org>
42713
42714         * lib/strftime.c (MEMPCPY): Remove unused macro.
42715         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
42716
42717 2009-01-18  Martin Lambers  <marlam@marlam.de>
42718
42719         New module 'link'.
42720         * lib/unistd.in.h (link): New declaration.
42721         * lib/link.c: New file.
42722         * m4/link.m4: New file.
42723         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
42724         HAVE_LINK.
42725         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
42726         * modules/link: New file.
42727         * doc/posix-functions/link.texi: Mention the new module.
42728
42729 2009-01-18  Bruno Haible  <bruno@clisp.org>
42730
42731         * tests/test-avltree_list.c (main): Call set_program_name.
42732         * tests/test-avltree_oset.c (main): Likewise.
42733         * tests/test-obstack-printf.c: Include progname.h.
42734         (main): Call set_program_name.
42735         * tests/test-quotearg.c: Include progname.h.
42736         (main): Call set_program_name.
42737         * tests/test-xmemdup0.c: Include progname.h.
42738         (main): Call set_program_name.
42739
42740 2009-01-18  Bruno Haible  <bruno@clisp.org>
42741
42742         New module 'alphasort'.
42743         * lib/dirent.in.h (alphasort): New declaration.
42744         * lib/alphasort.c: New file, from glibc with modifications.
42745         * m4/alphasort.m4: New file.
42746         * modules/alphasort: New file.
42747         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
42748         HAVE_ALPHASORT.
42749         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
42750         HAVE_ALPHASORT.
42751         * doc/posix-functions/alphasort.texi: Mention the new module and the
42752         portability problems.
42753
42754 2009-01-18  Bruno Haible  <bruno@clisp.org>
42755
42756         New module 'scandir'.
42757         * lib/dirent.in.h (scandir): New declaration.
42758         * lib/scandir.c: New file, from glibc with modifications.
42759         * m4/scandir.m4: New file.
42760         * modules/scandir: New file.
42761         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
42762         HAVE_SCANDIR.
42763         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
42764         HAVE_SCANDIR.
42765         * doc/posix-functions/scandir.texi: Mention the new module and the
42766         portability problems.
42767
42768 2009-01-17  Bruno Haible  <bruno@clisp.org>
42769
42770         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
42771         Update documentation.
42772         (func_remove_suffix): Escape all dots in the suffix. Update
42773         documentation.
42774         (func_filter_filelist): Update documentation.
42775         Reported by Ralf Wildenhues.
42776
42777 2009-01-17  Bruno Haible  <bruno@clisp.org>
42778
42779         * modules/dprintf-posix-tests: New file.
42780         * tests/test-dprintf-posix.sh: New file.
42781         * tests/test-dprintf-posix.c: New file.
42782
42783         New modules 'dprintf', 'dprintf-posix'.
42784         * lib/stdio.in.h (dprintf): New declaration.
42785         * lib/dprintf.c: New file.
42786         * m4/dprintf.m4: New file.
42787         * m4/dprintf-posix.m4: New file.
42788         * modules/dprintf: New file.
42789         * modules/dprintf-posix: New file.
42790         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
42791         HAVE_DPRINTF, REPLACE_DPRINTF.
42792         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
42793         HAVE_DPRINTF, REPLACE_DPRINTF.
42794         * doc/posix-functions/dprintf.texi: Mention the new modules.
42795
42796 2009-01-17  Bruno Haible  <bruno@clisp.org>
42797
42798         * modules/vdprintf-posix-tests: New file.
42799         * tests/test-vdprintf-posix.sh: New file.
42800         * tests/test-vdprintf-posix.c: New file.
42801
42802         New modules 'vdprintf', 'vdprintf-posix'.
42803         * lib/stdio.in.h (vdprintf): New declaration.
42804         * lib/vdprintf.c: New file.
42805         * m4/vdprintf.m4: New file.
42806         * m4/vdprintf-posix.m4: New file.
42807         * modules/vdprintf: New file.
42808         * modules/vdprintf-posix: New file.
42809         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
42810         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42811         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
42812         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42813         * doc/posix-functions/vdprintf.texi: Mention the new modules.
42814
42815 2009-01-17  Bruno Haible  <bruno@clisp.org>
42816
42817         Fix replacement of fopen on mingw.
42818         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
42819         mingw.
42820
42821 2009-01-17  Bruno Haible  <bruno@clisp.org>
42822
42823         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
42824         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
42825
42826 2009-01-17  Bruno Haible  <bruno@clisp.org>
42827
42828         Avoid test-fflush2.sh failure on mingw.
42829         * tests/test-fflush2.c: Include binary-io.h.
42830         (main): Put standard input into binary mode.
42831         * modules/fflush-tests (Depends-on): Add binary-io.
42832
42833 2009-01-17  Bruno Haible  <bruno@clisp.org>
42834
42835         * lib/wchar.in.h: In another particular situation, include only the
42836         system's <wchar.h> file.
42837         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
42838         Reported by Albert Chin-A-Young <china@thewrittenword.com>
42839         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
42840
42841 2009-01-17  Bruno Haible  <bruno@clisp.org>
42842
42843         Support for stripping executables in --enable-relocatable.
42844         * build-aux/install-reloc: Expect one more argument, or an environment
42845         variable RELOC_STRIP_PROG. If set, strip the destination program and
42846         its wrapper.
42847         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
42848         RELOC_STRIP_PROG.
42849         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
42850         to set RELOCATABLE_STRIP.
42851         * NEWS: Mention the new Makefile requirement.
42852
42853 2009-01-17  Bruno Haible  <bruno@clisp.org>
42854
42855         * build-aux/install-reloc: Remove debugging information left over by
42856         C compiler on MacOS X.
42857
42858 2009-01-17  Bruno Haible  <bruno@clisp.org>
42859
42860         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
42861         * lib/progreloc.c (find_executable): Fix type of pointer passed to
42862         _NSGetExecutablePath.
42863
42864 2009-01-16  Jim Meyering  <meyering@redhat.com>
42865
42866         strerror: avoid warnings about discarding "const"
42867         * lib/strerror.c (rpl_strerror): Instead of returning a const
42868         string from each and every "case", use a variable, and add a single
42869         cast after the switch.
42870
42871 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
42872
42873         * lib/arpa_inet.in.h: Add extern "C" block for C++.
42874
42875 2009-01-16  Bruno Haible  <bruno@clisp.org>
42876
42877         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
42878         array initializer syntax that also works in C++ mode.
42879         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42880
42881 2009-01-16  Jim Meyering  <meyering@redhat.com>
42882
42883         poll: suppress a warning
42884         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
42885         to ignore "...unsigned expression < 0 is always false" warnings.
42886
42887 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
42888
42889         poll: remove declarations of unused variables
42890         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
42891         sockbuf and optlen.
42892
42893 2009-01-15  Bruno Haible  <bruno@clisp.org>
42894
42895         Make fflush-after-ungetc POSIX compliant on BSD systems.
42896         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
42897         (clear_ungetc_buffer): Implement also for other systems.
42898         (rpl_fflush): On glibc systems, invoke
42899         clear_ungetc_buffer_preserving_position. Otherwise, invoke
42900         clear_ungetc_buffer after fetching the stream's position, not before.
42901
42902 2009-01-15  Bruno Haible  <bruno@clisp.org>
42903
42904         Make fflush-after-ungetc POSIX compliant on glibc systems.
42905         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
42906         after ungetc.
42907         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
42908         (rpl_fflush): On glibc systems, simply call the system's fflush
42909         function after clearing the ungetc buffer.
42910         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
42911         Instead, lseek only to the end of file, then use the system's fseeko
42912         for the rest. On glibc systems, reset the EOF indicator bit.
42913
42914 2009-01-15  Jim Meyering  <meyering@redhat.com>
42915
42916         openmp.m4: revert quote-adding change, for portability to older autoconf
42917         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
42918         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
42919         Simon Josefsson noticed the problem when using autoconf-2.61.
42920
42921 2009-01-15  Bruno Haible  <bruno@clisp.org>
42922
42923         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
42924         * tests/test-fflush2.c (ASSERT): Always fail.
42925         (main): Add two tests for fflush() after ungetc(), taking into account
42926         the Austin Group's clarification.
42927         Suggested by Eric Blake.
42928
42929 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
42930
42931         mktime.m4: remove K&R-style function prototypes
42932         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
42933         for the Sun C++ compiler.
42934
42935 2009-01-14  Bruno Haible  <bruno@clisp.org>
42936
42937         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
42938         while including <wchar.h>.
42939         * lib/wchar.in.h: In two particular situations on HP-UX, include only
42940         the system's <wchar.h> file.
42941         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42942
42943 2009-01-14  Bruno Haible  <bruno@clisp.org>
42944
42945         * m4/csharp.m4: Don't mention gettext on the serial number line.
42946         * m4/csharpexec.m4: Likewise.
42947         * m4/eaccess.m4: Likewise.
42948         * m4/javaexec.m4: Likewise.
42949         * m4/sig_atomic_t.m4: Likewise.
42950         * m4/tmpdir.m4: Likewise.
42951         * m4/intldir.m4: Bump gettext version.
42952         * m4/lib-ld.m4: Likewise.
42953
42954 2009-01-14  Bruno Haible  <bruno@clisp.org>
42955
42956         * lib/progname.c (set_program_name): Add more comments.
42957         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
42958
42959 2009-01-14  Simon Josefsson  <simon@josefsson.org>
42960
42961         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
42962         were sys/stat.h does not define it.
42963
42964 2009-01-14  Jim Meyering  <meyering@redhat.com>
42965
42966         many *.m4 files: improve m4 quoting
42967         99% of this change was performed by running the following commands:
42968         git ls-files | grep '\.m4$' | xargs perl -pi \
42969           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
42970           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42971           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42972           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
42973         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
42974         The remainder were to add Copyright dates, increment serial numbers,
42975         undo some changes in comments, exclude m4/intl.m4, and add quotes
42976         around the "1" in ",1" where the unusual spacing prohibited the
42977         above regexps from doing the job.  For more details, see
42978         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
42979         * m4/acl.m4: Modified.
42980         * m4/afs.m4: Likewise.
42981         * m4/alloca.m4: Likewise.
42982         * m4/argp.m4: Likewise.
42983         * m4/argz.m4: Likewise.
42984         * m4/atexit.m4: Likewise.
42985         * m4/bison-i18n.m4: Likewise.
42986         * m4/bison.m4: Likewise.
42987         * m4/byteswap.m4: Likewise.
42988         * m4/c-stack.m4: Likewise.
42989         * m4/c-strtod.m4: Likewise.
42990         * m4/calloc.m4: Likewise.
42991         * m4/canonicalize-lgpl.m4: Likewise.
42992         * m4/chown.m4: Likewise.
42993         * m4/clock_time.m4: Likewise.
42994         * m4/codeset.m4: Likewise.
42995         * m4/copy-file.m4: Likewise.
42996         * m4/csharp.m4: Likewise.
42997         * m4/csharpcomp.m4: Likewise.
42998         * m4/csharpexec.m4: Likewise.
42999         * m4/d-ino.m4: Likewise.
43000         * m4/d-type.m4: Likewise.
43001         * m4/dirfd.m4: Likewise.
43002         * m4/double-slash-root.m4: Likewise.
43003         * m4/eaccess.m4: Likewise.
43004         * m4/eealloc.m4: Likewise.
43005         * m4/environ.m4: Likewise.
43006         * m4/errno_h.m4: Likewise.
43007         * m4/euidaccess.m4: Likewise.
43008         * m4/execute.m4: Likewise.
43009         * m4/fatal-signal.m4: Likewise.
43010         * m4/fchdir.m4: Likewise.
43011         * m4/fcntl_h.m4: Likewise.
43012         * m4/fileblocks.m4: Likewise.
43013         * m4/filenamecat.m4: Likewise.
43014         * m4/findprog.m4: Likewise.
43015         * m4/flexmember.m4: Likewise.
43016         * m4/fnmatch.m4: Likewise.
43017         * m4/fopen.m4: Likewise.
43018         * m4/fpending.m4: Likewise.
43019         * m4/fprintf-posix.m4: Likewise.
43020         * m4/free.m4: Likewise.
43021         * m4/frexp.m4: Likewise.
43022         * m4/frexpl.m4: Likewise.
43023         * m4/fsusage.m4: Likewise.
43024         * m4/ftruncate.m4: Likewise.
43025         * m4/gc-camellia.m4: Likewise.
43026         * m4/gc-random.m4: Likewise.
43027         * m4/gc.m4: Likewise.
43028         * m4/getaddrinfo.m4: Likewise.
43029         * m4/getcwd-abort-bug.m4: Likewise.
43030         * m4/getcwd-path-max.m4: Likewise.
43031         * m4/getdate.m4: Likewise.
43032         * m4/getdomainname.m4: Likewise.
43033         * m4/getgroups.m4: Likewise.
43034         * m4/gethostname.m4: Likewise.
43035         * m4/gethrxtime.m4: Likewise.
43036         * m4/getline.m4: Likewise.
43037         * m4/getloadavg.m4: Likewise.
43038         * m4/getndelim2.m4: Likewise.
43039         * m4/getpass.m4: Likewise.
43040         * m4/gettext.m4: Likewise.
43041         * m4/gettime.m4: Likewise.
43042         * m4/gettimeofday.m4: Likewise.
43043         * m4/gnulib-common.m4: Likewise.
43044         * m4/group-member.m4: Likewise.
43045         * m4/host-os.m4: Likewise.
43046         * m4/iconv.m4: Likewise.
43047         * m4/iconv_open.m4: Likewise.
43048         * m4/inet_ntop.m4: Likewise.
43049         * m4/inet_pton.m4: Likewise.
43050         * m4/inline.m4: Likewise.
43051         * m4/intldir.m4: Likewise.
43052         * m4/intlmacosx.m4: Likewise.
43053         * m4/intmax.m4: Likewise.
43054         * m4/intmax_t.m4: Likewise.
43055         * m4/inttypes.m4: Likewise.
43056         * m4/inttypes_h.m4: Likewise.
43057         * m4/inttypes-pri.m4: Likewise.
43058         * m4/isapipe.m4: Likewise.
43059         * m4/isnand.m4: Likewise.
43060         * m4/isnanf.m4: Likewise.
43061         * m4/isnanl.m4: Likewise.
43062         * m4/javacomp.m4: Likewise.
43063         * m4/javaexec.m4: Likewise.
43064         * m4/jm-winsz1.m4: Likewise.
43065         * m4/jm-winsz2.m4: Likewise.
43066         * m4/lchown.m4: Likewise.
43067         * m4/lcmessage.m4: Likewise.
43068         * m4/ldexpl.m4: Likewise.
43069         * m4/lib-ld.m4: Likewise.
43070         * m4/lib-link.m4: Likewise.
43071         * m4/libsigsegv.m4: Likewise.
43072         * m4/link-follow.m4: Likewise.
43073         * m4/localcharset.m4: Likewise.
43074         * m4/locale-fr.m4: Likewise.
43075         * m4/locale-ja.m4: Likewise.
43076         * m4/locale-tr.m4: Likewise.
43077         * m4/locale-zh.m4: Likewise.
43078         * m4/lock.m4: Likewise.
43079         * m4/longlong.m4: Likewise.
43080         * m4/ls-mntd-fs.m4: Likewise.
43081         * m4/lstat.m4: Likewise.
43082         * m4/malloc.m4: Likewise.
43083         * m4/mathl.m4: Likewise.
43084         * m4/mbrtowc.m4: Likewise.
43085         * m4/mbstate_t.m4: Likewise.
43086         * m4/mbswidth.m4: Likewise.
43087         * m4/memchr.m4: Likewise.
43088         * m4/memcmp.m4: Likewise.
43089         * m4/memcpy.m4: Likewise.
43090         * m4/memmem.m4: Likewise.
43091         * m4/memmove.m4: Likewise.
43092         * m4/mempcpy.m4: Likewise.
43093         * m4/memrchr.m4: Likewise.
43094         * m4/memset.m4: Likewise.
43095         * m4/minmax.m4: Likewise.
43096         * m4/mkdir-slash.m4: Likewise.
43097         * m4/mkdtemp.m4: Likewise.
43098         * m4/mktime.m4: Likewise.
43099         * m4/mmap-anon.m4: Likewise.
43100         * m4/mountlist.m4: Likewise.
43101         * m4/nanosleep.m4: Likewise.
43102         * m4/nls.m4: Likewise.
43103         * m4/nocrash.m4: Likewise.
43104         * m4/open.m4: Likewise.
43105         * m4/openat.m4: Likewise.
43106         * m4/openmp.m4: Likewise.
43107         * m4/pathmax.m4: Likewise.
43108         * m4/perl.m4: Likewise.
43109         * m4/physmem.m4: Likewise.
43110         * m4/pipe.m4: Likewise.
43111         * m4/po.m4: Likewise.
43112         * m4/poll.m4: Likewise.
43113         * m4/posixtm.m4: Likewise.
43114         * m4/posixver.m4: Likewise.
43115         * m4/printf-frexp.m4: Likewise.
43116         * m4/printf-frexpl.m4: Likewise.
43117         * m4/printf-posix.m4: Likewise.
43118         * m4/printf-posix-rpl.m4: Likewise.
43119         * m4/printf.m4: Likewise.
43120         * m4/progtest.m4: Likewise.
43121         * m4/putenv.m4: Likewise.
43122         * m4/readline.m4: Likewise.
43123         * m4/readlink.m4: Likewise.
43124         * m4/readutmp.m4: Likewise.
43125         * m4/realloc.m4: Likewise.
43126         * m4/regex.m4: Likewise.
43127         * m4/relocatable.m4: Likewise.
43128         * m4/relocatable-lib.m4: Likewise.
43129         * m4/rename-dest-slash.m4: Likewise.
43130         * m4/rename.m4: Likewise.
43131         * m4/rmdir-errno.m4: Likewise.
43132         * m4/rmdir.m4: Likewise.
43133         * m4/roundf.m4: Likewise.
43134         * m4/roundl.m4: Likewise.
43135         * m4/rpmatch.m4: Likewise.
43136         * m4/save-cwd.m4: Likewise.
43137         * m4/selinux-selinux-h.m4: Likewise.
43138         * m4/setenv.m4: Likewise.
43139         * m4/settime.m4: Likewise.
43140         * m4/sig2str.m4: Likewise.
43141         * m4/sig_atomic_t.m4: Likewise.
43142         * m4/signalblocking.m4: Likewise.
43143         * m4/signbit.m4: Likewise.
43144         * m4/sigpipe.m4: Likewise.
43145         * m4/sockets.m4: Likewise.
43146         * m4/sockpfaf.m4: Likewise.
43147         * m4/st_dm_mode.m4: Likewise.
43148         * m4/stat-time.m4: Likewise.
43149         * m4/stdbool.m4: Likewise.
43150         * m4/stdint.m4: Likewise.
43151         * m4/stdint_h.m4: Likewise.
43152         * m4/stpcpy.m4: Likewise.
43153         * m4/stpncpy.m4: Likewise.
43154         * m4/strcase.m4: Likewise.
43155         * m4/strchrnul.m4: Likewise.
43156         * m4/strcspn.m4: Likewise.
43157         * m4/strdup.m4: Likewise.
43158         * m4/strftime.m4: Likewise.
43159         * m4/strndup.m4: Likewise.
43160         * m4/strnlen.m4: Likewise.
43161         * m4/strpbrk.m4: Likewise.
43162         * m4/strptime.m4: Likewise.
43163         * m4/strsep.m4: Likewise.
43164         * m4/strtod.m4: Likewise.
43165         * m4/strtoimax.m4: Likewise.
43166         * m4/strtok_r.m4: Likewise.
43167         * m4/strtol.m4: Likewise.
43168         * m4/strtoll.m4: Likewise.
43169         * m4/strtoul.m4: Likewise.
43170         * m4/strtoull.m4: Likewise.
43171         * m4/strtoumax.m4: Likewise.
43172         * m4/strverscmp.m4: Likewise.
43173         * m4/threadlib.m4: Likewise.
43174         * m4/timegm.m4: Likewise.
43175         * m4/tm_gmtoff.m4: Likewise.
43176         * m4/tmpdir.m4: Likewise.
43177         * m4/tmpfile.m4: Likewise.
43178         * m4/tzset.m4: Likewise.
43179         * m4/uintmax_t.m4: Likewise.
43180         * m4/unlinkdir.m4: Likewise.
43181         * m4/unlocked-io.m4: Likewise.
43182         * m4/uptime.m4: Likewise.
43183         * m4/userspec.m4: Likewise.
43184         * m4/utimbuf.m4: Likewise.
43185         * m4/utime.m4: Likewise.
43186         * m4/utimes-null.m4: Likewise.
43187         * m4/utimes.m4: Likewise.
43188         * m4/vararrays.m4: Likewise.
43189         * m4/vasnprintf.m4: Likewise.
43190         * m4/vfprintf-posix.m4: Likewise.
43191         * m4/vprintf-posix.m4: Likewise.
43192         * m4/wait-process.m4: Likewise.
43193         * m4/wchar_t.m4: Likewise.
43194         * m4/wint_t.m4: Likewise.
43195         * m4/write-any-file.m4: Likewise.
43196         * m4/yield.m4: Likewise.
43197
43198 2009-01-13  Bruno Haible  <bruno@clisp.org>
43199
43200         Avoid test-copy-file.sh failures when ACL support insufficient.
43201         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
43202         TESTS_ENVIRONMENT.
43203         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
43204         Reported by Jim Meyering.
43205
43206 2009-01-13  Bruno Haible  <bruno@clisp.org>
43207
43208         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
43209         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
43210         * modules/unistdio/u8-printf-parse (Files): Likewise.
43211         * modules/unistdio/u32-printf-parse (Files): Likewise.
43212         * modules/unistdio/ulc-printf-parse (Files): Likewise.
43213
43214 2009-01-13  Simon Josefsson  <simon@josefsson.org>
43215
43216         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
43217         and m4/inttypes_h.m4 too.
43218
43219 2009-01-12  Eric Blake  <ebb9@byu.net>
43220
43221         tests: IRIX 6.2 cc can't compile -0.0 into .data
43222         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
43223         rather than at compile-time.
43224         * tests/test-floorl.c (minus_zero): Likewise.
43225         * tests/test-frexpl.c (minus_zero): Likewise.
43226         * tests/test-isnan.c (minus_zerol): Likewise.
43227         * tests/test-isnanl.h (minus_zero): Likewise.
43228         * tests/test-ldexpl.c (minus_zero): Likewise.
43229         * tests/test-roundl.c (minus_zero): Likewise.
43230         * tests/test-signbit.c (minus_zerol): Likewise.
43231         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
43232         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
43233         * tests/test-truncl.c (minus_zero): Likewise.
43234         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
43235         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
43236         Reported by Tom G. Christensen and Nelson H. F. Beebe.
43237
43238 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43239
43240         regex: fix glibc bug 9697
43241         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
43242         handling.
43243
43244 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43245
43246         regex: fix glibc bug 697
43247         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
43248         being NULL also if there are no backreferences.
43249
43250 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43251
43252         regex: merge glibc changes
43253         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
43254         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
43255         re_string_skip_chars, re_string_reconstruct): Likewise.
43256         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
43257
43258 2009-01-07  Jim Meyering  <meyering@redhat.com>
43259
43260         poll: filter through cppi
43261         * lib/poll.c: Indent cpp directives to reflect nesting.
43262
43263 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
43264
43265         poll: don't return uninitialized
43266         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
43267
43268 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
43269
43270         avoid compile failure on AIX 6.1
43271         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
43272         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
43273
43274 2009-01-04  Jim Meyering  <meyering@redhat.com>
43275
43276         remove duplicate inclusion of <stdio.h>
43277         * tests/test-fprintf-posix.c: Likewise.
43278         * tests/test-printf-posix.c: Likewise.
43279         * tests/test-snprintf-posix.c: Likewise.
43280         * tests/test-sprintf-posix.c: Likewise.
43281         * tests/test-vasprintf-posix.c: Likewise.
43282         * tests/test-vfprintf-posix.c: Likewise.
43283         * tests/test-vprintf-posix.c: Likewise.
43284         * tests/test-vsnprintf-posix.c: Likewise.
43285         * tests/test-vsprintf-posix.c: Likewise.
43286
43287 2009-01-03  Jim Meyering  <meyering@redhat.com>
43288
43289         gnulib-tool: fix sed-based filtering
43290         * gnulib-tool (func_filter_filelist): Remove extra backslash
43291         in sed_fff_filter definition.
43292
43293 2009-01-02  Jim Meyering  <meyering@redhat.com>
43294
43295         strftime: avoid compilation failure on Solaris 2.6
43296         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
43297         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
43298         Don't #define mbrlen or mbsinit, since now they're guaranteed to
43299         be available.  Reported by Tom G. Christensen.  Details in
43300         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
43301
43302 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43303             Bruno Haible  <bruno@clisp.org>
43304
43305         Speed up gnulib-tool by doing more string processing through shell
43306         built-ins.
43307         * gnulib-tool (fast_func_append): New variable.
43308         (func_remove_prefix, func_remove_suffix): New functions.
43309         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
43310         (func_filter_filelist): New function.
43311         (func_get_dependencies): Use func_remove_suffix instead of sed.
43312         (func_get_automake_snippet): Use func_filter_filelist instead of a
43313         subshell and sed invocation.
43314
43315 2009-01-01  Bruno Haible  <bruno@clisp.org>
43316
43317         Fix a security bug.
43318         * gnulib-tool (func_import, import, update): Don't allow the characters
43319         '"', '$', '`', '\' in macro arguments that become part of commands that
43320         are evaluated.
43321
43322 2009-01-01  Bruno Haible  <bruno@clisp.org>
43323
43324         * gnulib-tool (func_reset_sigpipe): Add more comments.
43325
43326 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43327
43328         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
43329         func_emit_tests_Makefile_am, func_import): Abort loops early if we
43330         already know the answer.
43331
43332 2009-01-01  Jim Meyering  <meyering@redhat.com>
43333
43334         * lib/version-etc.c (version_etc_va): Update copyright year.
43335
43336 2008-12-30  Bruno Haible  <bruno@clisp.org>
43337
43338         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
43339         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
43340         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
43341
43342 2008-12-29  Eric Blake  <ebb9@byu.net>
43343
43344         multiarch: avoid autoconf AC_REQUIRE bug
43345         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
43346         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
43347         2.63 and older.
43348         Reported by Bruno Haible, and analyzed in
43349         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
43350
43351 2008-12-29  Bruno Haible  <bruno@clisp.org>
43352
43353         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
43354         files in subdirectories correctly.
43355         Reported by Ralf Wildenhues.
43356
43357 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43358
43359         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
43360         rather than 'join FILE -', for Solaris join.
43361
43362 2008-12-29  Bruno Haible  <bruno@clisp.org>
43363
43364         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
43365         quoting.
43366         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
43367         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
43368         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
43369         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
43370         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
43371         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
43372         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
43373         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
43374         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
43375         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
43376         * m4/nls.m4 (AM_NLS): Likewise.
43377         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
43378         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
43379         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
43380         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
43381         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
43382         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
43383         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
43384         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
43385         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
43386         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
43387         * m4/xsize.m4 (gl_XSIZE): Likewise.
43388         Suggested by Jim Meyering.
43389
43390 2008-11-17  Bruce Korb  <bkorb@gnu.org>
43391
43392         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
43393         * lib/parse-duration.c: use a switch instead of cascading if's.
43394
43395 2008-12-29  Eric Blake  <ebb9@byu.net>
43396
43397         wchar.h: supply WEOF on Irix 5.3
43398         * lib/wchar.in.h (wint_t): Also supply WEOF.
43399         * lib/wctype.in.h (wint_t): Likewise.
43400         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
43401         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
43402         Reported by Tom G. Christensen.
43403
43404 2008-12-26  Bruno Haible  <bruno@clisp.org>
43405
43406         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
43407         i486, i586, i686.
43408
43409 2008-12-26  Bruno Haible  <bruno@clisp.org>
43410
43411         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
43412
43413 2008-12-26  Bruno Haible  <bruno@clisp.org>
43414
43415         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
43416         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
43417         not __STDC_CONSTANT_MACROS.
43418         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
43419
43420 2008-12-25  Bruno Haible  <bruno@clisp.org>
43421
43422         Add support for universal builds to vasnprintf.
43423         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
43424         universal builds, guess no.
43425         * modules/vasnprintf-posix (Depends-on): Add multiarch.
43426         * modules/vasprintf-posix (Depends-on): Likewise.
43427         * modules/fprintf-posix (Depends-on): Likewise.
43428         * modules/vfprintf-posix (Depends-on): Likewise.
43429         * modules/snprintf-posix (Depends-on): Likewise.
43430         * modules/vsnprintf-posix (Depends-on): Likewise.
43431         * modules/sprintf-posix (Depends-on): Likewise.
43432         * modules/vsprintf-posix (Depends-on): Likewise.
43433         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43434         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43435         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43436         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43437         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43438         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43439         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43440
43441         Add support for universal builds to <inttypes.h>.
43442         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
43443         _SCNu64_PREFIX): In Apple
43444         universal builds, define directly, using _LP64.
43445         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
43446         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
43447         * modules/inttypes (Depends-on): Add multiarch.
43448         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
43449
43450         Add support for universal builds to <stdint.h>.
43451         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
43452         universal builds, define directly, using _LP64.
43453         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
43454         Apple universal builds, don't test for the size and suffix of ptrdiff_t
43455         and size_t.
43456         * modules/stdint (Depends-on): Add multiarch.
43457         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
43458
43459         New module 'multiarch'.
43460         * modules/multiarch: New file.
43461         * m4/multiarch.m4: New file.
43462
43463 2008-12-25  Bruno Haible  <bruno@clisp.org>
43464
43465         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
43466
43467 2008-12-25  Bruno Haible  <bruno@clisp.org>
43468
43469         * modules/btowc (License): Relicense under LGPLv2+.
43470         * modules/mbsinit (License): Likewise.
43471         * modules/mbrtowc (License): Likewise.
43472         * modules/wcrtomb (License): Likewise.
43473         * modules/streq (License): Likewise.
43474         Reported by David Lutterkort <lutter@redhat.com>.
43475
43476 2008-12-23  Bruno Haible  <bruno@clisp.org>
43477
43478         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
43479
43480 2008-12-23  Bruno Haible  <bruno@clisp.org>
43481
43482         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
43483         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
43484         GETADDRINFO_LIB, not in LIBS.
43485         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
43486         * modules/canon-host (Link): Likewise.
43487         * NEWS: Mention the change.
43488         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
43489         GETADDRINFO_LIB.
43490
43491 2008-12-22  Bruno Haible  <bruno@clisp.org>
43492
43493         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
43494         * doc/posix-functions/iswalpha_l.texi: Likewise.
43495         * doc/posix-functions/iswblank_l.texi: Likewise.
43496         * doc/posix-functions/iswcntrl_l.texi: Likewise.
43497         * doc/posix-functions/iswctype_l.texi: Likewise.
43498         * doc/posix-functions/iswdigit_l.texi: Likewise.
43499         * doc/posix-functions/iswgraph_l.texi: Likewise.
43500         * doc/posix-functions/iswlower_l.texi: Likewise.
43501         * doc/posix-functions/iswprint_l.texi: Likewise.
43502         * doc/posix-functions/iswpunct_l.texi: Likewise.
43503         * doc/posix-functions/iswspace_l.texi: Likewise.
43504         * doc/posix-functions/iswupper_l.texi: Likewise.
43505         * doc/posix-functions/iswxdigit_l.texi: Likewise.
43506         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
43507         * doc/posix-functions/open_wmemstream.texi: Likewise.
43508         * doc/posix-functions/swscanf.texi: Likewise.
43509         * doc/posix-functions/towctrans_l.texi: Likewise.
43510         * doc/posix-functions/towlower.texi: Likewise.
43511         * doc/posix-functions/towlower_l.texi: Likewise.
43512         * doc/posix-functions/towupper.texi: Likewise.
43513         * doc/posix-functions/towupper_l.texi: Likewise.
43514         * doc/posix-functions/vfwprintf.texi: Likewise.
43515         * doc/posix-functions/vfwscanf.texi: Likewise.
43516         * doc/posix-functions/vswscanf.texi: Likewise.
43517         * doc/posix-functions/vwprintf.texi: Likewise.
43518         * doc/posix-functions/vwscanf.texi: Likewise.
43519         * doc/posix-functions/wcpcpy.texi: Likewise.
43520         * doc/posix-functions/wcpncpy.texi: Likewise.
43521         * doc/posix-functions/wcscasecmp.texi: Likewise.
43522         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
43523         * doc/posix-functions/wcscoll_l.texi: Likewise.
43524         * doc/posix-functions/wcsdup.texi: Likewise.
43525         * doc/posix-functions/wcsncasecmp.texi: Likewise.
43526         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
43527         * doc/posix-functions/wcsnlen.texi: Likewise.
43528         * doc/posix-functions/wcsnrtombs.texi: Likewise.
43529         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
43530         * doc/posix-functions/wctrans_l.texi: Likewise.
43531         * doc/posix-functions/wctype_l.texi: Likewise.
43532         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
43533         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
43534         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
43535         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
43536         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
43537         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
43538         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
43539         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
43540         * doc/glibc-functions/wcschrnul.texi: Likewise.
43541         * doc/glibc-functions/wcsftime_l.texi: Likewise.
43542         * doc/glibc-functions/wcstod_l.texi: Likewise.
43543         * doc/glibc-functions/wcstof_l.texi: Likewise.
43544         * doc/glibc-functions/wcstol_l.texi: Likewise.
43545         * doc/glibc-functions/wcstold_l.texi: Likewise.
43546         * doc/glibc-functions/wcstoll_l.texi: Likewise.
43547         * doc/glibc-functions/wcstoq.texi: Likewise.
43548         * doc/glibc-functions/wcstoul_l.texi: Likewise.
43549         * doc/glibc-functions/wcstoull_l.texi: Likewise.
43550         * doc/glibc-functions/wcstouq.texi: Likewise.
43551         * doc/glibc-functions/wmempcpy.texi: Likewise.
43552
43553 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
43554             Eric Blake  <ebb9@byu.net>
43555             Paolo Bonzini  <bonzini@gnu.org>
43556             Bruno Haible  <bruno@clisp.org>
43557
43558         Make c-stack work on Haiku.
43559         * lib/c-stack.c (SA_ONSTACK): Define fallback.
43560         (c_stack_action): Use SA_ONSTACK flag.
43561
43562 2008-12-22  Bruno Haible  <bruno@clisp.org>
43563
43564         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
43565
43566 2008-12-22  Bruno Haible  <bruno@clisp.org>
43567
43568         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
43569         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
43570         being overridden.
43571         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
43572         New macros.
43573         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
43574         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
43575         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
43576         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
43577
43578 2008-12-22  Bruno Haible  <bruno@clisp.org>
43579
43580         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
43581         from test code.
43582
43583 2008-12-22  Eric Blake  <ebb9@byu.net>
43584
43585         Avoid gcc warnings on cygwin.
43586         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
43587         Avoid unused variable.
43588         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
43589         Likewise.
43590
43591 2008-12-22  Bruno Haible  <bruno@clisp.org>
43592
43593         Remove HAVE_MBRTOWC conditionals.
43594         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
43595         (mbscasecmp): Assume mbrtowc function.
43596         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
43597         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
43598         * lib/mbschr.c: Include mbuiter.h unconditionally.
43599         (mbschr): Assume mbrtowc function.
43600         * lib/mbscspn.c: Include mbuiter.h unconditionally.
43601         (mbscspn): Assume mbrtowc function.
43602         * lib/mbslen.c: Include mbuiter.h unconditionally.
43603         (mbslen): Assume mbrtowc function.
43604         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
43605         (mbsncasecmp): Assume mbrtowc function.
43606         * lib/mbsnlen.c: Include mbiter.h unconditionally.
43607         (mbsnlen): Assume mbrtowc function.
43608         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
43609         (mbspbrk): Assume mbrtowc function.
43610         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
43611         (mbspcasecmp): Assume mbrtowc function.
43612         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
43613         (mbsrchr): Assume mbrtowc function.
43614         * lib/mbssep.c: Include mbuiter.h unconditionally.
43615         (mbssep): Assume mbrtowc function.
43616         * lib/mbsspn.c: Include mbuiter.h unconditionally.
43617         (mbsspn): Assume mbrtowc function.
43618         * lib/mbsstr.c: Include mbuiter.h unconditionally.
43619         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
43620         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
43621         (mbstok_r): Assume mbrtowc function.
43622         * lib/propername.c: Include mbuiter.h unconditionally.
43623         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
43624         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
43625         (trim2): Assume mbrtowc function.
43626         * lib/mbswidth.c (mbsinit): Remove fallback definition.
43627         (mbsnwidth): Assume mbrtowc function.
43628         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
43629         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
43630         fallback definitions.
43631         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
43632
43633 2008-12-22  Bruno Haible  <bruno@clisp.org>
43634
43635         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
43636
43637 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
43638
43639         * modules/regex: Request emulations for the mb*/wc* functions we need.
43640         * m4/regex.m4: Don't look for those functions here.
43641         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
43642
43643 2008-12-22  Bruno Haible  <bruno@clisp.org>
43644
43645         * modules/fnmatch (Depends-on): Remove duplicated dependency.
43646
43647 2008-12-21  Bruno Haible  <bruno@clisp.org>
43648
43649         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
43650         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
43651         (Include): Remove conditionalization.
43652         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
43653         (Include): Remove conditionalization.
43654         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
43655         (Include): Remove conditionalization.
43656         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
43657         * m4/mbfile.m4 (gl_MBFILE): Likewise.
43658         * NEWS: Mention the change.
43659         Reported by Alan Hourihane <alanh@fairlite.co.uk>
43660         via Sergey Poznyakoff <gray@gnu.org.ua>.
43661
43662 2008-12-21  Bruno Haible  <bruno@clisp.org>
43663
43664         * MODULES.html.sh (Extended multibyte and wide character utilities
43665         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
43666         wcrtomb, wcsrtombs.
43667         (Support for systems lacking POSIX:2008): Add accept, bind, close,
43668         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
43669         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
43670         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
43671
43672 2008-12-21  Bruno Haible  <bruno@clisp.org>
43673
43674         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
43675
43676 2008-12-21  Bruno Haible  <bruno@clisp.org>
43677
43678         * modules/wcsnrtombs-tests: New file.
43679         * tests/test-wcsnrtombs1.sh: New file.
43680         * tests/test-wcsnrtombs2.sh: New file.
43681         * tests/test-wcsnrtombs3.sh: New file.
43682         * tests/test-wcsnrtombs4.sh: New file.
43683         * tests/test-wcsnrtombs.c: New file.
43684
43685         New module 'wcsnrtombs'.
43686         * lib/wchar.in.h (wcsnrtombs): New declaration.
43687         * lib/wcsnrtombs.c: New file.
43688         * lib/wcsrtombs-state.c: New file.
43689         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
43690         (internal_state): Remove variable.
43691         * m4/wcsnrtombs.m4: New file.
43692         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
43693         compilation units.
43694         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
43695         HAVE_WCSNRTOMBS.
43696         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
43697         HAVE_WCSNRTOMBS.
43698         * modules/wcsnrtombs: New file.
43699         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
43700         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
43701
43702 2008-12-21  Bruno Haible  <bruno@clisp.org>
43703
43704         * modules/wcsrtombs-tests: New file.
43705         * tests/test-wcsrtombs1.sh: New file.
43706         * tests/test-wcsrtombs2.sh: New file.
43707         * tests/test-wcsrtombs3.sh: New file.
43708         * tests/test-wcsrtombs4.sh: New file.
43709         * tests/test-wcsrtombs.c: New file.
43710
43711         New module 'wcsrtombs'.
43712         * lib/wchar.in.h (wcsrtombs): New declaration.
43713         * lib/wcsrtombs.c: New file.
43714         * m4/wcsrtombs.m4: New file.
43715         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
43716         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
43717         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
43718         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
43719         * modules/wcsrtombs: New file.
43720         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
43721         bugs.
43722
43723 2008-12-21  Bruno Haible  <bruno@clisp.org>
43724
43725         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
43726         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
43727         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
43728         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
43729         if not correct.
43730         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
43731         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
43732         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43733         m4/locale-zh.m4, m4/codeset.m4.
43734         * doc/posix-functions/wcrtomb.texi: Document the bug.
43735
43736 2008-12-21  Bruno Haible  <bruno@clisp.org>
43737
43738         Work around a btowc() bug on IRIX 6.5.
43739         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
43740         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
43741         REPLACE_WTOBC if not.
43742         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
43743         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
43744         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
43745
43746 2008-12-21  Bruno Haible  <bruno@clisp.org>
43747
43748         * modules/wcrtomb-tests: New file.
43749         * tests/test-wcrtomb.sh: New file.
43750         * tests/test-wcrtomb.c: New file.
43751
43752         New module 'wcrtomb'.
43753         * lib/wchar.in.h (wcrtomb): New declaration.
43754         * lib/wcrtomb.c: New file.
43755         * m4/wcrtomb.m4: New file.
43756         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
43757         HAVE_WCRTOMB.
43758         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
43759         HAVE_WCRTOMB.
43760         * modules/wcrtomb: New file.
43761         * doc/posix-functions/wcrtomb.texi: Mention the new module.
43762
43763 2008-12-21  Bruno Haible  <bruno@clisp.org>
43764
43765         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
43766         * modules/mbsrtowcs (Files): Likewise.
43767         * modules/wctob (Files): Likewise.
43768         * modules/c-strcase-tests (Files): Likewise.
43769         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
43770         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
43771         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
43772         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
43773         * modules/vasnprintf-posix-tests (Files): Likewise.
43774
43775 2008-12-21  William Pursell  <bill.pursell@gmail.com>
43776
43777         gitlog-to-changelog: pass all command-line arguments to git-log
43778         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
43779         it is sometimes convenient to filter the commits in various ways.
43780         gitlog-to-changelog only allows --since to specify a start date,
43781         but git-log itself supports many other filtering mechanisms.
43782         At the moment, I want to filter by branch name.  Rather than
43783         adding a --branch option to gitlog-to-changelog, it seems more
43784         flexible to simply pass all options directly to git-log and let
43785         git do the work.  Notice that this effectively makes --since a
43786         redundant option for gitlog-to-changelog, but removing it would
43787         require current usage to change since calls would then require
43788         an additional '--'.
43789
43790 2008-12-21  Bruno Haible  <bruno@clisp.org>
43791
43792         * modules/mbsnrtowcs-tests: New file.
43793         * tests/test-mbsnrtowcs1.sh: New file.
43794         * tests/test-mbsnrtowcs2.sh: New file.
43795         * tests/test-mbsnrtowcs3.sh: New file.
43796         * tests/test-mbsnrtowcs4.sh: New file.
43797         * tests/test-mbsnrtowcs.c: New file.
43798
43799         New module 'mbsnrtowcs'.
43800         * lib/wchar.in.h (mbsnrtowcs): New declaration.
43801         * lib/mbsnrtowcs.c: New file.
43802         * lib/mbsrtowcs-state.c: New file.
43803         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
43804         (internal_state): Remove variable.
43805         * m4/mbsnrtowcs.m4: New file.
43806         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
43807         compilation units.
43808         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
43809         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43810         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
43811         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43812         * modules/mbsnrtowcs: New file.
43813         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
43814         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
43815         portability problem.
43816
43817 2008-12-21  Bruno Haible  <bruno@clisp.org>
43818
43819         Work around mbsrtowcs bug.
43820         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
43821         (gl_FUNC_MBSRTOWCS): Invoke it.
43822         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43823         m4/locale-zh.m4.
43824         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
43825
43826 2008-12-21  Bruno Haible  <bruno@clisp.org>
43827
43828         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
43829
43830 2008-12-21  Bruno Haible  <bruno@clisp.org>
43831
43832         Update doc for AIX.
43833         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
43834         16-bit wchar_t type.
43835         * doc/posix-functions/btowc.texi: Likewise.
43836         * doc/posix-functions/fgetwc.texi: Likewise.
43837         * doc/posix-functions/fgetws.texi: Likewise.
43838         * doc/posix-functions/fputwc.texi: Likewise.
43839         * doc/posix-functions/fputws.texi: Likewise.
43840         * doc/posix-functions/fwide.texi: Likewise.
43841         * doc/posix-functions/fwprintf.texi: Likewise.
43842         * doc/posix-functions/fwscanf.texi: Likewise.
43843         * doc/posix-functions/getwchar.texi: Likewise.
43844         * doc/posix-functions/getwc.texi: Likewise.
43845         * doc/posix-functions/iswalnum.texi: Likewise.
43846         * doc/posix-functions/iswalpha.texi: Likewise.
43847         * doc/posix-functions/iswblank.texi: Likewise.
43848         * doc/posix-functions/iswcntrl.texi: Likewise.
43849         * doc/posix-functions/iswctype.texi: Likewise.
43850         * doc/posix-functions/iswdigit.texi: Likewise.
43851         * doc/posix-functions/iswgraph.texi: Likewise.
43852         * doc/posix-functions/iswlower.texi: Likewise.
43853         * doc/posix-functions/iswprint.texi: Likewise.
43854         * doc/posix-functions/iswpunct.texi: Likewise.
43855         * doc/posix-functions/iswspace.texi: Likewise.
43856         * doc/posix-functions/iswupper.texi: Likewise.
43857         * doc/posix-functions/iswxdigit.texi: Likewise.
43858         * doc/posix-functions/mbrtowc.texi: Likewise.
43859         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43860         * doc/posix-functions/mbstowcs.texi: Likewise.
43861         * doc/posix-functions/mbtowc.texi: Likewise.
43862         * doc/posix-functions/putwchar.texi: Likewise.
43863         * doc/posix-functions/putwc.texi: Likewise.
43864         * doc/posix-functions/swprintf.texi: Likewise.
43865         * doc/posix-functions/tolower.texi: Likewise.
43866         * doc/posix-functions/toupper.texi: Likewise.
43867         * doc/posix-functions/towctrans.texi: Likewise.
43868         * doc/posix-functions/ungetwc.texi: Likewise.
43869         * doc/posix-functions/vswprintf.texi: Likewise.
43870         * doc/posix-functions/wcrtomb.texi: Likewise.
43871         * doc/posix-functions/wcscat.texi: Likewise.
43872         * doc/posix-functions/wcschr.texi: Likewise.
43873         * doc/posix-functions/wcscmp.texi: Likewise.
43874         * doc/posix-functions/wcscoll.texi: Likewise.
43875         * doc/posix-functions/wcscpy.texi: Likewise.
43876         * doc/posix-functions/wcscspn.texi: Likewise.
43877         * doc/posix-functions/wcsftime.texi: Likewise.
43878         * doc/posix-functions/wcslen.texi: Likewise.
43879         * doc/posix-functions/wcsncat.texi: Likewise.
43880         * doc/posix-functions/wcsncmp.texi: Likewise.
43881         * doc/posix-functions/wcsncpy.texi: Likewise.
43882         * doc/posix-functions/wcspbrk.texi: Likewise.
43883         * doc/posix-functions/wcsrchr.texi: Likewise.
43884         * doc/posix-functions/wcsrtombs.texi: Likewise.
43885         * doc/posix-functions/wcsspn.texi: Likewise.
43886         * doc/posix-functions/wcsstr.texi: Likewise.
43887         * doc/posix-functions/wcstod.texi: Likewise.
43888         * doc/posix-functions/wcstof.texi: Likewise.
43889         * doc/posix-functions/wcstoimax.texi: Likewise.
43890         * doc/posix-functions/wcstok.texi: Likewise.
43891         * doc/posix-functions/wcstold.texi: Likewise.
43892         * doc/posix-functions/wcstoll.texi: Likewise.
43893         * doc/posix-functions/wcstol.texi: Likewise.
43894         * doc/posix-functions/wcstombs.texi: Likewise.
43895         * doc/posix-functions/wcstoull.texi: Likewise.
43896         * doc/posix-functions/wcstoul.texi: Likewise.
43897         * doc/posix-functions/wcstoumax.texi: Likewise.
43898         * doc/posix-functions/wcswidth.texi: Likewise.
43899         * doc/posix-functions/wcsxfrm.texi: Likewise.
43900         * doc/posix-functions/wctob.texi: Likewise.
43901         * doc/posix-functions/wctomb.texi: Likewise.
43902         * doc/posix-functions/wctrans.texi: Likewise.
43903         * doc/posix-functions/wctype.texi: Likewise.
43904         * doc/posix-functions/wcwidth.texi: Likewise.
43905         * doc/posix-functions/wmemchr.texi: Likewise.
43906         * doc/posix-functions/wmemcmp.texi: Likewise.
43907         * doc/posix-functions/wmemcpy.texi: Likewise.
43908         * doc/posix-functions/wmemmove.texi: Likewise.
43909         * doc/posix-functions/wmemset.texi: Likewise.
43910         * doc/posix-functions/wprintf.texi: Likewise.
43911         * doc/posix-functions/wscanf.texi: Likewise.
43912
43913 2008-12-21  Bruno Haible  <bruno@clisp.org>
43914
43915         Update doc for HP-UX 11.11.
43916         * doc/posix-functions/btowc.texi: Clarify that the function is missing
43917         in HP-UX version 11.00, not in all versions of HP-UX 11.
43918         * doc/posix-functions/fwide.texi: Likewise.
43919         * doc/posix-functions/fwprintf.texi: Likewise.
43920         * doc/posix-functions/fwscanf.texi: Likewise.
43921         * doc/posix-functions/inet_ntop.texi: Likewise.
43922         * doc/posix-functions/inet_pton.texi: Likewise.
43923         * doc/posix-functions/mbrlen.texi: Likewise.
43924         * doc/posix-functions/mbrtowc.texi: Likewise.
43925         * doc/posix-functions/mbsinit.texi: Likewise.
43926         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43927         * doc/posix-functions/swprintf.texi: Likewise.
43928         * doc/posix-functions/swscanf.texi: Likewise.
43929         * doc/posix-functions/towctrans.texi: Likewise.
43930         * doc/posix-functions/vfwprintf.texi: Likewise.
43931         * doc/posix-functions/vswprintf.texi: Likewise.
43932         * doc/posix-functions/vwprintf.texi: Likewise.
43933         * doc/posix-functions/wcrtomb.texi: Likewise.
43934         * doc/posix-functions/wcsrtombs.texi: Likewise.
43935         * doc/posix-functions/wcsstr.texi: Likewise.
43936         * doc/posix-functions/wctob.texi: Likewise.
43937         * doc/posix-functions/wctrans.texi: Likewise.
43938         * doc/posix-functions/wmemchr.texi: Likewise.
43939         * doc/posix-functions/wmemcmp.texi: Likewise.
43940         * doc/posix-functions/wmemcpy.texi: Likewise.
43941         * doc/posix-functions/wmemmove.texi: Likewise.
43942         * doc/posix-functions/wmemset.texi: Likewise.
43943         * doc/posix-functions/wprintf.texi: Likewise.
43944         * doc/posix-functions/wscanf.texi: Likewise.
43945
43946 2008-12-21  Bruno Haible  <bruno@clisp.org>
43947
43948         Work around a portability problem.
43949         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
43950         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
43951
43952 2008-12-20  Bruno Haible  <bruno@clisp.org>
43953
43954         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
43955         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
43956         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
43957         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
43958         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
43959
43960         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
43961         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
43962         set.
43963         (GNULIB_defined_mbstate_t): New macro.
43964         (mbsinit): Redefine if REPLACE_MBSINIT is set.
43965         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
43966         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
43967         reuses the system's mbrtowc function but works around the bugs.
43968         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
43969         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
43970         macros.
43971         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
43972         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
43973         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
43974         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
43975         REPLACE_MBSINIT if mbsinit needs to be overridden.
43976         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
43977         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43978         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
43979         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43980         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43981         m4/locale-zh.m4.
43982         (Depends): Add mbsinit.
43983         * modules/mbsinit (Depends): Add mbrtowc.
43984         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
43985
43986 2008-12-20  Bruno Haible  <bruno@clisp.org>
43987
43988         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
43989         so that there are no conversion errors on AIX.
43990         * tests/test-mbsrtowcs.c (main): LIkewise.
43991
43992 2008-12-20  Bruno Haible  <bruno@clisp.org>
43993
43994         Work around wctob bug on Solaris <= 9.
43995         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
43996         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
43997         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
43998         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
43999         * modules/wctob (Files): Add m4/locale-fr.m4.
44000         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
44001
44002 2008-12-20  Bruno Haible  <bruno@clisp.org>
44003
44004         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
44005         /dev/null.
44006         * tests/test-select-in.sh: Likewise.
44007         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44008
44009 2008-12-20  Bruno Haible  <bruno@clisp.org>
44010
44011         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
44012         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
44013         Cygwin 1.5.x.
44014
44015 2008-12-20  Bruno Haible  <bruno@clisp.org>
44016
44017         Ensure mbstate_t is defined on HP-UX 11.11.
44018         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
44019         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
44020         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
44021         AC_USE_SYSTEM_EXTENSIONS.
44022         * modules/fnmatch (Depends-on): Add extensions.
44023         * modules/mbrlen (Depends-on): Likewise.
44024         * modules/mbrtowc (Depends-on): Likewise.
44025         * modules/mbsinit (Depends-on): Likewise.
44026         * modules/mbsrtowcs (Depends-on): Likewise.
44027         * modules/mbswidth (Depends-on): Likewise.
44028         * modules/quotearg (Depends-on): Likewise.
44029         * modules/strftime (Depends-on): Likewise.
44030
44031 2008-12-20  Bruno Haible  <bruno@clisp.org>
44032
44033         Ensure wctob is declared on IRIX 6.5.
44034         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
44035         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
44036         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
44037         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
44038         of HAVE_WCTOB.
44039         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
44040         HAVE_WCTOB.
44041         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
44042
44043 2008-12-19  Bruno Haible  <bruno@clisp.org>
44044
44045         * modules/mbsrtowcs-tests: New file.
44046         * tests/test-mbsrtowcs1.sh: New file.
44047         * tests/test-mbsrtowcs2.sh: New file.
44048         * tests/test-mbsrtowcs3.sh: New file.
44049         * tests/test-mbsrtowcs4.sh: New file.
44050         * tests/test-mbsrtowcs.c: New file.
44051
44052         New module 'mbsrtowcs'.
44053         * lib/wchar.in.h (mbsrtowcs): New declaration.
44054         * lib/mbsrtowcs.c: New file.
44055         * m4/mbsrtowcs.m4: New file.
44056         * modules/mbsrtowcs: New file.
44057         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
44058         HAVE_MBSRTOWCS.
44059         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
44060         HAVE_MBSRTOWCS.
44061         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
44062
44063 2008-12-19  Bruno Haible  <bruno@clisp.org>
44064
44065         New module 'mbrlen'.
44066         * lib/wchar.in.h (mbrlen): New declaration.
44067         * lib/mbrlen.c: New file.
44068         * m4/mbrlen.m4: New file.
44069         * modules/mbrlen: New file.
44070         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
44071         HAVE_MBRLEN.
44072         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
44073         HAVE_MBRLEN.
44074         * doc/posix-functions/mbrlen.texi: Document the new module.
44075
44076 2008-12-19  Bruno Haible  <bruno@clisp.org>
44077
44078         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
44079         * modules/mbrtowc (Depends-on): Add verify.
44080         Suggested by Paul Eggert.
44081
44082 2008-12-18  Bruno Haible  <bruno@clisp.org>
44083
44084         * modules/mbsinit-tests: New file.
44085         * tests/test-mbsinit.sh: New file.
44086         * tests/test-mbsinit.c: New file.
44087
44088 2008-12-18  Bruno Haible  <bruno@clisp.org>
44089
44090         * modules/mbrtowc-tests: New file.
44091         * tests/test-mbrtowc1.sh: New file.
44092         * tests/test-mbrtowc2.sh: New file.
44093         * tests/test-mbrtowc3.sh: New file.
44094         * tests/test-mbrtowc4.sh: New file.
44095         * tests/test-mbrtowc.c: New file.
44096
44097         New module 'mbrtowc'.
44098         * lib/wchar.in.h (mbstate_t): Override when the system does not have
44099         mbsinit and mbrtowc.
44100         (mbrtowc): New declaration.
44101         * lib/mbrtowc.c: New file.
44102         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
44103         * modules/mbrtowc: New file.
44104         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
44105         HAVE_MBRTOWC.
44106         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
44107         HAVE_MBRTOWC.
44108         * doc/posix-functions/mbrtowc.texi: Document the new module.
44109
44110 2008-12-18  Bruno Haible  <bruno@clisp.org>
44111
44112         New module 'wctob'.
44113         * lib/wchar.in.h (wctob): New declaration.
44114         * lib/wctob.c: New file.
44115         * m4/wctob.m4: New file.
44116         * modules/wctob: New file.
44117         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
44118         HAVE_WCTOB.
44119         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
44120         * doc/posix-functions/wctob.texi: Document the new module.
44121
44122 2008-12-18  Bruno Haible  <bruno@clisp.org>
44123
44124         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
44125         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
44126
44127 2008-12-18  Simon Josefsson  <simon@josefsson.org>
44128
44129         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
44130         G. Christensen" <tgc@jupiterrise.com>.
44131
44132         * lib/flock.c: Need to include errno.h.  Reported by "Tom
44133         G. Christensen" <tgc@jupiterrise.com>.
44134
44135         * lib/flock.c: Need to include string.h.  Reported by "Tom
44136         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
44137         <ebb9@byu.net>.
44138
44139 2008-12-18  Bruno Haible  <bruno@clisp.org>
44140
44141         * m4/locale-ja.m4: New file, from GNU gettext.
44142
44143 2008-12-17  Bruno Haible  <bruno@clisp.org>
44144
44145         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
44146         Suggested by Eric Blake.
44147
44148 2008-12-17  Bruno Haible  <bruno@clisp.org>
44149
44150         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
44151
44152 2008-12-17  Bruno Haible  <bruno@clisp.org>
44153
44154         * lib/mbsinit.c: Include verify.h. Verify an assumption.
44155         * modules/mbsinit (Depends-on): Add verify.
44156         Suggested by Paul Eggert.
44157
44158 2008-12-17  Bruno Haible  <bruno@clisp.org>
44159
44160         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
44161         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
44162         gl_FUNC_MBRTOWC.
44163         * m4/mbiter.m4 (gl_MBITER): LIkewise.
44164         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
44165         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
44166         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
44167         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
44168         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
44169         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
44170         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
44171         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
44172         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
44173         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
44174         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
44175         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
44176         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
44177         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
44178         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
44179         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
44180         * modules/trim (configure.ac): Likewise.
44181
44182 2008-12-17  Bruno Haible  <bruno@clisp.org>
44183
44184         * modules/btowc-tests: New file.
44185         * tests/test-btowc1.sh: New file.
44186         * tests/test-btowc2.sh: New file.
44187         * tests/test-btowc.c: New file.
44188
44189         New module 'btowc'.
44190         * lib/wchar.in.h (btowc): New declaration.
44191         * lib/btowc.c: New file.
44192         * m4/btowc.m4: New file.
44193         * modules/btowc: New file.
44194         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
44195         HAVE_BTOWC.
44196         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
44197         * doc/posix-functions/btowc.texi: Document the new module.
44198
44199 2008-12-17  Bruno Haible  <bruno@clisp.org>
44200
44201         New module 'mbsinit'.
44202         * lib/wchar.in.h (mbsinit): New declaration.
44203         * lib/mbsinit.c: New file.
44204         * m4/mbsinit.m4: New file.
44205         * modules/mbsinit: New file.
44206         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
44207         HAVE_MBSINIT.
44208         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
44209         HAVE_MBSINIT.
44210         * doc/posix-functions/mbsinit.texi: Document the new module.
44211
44212 2008-12-16  Bruno Haible  <bruno@clisp.org>
44213
44214         * lib/unistd.in.h: Add comment.
44215         * tests/test-environ.c: Don't include <stdlib.h>.
44216
44217 2008-12-16  Bruno Haible  <bruno@clisp.org>
44218
44219         * lib/parse-duration.h (parse_duration): Document return value
44220         convention.
44221         * lib/parse-duration.c: Include specification header first. Add
44222         comments.
44223         (_): Remove macro.
44224         (parse_year_month_day, parse_hour_minute_second): Move side effects
44225         outside of strchr call.
44226         (parse_non_iso8601): Move side effects outside of isspace call.
44227         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
44228         call.
44229
44230 2008-12-16  Bruno Haible  <bruno@clisp.org>
44231
44232         * tests/test-parse-duration.sh: Produce no output when the test
44233         succeeds.
44234
44235 2008-12-16  Bruno Haible  <bruno@clisp.org>
44236
44237         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
44238         expressions.
44239
44240 2008-12-15  Bruno Haible  <bruno@clisp.org>
44241
44242         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
44243         * doc/glibc-functions/flistxattr.texi: Likewise.
44244         * doc/glibc-functions/fopencookie.texi: Likewise.
44245         * doc/glibc-functions/fremovexattr.texi: Likewise.
44246         * doc/glibc-functions/fsetxattr.texi: Likewise.
44247         * doc/glibc-functions/getxattr.texi: Likewise.
44248         * doc/glibc-functions/lgetxattr.texi: Likewise.
44249         * doc/glibc-functions/listxattr.texi: Likewise.
44250         * doc/glibc-functions/llistxattr.texi: Likewise.
44251         * doc/glibc-functions/lremovexattr.texi: Likewise.
44252         * doc/glibc-functions/lsetxattr.texi: Likewise.
44253         * doc/glibc-functions/removexattr.texi: Likewise.
44254         * doc/glibc-functions/setxattr.texi: Likewise.
44255         * doc/posix-functions/open_memstream.texi: Likewise.
44256
44257 2008-12-15  Eric Blake  <ebb9@byu.net>
44258
44259         Update doc for cygwin 1.7.
44260         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
44261         functions.
44262         * doc/posix-functions/fchmodat.texi: Likewise.
44263         * doc/posix-functions/fchownat.texi: Likewise.
44264         * doc/posix-functions/fdopendir.texi: Likewise.
44265         * doc/posix-functions/fmemopen.texi: Likewise.
44266         * doc/posix-functions/freeaddrinfo.texi: Likewise.
44267         * doc/posix-functions/fstatat.texi: Likewise.
44268         * doc/posix-functions/futimens.texi: Likewise.
44269         * doc/posix-functions/gai_strerror.texi: Likewise.
44270         * doc/posix-functions/getaddrinfo.texi: Likewise.
44271         * doc/posix-functions/getnameinfo.texi: Likewise.
44272         * doc/posix-functions/if_freenameindex.texi: Likewise.
44273         * doc/posix-functions/if_indextoname.texi: Likewise.
44274         * doc/posix-functions/if_nameindex.texi: Likewise.
44275         * doc/posix-functions/if_nametoindex.texi: Likewise.
44276         * doc/posix-functions/insque.texi: Likewise.
44277         * doc/posix-functions/linkat.texi: Likewise.
44278         * doc/posix-functions/llrint.texi: Likewise.
44279         * doc/posix-functions/llrintf.texi: Likewise.
44280         * doc/posix-functions/llrintl.texi: Likewise.
44281         * doc/posix-functions/lockf.texi: Likewise.
44282         * doc/posix-functions/lrintl.texi: Likewise.
44283         * doc/posix-functions/mkdirat.texi: Likewise.
44284         * doc/posix-functions/mkfifoat.texi: Likewise.
44285         * doc/posix-functions/mknodat.texi: Likewise.
44286         * doc/posix-functions/mq_close.texi: Likewise.
44287         * doc/posix-functions/mq_getattr.texi: Likewise.
44288         * doc/posix-functions/mq_notify.texi: Likewise.
44289         * doc/posix-functions/mq_open.texi: Likewise.
44290         * doc/posix-functions/mq_receive.texi: Likewise.
44291         * doc/posix-functions/mq_send.texi: Likewise.
44292         * doc/posix-functions/mq_setattr.texi: Likewise.
44293         * doc/posix-functions/mq_timedreceive.texi: Likewise.
44294         * doc/posix-functions/mq_timedsend.texi: Likewise.
44295         * doc/posix-functions/mq_unlink.texi: Likewise.
44296         * doc/posix-functions/open_memstream.texi: Likewise.
44297         * doc/posix-functions/openat.texi: Likewise.
44298         * doc/posix-functions/posix_fadvise.texi: Likewise.
44299         * doc/posix-functions/posix_fallocate.texi: Likewise.
44300         * doc/posix-functions/posix_madvise.texi: Likewise.
44301         * doc/posix-functions/posix_memalign.texi: Likewise.
44302         * doc/posix-functions/posix_openpt.texi: Likewise.
44303         * doc/posix-functions/readlinkat.texi: Likewise.
44304         * doc/posix-functions/remque.texi: Likewise.
44305         * doc/posix-functions/renameat.texi: Likewise.
44306         * doc/posix-functions/rintl.texi: Likewise.
44307         * doc/posix-functions/sem_unlink.texi: Likewise.
44308         * doc/posix-functions/shm_open.texi: Likewise.
44309         * doc/posix-functions/shm_unlink.texi: Likewise.
44310         * doc/posix-functions/signgam.texi: Likewise.
44311         * doc/posix-functions/sigset.texi: Likewise.
44312         * doc/posix-functions/stpcpy.texi: Likewise.
44313         * doc/posix-functions/stpncpy.texi: Likewise.
44314         * doc/posix-functions/strerror.texi: Likewise.
44315         * doc/posix-functions/strtod.texi: Likewise.
44316         * doc/posix-functions/symlinkat.texi: Likewise.
44317         * doc/posix-functions/unlinkat.texi: Likewise.
44318         * doc/posix-functions/utimensat.texi: Likewise.
44319         * doc/glibc-functions/bindresvport.texi: Likewise.
44320         * doc/glibc-functions/dn_expand.texi: Likewise.
44321         * doc/glibc-functions/exp10.texi: Likewise.
44322         * doc/glibc-functions/exp10f.texi: Likewise.
44323         * doc/glibc-functions/fgetxattr.texi: Likewise.
44324         * doc/glibc-functions/flistxattr.texi: Likewise.
44325         * doc/glibc-functions/fopencookie.texi: Likewise.
44326         * doc/glibc-functions/freeifaddrs.texi: Likewise.
44327         * doc/glibc-functions/fremovexattr.texi: Likewise.
44328         * doc/glibc-functions/fsetxattr.texi: Likewise.
44329         * doc/glibc-functions/getifaddrs.texi: Likewise.
44330         * doc/glibc-functions/getxattr.texi: Likewise.
44331         * doc/glibc-functions/lgetxattr.texi: Likewise.
44332         * doc/glibc-functions/listxattr.texi: Likewise.
44333         * doc/glibc-functions/llistxattr.texi: Likewise.
44334         * doc/glibc-functions/lremovexattr.texi: Likewise.
44335         * doc/glibc-functions/lsetxattr.texi: Likewise.
44336         * doc/glibc-functions/pow10.texi: Likewise.
44337         * doc/glibc-functions/pow10f.texi: Likewise.
44338         * doc/glibc-functions/rcmd_af.texi: Likewise.
44339         * doc/glibc-functions/removexattr.texi: Likewise.
44340         * doc/glibc-functions/res_init.texi: Likewise.
44341         * doc/glibc-functions/res_mkquery.texi: Likewise.
44342         * doc/glibc-functions/res_query.texi: Likewise.
44343         * doc/glibc-functions/res_querydomain.texi: Likewise.
44344         * doc/glibc-functions/res_send.texi: Likewise.
44345         * doc/glibc-functions/rresvport_af.texi: Likewise.
44346         * doc/glibc-functions/setxattr.texi: Likewise.
44347         * doc/glibc-functions/strcasestr.texi: Likewise.
44348
44349 2008-12-15  Bruno Haible  <bruno@clisp.org>
44350
44351         Fix compilation error on OSF/1 4.0.
44352         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
44353         <sys/time.h>, simply delegate to the system header.
44354         Reported by Daniel Richard G. <oss@teragram.com>.
44355
44356 2008-12-15  Bruno Haible  <bruno@clisp.org>
44357
44358         * doc/posix-functions/openat.texi: Mention the 'openat' module.
44359         * doc/posix-functions/fchmodat.texi: Likewise.
44360         * doc/posix-functions/fchownat.texi: Likewise.
44361         * doc/posix-functions/fdopendir.texi: Likewise.
44362         * doc/posix-functions/fstatat.texi: Likewise.
44363         * doc/posix-functions/mkdirat.texi: Likewise.
44364         * doc/posix-functions/unlinkat.texi: Likewise.
44365
44366 2008-12-14  Bruno Haible  <bruno@clisp.org>
44367
44368         Update doc for POSIX:2008.
44369         * doc/posix-functions/faccessat.texi: New file.
44370         * doc/posix-functions/fchmodat.texi: New file.
44371         * doc/posix-functions/fchownat.texi: New file.
44372         * doc/posix-functions/fdopendir.texi: New file.
44373         * doc/posix-functions/fstatat.texi: New file.
44374         * doc/posix-functions/futimens.texi: New file.
44375         * doc/posix-functions/linkat.texi: New file.
44376         * doc/posix-functions/mkdirat.texi: New file.
44377         * doc/posix-functions/mkfifoat.texi: New file.
44378         * doc/posix-functions/mknodat.texi: New file.
44379         * doc/posix-functions/open_wmemstream.texi: New file.
44380         * doc/posix-functions/openat.texi: New file.
44381         * doc/posix-functions/psiginfo.texi: New file.
44382         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
44383         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
44384         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
44385         * doc/posix-functions/readlinkat.texi: New file.
44386         * doc/posix-functions/renameat.texi: New file.
44387         * doc/posix-functions/strerror_l.texi: New file.
44388         * doc/posix-functions/symlinkat.texi: New file.
44389         * doc/posix-functions/unlinkat.texi: New file.
44390         * doc/posix-functions/utimensat.texi: New file.
44391         * doc/gnulib.texi (Function Substitutes): Add these subsections.
44392
44393 2008-12-14  Bruno Haible  <bruno@clisp.org>
44394
44395         Update doc for POSIX:2008.
44396         * doc/posix-functions/alphasort.texi: Renamed from
44397         doc/glibc-functions/alphasort.texi.
44398         * doc/posix-functions/dirfd.texi: Renamed from
44399         doc/glibc-functions/dirfd.texi.
44400         * doc/posix-functions/dprintf.texi: Renamed from
44401         doc/glibc-functions/dprintf.texi.
44402         * doc/posix-functions/duplocale.texi: Renamed from
44403         doc/glibc-functions/duplocale.texi.
44404         * doc/posix-functions/fexecve.texi: Renamed from
44405         doc/glibc-functions/fexecve.texi.
44406         * doc/posix-functions/fmemopen.texi: Renamed from
44407         doc/glibc-functions/fmemopen.texi.
44408         * doc/posix-functions/freelocale.texi: Renamed from
44409         doc/glibc-functions/freelocale.texi.
44410         * doc/posix-functions/getdate_err.texi: Renamed from
44411         doc/glibc-functions/getdate_err.texi.
44412         * doc/posix-functions/isalnum_l.texi: Renamed from
44413         doc/glibc-functions/isalnum_l.texi.
44414         * doc/posix-functions/isalpha_l.texi: Renamed from
44415         doc/glibc-functions/isalpha_l.texi.
44416         * doc/posix-functions/isblank_l.texi: Renamed from
44417         doc/glibc-functions/isblank_l.texi.
44418         * doc/posix-functions/iscntrl_l.texi: Renamed from
44419         doc/glibc-functions/iscntrl_l.texi.
44420         * doc/posix-functions/isdigit_l.texi: Renamed from
44421         doc/glibc-functions/isdigit_l.texi.
44422         * doc/posix-functions/isgraph_l.texi: Renamed from
44423         doc/glibc-functions/isgraph_l.texi.
44424         * doc/posix-functions/islower_l.texi: Renamed from
44425         doc/glibc-functions/islower_l.texi.
44426         * doc/posix-functions/isprint_l.texi: Renamed from
44427         doc/glibc-functions/isprint_l.texi.
44428         * doc/posix-functions/ispunct_l.texi: Renamed from
44429         doc/glibc-functions/ispunct_l.texi.
44430         * doc/posix-functions/isspace_l.texi: Renamed from
44431         doc/glibc-functions/isspace_l.texi.
44432         * doc/posix-functions/isupper_l.texi: Renamed from
44433         doc/glibc-functions/isupper_l.texi.
44434         * doc/posix-functions/iswalnum_l.texi: Renamed from
44435         doc/glibc-functions/iswalnum_l.texi.
44436         * doc/posix-functions/iswalpha_l.texi: Renamed from
44437         doc/glibc-functions/iswalpha_l.texi.
44438         * doc/posix-functions/iswblank_l.texi: Renamed from
44439         doc/glibc-functions/iswblank_l.texi.
44440         * doc/posix-functions/iswcntrl_l.texi: Renamed from
44441         doc/glibc-functions/iswcntrl_l.texi.
44442         * doc/posix-functions/iswctype_l.texi: Renamed from
44443         doc/glibc-functions/iswctype_l.texi.
44444         * doc/posix-functions/iswdigit_l.texi: Renamed from
44445         doc/glibc-functions/iswdigit_l.texi.
44446         * doc/posix-functions/iswgraph_l.texi: Renamed from
44447         doc/glibc-functions/iswgraph_l.texi.
44448         * doc/posix-functions/iswlower_l.texi: Renamed from
44449         doc/glibc-functions/iswlower_l.texi.
44450         * doc/posix-functions/iswprint_l.texi: Renamed from
44451         doc/glibc-functions/iswprint_l.texi.
44452         * doc/posix-functions/iswpunct_l.texi: Renamed from
44453         doc/glibc-functions/iswpunct_l.texi.
44454         * doc/posix-functions/iswspace_l.texi: Renamed from
44455         doc/glibc-functions/iswspace_l.texi.
44456         * doc/posix-functions/iswupper_l.texi: Renamed from
44457         doc/glibc-functions/iswupper_l.texi.
44458         * doc/posix-functions/iswxdigit_l.texi: Renamed from
44459         doc/glibc-functions/iswxdigit_l.texi.
44460         * doc/posix-functions/isxdigit_l.texi: Renamed from
44461         doc/glibc-functions/isxdigit_l.texi.
44462         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
44463         doc/glibc-functions/mbsnrtowcs.texi.
44464         * doc/posix-functions/mkdtemp.texi: Renamed from
44465         doc/glibc-functions/mkdtemp.texi.
44466         * doc/posix-functions/newlocale.texi: Renamed from
44467         doc/glibc-functions/newlocale.texi.
44468         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
44469         doc/glibc-functions/nl_langinfo_l.texi.
44470         * doc/posix-functions/open_memstream.texi: Renamed from
44471         doc/glibc-functions/open_memstream.texi.
44472         * doc/posix-functions/opterr.texi: Renamed from
44473         doc/glibc-functions/opterr.texi.
44474         * doc/posix-functions/optind.texi: Renamed from
44475         doc/glibc-functions/optind.texi.
44476         * doc/posix-functions/optopt.texi: Renamed from
44477         doc/glibc-functions/optopt.texi.
44478         * doc/posix-functions/psignal.texi: Renamed from
44479         doc/glibc-functions/psignal.texi.
44480         * doc/posix-functions/scandir.texi: Renamed from
44481         doc/glibc-functions/scandir.texi.
44482         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
44483         doc/glibc-functions/sched_get_priority_min.texi.
44484         * doc/posix-functions/signgam.texi: Renamed from
44485         doc/glibc-functions/signgam.texi.
44486         * doc/posix-functions/stpcpy.texi: Renamed from
44487         doc/glibc-functions/stpcpy.texi.
44488         * doc/posix-functions/stpncpy.texi: Renamed from
44489         doc/glibc-functions/stpncpy.texi.
44490         * doc/posix-functions/strcasecmp_l.texi: Renamed from
44491         doc/glibc-functions/strcasecmp_l.texi.
44492         * doc/posix-functions/strcoll_l.texi: Renamed from
44493         doc/glibc-functions/strcoll_l.texi.
44494         * doc/posix-functions/strfmon_l.texi: Renamed from
44495         doc/glibc-functions/strfmon_l.texi.
44496         * doc/posix-functions/strftime_l.texi: Renamed from
44497         doc/glibc-functions/strftime_l.texi.
44498         * doc/posix-functions/strncasecmp_l.texi: Renamed from
44499         doc/glibc-functions/strncasecmp_l.texi.
44500         * doc/posix-functions/strndup.texi: Renamed from
44501         doc/glibc-functions/strndup.texi.
44502         * doc/posix-functions/strnlen.texi: Renamed from
44503         doc/glibc-functions/strnlen.texi.
44504         * doc/posix-functions/strsignal.texi: Renamed from
44505         doc/glibc-functions/strsignal.texi.
44506         * doc/posix-functions/strxfrm_l.texi: Renamed from
44507         doc/glibc-functions/strxfrm_l.texi.
44508         * doc/posix-functions/timer_gettime.texi: Renamed from
44509         doc/glibc-functions/timer_gettime.texi.
44510         * doc/posix-functions/tolower_l.texi: Renamed from
44511         doc/glibc-functions/tolower_l.texi.
44512         * doc/posix-functions/toupper_l.texi: Renamed from
44513         doc/glibc-functions/toupper_l.texi.
44514         * doc/posix-functions/towctrans_l.texi: Renamed from
44515         doc/glibc-functions/towctrans_l.texi.
44516         * doc/posix-functions/towlower_l.texi: Renamed from
44517         doc/glibc-functions/towlower_l.texi.
44518         * doc/posix-functions/towupper_l.texi: Renamed from
44519         doc/glibc-functions/towupper_l.texi.
44520         * doc/posix-functions/uselocale.texi: Renamed from
44521         doc/glibc-functions/uselocale.texi.
44522         * doc/posix-functions/vdprintf.texi: Renamed from
44523         doc/glibc-functions/vdprintf.texi.
44524         * doc/posix-functions/wcpcpy.texi:
44525         Renamed from doc/glibc-functions/wcpcpy.texi.
44526         * doc/posix-functions/wcpncpy.texi: Renamed from
44527         doc/glibc-functions/wcpncpy.texi.
44528         * doc/posix-functions/wcscasecmp.texi: Renamed from
44529         doc/glibc-functions/wcscasecmp.texi.
44530         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
44531         doc/glibc-functions/wcscasecmp_l.texi.
44532         * doc/posix-functions/wcscoll_l.texi: Renamed from
44533         doc/glibc-functions/wcscoll_l.texi.
44534         * doc/posix-functions/wcsdup.texi: Renamed from
44535         doc/glibc-functions/wcsdup.texi.
44536         * doc/posix-functions/wcsncasecmp.texi: Renamed from
44537         doc/glibc-functions/wcsncasecmp.texi.
44538         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
44539         doc/glibc-functions/wcsncasecmp_l.texi.
44540         * doc/posix-functions/wcsnlen.texi: Renamed from
44541         doc/glibc-functions/wcsnlen.texi.
44542         * doc/posix-functions/wcsnrtombs.texi: Renamed from
44543         doc/glibc-functions/wcsnrtombs.texi.
44544         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
44545         doc/glibc-functions/wcsxfrm_l.texi.
44546         * doc/posix-functions/wctrans_l.texi: Renamed from
44547         doc/glibc-functions/wctrans_l.texi.
44548         * doc/posix-functions/wctype_l.texi: Renamed from
44549         doc/glibc-functions/wctype_l.texi.
44550         * doc/gnulib.texi (Function Substitutes): Add these subsections.
44551         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
44552         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
44553         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
44554         these subsections.
44555         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
44556         Remove sections.
44557
44558 2008-12-14  Bruno Haible  <bruno@clisp.org>
44559
44560         Update doc for POSIX:2008.
44561         * doc/posix-functions/*.texi: Update URL of POSIX specification.
44562
44563 2008-12-14  Bruno Haible  <bruno@clisp.org>
44564
44565         Update doc for POSIX:2008.
44566         * doc/pastposix-functions/bcmp.texi: Renamed from
44567         doc/posix-functions/bcmp.texi.
44568         * doc/pastposix-functions/bcopy.texi: Renamed from
44569         doc/posix-functions/bcopy.texi.
44570         * doc/pastposix-functions/bsd_signal.texi: Renamed from
44571         doc/posix-functions/bsd_signal.texi.
44572         * doc/pastposix-functions/bzero.texi: Renamed from
44573         doc/posix-functions/bzero.texi.
44574         * doc/pastposix-functions/ecvt.texi: Renamed from
44575         doc/posix-functions/ecvt.texi.
44576         * doc/pastposix-functions/fcvt.texi: Renamed from
44577         doc/posix-functions/fcvt.texi.
44578         * doc/pastposix-functions/ftime.texi: Renamed from
44579         doc/posix-functions/ftime.texi.
44580         * doc/pastposix-functions/gcvt.texi: Renamed from
44581         doc/posix-functions/gcvt.texi.
44582         * doc/pastposix-functions/getcontext.texi: Renamed from
44583         doc/posix-functions/getcontext.texi.
44584         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
44585         doc/posix-functions/gethostbyaddr.texi.
44586         * doc/pastposix-functions/gethostbyname.texi: Renamed from
44587         doc/posix-functions/gethostbyname.texi.
44588         * doc/pastposix-functions/getwd.texi: Renamed from
44589         doc/posix-functions/getwd.texi.
44590         * doc/pastposix-functions/h_errno.texi: Renamed from
44591         doc/posix-functions/h_errno.texi.
44592         * doc/pastposix-functions/index.texi: Renamed from
44593         doc/posix-functions/index.texi.
44594         * doc/pastposix-functions/makecontext.texi: Renamed from
44595         doc/posix-functions/makecontext.texi.
44596         * doc/pastposix-functions/mktemp.texi: Renamed from
44597         doc/posix-functions/mktemp.texi.
44598         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
44599         doc/posix-functions/pthread_attr_getstackaddr.texi.
44600         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
44601         doc/posix-functions/pthread_attr_setstackaddr.texi.
44602         * doc/pastposix-functions/rindex.texi: Renamed from
44603         doc/posix-functions/rindex.texi.
44604         * doc/pastposix-functions/scalb.texi: Renamed from
44605         doc/posix-functions/scalb.texi.
44606         * doc/pastposix-functions/setcontext.texi: Renamed from
44607         doc/posix-functions/setcontext.texi.
44608         * doc/pastposix-functions/swapcontext.texi: Renamed from
44609         doc/posix-functions/swapcontext.texi.
44610         * doc/pastposix-functions/ualarm.texi: Renamed from
44611         doc/posix-functions/ualarm.texi.
44612         * doc/pastposix-functions/usleep.texi: Renamed from
44613         doc/posix-functions/usleep.texi.
44614         * doc/pastposix-functions/vfork.texi: Renamed from
44615         doc/posix-functions/vfork.texi.
44616         * doc/pastposix-functions/wcswcs.texi: Renamed from
44617         doc/posix-functions/wcswcs.texi.
44618         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
44619         (Function Substitutes): Update.
44620
44621 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44622
44623         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
44624         m4/strerror.m4.
44625
44626 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44627             Bruno Haible  <bruno@clisp.org>
44628
44629         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
44630
44631 2008-12-13  Bruno Haible  <bruno@clisp.org>
44632
44633         * modules/strtoull (Depends-on): Remove unistd.
44634
44635 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44636
44637         * modules/strtoull (Depends-on): Add stdlib.
44638
44639 2008-12-11  Simon Josefsson  <simon@josefsson.org>
44640
44641         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
44642
44643 2008-12-10  Jim Meyering  <meyering@redhat.com>
44644
44645         gl_ASSERT: don't say assertions are disabled when they're not
44646         * m4/assert.m4 (gl_ASSERT): Do not make configure report
44647         "checking whether to enable assertions... no", when they are in
44648         fact enabled.  This is solely a bug in the output of configure.
44649         In spite of saying "no", NDEBUG was not defined in that case.
44650         Also, as noted by Eric Blake, leave assertions enabled upon
44651         --enable-assert=INVALID.
44652
44653 2008-12-10  Bruno Haible  <bruno@clisp.org>
44654
44655         Change MODULES.html to refer to POSIX:2008 where possible.
44656         * MODULES.html.sh (POSIX2008_URL): New variable.
44657         (posix_headers): Remove sys/timeb, ucontext.
44658         (posix2001_headers): New variable.
44659         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
44660         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
44661         index, makecontext, mktemp, pthread_attr_getstackaddr,
44662         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
44663         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
44664         (posix2001_functions): New variable.
44665         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
44666         otherwise.
44667
44668 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44669
44670         add missing include to parse-duration.c
44671         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
44672         * modules/parse-duration (Depends-on): Add xalloc.
44673
44674         fix sed script reading maint.mk
44675         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
44676         (syntax-check-rules): Use it.
44677
44678 2008-12-09  Bruno Haible  <bruno@clisp.org>
44679
44680         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
44681         MacOS X 10.4/PowerPC.
44682         Reported by Simon Josefsson.
44683
44684 2008-12-08  Jim Meyering  <meyering@redhat.com>
44685
44686         work around mingw's lack of some S_IF definitions
44687         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
44688         Reported by Simon Josefsson.
44689
44690 2008-12-08  Bruno Haible  <bruno@clisp.org>
44691
44692         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
44693         applied to variables. Needed on MacOS X 10.4/PowerPC.
44694         Reported by Simon Josefsson.
44695
44696 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
44697         and Eric Blake  <ebb9@byu.net>
44698
44699         assert: honor --enable-assert
44700         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
44701         order to honor --enable-assert, rather than treating it as a
44702         synonym for --disable-assert.
44703
44704 2008-12-08  Jim Meyering  <meyering@redhat.com>
44705
44706         * lib/posixtm.c: Remove now-useless declaration of mktime.
44707
44708         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
44709
44710 2008-12-07  Bruno Haible  <bruno@clisp.org>
44711
44712         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
44713         test_once): Mark functions as static.
44714         * tests/test-tls.c (test_tls): Likewise.
44715
44716 2008-12-07  Bruno Haible  <bruno@clisp.org>
44717
44718         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
44719         iconv_register_autodetect.
44720
44721 2008-12-07  Jim Meyering  <meyering@redhat.com>
44722
44723         posixtm.c: avoid a warning
44724         * lib/posixtm.c (posixtime): Don't initialize tm0.
44725         It's no longer needed to placate gcc4's -Wuninitialized,
44726         and the attempt to placate would elicit a new warning.
44727
44728         unicodeio.c: mark unused parameters
44729         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44730         (fallback_failure_callback): Likewise.
44731
44732 2008-12-07  Bruno Haible  <bruno@clisp.org>
44733
44734         * gnulib-tool (func_create_testdir): When building the tests
44735         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
44736         Reported by Simon Josefsson.
44737
44738 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44739
44740         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
44741
44742 2008-12-06  Bruno Haible  <bruno@clisp.org>
44743
44744         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
44745         Suggested by Eric Blake.
44746
44747 2008-12-06  Bruno Haible  <bruno@clisp.org>
44748
44749         Fix a c-stack test failure on MacOS X.
44750         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
44751         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
44752         handler for SIGBUS as well.
44753         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
44754         install a signal handler for SIGBUS as well.
44755         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
44756
44757 2008-12-06  Bruno Haible  <bruno@clisp.org>
44758
44759         Advocacy documentation.
44760         * doc/gnulib-intro.texi (Benefits): New section.
44761         * doc/gnulib.texi: Update.
44762
44763 2008-12-06  Bruno Haible  <bruno@clisp.org>
44764
44765         Document the 'manywarnings' module.
44766         * doc/manywarnings.texi: New file.
44767         * doc/gnulib.texi: Include it.
44768
44769 2008-12-05  Eric Blake  <ebb9@byu.net>
44770
44771         tests: silence some gcc warnings
44772         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
44773         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
44774         type mismatches.
44775
44776 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44777             Bruno Haible  <bruno@clisp.org>
44778
44779         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
44780
44781 2008-11-29  Jim Meyering  <meyering@redhat.com>
44782
44783         unicodeio.c: mark unused parameters
44784         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44785         (fallback_failure_callback): Likewise.
44786
44787         fts: fix a thinko
44788         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
44789         (set_stat_type): Return S_IF*-valued "type" directly.
44790         Prompted by James Youngman's spotting a related bug.
44791         Confirmed by further testing through find.
44792
44793         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
44794         * lib/fts.c (D_TYPE): Define.
44795         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
44796         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
44797         (s_ifmt_shift_bits): New function.
44798         (set_stat_type): New function.
44799         (fts_build): When not calling fts_stat, call set_stat_type
44800         to propagate dirent.d_type info to fts_read caller.
44801         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
44802         fts_statp->st_mode type information may be valid.
44803
44804 2008-11-28  Simon Josefsson  <simon@josefsson.org>
44805
44806         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
44807         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
44808         <sds@gnu.org>.
44809
44810 2008-11-20  Bruno Haible  <bruno@clisp.org>
44811
44812         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
44813         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
44814         INCLUDE_NEXT.
44815         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
44816         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
44817         * modules/math (Makefile.am): Substitute
44818         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
44819         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44820
44821 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
44822             Bruno Haible  <bruno@clisp.org>
44823
44824         * lib/stdint.in.h: Define all type macros so that their expansion is
44825         a single typedef'ed token. Fixes a compilation failure in Boost which
44826         does "using ::int8_t;".
44827
44828 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44829
44830         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
44831         gl_MANYWARN_ALL_GCC.
44832         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
44833         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
44834         * modules/manywarnings: New file.
44835         * MODULES.html.sh: Mention manywarnings module.
44836
44837 2008-11-18  Bruno Haible  <bruno@clisp.org>
44838
44839         * doc/gnulib-tool.texi (Unit tests): New section.
44840
44841 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44842
44843         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
44844         paths like 'lib/po/foo.po'.
44845
44846 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44847
44848         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
44849         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
44850
44851 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44852
44853         * m4/warnings.m4: Use CPPFLAGS to really check whether the
44854         parameter works.
44855
44856 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44857
44858         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
44859
44860 2008-11-17  Bruce Korb  <bkorb@gnu.org>
44861
44862         * modules/parse-duration-tests: New file.
44863         * tests/test-parse-duration.sh: New file.
44864         * tests/test-parse-duration.c: New file.
44865
44866         New module 'parse-duration'.
44867         * lib/parse-duration.h: New file.
44868         * lib/parse-duration.c: New file.
44869         * modules/parse-duration: New file.
44870
44871 2008-11-17  Bruno Haible  <bruno@clisp.org>
44872
44873         * tests/test-select-out.sh: Comment out the first pipe test.
44874         Reported by Simon Josefsson.
44875
44876 2008-11-17  Bruno Haible  <bruno@clisp.org>
44877
44878         * modules/getaddrinfo (Depends-on): Add servent, hostent.
44879         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
44880         gl_HOSTENT.
44881
44882 2008-11-17  Bruno Haible  <bruno@clisp.org>
44883
44884         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
44885         -lnetwork and -lnet. Needed for Haiku and BeOS.
44886
44887 2008-11-16  Bruno Haible  <bruno@clisp.org>
44888
44889         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
44890
44891 2008-11-16  Bruno Haible  <bruno@clisp.org>
44892
44893         Avoid test failure on Haiku.
44894         * tests/test-fsync.c: Include <errno.h>.
44895         (main): Don't require that fsync (0) fails.
44896
44897 2008-11-15  Bruno Haible  <bruno@clisp.org>
44898
44899         New module 'hostent'.
44900         * modules/hostent: New file.
44901         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
44902
44903 2008-11-15  Bruno Haible  <bruno@clisp.org>
44904
44905         New module 'servent'.
44906         * modules/servent: New file.
44907         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
44908
44909 2008-11-15  Bruno Haible  <bruno@clisp.org>
44910
44911         Avoid generating same test program with two different rules.
44912         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
44913         test-frexp to test-frexp-nolibm.
44914         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
44915         test-frexpl to test-frexpl-nolibm.
44916
44917 2008-11-15  Bruno Haible  <bruno@clisp.org>
44918
44919         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
44920         $(FREXPL_LIBM).
44921
44922 2008-11-15  Bruno Haible  <bruno@clisp.org>
44923
44924         * lib/netdb.in.h: Activate the definitions also when the system's
44925         <netdb.h> has 'struct addrinfo'.
44926         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
44927         EAI_OVERFLOW or AI_NUMERICSERV.
44928         * doc/posix-headers/netdb.texi: Document the problem.
44929
44930 2008-11-15  Bruno Haible  <bruno@clisp.org>
44931
44932         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
44933
44934         Make the 'sched' module work on platforms where <sched.h> exists but
44935         is incomplete (such as Haiku).
44936         * lib/sched.in.h; Include the system's <sched.h> if it exists.
44937         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
44938         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
44939         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
44940         HAVE_STRUCT_SCHED_PARAM.
44941         * modules/sched (Depends-on): Add include_next.
44942         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
44943         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
44944         * doc/posix-headers/sched.texi: Document the issue.
44945
44946 2008-11-13  Jim Meyering  <meyering@redhat.com>
44947
44948         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
44949         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
44950         test would fail due to the difference in the Report bugs to ...
44951         line.  The expected address is empty, "<>", while the actual
44952         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
44953
44954 2008-11-12  Bruno Haible  <bruno@clisp.org>
44955
44956         lstat: don't compile lstat.c on systems lacking lstat
44957         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
44958         which don't have lstat; this is handled by lib/sys_stat.in.h already.
44959         Reported by Daniel P. Berrange via Jim Meyering.
44960
44961 2008-11-12  Jim Meyering  <meyering@redhat.com>
44962
44963         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
44964
44965 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44966
44967         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
44968         instead.
44969
44970 2008-11-12  Bruno Haible  <bruno@clisp.org>
44971
44972         * lib/unicodeio.c: Include unistr.h.
44973         (utf8_wctomb): Remove function.
44974         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
44975
44976 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44977
44978         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
44979         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
44980         <bruno@clisp.org>.
44981         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
44982
44983 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44984
44985         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
44986         * doc/gnulib.texi: Add section for warnings.
44987
44988 2008-11-11  Bruno Haible  <bruno@clisp.org>
44989
44990         * lib/sockets.h: Add a comment.
44991
44992 2008-11-11  Karl Berry  <karl@gnu.org>
44993
44994         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
44995
44996 2008-11-11  Eric Blake  <ebb9@byu.net>
44997
44998         fdl.texi: avoid git symlinks
44999         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
45000
45001 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45002
45003         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
45004
45005 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45006
45007         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
45008         (gl_WARN_ADD): Substitute $2 if literal.
45009
45010 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45011
45012         * m4/warning.m4: Remove.
45013
45014 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45015
45016         * m4/warnings.m4: Almost complete rewrite. :-)
45017
45018 2008-11-10  Simon Josefsson  <simon@josefsson.org>
45019
45020         * modules/warnings: New module.
45021         * m4/warnings.m4: New file.
45022         * MODULES.html.sh: Mention warnings module.
45023         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
45024         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45025
45026 2008-11-10  Eric Blake  <ebb9@byu.net>
45027
45028         fdl.texi: make a symlink to the latest version
45029         * doc/standards.texi: Revert today's earlier change.
45030         * doc/fdl-1.2.texi: Rename from old fdl.texi...
45031         * doc/fdl.texi: ...and replace this with a symlink to the newer
45032         fdl-1.3.texi.
45033
45034 2008-11-10  Bruno Haible  <bruno@clisp.org>
45035
45036         * tests/test-select-fd.c (main): Accept the result file name as fourth
45037         argument.
45038         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
45039         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
45040
45041 2008-11-10  Bruno Haible  <bruno@clisp.org>
45042
45043         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
45044         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
45045         as autoconf-substituted macros.
45046         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
45047         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
45048         gl_NETDB_H_DEFAULTS. Set these variables.
45049         * modules/netdb (Makefile.am): Substitute these variables.
45050
45051 2008-11-10  Eric Blake  <ebb9@byu.net>
45052
45053         standards.texi: include correct file for FDL 1.3
45054         * doc/standards.texi (GNU Free Documentation License): Change
45055         include file to pull in FDL 1.3, not 1.2.
45056
45057         fdl.texi: revert accidental change to license
45058         * doc/fdl.texi: This is FDL 1.2, not 1.3.
45059
45060 2008-11-10  Bruno Haible  <bruno@clisp.org>
45061
45062         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
45063         cross-compiling guesses also when the native compile gives no result.
45064
45065 2008-11-10  Bruno Haible  <bruno@clisp.org>
45066
45067         * lib/spawni.c (__spawni): Force variable into the stack.
45068
45069 2008-11-10  Bruno Haible  <bruno@clisp.org>
45070
45071         Add support for Haiku.
45072         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
45073         glibc and BeOS, but also on Haiku.
45074         * lib/fpurge.c (fpurge): Likewise.
45075         * lib/freadable.c (freadable): Likewise.
45076         * lib/freadahead.c (freadahead): Likewise.
45077         * lib/freading.c (freading): Likewise.
45078         * lib/freadptr.c (freadptr): Likewise.
45079         * lib/freadseek.c (freadptrinc): Likewise.
45080         * lib/fseeko.c (rpl_fseeko): Likewise.
45081         * lib/fseterr.c (fseterr): Likewise.
45082         * lib/fwritable.c (fwritable): Likewise.
45083         * lib/fwriting.c (fwriting): Likewise.
45084         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
45085
45086 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
45087
45088         * lib/config.charset: Treat Haiku like BeOS.
45089
45090 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
45091
45092         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
45093         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
45094
45095 2008-11-08  Bruno Haible  <bruno@clisp.org>
45096
45097         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
45098         AC_CACHE_CHECK.
45099
45100 2008-11-08  Bruno Haible  <bruno@clisp.org>
45101
45102         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
45103
45104 2008-11-08  Bruno Haible  <bruno@clisp.org>
45105
45106         * tests/test-select-fd.c: New file.
45107         * tests/test-select-in.sh: New file.
45108         * tests/test-select-out.sh: New file.
45109         * tests/test-select-stdin.c: New file.
45110         * modules/select-tests (Files): Add the new files.
45111         (Depends-on): Add gettimeofday.
45112         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
45113         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
45114         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
45115
45116 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
45117             Bruno Haible  <bruno@clisp.org>
45118
45119         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
45120
45121 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
45122
45123         * build-aux/pmccabe2html: Added support for C++ source files.
45124
45125 2008-11-05  Ben Pfaff  <blp@gnu.org>
45126
45127         Fix lib/close.c build on Windows.
45128         * modules/close (Files): Add lib/w32sock.h.
45129
45130 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
45131
45132         Accept Bison's NEWS format.
45133         * build-aux/announce-gen (print_news_deltas): Tweak
45134         $re_prefix.
45135
45136 2008-11-04  Bruno Haible  <bruno@clisp.org>
45137
45138         * modules/random_r (Maintainer): Add glibc.
45139
45140 2008-11-04  Simon Josefsson  <simon@josefsson.org>
45141
45142         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
45143         by karl@freefriends.org (Karl Berry).
45144         * doc/alloca.texi: Likewise.
45145         * doc/c-ctype.texi: Likewise.
45146         * doc/c-strcase.texi: Likewise.
45147         * doc/c-strcaseeq.texi: Likewise.
45148         * doc/c-strcasestr.texi: Likewise.
45149         * doc/c-strstr.texi: Likewise.
45150         * doc/c-strtod.texi: Likewise.
45151         * doc/c-strtold.texi: Likewise.
45152         * doc/ctime.texi: Likewise.
45153         * doc/error.texi: Likewise.
45154         * doc/fdl.texi: Likewise.
45155         * doc/gcd.texi: Likewise.
45156         * doc/getdate.texi: Likewise.
45157         * doc/gnulib-intro.texi: Likewise.
45158         * doc/gnulib-tool.texi: Likewise.
45159         * doc/gnulib.texi: Likewise.
45160         * doc/inet_ntoa.texi: Likewise.
45161         * doc/maintain.texi: Likewise.
45162         * doc/make-stds.texi: Likewise.
45163         * doc/quote.texi: Likewise.
45164         * doc/regexprops-generic.texi: Likewise.
45165         * doc/standards.texi: Likewise.
45166         * doc/verify.texi: Likewise.
45167         * doc/visibility.texi: Likewise.
45168         * doc/gnulib.texi (GNU Free Documentation License): Include
45169         fdl-1.3.texi instead of fdl.texi.
45170
45171 2008-11-04  Simon Josefsson  <simon@josefsson.org>
45172
45173         * doc/fdl-1.3.texi: New file, from
45174         <http://www.gnu.org/licenses/fdl-1.3.texi>.
45175         * modules/fdl-1.3: Add.
45176         * MODULES.html.sh: Add fdl-1.3.
45177
45178 2008-11-03  Bruno Haible  <bruno@clisp.org>
45179
45180         Make determination of absolute name of header file work with AIX xlc.
45181         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
45182         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
45183         preprocessing.
45184         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45185         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
45186
45187 2008-11-03  Simon Josefsson  <simon@josefsson.org>
45188
45189         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
45190         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
45191         <ludo@gnu.org>.
45192
45193 2008-11-02  Bruno Haible  <bruno@clisp.org>
45194
45195         Mark 'strpbrk' obsolete.
45196         * modules/strpbrk (Status, Notice): New sections.
45197         * modules/strtok_r (Depends-on): Add strpbrk.
45198
45199 2008-11-02  Bruno Haible  <bruno@clisp.org>
45200
45201         Mark 'strdup' obsolete.
45202         * modules/strdup (Status, Notice): New sections.
45203         * modules/findprog (Depends-on): Add strdup.
45204         * modules/getaddrinfo (Depends-on): Likewise.
45205         * modules/localename (Depends-on): Likewise.
45206         * modules/relocatable-lib (Depends-on): Likewise.
45207         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
45208         * modules/relocatable-prog (Depends-on): Likewise.
45209         * modules/trim (Depends-on): Likewise.
45210         * modules/unictype/gen-ctype (Depends-on): Likewise.
45211         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
45212
45213 2008-11-02  Bruno Haible  <bruno@clisp.org>
45214
45215         Mark 'strcspn' obsolete.
45216         * modules/strcspn (Status, Notice): New sections.
45217
45218 2008-11-02  Bruno Haible  <bruno@clisp.org>
45219
45220         Mark 'rmdir' obsolete.
45221         * modules/rmdir (Status, Notice): New sections.
45222         * modules/clean-temp (Depends-on): Add rmdir.
45223         * modules/openat (Depends-on): Likewise.
45224
45225 2008-11-02  Bruno Haible  <bruno@clisp.org>
45226
45227         Mark 'raise' obsolete.
45228         * modules/raise (Status, Notice): New sections.
45229         (Include): Specify <signal.h>.
45230         * modules/stdio (Depends-on): Add raise.
45231         * modules/write (Depends-on): Likewise.
45232
45233 2008-11-02  Bruno Haible  <bruno@clisp.org>
45234
45235         Mark 'memset' obsolete.
45236         * modules/memset (Status, Notice): New sections.
45237
45238 2008-11-02  Bruno Haible  <bruno@clisp.org>
45239
45240         Mark 'memmove' obsolete.
45241         * modules/memmove (Status, Notice): New sections.
45242         * modules/argp (Depends-on): Add memmove.
45243         * modules/argz (Depends-on): Likewise.
45244         * modules/canonicalize (Depends-on): Likewise.
45245         * modules/canonicalize-lgpl (Depends-on): Likewise.
45246         * modules/fts (Depends-on): Likewise.
45247         * modules/getcwd (Depends-on): Likewise.
45248         * modules/human (Depends-on): Likewise.
45249         * modules/regex (Depends-on): Likewise.
45250         * modules/striconveh (Depends-on): Likewise.
45251         * modules/trim (Depends-on): Likewise.
45252         * modules/unistr/u8-move (Depends-on): Likewise.
45253         * modules/unistr/u16-move (Depends-on): Likewise.
45254         * modules/unistr/u32-move (Depends-on): Likewise.
45255
45256 2008-11-02  Bruno Haible  <bruno@clisp.org>
45257
45258         Mark 'memcpy' obsolete.
45259         * modules/memcpy (Status, Notice): New sections.
45260
45261 2008-11-02  Bruno Haible  <bruno@clisp.org>
45262
45263         Mark 'memcmp' obsolete.
45264         * modules/memcmp (Status, Notice): New sections.
45265         * modules/argmatch (Depends-on): Add memchr.
45266         * modules/backupfile (Depends-on): Likewise.
45267         * modules/c-strcasestr (Depends-on): Likewise.
45268         * modules/crypto/des (Depends-on): Likewise.
45269         * modules/csharpcomp (Depends-on): Likewise.
45270         * modules/fnmatch (Depends-on): Likewise.
45271         * modules/git-merge-changelog (Depends-on): Likewise.
45272         * modules/isnand (Depends-on): Likewise.
45273         * modules/isnand-nolibm (Depends-on): Likewise.
45274         * modules/isnanf (Depends-on): Likewise.
45275         * modules/isnanf-nolibm (Depends-on): Likewise.
45276         * modules/isnanl (Depends-on): Likewise.
45277         * modules/isnanl-nolibm (Depends-on): Likewise.
45278         * modules/mbchar (Depends-on): Likewise.
45279         * modules/memcoll (Depends-on): Likewise.
45280         * modules/quotearg (Depends-on): Likewise.
45281         * modules/regex (Depends-on): Likewise.
45282         * modules/relocatable-prog (Depends-on): Likewise.
45283         * modules/same (Depends-on): Likewise.
45284         * modules/signbit (Depends-on): Likewise.
45285         * modules/strcasestr-simple (Depends-on): Likewise.
45286         * modules/unictype/gen-ctype (Depends-on): Likewise.
45287         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
45288         * modules/uniname/uniname (Depends-on): Likewise.
45289         * modules/unistr/u8-cmp (Depends-on): Likewise.
45290
45291 2008-11-02  Bruno Haible  <bruno@clisp.org>
45292
45293         Mark 'memchr' obsolete.
45294         * modules/memchr (Status, Notice): New sections.
45295         * modules/argp (Depends-on): Add memchr.
45296         * modules/base64 (Depends-on): Likewise.
45297         * modules/c-strcasestr (Depends-on): Likewise.
45298         * modules/chdir-long (Depends-on): Likewise.
45299         * modules/fnmatch (Depends-on): Likewise.
45300         * modules/getsubopt (Depends-on): Likewise.
45301         * modules/git-merge-changelog (Depends-on): Likewise.
45302         * modules/glob (Depends-on): Likewise.
45303         * modules/strcasestr-simple (Depends-on): Likewise.
45304         * modules/strnlen (Depends-on): Likewise.
45305
45306 2008-11-02  Bruno Haible  <bruno@clisp.org>
45307
45308         Mark 'atexit' obsolete.
45309         * modules/atexit (Status, Notice): New sections.
45310         * modules/chdir-long (Depends-on): Add atexit.
45311         * modules/wait-process (Depends-on): Likewise.
45312
45313 2008-11-02  Bruno Haible  <bruno@clisp.org>
45314
45315         * gnulib-tool: New option --with-obsolete.
45316         (func_usage): Document it.
45317         (func_modules_transitive_closure): Drop obsolete dependencies if
45318         incobsolete is not true.
45319         (func_import): Read and save the incobsolete variable to the cache.
45320
45321 2008-11-02  Bruno Haible  <bruno@clisp.org>
45322
45323         * modules/TEMPLATE-EXTENDED: New field 'Status'.
45324         * gnulib-tool: New option --extract-status.
45325         (func_usage): Document it.
45326         (sed_extract_prog): Recognize it.
45327         (func_get_status): New function.
45328
45329 2008-10-30  Simon Josefsson  <simon@josefsson.org>
45330
45331         * modules/sockets (License): Change from LGPL to LGPLv2+.
45332
45333 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45334
45335         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
45336
45337 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45338
45339         * MODULES.html.sh (Support for systems lacking POSIX:2001):
45340         Mention times and sys_times.
45341         * modules/sys_times, modules/sys_times-tests: New modules.
45342         * modules/times, modules/times-tests: Likewise
45343         * m4/sys_times_h.m4: New file.
45344         * lib/sys_times.in.h: Likewise
45345         * lib/times.c: Likewise.
45346         * tests/test-sys_times.c: Likewise.
45347         * tests/test-times.c: Likewise.
45348         * doc/posix-headers/sys_times.texi: Update.
45349         * doc/posix-functions/times.texi: Update.
45350
45351 2008-10-28  Jim Meyering  <meyering@redhat.com>
45352
45353         * modules/tempname (Depends-on): Add lstat.
45354
45355         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
45356
45357 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45358
45359         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
45360         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
45361         using idiom used elsewhere in gnulib.
45362
45363 2008-10-27  Jim Meyering  <meyering@redhat.com>
45364
45365         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
45366
45367 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45368
45369         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
45370         TESTS_ENVIRONMENT, for shell scripts that needs to call built
45371         programs.
45372         * tests/test-argp-2.sh: Use $EXEEXT when needed.
45373
45374 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45375
45376         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
45377
45378 2008-10-27  Bruno Haible  <bruno@clisp.org>
45379
45380         * tests/test-lstat.c: Include <stdio.h>.
45381
45382 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45383
45384         * modules/lstat-tests: New module.
45385         * tests/test-lstat.c: New file.
45386
45387 2008-10-26  Jim Meyering  <meyering@redhat.com>
45388
45389         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
45390
45391 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45392             Bruno Haible  <bruno@clisp.org>
45393
45394         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
45395         * modules/configmake (Include): Add a note that the include must come
45396         after all system headers.
45397         * lib/javaversion.c: Include configmake.h after all other includes.
45398
45399 2008-10-26  Bruno Haible  <bruno@clisp.org>
45400
45401         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
45402         HAVE_STRUCT_RANDOM_DATA to 1.
45403         (gl_STDLIB_H): Simplify.
45404
45405 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45406
45407         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
45408         substitute HAVE_STRUCT_RANDOM_DATA.
45409         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
45410         random_data.
45411         * modules/stdlib (Makefile.am): Substitute
45412         HAVE_STRUCT_RANDOM_DATA.
45413
45414 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45415
45416         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
45417         * doc/gnulib-intro.texi (Copyright): Likewise.
45418
45419 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45420
45421         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
45422         findings.
45423
45424 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
45425             Bruno Haible  <bruno@clisp.org>
45426
45427         * lib/unistd.in.h: Include <winsock2.h>.
45428         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
45429         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
45430         Provide dummy declarations.
45431         (gethostname): Override.
45432         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
45433         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
45434         gl_PREREQ_SYS_H_WINSOCK2.
45435         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
45436         * doc/posix-functions/gethostname.texi: More details.
45437
45438 2008-10-25  Bruno Haible  <bruno@clisp.org>
45439
45440         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
45441         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
45442         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
45443
45444         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
45445         here ...
45446         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
45447         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
45448         gl_UNISTD_H_DEFAULTS.
45449
45450 2008-10-25  Eric Blake  <ebb9@byu.net>
45451
45452         signbit: avoid spurious compiler failure
45453         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
45454         declarations inside function.
45455
45456 2008-10-24  Simon Josefsson  <simon@josefsson.org>
45457             Bruno Haible  <bruno@clisp.org>
45458
45459         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
45460         * modules/random_r (Depends-on): Add stdint.
45461
45462 2008-10-24  Bruno Haible  <bruno@clisp.org>
45463
45464         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
45465         Eggert.
45466         * modules/strerror (License): Likewise.
45467
45468 2008-10-24  Jim Meyering  <meyering@redhat.com>
45469
45470         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
45471         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
45472
45473 2008-10-24  Eric Blake  <ebb9@byu.net>
45474
45475         getgroups: fix compilation when getgroups is available
45476         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
45477         but with <config.h> override of getgroups disabled.
45478
45479 2008-10-24  Simon Josefsson  <simon@josefsson.org>
45480
45481         * doc/gnulib.texi (Header files): Add note about C++ problems.
45482         Explained by Bruno Haible <bruno@clisp.org>.
45483
45484 2008-10-23  Bruno Haible  <bruno@clisp.org>
45485
45486         Define a dummy SA_NODEFER macro on Interix.
45487         * lib/signal.in.h (SA_NODEFER): Define fallback.
45488         Reported by Aleksey Cheusov <cheusov@tut.by> via
45489         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
45490
45491 2008-10-23  Bruno Haible  <bruno@clisp.org>
45492
45493         * modules/freadahead (License): Change to LGPLv2+.
45494         Suggested by Simon Josefsson.
45495
45496 2008-10-23  Jim Meyering  <meyering@redhat.com>
45497
45498         random_r: new module
45499         * modules/random_r: New file.
45500         * m4/random_r.m4: New file.
45501         * lib/random_r.c: New file, from glibc.
45502         * modules/random_r-tests: New file.
45503         * tests/test-random_r.c: New file.
45504         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
45505          Declare.
45506         (RAND_MAX): Define.
45507         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
45508         * modules/stdlib: Substitute them, too.
45509         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
45510         * doc/glibc-functions/initstate_r.texi: Mention the new module.
45511         * doc/glibc-functions/random_r.texi: Likewise.
45512         * doc/glibc-functions/setstate_r.texi: Likewise.
45513         * doc/glibc-functions/srandom_r.texi: Likewise.
45514         * config/srclist.txt: Mention it.
45515
45516 2008-10-23  David Lutterkort  <lutter@redhat.com>
45517
45518         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
45519         link requirement
45520
45521 2008-10-23  Jim Meyering  <meyering@redhat.com>
45522
45523         selinux-h: mark parameters of stub functions as intentionally unused
45524         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
45525         * lib/se-context.in.h: Likewise.
45526
45527 2008-10-22  Simon Josefsson  <simon@josefsson.org>
45528
45529         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
45530
45531 2008-10-22  Simon Josefsson  <simon@josefsson.org>
45532
45533         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
45534
45535 2008-10-22  Eric Blake  <ebb9@byu.net>
45536
45537         glthread/thread: avoid compiler warning
45538         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
45539         Add unreachable abort to silence compiler.
45540
45541 2008-10-22  Eric Blake  <ebb9@byu.net>
45542
45543         netdb: also supply struct addrinfo for cygwin 1.5.x
45544         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
45545         older cygwin.
45546         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
45547         cygwin.
45548         * doc/posix-headers/netdb.texi (netdb.h): Document this.
45549
45550 2008-10-22  Bruno Haible  <bruno@clisp.org>
45551
45552         * users.txt: Update entry about pspp.
45553
45554 2008-10-21  Bruno Haible  <bruno@clisp.org>
45555
45556         Simplification.
45557         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
45558         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
45559
45560         Simplification.
45561         * lib/ioctl.c (ioctl): Don't undefine.
45562         * lib/socket.c (socket): Don't undefine.
45563
45564         Remove unused module indicator macros.
45565         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
45566         GNULIB_$1 as a C macro.
45567
45568         * doc/posix-functions/close.texi: Undo last change.
45569         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
45570         Windows platforms.
45571
45572 2008-10-21  Bruno Haible  <bruno@clisp.org>
45573
45574         Add gethostname() declaration to <unistd.h>.
45575         * lib/unistd.in.h (gethostname): New declaration.
45576         * lib/gethostname.c: Include <unistd.h>.
45577         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
45578         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
45579         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
45580         and HAVE_GETHOSTNAME.
45581         * modules/gethostname (Depends-on): Add unistd.
45582         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45583         (Include): Specify <unistd.h>.
45584         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
45585         HAVE_GETHOSTNAME.
45586         * tests/test-gethostname.c: Include <unistd.h> first.
45587
45588 2008-10-21  Bruno Haible  <bruno@clisp.org>
45589
45590         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
45591         * modules/select-tests (Depends-on): Likewise.
45592         Reported by Simon Josefsson.
45593
45594 2008-10-21  Simon Josefsson  <simon@josefsson.org>
45595
45596         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
45597         * lib/accept.c: New file, based on winsock.c.
45598         * lib/bind.c: New file, based on winsock.c.
45599         * lib/connect.c: New file, based on winsock.c.
45600         * lib/getpeername.c: New file, based on winsock.c.
45601         * lib/getsockname.c: New file, based on winsock.c.
45602         * lib/getsockopt.c: New file, based on winsock.c.
45603         * lib/ioctl.c: New file, based on winsock.c.
45604         * lib/listen.c: New file, based on winsock.c.
45605         * lib/recv.c: New file, based on winsock.c.
45606         * lib/recvfrom.c: New file, based on winsock.c.
45607         * lib/send.c: New file, based on winsock.c.
45608         * lib/sendto.c: New file, based on winsock.c.
45609         * lib/setsockopt.c: New file, based on winsock.c.
45610         * lib/shutdown.c: New file, based on winsock.c.
45611         * lib/socket.c: New file, based on winsock.c.
45612         * lib/w32sock.h: New file, based on winsock.c.
45613         * lib/winsock.c: Remove file.
45614         * modules/accept: Likewise.
45615         * modules/bind: Likewise.
45616         * modules/connect: Likewise.
45617         * modules/getpeername: Likewise.
45618         * modules/getsockname: Likewise.
45619         * modules/getsockopt: Likewise.
45620         * modules/ioctl: Likewise.
45621         * modules/listen: Likewise.
45622         * modules/recv: Likewise.
45623         * modules/recvfrom: Likewise.
45624         * modules/send: Likewise.
45625         * modules/sendto: Likewise.
45626         * modules/setsockopt: Likewise.
45627         * modules/shutdown: Likewise.
45628         * modules/socket: Use socket.c instead of winsock.c.
45629         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
45630         * doc/posix-functions/accept.texi: Doc fix.
45631         * doc/posix-functions/bind.texi: Doc fix.
45632         * doc/posix-functions/close.texi: Doc fix.
45633         * doc/posix-functions/connect.texi: Doc fix.
45634         * doc/posix-functions/getpeername.texi: Doc fix.
45635         * doc/posix-functions/getsockname.texi: Doc fix.
45636         * doc/posix-functions/getsockopt.texi: Doc fix.
45637         * doc/posix-functions/ioctl.texi: Doc fix.
45638         * doc/posix-functions/listen.texi: Doc fix.
45639         * doc/posix-functions/recv.texi: Doc fix.
45640         * doc/posix-functions/recvfrom.texi: Doc fix.
45641         * doc/posix-functions/send.texi: Doc fix.
45642         * doc/posix-functions/sendto.texi: Doc fix.
45643         * doc/posix-functions/setsockopt.texi: Doc fix.
45644         * doc/posix-functions/shutdown.texi: Doc fix.
45645         * doc/posix-functions/socket.texi: Doc fix.
45646
45647 2008-10-20  Bruno Haible  <bruno@clisp.org>
45648
45649         Take into account the role of SIGABRT_COMPAT on Windows 2008.
45650         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
45651         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
45652         as an alias for SIGABRT.
45653         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
45654         (sigaction): Map it to SIGABRT.
45655         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
45656
45657 2008-10-20  Bruno Haible  <bruno@clisp.org>
45658
45659         * lib/fts.c: Don't include lstat.h.
45660         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
45661
45662         Move the lstat() declaration to <sys/stat.h>.
45663         * lib/lstat.h: Remove file.
45664         * lib/sys_stat.in.h: Add special invocation convention.
45665         (lstat): New declaration.
45666         * lib/lstat.c (orig_lstat): New function.
45667         (rpl_lstat): Use orig_lstat instead of lstat.
45668         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
45669         AC_C_INLINE. Set REPLACE_LSTAT.
45670         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
45671         and REPLACE_LSTAT.
45672         * modules/lstat (Files): Remove lib/lstat.h.
45673         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45674         (Include): Specify <sys/stat.h> instead of lstat.h.
45675         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
45676         REPLACE_LSTAT.
45677         * NEWS: Mention the change.
45678
45679 2008-10-20  Bruno Haible  <bruno@clisp.org>
45680
45681         * modules/posix_spawn-tests: New file.
45682         * tests/test-posix_spawn3.c: New file.
45683
45684 2008-10-20  Bruno Haible  <bruno@clisp.org>
45685
45686         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
45687         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
45688         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
45689         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
45690         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
45691
45692 2008-10-20  Bruno Haible  <bruno@clisp.org>
45693
45694         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
45695         of posix_spawn on AIX 5.3.
45696
45697 2008-10-20  Bruno Haible  <bruno@clisp.org>
45698
45699         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
45700
45701 2008-10-20  Bruno Haible  <bruno@clisp.org>
45702
45703         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
45704         of AC_LANG_PROGRAM.
45705
45706 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45707
45708         * lib/netdb.in.h: Don't define GNU specific constants until they
45709         are supported or needed.  Reported by Bruno Haible
45710         <bruno@clisp.org>.
45711
45712 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45713
45714         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
45715
45716 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45717
45718         * lib/getaddrinfo.h: Remove file.
45719         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
45720         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
45721         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
45722         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
45723         * modules/netdb: Substitute GNULIB_GETADDRINFO.
45724         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
45725         * tests/test-getaddrinfo.c: Likewise.
45726         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
45727         * NEWS: Mention change.
45728
45729 2008-10-19  Bruno Haible  <bruno@clisp.org>
45730
45731         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
45732
45733 2008-10-19  Bruno Haible  <bruno@clisp.org>
45734
45735         * lib/wait-process.c: Include simply <sys/wait.h>.
45736         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
45737         WIFSTOPPED): Remove fallback definitions.
45738         * modules/wait-process (Depends-on): Add sys_wait.
45739
45740         New module 'sys_wait'.
45741         * modules/sys_wait: New file.
45742         * lib/sys_wait.in.h: New file, partially copied from
45743         lib/wait-process.c.
45744         * m4/sys_wait_h.m4: New file.
45745         * doc/posix-headers/sys_wait.texi: Mention the new module.
45746
45747 2008-10-19  Bruno Haible  <bruno@clisp.org>
45748
45749         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
45750
45751 2008-10-19  Bruno Haible  <bruno@clisp.org>
45752
45753         Assume that waitpid() fills an 'int' status, not a 'union wait'.
45754         * lib/wait-process.c (WAIT_T): Remove type.
45755         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
45756         (wait_subprocess): Update.
45757
45758 2008-10-19  Bruno Haible  <bruno@clisp.org>
45759
45760         New module 'atoll'.
45761         * modules/atoll: New file.
45762         * lib/stdlib.in.h (atoll): New declaration.
45763         * lib/atoll.c: New file, from glibc with modifications.
45764         * m4/atoll.m4: New file.
45765         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
45766         HAVE_ATOLL.
45767         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
45768         * doc/posix-functions/atoll.texi: Mention the new module.
45769
45770 2008-10-19  Bruno Haible  <bruno@clisp.org>
45771
45772         Add strtoull() declaration to <stdlib.h>.
45773         * lib/stdlib.in.h (strtoull): New declaration.
45774         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45775         Set HAVE_STRTOULL.
45776         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
45777         HAVE_STRTOULL.
45778         * modules/strtoull (Depends-on): Add stdlib.
45779         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45780         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
45781         HAVE_STRTOULL.
45782
45783 2008-10-19  Bruno Haible  <bruno@clisp.org>
45784
45785         Add strtoll() declaration to <stdlib.h>.
45786         * lib/stdlib.in.h (strtoll): New declaration.
45787         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45788         Set HAVE_STRTOLL.
45789         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
45790         HAVE_STRTOLL.
45791         * modules/strtoll (Depends-on): Add stdlib.
45792         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45793         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
45794
45795 2008-10-19  Bruno Haible  <bruno@clisp.org>
45796
45797         * modules/bcopy (Depends-on): Add strings.
45798         (Include): Specify <strings.h>.
45799
45800 2008-10-19  Bruno Haible  <bruno@clisp.org>
45801
45802         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
45803
45804 2008-10-19  Bruno Haible  <bruno@clisp.org>
45805
45806         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
45807         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
45808         mingw.
45809
45810 2008-10-19  Bruno Haible  <bruno@clisp.org>
45811
45812         * lib/atanl.c: Don't include isnanl.h.
45813         * lib/cosl.c: Likewise.
45814         * lib/ldexpl.c: Likewise.
45815         * lib/logl.c: Likewise.
45816         * lib/sinl.c: Likewise.
45817         * lib/sqrtl.c: Likewise.
45818         * lib/tanl.c: Likewise.
45819
45820         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
45821         * lib/isnanf.h: Remove file.
45822         * lib/isnand.h: Remove file.
45823         * lib/isnanl.h: Remove file.
45824         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
45825         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
45826         macros.
45827         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
45828         HAVE_ISNANF, don't define it as a C macro.
45829         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
45830         HAVE_ISNAND, don't define it as a C macro.
45831         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
45832         HAVE_ISNANL, don't define it as a C macro.
45833         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
45834         HAVE_ISNAN[FDL].
45835         * modules/isnanf (Files): Remove lib/isnanf.h.
45836         (Depends-on): Add math.
45837         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45838         (Include): Specify <math.h> instead of isnanf.h.
45839         * modules/isnand (Files): Remove lib/isnand.h.
45840         (Depends-on): Add math.
45841         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45842         (Include): Specify <math.h> instead of isnand.h.
45843         * modules/isnanl (Files): Remove lib/isnanl.h.
45844         (Depends-on): Add math.
45845         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45846         (Include): Specify <math.h> instead of isnanl.h.
45847         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
45848         HAVE_ISNAN[FDL].
45849         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
45850         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
45851         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
45852         * NEWS: Mention the change.
45853
45854 2008-10-18  Bruno Haible  <bruno@clisp.org>
45855
45856         Add getusershell(), setusershell(), endusershell() declarations to
45857         <unistd.h>.
45858         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
45859         declarations.
45860         * lib/getusershell.c: Include unistd.h.
45861         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
45862         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45863         HAVE_GETUSERSHELL.
45864         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
45865         and HAVE_GETUSERSHELL.
45866         * modules/getusershell (Depends-on): Add unistd, extensions.
45867         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45868         (Include): Specify <unistd.h>.
45869         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
45870         HAVE_GETUSERSHELL.
45871
45872 2008-10-18  Bruno Haible  <bruno@clisp.org>
45873
45874         Add a getloadavg() declaration to <stdlib.h>.
45875         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
45876         getloadavg declaration.
45877         (getloadavg): New declaration.
45878         * lib/getloadavg.c: Include <stdlib.h> first.
45879         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
45880         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
45881         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
45882         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
45883         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45884         * modules/getloadavg (Depends-on): Add stdlib, extensions.
45885         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45886         (Include): Specify <stdlib.h>.
45887         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
45888         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45889
45890 2008-10-18  Bruno Haible  <bruno@clisp.org>
45891
45892         * lib/dirchownmod.c: Don't include lchmod.h.
45893
45894         Move the lchmod() declaration to <sys/stat.h>.
45895         * lib/lchmod.h: Remove file.
45896         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
45897         (lchmod): New declaration, moved here from lib/lchown.h.
45898         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
45899         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
45900         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
45901         and HAVE_LCHMOD.
45902         * modules/lchmod (Files): Remove lib/lchmod.h.
45903         (Depends-on): Add sys_stat, extensions.
45904         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45905         (Include): Specify <sys/stat.h> instead of lchmod.h.
45906         * modules/sys_stat (Depends-on): Add link-warning.
45907         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
45908         definition of GL_LINK_WARNING.
45909         * NEWS: Mention the change.
45910
45911 2008-10-18  Bruno Haible  <bruno@clisp.org>
45912
45913         * lib/fchdir.c: Don't include dirfd.h.
45914         * lib/fts.c: Likewise.
45915         * lib/getcwd.c: Likewise.
45916         * lib/glob.c: Likewise.
45917
45918         Move the dirfd() declaration to <dirent.h>.
45919         * lib/dirfd.h: Remove file.
45920         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
45921         (dirfd): New declaration.
45922         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
45923         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
45924         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
45925         HAVE_DECL_DIRFD.
45926         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
45927         HAVE_DECL_DIRFD.
45928         * modules/dirfd (Files): Remove lib/dirfd.h.
45929         (Depends-on): Add dirent, extensions.
45930         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
45931         (Include): Specify <dirent.h> instead of dirfd.h.
45932         * modules/dirent (Depends-on): Add link-warning.
45933         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
45934         definition of GL_LINK_WARNING.
45935         * NEWS: Mention the change.
45936
45937 2008-10-18  Bruno Haible  <bruno@clisp.org>
45938
45939         Move the euidaccess() declaration to <unistd.h>.
45940         * lib/euidaccess.h: Remove file.
45941         * lib/unistd.in.h (euidaccess): New declaration.
45942         * lib/euidaccess.c: Don't include euidaccess.h.
45943         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
45944         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
45945         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
45946         and HAVE_EUIDACCESS.
45947         * modules/euidaccess (Files): Remove lib/euidaccess.h.
45948         (Depends-on): Add unistd.
45949         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45950         (Include): Specify <unistd.h> instead of euidaccess.h.
45951         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
45952         HAVE_EUIDACCESS.
45953         * NEWS: Mention the change.
45954
45955 2008-10-18  Bruno Haible  <bruno@clisp.org>
45956
45957         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
45958
45959         Move the getdomainname() declaration to <unistd.h>.
45960         * lib/getdomainname.h: Remove file.
45961         * lib/unistd.in.h (getdomainname): New declaration.
45962         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
45963         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
45964         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45965         HAVE_GETDOMAINNAME.
45966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45967         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
45968         * modules/getdomainname (Files): Remove lib/getdomainname.h.
45969         (Depends-on): Add unistd, extensions.
45970         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45971         (Includes): Specify <unistd.h> instead of getdomainname.h.
45972         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
45973         HAVE_GETDOMAINNAME.
45974         * NEWS: Mention the change.
45975
45976 2008-10-18  Bruno Haible  <bruno@clisp.org>
45977
45978         * modules/dirent: New file.
45979         * m4/dirent_h.m4: New file.
45980         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
45981         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
45982         * modules/fchdir (Files): Remove lib/dirent.in.h.
45983         (Depends-on): Add dirent.
45984         (Makefile.am): Move rules to modules/dirent.
45985         * doc/posix-headers/dirent.texi: Mention the new module.
45986
45987 2008-10-18  Bruno Haible  <bruno@clisp.org>
45988
45989         Avoid -Wunused-parameter warnings in public gnulib header files.
45990         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
45991         macro.
45992         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
45993
45994 2008-10-18  Bruno Haible  <bruno@clisp.org>
45995
45996         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
45997         * doc/glibc-functions/error.texi: Mention the module 'error'.
45998         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
45999         * doc/glibc-functions/getdomainname.texi: Mention the module
46000         'getdomainname'.
46001         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
46002         * doc/glibc-functions/getpagesize.texi: Mention the module
46003         'getpagesize'.
46004         * doc/glibc-functions/getusershell.texi: Mention the module
46005         'getusershell'.
46006         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
46007         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
46008         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
46009         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
46010         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
46011         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
46012         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
46013         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
46014         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
46015         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
46016         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
46017         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
46018         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
46019         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
46020
46021 2008-10-17  Bruno Haible  <bruno@clisp.org>
46022
46023         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
46024         HP-UX and IRIX, use -0.0L.
46025         * tests/test-ceill.c (minus_zero): Likewise.
46026         * tests/test-floorl.c (minus_zero): Likewise.
46027         * tests/test-frexpl.c (minus_zero): Likewise.
46028         * tests/test-isnan.c (minus_zerol): Likewise.
46029         * tests/test-isnanl.h (minus_zero): Likewise.
46030         * tests/test-ldexpl.c (minus_zero): Likewise.
46031         * tests/test-roundl.c (minus_zero): Likewise.
46032         * tests/test-signbit.c (minus_zerol): Likewise.
46033         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
46034         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
46035         * tests/test-truncl.c (minus_zero): Likewise.
46036         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
46037         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
46038         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
46039         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
46040
46041 2008-10-17  Bruno Haible  <bruno@clisp.org>
46042
46043         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
46044         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
46045         that it gets activated only for gcc >= 3.0.
46046         * lib/dirent.in.h: Likewise.
46047         * lib/errno.in.h: Likewise.
46048         * lib/fcntl.in.h: Likewise.
46049         * lib/float.in.h: Likewise.
46050         * lib/iconv.in.h: Likewise.
46051         * lib/inttypes.in.h: Likewise.
46052         * lib/locale.in.h: Likewise.
46053         * lib/math.in.h: Likewise.
46054         * lib/netdb.in.h: Likewise.
46055         * lib/netinet_in.in.h: Likewise.
46056         * lib/search.in.h: Likewise.
46057         * lib/signal.in.h: Likewise.
46058         * lib/spawn.in.h: Likewise.
46059         * lib/stdarg.in.h: Likewise.
46060         * lib/stdint.in.h: Likewise.
46061         * lib/stdio.in.h: Likewise.
46062         * lib/stdlib.in.h: Likewise.
46063         * lib/string.in.h: Likewise.
46064         * lib/strings.in.h: Likewise.
46065         * lib/sys_file.in.h: Likewise.
46066         * lib/sys_ioctl.in.h: Likewise.
46067         * lib/sys_select.in.h: Likewise.
46068         * lib/sys_socket.in.h: Likewise.
46069         * lib/sys_stat.in.h: Likewise.
46070         * lib/sys_time.in.h: Likewise.
46071         * lib/sysexits.in.h: Likewise.
46072         * lib/time.in.h: Likewise.
46073         * lib/unistd.in.h: Likewise.
46074         * lib/wchar.in.h: Likewise.
46075         * lib/wctype.in.h: Likewise.
46076         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46077
46078 2008-10-17  Jim Meyering  <meyering@redhat.com>
46079
46080         ignore-value: don't depend on inline module
46081         * modules/ignore-value (Depends-on): Remove 'inline'.
46082         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
46083         Suggestion from Bruno Haible.
46084
46085 2008-10-17  Bruno Haible  <bruno@clisp.org>
46086
46087         New implementation of condition variables for Win32.
46088         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
46089         (gl_linked_waitqueue_t): New type.
46090         (gl_cond_t): Use it.
46091         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
46092         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
46093         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
46094         (glthread_cond_init_func, glthread_cond_wait_func,
46095         glthread_cond_timedwait_func, glthread_cond_signal_func,
46096         glthread_cond_broadcast_func, glthread_cond_destroy_func):
46097         Reimplemented on the basis of gl_linked_waitqueue_t.
46098         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
46099         gl_waitqueue_t.
46100         (gl_rwlock_t): Update.
46101         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
46102
46103 2008-10-17  Simon Josefsson  <simon@josefsson.org>
46104
46105         * modules/recvfrom (Depends-on): Add dependency on getpeername.
46106         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46107
46108 2008-10-17  Jim Meyering  <meyering@redhat.com>
46109
46110         ignore-value: new module
46111         * modules/ignore-value: New file.
46112         * lib/ignore-value.h: New file.
46113         * MODULES.html.sh (Compiler warning management): New section,
46114         just for this module.  More to come.
46115
46116 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46117
46118         open-safer.c: avoid 'signed and unsigned in conditional...' warning
46119         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
46120         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
46121
46122 2008-10-16  Jim Meyering  <meyering@redhat.com>
46123
46124         openat-die.c: avoid 'no previous prototype' warning
46125         * lib/openat-die.c: Include "openat.h".
46126         Reported by Reuben Thomas <rrt@sc3d.org>.
46127
46128 2008-10-16  Simon Josefsson  <simon@josefsson.org>
46129
46130         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
46131         * lib/netdb.in.h: Fix typo.
46132         Reported by Bruno Haible  <bruno@clisp.org>
46133
46134         * lib/netdb.in.h: Include sys/socket.h for platforms without
46135         netdb.h, to get structures like hostent on MinGW.
46136         * modules/netdb (Depends-on): Add sys_socket.
46137
46138 2008-10-15  Simon Josefsson  <simon@josefsson.org>
46139
46140         * modules/netdb, modules/netdb-tests: New file.
46141         * m4/netdb_h.m4: New file.
46142         * lib/netdb.in.h: Add, currently just an empty file pending
46143         definitions.
46144         * tests/test-netdb.c: New file.
46145         * doc/posix-headers/netdb.texi: Mention that we replace it if
46146         needed.
46147         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46148         netdb.
46149
46150 2008-10-15  Simon Josefsson  <simon@josefsson.org>
46151
46152         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
46153         with code.
46154
46155 2008-10-13  Bruno Haible  <bruno@clisp.org>
46156
46157         * lib/glthread/cond.c (glthread_cond_wait_func,
46158         glthread_cond_timedwait_func): Add a comment.
46159
46160 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
46161
46162         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
46163         * tests/test-select.c: Likewise,
46164
46165 2008-10-13  Bruno Haible  <bruno@clisp.org>
46166
46167         * lib/glthread/cond.c (glthread_cond_wait_func,
46168         glthread_cond_timedwait_func): Fix variable name.
46169         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46170
46171 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
46172
46173         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
46174         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
46175         struct sockaddr.sa_len.
46176         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
46177
46178 2008-10-13  Simon Josefsson  <simon@josefsson.org>
46179
46180         * build-aux/pmccabe2html: Add css and css_url parameters.
46181
46182 2008-10-12  Bruno Haible  <bruno@clisp.org>
46183
46184         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
46185         calling aclx_get.
46186         Reported by Rainer Tammer <tammer@tammer.net>.
46187
46188 2008-10-12  Bruno Haible  <bruno@clisp.org>
46189
46190         Use msvcrt aware primitives for creation/termination of Win32 threads.
46191         * lib/glthread/thread.c: Include <process.h>.
46192         (glthread_create_func): Use _beginthreadex instead of CreateThread.
46193         (wrapper_func): Update signature.
46194         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
46195
46196 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
46197             Bruno Haible  <bruno@clisp.org>
46198
46199         Provide a Win32 implementation of the 'cond' module.
46200         * lib/glthread/cond.h [USE_WIN32]: New implementation.
46201         * lib/glthread/cond.c (glthread_cond_init_func,
46202         glthread_cond_wait_func, glthread_cond_timedwait_func,
46203         glthread_cond_signal_func, glthread_cond_broadcast_func,
46204         glthread_cond_destroy_func) [USE_WIN32]: New functions.
46205         * modules/cond (Dependencies): Add gettimeofday.
46206
46207 2008-10-11  Bruno Haible  <bruno@clisp.org>
46208
46209         Make sleep work on older versions of mingw.
46210         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
46211         only whether it exists.
46212         * doc/posix-functions/sleep.texi: Mention the problem with older
46213         versions of mingw.
46214
46215 2008-10-11  Bruno Haible  <bruno@clisp.org>
46216
46217         New module 'shutdown'.
46218         * modules/shutdown: New file.
46219         * lib/sys_socket.in.h (shutdown): New declaration.
46220         * lib/winsock.c (shutdown): New function.
46221         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
46222         GNULIB_SHUTDOWN.
46223         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
46224         * doc/posix-functions/shutdown.texi: Document the new module.
46225
46226 2008-10-11  Jim Meyering  <meyering@redhat.com>
46227
46228         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
46229
46230 2008-10-11  Bruno Haible  <bruno@clisp.org>
46231
46232         New module 'fclose'.
46233         * modules/fclose: New file.
46234         * lib/stdio.in.h (fclose): New declaration.
46235         * lib/fclose.c: New file.
46236         * m4/fclose.m4: New file.
46237         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
46238         REPLACE_FCLOSE.
46239         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
46240         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
46241         REPLACE_FCLOSE.
46242         * modules/close (Depends-on): fclose.
46243         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
46244
46245 2008-10-11  Bruno Haible  <bruno@clisp.org>
46246
46247         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
46248         set errno and don't call _close.
46249
46250 2008-10-10  Bruno Haible  <bruno@clisp.org>
46251
46252         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
46253         ACL, not afterwards. Fixes test failure on Cygwin.
46254
46255 2008-10-09  Ben Pfaff  <blp@gnu.org>
46256
46257         * build-aux/announce-gen: Fix gnulib version related part of usage
46258         message.  Die with a useful error message if no tarballs are
46259         found.
46260
46261 2008-10-10  Jim Meyering  <meyering@redhat.com>
46262
46263         bootstrap: use git's --depth=N option only if it's supported
46264         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
46265         recognize the --depth option.  Reported by Pádraig Brady.
46266
46267 2008-10-09  Bruno Haible  <bruno@clisp.org>
46268
46269         New module 'ioctl'.
46270         * modules/ioctl: New file.
46271         * lib/sys_socket.in.h (ioctl): Remove declaration.
46272         * lib/winsock.c: Include <sys/ioctl.h>.
46273         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
46274         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
46275         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
46276         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
46277         * doc/posix-functions/ioctl.texi: Mention the new module.
46278
46279 2008-10-09  Bruno Haible  <bruno@clisp.org>
46280
46281         New module 'sys_ioctl'.
46282         * lib/sys_ioctl.in.h: New file.
46283         * m4/sys_ioctl_h.m4: New file.
46284         * modules/sys_ioctl: New file.
46285         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
46286
46287 2008-10-09  Bruno Haible  <bruno@clisp.org>
46288
46289         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
46290         * lib/winsock.c: Include <stdarg.h>.
46291         (rpl_ioctl): Change to second argument 'int' and then varargs.
46292
46293 2008-10-09  Bruno Haible  <bruno@clisp.org>
46294
46295         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
46296         when the sys_socket module is present and the system has <winsock2.h>.
46297
46298 2008-10-09  Bruno Haible  <bruno@clisp.org>
46299
46300         * doc/posix-functions/close.texi: Mention module 'close' instead of
46301         module 'sys_socket'.
46302
46303 2008-10-09  Bruno Haible  <bruno@clisp.org>
46304
46305         * doc/glibc-headers/sys_ioctl.texi: New file.
46306         * doc/gnulib.texi: Include it.
46307
46308 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46309             Bruno Haible  <bruno@clisp.org>
46310
46311         Combine the two replacements of 'close'.
46312         * lib/sys_socket.in.h (close): Define to a reminder to include
46313         <unistd.h>.
46314         (_gl_close_fd_maybe_socket): New declaration.
46315         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
46316         * lib/winsock.c (close): Remove undefinition.
46317         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
46318         needed for the gnulib module 'close'.
46319         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
46320         define to an error symbol or to a warning, if suitable.
46321         * lib/close.c: Include <sys/socket.h>.
46322         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
46323         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
46324         UNISTD_H_HAVE_WINSOCK2_H.
46325         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
46326         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46327         UNISTD_H_HAVE_WINSOCK2_H.
46328         * modules/sys_socket (Files): Add m4/unistd_h.m4.
46329         (configure.ac): Set a module indicator.
46330         (Makefile.am): Substitute GNULIB_CLOSE.
46331         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
46332         * modules/poll-tests (Depends-on): Add close.
46333         * modules/select-tests (Depends-on): Likewise.
46334
46335 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46336             Bruno Haible  <bruno@clisp.org>
46337
46338         New module 'close'.
46339         * modules/close: New file.
46340         * lib/unistd.in.h (close): Move declaration out of the
46341         FCHDIR_REPLACEMENT scope.
46342         (_gl_unregister_fd): New declaration.
46343         * lib/close.c: New file.
46344         * lib/fchdir.c (rpl_close): Remove function.
46345         * m4/close.m4: New file.
46346         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
46347         close.
46348         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
46349         REPLACE_CLOSE.
46350         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
46351         REPLACE_CLOSE.
46352         * modules/fchdir (Depends-on): Add close.
46353
46354 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46355             Bruno Haible  <bruno@clisp.org>
46356
46357         * lib/fcntl.in.h (open): Simplify conditionals.
46358         (_gl_register_fd): New declaration.
46359         * lib/fchdir.c (rpl_open): Remove function.
46360         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
46361         also.
46362         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
46363         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
46364         open.
46365
46366 2008-10-09  Jim Meyering  <meyering@redhat.com>
46367
46368         GNUmakefile: use the more name-space-friendly "_version"
46369         * top/GNUmakefile (_dummy): Update.
46370         (_version): Rename from "version".
46371
46372 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46373             Bruno Haible  <bruno@clisp.org>
46374
46375         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
46376         rpl_close.
46377         (_gl_register_fd): New function, extracted from rpl_open.
46378         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
46379         (rpl_open, rpl_opendir): Use _gl_register_fd.
46380
46381 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46382
46383         Fix organization of 'open' replacement.
46384         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
46385         (gl_FUNC_OPEN): Use it.
46386         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
46387
46388 2008-10-08  Bruno Haible  <bruno@clisp.org>
46389
46390         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
46391
46392 2008-10-08  Simon Josefsson  <simon@josefsson.org>
46393
46394         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
46395         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
46396         listen).
46397
46398 2008-10-08  Eric Blake  <ebb9@byu.net>
46399
46400         GNUmakefile: add 'make version' target
46401         * top/GNUmakefile (_curr-ver): Split version update rules...
46402         (version): ...into a target.
46403
46404 2008-10-07  Bruno Haible  <bruno@clisp.org>
46405
46406         Use a more portable replacement expression for -0.0L.
46407         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
46408         instead of -0.0L. Fix m4 quotation.
46409
46410         * tests/test-signbit.c: Include <float.h>.
46411         (minus_zero): New variable.
46412         (test_signbitl): Use minus_zero instead of -zero.
46413         * modules/signbit-tests (Depends-on): Add float.
46414
46415         * tests/test-ceill.c: Include <float.h>.
46416         (zero): Remove variable.
46417         (minus_zero): New variable.
46418         (main): Use minus_zero instead of -zero.
46419         * modules/ceill-tests (Depends-on): Add float.
46420
46421         * tests/test-floorl.c: Include <float.h>.
46422         (zero): Remove variable.
46423         (minus_zero): New variable.
46424         (main): Use minus_zero instead of -zero.
46425         * modules/floorl-tests (Depends-on): Add float.
46426
46427         * tests/test-roundl.c: Include <float.h>.
46428         (zero): Remove variable.
46429         (minus_zero): New variable.
46430         (main): Use minus_zero instead of -zero.
46431         * modules/roundl-tests (Depends-on): Add float.
46432
46433         * tests/test-truncl.c: Include <float.h>.
46434         (zero): Remove variable.
46435         (minus_zero): New variable.
46436         (main): Use minus_zero instead of -zero.
46437         * modules/truncl-tests (Depends-on): Add float.
46438
46439         * tests/test-frexpl.c (zero): Remove variable.
46440         (minus_zero): New variable.
46441         (main): Use minus_zero instead of -zero.
46442         * modules/frexpl-tests (Depends-on): Add float.
46443
46444         * tests/test-isnan.c (zerol): Remove variable.
46445         (minus_zerol): New variable.
46446         (test_long_double): Use minus_zerol instead of -zerol.
46447         * modules/isnan-tests (Depends-on): Add float.
46448
46449         * tests/test-isnanl.h (zero): Remove variable.
46450         (minus_zero): New variable.
46451         (main): Use minus_zero instead of -zero.
46452         * modules/isnanl-nolibm-tests (Depends-on): Add float.
46453         * modules/isnanl-tests (Depends-on): Add float.
46454
46455         * tests/test-ldexpl.c (zero): Remove variable.
46456         (minus_zero): New variable.
46457         (main): Use minus_zero instead of -zero.
46458         * modules/ldexpl-tests (Depends-on): Add float.
46459
46460         * tests/test-snprintf-posix.h (zerol): Remove variable.
46461         (minus_zerol): New variable.
46462         (test_function): Use minus_zerol instead of -zerol.
46463         * modules/snprintf-posix-tests (Depends-on): Add float.
46464         * modules/vsnprintf-posix-tests (Depends-on): Add float.
46465
46466         * tests/test-sprintf-posix.h (zerol): Remove variable.
46467         (minus_zerol): New variable.
46468         (test_function): Use minus_zerol instead of -zerol.
46469         * modules/sprintf-posix-tests (Depends-on): Add float.
46470         * modules/vsprintf-posix-tests (Depends-on): Add float.
46471
46472         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
46473         (minus_zerol): New variable.
46474         (test_function): Use minus_zerol instead of -zerol.
46475         * modules/vasnprintf-posix-tests (Depends-on): Add float.
46476
46477         * tests/test-vasprintf-posix.c (zerol): Remove variable.
46478         (minus_zerol): New variable.
46479         (test_function): Use minus_zerol instead of -zerol.
46480         * modules/vasprintf-posix-tests (Depends-on): Add float.
46481
46482 2008-10-07  Simon Josefsson  <simon@josefsson.org>
46483
46484         * MODULES.html.sh (Support for building documentation): Mention
46485         pmccabe2html.  Sort entries.
46486
46487         Add pmccabe2html module, from gnupdf.
46488         * build-aux/pmccabe.css: New file.
46489         * build-aux/pmccabe2html: New file.
46490         * m4/pmccabe2html.m4: New file.
46491         * modules/pmccabe2html: New file.
46492
46493 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
46494
46495         flock: new module
46496         * MODULES.html.sh: Add to list of modules.
46497         * lib/flock.c: flock implementation for Windows and Unix systems
46498         which have fcntl.
46499         * doc/glibc-functions/flock.texi: Update documentation.
46500         * lib/sys_file.in.h: <sys/file.h> header file.
46501         * m4/flock.m4: M4 macros.
46502         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
46503         * modules/flock: flock module.
46504         * modules/flock-tests: flock tests module.
46505         * modules/sys_file: sys/file.h module.
46506         * tests/test-flock.c: test suite for flock.
46507
46508 2008-10-06  Jim Meyering  <meyering@redhat.com>
46509
46510         bootstrap: check for LT_INIT more portably still ;-)
46511         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
46512         Spotted by Bruno Haible.
46513
46514 2008-10-06  Eric Blake  <ebb9@byu.net>
46515
46516         test-signbit: avoid tripping Irix cc bug on -0.0L
46517         * tests/test-signbit.c (minus_zerol): Delete, and replace with
46518         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
46519         entire testsuite consistent and avoids an Irix 6.2 bug.
46520
46521 2008-10-05  Bruno Haible  <bruno@clisp.org>
46522             Jim Meyering  <jim@meyering.net>
46523
46524         Add an option for ignoring EPIPE during close_stdout.
46525         * lib/closeout.h: Include <stdbool.h>.
46526         (close_stdout_set_ignore_EPIPE): New declaration.
46527         * lib/closeout.c: Include <stdbool.h>.
46528         (ignore_EPIPE): New variable.
46529         (close_stdout_set_ignore_EPIPE): New function.
46530         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
46531         * lib/close-stream.c (close_stream): Mention the possible EPIPE
46532         failure.
46533         * modules/closeout (Depends-on): Add stdbool.
46534
46535 2008-10-05  Bruno Haible  <bruno@clisp.org>
46536
46537         * modules/accept: New file.
46538         * modules/bind: New file.
46539         * modules/connect: New file.
46540         * modules/getpeername: New file.
46541         * modules/getsockname: New file.
46542         * modules/getsockopt: New file.
46543         * modules/listen: New file.
46544         * modules/recv: New file.
46545         * modules/recvfrom: New file.
46546         * modules/send: New file.
46547         * modules/sendto: New file.
46548         * modules/setsockopt: New file.
46549         * modules/socket: New file.
46550         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
46551         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
46552         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
46553         the particular module is requested. Add a link warning when the
46554         particular module is not requested.
46555         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
46556         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
46557         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
46558         the particular module is requested.
46559         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
46560         gl_SYS_SOCKET_H_DEFAULTS): New macros.
46561         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
46562         * modules/sys_socket (Depends-on): Add link-warning.
46563         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
46564         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
46565         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
46566         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
46567         GL_LINK_WARNING.
46568         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
46569         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
46570         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
46571         * doc/posix-functions/getpeername.texi: Mention the new module
46572         'getpeername'.
46573         * doc/posix-functions/getsockname.texi: Mention the new module
46574         'getsockname'.
46575         * doc/posix-functions/getsockopt.texi: Mention the new module
46576         'getsockopt'.
46577         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
46578         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
46579         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
46580         * doc/posix-functions/send.texi: Mention the new module 'send'.
46581         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
46582         * doc/posix-functions/setsockopt.texi: Mention the new module
46583         'setsockopt'.
46584         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
46585         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
46586         listen, connect, accept.
46587         * modules/select-tests (Depends-on): Likewise.
46588
46589 2008-10-05  Bruno Haible  <bruno@clisp.org>
46590
46591         * lib/winsock.c (strerror): Remove unused #undef.
46592         (rpl_close): Remove unused local variable.
46593
46594         * modules/sys_socket (Depends-on); Add errno.
46595
46596 2008-10-05  Bruno Haible  <bruno@clisp.org>
46597
46598         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
46599         (select): Add a link warning when the 'select' module is not used.
46600         * modules/sys_select (Depends-on): Add link-warning.
46601         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
46602         Suggested by Paolo Bonzini.
46603
46604 2008-10-05  Jim Meyering  <meyering@redhat.com>
46605
46606         bootstrap: check for LT_INIT more portably
46607         * build-aux/bootstrap: Avoid using grep -E, since it's not
46608         portable enough.  Suggestion from Bruno Haible.
46609
46610 2008-10-05  Bruno Haible  <bruno@clisp.org>
46611
46612         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
46613         as being fixed by gnulib.
46614
46615 2008-10-05  Bruno Haible  <bruno@clisp.org>
46616
46617         * modules/select-tests: New file, mostly copied from
46618         modules/sys_select-tests.
46619         * tests/test-select.c: New file, mostly copied from
46620         tests/test-sys_select.c.
46621         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
46622         * modules/sys_select-tests (Depends-on): Remove all dependencies.
46623         (Makefile.am): Remove test_sys_select_LDADD.
46624
46625         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
46626         to an undefined symbol, for an error message.
46627         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
46628         (gl_SYS_SELECT_H_DEFAULTS): New macro.
46629         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
46630         winsock-select.c here.
46631         * modules/sys_select (Files): Remove lib/winsock-select.c.
46632         (Depends-on): Remove alloca.
46633         (Makefile.am): Substitute GNULIB_SELECT.
46634         * modules/select: New file.
46635         * doc/posix-functions/select.texi: Update.
46636
46637 2008-10-05  Bruno Haible  <bruno@clisp.org>
46638
46639         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
46640         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
46641         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
46642         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
46643         getdtablesize.
46644         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
46645         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
46646
46647 2008-10-05  Bruno Haible  <bruno@clisp.org>
46648
46649         * modules/getdtablesize-tests: New file.
46650         * tests/test-getdtablesize.c: New file.
46651
46652         New module 'getdtablesize'.
46653         * lib/unistd.in.h (getdtablesize): New declaration.
46654         * lib/getdtablesize.c: New file.
46655         * m4/getdtablesize.m4: New file.
46656         * modules/getdtablesize: New file.
46657         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46658         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
46659         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
46660         HAVE_GETDTABLESIZE.
46661         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
46662
46663 2008-10-05  Bruno Haible  <bruno@clisp.org>
46664
46665         * modules/sched (Makefile.am): Fix typo.
46666         Reported by Simon Josefsson.
46667
46668 2008-10-05  Jim Meyering  <meyering@redhat.com>
46669
46670         bootstrap: check for LT_INIT, too
46671         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
46672         are deprecated.  Suggestion from Ralf Wildenhues.
46673
46674 2008-10-05  Bruno Haible  <bruno@clisp.org>
46675
46676         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
46677         overriding them by ours.
46678         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
46679
46680 2008-10-05  Jim Meyering  <meyering@redhat.com>
46681
46682         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
46683         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
46684         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
46685
46686 2008-10-04  Bruno Haible  <bruno@clisp.org>
46687
46688         * modules/dup2 (License): Change to LGPLv2+.
46689         * modules/sleep (License): Likewise.
46690         * modules/perror (License): Likewise.
46691         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
46692         Blake.
46693         * modules/signal (License): Likewise.
46694         * modules/sigprocmask (License): Likewise.
46695         * modules/raise (License): Change to LGPLv2+, with approval by Jim
46696         Meyering.
46697
46698 2008-10-04  Bruno Haible  <bruno@clisp.org>
46699
46700         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
46701         Reported by Rainer Tammer <tammer@tammer.net>.
46702
46703 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
46704             Bruno Haible  <bruno@clisp.org>
46705
46706         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
46707         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
46708         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
46709
46710 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
46711
46712         filevercmp: new module
46713         * lib/filevercmp.h: New function filevercmp comparing version strings.
46714         * lib/filevercmp.c: Implementation of filevercmp function.
46715         * modules/filevercmp: Module metadata.
46716         * tests/test-filevercmp.c: Unit test for new module.
46717         * modules/filevercmp-tests: Unit test metadata.
46718         * MODULES.html.sh: Add filevercmp module.
46719
46720 2008-10-03  Bruno Haible  <bruno@clisp.org>
46721
46722         * lib/c-ctype.h: Add comment.
46723         Reported by Jim Meyering.
46724
46725 2008-10-02  Bruno Haible  <bruno@clisp.org>
46726
46727         * modules/posix_spawn-internal (Depends-on): Add 'open'.
46728
46729 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46730
46731         * build-aux/bootstrap: Allow renaming bootstrap, and change the
46732         name of bootstrap.conf accordingly.
46733
46734 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46735
46736         * build-aux/bootstrap: Install git-merge-changelog configuration
46737         items into .gitconfig if needed.
46738
46739 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46740
46741         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
46742         git repository, and initialize/update it accordingly.
46743
46744 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
46745
46746         * modules/fsync-tests: New file.
46747         * tests/test-fsync.c: New file.
46748
46749         New module 'fsync'.
46750         * lib/fsync.c: New file.
46751         * m4/fsync.m4: New file.
46752         * modules/fsync: New file.
46753         * lib/unistd.in.h (fsync): New declaration.
46754         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
46755         GNULIB_FSYNC and HAVE_FSYNC.
46756         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
46757         * MODULES.html.sh (posix_functions): Add fsync.
46758         * doc/posix-functions/fsync.texi: Mention the new module.
46759
46760 2008-10-02  Jim Meyering  <meyering@redhat.com>
46761
46762         fts.c: sync with similar code from coreutils' remove.c
46763         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
46764         Guard also with "#if defined __linux__", since for now at least,
46765         this code is Linux-kernel-specific.
46766
46767 2008-10-02  Jim Meyering  <meyering@redhat.com>
46768
46769         fts: bug fixes
46770         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
46771         Include <sys/vfs.h>, not <sys/statfs.h>.
46772
46773         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
46774         Include <sys/vfs.h>, not <sys/statfs.h>.
46775
46776 2008-10-01  Bruno Haible  <bruno@clisp.org>
46777
46778         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
46779         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
46780         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
46781         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
46782         * doc/posix-functions/posix_spawnp.texi: Likewise.
46783         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
46784         whether posix_spawn actually works.
46785         * m4/pipe.m4 (gl_PIPE): Likewise.
46786         * modules/execute (Files): Add m4/posix_spawn.m4.
46787         * modules/pipe (Files): Add m4/posix_spawn.m4.
46788         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
46789
46790 2008-10-01  Jim Meyering  <meyering@redhat.com>
46791
46792         remove trailing spaces
46793         * NEWS: Likewise.
46794         * lib/poll.c (poll): Likewise.
46795         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
46796         * lib/winsock.c (rpl_close): Likewise.
46797         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
46798         * modules/yield: Likewise.
46799         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
46800         * tests/test-sys_select.c (connect_to_socket): Likewise.
46801
46802         fts.c: adjust a new interface to be more generally useful
46803         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
46804         (fts_build): Adjust caller.
46805
46806 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46807
46808         * modules/cond-tests: New file.
46809         * tests/test-cond.c: New file.
46810
46811 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46812             Bruno Haible  <bruno@clisp.org>
46813
46814         * modules/cond (Dependencies): Add errno, time.
46815         * lib/glthread/cond.h: Include <time.h>.
46816         (gl_cond_define, gl_cond_define_initialized): Use the same definition
46817         across platforms.
46818
46819 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46820             Bruno Haible  <bruno@clisp.org>
46821
46822         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
46823
46824 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46825             Bruno Haible  <bruno@clisp.org>
46826
46827         * modules/tls-tests (Depends-on): Add thread, yield.
46828         (configure.ac): Remove all checks.
46829         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
46830         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46831         gl_thread_self): Remove definitions. Include glthread/thread.h and
46832         glthread/yield.h instead.
46833         (test_tls): Pass an additional NULL argument to gl_thread_join.
46834
46835 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46836             Bruno Haible  <bruno@clisp.org>
46837
46838         * modules/lock-tests (Depends-on): Add thread, yield.
46839         (configure.ac): Remove all checks.
46840         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
46841         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46842         gl_thread_self): Remove definitions. Include glthread/thread.h and
46843         glthread/yield.h instead.
46844         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
46845         additional NULL argument to gl_thread_join.
46846
46847 2008-09-30  Bruno Haible  <bruno@clisp.org>
46848
46849         Fix the Win32 implementation of the 'thread' module.
46850         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
46851         pointer type.
46852         (gl_thread_self): Invoke gl_thread_self_func.
46853         (gl_thread_self_func): New declaration.
46854         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
46855         (do_init_self_key, init_self_key): New functions.
46856         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
46857         Remove some fields.
46858         (running_threads, running_lock): Remove variables.
46859         (get_current_thread_handle): New function.
46860         (gl_thread_self_func, wrapper_func, glthread_create_func,
46861         glthread_join_func, gl_thread_exit_func): Largely rewritten and
46862         simplified.
46863
46864 2008-09-30  Bruno Haible  <bruno@clisp.org>
46865
46866         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
46867         files.
46868
46869 2008-09-30  Jim Meyering  <meyering@redhat.com>
46870
46871         fts.m4: correct the test for statfs.f_type
46872         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
46873         when checking for statfs.f_type.
46874
46875 2008-09-15  Simon Josefsson  <simon@josefsson.org>
46876
46877         tests: avoid some compiler warnings
46878         * tests/test-memchr.c (main): Pass NULL indirectly.
46879         * tests/test-getdate.c (main): Remove unused variable 'ret'.
46880
46881 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
46882
46883         getdate.y: disallow countable dayshifts like "4 yesterday ago"
46884         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
46885         exactly specified dayshifts.
46886         (dayshift): New rule.
46887         (rel): Add dayshift.
46888         (relative_time_table) [tomorrow, yesterday, today, now]:
46889         Use tDAY_SHIFT in place of tDAY_UNIT.
46890         * tests/test-getdate.c: Add tests for now-disallowed countable
46891         dayshifts, e.g., "4 yesterday ago".
46892
46893 2008-09-29  Bruno Haible  <bruno@clisp.org>
46894
46895         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
46896         * tests/test-posix_spawn1.in.sh: Renamed from
46897         tests/test-posix_spawn.in.sh.
46898         * tests/test-posix_spawn2.c: New file.
46899         * tests/test-posix_spawn2.in.sh: New file.
46900         * modules/posix_spawnp-tests (Files): Update.
46901         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
46902
46903 2008-09-29  Bruno Haible  <bruno@clisp.org>
46904
46905         Propagate effects of putenv/setenv/unsetenv to child processes.
46906         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
46907         * lib/pipe.c (create_pipe): Likewise.
46908
46909 2008-09-29  Bruno Haible  <bruno@clisp.org>
46910
46911         Enable use of shell scripts as executables in mingw.
46912         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
46913         run the program as a shell script.
46914         * lib/pipe.c (create_pipe): Likewise.
46915         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
46916         resulting array.
46917
46918 2008-09-29  Eric Blake  <ebb9@byu.net>
46919
46920         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
46921
46922 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
46923
46924         * doc/posix-functions/accept.texi: Update mingw problems.
46925         * doc/posix-functions/bind.texi: Update mingw problems.
46926         * doc/posix-functions/close.texi: Update mingw problems.
46927         * doc/posix-functions/connect.texi: Update mingw problems.
46928         * doc/posix-functions/getpeername.texi: Update mingw problems.
46929         * doc/posix-functions/getsockname.texi: Update mingw problems.
46930         * doc/posix-functions/getsockopt.texi: Update mingw problems.
46931         * doc/posix-functions/ioctl.texi: Update mingw problems.
46932         * doc/posix-functions/listen.texi: Update mingw problems.
46933         * doc/posix-functions/recv.texi: Update mingw problems.
46934         * doc/posix-functions/recvfrom.texi: Update mingw problems.
46935         * doc/posix-functions/select.texi: Update mingw problems.
46936         * doc/posix-functions/send.texi: Update mingw problems.
46937         * doc/posix-functions/sendto.texi: Update mingw problems.
46938         * doc/posix-functions/setsockopt.texi: Update mingw problems.
46939         * doc/posix-functions/socket.texi: Update mingw problems.
46940
46941 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
46942             Bruno Haible  <bruno@clisp.org>
46943
46944         * lib/sys_select.in.h: Include sys/time.h.
46945         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
46946         * modules/sys_select: Depend on sys_time.
46947         * tests/test-sys_select.c: Test that sys/select.h defines struct
46948         timeval fully.
46949
46950 2008-09-29  Bruno Haible  <bruno@clisp.org>
46951
46952         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
46953         * lib/sys_select.in.h: Likewise.
46954
46955 2008-09-29  Bruno Haible  <bruno@clisp.org>
46956
46957         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
46958
46959 2008-09-29  Bruno Haible  <bruno@clisp.org>
46960
46961         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
46962         Set LIBSOCKET instead of augmenting LIBS.
46963         * modules/sockets (Link): New section.
46964         * modules/sockets-tests (test_sockets_LDADD): New variable.
46965         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
46966         * modules/poll-tests (test_poll_LDADD): New variable.
46967         * NEWS: Document the change.
46968
46969 2008-09-29  Bruno Haible  <bruno@clisp.org>
46970
46971         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
46972         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
46973         ARPA_INET_H directly.
46974         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46975
46976 2008-09-28  Bruno Haible  <bruno@clisp.org>
46977
46978         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
46979         from gl_HEADER_SYS_SOCKET.
46980         (gl_HEADER_SYS_SOCKET): Invoke it.
46981         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46982
46983 2008-09-28  Bruno Haible  <bruno@clisp.org>
46984
46985         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
46986         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
46987         Needed on OSF/1 4.0.
46988
46989 2008-09-28  Bruno Haible  <bruno@clisp.org>
46990
46991         Override open more carefully.
46992         * lib/open.c (orig_open): New function.
46993         (rpl_open): Use orig_open instead of open.
46994         * lib/fcntl.in.h: Add special invocation convention.
46995         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
46996         (gl_FUNC_OPEN): Invoke it.
46997
46998         Override freopen more carefully.
46999         * lib/freopen.c (orig_freopen): New function.
47000         (rpl_freopen): Use orig_freopen instead of freopen.
47001         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
47002         (gl_FUNC_FREOPEN): Invoke it.
47003
47004         Override fopen more carefully.
47005         * lib/fopen.c (orig_fopen): New function.
47006         (rpl_fopen): Use orig_fopen instead of fopen.
47007         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
47008         (gl_FUNC_FOPEN): Invoke it.
47009         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
47010
47011 2008-09-28  Bruno Haible  <bruno@clisp.org>
47012
47013         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
47014         SIGPIPE.
47015
47016 2008-09-28  Bruno Haible  <bruno@clisp.org>
47017
47018         * tests/test-sigaction.c (handler, main): Disable the check whether
47019         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
47020         glibc systems with LinuxThreads.
47021
47022 2008-09-28  Bruno Haible  <bruno@clisp.org>
47023
47024         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
47025
47026         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
47027         with AIX xlc.
47028         * lib/fcntl.in.h (open): Likewise.
47029         Reported by Rainer Tammer <tammer@tammer.net>.
47030
47031 2008-09-28  Bruno Haible  <bruno@clisp.org>
47032
47033         * modules/posix_spawnp-tests: New file.
47034         * tests/test-posix_spawn.c: New file.
47035         * tests/test-posix_spawn.in.sh: New file.
47036
47037         New module 'posix_spawnp'.
47038         * modules/posix_spawnp: New file.
47039         * lib/spawnp.c: New file, from GNU libc with modifications.
47040         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
47041
47042         New module 'posix_spawn'.
47043         * modules/posix_spawn: New file.
47044         * lib/spawn.c: New file, from GNU libc with modifications.
47045         * doc/posix-functions/posix_spawn.texi: Mention the new module.
47046
47047         New module 'posix_spawnattr_destroy'.
47048         * modules/posix_spawnattr_destroy: New file.
47049         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
47050         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
47051         module.
47052
47053         New module 'posix_spawnattr_setsigmask'.
47054         * modules/posix_spawnattr_setsigmask: New file.
47055         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
47056         modifications.
47057         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
47058         new module.
47059
47060         New module 'posix_spawnattr_getsigmask'.
47061         * modules/posix_spawnattr_getsigmask: New file.
47062         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
47063         modifications.
47064         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
47065         new module.
47066
47067         New module 'posix_spawnattr_setsigdefault'.
47068         * modules/posix_spawnattr_setsigdefault: New file.
47069         * lib/spawnattr_setdefault.c: New file, from GNU libc with
47070         modifications.
47071         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
47072         new module.
47073
47074         New module 'posix_spawnattr_getsigdefault'.
47075         * modules/posix_spawnattr_getsigdefault: New file.
47076         * lib/spawnattr_getdefault.c: New file, from GNU libc with
47077         modifications.
47078         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
47079         new module.
47080
47081         New module 'posix_spawnattr_setschedpolicy'.
47082         * modules/posix_spawnattr_setschedpolicy: New file.
47083         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
47084         modifications.
47085         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
47086         new module.
47087
47088         New module 'posix_spawnattr_getschedpolicy'.
47089         * modules/posix_spawnattr_getschedpolicy: New file.
47090         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
47091         modifications.
47092         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
47093         new module.
47094
47095         New module 'posix_spawnattr_setschedparam'.
47096         * modules/posix_spawnattr_setschedparam: New file.
47097         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
47098         modifications.
47099         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
47100         new module.
47101
47102         New module 'posix_spawnattr_getschedparam'.
47103         * modules/posix_spawnattr_getschedparam: New file.
47104         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
47105         modifications.
47106         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
47107         new module.
47108
47109         New module 'posix_spawnattr_setpgroup'.
47110         * modules/posix_spawnattr_setpgroup: New file.
47111         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
47112         modifications.
47113         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
47114         module.
47115
47116         New module 'posix_spawnattr_getpgroup'.
47117         * modules/posix_spawnattr_getpgroup: New file.
47118         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
47119         modifications.
47120         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
47121         module.
47122
47123         New module 'posix_spawnattr_setflags'.
47124         * modules/posix_spawnattr_setflags: New file.
47125         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
47126         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
47127         module.
47128
47129         New module 'posix_spawnattr_getflags'.
47130         * modules/posix_spawnattr_getflags: New file.
47131         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
47132         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
47133         module.
47134
47135         New module 'posix_spawnattr_init'.
47136         * modules/posix_spawnattr_init: New file.
47137         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
47138         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
47139         module.
47140
47141         New module 'posix_spawn_file_actions_destroy'.
47142         * modules/posix_spawn_file_actions_destroy: New file.
47143         * lib/spawn_faction_destroy.c: New file, from GNU libc with
47144         modifications.
47145         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
47146         the new module.
47147
47148         New module 'posix_spawn_file_actions_addopen'.
47149         * modules/posix_spawn_file_actions_addopen: New file.
47150         * lib/spawn_faction_addopen.c: New file, from GNU libc with
47151         modifications.
47152         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
47153         the new module.
47154
47155         New module 'posix_spawn_file_actions_adddup2'.
47156         * modules/posix_spawn_file_actions_adddup2: New file.
47157         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
47158         modifications.
47159         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
47160         the new module.
47161
47162         New module 'posix_spawn_file_actions_addclose'.
47163         * modules/posix_spawn_file_actions_addclose: New file.
47164         * lib/spawn_faction_addclose.c: New file, from GNU libc with
47165         modifications.
47166         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
47167         the new module.
47168
47169         New module 'posix_spawn_file_actions_init'.
47170         * modules/posix_spawn_file_actions_init: New file.
47171         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
47172         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
47173         new module.
47174
47175         New module 'posix_spawn-internal'.
47176         * modules/posix_spawn-internal: New file.
47177         * lib/spawn_int.h: New file, from GNU libc with modifications.
47178         * lib/spawni.c: New file, from GNU libc with modifications.
47179         * m4/posix_spawn.m4: New file.
47180
47181         New module 'spawn'.
47182         * modules/spawn: New file.
47183         * lib/spawn.in.h: New file, from GNU libc with modifications.
47184         * m4/spawn_h.m4: New file.
47185         * doc/posix-headers/spawn.texi: Mention the new module.
47186
47187 2008-09-28  Bruno Haible  <bruno@clisp.org>
47188
47189         * modules/sched-tests: New file.
47190         * tests/test-sched.c: New file.
47191
47192         New module 'sched'.
47193         * modules/sched: New file.
47194         * lib/sched.in.h: New file.
47195         * m4/sched_h.m4: New file.
47196         * doc/posix-headers/sched.texi: Mention the new module.
47197
47198 2008-09-27  Eric Blake  <ebb9@byu.net>
47199
47200         Fix previous patch, and tweak references to $0.
47201         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
47202         (func_version, func_gnulib_dir): Don't call this program
47203         gnulib-tool.
47204         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
47205         with using $0 in function.
47206         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
47207         (func_fatal_error): Reuse the name the user invoked us with.
47208
47209 2008-09-27  Bruno Haible  <bruno@clisp.org>
47210
47211         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
47212         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
47213         (gl_ICONV_H): Not here.
47214         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
47215         instead of assigning ICONV_H directly.
47216
47217         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
47218         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
47219         WCHAR_H directly.
47220
47221 2008-09-27  Bruno Haible  <bruno@clisp.org>
47222
47223         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
47224         * modules/arpa_inet (Depends-on): Add link-warning.
47225         (Makefile.am): Insert the definition of GL_LINK-WARNING.
47226         * modules/unistd (Makefile.am): Likewise.
47227
47228 2008-09-26  Bruno Haible  <bruno@clisp.org>
47229
47230         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
47231         variables.
47232         (func_version): Essentially copied from gnulib-tool.
47233         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
47234         func_readlink): Copied from gnulib-tool.
47235
47236 2008-09-26  Bruno Haible  <bruno@clisp.org>
47237
47238         * gnulib-tool (func_version): Change directory to $gnulib_dir before
47239         invoking git-version-gen.
47240
47241 2008-09-26  Bruno Haible  <bruno@clisp.org>
47242
47243         * posix-modules: Update to directory names changed on 2008-01-19.
47244         Remove commas in output before splitting into words. No more need to
47245         avoid 'ftruncate' since 2007-02-19.
47246
47247 2008-09-26  Bruno Haible  <bruno@clisp.org>
47248
47249         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
47250
47251 2008-09-26  Bruno Haible  <bruno@clisp.org>
47252
47253         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
47254         * modules/fwriteerror (Depends-on): Add errno.
47255
47256 2008-09-26  Bruno Haible  <bruno@clisp.org>
47257
47258         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
47259         * tests/test-vc-list-files-cvs.sh: Likewise.
47260
47261 2008-09-26  Bruno Haible  <bruno@clisp.org>
47262
47263         * doc/posix-headers/sys_resource.texi: Reorder items.
47264
47265 2008-09-26  Jim Meyering  <meyering@redhat.com>
47266
47267         fts: tweak inode comparison function
47268         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
47269         inode numbers, as documented.
47270
47271         fts: sort dirent entries on inode number before traversing
47272         This avoids a quadratic, seek-related performance penalty when
47273         operating on a directory containing many entries (measurable at 10k;
47274         3.5 hours at 2 million entries with a cold cache) on certain types
47275         of file systems, including ext3 and ext4, but not tmpfs.
47276         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
47277         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
47278         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
47279         (fs_handles_readdir_ordered_dirents_efficiently): New function.
47280         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
47281         (fts_build): Set the stat.st_ino member from D_INO.
47282         If it is likely to be useful, sort dirent entries on inode number.
47283
47284         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
47285         and the struct statfs.f_type member.
47286         * modules/fts (Depends-on): Add d-ino.
47287
47288 2008-09-26  Bruno Haible  <bruno@clisp.org>
47289
47290         * modules/sigpipe-die (Depends-on): Add sigpipe.
47291
47292         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
47293         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
47294         and GNULIB_STDIO_H_SIGPIPE are set.
47295         * lib/stdio-write.c: New file.
47296         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
47297         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47298         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47299         REPLACE_STDIO_WRITE_FUNCS.
47300         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
47301         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47302         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47303         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
47304         * modules/stdio (Files): Add lib/stdio-write.c.
47305         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
47306         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47307         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47308         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
47309         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
47310         REPLACE_FPRINTF_POSIX.
47311         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
47312         REPLACE_PRINTF_POSIX.
47313         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
47314         REPLACE_VFPRINTF_POSIX.
47315         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
47316         REPLACE_VPRINTF_POSIX.
47317         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
47318         SIGPIPE issue.
47319         * doc/posix-functions/fputc.texi: Likewise.
47320         * doc/posix-functions/fputs.texi: Likewise.
47321         * doc/posix-functions/fwrite.texi: Likewise.
47322         * doc/posix-functions/printf.texi: Likewise.
47323         * doc/posix-functions/putc.texi: Likewise.
47324         * doc/posix-functions/putchar.texi: Likewise.
47325         * doc/posix-functions/puts.texi: Likewise.
47326         * doc/posix-functions/vfprintf.texi: Likewise.
47327         * doc/posix-functions/vprintf.texi: Likewise.
47328
47329         * modules/safe-write (Depends-on): Add write.
47330
47331         * modules/sigpipe-tests: New file.
47332         * tests/test-sigpipe.c: New file.
47333         * tests/test-sigpipe.sh: New file.
47334
47335         * modules/write: New file.
47336         * lib/unistd.in.h: Include <sys/types.h>.
47337         (write): New declaration.
47338         * lib/write.c: New file.
47339         * m4/write.m4: New file.
47340         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47341         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
47342         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
47343         GNULIB_WRITE, REPLACE_WRITE.
47344         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
47345         and the SIGPIPE issue.
47346
47347         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
47348         (raise): New declaration.
47349         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
47350         (ext_signal): New function.
47351         (rpl_raise): New function.
47352         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
47353         GNULIB_SIGNAL_H_SIGPIPE.
47354         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
47355         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
47356
47357         * modules/sigpipe: New file.
47358         * m4/sigpipe.m4: New file.
47359
47360 2008-09-25  Derek Price  <derek@ximbiot.com>
47361             Bruno Haible  <bruno@clisp.org>
47362
47363         * gnulib-tool (func_import): Report all license incompatibilities, not
47364         just the first one.
47365
47366 2008-09-25  Bruno Haible  <bruno@clisp.org>
47367
47368         * gnulib-tool (func_import): When computing the edits, consider not
47369         only the Makefile.ams that exist but also those that will be generated.
47370
47371 2008-09-25  Simon Josefsson  <simon@josefsson.org>
47372
47373         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
47374         fixes gnulib-tool --test warning about duplicate dependency.
47375
47376 2008-09-25  Bruno Haible  <bruno@clisp.org>
47377
47378         * gnulib-tool: Don't ask the user to perform edits in the generated
47379         Makefile.ams.
47380         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
47381         apply to the Makefile.am being generated.
47382         (func_emit_tests_Makefile_am): Execute edits that apply to the
47383         Makefile.am being generated.
47384         (func_import): Setup list of Makefile.am edits before emitting the
47385         Makefile.ams, not at the end.
47386         (func_create_testdir): Update.
47387         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47388
47389 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47390
47391         * gnulib-tool (func_import): Store the --tests-base option in the
47392         comment in gnulib-cache.m4.
47393
47394 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
47395
47396         * NEWS: Document increased portability that sys_select now provides.
47397
47398         * lib/sys_select.in.h: Install select wrapper.
47399         * lib/sys_socket.in.h: Use more descriptive name when there is no
47400         select wrapper.
47401         * lib/winsock-select.c: New.
47402         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
47403         Require gl_HEADER_SYS_SOCKET.
47404         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
47405         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
47406         * tests/test-sys_select.c: Add functional tests.
47407
47408 2008-09-24  Eric Blake  <ebb9@byu.net>
47409
47410         open, fopen: close fd leak in last patch
47411         * lib/open.c (rpl_open): Close fd before returning error.
47412         * lib/fopen.c (rpl_fopen): Close fd before returning error.
47413         * doc/posix-functions/open.texi (open): Document that Irix also
47414         has the bug.
47415         * doc/posix-functions/fopen.texi (fopen): Likewise.
47416         Reported by Paolo Bonzini.
47417
47418 2008-09-24  Bruno Haible  <bruno@clisp.org>
47419
47420         Ensure that a filename ending in a slash cannot be used to access a
47421         non-directory.
47422         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
47423         to check whether it's really a directory.
47424         * lib/fopen.c: Include fcntl.h, unistd.h.
47425         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
47426         and fdopen().
47427         * modules/fopen (Depends-on): Add unistd.
47428         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
47429         * tests/test-fopen.c (main): Likewise.
47430         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
47431         * doc/posix-functions/fopen.texi: Likewise.
47432         Reported by Eric Blake.
47433
47434 2008-09-23  Eric Blake  <ebb9@byu.net>
47435
47436         c-stack: avoid compiler optimizations when provoking overflow
47437         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
47438         recursion harder to optimize, to ensure a stack overflow occurs.
47439         * tests/test-c-stack.c (recurse): Likewise.
47440         Borrowed from libsigsegv.
47441
47442         c-stack: work around Irix sigaltstack bug
47443         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
47444         whether sigaltstack uses wrong end of stack_t (copied in part from
47445         libsigsegv).
47446         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
47447         Irix bug, without requiring an over-allocation.
47448         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
47449         bug.
47450
47451         fopen: document mingw bug on directories
47452         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
47453         not allowing a stream visiting a directory, even though reading
47454         from such a stream is not portable.
47455
47456 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47457
47458         * lib/poll.c: Rewrite.
47459         * modules/poll: Depend on alloca.
47460
47461 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47462
47463         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
47464         instead define prototypes for a full set of wrappers.  Ensure
47465         that Cygwin does not use the compatibility code, which is only
47466         for MinGW.
47467         * lib/winsock.c: New.
47468         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
47469         * modules/sys_socket: Add lib/winsock.c.
47470
47471         * modules/poll-tests: Add errno and perror.
47472         * tests/test-poll.c: Use ioctl, not ioctlsocket.
47473
47474 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47475
47476         * tests/test-poll.c: Downgrade minimum needed Winsock version.
47477
47478 2008-09-23  Bruno Haible  <bruno@clisp.org>
47479
47480         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
47481         * doc/glibc-functions/*: Likewise.
47482
47483 2008-09-23  Simon Josefsson  <simon@josefsson.org>
47484
47485         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
47486         success.
47487
47488 2008-09-22  Eric Blake  <ebb9@byu.net>
47489             Bruno Haible  <bruno@clisp.org>
47490
47491         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
47492         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
47493         supply %A but mishandle pseudo-NaN.
47494         Reported by Simon Josefsson.
47495
47496 2008-09-21  Bruno Haible  <bruno@clisp.org>
47497
47498         * tests/test-lock.c (main): Tweak skip message.
47499         * tests/test-tls.c (main): Likewise.
47500
47501 2008-09-21  Bruno Haible  <bruno@clisp.org>
47502
47503         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
47504         whether 'struct sigaction' has sa_sigaction here...
47505         (gl_PREREQ_SIG_HANDLER_H): ... not here.
47506         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
47507
47508 2008-09-21  Bruno Haible  <bruno@clisp.org>
47509
47510         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
47511         section.
47512         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
47513         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
47514         the new section.
47515         (Support for obsolete systems lacking POSIX:2001): New section.
47516         (String handling <string.h>): Move strdup to the new section.
47517         Suggested by Simon Josefsson and Paolo Bonzini.
47518
47519 2008-09-21  Bruno Haible  <bruno@clisp.org>
47520
47521         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
47522         exponents in %e and %g results on 'long double'. Needed for mingw's
47523         improved *printf functions.
47524         * tests/test-vasprintf-posix.c (test_function): Likewise.
47525         * tests/test-snprintf-posix.h (test_function): Likewise.
47526         * tests/test-sprintf-posix.h (test_function): Likewise.
47527         Reported by Eric Blake.
47528
47529 2008-09-21  Bruno Haible  <bruno@clisp.org>
47530
47531         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
47532         * tests/test-sprintf-posix.h (test_function): Likewise.
47533
47534 2008-09-21  Bruno Haible  <bruno@clisp.org>
47535
47536         * modules/getpass (Depends-on): Add strdup-posix.
47537
47538         New module 'strdup-posix'.
47539         * modules/strdup-posix: New file.
47540         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
47541         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
47542         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
47543         REPLACE_STRDUP.
47544         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
47545         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
47546         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47547         strdup-posix.
47548
47549         * modules/strdup (Depends-on): Remove malloc-posix.
47550
47551 2008-09-20  Bruno Haible  <bruno@clisp.org>
47552
47553         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
47554         Wildenhues.
47555
47556 2008-09-20  Bruno Haible  <bruno@clisp.org>
47557
47558         Ensure that wint_t gets defined on IRIX 5.3.
47559         * lib/wchar.in.h (wint_t): Define if not defined by the system.
47560         * lib/wctype.in.h (wint_t): Likewise.
47561         (__wctype_wint_t): Remove type.
47562         (isw*): Use wint_t instead of __wctype_wint_t.
47563         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
47564         * modules/wchar (Files): Add m4/wint_t.m4.
47565         (Makefile.am): Substitute HAVE_WINT_T.
47566         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
47567         * tests/test-wctype.c: Check that wint_t is defined.
47568         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
47569         * doc/posix-headers/wctype.texi: Likewise.
47570         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47571
47572 2008-09-18  Bruno Haible  <bruno@clisp.org>
47573
47574         * gnulib-tool (func_exit): Update comment.
47575
47576 2008-09-18  Simon Josefsson  <simon@josefsson.org>
47577
47578         * modules/getaddrinfo (Depends-on): Remove strdup, this module
47579         assumes strdup exists and does not depend on strdup to return
47580         ENOMEM on out of memory conditions.
47581
47582 2008-09-18  Bruno Haible  <bruno@clisp.org>
47583
47584         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
47585         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
47586         digits for the exponent.
47587
47588 2008-09-18  Jim Meyering  <meyering@redhat.com>
47589             Bruno Haible  <bruno@clisp.org>
47590
47591         * lib/vasnprintf.c (decimal_point_char): Define also if
47592         NEED_PRINTF_INFINITE_LONG_DOUBLE.
47593
47594 2008-09-16  Bruno Haible  <bruno@clisp.org>
47595         and Eric Blake  <ebb9@byu.net>
47596
47597         vasnprintf: support Irix 5.3
47598         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
47599         that mishandle long double infinity.
47600         Reported by Tom G. Christensen.
47601
47602 2008-09-16  Bruno Haible  <bruno@clisp.org>
47603
47604         * doc/glibc-functions/scandir.texi: Mention the function is missing on
47605         Solaris 9.
47606         * doc/glibc-functions/alphasort.texi: Likewise.
47607         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
47608
47609 2008-09-16  Jim Meyering  <meyering@redhat.com>
47610
47611         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
47612         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
47613         a umask modification leak out of a subshell.  Otherwise, the
47614         opensolaris /bin/sh would be accepted and thus cause unwarranted
47615         failures in the coreutils test suite.
47616
47617 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
47618
47619         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
47620         to succeed.
47621
47622 2008-09-16  Jim Meyering  <meyering@redhat.com>
47623
47624         avoid spurious test failure when library is built without ACL support
47625         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
47626         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
47627         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
47628         * tests/test-copy-acl.sh: Likewise.
47629
47630 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47631
47632         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
47633         based on character occurrence counts.
47634
47635 2008-09-15  Eric Blake  <ebb9@byu.net>
47636
47637         tests: avoid some compiler warnings
47638         * tests/test-memchr.c (main): Pass NULL indirectly.
47639         * tests/test-closein.c (main): Avoid unused variable.
47640
47641 2008-09-15  Bruno Haible  <bruno@clisp.org>
47642
47643         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
47644         are missing on OpenBSD 4.0 individually.
47645         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47646
47647 2008-09-15  Bruno Haible  <bruno@clisp.org>
47648
47649         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
47650         * doc/posix-functions/strerror.texi: Mention also Cygwin.
47651         * doc/posix-functions/perror.texi: Likewise.
47652         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
47653         is missing.
47654         Reported by Eric Blake.
47655
47656         * lib/errno.in.h: Use replacement values >= 2000.
47657         Reported by Eric Blake.
47658
47659 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47660
47661         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
47662         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
47663         limit.
47664         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
47665         compareseq was aborted.
47666
47667 2008-09-14  Bruno Haible  <bruno@clisp.org>
47668
47669         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
47670         yvec_edit_count.
47671         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
47672         (fstrcmp_bounded): Simplify result computation accordingly.
47673
47674 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47675
47676         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
47677         (fstrcmp): Define in terms of fstrcmp_bounded.
47678         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
47679         lower_bound argument.
47680         Return quickly if the result is certainly < lower_bound.
47681         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
47682
47683 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47684
47685         * lib/diffseq.h (EARLY_ABORT): New macro.
47686         (compareseq): Change return type to bool. Return true when EARLY_ABORT
47687         evaluates to true.
47688
47689 2008-09-14  Bruno Haible  <bruno@clisp.org>
47690
47691         * modules/perror-tests: New file.
47692         * tests/test-perror.sh: New file.
47693         * tests/test-perror.c: New file.
47694
47695         New module 'perror'.
47696         * lib/stdio.in.h (perror): New declaration.
47697         * lib/perror.c: New file.
47698         * m4/perror.m4: New file.
47699         * modules/perror: New file.
47700         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
47701         * doc/posix-functions/perror.texi: Mention the perror module.
47702         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
47703         REPLACE_PERROR.
47704         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
47705         REPLACE_PERROR.
47706
47707 2008-09-14  Bruno Haible  <bruno@clisp.org>
47708
47709         * modules/stdio (Makefile.am): Reorder to match the order in
47710         lib/stdio.in.h.
47711         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47712
47713 2008-09-13  Bruno Haible  <bruno@clisp.org>
47714
47715         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
47716
47717 2008-09-13  Bruno Haible  <bruno@clisp.org>
47718
47719         Extend strerror to cover the added errno values.
47720         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
47721         (rpl_strerror): Provide error messages for the added errno values and
47722         for the WSA* values.
47723         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
47724         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
47725         strerror.
47726         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
47727         * modules/strerror (Depends-on): Add errno.
47728         * doc/posix-functions/strerror.texi: Document the change.
47729         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
47730         and EOVERFLOW.
47731
47732 2008-09-13  Bruno Haible  <bruno@clisp.org>
47733
47734         * modules/EOVERFLOW: Remove file.
47735         * m4/eoverflow.m4: Remove file.
47736         * modules/EOVERFLOW-tests: Remove file.
47737         * tests/test-EOVERFLOW.c: Remove file.
47738         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
47739         * modules/ftell (Depends-on): Likewise.
47740         * modules/getdelim (Depends-on): Likewise.
47741         * modules/getugroups (Depends-on): Likewise.
47742         * modules/poll (Depends-on): Likewise.
47743         * modules/snprintf (Depends-on): Likewise.
47744         * modules/sprintf-posix (Depends-on): Likewise.
47745         * modules/vasnprintf (Depends-on): Likewise.
47746         * modules/vasprintf (Depends-on): Likewise.
47747         * modules/vfprintf-posix (Depends-on): Likewise.
47748         * modules/vsnprintf (Depends-on): Likewise.
47749         * modules/vsprintf-posix (Depends-on): Likewise.
47750         * modules/xvasprintf (Depends-on): Likewise.
47751         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47752         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
47753         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
47754         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
47755         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47756         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
47757         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
47758         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
47759         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47760         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
47761         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
47762         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
47763         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47764         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
47765         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
47766         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
47767         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47768         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
47769         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
47770         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
47771         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47772         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
47773         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
47774         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
47775         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
47776         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47777         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
47778         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
47779         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
47780         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
47781         * MODULES.html.sh: Remove EOVERFLOW.
47782         * NEWS: Mention the change.
47783
47784 2008-09-13  Bruno Haible  <bruno@clisp.org>
47785
47786         * modules/errno-tests: New file.
47787         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
47788
47789         * lib/errno.in.h: New file.
47790         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
47791         * modules/errno: New file.
47792         * doc/posix-headers/errno.texi: Update documentation.
47793         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
47794
47795 2008-09-13  Bruno Haible  <bruno@clisp.org>
47796
47797         * tests/test-poll.c: Use #if for native Windows, rather than testing
47798         __MSVCRT__.
47799
47800 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47801             Bruno Haible  <bruno@clisp.org>
47802
47803         * lib/glob.c: Don't include <pwd.h> on native Windows.
47804         (WINDOWS32): New macro.
47805         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
47806
47807 2008-09-13  Bruno Haible  <bruno@clisp.org>
47808
47809         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
47810         (ETIMEDOUT): Remove macro.
47811         (glthread_cond_timedwait_multithreaded): New declaration.
47812         (glthread_cond_timedwait): Use it.
47813         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
47814         (glthread_cond_timedwait_multithreaded): New function.
47815
47816 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47817
47818         * modules/poll-tests: Do not check for io.h.
47819         * tests/test-poll.c: Check for __MSVCRT__ instead.
47820
47821 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47822
47823         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
47824         * modules/poll-tests: Add inet_pton, stdbool, sockets.
47825         * tests/test-poll.c: Use them.  Use _pipe on Windows.
47826
47827 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47828
47829         * modules/poll-tests: New.
47830         * tests/test-poll.c: New.
47831
47832 2008-09-12  Eric Blake  <ebb9@byu.net>
47833
47834         frexp: test for NetBSD failure on -0.0
47835         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
47836         not all, bugs from NetBSD 3.0 have been fixed.
47837         * doc/posix-functions/frexp.texi (frexp): Document bug.
47838         Reported by Thomas Klausner.
47839
47840         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
47841         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
47842         literal -0.0.
47843         Reported by Jonathan C. Patschke <jp@centtech.com>.
47844
47845 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47846
47847         * lib/glthread/cond.h: Use dummy implementation also if
47848         USE_WIN32_THREADS.
47849
47850 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47851
47852         * modules/fnmatch-posix (License): Change to LGPLv2+.
47853         * modules/fnmatch-gnu (License): Likewise.
47854
47855 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47856
47857         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
47858
47859 2008-09-11  Jim Meyering  <meyering@redhat.com>
47860
47861         * users.txt: Add gtk-vnc.
47862
47863 2008-09-08  Simon Josefsson  <simon@josefsson.org>
47864
47865         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
47866         rotate amounts.
47867
47868         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
47869         required for 16-bit and 8-bit rotates.
47870         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
47871         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
47872         UINT8_MAX instead of hard-coded constants.
47873         Suggested by Paul Eggert.
47874
47875 2008-09-07  Bruno Haible  <bruno@clisp.org>
47876
47877         * tests/test-striconveh.c (main): Check behaviour when converting from
47878         UTF-7.
47879
47880         Make striconveh work better with stateful encodings.
47881         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
47882         that iconv does not increment the inptr when returning -1/EINVAL.
47883
47884 2008-09-07  Bruno Haible  <bruno@clisp.org>
47885
47886         * build-aux/config.rpath: Update according to libtool-2.2.6.
47887         * build-aux/config.libpath: Likewise.
47888
47889 2008-09-06  Bruno Haible  <bruno@clisp.org>
47890
47891         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
47892         * lib/freadptr.c (freadptr): Likewise.
47893         * lib/freadseek.c (freadptrinc): Likewise.
47894         Reported by Simon Josefsson.
47895
47896 2008-09-06  Bruno Haible  <bruno@clisp.org>
47897
47898         * modules/freadptr (License): Change to LGPLv2+.
47899         * modules/freadseek (License): Likewise.
47900         Suggested by Eric Blake.
47901
47902         * modules/memchr2 (License): Change to LGPLv2+.
47903         Approved by Eric Blake.
47904
47905 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47906             Bruno Haible  <bruno@clisp.org>
47907
47908         Make gnulib-tool work with native 'sed' on AIX.
47909         * gnulib-tool (sed_noop): New variable.
47910         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
47911         func_add_or_update, func_create_testdir): Use it to initialize sed
47912         script variables.
47913         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47914
47915 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
47916             Bruno Haible  <bruno@clisp.org>
47917
47918         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
47919         also works after #include directives.
47920
47921 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
47922
47923         getdate.y: reject an out-of-range timezone value
47924         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
47925         the range [-24...+24].  When specified with only one or two digits,
47926         * tests/test-getdate.c: Tests for the fix.
47927         * doc/getdate.texi: Document this change.
47928
47929 2008-09-03  Bruno Haible  <bruno@clisp.org>
47930
47931         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
47932
47933 2008-09-02  Simon Josefsson  <simon@josefsson.org>
47934
47935         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
47936         <bruce.korb@gmail.com> with ideas from Ben Pfaff
47937         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
47938         Blake <ebb9@byu.net>.
47939
47940         * tests/test-bitrotate.c: Add more test vectors.
47941
47942 2008-09-02  Eric Blake  <ebb9@byu.net>
47943
47944         vasnprintf-posix: handle large precision via %.*d
47945         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
47946         when handling it ourselves.
47947         * tests/test-vasnprintf-posix.c (test_function): Add test.
47948         * tests/test-snprintf-posix.h (test_function): Likewise.
47949         * tests/test-sprintf-posix.h (test_function): Likewise.
47950         * tests/test-vasprintf-posix.c (test_function): Likewise.
47951         Reported by Alain Guibert.
47952
47953 2008-09-01  Eric Blake  <ebb9@byu.net>
47954
47955         c-stack: make configure-time check more robust
47956         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
47957         successful sigaction call.
47958         Reported by Tom G. Christensen.
47959
47960 2008-09-01  Bruno Haible  <bruno@clisp.org>
47961
47962         New module 'findprog-lgpl'.
47963         * modules/findprog-lgpl: New file.
47964         * lib/findprog-lgpl.c: New file.
47965         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
47966         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
47967         to decide whether to use strdup or xstrdup, concatenated_filename or
47968         xconcatenated_filename.
47969
47970 2008-09-01  Bruno Haible  <bruno@clisp.org>
47971
47972         Split module 'concat-filename' into 'concat-filename' (LGPL) and
47973         'xconcat-filename' (GPL).
47974         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
47975         (License): Change to LGPLv2+.
47976         * modules/xconcat-filename: New file.
47977         * lib/concat-filename.h (concatenated_filename): Change specification.
47978         (xconcatenated_filename): New declaration.
47979         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
47980         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
47981         memory situations.
47982         * lib/xconcat-filename.c: New file.
47983         * NEWS: Mention the change.
47984         * lib/findprog.c: Include concat-filename.h, not filename.h.
47985         (find_in_path): Use xconcatenated_filename instead of
47986         concatenated_filename.
47987         * lib/javacomp.c: Include concat-filename.h, not filename.h.
47988         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
47989         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
47990         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
47991         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
47992         instead of concatenated_filename.
47993         * lib/javaexec.c: Include concat-filename.h, not filename.h.
47994         (execute_java_class): Use xconcatenated_filename instead of
47995         concatenated_filename.
47996         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
47997         * modules/javacomp (Depends-on): Likewise.
47998         * modules/javaexec (Depends-on): Likewise.
47999
48000 2008-09-01  Bruno Haible  <bruno@clisp.org>
48001
48002         Split module 'filename' into 'filename' and 'concat-filename'.
48003         * modules/filename: Keep only lib/filename.h.
48004         (License): Change to LGPLv2+.
48005         * modules/concat-filename: New file, extracted from modules/filename.
48006         * lib/filename.h (concatenated_filename): Remove declaration.
48007         * lib/concat-filename.h: New file, extracted from lib/filename.h.
48008         * lib/concat-filename.c: Include concat-filename.h.
48009         * NEWS: Mention the change.
48010
48011 2008-09-01  Simon Josefsson  <simon@josefsson.org>
48012
48013         * lib/bitrotate.h (rotl8, rotr8): Add.
48014
48015         * modules/bitrotate (configure.ac): Need
48016         AC_REQUIRE([AC_C_INLINE]).
48017         (Description): Mention stdint.h.  Reported by Bruno Haible
48018         <bruno@clisp.org>.
48019
48020         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
48021         Paolo Bonzini <bonzini@gnu.org>.
48022
48023 2008-08-31  Bruno Haible  <bruno@clisp.org>
48024
48025         Assume Solaris specific bi-arch conventions on Solaris systems.
48026         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
48027         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
48028         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
48029         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
48030         like acl_libdirstem.
48031         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
48032         acl_libdirstem.
48033         * NEWS: Mention the change.
48034         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
48035
48036 2008-08-31  Jim Meyering  <meyering@redhat.com>
48037
48038         * lib/strftime.h: Add comments describing the two added arguments.
48039
48040         remove duplicate #include directives
48041         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
48042         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
48043
48044 2008-08-31  Bruno Haible  <bruno@clisp.org>
48045
48046         New module 'sigpipe-die'.
48047         * modules/sigpipe-die: New file.
48048         * lib/sigpipe-die.h: New file.
48049         * lib/sigpipe-die.c: New file.
48050         * MODULES.html.sh (Signal handling): Add sigpipe-die.
48051
48052 2008-08-31  Bruno Haible  <bruno@clisp.org>
48053
48054         Don't override previously installed signal handlers.
48055         * lib/fatal-signal.c (saved_sigactions): New variable.
48056         (uninstall_handlers): Reset the signal to the saved handler, not
48057         to SIG_DFL (except when ignored).
48058         (install_handlers): Save the previous handlers.
48059
48060 2008-08-30  Bruno Haible  <bruno@clisp.org>
48061
48062         * gnulib-tool (func_reset_sigpipe): New function.
48063         (func_get_automake_snippet, func_modules_transitive_closure,
48064         func_import): Invoke it before a join command that reads from stdin,
48065         to avoid "echo: write error: Broken pipe" error messages on stderr.
48066         Reported by Sam Steingold <sds@gnu.org>.
48067
48068 2008-08-30  Bruno Haible  <bruno@clisp.org>
48069
48070         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
48071         Code copied from m4/open.m4.
48072         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
48073         access and the filename ends in a slash. Code copied from lib/open.c.
48074         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
48075         * tests/test-fopen.c (main): Check against bug with trailing slash.
48076
48077 2008-08-29  Bruno Haible  <bruno@clisp.org>
48078
48079         Avoid some "gcc -pedantic" warnings.
48080         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
48081         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
48082         * lib/dirent.in.h: Likewise.
48083         * lib/fcntl.in.h: Likewise.
48084         * lib/float.in.h: Likewise.
48085         * lib/iconv.in.h: Likewise.
48086         * lib/inttypes.in.h: Likewise.
48087         * lib/locale.in.h: Likewise.
48088         * lib/math.in.h: Likewise.
48089         * lib/netinet_in.in.h: Likewise.
48090         * lib/search.in.h: Likewise.
48091         * lib/signal.in.h: Likewise.
48092         * lib/stdarg.in.h: Likewise.
48093         * lib/stdint.in.h: Likewise.
48094         * lib/stdio.in.h: Likewise.
48095         * lib/stdlib.in.h: Likewise.
48096         * lib/string.in.h: Likewise.
48097         * lib/strings.in.h: Likewise.
48098         * lib/sys_select.in.h: Likewise.
48099         * lib/sys_socket.in.h: Likewise.
48100         * lib/sys_stat.in.h: Likewise.
48101         * lib/sys_time.in.h: Likewise.
48102         * lib/sysexits.in.h: Likewise.
48103         * lib/time.in.h: Likewise.
48104         * lib/unistd.in.h: Likewise.
48105         * lib/wchar.in.h: Likewise.
48106         * lib/wctype.in.h: Likewise.
48107         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
48108         * modules/fchdir (Makefile.am): Likewise.
48109         * modules/fcntl (Makefile.am): Likewise.
48110         * modules/float (Makefile.am): Likewise.
48111         * modules/iconv_open (Makefile.am): Likewise.
48112         * modules/inttypes (Makefile.am): Likewise.
48113         * modules/locale (Makefile.am): Likewise.
48114         * modules/math (Makefile.am): Likewise.
48115         * modules/netinet_in (Makefile.am): Likewise.
48116         * modules/search (Makefile.am): Likewise.
48117         * modules/signal (Makefile.am): Likewise.
48118         * modules/stdarg (Makefile.am): Likewise.
48119         * modules/stdint (Makefile.am): Likewise.
48120         * modules/stdio (Makefile.am): Likewise.
48121         * modules/stdlib (Makefile.am): Likewise.
48122         * modules/string (Makefile.am): Likewise.
48123         * modules/strings (Makefile.am): Likewise.
48124         * modules/sys_select (Makefile.am): Likewise.
48125         * modules/sys_socket (Makefile.am): Likewise.
48126         * modules/sys_stat (Makefile.am): Likewise.
48127         * modules/sys_time (Makefile.am): Likewise.
48128         * modules/sysexits (Makefile.am): Likewise.
48129         * modules/time (Makefile.am): Likewise.
48130         * modules/unistd (Makefile.am): Likewise.
48131         * modules/wchar (Makefile.am): Likewise.
48132         * modules/wctype (Makefile.am): Likewise.
48133         Reported by Reuben Thomas <rrt@sc3d.org>.
48134
48135 2008-08-29  Bruno Haible  <bruno@clisp.org>
48136
48137         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
48138         any more.
48139
48140 2008-08-29  Simon Josefsson  <simon@josefsson.org>
48141
48142         * MODULES.html.sh (Misc): Add bitrotate.
48143
48144         * modules/bitrotate: New file.
48145
48146         * lib/bitrotate.h: New file.
48147
48148         * modules/bitrotate-tests: New file.
48149
48150         * tests/test-bitrotate.c: New file.
48151
48152         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
48153         on the bitrotate module.
48154
48155         * lib/arctwo.c: Use new bitrotate module.
48156
48157 2008-08-29  Jim Meyering  <meyering@redhat.com>
48158
48159         bootstrap: merge changes from coreutils
48160         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
48161         of copied files.  Remove a kludge, now that this is fixed.
48162         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
48163         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
48164         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
48165
48166 2008-08-29  Bruno Haible  <bruno@clisp.org>
48167
48168         * MODULES.html.sh: Remove --cvs-urls option.
48169
48170 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
48171
48172         maint.mk: adjust to file name change
48173         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
48174
48175 2008-08-28  Jim Meyering  <meyering@redhat.com>
48176
48177         * modules/getndelim2 (License): Relicense to LGPLv2+.
48178         Approved by Richard Stallman for the version of 1995, and by
48179         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
48180
48181 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
48182
48183         * lib/getdelim.c (flockfile, funlockfile): Make all of them
48184         dummy if one is not available.  Do not touch them if
48185         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
48186         (getc_maybe_unlocked): New.
48187         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
48188
48189 2008-08-26  Eric Blake  <ebb9@byu.net>
48190
48191         doc/INSTALL: resync from autoconf
48192         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
48193         (INSTALL_PRELUDE): Delete; this is done more efficiently by
48194         moving...
48195         * install.texi [!autoconf]: ...here.  Resync from autoconf.
48196         * INSTALL: Regenerate.
48197         * INSTALL.ISO: New file.
48198         * INSTALL.UTF-8: Likewise.
48199
48200 2008-08-26  Jim Meyering  <meyering@redhat.com>
48201
48202         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
48203         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
48204         these definitions conditional, so that they may be overridden, too.
48205
48206 2008-08-26  Bruno Haible  <bruno@clisp.org>
48207
48208         Generate INSTALL file variants with prettier quotes.
48209         * doc/Makefile (INSTALL_PRELUDE): New macro.
48210         (INSTALL): Use it.
48211         (INSTALL.ISO, INSTALL.UTF-8): New rules.
48212
48213 2008-08-26  Bruno Haible  <bruno@clisp.org>
48214
48215         Run makeinfo in an English locale.
48216         * doc/Makefile (MAKEINFO): New variable.
48217
48218 2008-08-26  Bruno Haible  <bruno@clisp.org>
48219
48220         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
48221         Suggested by Eric Blake.
48222
48223 2008-08-25  Bruno Haible  <bruno@clisp.org>
48224
48225         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
48226
48227 2008-08-25  Eric Blake  <ebb9@byu.net>
48228
48229         c-stack: test that stack overflow can be caught
48230         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
48231         that platform allows handling stack overflow; at least OS/2 EMX
48232         has sigaltstack, but crashes before transferring control to
48233         handler on stack overflow.
48234         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
48235         check for HAVE_STACK_OVERFLOW_HANDLING.
48236         Reported by Elbert Pol.
48237
48238 2008-08-25  Bruno Haible  <bruno@clisp.org>
48239
48240         * doc/posix-functions/strftime.texi: Fix description of strftime
48241         module.
48242
48243 2008-08-24  Bruno Haible  <bruno@clisp.org>
48244
48245         * tests/uniwidth/test-uc_width2.c: New file.
48246         * tests/uniwidth/test-uc_width2.sh: New file.
48247         * modules/uniwidth/width-tests (Files): Add the new files.
48248         (TESTS): Add uniwidth/test-uc_width2.sh.
48249         (TESTS_ENVIRONMENT): New variable.
48250         (check_PROGRAMS): Add test-uc_width2.
48251         (test_uc_width2_SOURCES): New variable.
48252
48253         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
48254         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
48255         not 0x00AB.
48256         Reported by Alexander V. Lukyanov <lav@netis.ru>.
48257
48258 2008-08-22  Eric Blake  <ebb9@byu.net>
48259
48260         test-lock, test-tls: mention why a test is skipped
48261         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
48262         skipped.
48263         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
48264
48265         count-one-bits: relax license
48266         * modules/count-one-bits (License): Relicense to LGPLv2+.
48267         Suggested by Ludovic Courtès, approved by Ben Pfaff.
48268
48269 2008-08-22  Andreas Schwab  <schwab@suse.de>
48270
48271         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
48272         Remove spurious space in assignment.
48273
48274 2008-08-21  Simon Josefsson  <simon@josefsson.org>
48275
48276         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
48277         Paul Eggert <eggert@CS.UCLA.EDU>.
48278
48279 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
48280
48281         * modules/gettext: Add m4/threadlib.m4.
48282
48283 2008-08-19  Eric Blake  <ebb9@byu.net>
48284
48285         test-c-stack: fix compilation failure on FreeBSD 5.0
48286         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
48287         headers before <sys/resource.h>.
48288         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
48289         the bug.
48290         Reported by Nelson H. F. Beebe.
48291
48292         strverscmp: migrate from "strverscmp.h" to <string.h>
48293         * modules/string (Makefile.am): Add new hooks.
48294         * modules/strverscmp (Files): Remove strverscmp.h.
48295         (Depends-on): Add string.
48296         (configure.ac): Add indicator.
48297         (Include): Mention new header.
48298         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
48299         defaults.
48300         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
48301         results.
48302         * lib/strverscmp.h: Delete.
48303         * lib/string.in.h (strverscmp): Provide declaration, when needed.
48304         * tests/test-strverscmp.c (includes): Adjust client.
48305         * lib/check-version.c (includes): Likewise.
48306         * NEWS: Document the change.
48307
48308         strverscmp: add unit test
48309         * modules/strverscmp-tests: New file.
48310         * tests/test-strverscmp.c: Likewise.
48311
48312 2008-08-19  Simon Josefsson  <simon@josefsson.org>
48313
48314         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
48315         regarding Windows crypto stuff, from Mono.
48316
48317 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
48318
48319         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
48320         if present, for intel RND.  Return error on failures.
48321
48322 2008-08-18  Ben Pfaff  <blp@gnu.org>
48323
48324         gitlog-to-changelog: give better diagnostic for failed pipe-open
48325         * build-aux/gitlog-to-changelog: Improve error message: suggest
48326         that the version of Git may be too old.
48327
48328 2008-08-18  Simon Josefsson  <simon@josefsson.org>
48329
48330         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
48331         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
48332
48333 2008-08-18  Bruno Haible  <bruno@clisp.org>
48334
48335         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
48336         pthread_in_use().
48337
48338 2008-08-18  Bruno Haible  <bruno@clisp.org>
48339
48340         * lib/glthread/threadlib.c: Include <pthread.h>.
48341
48342 2008-08-18  Bruno Haible  <bruno@clisp.org>
48343
48344         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
48345         glthread_recursive_lock_* macros.
48346         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
48347         Fix syntax error.
48348
48349 2008-08-18  Bruno Haible  <bruno@clisp.org>
48350
48351         * lib/glthread/thread.c: Avoid forcing a context switch right after
48352         thread creation.
48353
48354 2008-08-17  Bruno Haible  <bruno@clisp.org>
48355
48356         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
48357         * lib/glthread/thread.h: Provide Win32 specific implementation.
48358         * modules/thread (Files): Add lib/glthread/thread.c.
48359         (Depends-on): Add lock.
48360         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
48361
48362 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48363
48364         New module 'yield'.
48365         * modules/yield: New file.
48366         * lib/glthread/yield.h: New file.
48367         * m4/yield.m4: New file.
48368         * MODULES.html.sh (Multithreading): Add yield.
48369
48370 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48371
48372         New module 'thread'.
48373         * modules/thread: New file.
48374         * lib/glthread/thread.h: New file.
48375         * m4/thread.m4: New file.
48376         * MODULES.html.sh (Multithreading): Add thread.
48377
48378 2008-08-17  Bruno Haible  <bruno@clisp.org>
48379
48380         * lib/glthread/lock.h: Include <stdlib.h> always.
48381         * lib/glthread/tls.h: Likewise.
48382         * lib/glthread/cond.h: Likewise.
48383
48384 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48385
48386         New module 'cond'.
48387         * modules/cond: New file.
48388         * lib/glthread/cond.h: New file.
48389         * lib/glthread/cond.c: New file.
48390         * m4/cond.m4: New file.
48391         * MODULES.html.sh (Multithreading): Add cond.
48392
48393 2008-08-16  Eric Blake  <ebb9@byu.net>
48394
48395         c-stack: fix regression on Irix 5.3 from 2008-06-21
48396         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
48397         sa_sigaction...
48398         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
48399         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
48400         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
48401         * modules/signal (Makefile.am): Use the value.
48402         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
48403         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
48404         * doc/posix-headers/signal.texi (signal.h): Document this
48405         portability issue.
48406         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
48407         Reported by Tom G. Christensen.
48408
48409 2008-08-17  Bruno Haible  <bruno@clisp.org>
48410
48411         New module 'threadlib'.
48412         * modules/threadlib: New file.
48413         * lib/glthread/threadlib.c: New file, extracted from
48414         lib/glthread/lock.c.
48415         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
48416         functions.
48417         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
48418         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
48419         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
48420         macros.
48421         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
48422         (gl_DISABLE_THREADS): Remove macro.
48423         * modules/lock (Files): Remove build-aux/config.rpath.
48424         (Depends-on): Remove havelib. Add threadlib.
48425         (configure.ac-early): Remove section.
48426         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
48427         * modules/tls (Depends-on): Remove lock. Add threadlib.
48428         (Link): New section, copied from threadlib.
48429         * MODULES.html.sh (Multithreading): Add threadlib.
48430
48431 2008-08-14  Bruno Haible  <bruno@clisp.org>
48432
48433         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
48434         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
48435         glthread_rwlock_unlock, glthread_rwlock_destroy,
48436         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
48437         glthread_recursive_lock_destroy): Define as macros always.
48438         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
48439         glthread_lock_lock.
48440         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
48441         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
48442         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
48443         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
48444         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
48445         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
48446         (glthread_recursive_lock_lock_func): Renamed from
48447         glthread_recursive_lock_lock.
48448         (glthread_recursive_lock_unlock_func): Renamed from
48449         glthread_recursive_lock_unlock.
48450         (glthread_recursive_lock_destroy_func): Renamed from
48451         glthread_recursive_lock_destroy.
48452
48453 2008-08-14  Bruno Haible  <bruno@clisp.org>
48454
48455         * lib/glthread/lock.h: Renamed from lib/lock.h.
48456         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
48457         * lib/glthread/tls.h: Renamed from lib/tls.h.
48458         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
48459         * lib/fstrcmp.c: Update includes.
48460         * lib/strsignal.c: Update includes.
48461         * modules/lock (Files, Makefile.am): Update.
48462         (Include): Change to "glthread/lock.h".
48463         * modules/tls (Files, Makefile.am): Update.
48464         (Include): Change to "glthread/tls.h".
48465         * tests/test-lock.c: Update includes.
48466         * tests/test-tls.c: Update includes.
48467         * NEWS: Mention the renamed header files.
48468
48469 2008-08-11  Jim Meyering  <meyering@redhat.com>
48470
48471         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
48472
48473 2008-08-11  Eric Blake  <ebb9@byu.net>
48474
48475         test-c-stack: avoid C99-ism
48476         * tests/test-c-stack.c (main): Fix whitespace, move declaration
48477         before statement.
48478         Reported by Alain Guibert.
48479
48480 2008-08-10  Jim Meyering  <meyering@redhat.com>
48481
48482         ensure that return value of uinttostr et al are not ignored
48483         * lib/inttostr.h (__GNUC_PREREQ): Define.
48484         (__attribute_warn_unused_result__): Define.
48485         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
48486
48487 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
48488
48489         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
48490         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
48491
48492 2008-08-07  Jim Meyering  <meyering@redhat.com>
48493
48494         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
48495
48496         * modules/mkstemp (License): Relicense under LGPLv2+.
48497         * modules/tempname (License): Likewise.
48498
48499 2008-08-06  Bruno Haible  <bruno@clisp.org>
48500
48501         * lib/poll.c (poll): Further micro-optimization.
48502
48503 2008-08-06  Jim Meyering  <meyering@redhat.com>
48504
48505         inet_pton.c: use locale-independent tolower
48506         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
48507         (inet_pton6): Use c_tolower rather than tolower.
48508         * modules/inet_pton (Depends-on): Add c-ctype.
48509
48510 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
48511
48512         * lib/poll.c (poll): Avoid division when timeout is 0, cache
48513         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
48514
48515 2008-08-06  Jim Meyering  <meyering@redhat.com>
48516
48517         * modules/inet_pton (License): Relicense under LGPLv2+.
48518
48519 2008-08-03  Bruno Haible  <bruno@clisp.org>
48520
48521         Additional non-aborting API for lock and tls.
48522         * lib/lock.h: Include <errno.h>.
48523         (glthread_lock_init): New macro/function.
48524         (gl_lock_init): Define as wrapper around glthread_lock_init.
48525         (glthread_lock_lock): New macro/function.
48526         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
48527         (glthread_lock_unlock): New macro/function.
48528         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
48529         (glthread_lock_destroy): New macro/function.
48530         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
48531         (glthread_rwlock_init): New macro/function.
48532         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
48533         (glthread_rwlock_rdlock): New macro/function.
48534         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
48535         (glthread_rwlock_wrlock): New macro/function.
48536         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
48537         (glthread_rwlock_unlock): New macro/function.
48538         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
48539         (glthread_rwlock_destroy): New macro/function.
48540         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
48541         (glthread_recursive_lock_init): New macro/function.
48542         (gl_recursive_lock_init): Define as wrapper around
48543         glthread_recursive_lock_init.
48544         (glthread_recursive_lock_lock): New macro/function.
48545         (gl_recursive_lock_lock): Define as wrapper around
48546         glthread_recursive_lock_lock.
48547         (glthread_recursive_lock_unlock): New macro/function.
48548         (gl_recursive_lock_unlock): Define as wrapper around
48549         glthread_recursive_lock_unlock.
48550         (glthread_recursive_lock_destroy): New macro/function.
48551         (gl_recursive_lock_destroy): Define as wrapper around
48552         glthread_recursive_lock_destroy.
48553         (glthread_once): New macro/function.
48554         (gl_once): Define as wrapper around glthread_once.
48555         Update function declarations.
48556         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
48557         glthread_rwlock_init. Return error code.
48558         (glthread_rwlock_rdlock_multithreaded): Renamed from
48559         glthread_rwlock_rdlock. Return error code.
48560         (glthread_rwlock_wrlock_multithreaded): Renamed from
48561         glthread_rwlock_wrlock. Return error code.
48562         (glthread_rwlock_unlock_multithreaded): Renamed from
48563         glthread_rwlock_unlock. Return error code.
48564         (glthread_rwlock_destroy_multithreaded): Renamed from
48565         glthread_rwlock_destroy. Return error code.
48566         (glthread_recursive_lock_init_multithreaded): Renamed from
48567         glthread_recursive_lock_init. Return error code.
48568         (glthread_recursive_lock_lock_multithreaded): Renamed from
48569         glthread_recursive_lock_lock. Return error code.
48570         (glthread_recursive_lock_unlock_multithreaded): Renamed from
48571         glthread_recursive_lock_unlock. Return error code.
48572         (glthread_recursive_lock_destroy_multithreaded): Renamed from
48573         glthread_recursive_lock_destroy. Return error code.
48574         (glthread_once_call): Make static.
48575         (glthread_once_multithreaded): Renamed from glthread_once.
48576         * lib/tls.h: Include <errno.h>.
48577         (glthread_tls_key_init): New macro/function.
48578         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
48579         (glthread_tls_set): New macro/function.
48580         (gl_tls_set): Define as wrapper around glthread_tls_set.
48581         (glthread_tls_key_destroy): New macro/function.
48582         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
48583         Update function declarations.
48584         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
48585         glthread_tls_get.
48586         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
48587
48588 2008-08-04  Eric Blake  <ebb9@byu.net>
48589
48590         gnumakefile: use space, not TAB, outside of targets
48591         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
48592
48593 2008-08-02  Jim Meyering  <meyering@redhat.com>
48594
48595         getdate.y: avoid locale-dependent date parsing failure
48596         In Turkish locales, getdate would fail to recognize keywords
48597         containing a lowercase "i".  The solution is not to rely on
48598         locale-sensitive case-conversion.
48599         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
48600         (lookup_word): Use c_toupper in place of toupper.
48601         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
48602         Reported by Vefa Bicakci <bicave@superonline.com> in
48603         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
48604         * modules/getdate (Depends-on): Add c-ctype.
48605
48606 2008-08-02  Bruno Haible  <bruno@clisp.org>
48607
48608         * gnulib-tool (func_import): When updating or creating a .gitignore
48609         file, prepend each added line with a slash, and ignore leading slashes
48610         from the existing lines.
48611         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
48612
48613 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48614
48615         Portability fix for GNU make 3.79.1.
48616         * top/GNUmakefile: Avoid 'else COND', which older GNU make
48617         versions do not understand.
48618
48619 2008-08-01  Bruno Haible  <bruno@clisp.org>
48620
48621         Work around bug of HP-UX 10.20 cc with -0.0 literal.
48622         * tests/test-isnanf.h (zero): New variable.
48623         (main): Avoid literal -0.0f.
48624         * tests/test-isnand.h (zero): New variable.
48625         (main): Avoid literal -0.0.
48626         * tests/test-isnanl.h (zero): New variable.
48627         (main): Avoid literal -0.0L.
48628         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
48629         (test_float, test_double, test_long_double): Avoid literals -0.0f,
48630         -0.0, -0.0L.
48631         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
48632         (test_signbitd): Avoid literal -0.0.
48633         (test_signbitl): Avoid literal -0.0L.
48634         * tests/test-ceilf1.c (zero): New variable.
48635         (main): Avoid literal -0.0f.
48636         * tests/test-ceill.c (zero): New variable.
48637         (main): Avoid literal -0.0L.
48638         * tests/test-floorf1.c (zero): New variable.
48639         (main): Avoid literal -0.0f.
48640         * tests/test-floorl.c (zero): New variable.
48641         (main): Avoid literal -0.0L.
48642         * tests/test-roundf1.c (zero): New variable.
48643         (main): Avoid literal -0.0f.
48644         * tests/test-round1.c (zero): New variable.
48645         (main): Avoid literal -0.0.
48646         * tests/test-roundl.c (zero): New variable.
48647         (main): Avoid literal -0.0L.
48648         * tests/test-truncf1.c (zero): New variable.
48649         (main): Avoid literal -0.0f.
48650         * tests/test-trunc1.c (zero): New variable.
48651         (main): Avoid literal -0.0.
48652         * tests/test-truncl.c (zero): New variable.
48653         (main): Avoid literal -0.0L.
48654         * tests/test-frexp.c (zero): New variable.
48655         (main): Avoid literal -0.0.
48656         * tests/test-frexpl.c (zero): New variable.
48657         (main): Avoid literal -0.0L.
48658         * tests/test-ldexpl.c (zero): New variable.
48659         (main): Avoid literal -0.0L.
48660         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
48661         (zerod, zerol): New variables.
48662         (test_function): Avoid literals -0.0, -0.0L.
48663         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
48664         (zerod, zerol): New variables.
48665         (test_function): Avoid literals -0.0, -0.0L.
48666         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
48667         (zerod, zerol): New variables.
48668         (test_function): Avoid literals -0.0, -0.0L.
48669         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
48670         (zerod, zerol): New variables.
48671         (test_function): Avoid literals -0.0, -0.0L.
48672         * tests/test-strtod.c (zero): New variable.
48673         (main): Avoid literal -0.0.
48674         Reported by Jonathan C. Patschke <jp@centtech.com>.
48675
48676 2008-07-31  Jim Meyering  <meyering@redhat.com>
48677
48678         sha256.h: correct definition of SHA224_DIGEST_SIZE
48679         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
48680         Reported by Paulie Pena IV <paulie4@gmail.com>.
48681         Define as 224 / 8, rather than as a literal.
48682         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
48683         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
48684         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
48685
48686 2008-07-31  Bruno Haible  <bruno@clisp.org>
48687
48688         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
48689         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
48690         Reported by Jonathan Patschke <jp@centtech.com>.
48691
48692 2008-07-31  Bruno Haible  <bruno@clisp.org>
48693
48694         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
48695         Reported by Paolo Bonzini <bonzini@gnu.org>.
48696
48697 2008-07-30  Eric Blake  <ebb9@byu.net>
48698
48699         test-strtod: allow compilation without -lm
48700         * tests/test-strtod.c (main): Avoid link dependence on fabs.
48701         Reported by Dennis Clarke <blastwave@gmail.com>.
48702
48703 2008-07-28  Jim Meyering  <meyering@redhat.com>
48704
48705         bootstrap: work also when there are no .po files in po/
48706         * build-aux/bootstrap (update_po_files): Complete the change
48707         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
48708
48709 2008-07-27  Jim Meyering  <meyering@redhat.com>
48710
48711         * users.txt: Add zile.
48712
48713 2008-07-26  Ben Pfaff  <blp@gnu.org>
48714
48715         Add missing dependencies on new m4/exponent[fdl].m4 files.
48716         * modules/isnanf-nolibm: Add m4/exponentf.m4.
48717         * modules/isnand-nolibm: Add m4/exponentd.m4.
48718         * modules/isnanl-nolibm: Add m4/exponentl.m4.
48719         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
48720         m4/isnan[fdl].m4, because the macros actually used moved.
48721         Reported by Jim Meyering.
48722
48723 2008-07-14  Ben Pfaff  <blp@gnu.org>
48724
48725         Add isinf module.
48726         * lib/isinf.c: New file.
48727         * lib/math.in.h: Define isinf macro if we have decided to replace
48728         it.
48729         * m4/isinf.m4: New file.
48730         * m4/math_h.m4: Initialize and substitute variables for isinf
48731         module.
48732         * modules/isinf: New file.
48733         * modules/isinf-tests: New file.
48734         * modules/math: Add substitutions for new module.
48735         * tests/test-isinf.c: New file.
48736         * doc/posix-functions/isinf.texi: Mention new module.
48737         * MODULES.html.sh: Mention new module.
48738
48739 2008-07-14  Ben Pfaff  <blp@gnu.org>
48740
48741         Factor out some macros for use by additional modules.
48742         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
48743         exponentf.m4.
48744         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
48745         exponentd.m4.
48746         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
48747         file exponentl.m4.
48748         * m4/exponentf.m4: New file.
48749         * m4/exponentd.m4: New file.
48750         * m4/exponentl.m4: New file.
48751         * modules/isnanf: Use new file m4/exponentf.m4.
48752         * modules/isnand: Use new file m4/exponentd.m4.
48753         * modules/isnanl: Use new file m4/exponentl.m4.
48754
48755 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
48756
48757         mktime.c: normalize tp->tm_isdst value to -1/0/1.
48758         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
48759         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
48760         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
48761
48762         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
48763         readlink on platforms without PATH_MAX.
48764
48765 2008-07-21  Eric Blake  <ebb9@byu.net>
48766
48767         Warn, not fail, on stale version.
48768         * top/GNUmakefile (_curr-ver): Tone down previous patch.
48769
48770         Don't allow installation with stale devel version number.
48771         * top/GNUmakefile (_is-install-target): New macro.
48772         (_curr-ver): Forbid installation with stale version number.
48773
48774 2008-07-20  Bruno Haible  <bruno@clisp.org>
48775
48776         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
48777         TESTS_ENVIRONMENT.
48778         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
48779
48780 2008-07-20  Bruno Haible  <bruno@clisp.org>
48781
48782         * lib/c-stack.h (c_stack_action): Add documentation.
48783         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
48784
48785 2008-07-20  Bruno Haible  <bruno@clisp.org>
48786
48787         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
48788         * modules/readlink (License): Likewise.
48789
48790 2008-07-17  Eric Blake  <ebb9@byu.net>
48791
48792         * modules/c-stack (Link): Fix typo.
48793
48794         Make c-stack use libsigsegv, when available.
48795         * modules/c-stack (Depends-on): Add libsigsegv.
48796         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
48797         needed.
48798         * lib/c-stack.c (SIGSTKSZ): Define fallback.
48799         (segv_handler, overflow_handler, c_stack_action)
48800         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
48801         implementation when libsigsegv is available, but only when using
48802         the library is necessary.
48803         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
48804         comment, explaining why XSI check fails on Linux.
48805         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
48806         * tests/test-c-stack2.sh: Tweak skip message.
48807         * NEWS: Document new link-time requirements.
48808
48809 2008-07-16  Eric Blake  <ebb9@byu.net>
48810
48811         c-stack: Expose false positives when not using libsigsegv.
48812         * modules/c-stack-tests (Files): Expand test.
48813         * tests/test-c-stack.c (main): Add means to conditionally trigger
48814         non-overflow SIGSEGV.
48815         * tests/test-c-stack2.sh: New file.
48816
48817 2008-07-14  Bruno Haible  <bruno@clisp.org>
48818
48819         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
48820         Reported by Eric Blake.
48821
48822 2008-07-14  Sam Steingold  <sds@gnu.org>
48823             Bruno Haible  <bruno@clisp.org>
48824
48825         New module libsigsegv.
48826         * modules/libsigsegv: New file.
48827         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
48828         modifications.
48829         * MODULES.html.sh (Signal handling): New section.
48830
48831 2008-07-14  Bruno Haible  <bruno@clisp.org>
48832
48833         * modules/unictype/ctype-* (Description): Add the word "function".
48834         Improves the resulting doc in MODULES.html.
48835
48836 2008-07-12  Ben Pfaff  <blp@gnu.org>
48837
48838         Add longlong module.
48839         * modules/longlong: New file.
48840
48841 2008-07-12  Bruno Haible  <bruno@clisp.org>
48842
48843         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
48844         to empty.
48845
48846 2008-07-10  Ben Pfaff  <blp@gnu.org>
48847
48848         Add isnan module.
48849         * doc/posix-functions/isnan.texi: Mention new module.
48850         * lib/math.in.h: Define isnan macro if we have decided to replace
48851         it.
48852         * m4/isnan.m4: New file.
48853         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
48854         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
48855         also.
48856         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
48857         redundancy.
48858         * m4/math_h.m4: Initialize and substitute variables for isnan
48859         module.
48860         * modules/isnan: New file.
48861         * modules/isnan-tests: New file.
48862         * modules/math: Add substitutions for new module.
48863         * tests/test-isnan.c: New file.
48864         * MODULES.html.sh: Mention new module.
48865
48866 2008-07-10  Ben Pfaff  <blp@gnu.org>
48867
48868         Add isnanf module.
48869         * lib/isnanf.m4: New file.
48870         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
48871         (gl_HAVE_ISNANF_IN_LIBM): New macro.
48872         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
48873         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
48874         * modules/isnanf: New file.
48875         * modules/isnanf-tests: New file.
48876         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
48877         files.
48878         * tests/test-isnanf-nolibm.c: factored most of its contents into
48879         new file tests/test-isnanf.h.
48880         * tests/test-isnanf.h: New file.
48881         * tests/test-isnanf.c: New file.
48882         * MODULES.html.sh: Mention new module.
48883         * doc/glibc-functions/isnanf.texi: Mention new module.
48884
48885 2008-07-10  Ben Pfaff  <blp@gnu.org>
48886
48887         Add isnand module.
48888         * lib/isnand.h: New file.
48889         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
48890         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
48891         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
48892         functionality also.
48893         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
48894         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
48895         (gl_HAVE_ISNAND_IN_LIBM): New macro.
48896         * modules/isnand: New file.
48897         * modules/isnand-tests: New file.
48898         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
48899         files.
48900         * tests/test-isnand-nolibm.c: factored most of its contents into
48901         new file tests/test-isnand.h.
48902         * tests/test-isnand.h: New file.
48903         * tests/test-isnand.c: New file.
48904         * MODULES.html.sh: Mention new module.
48905
48906 2008-07-10  Ben Pfaff  <blp@gnu.org>
48907
48908         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
48909         * lib/isnand.h: Rename lib/isnand-nolibm.h.
48910         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
48911         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
48912         * modules/isnanf-nolibm: Update references to renamed files.
48913         * modules/isnand-nolibm: Likewise.
48914         * modules/isnanf-nolibm-tests: Likewise.
48915         * modules/isnand-nolibm-tests: Likewise.
48916         * lib/frexp.c: Likewise.
48917         * lib/isfinite.c: Likewise.
48918         * lib/signbitd.c: Likewise.
48919         * lib/signbitf.c: Likewise.
48920         * lib/vasnprintf.c: Likewise.
48921         * tests/test-ceilf1.c: Likewise.
48922         * tests/test-ceilf2.c: Likewise.
48923         * tests/test-floorf1.c: Likewise.
48924         * tests/test-floorf2.c: Likewise.
48925         * tests/test-frexp.c: Likewise.
48926         * tests/test-round1.c: Likewise.
48927         * tests/test-round2.c: Likewise.
48928         * tests/test-roundf1.c: Likewise.
48929         * tests/test-strtod.c: Likewise.
48930         * tests/test-trunc1.c: Likewise.
48931         * tests/test-trunc2.c: Likewise.
48932         * tests/test-truncf1.c: Likewise.
48933         * tests/test-truncf2.c: Likewise.
48934         * NEWS: Mention the renamed header files.
48935
48936 2008-07-11  Jim Meyering  <meyering@redhat.com>
48937
48938         vc-list-files: make the last-resort awk code more portable
48939         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
48940         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
48941         does not support it.
48942
48943 2008-07-10  Eric Blake  <ebb9@byu.net>
48944
48945         Work with tar's bootstrap.
48946         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
48947         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
48948         an m4 comment.
48949
48950 2008-07-09  Jim Meyering  <meyering@redhat.com>
48951
48952         posix-shell.m4: fix typo that made this test malfunction
48953         * m4/posix-shell.m4: Remove capitalization in variable name.
48954
48955 2008-07-08  Bruno Haible  <bruno@clisp.org>
48956
48957         * m4/onceonly.m4: Update comments.
48958         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48959
48960 2008-07-04  Jim Meyering  <meyering@redhat.com>
48961
48962         * users.txt: Add vc-dwim.
48963         (bison, coreutils): Use the gitweb URL.
48964
48965 2008-07-03  Jim Meyering  <meyering@redhat.com>
48966
48967         * users.txt: Add libffcall.  From Sam Steingold.
48968
48969 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
48970
48971         getdate.y: do not ignore TZ with relative day, month or year offset
48972         * lib/getdate.y (get_date): Move the tz-handling block to follow the
48973         relative-date-handling, since otherwise, the latter would clobber the
48974         sole output (an updated Start value) of the tz-handling block.
48975         * tests/test-getdate.c: Tests for the fix
48976
48977 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48978
48979         Recognize 'foo_LIBRARIES += libgnu.a'.
48980         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
48981         makefile snippet has already specified an installation location,
48982         also using '+='.
48983
48984 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
48985
48986         getdate.y: factor out common actions
48987         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
48988         Use them in place of open-coded actions.
48989
48990 2008-07-01  Simon Josefsson  <simon@josefsson.org>
48991
48992         Add self-test for getdate module.
48993         * modules/getdate-tests: New file.
48994         * tests/test-getdate.c: New file.
48995
48996 2008-06-29  Bruno Haible  <bruno@clisp.org>
48997
48998         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
48999         .gitignore.
49000         Reported by Sylvain Beucler <beuc@beuc.net>.
49001
49002 2008-06-29  Bruno Haible  <bruno@clisp.org>
49003
49004         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
49005         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
49006
49007 2008-06-29  Bruno Haible  <bruno@clisp.org>
49008
49009         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
49010         EXTRA_DIST.
49011         Reported by Sylvain Beucler <beuc@beuc.net>.
49012
49013 2008-06-26  Jim Meyering  <meyering@redhat.com>
49014
49015         make several modules depend on the "open" module
49016         This provides slightly increased consistency when opening-for-write
49017         the name of a non-directory spelled with a trailing slash.
49018         * modules/chdir-safer: Likewise.
49019         * modules/chown: Likewise.
49020         * modules/clean-temp: Likewise.
49021         * modules/copy-file: Likewise.
49022         * modules/fchdir: Likewise.
49023         * modules/fcntl-safer: Likewise.
49024         * modules/pipe: Likewise.
49025         * modules/utime: Likewise.
49026         Prompted by Eric Blake and Bruno Haible.
49027
49028 2008-06-24  Andreas Schwab  <schwab@suse.de>
49029
49030         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
49031         literals can be used as initializers for global variables.
49032
49033 2008-06-23  Eric Blake  <ebb9@byu.net>
49034
49035         Make gnulib-cache.m4 easier to diff.
49036         * gnulib-tool (func_import): Allow newlines when reading cached
49037         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
49038
49039 2008-06-23  Bruno Haible  <bruno@clisp.org>
49040
49041         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
49042         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
49043         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
49044         m4/signalblocking.m4.
49045         (gl_PREREQ_SIGACTION): Don't invoke it.
49046         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
49047         gl_PREREQ_SIG_HANDLER_H.
49048         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
49049         Don't check for sigaction here.
49050
49051 2008-06-23  Bruno Haible  <bruno@clisp.org>
49052
49053         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
49054         (install_handlers): Don't set the SA_RESETHAND flag.
49055
49056 2008-06-23  Bruno Haible  <bruno@clisp.org>
49057
49058         * m4/sigaction.m4: Comment fixes.
49059         * lib/signal.in.h: Likewise.
49060
49061 2008-06-23  Eric Blake  <ebb9@byu.net>
49062
49063         Fix typo.
49064         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
49065
49066         Avoid SA_ namespace.
49067         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
49068         Reported by Ralf Wildenhues.
49069
49070         Avoid test failure due to SA_RESTORER.
49071         * tests/test-sigaction.c (SA_MASK): New macro.
49072         (main): Avoid failing due to extension flags being set.
49073         Reported by Jim Meyering.
49074
49075         Revert use of sig-handler.h in sigprocmask.c.
49076         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
49077         it requires the existence of struct sigaction.
49078         * lib/sigprocmask.c (handler_t): Restore typedef.
49079         (rpl_signal, old_handlers): Use local type.
49080
49081 2008-06-22  Bruno Haible  <bruno@clisp.org>
49082
49083         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
49084         conditionally.
49085         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49086
49087 2008-06-22  Bruno Haible  <bruno@clisp.org>
49088
49089         * doc/posix-functions/siginterrupt.texi: Move note.
49090
49091         * lib/signal.in.h (SA_RESTART): New macro.
49092         * lib/sigaction.c: Update comment.
49093
49094         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
49095
49096         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
49097         (gl_PREREQ_SIGPROCMASK): Invoke it.
49098         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
49099
49100         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
49101
49102         * lib/sigprocmask.c: Update a comment.
49103
49104 2008-06-21  Eric Blake  <ebb9@byu.net>
49105
49106         Use sigaction module rather than signal().
49107         * modules/c-stack (Depends-on): Add sigaction.
49108         * modules/fatal-signal (Depends-on): Likewise.
49109         * modules/nanosleep (Depends-on): Likewise.
49110         * modules/sigprocmask (Files): Add sig-handler.h.
49111         * modules/sigaction (Files): Likewise.
49112         * lib/sig-handler.h (get_handler): New file, suggested by Paul
49113         Eggert.
49114         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
49115         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
49116         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
49117         (init_fatal_signals): Likewise.
49118         * lib/nanosleep.c (rpl_nanosleep): Likewise.
49119         (siginterrupt): Delete fallback.
49120         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
49121         instead.
49122         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
49123         siginterrupt.
49124
49125         New module sigaction, for mingw.
49126         * modules/sigaction: New module...
49127         * modules/sigaction-tests: ...and its test.
49128         * m4/sigaction.m4: New file.
49129         * lib/sigaction.c: Likewise.
49130         * tests/test-sigaction.c: Likewise.
49131         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
49132         * modules/signal (Makefile.am): Likewise.
49133         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
49134         needed.
49135         * doc/posix-headers/signal.texi (signal.h): Mention provided
49136         types.
49137         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
49138         that sigaction is preferable.
49139         * doc/posix-functions/sigaction.texi (sigaction): Mention new
49140         module.
49141         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49142         sigaction.
49143
49144         Improve robustness of sigprocmask by overriding signal.
49145         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
49146         is in use.
49147         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
49148         (SIGKILL, SIGSTOP): Provide fallbacks.
49149         (rpl_signal): Implement.
49150         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
49151         signal can be called inside handlers.
49152
49153         Fix nanosleep module on mingw.
49154         * modules/nanosleep (Depends-on): Add sys_select.
49155         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
49156
49157         Fix licensing of sigprocmask.
49158         * modules/raise (License): Relicense as LGPL.
49159
49160 2008-06-21  Bruno Haible  <bruno@clisp.org>
49161
49162         * lib/propername.c (proper_name_utf8): Don't use the transliterated
49163         result if it contains question marks.
49164         Reported by Michael Geng <linux@michaelgeng.de>.
49165
49166 2008-06-19  Bruno Haible  <bruno@clisp.org>
49167
49168         Fix CVS-ism.
49169         * doc/gnulib.texi: Include updated-stamp.texi.
49170         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
49171         (updated-stamp.texi): New rule.
49172         (gnulib.info): Depend on it.
49173         * doc/.gitignore: Add updated-stamp.texi.
49174         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
49175
49176 2008-06-19  Bruno Haible  <bruno@clisp.org>
49177
49178         * doc/Makefile (gnulib.info): Update and simplify dependencies.
49179         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
49180
49181 2008-06-19  Eric Blake  <ebb9@byu.net>
49182
49183         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
49184         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
49185         Reported by Stepan Kasal.
49186
49187 2008-06-18  Bruno Haible  <bruno@clisp.org>
49188
49189         * lib/fatal-signal.c (init_fatal_signals): Add comment.
49190         Reported by Eric Blake.
49191
49192 2008-06-18  Eric Blake  <ebb9@byu.net>
49193
49194         Work around cygwin 1.5.25 strsignal bug.
49195         * tests/test-strsignal.c: Allow for const char *.
49196         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
49197
49198 2008-06-18  Simon Josefsson  <simon@josefsson.org>
49199
49200         * users.txt: Update URL to article and add author/date
49201         information.
49202
49203 2008-06-17  Bruno Haible  <bruno@clisp.org>
49204
49205         New macro gl_DISABLE_THREADS.
49206         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
49207         if the user did not pass --enable-threads or --disable-threads option.
49208         (gl_DISABLE_THREADS): New macro.
49209         Reported by Eric Blake <ebb9@byu.net>.
49210
49211 2008-06-17  Bruno Haible  <bruno@clisp.org>
49212
49213         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
49214         when the macro ignores it.
49215         Based on a patch by Eric Blake <ebb9@byu.net>.
49216
49217 2008-06-17  Bruno Haible  <bruno@clisp.org>
49218
49219         * modules/tls (License): Change to LGPLv2+.
49220         Reported by Eric Blake.
49221
49222 2008-06-17  Eric Blake  <ebb9@byu.net>
49223
49224         Simplify c-stack prerequisites.
49225         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
49226         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
49227         no longer requires <ucontext.h> to exist.  Optimize setrlimit
49228         check.
49229         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
49230         <sys/resource.h>.
49231
49232         Move c-stack test into testsuite.
49233         * modules/c-stack-tests: New file.
49234         * lib/c-stack.c [DEBUG]: Move test program...
49235         * tests/test-c-stack.c: ...into this new file.  Skip rather than
49236         fail test if sigaltstack is lacking.
49237         * tests/test-c-stack.sh: New driver file.
49238
49239 2008-06-16  Eric Blake  <ebb9@byu.net>
49240
49241         Use raise module consistently.
49242         * modules/fatal-signal (Depends-on): Add raise.
49243         * modules/sigprocmask (Depends-on): Likewise.
49244         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
49245         * lib/sigprocmask.c (sigprocmask): Likewise.
49246         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
49247         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
49248
49249         Fix compliance bug in sigpending.
49250         * lib/sigprocmask.c (sigpending): Return pending array via
49251         parameter, not return value.
49252
49253 2008-06-14  Eric Blake  <ebb9@byu.net>
49254
49255         Improve obstack-printf test code.
49256         * tests/test-obstack-printf.c (test_function): Fix comment, and
49257         simplify usage of obstack_* in macros.  Add a test for coverage.
49258         Reported by Bruno Haible.
49259
49260 2008-06-14  Bruno Haible  <bruno@clisp.org>
49261
49262         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
49263         array size as a constant, not as a const variable.
49264         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
49265         AC_USE_SYSTEM_EXTENSIONS.
49266         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
49267         Test whether the obstack_printf function actually exists.
49268         * modules/obstack-printf (Depends-on): Add extensions.
49269         (Include): Remove obstack.h.
49270         * modules/obstack-printf-posix (Depends-on): Add extensions.
49271         (Include): Remove obstack.h.
49272
49273 2008-06-13  Eric Blake  <ebb9@byu.net>
49274
49275         Add obstack-printf and obstack-printf-posix modules.
49276         * modules/obstack-printf: New file.
49277         * modules/obstack-printf-posix: Likewise.
49278         * MODULES.html.sh (Misc): Mention them.
49279         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
49280         Likewise.
49281         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
49282         Likewise.
49283         * modules/stdio (Makefile.am): Accomodate new modules.
49284         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
49285         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
49286         Declare.
49287         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
49288         functions.
49289         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
49290         (gl_REPLACE_OBSTACK_PRINTF): New macros
49291         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
49292         * tests/test-obstack-printf.c: New file.
49293         * modules/obstack-printf-tests: Likewise.
49294         * modules/obstack-printf-posix-tests: Likewise.
49295
49296 2008-06-11  Bruno Haible  <bruno@clisp.org>
49297
49298         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
49299         * lib/open.c: Include errno.h.
49300         (open): Fail when attempting to write to a file that has a trailing
49301         slash.
49302         * tests/test-open.c (main): Test against trailing slash bug.
49303         * doc/posix-functions/open.texi: Mention the trailing slash bug.
49304
49305 2008-06-10  Bruno Haible  <bruno@clisp.org>
49306
49307         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
49308         for $? to work inside the trap command, with various /bin/sh-s.
49309         * tests/test-vc-list-files-cvs.sh: Likewise.
49310
49311 2008-06-10  Bruno Haible  <bruno@clisp.org>
49312
49313         * lib/acl-internal.h: Don't include gettext.h here.
49314         * lib/set-mode-acl.c: Include gettext.h here.
49315         * lib/copy-acl.c: Likewise.
49316
49317 2008-06-10  Bruno Haible  <bruno@clisp.org>
49318
49319         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
49320         * lib/wait-process.c (wait_subprocess): Likewise.
49321         * lib/execute.h (execute): Add termsigp argument.
49322         * lib/execute.c (execute): Likewise.
49323         * lib/csharpcomp.c (compile_csharp_using_pnet,
49324         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
49325         * lib/csharpexec.c (execute_csharp_using_pnet,
49326         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
49327         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
49328         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
49329         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
49330         is_jikes_present): Update.
49331         * lib/javaexec.c (execute_java_class): Update.
49332         * lib/javaversion.c (execute_and_read_line): Update.
49333         * NEWS: Document the changes.
49334         Reported by Eric Blake.
49335
49336 2008-06-10  Eric Blake  <ebb9@byu.net>
49337
49338         Add missing include.
49339         * tests/test-strstr.c (includes): Add <signal.h>.
49340         * tests/test-strcasestr.c (includes): Likewise.
49341         * tests/test-memmem.c (includes): Likewise.
49342
49343 2008-06-10  Bruno Haible  <bruno@clisp.org>
49344
49345         * lib/wait-process.c (wait_subprocess): Add an assertion.
49346
49347 2008-06-10  Bruno Haible  <bruno@clisp.org>
49348
49349         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
49350
49351 2008-06-10  Bruno Haible  <bruno@clisp.org>
49352
49353         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
49354         using alarm().
49355         * tests/test-strcasestr.c (main): Likewise.
49356         * tests/test-strstr.c (main): Likewise.
49357
49358 2008-06-09  Bruno Haible  <bruno@clisp.org>
49359
49360         Work around the Solaris 10 ACE ACLs ABI change.
49361         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
49362         declare if ACL_NO_TRIVIAL is present.
49363         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
49364         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
49365         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
49366         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
49367         define if ACL_NO_TRIVIAL is present.
49368         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
49369         and use the current ABI.
49370         (file_has_acl): Use same #if condition as elsewhere.
49371         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
49372         in use, and use the current ABI.
49373         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
49374         Reported by Jim Meyering.
49375
49376 2008-06-09  Eric Blake  <ebb9@byu.net>
49377
49378         Work around environments that (stupidly) ignore SIGALRM.
49379         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
49380         before using alarm().
49381         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49382         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49383         Reported by Ian Beckwith <ianb@erislabs.net>.
49384
49385         Produce autobuild blurb earlier in log.
49386         * modules/autobuild (configure.ac-early): Move AB_INIT here.
49387
49388 2008-06-09  Jim Meyering  <meyering@redhat.com>
49389         and Ondřej Vašík  <ovasik@redhat.com>
49390
49391         utimens.c: correct kernel bug work-around
49392         Ondřej Vašík found that the invalid return value of 280 indicates
49393         failure, not success, and the kernel bug we're trying to work
49394         around affects not just the utimensat call, but also the fallback
49395         futimens call.
49396         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
49397         not success.
49398         [HAVE_FUTIMENS]: Use the same work-around, here.
49399
49400 2008-06-09  Jim Meyering  <meyering@redhat.com>
49401
49402         add more guards around definition of ACE_-related code
49403         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
49404         ALLOW and ACE_OWNER are also defined.
49405
49406 2008-06-08  Bruno Haible  <bruno@clisp.org>
49407
49408         * lib/acl-internal.h: Add me as co-author.
49409         * lib/file-has-acl.c: Likewise.
49410         * lib/set-mode-acl.c: Likewise.
49411         * lib/copy-acl.c: Likewise.
49412
49413 2008-06-08  Bruno Haible  <bruno@clisp.org>
49414
49415         Add support for AIX ACLs.
49416         * lib/acl-internal.h (acl_nontrivial): New declaration.
49417         * lib/file-has-acl.c (acl_nontrivial): New function.
49418         (file_has_acl): Add implementation using AIX 4 ACL API.
49419         * lib/set-mode-acl.c (qset_acl): Likewise.
49420         * lib/copy-acl.c (qcopy_acl): Likewise.
49421
49422 2008-06-08  Bruno Haible  <bruno@clisp.org>
49423
49424         Add support for HP-UX ACLs.
49425         * lib/acl-internal.h (acl_nontrivial): New declaration.
49426         * lib/file-has-acl.c (acl_nontrivial): New function.
49427         (file_has_acl): Add implementation using HP-UX 11 ACL API.
49428         * lib/set-mode-acl.c (qset_acl): Likewise.
49429         * lib/copy-acl.c (qcopy_acl): Likewise.
49430
49431 2008-06-08  Bruno Haible  <bruno@clisp.org>
49432
49433         Add support for Cygwin ACLs.
49434         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
49435         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
49436         the chmod_or_fchmod call.
49437         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
49438
49439 2008-06-08  Bruno Haible  <bruno@clisp.org>
49440
49441         Fix bug with setuid modes in Solaris 10+ code.
49442         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
49443         succeeded, when the mode contains some special bits.
49444
49445 2008-06-08  Bruno Haible  <bruno@clisp.org>
49446
49447         Add support for Solaris 7..10 ACLs.
49448         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
49449         declarations.
49450         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
49451         functions.
49452         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
49453         * lib/set-mode-acl.c (qset_acl): Likewise.
49454         * lib/copy-acl.c (qcopy_acl): Likewise.
49455
49456 2008-06-08  Bruno Haible  <bruno@clisp.org>
49457
49458         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
49459         declaration.
49460         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
49461         (acl_access_nontrivial): Remove MacOS X case.
49462         (file_has_acl): Use acl_extended_nontrivial.
49463         * lib/copy-acl.c (qcopy_acl): Likewise.
49464
49465 2008-06-08  Bruno Haible  <bruno@clisp.org>
49466
49467         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
49468
49469 2008-06-08  Jim Meyering  <meyering@redhat.com>
49470
49471         * modules/acl (Maintainer): Add Bruno Haible.
49472
49473 2008-06-07  Bruno Haible  <bruno@clisp.org>
49474
49475         Improve support for Tru64 ACLs.
49476         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
49477         ACL on OSF/1.
49478
49479 2008-06-07  Bruno Haible  <bruno@clisp.org>
49480
49481         Add support for MacOS X ACLs.
49482         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
49483         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
49484         * lib/set-mode-acl.c (qset_acl): Likewise.
49485         * lib/copy-acl.c (qcopy_acl): Likewise.
49486
49487 2008-06-07  Bruno Haible  <bruno@clisp.org>
49488
49489         Fix memory leak introduced on 2008-05-22.
49490         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
49491         use.
49492
49493 2008-06-07  Bruno Haible  <bruno@clisp.org>
49494
49495         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
49496         to construct an empty ACL.
49497
49498 2008-06-07  Bruno Haible  <bruno@clisp.org>
49499
49500         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
49501         precisely.
49502         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
49503
49504 2008-06-07  Bruno Haible  <bruno@clisp.org>
49505
49506         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
49507         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
49508
49509 2008-06-07  Bruno Haible  <bruno@clisp.org>
49510
49511         * doc/posix-functions/_setjmp.texi: Explain the use of this function
49512         regardless of POSIX.
49513         * doc/posix-functions/_longjmp.texi: Likewise.
49514         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
49515         SystemV platform in this case.
49516
49517 2008-06-06  Eric Blake  <ebb9@byu.net>
49518
49519         Document abort() bugs.
49520         * doc/posix-functions/abort.texi (abort): Mention anomalies.
49521
49522         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
49523         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
49524         sigsetjmp.
49525         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
49526         siglongjmp, but only as a macro.
49527         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
49528         is obsolete.
49529         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
49530
49531         Tweak documentation to cover cygwin argz bugs.
49532         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
49533         argz bug fix; no code change needed since no cygwin releases
49534         occurred between the last fix and the bug being tested.
49535         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
49536         module and recently fixed cygwin bugs.
49537         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
49538         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
49539         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
49540         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
49541         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
49542         Likewise.
49543         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
49544         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
49545         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
49546         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
49547         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
49548         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
49549         Likewise.
49550
49551         Avoid gcc warning on cygwin.
49552         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
49553         !ACL_NO_TRIVIAL]: Avoid unused variable.
49554
49555 2008-06-05  Eric Blake  <ebb9@byu.net>
49556
49557         Be tolerant of UNKNOWN version in gnulib-tool test dir.
49558         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
49559         git-version-gen fails to come up with a version.
49560         Reported by Simon Josefsson.
49561
49562 2008-06-05  Jim Meyering  <meyering@redhat.com>
49563             Paul Eggert  <eggert@cs.ucla.edu>
49564
49565         utimens.c: work around a probable Linux kernel bug
49566         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
49567         appears to be a kernel bug that causes utimensat to return 280
49568         instead of 0, indicating success.
49569
49570 2008-06-04  Bruno Haible  <bruno@clisp.org>
49571
49572         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
49573         2008-06-01 commit.
49574
49575 2008-06-04  Bruno Haible  <bruno@clisp.org>
49576
49577         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
49578         * lib/file-has-acl.c (acl_access_nontrivial): New function.
49579         (file_has_acl): Use it. Save errno afterwards.
49580         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
49581
49582 2008-06-03  Bruno Haible  <bruno@clisp.org>
49583
49584         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
49585         draft code. Simplify #ifs.
49586         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
49587         Put Solaris code after POSIX-draft code. Fix comments regarding
49588         Solaris 10, HP-UX. Mention Cygwin.
49589         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
49590
49591 2008-06-03  Eric Blake  <ebb9@byu.net>
49592
49593         Provide fallback for older kernels.
49594         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
49595         Provide runtime fallback if kernel lacks support.
49596         Reported by Mike Frysinger.
49597
49598 2008-06-02  Bruno Haible  <bruno@clisp.org>
49599
49600         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
49601         it exists.
49602
49603 2008-06-02  Bruno Haible  <bruno@clisp.org>
49604
49605         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
49606         * lib/copy-acl.c (qcopy_acl): Update comment.
49607
49608 2008-06-02  Bruno Haible  <bruno@clisp.org>
49609
49610         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
49611         like ACL APIs.
49612
49613 2008-06-02  Bruno Haible  <bruno@clisp.org>
49614
49615         * tests/test-file-has-acl.sh: Use different code for Cygwin.
49616         * tests/test-set-mode-acl.sh: Likewise.
49617         * tests/test-copy-acl.sh: Likewise.
49618         * tests/test-copy-file.sh: Likewise.
49619
49620 2008-06-02  Bruno Haible  <bruno@clisp.org>
49621
49622         * tests/test-file-has-acl.sh: Remove unused code.
49623
49624 2008-06-01  Bruno Haible  <bruno@clisp.org>
49625
49626         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
49627         (copy_acl): Just a wrapper around qcopy_acl that emits the error
49628         messages.
49629         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
49630
49631 2008-06-01  Bruno Haible  <bruno@clisp.org>
49632
49633         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
49634         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
49635         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
49636         APIs.
49637         * modules/acl-tests (configure.ac): Remove tests now contained in
49638         m4/acl.m4.
49639
49640 2008-06-02  Jim Meyering  <meyering@redhat.com>
49641
49642         announce-gen: use a better key-server host name
49643         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
49644         it may be more consistently reliable.  Suggested by Werner Koch
49645         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
49646
49647 2008-06-01  Bruno Haible  <bruno@clisp.org>
49648
49649         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
49650         Reported by Voroskoi Andras <voroskoi@gmail.com>.
49651
49652 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
49653
49654         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
49655
49656 2008-06-01  Bruno Haible  <bruno@clisp.org>
49657
49658         New ACL tests.
49659         * tests/test-file-has-acl.sh: New file.
49660         * tests/test-file-has-acl.c: New file.
49661         * tests/test-set-mode-acl.sh: New file.
49662         * tests/test-set-mode-acl.c: New file.
49663         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
49664         * tests/test-copy-acl.c: New file.
49665         * modules/acl-tests: New file, based on modules/copy-file-tests.
49666         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
49667         (Depends-on): Add acl-tests.
49668         (configure.ac): Remove checks.
49669         (Makefile.am): Don't create test-sameacls program here any more.
49670
49671 2008-06-01  Bruno Haible  <bruno@clisp.org>
49672
49673         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
49674         * tests/test-sameacls.c: Include progname.h.
49675         (main): Invoke set_program_name. Portability fixes for MacOS X,
49676         Solaris, HP-UX.
49677
49678 2008-06-01  Bruno Haible  <bruno@clisp.org>
49679
49680         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
49681         function.
49682         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
49683
49684 2008-06-01  Bruno Haible  <bruno@clisp.org>
49685
49686         * modules/rpmatch (Depends-on): Add strdup.
49687
49688 2008-06-01  Bruno Haible  <bruno@clisp.org>
49689
49690         * lib/pipe.c: Include unistd-safer.h.
49691         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
49692         * modules/pipe (Depends-on): Add unistd-safer.
49693
49694 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49695
49696         * modules/autobuild (configure.ac): Call AB_INIT.
49697
49698 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49699
49700         * tests/test-getaddrinfo.c: Don't print debug messages by default.
49701         Suggested by Bruno Haible <bruno@clisp.org>.
49702
49703 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49704
49705         * tests/test-base64.c: Cast size_t to unsigned long when invoking
49706         printf.  Use %lu instead of %d.  Reported by Bruno Haible
49707         <bruno@clisp.org>.
49708
49709 2008-05-29  Eric Blake  <ebb9@byu.net>
49710
49711         Prefer new POSIX 200x interfaces over futimesat.
49712         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
49713         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
49714         when available.
49715         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
49716
49717 2008-05-28  Bruno Haible  <bruno@clisp.org>
49718
49719         * modules/stpcpy (License): Change to LGPLv2+.
49720         Requested by David Lutterkort <dlutter@redhat.com>.
49721
49722 2008-05-27  Bruno Haible  <bruno@clisp.org>
49723
49724         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
49725         current mingw.
49726         Reported by Jose E. Marchesi <jemarch@gnu.org>.
49727
49728 2008-05-27  Bruno Haible  <bruno@clisp.org>
49729
49730         * modules/iconv_open (Link): New section, from module 'iconv'.
49731         * modules/striconv (Link): Likewise.
49732         * modules/striconveh (Link): Likewise.
49733         * modules/xstriconv (Link): Likewise.
49734         * modules/unicodeio (Link): Likewise.
49735         * modules/propername (Link): Likewise.
49736         Reported by Jim Meyering.
49737
49738 2008-05-26  Jim Meyering  <meyering@redhat.com>
49739
49740         sha256: do not artificially restrict buffer length to be < 2^32
49741         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
49742         uint32_t to size_t.
49743         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
49744         to match.
49745
49746         avoid unaligned access errors, e.g., on sparc
49747         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
49748         direct access through a possibly-unaligned uint64* pointer.
49749         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
49750         direct access through a possibly-unaligned uint32* pointer.
49751         Prompted by this patch from Tom "spot" Callaway:
49752         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
49753
49754         sha512.c: fix typo in comment
49755         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
49756
49757 2008-05-25  Bruno Haible  <bruno@clisp.org>
49758
49759         * lib/set-mode-acl.c: Renamed from lib/acl.c.
49760         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
49761         (Makefile.am): Update lib_SOURCES.
49762
49763 2008-05-25  Bruno Haible  <bruno@clisp.org>
49764
49765         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
49766
49767 2008-05-25  Jim Meyering  <meyering@redhat.com>
49768
49769         useless-if-before-free: freed expr may have white-space differences
49770         * build-aux/useless-if-before-free: Recognize cases in which the
49771         freed expression differs from the tested one in embedded white
49772         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
49773         $1 was used, so we can't make any regexp shy.  Improved tests now
49774         detect this.
49775
49776         useless-if-before-free: accept white space in the expression.
49777         * build-aux/useless-if-before-free: For now, any white space
49778         in the expression must be identical in the free argument.
49779
49780         useless-if-before-free: efficiency tweak
49781         * build-aux/useless-if-before-free: Make the expression-matching
49782         regexp "shy".
49783         Make the *outer* regexp shy, not the expr-matching one.
49784
49785         update code-in-comment to accept cast of free arg
49786         * build-aux/useless-if-before-free: Update regexp.
49787
49788 2008-05-25  Bruno Haible  <bruno@clisp.org>
49789
49790         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
49791         * modules/copy-file-tests (Files, Makefile.am): Update.
49792         * tests/test-copy-file.c (func_test_copy): Update.
49793
49794 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
49795
49796         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
49797
49798 2008-05-23  Bruno Haible  <bruno@clisp.org>
49799
49800         Improve support for ACLs on OSF/1.
49801         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
49802         Remove fallback for unknown flavors of ACLs.
49803
49804 2008-05-22  Bruno Haible  <bruno@clisp.org>
49805
49806         Add support for ACLs on OSF/1.
49807         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
49808         replacements.
49809         (acl_free_text): New macro fallback.
49810         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
49811         acl_free.
49812         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
49813         acl_free_text function. Require AC_C_INLINE.
49814
49815 2008-05-22  Bruno Haible  <bruno@clisp.org>
49816
49817         Make copy_acl work on MacOS X 10.5.
49818         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
49819         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
49820         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
49821         If MODE_INSIDE_ACL, don't assume that every system has the same text
49822         representation for ACLs as FreeBSD.
49823         * lib/copy-acl.c (copy_acl): Add support for platforms with
49824         !MODE_INSIDE_ACL.
49825         * lib/file-has-acl.c (file_has_acl): Likewise.
49826         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
49827         FreeBSD, MacOS X, or IRIX, respectively.
49828
49829 2008-05-22  Bruno Haible  <bruno@clisp.org>
49830
49831         * lib/acl.h: Don't include <sys/acl.h>.
49832         (GETACLCNT): Move fallback to lib/acl-internal.h.
49833         * lib/acl-internal.h: Include <sys/acl.h> here.
49834         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
49835
49836 2008-05-22  Bruno Haible  <bruno@clisp.org>
49837
49838         Split off copy_acl function to separate file.
49839         * lib/copy-acl.c: New file, extracted from lib/acl.c.
49840         * lib/acl.c (copy_acl): Moved function to separate file.
49841         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
49842         * modules/acl (Files): Add lib/copy-acl.c.
49843         (Makefiles.am): Augment lib_SOURCES.
49844
49845 2008-05-22  Bruno Haible  <bruno@clisp.org>
49846
49847         * modules/copy-file-tests: New file.
49848         * tests/test-copy-file.sh: New file.
49849         * tests/test-copy-file.c: New file.
49850         * tests/test-copy-file-sameacls.c: New file.
49851
49852 2008-05-22  Eric Blake  <ebb9@byu.net>
49853
49854         Avoid gcc warning.
49855         * tests/test-memcmp.c (main): Pass NULL indirectly.
49856
49857 2008-05-21  Bruno Haible  <bruno@clisp.org>
49858
49859         Add reference doc about ACLs.
49860         * doc/acl-resources.txt: New file.
49861         * doc/acl-cygwin.txt: New file.
49862
49863 2008-05-21  Bruno Haible  <bruno@clisp.org>
49864
49865         Avoid one more warning from gcc.
49866         * lib/vasnprintf.c (IF_LINT): Update comments.
49867         (VASNPRINTF): Use it also for the 'prefix' array initializer.
49868
49869 2008-05-21  Jim Meyering  <meyering@redhat.com>
49870
49871         avoid a warning from gcc
49872         * lib/vasnprintf.c (IF_LINT): Define.
49873         (scale10_round_decimal_long_double):
49874         Use it to avoid a "may be used uninitialized" warning.
49875         (scale10_round_decimal_double): Likewise.
49876
49877 2008-05-21  Simon Josefsson  <simon@josefsson.org>
49878
49879         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
49880         declared.
49881
49882 2008-05-20  Bruno Haible  <bruno@clisp.org>
49883
49884         * tests/test-memcmp.c (main): Test also the sign of the result. Test
49885         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
49886
49887 2008-05-20  Simon Josefsson  <simon@josefsson.org>
49888
49889         * modules/memcmp-tests: New file.
49890         * tests/test-memcmp.c: New file.
49891
49892 2008-05-19  Bruno Haible  <bruno@clisp.org>
49893
49894         * modules/propername (Notice, configure.ac): Put quoted "..." into
49895         --keyword option.
49896         * lib/propername.h: Update comments accordingly.
49897         Reported by Eric Blake.
49898
49899 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
49900
49901         * modules/getpass-gnu (Depends-on): Add fseeko.
49902
49903 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49904
49905         * modules/base64-tests: New file.
49906
49907 2008-05-19  Bo Borgerson <gigabo@gmail.com>
49908
49909         * lib/base64.c (base64_decode_ctx): If a decode context structure
49910         was passed in use it to ignore newlines.  If a context structure
49911         was _not_ passed in, continue to treat newlines as garbage (this
49912         is the historical behavior).  Formerly base64_decode.
49913         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49914         takes a decode context structure.
49915         * lib/base64.h (base64_decode): Macro for four-argument calls.
49916         (base64_decode_alloc): Likewise.
49917         * lib/base64.c (base64_decode_ctx): If a decode context structure
49918         was passed in use it to ignore newlines.  If a context structure
49919         was _not_ passed in, continue to treat newlines as garbage (this
49920         is the historical behavior).  Formerly base64_decode.
49921         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49922         takes a decode context structure.
49923         * lib/base64.h (base64_decode): Macro for four-argument calls.
49924         (base64_decode_alloc): Likewise.
49925
49926 2008-05-19  Jim Meyering  <meyering@redhat.com>
49927
49928         avoid a warning from gcc
49929         * lib/trim.c (IF_LINT): Define.
49930         (trim2): Use it to avoid a "may be used uninitialized" warning.
49931
49932         Fix doc typo.
49933         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
49934
49935 2008-05-19  Bruno Haible  <bruno@clisp.org>
49936
49937         * doc/glibc-functions/getpass.texi: Document limits of other
49938         implementations.
49939
49940 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49941             Bruno Haible <bruno@clisp.org>
49942
49943         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
49944
49945 2008-05-18  Bruno Haible  <bruno@clisp.org>
49946
49947         * modules/propername: New file, from GNU gettext.
49948         * lib/propername.h: New file, from GNU gettext.
49949         * lib/propername.c: New file, from GNU gettext.
49950         * MODULES.html.sh (Internationalization functions): Add propername.
49951
49952 2008-05-16  Jim Meyering  <meyering@redhat.com>
49953             Bruno Haible  <bruno@clisp.org>
49954
49955         Avoid some warnings from "gcc -Wshadow".
49956         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
49957
49958 2008-05-15  Eric Blake  <ebb9@byu.net>
49959
49960         Extend previous patch to cygwin 1.7.0.
49961         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
49962         fast implementation in cygwin >= 1.7.0.
49963         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49964         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49965
49966 2008-05-15  Bruno Haible  <bruno@clisp.org>
49967
49968         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
49969         implementation in glibc >= 2.9.
49970         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49971         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49972
49973 2008-05-15  Bruno Haible  <bruno@clisp.org>
49974
49975         * MODULES.html.sh (Internationalization functions): Remove linebreak.
49976         (Unicode string functions): Add unilbrk/*.
49977         Reported by Karl Berry.
49978
49979 2008-05-15  Eric Blake  <ebb9@byu.net>
49980
49981         Fix violation of <stdbool.h> replacement in regex.
49982         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
49983         * lib/regexec.c (re_search_internal): Likewise.
49984         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
49985
49986 2008-05-15  Jim Meyering  <meyering@redhat.com>
49987
49988         avoid distracting test output when git or cvs is not found
49989         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
49990         * tests/test-vc-list-files-git.sh: Likewise.
49991
49992 2008-05-15  Eric Blake  <ebb9@byu.net>
49993
49994         Glibc finally accepted the memmem speedup code, bugzilla #5514.
49995         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
49996         glibc version.
49997         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
49998         * doc/posix-functions/strstr.texi (strstr): Likewise.
49999         * lib/str-two-way.h (MAX): Sychronize with glibc.
50000
50001 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
50002
50003         * lib/regcomp.c (optimize_utf8): Add a note on why we test
50004         opr.ctx_type.
50005         (calc_first): Initialize constraint field.
50006         (duplicate_node_closure): Use it instead of special casing ANCHORS.
50007         Fix grammar.
50008         (duplicate_node): Merge constraint field for all node types.
50009         (calc_eclosure_iter): Look at constraint field for all node types.
50010         * lib/regex_internal.c (create_cd_newstate): Don't look at
50011         opr.ctx_type.
50012
50013 2008-05-14  Bruno Haible  <bruno@clisp.org>
50014
50015         Help GCC to do better code generation.
50016         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
50017         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
50018         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
50019         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
50020         Declare with attribute 'malloc' if supported.
50021
50022 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
50023
50024         use "echo STR|wc -c" rather than unportable "expr length STR"
50025         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
50026         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
50027
50028 2008-05-14  Jim Meyering  <meyering@redhat.com>
50029
50030         use dd ibs=$n count=1 ... rather than less-portable head -c$n
50031         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
50032         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
50033         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
50034         via Collin Lasse.
50035
50036 2008-05-14  Eric Blake  <ebb9@byu.net>
50037
50038         Avoid quadratic growth in gl_LIBSOURCES.
50039         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
50040         Suggested by Bruno Haible.
50041
50042         Test xmemdup0.
50043         * modules/xmemdup0-tests: New file.
50044         * tests/test-xmemdup0.c: Likewise.
50045
50046 2008-05-13  Eric Blake  <ebb9@byu.net>
50047
50048         Split xmemdup0 into its own module.
50049         * modules/xmemdup0: New file.
50050         * lib/xmemdup0.h: Likewise.
50051         * lib/xmemdup0.c: Likewise.
50052         * MODULES.html.sh (Memory management functions): Add xmemdup0.
50053         * lib/xalloc.h (xmemdup0): Remove.
50054         * lib/xmalloc.c (xmemdup0): Likewise.
50055
50056 2008-05-13  Eric Blake  <ebb9@byu.net>
50057             Bruno Haible  <bruno@clisp.org>
50058
50059         Reduce number of forks required during autoconf.
50060         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
50061         and gl_LIBSOURCES_DIR.
50062         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
50063         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
50064         m4_syscmd per file.
50065         <m4_foreach_w>: Move...
50066         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
50067
50068 2008-05-13  Eric Blake  <ebb9@byu.net>
50069
50070         * gnulib-tool: Fix various comment typos.
50071
50072 2008-05-12  Bruno Haible  <bruno@clisp.org>
50073
50074         Tailor the linebreaking algorithm.
50075         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
50076
50077 2008-05-12  Bruno Haible  <bruno@clisp.org>
50078
50079         Update to Unicode 5.0.0.
50080         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
50081         LBP_JV, LBP_JT. Redistribute values.
50082         (unilbrk_table): Change size.
50083         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
50084         Unicode TR#14 rev. 22.
50085         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
50086         LBP_JV, LBP_JT. Redistribute values.
50087         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
50088         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
50089         Update.
50090         * lib/unilbrk/lbrkprop1.h: Regenerated.
50091         * lib/unilbrk/lbrkprop2.h: Regenerated.
50092         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
50093         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
50094         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
50095         Likewise.
50096         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
50097         Likewise.
50098         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
50099         result.
50100         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
50101         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
50102         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
50103         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
50104         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
50105         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
50106
50107 2008-05-11  Bruno Haible  <bruno@clisp.org>
50108
50109         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
50110
50111 2008-05-11  Bruno Haible  <bruno@clisp.org>
50112
50113         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
50114         * modules/unilbrk/gen-lbrk: New file.
50115
50116 2008-05-11  Bruno Haible  <bruno@clisp.org>
50117
50118         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
50119         * m4/sha512.m4 (gl_SHA512): Likewise.
50120
50121 2008-05-11  Jim Meyering  <meyering@redhat.com>
50122
50123         New modules: crypto/sha256, crypto/sha512 (from coreutils)
50124         * modules/crypto/sha256: New file.
50125         * modules/crypto/sha512: Likewise.
50126         * lib/sha256.c: Likewise.
50127         * lib/sha256.h: Likewise.
50128         * lib/sha512.c: Likewise.
50129         * lib/sha512.h: Likewise.
50130         * lib/u64.h: Likewise.
50131         * m4/sha256.m4: Likewise.
50132         * m4/sha512.m4: Likewise.
50133         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
50134
50135 2008-05-10  Bruno Haible  <bruno@clisp.org>
50136
50137         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
50138         (Input/Output <stdio.h>): Add xprintf.
50139         (Signal handling <signal.h>): Add strsignal.
50140         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
50141         (Core language properties): Add func.
50142         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
50143         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
50144         strings.
50145         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
50146         (Input/output): New section.
50147         (File system functions): Add openat-die, stat-macros.
50148         (Networking functions): Add sockets.
50149         (Unicode string functions): Add unictype/*.
50150         (Support for building libraries and executables): Add gperf.
50151         (Support for building documentation): Add agpl-3.0.
50152         (Misc): Add nocrash.
50153
50154 2008-05-10  Bruno Haible  <bruno@clisp.org>
50155
50156         * modules/unictype/gen-ctype: New file.
50157
50158 2008-05-10  Jim Meyering  <meyering@redhat.com>
50159
50160         Make chdir-safer.c more efficient on a system with no symlinks.
50161         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
50162         also if ELOOP is zero.  Suggested by Bruno Haible.
50163
50164         Make chdir-safer.c slightly safer.
50165         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
50166         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
50167
50168         Avoid compile failure on systems without ELOOP (like mingw).
50169         * lib/chdir-safer.c (ELOOP): Define if not already defined.
50170         Reported by Bruno Haible.
50171
50172 2008-05-10  Bruno Haible  <bruno@clisp.org>
50173
50174         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
50175         (is_utf8_encoding): Use a case-insensitive comparison.
50176         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
50177         streq.
50178
50179 2008-05-10  Bruno Haible  <bruno@clisp.org>
50180
50181         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
50182         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
50183         * lib/unilbrk/ulc-common.h (iconv_string_length,
50184         iconv_string_keeping_offsets): Remove declarations.
50185         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
50186         Don't include <iconv.h>, streq.h, xsize.h.
50187         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
50188         conversion.
50189         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
50190         <iconv.h>, streq.h, xsize.h.
50191         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
50192         conversion.
50193         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
50194         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
50195         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
50196         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
50197
50198 2008-05-10  Bruno Haible  <bruno@clisp.org>
50199
50200         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
50201         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
50202
50203         * modules/unilbrk/u32-width-linebreaks-tests: New file.
50204         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
50205
50206         * modules/unilbrk/u16-width-linebreaks-tests: New file.
50207         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
50208
50209         * modules/unilbrk/u8-width-linebreaks-tests: New file.
50210         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
50211
50212         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
50213         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
50214
50215         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
50216         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
50217
50218         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
50219         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
50220
50221         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
50222         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
50223
50224 2008-05-10  Bruno Haible  <bruno@clisp.org>
50225
50226         Split up 'linebreak' module.
50227         * lib/unilbrk.h: New file, based on lib/linebreak.h.
50228         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
50229         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
50230         modifications.
50231         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
50232         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
50233         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
50234         lib/linebreak.c.
50235         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
50236         lib/linebreak.c.
50237         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
50238         lib/linebreak.c.
50239         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
50240         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
50241         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
50242         lib/linebreak.c.
50243         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
50244         lib/linebreak.c.
50245         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
50246         lib/linebreak.c.
50247         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
50248         lib/linebreak.c.
50249         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
50250         lib/linebreak.c.
50251         * modules/unilbrk/base: New file.
50252         * modules/unilbrk/tables: New file.
50253         * modules/unilbrk/u8-possible-linebreaks: New file.
50254         * modules/unilbrk/u16-possible-linebreaks: New file.
50255         * modules/unilbrk/u32-possible-linebreaks: New file.
50256         * modules/unilbrk/ulc-common: New file.
50257         * modules/unilbrk/ulc-possible-linebreaks: New file.
50258         * modules/unilbrk/u8-width-linebreaks: New file.
50259         * modules/unilbrk/u16-width-linebreaks: New file.
50260         * modules/unilbrk/u32-width-linebreaks: New file.
50261         * modules/unilbrk/ulc-width-linebreaks: New file.
50262         * lib/linebreak.h: Remove file.
50263         * lib/linebreak.c: Remove file.
50264         * m4/linebreak.m4: Remove file.
50265         * modules/linebreak: Remove file.
50266         * NEWS: Mention the changes.
50267
50268 2008-05-09  Eric Blake  <ebb9@byu.net>
50269
50270         Add xmemdup0.
50271         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
50272         implementation.
50273         * lib/xmalloc.c (xmemdup0): New C implementation.
50274
50275 2008-05-08  Bruno Haible  <bruno@clisp.org>
50276
50277         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
50278
50279 2008-05-07  Eric Blake  <ebb9@byu.net>
50280
50281         Support cross-compilation of <wctype.h>.
50282         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
50283         AC_CACHE_CHECK.
50284
50285 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
50286
50287         * build-aux/vc-list-files: Add support for bzr.
50288
50289 2008-05-03  Jim Meyering  <meyering@redhat.com>
50290
50291         avoid failed assertion with tight malloc
50292         * tests/test-getndelim2.c: Correct an off-by-one assertion.
50293
50294 2008-05-03  Simon Josefsson  <simon@josefsson.org>
50295
50296         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
50297         are needed from arpa/inet.h.
50298         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
50299         Reported by Bruno Haible.
50300
50301 2008-05-02  Jim Meyering  <meyering@redhat.com>
50302
50303         avoid compilation error on FreeBSD 6
50304         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
50305
50306 2008-05-01  Jim Meyering  <meyering@redhat.com>
50307
50308         useless-if-before-free: correct --help's exit status description
50309         * build-aux/useless-if-before-free (usage): Like grep, exit 0
50310         for one or more matches, etc.  Reported by Bruno Haible.
50311
50312         vc-list-files: make the stand-alone gnulib test work
50313         * modules/vc-list-files-tests (configure.ac):
50314         Define and AC_SUBST abs_aux_dir.
50315         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
50316         $(abs_top_srcdir) to each script and having each of them
50317         duplicate the work of setting PATH, set PATH here, using
50318         the new variable, abs_aux_dir instead.
50319         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
50320         * tests/test-vc-list-files-git.sh: Likewise.
50321         Reported by Bruno Haible.
50322
50323 2008-05-01  Bruno Haible  <bruno@clisp.org>
50324
50325         * lib/getndelim2.c (getndelim2): Fix newsize computation during
50326         reallocation. Rename 'done' to 'found_delimiter'.
50327
50328 2008-05-01  Jim Meyering  <meyering@redhat.com>
50329
50330         vc-list-files: accommodate /bin/sh like the one from Solaris 10
50331         * build-aux/vc-list-files: Use `...`, not $(...).
50332
50333 2008-04-30  Jim Meyering  <meyering@redhat.com>
50334
50335         add tests for vc-list-files
50336         * modules/vc-list-files-tests: New module.
50337         * tests/test-vc-list-files-cvs.sh: New file.
50338         * tests/test-vc-list-files-git.sh: New file.
50339
50340         avoid a warning from gcc
50341         * lib/getndelim2.c (IF_LINT): Define.
50342         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
50343
50344         vc-list-files: work properly with build-aux/cvsu, too
50345         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
50346         to all cvs-based clauses.
50347
50348         vc-list-files: work properly in the CVS+awk case, too
50349         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
50350
50351         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
50352         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
50353         take more than one file argument, so .  Add quotes, just in case $dir
50354         ever contains a shell meta-character.  Prompted by Soren Hansen in
50355         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
50356
50357 2008-04-29  Eric Blake  <ebb9@byu.net>
50358
50359         Optimize getndelim2 to use block operations when possible.
50360         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
50361         freadseek, and memchr2.
50362         * lib/getndelim2.c (getndelim2): Use them for block reads.
50363
50364 2008-04-29  Bruno Haible  <bruno@clisp.org>
50365
50366         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
50367         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
50368         * modules/inet_ntop (Depends-on): Add extensions.
50369         * modules/inet_pton (Depends-on): Likewise.
50370         Reported by Simon Josefsson.
50371
50372 2008-04-29  Jim Meyering  <meyering@redhat.com>
50373
50374         When the is more than one match in a block, match all of them.
50375         * build-aux/useless-if-before-free: Iterate through each block
50376         until there are no more matches.
50377
50378         Fix broken useless-if-before-free script.
50379         * build-aux/useless-if-before-free: Fix typo: missing "?" after
50380         the expression to match cast of argument to free-like function.
50381
50382 2008-04-29  Eric Blake  <ebb9@byu.net>
50383
50384         Use new header.
50385         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
50386
50387 2008-04-29  Jim Meyering  <meyering@redhat.com>
50388
50389         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
50390         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
50391         by gnulib to exist and to declare e.g., inet_ntop.
50392         Don't include "inet_ntop.h", now removed.
50393
50394         * m4/arpa_inet_h.m4: Remove trailing blanks.
50395
50396 2008-04-29  Eric Blake  <ebb9@byu.net>
50397
50398         Silence valgrind on safe reads beyond potential array bounds.
50399         * lib/rawmemchr.valgrind: New file.
50400         * lib/strchrnul.valgrind: Likewise.
50401         * modules/rawmemchr (Files): Distribute new file.
50402         * modules/strchrnul (Files): Likewise.
50403         Suggested by Bruno Haible.
50404
50405 2008-04-29  Bruno Haible  <bruno@clisp.org>
50406
50407         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
50408         (inet_ntop, inet_pton): Change portability warning's wording.
50409         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
50410         Invoke gl_CHECK_NEXT_HEADERS.
50411         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
50412         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
50413         set ARPA_INET_H.
50414         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
50415         * modules/arpa_inet (Description): No longer only for systems that
50416         lack it.
50417         (Depends-on): Add include_next.
50418         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
50419         HAVE_ARPA_INET_H.
50420
50421 2008-04-29  Jim Meyering  <meyering@redhat.com>
50422
50423         * modules/mkdir (License): Re-license as LGPLv2+.
50424
50425 2008-04-29  Bruno Haible  <bruno@clisp.org>
50426
50427         * modules/rawmemchr (Maintainer): Set to Eric.
50428         * modules/strchrnul (Maintainer): Likewise.
50429
50430 2008-04-29  Simon Josefsson  <simon@josefsson.org>
50431
50432         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
50433         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
50434
50435         * modules/arpa_inet (arpa/inet.h): Use them.
50436
50437 2008-04-28  Eric Blake  <ebb9@byu.net>
50438
50439         Test getndelim2.
50440         * modules/getndelim2-tests: New file.
50441         * tests/test-getndelim2.c: Likewise.
50442         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
50443         stream.
50444         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
50445
50446         * MODULES.html.sh: Document new module.
50447
50448 2008-04-20  Bruno Haible  <bruno@clisp.org>
50449
50450         * lib/c-stack.c (die): Use raise.
50451         * modules/c-stack (Depends-on): Add raise.
50452
50453 2008-04-28  Bruno Haible  <bruno@clisp.org>
50454
50455         Expect rpmatch to be declared.
50456         * lib/yesno.c (rpmatch): Remove declaration.
50457
50458         Declare rpmatch.
50459         * lib/stdlib.in.h (rpmatch): New declaration.
50460         * lib/rpmatch.c: Include <stdlib.h> first.
50461         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
50462         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
50463         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
50464         HAVE_RPMATCH.
50465         * modules/rpmatch (Depends-on): Add stdlib, extensions.
50466         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50467         (Include): Set to <stdlib.h>.
50468         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
50469         HAVE_RPMATCH.
50470         * NEWS: Document the change.
50471
50472 2008-04-28  Bruno Haible  <bruno@clisp.org>
50473
50474         Change rpmatch to use nl_langinfo when appropriate.
50475         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
50476         (N_): New macro.
50477         (localized_pattern): New function/macro.
50478         (try): Remove match, nomatch arguments. Copy the pattern into safe
50479         memory before caching it.
50480         (rpmatch): Use localized_pattern. Add translator comments.
50481         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
50482         Suggested by Eric Blake.
50483         * modules/rpmatch (Depends-on): Add stdbool.
50484
50485 2008-04-28  Eric Blake  <ebb9@byu.net>
50486
50487         Add rawmemchr module, matching glibc.
50488         * modules/string (Makefile.am): New indicator.
50489         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
50490         * lib/string.in.h (rawmemchr): Declare when appropriate.
50491         * modules/rawmemchr: New file.
50492         * m4/rawmemchr.m4: Likewise.
50493         * lib/rawmemchr.c: Likewise.
50494         * modules/rawmemchr-tests: Likewise.
50495         * tests/test-rawmemchr.c: Likewise.
50496         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
50497         module.
50498         * modules/strchrnul (Depends-on): Add rawmemchr.
50499         * lib/strchrnul.c (strchrnul): Optimize a corner case.
50500
50501         Whitespace cleanup.
50502         * tests/test-strchrnul.c: Reindent.
50503         * lib/strchrnul.c: Likewise.
50504
50505         Optimize and test strchrnul.
50506         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
50507         * modules/strchrnul-tests: New file.
50508         * tests/test-strchrnul.c: Likewise.
50509
50510         Remove intprops dependency.
50511         * modules/memchr (Depends-on): Remove intprops.
50512         * modules/memrchr (Depends-on): Likewise.
50513         * modules/memchr2 (Depends-on): Likewise.
50514         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
50515         * lib/memrchr.c (__memrchr): Likewise.
50516         * lib/memrchr2.c (memchr2): Likewise.
50517         Reported by Simon Josefsson.
50518
50519 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50520
50521         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
50522         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50523
50524 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50525
50526         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
50527
50528         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
50529
50530         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
50531
50532         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
50533         declarations.
50534         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
50535
50536         * m4/inet_pton.m4: Don't check for header files.
50537
50538         * m4/inet_ntop.m4: Don't check for header files.
50539
50540 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50541
50542         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
50543         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
50544         trigger for cygwin).
50545         Reported by Bruno Haible  <bruno@clisp.org>.
50546
50547 2008-04-28  Bruno Haible  <bruno@clisp.org>
50548
50549         * doc/posix-functions/strdup.texi: Mention mingw problem.
50550
50551 2008-04-27  Bruno Haible  <bruno@clisp.org>
50552
50553         * modules/stat-time-tests (Depends-on): Add sleep.
50554         * tests/test-stat-time.c (force_unlink): New function.
50555         (cleanup): Use it.
50556         (test_mtime): Remove the ctime related tests.
50557         (test_ctime): New function, containing the ctime related tests.
50558         (main): Call test_ctime, except on native Windows platforms.
50559
50560 2008-04-27  Bruno Haible  <bruno@clisp.org>
50561
50562         * lib/rpmatch.c (rpmatch): Add some comments.
50563         Reported by James Youngman <jay@gnu.org>.
50564
50565 2008-04-27  Bruno Haible  <bruno@clisp.org>
50566
50567         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
50568         quiet NaNs.
50569
50570 2008-04-27  Bruno Haible  <bruno@clisp.org>
50571
50572         Make test-yesno.sh work on mingw.
50573         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
50574         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
50575         (main): Set stdin to binary mode.
50576         * modules/yesno-tests (Depends-on): Add binary-io.
50577
50578 2008-04-27  Bruno Haible  <bruno@clisp.org>
50579
50580         Fix 'isfinite' on x86, x86_64, ia64 platforms.
50581         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
50582         argument that lie outside the IEEE 854 domain.
50583         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
50584         (gl_ISFINITE): Use it.
50585         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
50586
50587 2008-04-27  Bruno Haible  <bruno@clisp.org>
50588
50589         Allow local renaming in config.h.
50590         * lib/memrchr.c (memrchr): Don't undefine outside libc.
50591
50592 2008-04-27  Bruno Haible  <bruno@clisp.org>
50593
50594         * lib/memchr.c (__memchr): Change type of 'i'.
50595         * lib/memchr2.c (memchr2): Likewise.
50596
50597 2008-04-26  Eric Blake  <ebb9@byu.net>
50598         and Bruno Haible  <bruno@clisp.org>
50599
50600         Optimize and test memrchr.
50601         * modules/memrchr (Depends-on): Add intprops.
50602         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
50603         * modules/memrchr-tests: New file.
50604         * tests/test-memrchr.c: New file.
50605
50606 2008-04-26  Bruno Haible  <bruno@clisp.org>
50607
50608         Add tentative support for DragonFly BSD.
50609         * lib/stdio-impl.h: Add macros for DragonFly BSD.
50610         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
50611         fp.
50612         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
50613         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
50614         * lib/fpurge.c (fpurge): Likewise.
50615         * lib/freadable.c (freaadable): Likewise.
50616         * lib/freadahead.c (freadahead): Likewise.
50617         * lib/freading.c (freading): Likewise.
50618         * lib/freadptr.c (freadptr): Likewise.
50619         * lib/freadseek.c (freadptrinc): Likewise.
50620         * lib/fseeko.c (fseeko): Likewise.
50621         * lib/fseterr.c (fseterr): Likewise.
50622         * lib/fwritable.c (fwritable): Likewise.
50623         * lib/fwriting.c (fwriting): Likewise.
50624
50625 2008-04-26  Bruno Haible  <bruno@clisp.org>
50626
50627         * lib/stdio-impl.h: New file.
50628         * lib/fbufmode.c: Include stdio-impl.h.
50629         (fbufmode): Use fp_, remove redundant #defines.
50630         * lib/fflush.c: Include stdio-impl.h.
50631         (clear_ungetc_buffer): Remove redundant #defines.
50632         * lib/fpurge.c: Include stdio-impl.h.
50633         (fpurge): Remove redundant #defines.
50634         * lib/freadable.c: Include stdio-impl.h.
50635         (freadable): Remove redundant #defines.
50636         * lib/freadahead.c: Include stdio-impl.h.
50637         (freadahead): Remove redundant #defines.
50638         * lib/freading.c: Include stdio-impl.h.
50639         (freading): Remove redundant #defines.
50640         * lib/freadptr.c: Include stdio-impl.h.
50641         (freadptr): Remove redundant #defines.
50642         * lib/freadseek.c: Include stdio-impl.h.
50643         (freadptrinc): Remove redundant #defines.
50644         * lib/fseeko.c: Include stdio-impl.h.
50645         (rpl_fseeko): Remove redundant #defines.
50646         * lib/fseterr.c: Include stdio-impl.h.
50647         (fseterr): Remove redundant #defines.
50648         * lib/fwritable.c: Include stdio-impl.h.
50649         (fwritable: Remove redundant #defines.
50650         * lib/fwriting.c: Include stdio-impl.h.
50651         (fwriting): Remove redundant #defines.
50652         * modules/fbufmode (Files): Add lib/stdio-impl.h.
50653         * modules/fflush (Files): Likewise.
50654         * modules/fpurge (Files): Likewise.
50655         * modules/freadable (Files): Likewise.
50656         * modules/freadahead (Files): Likewise.
50657         * modules/freading (Files): Likewise.
50658         * modules/freadptr (Files): Likewise.
50659         * modules/freadseek (Files): Likewise.
50660         * modules/fseeko (Files): Likewise.
50661         * modules/fseterr (Files): Likewise.
50662         * modules/fwritable (Files): Likewise.
50663         * modules/fwriting (Files): Likewise.
50664
50665 2008-04-26  Bruno Haible  <bruno@clisp.org>
50666
50667         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
50668         restore_seek_optimization, update_fpos_cache): New functions, extracted
50669         from rpl_fflush.
50670         (rpl_fflush): Use them.
50671         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
50672         (gl_REPLACE_FFLUSH): Use it.
50673
50674 2008-04-26  Bruno Haible  <bruno@clisp.org>
50675
50676         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
50677         on Solaris.
50678         * tests/test-xstrtoimax.sh: Likewise.
50679         * tests/test-xstrtoumax.sh: Likewise.
50680         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50681
50682 2008-04-26  Bruno Haible  <bruno@clisp.org>
50683
50684         * modules/memchr-tests: New file.
50685         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
50686
50687 2008-04-26  Eric Blake  <ebb9@byu.net>
50688             Bruno Haible  <bruno@clisp.org>
50689
50690         * lib/memchr.c: Include intprops.h.
50691         (__memchr): Optimize parallel detection of matching bytes. Rename local
50692         variables. Add explanatory comments.
50693
50694 2008-04-26  Bruno Haible  <bruno@clisp.org>
50695
50696         Fix module 'memchr', broken since 2000-10-28.
50697         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
50698
50699 2008-04-26  Bruno Haible  <bruno@clisp.org>
50700
50701         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
50702         comments.
50703
50704 2008-04-25  Eric Blake  <ebb9@byu.net>
50705
50706         Use native fstatat on cygwin 1.7.0.
50707         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
50708         first.
50709
50710 2008-04-23  Eric Blake  <ebb9@byu.net>
50711
50712         Improve memchr2 performance.
50713         * lib/memchr2.c (memchr2): Further optimize parallel detection of
50714         NUL bytes.
50715         * modules/memchr2 (Depends-on): Use intprops.h.
50716
50717 2008-04-23  Simon Josefsson  <simon@josefsson.org>
50718
50719         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
50720         an inline function instead of a CPP macro.  Patch by Ben Pfaff
50721         <blp@cs.stanford.edu>.
50722
50723 2008-04-23  Simon Josefsson  <simon@josefsson.org>
50724
50725         * lib/arpa_inet.in.h: New file.
50726
50727         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
50728         (Makefile.am): Sed in substitute header file.
50729
50730         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
50731         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
50732
50733         * modules/inet_ntop (configure.ac): Use
50734         gl_ARPA_INET_MODULE_INDICATOR.
50735
50736         * modules/inet_pton (configure.ac): Use
50737         gl_ARPA_INET_MODULE_INDICATOR.
50738
50739 2008-04-22  Jim Meyering  <meyering@redhat.com>
50740
50741         * modules/verify (License): Re-license as LGPLv2+.
50742
50743 2008-04-22  Simon Josefsson  <simon@josefsson.org>
50744
50745         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
50746         parameter to void* as per POSIX standard (MinGW uses char*).
50747
50748 2008-04-21  Bruno Haible  <bruno@clisp.org>
50749
50750         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
50751         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
50752         Define to replacements if REPLACE_ISWCNTRL is 1.
50753         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
50754         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
50755         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
50756         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
50757         what it fixes.
50758         * doc/posix-functions/iswalpha.texi: Likewise.
50759         * doc/posix-functions/iswblank.texi: Likewise.
50760         * doc/posix-functions/iswcntrl.texi: Likewise.
50761         * doc/posix-functions/iswdigit.texi: Likewise.
50762         * doc/posix-functions/iswgraph.texi: Likewise.
50763         * doc/posix-functions/iswlower.texi: Likewise.
50764         * doc/posix-functions/iswprint.texi: Likewise.
50765         * doc/posix-functions/iswpunct.texi: Likewise.
50766         * doc/posix-functions/iswspace.texi: Likewise.
50767         * doc/posix-functions/iswupper.texi: Likewise.
50768         * doc/posix-functions/iswxdigit.texi: Likewise.
50769         Reported by Alain Guibert.
50770
50771 2008-04-21  Bruno Haible  <bruno@clisp.org>
50772
50773         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
50774         Patch by Alain Guibert.
50775
50776 2008-04-21  Bruno Haible  <bruno@clisp.org>
50777
50778         Fix test failures on mingw.
50779         * tests/test-xstrtol.c (print_no_progname): New function.
50780         (main): Install it in error_print_progname hook.
50781         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
50782         * tests/test-xstrtoimax.sh: Likewise.
50783         * tests/test-xstrtoumax.sh: Likewise.
50784
50785 2008-04-21  Bruno Haible  <bruno@clisp.org>
50786
50787         Fix test failure on mingw.
50788         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
50789
50790 2008-04-21  Bruno Haible  <bruno@clisp.org>
50791
50792         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
50793         Actually assign a value.
50794
50795 2008-04-20  Bruno Haible  <bruno@clisp.org>
50796
50797         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
50798         take 2.
50799         * lib/canonicalize.c (canonicalize_file_name): Elide if the
50800         'canonicalize-lgpl' module is also used.
50801         * lib/canonicalize-lgpl.c: Undo last change.
50802         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
50803
50804 2008-04-20  Bruno Haible  <bruno@clisp.org>
50805
50806         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
50807         config.h. Provide _mkdir based fallback for mingw.
50808         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
50809         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
50810         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
50811         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
50812         rather than defining mkdir in config.h.
50813         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
50814         (gl_SYS_STAT_H_DEFAULTS): New macro.
50815         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
50816         HAVE_IO_H any more.
50817         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
50818         HAVE_DECL_MKDIR and HAVE_IO_H.
50819
50820 2008-04-20  Bruno Haible  <bruno@clisp.org>
50821
50822         * lib/isapipe.c: Port to native Windows platforms.
50823
50824 2008-04-20  Bruno Haible  <bruno@clisp.org>
50825
50826         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
50827
50828 2008-04-21  Eric Blake  <ebb9@byu.net>
50829
50830         Work around preprocessors that don't handle UINTMAX_MAX.
50831         * lib/memchr2.c (memchr2): Avoid embedded #if.
50832         Reported by Alain Guibert, fix suggested by Bruno Haible.
50833
50834 2008-04-21  Simon Josefsson  <simon@josefsson.org>
50835
50836         * doc/posix-functions/strftime.texi (strftime): Explain better
50837         Windows incompatibility.  Suggested by Micah Cowan
50838         <micah@cowan.name>.
50839
50840 2008-04-20  Bruno Haible  <bruno@clisp.org>
50841
50842         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
50843         unistr/u8-mblen.
50844
50845 2008-04-20  Bruno Haible  <bruno@clisp.org>
50846
50847         Fix test failure on platforms with non-GNU iconv.
50848         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
50849         (U_TO_U8): Use it, rather than u16_to_u8.
50850         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
50851         units at the end of the input string.
50852         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
50853
50854 2008-04-20  Bruno Haible  <bruno@clisp.org>
50855
50856         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
50857         when the resulting length is 0.
50858         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
50859
50860 2008-04-20  Bruno Haible  <bruno@clisp.org>
50861
50862         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
50863         works.
50864         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
50865
50866 2008-04-20  Bruno Haible  <bruno@clisp.org>
50867
50868         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
50869         * modules/tsearch-tests (configure.ac): Test for initstate function.
50870
50871 2008-04-20  Bruno Haible  <bruno@clisp.org>
50872
50873         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
50874         for nlink_t if missing.
50875         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
50876
50877 2008-04-19  Bruno Haible  <bruno@clisp.org>
50878
50879         Work around snprintf bug on Linux libc5.
50880         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
50881         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50882         gl_SNPRINTF_SIZE1.
50883         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50884         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
50885         that test failed.
50886         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
50887         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
50888         * modules/snprintf (Files): Add m4/printf.m4.
50889         * modules/vsnprintf (Files): Likewise.
50890         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
50891         * doc/posix-functions/vsnprintf.texi: Likewise.
50892
50893 2008-04-19  Bruno Haible  <bruno@clisp.org>
50894
50895         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
50896         from 0.0058 to less than 10^-7.
50897
50898 2008-04-19  Bruno Haible  <bruno@clisp.org>
50899
50900         Fix rounding when a precision is given.
50901         * lib/vasnprintf.c (is_borderline): New function.
50902         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
50903         9...9x.
50904         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
50905         %e, %g.
50906         * tests/test-vasprintf-posix.c (test_function): Likewise.
50907         * tests/test-snprintf-posix.h (test_function): Likewise.
50908         * tests/test-sprintf-posix.h (test_function): Likewise.
50909         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
50910         * tests/test-printf-posix.h (test_function): Likewise.
50911         * tests/test-printf-posix.output: Update.
50912         Reported by John Darrington <john@darrington.wattle.id.au> via
50913         Ben Pfaff <blp@cs.stanford.edu>.
50914
50915 2008-04-18  Simon Josefsson  <simon@josefsson.org>
50916
50917         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
50918         Suggested by Bruno Haible <bruno@clisp.org>.
50919
50920 2008-04-17  Bruno Haible  <bruno@clisp.org>
50921
50922         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
50923         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
50924         implementation.
50925         Patch by Bruce Merry <bmerry@gmail.com>.
50926
50927 2008-04-17  Simon Josefsson  <simon@josefsson.org>
50928
50929         * doc/posix-functions/strftime.texi (strftime): Mention that %e
50930         doesn't work under Windows.
50931
50932 2008-04-16  Bruno Haible  <bruno@clisp.org>
50933
50934         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
50935         New macros.
50936         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
50937         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
50938         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
50939         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
50940         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
50941         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
50942         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
50943         macros.
50944         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
50945         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
50946         Northern Sotho, Uighur.
50947
50948 2008-04-16  Bruno Haible  <bruno@clisp.org>
50949
50950         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
50951         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
50952         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
50953         Reported by Daniel Bergström <daniel@octocode.com>.
50954
50955 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
50956             Bruno Haible  <bruno@clisp.org>
50957
50958         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
50959         function.
50960         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
50961         New functions, mostly extracted from gl_locale_name_default.
50962         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
50963
50964 2008-04-16  Eric Blake  <ebb9@byu.net>
50965
50966         Adjust strtod detection to catch glibc 2.7 bug.
50967         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
50968         Reported by John Gatewood Ham.
50969
50970 2008-04-16  Bruno Haible  <bruno@clisp.org>
50971
50972         Add tentative support for Linux libc5.
50973         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
50974         * lib/fpurge.c (fpurge): Likewise.
50975         * lib/freadable.c (freadable): Likewise.
50976         * lib/freadahead.c (freadahead): Likewise.
50977         * lib/freading.c (freading): Likewise.
50978         * lib/freadptr.c (freadptr): Likewise.
50979         * lib/freadseek.c (freadptrinc): Likewise.
50980         * lib/fseeko.c (rpl_fseeko): Likewise.
50981         * lib/fseterr.c (fseterr): Likewise.
50982         * lib/fwritable.c (fwritable): Likewise.
50983         * lib/fwriting.c (fwriting): Likewise.
50984         Reported by Alain Guibert <alguibert+bts@free.fr>.
50985
50986 2008-04-15  Bruno Haible  <bruno@clisp.org>
50987
50988         * modules/mathl (configure.ac): Define module indicator.
50989
50990 2008-04-15  Bruno Haible  <bruno@clisp.org>
50991
50992         * lib/logl.c (logl): Remove unused variables.
50993
50994 2008-04-15  Bruno Haible  <bruno@clisp.org>
50995
50996         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
50997         fails.
50998
50999 2008-04-15  Bruno Haible  <bruno@clisp.org>
51000
51001         * lib/trim.c (trim2): Fix argument of isspace() macro.
51002
51003 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
51004
51005         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
51006         to 0.
51007         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
51008
51009 2008-04-14  Bruno Haible  <bruno@clisp.org>
51010
51011         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
51012         AC_LANG_PROGRAM argument.
51013         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
51014         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
51015         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
51016         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
51017         * m4/math_h.m4 (gl_MATH_H): Likewise.
51018         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
51019         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
51020         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
51021         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
51022         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
51023         * m4/regex.m4 (gl_REGEX): Likewise.
51024         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
51025         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
51026         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51027         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
51028         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
51029         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
51030         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51031         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
51032
51033 2008-04-14  Jim Meyering  <meyering@redhat.com>
51034
51035         test-strtod: fix typos: s/abs/fabs/
51036         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
51037
51038 2008-04-13  Bruno Haible  <bruno@clisp.org>
51039
51040         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
51041         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
51042         module is also used and while not building the reloc-wrapper.
51043
51044 2008-04-13  Bruno Haible  <bruno@clisp.org>
51045
51046         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
51047
51048 2008-04-13  Bruno Haible  <bruno@clisp.org>
51049
51050         Fix AIX compilation failure introduced on 2008-04-02.
51051         * tests/test-frexp.c (exp): Undefine before redefining.
51052         * tests/test-frexpl.c (exp): Likewise.
51053
51054 2008-04-13  Bruno Haible  <bruno@clisp.org>
51055
51056         Work around a HP-UX stdio bug.
51057         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
51058         * tests/test-ftello.c (main): Likewise.
51059         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
51060         * doc/posix-functions/ftello.texi: Likewise.
51061
51062 2008-04-13  Bruno Haible  <bruno@clisp.org>
51063
51064         Make test-signbit pass on HP-UX/hppa.
51065         * tests/test-signbit.c (minus_zerol): New variable.
51066         (test_signbitl): Use it.
51067
51068 2008-04-13  Bruno Haible  <bruno@clisp.org>
51069
51070         Make truncl work on OSF/1 4.0.
51071         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
51072         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
51073         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
51074         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
51075         HAVE_DECL_TRUNCL.
51076         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
51077         HAVE_DECL_TRUNCL.
51078         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
51079
51080 2008-04-13  Bruno Haible  <bruno@clisp.org>
51081
51082         * lib/unictype.h: Remove trailing comma from enumeration definitions.
51083
51084 2008-04-13  Bruno Haible  <bruno@clisp.org>
51085
51086         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
51087         expression, so as to avoid HP-UX 11 cc compiler bug.
51088
51089 2008-04-13  Bruno Haible  <bruno@clisp.org>
51090
51091         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
51092
51093 2008-04-13  Bruno Haible  <bruno@clisp.org>
51094
51095         * lib/git-merge-changelog.c: Remove empty declaration outside of
51096         functions.
51097
51098 2008-04-13  Bruno Haible  <bruno@clisp.org>
51099
51100         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
51101
51102 2008-04-13  Bruno Haible  <bruno@clisp.org>
51103
51104         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
51105         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
51106         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
51107         also if it exists but lacks definitions of the SHUT_* macros.
51108         * modules/sys_socket (Description): Update.
51109         Reported by Elbert Pol <e.pol@chello.nl>.
51110
51111 2008-04-13  Bruno Haible  <bruno@clisp.org>
51112
51113         * lib/localcharset.c (OS2): Don't redefine if already defined.
51114         Reported by Elbert Pol <e.pol@chello.nl>.
51115
51116 2008-04-13  Bruno Haible  <bruno@clisp.org>
51117
51118         * lib/binary-io.h [__EMX__]: Include <io.h>.
51119         Reported by Elbert Pol <e.pol@chello.nl>.
51120
51121 2008-04-12  Bruno Haible  <bruno@clisp.org>
51122
51123         * lib/fpucw.h: Enable the definitions also for x86_64.
51124         Needed for NetBSD/x86_64.
51125         Reported by Thomas Klausner <tk@giga.or.at>.
51126
51127 2008-04-12  Bruno Haible  <bruno@clisp.org>
51128
51129         * tests/test-strtod.c: Include isnand.h.
51130         (main): Use isnand instead of isnan.
51131         Reported by Jim Meyering.
51132
51133 2008-04-12  Bruno Haible  <bruno@clisp.org>
51134
51135         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
51136         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
51137
51138 2008-04-12  Jim Meyering  <meyering@redhat.com>
51139
51140         * m4/math_h.m4 (gl_MATH_H): Fix typos.
51141
51142 2008-04-12  Bruno Haible  <bruno@clisp.org>
51143
51144         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
51145         Reported by Elbert Pol <e.pol@chello.nl>.
51146
51147 2008-04-12  Eric Blake  <ebb9@byu.net>
51148
51149         Work around Solaris 10 math.h bug.
51150         * m4/math_h.m4 (gl_MATH_H): Check for bug.
51151         (gl_MATH_H_DEFAULTS): Set up default.
51152         * modules/math (Makefile.am): Replace new indicators.
51153         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
51154         * tests/test-math.c (main): Test this.
51155         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
51156         * doc/posix-headers/math.texi (math.h): Mention bug.
51157         Reported by Nelson H. F. Beebe and Jim Meyering.
51158
51159 2008-04-11  Bruno Haible  <bruno@clisp.org>
51160
51161         Adapt to future versions of Apple GCC.
51162         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
51163         Reported by Peter O'Gorman <peter@pogma.com>.
51164
51165 2008-04-11  Bruno Haible  <bruno@clisp.org>
51166
51167         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
51168
51169 2008-04-11  Bruno Haible  <bruno@clisp.org>
51170
51171         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
51172
51173         * modules/getaddrinfo-tests (Makefile.am): Define
51174         test_getaddrinfo_LDADD.
51175
51176 2008-04-11  Bruno Haible  <bruno@clisp.org>
51177
51178         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
51179         (init): Fix syntax error.
51180         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
51181         is declared.
51182
51183 2008-04-11  Bruno Haible  <bruno@clisp.org>
51184
51185         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
51186         * modules/glob (Depends-on): Add stdbool.
51187
51188 2008-04-11  Bruno Haible  <bruno@clisp.org>
51189
51190         * lib/trim.c: Include <string.h>.
51191
51192 2008-04-11  Eric Blake  <ebb9@byu.net>
51193
51194         Avoid compile failure on OS/2.
51195         * lib/regex_internal.h (internal_function): Disable optimization
51196         on OS/2 (__EMX__), where it caused compiler error.
51197         Reported by Elbert Pol.
51198
51199 2008-04-11  Bruno Haible  <bruno@clisp.org>
51200
51201         Flush the standard error stream before aborting. Needed on mingw.
51202         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
51203         * tests/test-array_list.c (ASSERT): Likewise.
51204         * tests/test-array_oset.c (ASSERT): Likewise.
51205         * tests/test-avltree_list.c (ASSERT): Likewise.
51206         * tests/test-avltree_oset.c (ASSERT): Likewise.
51207         * tests/test-avltreehash_list.c (ASSERT): Likewise.
51208         * tests/test-binary-io.c (ASSERT): Likewise.
51209         * tests/test-byteswap.c (ASSERT): Likewise.
51210         * tests/test-c-ctype.c (ASSERT): Likewise.
51211         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
51212         * tests/test-c-strcasestr.c (ASSERT): Likewise.
51213         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
51214         * tests/test-c-strstr.c (ASSERT): Likewise.
51215         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
51216         * tests/test-canonicalize.c (ASSERT): Likewise.
51217         * tests/test-carray_list.c (ASSERT): Likewise.
51218         * tests/test-ceilf1.c (ASSERT): Likewise.
51219         * tests/test-ceilf2.c (ASSERT): Likewise.
51220         * tests/test-ceill.c (ASSERT): Likewise.
51221         * tests/test-count-one-bits.c (ASSERT): Likewise.
51222         * tests/test-fbufmode.c (ASSERT): Likewise.
51223         * tests/test-fflush2.c (ASSERT): Likewise.
51224         * tests/test-floorf1.c (ASSERT): Likewise.
51225         * tests/test-floorf2.c (ASSERT): Likewise.
51226         * tests/test-floorl.c (ASSERT): Likewise.
51227         * tests/test-fopen.c (ASSERT): Likewise.
51228         * tests/test-fpending.c (ASSERT): Likewise.
51229         * tests/test-fprintf-posix.c (ASSERT): Likewise.
51230         * tests/test-fpurge.c (ASSERT): Likewise.
51231         * tests/test-freadable.c (ASSERT): Likewise.
51232         * tests/test-freadahead.c (ASSERT): Likewise.
51233         * tests/test-freading.c (ASSERT): Likewise.
51234         * tests/test-freadptr.c (ASSERT): Likewise.
51235         * tests/test-freadptr2.c (ASSERT): Likewise.
51236         * tests/test-freadseek.c (ASSERT): Likewise.
51237         * tests/test-freopen.c (ASSERT): Likewise.
51238         * tests/test-frexp.c (ASSERT): Likewise.
51239         * tests/test-frexpl.c (ASSERT): Likewise.
51240         * tests/test-fseek.c (ASSERT): Likewise.
51241         * tests/test-fseeko.c (ASSERT): Likewise.
51242         * tests/test-fstrcmp.c (ASSERT): Likewise.
51243         * tests/test-ftell.c (ASSERT): Likewise.
51244         * tests/test-ftello.c (ASSERT): Likewise.
51245         * tests/test-func.c (ASSERT): Likewise.
51246         * tests/test-fwritable.c (ASSERT): Likewise.
51247         * tests/test-fwriting.c (ASSERT): Likewise.
51248         * tests/test-getdelim.c (ASSERT): Likewise.
51249         * tests/test-getline.c (ASSERT): Likewise.
51250         * tests/test-i-ring.c (ASSERT): Likewise.
51251         * tests/test-iconv-utf.c (ASSERT): Likewise.
51252         * tests/test-iconv.c (ASSERT): Likewise.
51253         * tests/test-isfinite.c (ASSERT): Likewise.
51254         * tests/test-isnand.c (ASSERT): Likewise.
51255         * tests/test-isnanf.c (ASSERT): Likewise.
51256         * tests/test-isnanl.h (ASSERT): Likewise.
51257         * tests/test-ldexpl.c (ASSERT): Likewise.
51258         * tests/test-linked_list.c (ASSERT): Likewise.
51259         * tests/test-linkedhash_list.c (ASSERT): Likewise.
51260         * tests/test-localename.c (ASSERT): Likewise.
51261         * tests/test-lseek.c (ASSERT): Likewise.
51262         * tests/test-mbscasecmp.c (ASSERT): Likewise.
51263         * tests/test-mbscasestr1.c (ASSERT): Likewise.
51264         * tests/test-mbscasestr2.c (ASSERT): Likewise.
51265         * tests/test-mbscasestr3.c (ASSERT): Likewise.
51266         * tests/test-mbscasestr4.c (ASSERT): Likewise.
51267         * tests/test-mbschr.c (ASSERT): Likewise.
51268         * tests/test-mbscspn.c (ASSERT): Likewise.
51269         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
51270         * tests/test-mbspbrk.c (ASSERT): Likewise.
51271         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
51272         * tests/test-mbsrchr.c (ASSERT): Likewise.
51273         * tests/test-mbsspn.c (ASSERT): Likewise.
51274         * tests/test-mbsstr1.c (ASSERT): Likewise.
51275         * tests/test-mbsstr2.c (ASSERT): Likewise.
51276         * tests/test-mbsstr3.c (ASSERT): Likewise.
51277         * tests/test-memchr2.c (ASSERT): Likewise.
51278         * tests/test-memmem.c (ASSERT): Likewise.
51279         * tests/test-open.c (ASSERT): Likewise.
51280         * tests/test-printf-frexp.c (ASSERT): Likewise.
51281         * tests/test-printf-frexpl.c (ASSERT): Likewise.
51282         * tests/test-printf-posix.c (ASSERT): Likewise.
51283         * tests/test-quotearg.c (ASSERT): Likewise.
51284         * tests/test-rbtree_list.c (ASSERT): Likewise.
51285         * tests/test-rbtree_oset.c (ASSERT): Likewise.
51286         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
51287         * tests/test-round1.c (ASSERT): Likewise.
51288         * tests/test-roundf1.c (ASSERT): Likewise.
51289         * tests/test-roundl.c (ASSERT): Likewise.
51290         * tests/test-signbit.c (ASSERT): Likewise.
51291         * tests/test-sleep.c (ASSERT): Likewise.
51292         * tests/test-snprintf-posix.c (ASSERT): Likewise.
51293         * tests/test-snprintf.c (ASSERT): Likewise.
51294         * tests/test-sprintf-posix.c (ASSERT): Likewise.
51295         * tests/test-stat-time.c (ASSERT): Likewise.
51296         * tests/test-strcasestr.c (ASSERT): Likewise.
51297         * tests/test-strerror.c (ASSERT): Likewise.
51298         * tests/test-striconv.c (ASSERT): Likewise.
51299         * tests/test-striconveh.c (ASSERT): Likewise.
51300         * tests/test-striconveha.c (ASSERT): Likewise.
51301         * tests/test-strsignal.c (ASSERT): Likewise.
51302         * tests/test-strstr.c (ASSERT): Likewise.
51303         * tests/test-strtod.c (ASSERT): Likewise.
51304         * tests/test-trunc1.c (ASSERT): Likewise.
51305         * tests/test-trunc2.c (ASSERT): Likewise.
51306         * tests/test-truncf1.c (ASSERT): Likewise.
51307         * tests/test-truncf2.c (ASSERT): Likewise.
51308         * tests/test-truncl.c (ASSERT): Likewise.
51309         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
51310         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
51311         * tests/test-vasnprintf.c (ASSERT): Likewise.
51312         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
51313         * tests/test-vasprintf.c (ASSERT): Likewise.
51314         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
51315         * tests/test-vprintf-posix.c (ASSERT): Likewise.
51316         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
51317         * tests/test-vsnprintf.c (ASSERT): Likewise.
51318         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
51319         * tests/test-wcwidth.c (ASSERT): Likewise.
51320         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
51321         * tests/test-xprintf-posix.c (ASSERT): Likewise.
51322         * tests/test-xvasprintf.c (ASSERT): Likewise.
51323         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
51324         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
51325         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
51326         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
51327         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
51328         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
51329         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
51330         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
51331         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
51332         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
51333         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
51334         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
51335         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
51336         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
51337         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
51338         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
51339         * tests/unictype/test-block_list.c (ASSERT): Likewise.
51340         * tests/unictype/test-block_of.c (ASSERT): Likewise.
51341         * tests/unictype/test-block_test.c (ASSERT): Likewise.
51342         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
51343         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
51344         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
51345         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
51346         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
51347         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
51348         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
51349         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
51350         * tests/unictype/test-combining.c (ASSERT): Likewise.
51351         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
51352         * tests/unictype/test-digit.c (ASSERT): Likewise.
51353         * tests/unictype/test-mirror.c (ASSERT): Likewise.
51354         * tests/unictype/test-numeric.c (ASSERT): Likewise.
51355         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
51356         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
51357         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
51358         * tests/unictype/test-scripts.c (ASSERT): Likewise.
51359         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
51360         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
51361         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
51362         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
51363         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
51364         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
51365         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
51366         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
51367         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
51368         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
51369         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
51370         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
51371         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
51372         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
51373         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
51374         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
51375         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
51376         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
51377         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
51378         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
51379         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
51380         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
51381         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
51382         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
51383         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
51384         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
51385         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
51386         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
51387         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
51388         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
51389         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
51390         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
51391         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
51392         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
51393         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
51394         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
51395         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
51396         Reported by Eric Blake.
51397
51398 2008-04-11  Bruno Haible  <bruno@clisp.org>
51399
51400         * lib/wchar.in.h: Tweak comment.
51401
51402 2008-04-11  Bruno Haible  <bruno@clisp.org>
51403
51404         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
51405         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
51406         gl_COMMON.
51407         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
51408
51409 2008-04-11  Bruno Haible  <bruno@clisp.org>
51410
51411         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
51412
51413 2008-04-11  Simon Josefsson  <simon@josefsson.org>
51414
51415         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
51416         of attempting to use non-existing /dev/*random.  Based on patch
51417         from Adam Strzelecki <ono@java.pl> in
51418         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
51419
51420 2008-04-08  Bruno Haible  <bruno@clisp.org>
51421
51422         Add tentative support for emx+gcc.
51423         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
51424         * lib/fpurge.c (fpurge): Likewise.
51425         * lib/freadable.c (freadable): Likewise.
51426         * lib/freadahead.c (freadahead): Likewise.
51427         * lib/freading.c (freading): Likewise.
51428         * lib/freadptr.c (freadptr): Likewise.
51429         * lib/freadseek.c (freadptrinc): Likewise.
51430         * lib/fseeko.c (rpl_fseeko): Likewise.
51431         * lib/fseterr.c (fseterr): Likewise.
51432         * lib/fwritable.c (fwritable): Likewise.
51433         * lib/fwriting.c (fwriting): Likewise.
51434         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
51435
51436 2008-04-09  Eric Blake  <ebb9@byu.net>
51437
51438         Avoid some autoconf warnings.
51439         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
51440         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
51441         * m4/afs.m4 (gl_AFS): Likewise.
51442         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
51443         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
51444         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51445         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
51446         (gl_INTEGER_TYPE_SUFFIX): Likewise.
51447         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
51448         (AC_CHECK_DECLS_ONCE): Likewise.
51449         Rename file...
51450         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
51451         gnulib-tool requires autoconf 2.59 or better.
51452         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
51453
51454 2008-04-08  Eric Blake  <ebb9@byu.net>
51455
51456         Use 'git describe --match' if present (added in git 1.5.5).
51457         * build-aux/git-version-gen: Limit result to tags that match 'v*'
51458         if possible.
51459
51460 2008-04-08  Bruno Haible  <bruno@clisp.org>
51461
51462         Add tentative support for OpenServer.
51463         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
51464         _ptr, _cnt.
51465         * lib/fpurge.c (fpurge): Likewise.
51466         * lib/freadable.c (freadable): Likewise.
51467         * lib/freadahead.c (freadahead): Likewise.
51468         * lib/freading.c (freading): Likewise.
51469         * lib/freadptr.c (freadptr): Likewise.
51470         * lib/freadseek.c (freadptrinc): Likewise.
51471         * lib/fseeko.c (rpl_fseeko): Likewise.
51472         * lib/fseterr.c (fseterr): Likewise.
51473         * lib/fwritable.c (fwritable): Likewise.
51474         * lib/fwriting.c (fwriting): Likewise.
51475         Reported by Roger Cornelius <rac@tenzing.org> and
51476         Brian K. White <brian@aljex.com>.
51477
51478 2008-04-06  Jim Meyering  <meyering@redhat.com>
51479
51480         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
51481
51482 2008-04-06  Bruno Haible  <bruno@clisp.org>
51483
51484         Avoid possible error with non-ASCII bytes in UTF-8 locales.
51485         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
51486         * tests/test-printf-posix.sh: Likewise.
51487         * tests/test-vfprintf-posix.sh: Likewise.
51488         * tests/test-vprintf-posix.sh: Likewise.
51489         * tests/test-xprintf-posix.sh: Likewise.
51490
51491 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51492
51493         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
51494         hide error from 'ls', needed on OS/2.
51495         Report by Elbert Pol <elbert.pol@gmail.com>.
51496
51497 2008-04-04  Eric Blake  <ebb9@byu.net>
51498
51499         Make test-fseeko.c failures meaningful.
51500         * tests/test-fseeko.c: Print line number on failure.
51501         * tests/test-fseek.c: Likewise.
51502         Reported by Nelson H. F. Beebe.
51503
51504         Improve strtod bug detection check.
51505         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
51506         required for Solaris 10.
51507         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
51508
51509 2008-04-04  Bruno Haible  <bruno@clisp.org>
51510
51511         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
51512         by m4/setenv.m4.
51513
51514 2008-04-03  Eric Blake  <ebb9@byu.net>
51515
51516         Ensure sane .version contents.
51517         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
51518         version string.
51519         * build-aux/git-version-gen: Improve documentation.
51520
51521         Make GNU make output nicer.
51522         * top/GNUmakefile [!_have-Makefile]: Add dependency on
51523         MAKECMDGOALS to enforce message for all command line targets.  Set
51524         srcdir for use in maint.mk.
51525
51526         Another maintainer tweak.
51527         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
51528         a target that regenerates version.
51529
51530 2008-04-03  Jim Meyering  <meyering@redhat.com>
51531
51532         vc-list-files: don't cause coreutils "make po-check" failure
51533         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
51534
51535 2008-04-03  Eric Blake  <ebb9@byu.net>
51536
51537         Allow VPATH usage of vc-list-files.
51538         * build-aux/vc-list-files (scriptversion): Add timestamp.
51539         (options): Add --help, --version, -C.
51540         (CVS): Support installed cvsu.
51541
51542 2008-04-02  Bruno Haible  <bruno@clisp.org>
51543
51544         Avoid some "statement with no effect" warnings from gcc.
51545         * tests/test-wctype.c (main): Explicitly ignore unused values.
51546         Reported by Jim Meyering.
51547
51548 2008-04-02  Jim Meyering  <meyering@redhat.com>
51549
51550         Avoid some warnings from "gcc -Wshadow".
51551         * tests/test-frexp.c (exp): Define to a different identifier.
51552         * tests/test-frexpl.c (exp): Likewise.
51553
51554 2008-04-03  Jim Meyering  <meyering@redhat.com>
51555
51556         bootstrap: remove dangling *.[ch] symlinks from lib
51557         * build-aux/bootstrap [dangling symlink removal]: Move find's
51558         -depth option to precede all others, to avoid a warning.
51559         Remove *.[ch] files too, and from "$source_base" (usually lib/).
51560
51561 2008-04-02  Bruno Haible  <bruno@clisp.org>
51562
51563         Avoid some warnings from "gcc -Wshadow".
51564         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
51565         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
51566         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
51567         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
51568         Reported by Jim Meyering.
51569
51570 2008-04-01  Bruno Haible  <bruno@clisp.org>
51571
51572         Fix test to work on IRIX 6.5 with cc.
51573         * tests/test-math.c (numeric_equal): New function.
51574         (main): Use it.
51575
51576 2008-04-01  Bruno Haible  <bruno@clisp.org>
51577
51578         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
51579
51580 2008-04-01  Bruno Haible  <bruno@clisp.org>
51581
51582         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
51583         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51584         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
51585         (Depends-on): Remove math.
51586
51587         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
51588         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51589         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
51590         (Depends-on): Remove math.
51591
51592         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
51593         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51594         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
51595         (Depends-on): Remove math.
51596         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
51597         (Depends-on): Remove math.
51598
51599         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
51600         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51601         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
51602         (Depends-on): Remove math.
51603         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
51604         (Depends-on): Remove math.
51605
51606         * tests/test-round1.c: Include nan.h.
51607         (main): Use NaNd instead of NAN.
51608         * modules/round-tests (Files): Add tests/nan.h.
51609
51610         * tests/test-trunc1.c: Include nan.h.
51611         (main): Use NaNd instead of NAN.
51612         * modules/trunc-tests (Files): Add tests/nan.h.
51613
51614         * tests/test-roundf1.c: Include nan.h.
51615         (main): Use NaNf instead of NAN.
51616         * modules/roundf-tests (Files): Add tests/nan.h.
51617
51618         * tests/test-truncf1.c: Include nan.h.
51619         (main): Use NaNf instead of NAN.
51620         * modules/truncf-tests (Files): Add tests/nan.h.
51621
51622         * tests/test-ceilf1.c: Include nan.h.
51623         (main): Use NaNf instead of NAN.
51624         * modules/ceilf-tests (Files): Add tests/nan.h.
51625
51626         * tests/test-floorf1.c: Include nan.h.
51627         (main): Use NaNf instead of NAN.
51628         * modules/floorf-tests (Files): Add tests/nan.h.
51629
51630         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
51631         (main): Use NaNf instead of NAN.
51632         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
51633
51634         * tests/test-isnand.c: Include nan.h instead of <math.h>.
51635         (main): Use NaNd instead of NAN.
51636         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
51637
51638         * tests/test-frexp.c: Include nan.h.
51639         (main): Use NaNd instead of NAN.
51640         * modules/frexp-tests (Files): Add tests/nan.h.
51641
51642         * lib/isnan.c: Don't include <math.h>.
51643         (FUNC): Don't use NAN macro.
51644         * modules/isnand-nolibm (Depends-on): Remove math.
51645         * modules/isnanf-nolibm (Depends-on): Remove math.
51646         * modules/isnanl (Depends-on): Remove math.
51647         * modules/isnanl-nolibm (Depends-on): Remove math.
51648
51649         * tests/nan.h: New file.
51650
51651 2008-04-01  Eric Blake  <ebb9@byu.net>
51652
51653         Fix typos.
51654         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
51655         values to be the right type.
51656
51657         For now, cater to gnulib strtod inaccuracies.
51658         * tests/test-strtod.c (main): Allow 1-ulp error on expected
51659         fractional results.  While not as nice from a QoI perspective, it
51660         is a quicker patch than correctly implementing decimal to binary
51661         rounding.
51662
51663 2008-03-31  Eric Blake  <ebb9@byu.net>
51664
51665         Guarantee a definition of NAN.
51666         * lib/math.in.h (NAN): Define if missing.
51667         * tests/test-math.c (main): Test it.
51668         * doc/posix-headers/math.texi (math.h): Document this.
51669         * lib/isnan.c (rpl_isnand): Use it.
51670         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
51671         * tests/test-floorf1.c (NaN): Likewise.
51672         * tests/test-frexp.c (NaN): Likewise.
51673         * tests/test-isnand.c (NaN): Likewise.
51674         * tests/test-isnanf.c (NaN): Likewise.
51675         * tests/test-round1.c (NaN): Likewise.
51676         * tests/test-roundf1.c (NaN): Likewise.
51677         * tests/test-snprintf-posix.h (NaN): Likewise.
51678         * tests/test-sprintf-posix.h (NaN): Likewise.
51679         * tests/test-trunc1.c (NaN): Likewise.
51680         * tests/test-truncf1.c (NaN): Likewise.
51681         * tests/test-vasnprintf-posix.c (NaN): Likewise.
51682         * tests/test-vasprintf-posix.c (NaN): Likewise.
51683         * modules/isnand-nolibm (Depends-on): Add math.
51684         * modules/isnanf-nolibm (Depends-on): Likewise.
51685         * modules/isnanl (Depends-on): Likewise.
51686         * modules/isnanl-nolibm (Depends-on): Likewise.
51687         * modules/snprintf-posix-tests (Depends-on): Likewise.
51688         * modules/sprintf-posix-tests (Depends-on): Likewise.
51689         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
51690         * modules/vsprintf-posix-tests (Depends-on): Likewise.
51691         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
51692         * modules/vasprintf-posix-tests (Depends-on): Likewise.
51693
51694 2008-03-31  Bruno Haible  <bruno@clisp.org>
51695
51696         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
51697         * doc/posix-functions/strtod.texi: Likewise.
51698
51699 2008-03-31  Bruno Haible  <bruno@clisp.org>
51700
51701         * tests/test-strtod.c (main): Don't use C99 syntax.
51702
51703 2008-03-31  Bruno Haible  <bruno@clisp.org>
51704
51705         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
51706         Reported by Eric Blake.
51707
51708 2008-03-31  Jim Meyering  <meyering@redhat.com>
51709
51710         Don't compare actual signbit return values.
51711         * tests/test-strtod.c (main): Rather, compare only their
51712         zero/non-zero nature.
51713
51714 2008-03-31  Eric Blake  <ebb9@byu.net>
51715
51716         More strtod documentation.
51717         * doc/posix-functions/strtod.texi (strtod): Interpret more test
51718         failures as distinct bugs.
51719
51720 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
51721
51722         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
51723         Problem reported by Erik Benada in
51724         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
51725
51726 2008-03-30  Bruno Haible  <bruno@clisp.org>
51727
51728         * tests/test-strtod.c: Add comments about which assertion fails on which
51729         platform.
51730         * doc/posix-functions/strtod.texi: Add info about many more platforms.
51731
51732 2008-03-30  Eric Blake  <ebb9@byu.net>
51733
51734         Test signbit behavior on zeros.
51735         * tests/test-signbit.c (test_signbitf): Add tests for zero.
51736         (test_signbitd, test_signbitl): Likewise.
51737
51738         More strtod touchups.
51739         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
51740         sign of negative underflow, for now.  Use .5, not .1.
51741         * doc/posix-functions/strtod.texi (strtod): Mention these
51742         limitations.
51743         Reported by Jim Meyering.
51744
51745 2008-03-30  Bruno Haible  <bruno@clisp.org>
51746
51747         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
51748         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
51749
51750 2008-03-30  Bruno Haible  <bruno@clisp.org>
51751
51752         Avoid failure when attempting to return empty iconv results on some
51753         platforms.
51754         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
51755         allocation, don't report ENOMEM when the resulting string is empty.
51756
51757 2008-03-30  Bruno Haible  <bruno@clisp.org>
51758
51759         Fix buffer overrun.
51760         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
51761         Don't consider the width for tmp_length. Check count against tmp_length
51762         before doing the padding. Ensure enough allocation during padding.
51763
51764 2008-03-30  Eric Blake  <ebb9@byu.net>
51765
51766         strtod touchups.
51767         * lib/strtod.c (strtod): Avoid compiler warnings.
51768         Reported by Jim Meyering.
51769
51770 2008-03-30  Bruno Haible  <bruno@clisp.org>
51771
51772         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
51773         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
51774         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
51775         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
51776         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
51777         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
51778         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
51779         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
51780
51781         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
51782         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
51783         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
51784         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
51785         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
51786         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
51787         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
51788         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
51789
51790         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
51791         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
51792         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
51793         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
51794         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
51795         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
51796         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
51797         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
51798
51799         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
51800         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
51801
51802         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
51803         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
51804
51805         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
51806         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
51807
51808         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
51809         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
51810         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
51811
51812         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
51813         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
51814         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
51815
51816         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
51817         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
51818         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
51819
51820         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
51821         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
51822         * modules/vasprintf (Depends-on): Add EOVERFLOW.
51823
51824         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
51825         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
51826         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
51827         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
51828         (Depends-on): Add EOVERFLOW.
51829         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
51830         (Depends-on): Add EOVERFLOW.
51831         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51832         (Depends-on): Add EOVERFLOW.
51833         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51834         (Depends-on): Add EOVERFLOW.
51835         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51836         (Depends-on): Add EOVERFLOW.
51837         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51838         (Depends-on): Add EOVERFLOW.
51839         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51840         (Depends-on): Add EOVERFLOW.
51841         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51842         (Depends-on): Add EOVERFLOW.
51843
51844         * lib/sprintf.c (EOVERFLOW): Remove fallback.
51845         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
51846         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
51847
51848         * lib/snprintf.c (EOVERFLOW): Remove fallback.
51849         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
51850         * modules/snprintf (Depends-on): Add EOVERFLOW.
51851
51852         * lib/poll.c (EOVERFLOW): Remove fallback.
51853         * modules/poll (Depends-on): Add EOVERFLOW.
51854
51855         * lib/getugroups.c (EOVERFLOW): Remove fallback.
51856         * modules/getugroups (Depends-on): Add EOVERFLOW.
51857
51858         * lib/getdelim.c (EOVERFLOW): Remove fallback.
51859         * modules/getdelim (Depends-on): Add EOVERFLOW.
51860
51861         * lib/ftell.c (EOVERFLOW): Remove fallback.
51862         * modules/ftell (Depends-on): Add EOVERFLOW.
51863
51864         * lib/fprintf.c (EOVERFLOW): Remove fallback.
51865         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
51866         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
51867
51868         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
51869
51870         * modules/EOVERFLOW-tests: New file.
51871         * tests/test-EOVERFLOW.c: New file.
51872
51873         * modules/EOVERFLOW: New file.
51874         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
51875
51876 2008-03-30  Bruno Haible  <bruno@clisp.org>
51877
51878         Fix bug introduced on 2007-06-10.
51879         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
51880         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
51881
51882 2008-03-30  Bruno Haible  <bruno@clisp.org>
51883
51884         Improve freadseek's efficiency after ungetc.
51885         * lib/freadseek.c: Include freadahead.h.
51886         (freadptrinc): New function, extracted from freadseek.
51887         (freadseek): Use it in a loop. Use freadahead to determine the number
51888         of loop iterations.
51889         * modules/freadseek (Depends-on): Add freadahead.
51890         (configure.ac): Require AC_C_INLINE.
51891
51892 2008-03-30  Bruno Haible  <bruno@clisp.org>
51893
51894         * lib/freadseek.c (freadseek): Don't ignore the return value of
51895         freadptr.
51896
51897 2008-03-29  Eric Blake  <ebb9@byu.net>
51898
51899         Add hex float support.
51900         * modules/strtod (Depends-on): Add c-ctype.
51901         (Link): Mention POW_LIB.
51902         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
51903         whitespace between 'e' and exponent.
51904         * tests/test-strtod.c (main): Enable hex float tests.
51905         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
51906         now provides.
51907
51908         Document various strtod bugs, with some fixes.
51909         * doc/posix-functions/strtod.texi (strtod): Document bugs with
51910         "-0x", "inf", "nan", and hex constants.
51911         * doc/posix-functions/atof.texi (atof): Likewise.
51912         * modules/stdlib (Makefile.am): Support strtod.
51913         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
51914         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
51915         detect additional strtod bugs.
51916         * lib/stdlib.in.h (rpl_strtod): Add declarations.
51917         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
51918         bool where appropriate.  Parse 'inf' and 'nan'.
51919         * tests/test-strtod.c: New file.
51920         * modules/strtod (Depends-on): Add stdbool, stdlib.
51921         (configure.ac): Turn on module indicator.
51922         * modules/strtod-tests: New module.
51923
51924 2008-03-29  Eric Blake  <ebb9@byu.net>
51925
51926         Fix ftell on mingw.
51927         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
51928         * modules/ftell-tests (Depends-on): Add binary-io.
51929         * modules/ftello-tests (Depends-on): Likewise.
51930         * tests/test-ftell.c (main): Enhance test to cover behavior after
51931         ungetc.  Enforce binary mode.
51932         * tests/test-ftello.c (main): Likewise.
51933
51934         Pass test-freadseek on cygwin.
51935         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
51936         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
51937         ungetc buffer.
51938
51939         * tests/test-fflush2.c (main): Fix typo.
51940
51941 2008-03-29  Bruno Haible  <bruno@clisp.org>
51942
51943         * tests/test-fflush2.c (main): Temporarily disable the contents of
51944         this test.
51945         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
51946         Reported by Eric Blake.
51947
51948 2008-03-28  Simon Josefsson  <simon@josefsson.org>
51949
51950         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
51951         (GC_SHA224_DIGEST_SIZE): Add.
51952
51953         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
51954         (gc_hash_digest_length): Likewise.
51955         (gc_hash_buffer): Likewise.
51956
51957 2008-03-25  Bruno Haible  <bruno@clisp.org>
51958
51959         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
51960         detail which gettext release to use.
51961         Reported by Simon Josefsson.
51962
51963 2008-03-26  Jim Meyering  <meyering@redhat.com>
51964
51965         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
51966         * modules/gnumakefile (clean-GNUmakefile): Also, use
51967         test ... && ... || : syntax rather than if-then ... fi.
51968
51969         gnumakefile: Don't double-quote-expand $(VPATH) value.
51970         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
51971
51972 2008-03-24  Eric Blake  <ebb9@byu.net>
51973
51974         Alter GNUmakefile to install into top directory.
51975         * modules/maintainer-makefile: Split, and add dependency...
51976         * modules/gnumakefile: to this new module.
51977         * build-aux/GNUmakefile: Move...
51978         * top/GNUmakefile: ...here.
51979         * build-aux/maint.mk: Move...
51980         * top/maint.mk: ...here.
51981         * MODULES.html.sh (Support for maintaining...): Document new
51982         module.
51983
51984 2008-03-23  Bruno Haible  <bruno@clisp.org>
51985
51986         * gnulib-tool: New options --vc-files, --no-vc-files.
51987         (func_usage): Document them.
51988         (vc_files): New variable.
51989         (func_import): Consider vc_files.
51990         (func_create_testdir): Set vc_files to empty.
51991         Suggested by Jim Meyering and Karl Berry.
51992
51993 2008-03-23  Bruno Haible  <bruno@clisp.org>
51994
51995         Fix regex compilation error on HP-UX 11.
51996         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
51997         * modules/regex (Files): Add m4/mbstate_t.m4.
51998         Reported by Ton Voon <ton.voon@altinity.com>.
51999
52000 2008-03-23  Bruno Haible  <bruno@clisp.org>
52001
52002         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
52003
52004 2008-03-23  Eric Blake  <ebb9@byu.net>
52005             Bruno Haible  <bruno@clisp.org>
52006
52007         Install files from top/ in the destination directory.
52008         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
52009         augmentation also for the files from top/.
52010         (func_import, func_create_testdir): Rewrite file names:
52011         top/filename -> filename.
52012
52013 2008-03-23  Bruno Haible  <bruno@clisp.org>
52014
52015         Tweak "gnulib --version" output.
52016         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
52017
52018 2008-03-23  Bruno Haible  <bruno@clisp.org>
52019
52020         Tweak "gnulib --version" output.
52021         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
52022         rather than contents of ChangeLog, when possible.
52023
52024 2008-03-21  Eric Blake  <ebb9@byu.net>
52025
52026         More --version tweaks.
52027         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
52028         date of last ChangeLog entry.
52029
52030 2008-03-21  Jim Meyering  <meyering@redhat.com>
52031
52032         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
52033
52034 2008-03-20  Eric Blake  <ebb9@byu.net>
52035
52036         VPATH fix.
52037         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
52038
52039 2008-03-20  Simon Josefsson  <simon@josefsson.org>
52040
52041         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
52042         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
52043
52044 2008-03-20  Eric Blake  <ebb9@byu.net>
52045
52046         Sync GNUmakefile with coreutils.
52047         * build-aux/GNUmakefile (have-Makefile): Rename...
52048         (_have-Makefile): ...to this, for namespace consideration.
52049         (GNUmakefile.cfg): Include, if present.
52050         (_autoreconf): Define a default.
52051         (_is-dist-target): New rule for rebuilds to pick up intra-release
52052         version.
52053         (maint-cfg.mk): Rename...
52054         (cfg.mk): ...to this.
52055
52056 2008-03-18  Jim Meyering  <meyering@redhat.com>
52057
52058         New script and module: mktempd
52059         * MODULES.html.sh (maint+release support): Add mktempd.
52060         * build-aux/mktempd: New file.
52061         * modules/mktempd: New file.
52062
52063 2008-03-15  Jim Meyering  <meyering@redhat.com>
52064
52065         Undo last change.
52066         * lib/sha1.c, lib/md5.c: 63 != ~63.
52067         Reported by Andreas Schwab.
52068
52069         sha1.c, md5.c: Hoist a redundant expression.
52070         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
52071         "ctx->buflen" only once, before calling *_process_block.
52072         * lib/md5.c (md5_process_bytes): Likewise.
52073
52074 2008-03-14  Eric Blake  <ebb9@byu.net>
52075
52076         Bump copyright year in files generated by gnulib-tool.
52077         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
52078         gnulib-tool, rather than hard-coding it.
52079
52080         Fix 'gnulib-tool --version' output to work with git.
52081         * gnulib-tool (func_gnulib_dir): New function, extracted from...
52082         (startup): ...here.
52083         (func_version): Use it to invoke git-version-gen, rather than
52084         relying on CVS keyword expansion.  Modernize wording.
52085         (cvsdatestamp, last_checkin_date, version): Kill unused
52086         variables.
52087
52088 2008-03-12  Jim Meyering  <meyering@redhat.com>
52089
52090         Recognize optional cast of the argument to free.
52091         * build-aux/useless-if-before-free: Update regexps.
52092
52093         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
52094
52095 2008-03-11  Bruno Haible  <bruno@clisp.org>
52096
52097         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
52098         by a single package.
52099         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
52100         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
52101         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
52102         Reported by Sam Steingold <sds@gnu.org>.
52103
52104 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
52105
52106         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
52107         repositories.
52108
52109 2008-03-11  Bruno Haible  <bruno@clisp.org>
52110
52111         Avoid conflicts between local macro definitions.
52112         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
52113         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
52114
52115 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
52116             Bruno Haible  <bruno@clisp.org>
52117
52118         Make va_copy work with some version of xlc on AIX 5.1.
52119         * lib/stdarg.in.h: New file.
52120         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
52121         On AIX, use a <stdarg.h> file substitute.
52122         * modules/stdarg (Files): Add lib/stdarg.in.h.
52123         (Depends-on): Add include_next.
52124         (Makefile.am): Build a stdarg.h substitute if requested.
52125         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
52126
52127 2008-03-10  Bruno Haible  <bruno@clisp.org>
52128
52129         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
52130         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
52131         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
52132
52133 2008-03-10  Bruno Haible  <bruno@clisp.org>
52134
52135         * modules/stdlib (Depends-on): Add include_next, remove
52136         absolute-header.
52137
52138 2008-03-09  Bruno Haible  <bruno@clisp.org>
52139
52140         * lib/freadahead.h (freadahead): Document more precisely.
52141         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
52142         the sum of both buffer sizes.
52143         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
52144         * NEWS: Document the change.
52145
52146 2008-03-09  Bruno Haible  <bruno@clisp.org>
52147
52148         Extend freadptr to return also the buffer size.
52149         * lib/freadptr.h (freadptr): Add sizep argument.
52150         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
52151         (freadptr): Add sizep argument. Determine buffer size like freadahead
52152         does.
52153         * tests/test-freadptr.c: Don't include freadahead.h.
52154         (main): Adapt for new calling convention of freadptr.
52155         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
52156         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
52157         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
52158         tests/test-freadptr2.sh.
52159         (Depends): Remove freadahead.
52160         (TESTS): Add test-freadptr2.sh.
52161         (check_PROGRAMS): Add test-freadptr2.
52162
52163 2008-03-09  Bruno Haible  <bruno@clisp.org>
52164
52165         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
52166         Report and solution by Simon Josefsson.
52167
52168 2008-03-06  Bruno Haible  <bruno@clisp.org>
52169
52170         Make fflush after ungetc work on BSD platforms.
52171         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
52172         * tests/test-fflush2.c: New file.
52173         * tests/test-fflush2.sh: New file.
52174         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
52175         tests/test-fflush2.c.
52176         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
52177         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
52178
52179 2008-03-06  Eric Blake  <ebb9@byu.net>
52180
52181         Likewise for ftello.
52182         * modules/ftello (Dependencies): Add extensions.
52183         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
52184
52185 2008-03-06  Bruno Haible  <bruno@clisp.org>
52186
52187         * modules/fseeko (Dependencies): Add extensions.
52188         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
52189         Needed on glibc systems.
52190
52191 2008-03-06  Bruno Haible  <bruno@clisp.org>
52192
52193         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
52194         email address.
52195         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
52196
52197 2008-03-06  Bruno Haible  <bruno@clisp.org>
52198
52199         * users.txt: Add libgnupdf.
52200
52201 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
52202
52203         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
52204         (Header File Substitutes, Function Substitutes,
52205         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
52206         (Build robot for gnulib): Fix typo.
52207
52208 2008-03-06  Bruno Haible  <bruno@clisp.org>
52209
52210         * doc/gnulib-tool.texi (VCS Issues): Small updates.
52211         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
52212
52213 2008-03-06  Bruno Haible  <bruno@clisp.org>
52214
52215         * doc/func.texi: New file, extracted from doc/gnulib.texi.
52216         * doc/gnulib.texi: Include it.
52217
52218 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52219
52220         * modules/func (License): Change license to unlimited; there was
52221         no LGPL parts in the module anyway.
52222
52223 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52224
52225         * modules/__func__: Renamed to modules/func.
52226         * modules/__func__-tests: Renamed to modules/func-tests.
52227         * tests/test-__func__.c: Renamed to tests/test-func.c.
52228         * m4/__func__.m4: Renamed to m4/func.m4.
52229         * doc/gnulib.texi (__func__): Section renamed to func.
52230         Suggested by Eric Blake <ebb9@byu.net>.
52231
52232 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52233
52234         * doc/gnulib.texi (__func__): Use C99 terminology when talking
52235         about __func__.  Make example self-contained.  Suggested by Eric
52236         Blake <ebb9@byu.net>.
52237
52238         * tests/test-__func__.c (main): Avoid extraneous () around __func.
52239         Suggested by Eric Blake <ebb9@byu.net>.
52240
52241 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52242
52243         * modules/__func__: New file.
52244         * modules/__func__-tests: New file.
52245         * tests/test-__func__.c: New file.
52246         * m4/__func__.m4: New file.
52247         * doc/gnulib.texi (__func__): Document __func__ module.
52248
52249 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52250
52251         * modules/byteswap (License): Re-license as LGPLv2+.
52252
52253 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52254
52255         * doc/Makefile: Add pdf target.
52256
52257 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52258
52259         * modules/inline (License): Use 'unlimited', since there are only
52260         *.m4 files in this module.
52261
52262 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
52263             Bruno Haible  <bruno@clisp.org>
52264
52265         Add support for HP C 7.1 on OpenVMS 8.3.
52266         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
52267
52268 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
52269
52270         Update VMS specifics.
52271         * lib/getopt.c [VMS]: Remove include of unixlib.h.
52272
52273 2008-03-02  Jim Meyering  <meyering@redhat.com>
52274
52275         Remove the last dependency on the "free" module.
52276         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
52277         Reported by Bob Proulx.
52278
52279         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
52280
52281         Remove useless "if" tests before free.  Deprecate "free" module.
52282         * doc/posix-functions/free.texi: Mention that this
52283         module is no longer useful.
52284         * modules/free (Notice): Say this module is obsolete.
52285         * modules/readutmp (Depends-on): Remove free.
52286         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
52287         * lib/putenv.c (putenv): Likewise.
52288         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
52289         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
52290         * tests/test-c-strcasestr.c (main): Likewise.
52291         * tests/test-c-strstr.c (main): Likewise.
52292         * tests/test-mbscasestr1.c (main): Likewise.
52293         * tests/test-mbscasestr2.c (main): Likewise.
52294         * tests/test-mbsstr1.c (main): Likewise.
52295         * tests/test-mbsstr2.c (main): Likewise.
52296         * tests/test-memmem.c (main): Likewise.
52297         * tests/test-strcasestr.c (main): Likewise.
52298         * tests/test-striconv.c (main): Likewise.
52299         * tests/test-striconveh.c (main): Likewise.
52300         * tests/test-striconveha.c (main): Likewise.
52301         * tests/test-strstr.c (main): Likewise.
52302
52303         * build-aux/git-version-gen: Adjust a comment and the Usage string.
52304
52305         bootstrap: sync from coreutils again
52306         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
52307
52308 2008-03-01  Jim Meyering  <meyering@redhat.com>
52309
52310         bootstrap: sync from coreutils
52311         * build-aux/bootstrap (update_po_files): Copy a .po file into place
52312         also when the target doesn't exist.
52313
52314 2008-03-01  Eric Blake  <ebb9@byu.net>
52315
52316         Fix bugs in last patch.
52317         * lib/memchr2.c (memchr2): Fix typo.
52318         * tests/test-memchr2.c: Test previous bug, and don't use GNU
52319         extension.
52320         Reported by Bruce Korb.
52321
52322         New module 'memchr2'.
52323         * modules/memchr2: New file.
52324         * modules/memchr2-tests: Likewise.
52325         * lib/memchr2.h: Likewise.
52326         * lib/memchr2.c: Likewise, based on memchr.c.
52327         * tests/test-memchr2.c: New test.
52328         * MODULES.html.sh (String handling): Add memchr2.
52329
52330 2008-02-29  Bruno Haible  <bruno@clisp.org>
52331
52332         * modules/freadseek-tests: New file.
52333         * tests/test-freadseek.sh: New file.
52334         * tests/test-freadseek.c: New file.
52335
52336         New module 'freadseek'.
52337         * modules/freadseek: New file.
52338         * lib/freadseek.h: New file.
52339         * lib/freadseek.c: New file.
52340         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
52341
52342 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
52343
52344         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
52345         wydawca.
52346
52347         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
52348         program_invocation_name and program_invocation_short_name are
52349         present.
52350
52351 2008-02-28  Bruno Haible  <bruno@clisp.org>
52352
52353         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
52354         * tests/test-freadptr.sh: Also test non-seekable stdin.
52355
52356 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
52357
52358         * build-aux/bootstrap (source_base, m4_base)
52359         (doc_base, tests_base): New variables.
52360         (gnulib_tool_options): Do not hardcode base directories, use
52361         the above variables instead.
52362
52363 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
52364
52365         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
52366
52367 2008-02-28  Bruno Haible  <bruno@clisp.org>
52368
52369         * modules/freadptr-tests: New file.
52370         * tests/test-freadptr.sh: New file.
52371         * tests/test-freadptr.c: New file.
52372
52373         New module 'freadptr'.
52374         * modules/freadptr: New file.
52375         * lib/freadptr.h: New file.
52376         * lib/freadptr.c: New file.
52377         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
52378
52379 2008-02-26  Karl Berry  <karl@freefriends.org>
52380
52381         Sync from Libtool:
52382         * libltdl/argz.c (argz_add, argz_count): New functions.
52383         * libltdl/argz.in.h: Declare them.
52384         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
52385
52386 2008-02-22  Bruno Haible  <bruno@clisp.org>
52387
52388         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
52389         is a pointer type.  Needed for HP-UX 10.
52390         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
52391         * doc/posix-functions/gmtime_r.texi: Likewise.
52392         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
52393
52394 2008-02-24  Bruno Haible  <bruno@clisp.org>
52395
52396         * modules/environ-tests: New file.
52397         * tests/test-environ.c: New file.
52398
52399         New module 'environ'.
52400         * modules/environ: New file.
52401         * lib/unistd.in.h (environ): New declaration.
52402         * m4/environ.m4: New file.
52403         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
52404         after use.
52405         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
52406         HAVE_DECL_ENVIRON.
52407         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
52408         HAVE_DECL_ENVIRON.
52409         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
52410         wrong claim that 'environ' is missing on some systems.
52411         * modules/execute (Depends-on): Add environ.
52412         * lib/execute.c (environ): Remove fallback declaration.
52413         * modules/pipe (Depends-on): Add environ.
52414         * lib/pipe.c (environ): Remove fallback declaration.
52415         * modules/setenv (Depends-on): Add environ.
52416         * lib/setenv.c (environ): Remove fallback declaration.
52417         * modules/unsetenv (Depends-on): Add environ.
52418         * lib/unsetenv.c (environ): Remove fallback declaration.
52419         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
52420         m4/environ.m4.
52421         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
52422         (gl_PREREQ_UNSETENV): Likewise.
52423
52424 2008-02-24  Bruno Haible  <bruno@clisp.org>
52425
52426         * doc/posix-functions/environ.texi: Document the MacOS X problem.
52427
52428 2008-02-20  Bob Proulx  <bob@proulx.com>
52429
52430         Enable use of older two part flavor 'git describe'.
52431         * build-aux/git-version-gen: If using the older two part flavor of
52432         git version then recreate the third part now present in the
52433         newer three part flavor of git describe.
52434
52435 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
52436
52437         * lib/fts.c (fts_build): Typo correction to comment.
52438
52439 2008-02-17  Bruno Haible  <bruno@clisp.org>
52440
52441         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
52442         generating no-op conflicts.
52443
52444 2008-02-17  Bruno Haible  <bruno@clisp.org>
52445
52446         Speed up by 10%.
52447         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
52448         result_entries, rather than an index-based loop.
52449
52450 2008-02-17  Bruno Haible  <bruno@clisp.org>
52451
52452         Speed up by 25%.
52453         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
52454         'hashcode_cached'.
52455         (entry_create): New function.
52456         (entry_hashcode): Use the cached hashcode if possible.
52457         (read_changelog_file, try_split_merged_entry): Use entry_create.
52458
52459 2008-02-17  Bruno Haible  <bruno@clisp.org>
52460
52461         Speed up from O(n^2) to O(n) for long ChangeLog files.
52462         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
52463         (read_changelog_file): Change implementation of entries_reversed list
52464         to rbtreehash.
52465         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
52466
52467 2008-02-17  Bruno Haible  <bruno@clisp.org>
52468
52469         New option --split-merged-entry.
52470         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
52471         (find_paragraph_end, try_split_merged_entry): New functions.
52472         (long_options): Add option --split-merged-entry.
52473         (usage): Document option --split-merged-entry.
52474         (main): Implement option --split-merged-entry.
52475         Reported by Eric Blake.
52476
52477 2008-02-17  Bruno Haible  <bruno@clisp.org>
52478
52479         * lib/git-merge-changelog.c: Include c-strstr.h.
52480         (main): Support the "git pull --rebase" situation.
52481         * modules/git-merge-changelog (Depends-on): Add c-strstr.
52482         Reported by Eric Blake.
52483
52484 2008-02-16  Eric Blake  <ebb9@byu.net>
52485
52486         Avoid doubling \ in common case of "c-maybe" quoting style.
52487         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
52488         eliding outer quotes.
52489         * lib/quotearg.h: Document this.
52490         * tests/test-quotearg.c (result_strings, inputs, results_g)
52491         (flag_results, locale_results): Test it by adding a new string to
52492         each test group.
52493         (compare_strings): Test new string.
52494
52495 2008-02-13  Eric Blake  <ebb9@byu.net>
52496
52497         Avoid trigraph quoting in default output.
52498         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
52499         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
52500         unless explicitly requested.
52501         * tests/test-quotearg.c (flag_results, main): Add additional tests.
52502
52503 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
52504
52505         Don't rely on signed integer overflowing to negative value.
52506         * lib/getugroups.c (getugroups): Include <limits.h>.
52507         Instead, compare against INT_MAX, and increment only if the test passes.
52508
52509 2008-02-13  Jim Meyering  <meyering@redhat.com>
52510         and Eric Blake  <ebb9@byu.net>
52511
52512         Avoid shadowing warning and compile errors on Linux.
52513         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
52514         forwarding macros on Linux.
52515         (dcgettext): Define a stub, for Linux.
52516         (results_g, main): Avoid warnings.
52517
52518 2008-02-12  Eric Blake  <ebb9@byu.net>
52519
52520         Silence warning in last patch.
52521         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
52522
52523         Quotearg part 4: add tests, fix c-maybe colon quoting.
52524         * lib/quotearg.h: Improve documentation.
52525         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
52526         escapes when adding outer quotes.  When quoting trigraphs, use
52527         valid C notation.  When quoting NUL, omit extra characters if next
52528         character is not digit.  Alter prototype.
52529         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
52530         callers.
52531         * modules/quotearg-tests: New module.
52532         * tests/test-quotearg.c: New test.
52533
52534 2008-02-07  Eric Blake  <ebb9@byu.net>
52535
52536         Quotearg part 3: add flag to control outer quote elision.
52537         * lib/quotearg.h (c_maybe_quoting_style): New style.
52538         (enum quoting_flags): Better documentation of flags.
52539         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
52540         c-maybe style.
52541         (quotearg_buffer_restyled): Handle new flag to elide outer
52542         quotes.
52543
52544         Quotearg part 2: add flag that can control NUL elision.
52545         * lib/quotearg.h (set_quoting_flags): New prototype.
52546         * lib/quotearg.c (struct quoting_options): Add flag field.
52547         (set_quoting_flags): New function.
52548         (quotearg_buffer_restyled): Add flags parameter.
52549         (quotearg_alloc_mem): Set the flag if length cannot be returned.
52550         (quotearg_n_options): Set the flag, since length cannot be
52551         returned.
52552         (quoting_options_from_style): Default flags correctly.
52553
52554         Quotearg part 1: more wrappers, restore quotearg_char state.
52555         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
52556         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
52557         (quotearg_colon_mem): New wrappers.
52558         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
52559         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
52560         functions.
52561         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
52562         (quotearg_colon_mem): New functions.
52563
52564 2008-02-11  Bruno Haible  <bruno@clisp.org>
52565
52566         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
52567         library in the current directory: it does not work with parallel make.
52568         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52569
52570 2008-02-11  Bruno Haible  <bruno@clisp.org>
52571
52572         * .gitattributes: New file.
52573
52574 2008-02-11  Jim Meyering  <meyering@redhat.com>
52575
52576         useless-if-before-free: Fix reversed exit values.
52577         * build-aux/useless-if-before-free: Use correct values
52578         for EXIT_MATCH and EXIT_NO_MATCH.
52579
52580         * build-aux/useless-if-before-free: Close stdout carefully.
52581
52582 2008-02-10  Bruno Haible  <bruno@clisp.org>
52583
52584         New module 'git-merge-changelog'.
52585         * modules/git-merge-changelog: New file.
52586         * lib/git-merge-changelog.c: New file.
52587
52588 2008-02-10  Jim Meyering  <meyering@redhat.com>
52589
52590         useless-if-before-free: New option: --list (-l).
52591
52592         useless-if-before-free: Don't exit immediately upon open failure.
52593         * build-aux/useless-if-before-free: Exit 2 for errors.
52594         Upon failure to open a file, don't exit immediately.
52595         Rather, just warn and continue with any remaining files.
52596
52597 2008-02-10  Bruno Haible  <bruno@clisp.org>
52598
52599         New abstract list operation 'node_set_value'.
52600         * lib/gl_list.h (gl_list_node_set_value): New function.
52601         (struct gl_list_implementation): New field node_set_value.
52602         * lib/gl_list.c (gl_list_node_set_value): New function.
52603         * lib/gl_array_list.c (gl_array_node_set_value): New function.
52604         (gl_array_list_implementation): Update.
52605         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
52606         (gl_carray_list_implementation): Update.
52607         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
52608         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
52609         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
52610         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
52611         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
52612         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
52613         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
52614         Update.
52615         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
52616         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
52617         (gl_sublist_list_implementation): Update.
52618
52619 2008-02-10  Bruno Haible  <bruno@clisp.org>
52620
52621         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
52622         Needed when ELEMENT is #defined to 'some_type *'.
52623
52624 2008-02-10  Jim Meyering  <meyering@redhat.com>
52625
52626         New script and module: useless-if-before-free
52627         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
52628         * build-aux/useless-if-before-free: New file.
52629         * modules/useless-if-before-free: New file.
52630
52631         * build-aux/gitlog-to-changelog: Use committer date, not author date.
52632
52633         xstrtol_error: Fix typo.
52634         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
52635         s/exit_failure/exit_status/.
52636
52637 2008-02-09  Jim Meyering  <meyering@redhat.com>
52638
52639         New script and module: gitlog-to-changelog
52640         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
52641         * modules/gitlog-to-changelog: New file.
52642         * build-aux/gitlog-to-changelog: New file.
52643
52644 2008-02-08  Jim Meyering  <meyering@redhat.com>
52645
52646         Avoid two "parameter unused" warnings.
52647         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
52648         Mark "st" as used.
52649
52650         Use "git COMMAND", not "git-COMMAND".
52651         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
52652         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
52653         * build-aux/git-version-gen: Use "git status", not "git-status".
52654
52655 2008-02-07  Bruno Haible  <bruno@clisp.org>
52656
52657         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
52658         Avoids a crash on Windows Vista.
52659         Reported by Adam Strzelecki <ono@java.pl> via
52660         Simon Josefsson <simon@josefsson.org>.
52661
52662 2008-02-06  Bruno Haible  <bruno@clisp.org>
52663
52664         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
52665         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
52666         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
52667         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
52668         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
52669         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52670         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
52671         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
52672         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52673         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52674         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52675         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52676         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52677         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52678         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52679         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
52680         left-adjust flag.
52681         * tests/test-snprintf-posix.h (test_function): Likewise.
52682         * tests/test-sprintf-posix.h (test_function): Likewise.
52683         * tests/test-vasprintf-posix.c (test_function): Likewise.
52684         * doc/posix-functions/fprintf.texi: Update.
52685         * doc/posix-functions/printf.texi: Update.
52686         * doc/posix-functions/snprintf.texi: Update.
52687         * doc/posix-functions/sprintf.texi: Update.
52688         * doc/posix-functions/vfprintf.texi: Update.
52689         * doc/posix-functions/vprintf.texi: Update.
52690         * doc/posix-functions/vsnprintf.texi: Update.
52691         * doc/posix-functions/vsprintf.texi: Update.
52692         Reported by Peter Fales <psfales@alcatel-lucent.com>.
52693
52694 2008-02-06  Bruno Haible  <bruno@clisp.org>
52695
52696         Fix bug introduced on 2008-01-26.
52697         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
52698
52699 2008-02-06  Bruno Haible  <bruno@clisp.org>
52700
52701         Fix bug introduced on 2007-06-10.
52702         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
52703         !NEED_PRINTF_FLAG_ZERO.
52704
52705 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
52706
52707         getloadavg: use libperfstat on AIX5
52708         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
52709
52710 2008-02-03  Bruno Haible  <bruno@clisp.org>
52711
52712         * lib/diffseq.h: Add comments about required #includes.
52713         Reported by Michael Biggs <gnulib@doubleplum.net>.
52714
52715 2008-02-01  Bruno Haible  <bruno@clisp.org>
52716
52717         * users.txt: Add gnuit.
52718
52719 2008-01-31  Bruno Haible  <bruno@clisp.org>
52720
52721         * lib/md4.c (set_uint32): Mark as inline.
52722         * lib/md5.c (set_uint32): Likewise.
52723         * lib/sha1.c (set_uint32): Likewise.
52724         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
52725         * m4/md5.m4 (gl_MD5): Likewise.
52726         * m4/sha1.m4 (gl_SHA1): Likewise.
52727
52728 2008-01-31  Jim Meyering  <meyering@redhat.com>
52729
52730         Use "sizeof VAR", rather than a literal "4".
52731         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
52732         * lib/md4.c (md4_read_ctx): Likewise.
52733         * lib/sha1.c (sha1_read_ctx): Likewise.
52734
52735 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52736
52737         * tests/test-sha1.c: New file, based on test-md5.c.
52738
52739         * modules/crypto/sha1-tests: New file.
52740
52741 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52742
52743         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
52744
52745 2008-01-31  Jim Meyering  <meyering@redhat.com>
52746
52747         Prefer "sizeof v" over the equivalent "4".
52748         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
52749         * lib/md5.c (set_uint32): Likewise.
52750         * lib/sha1.c (set_uint32): Likewise.
52751
52752 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52753
52754         * lib/sha1.c (set_uint32): Mark function as static.
52755
52756 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52757
52758         md2: clarify comments to say that alignment is not required.
52759         * lib/md2.h: Remove warning about alignment in comment.
52760         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
52761         never been required.
52762
52763 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52764
52765         md4: adapt alignment constraint fix from sha1.
52766         * lib/md4.c (set_uint32): New function, from sha1.c
52767         (md4_read_ctx): Use it.
52768         (md4_finish_ctx): Doc fix.
52769         * lib/md4.h: Doc fix.
52770
52771 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52772
52773         md5: adapt alignment constraint fix from sha1.
52774         * lib/md5.c (set_uint32): New function, from sha1.c
52775         (md5_read_ctx): Use it.
52776         (md5_finish_ctx): Doc fix.
52777         * lib/md5.h: Doc fix.
52778
52779 2008-01-30  Peter Palfrader  <weasel@debian.org>
52780
52781         sha1: remove the result buffer alignment constraint
52782         * lib/sha1.c (set_uint32): New function.
52783         (sha1_read_ctx): Rewrite to remove the result buffer alignment
52784         constraint.
52785         (sha1_finish_ctx): Remove comment warning about alignment constraint.
52786         * lib/sha1.h: Likewise.
52787
52788 2008-01-30  Andreas Schwab  <schwab@suse.de>
52789             Bruno Haible  <bruno@clisp.org>
52790
52791         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
52792         correct definition of LDBL_MIN_EXP.
52793
52794 2008-01-30  Karl Berry  <karl@gnu.org>
52795
52796         * config/srclist-update: try to preserve x bit on updates.
52797         * config/srclistvars.sh: update for karl.
52798
52799 2008-01-29  Jim Meyering  <meyering@redhat.com>
52800
52801         vasnprintf.c: Avoid warning about unused label
52802         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
52803         "overflow" label definition and associated code with the
52804         same cpp condition that guards the sole use of that label.
52805
52806 2008-01-26  Bruno Haible  <bruno@clisp.org>
52807
52808         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
52809         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
52810         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
52811         * lib/isnanl-nolibm.h (isnanl): Likewise.
52812         Reported by Paul Eggert <eggert@cs.ucla.edu>.
52813
52814 2008-01-26  Bruno Haible  <bruno@clisp.org>
52815
52816         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
52817         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
52818
52819 2008-01-26  Bruno Haible  <bruno@clisp.org>
52820
52821         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
52822         GCC >= 4.0 built-in.
52823         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
52824
52825 2008-01-26  Bruno Haible  <bruno@clisp.org>
52826
52827         Rename isnan, applicable to 'double' only, to isnand.
52828         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
52829         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
52830         (configure.ac): Update.
52831         (Include): Replace "isnan.h" with "isnand.h".
52832         * m4/isnand.m4: Renamed from m4/isnan.m4.
52833         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
52834         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
52835         instead of isnan.c.
52836         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
52837         instead of HAVE_ISNAN_IN_LIBC.
52838         (isnand): Renamed from isnan.
52839         * lib/isnand.c: New file.
52840         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
52841         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
52842         (Makefile.am): Update.
52843         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
52844         Include isnand.h instead of isnan.h.
52845         (main): Test isnand instead of isnan.
52846         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
52847         isnan-nolibm.
52848         * modules/frexp (Depends-on): Likewise.
52849         * modules/frexp-tests (Depends-on): Likewise.
52850         * modules/frexp-nolibm (Depends-on): Likewise.
52851         * modules/frexp-nolibm-tests (Depends-on): Likewise.
52852         * modules/isfinite (Depends-on): Likewise.
52853         * modules/round-tests (Depends-on): Likewise.
52854         * modules/signbit (Depends-on): Likewise.
52855         * modules/signbit-tests (Depends-on): Likewise.
52856         * modules/snprintf-posix (Depends-on): Likewise.
52857         * modules/sprintf-posix (Depends-on): Likewise.
52858         * modules/trunc-tests (Depends-on): Likewise.
52859         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52860         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52861         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52862         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52863         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52864         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52865         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52866         * modules/vasnprintf-posix (Depends-on): Likewise.
52867         * modules/vasprintf-posix (Depends-on): Likewise.
52868         * modules/vfprintf-posix (Depends-on): Likewise.
52869         * modules/vsnprintf-posix (Depends-on): Likewise.
52870         * modules/vsprintf-posix (Depends-on): Likewise.
52871         * lib/frexp.c: Include isnand.h instead of isnan.h.
52872         (ISNAN): Set to isnand instead of isnan.
52873         * lib/isfinite.c: Include isnand.h instead of isnan.h.
52874         (gl_isfinited): Use isnand instead of isnan.
52875         * lib/signbitd.c: Include isnand.h instead of isnan.h.
52876         (gl_signbitd): Use isnand instead of isnan.
52877         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
52878         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
52879         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
52880         (main): Use isnand instead of isnan.
52881         * tests/test-round1.c: Include isnand.h.
52882         (main): Use isnand instead of isnan.
52883         * tests/test-round2.c: Include isnand.h instead of isnan.h.
52884         (ISNAN): Set to isnand instead of isnan.
52885         * tests/test-trunc1.c: Include isnand.h.
52886         (main): Use isnand instead of isnan.
52887         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
52888         (equal): Use isnand instead of isnan.
52889         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
52890         isnand-nolibm.
52891         * NEWS: Mention the change.
52892
52893 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
52894             Bruno Haible  <bruno@clisp.org>
52895
52896         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
52897         the GCC builtins for signbits are present and set
52898         REPLACE_SIGNBIT_USING_GCC if so.
52899         * lib/math.in.h (signbit): Define using GCC builtins if
52900         REPLACE_SIGNBIT_USING_GCC is set.
52901         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
52902         REPLACE_SIGNBIT_USING_GCC.
52903         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
52904
52905 2008-01-25  Jim Meyering  <meyering@redhat.com>
52906
52907         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
52908         * lib/poll.c: Include <config.h>, not "config.h".
52909         * tests/test-getaddrinfo.c: Likewise.
52910
52911 2008-01-25  Simon Josefsson  <simon@josefsson.org>
52912
52913         * modules/sockets-tests: New file.
52914
52915 2008-01-24  Simon Josefsson  <simon@josefsson.org>
52916
52917         * modules/sockets: New module, can be used to call WSA_Startup and
52918         WSA_Cleanup when needed.
52919
52920         * lib/sockets.h, lib/sockets.c: New files.
52921
52922         * m4/sockets.m4: New file.
52923
52924         * tests/test-sockets.c: New file.
52925
52926 2008-01-19  Bruno Haible  <bruno@clisp.org>
52927
52928         * doc/posix-headers: Renamed from doc/headers.
52929         * doc/posix-functions: Renamed from doc/functions.
52930         * doc/gnulib.texi: Update.
52931
52932 2008-01-19  Bruno Haible  <bruno@clisp.org>
52933
52934         * doc/glibc-functions/strcasestr.texi: Include contents of
52935         doc/functions/strcasestr.texi, fixing the list of platforms.
52936         * doc/functions/strcasestr.texi: Remove file.
52937
52938 2008-01-19  Bruno Haible  <bruno@clisp.org>
52939
52940         * doc/glibc-functions/memmem.texi: Include contents of
52941         doc/functions/memmem.texi.
52942         * doc/functions/memmem.texi: Remove file.
52943
52944 2008-01-18  Bruno Haible  <bruno@clisp.org>
52945
52946         * doc/glibc-functions/*.texi: New files.
52947         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
52948         to use the new files.
52949
52950 2008-01-17  Bruno Haible  <bruno@clisp.org>
52951
52952         * tests/test-gethostname.c (main): Fix printf statement.
52953
52954 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52955
52956         * modules/gethostname-tests: New file.
52957
52958         * tests/test-gethostname.c: New file.
52959
52960 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52961
52962         * lib/gethostname.c: Include string.h unconditionally, strncpy is
52963         used by the UNAME case.  Reported by Bruno Haible
52964         <bruno@clisp.org>.
52965
52966 2008-01-17  Eric Blake  <ebb9@byu.net>
52967
52968         Convert c-strcasestr to be more efficient.
52969         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
52970         (Depends-on): Add c-strcase, remove malloca, strnlen.
52971         * tests/test-c-strcasestr.c (main): Enhance test.
52972         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
52973
52974 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
52975
52976         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
52977         Use it in creating po/Makevars.
52978
52979 2008-01-15  Simon Josefsson  <simon@josefsson.org>
52980
52981         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
52982         Applications that requires it should initialize libgcrypt
52983         manually.
52984
52985 2008-01-16  Simon Josefsson  <simon@josefsson.org>
52986
52987         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
52988
52989 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
52990
52991         Fix problem with getdate on mingw32 reported by Simon Josefsson
52992         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
52993         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
52994         tzname", when deciding whether to declare tzname.
52995         * lib/strftime.c (tzname): Likewise.
52996
52997 2008-01-15  Bruno Haible  <bruno@clisp.org>
52998
52999         Work around a MacOS X 10.5 bug in frexpl().
53000         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
53001         * doc/functions/frexpl.texi: Document the bug.
53002         Reported by Elias Pipping <pipping@gentoo.org>.
53003
53004 2008-01-14  Eric Blake  <ebb9@byu.net>
53005
53006         Touch up previous patch.
53007         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
53008         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
53009
53010         Convert strcasestr module to use Two-Way algorithm.
53011         * modules/strcasestr-simple: New module, based on the old
53012         strcasestr, but with Two-Way rather than KMP.
53013         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
53014         * lib/string.in.h (rpl_strcasestr): Declare.
53015         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
53016         performance.
53017         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
53018         * modules/string (Makefile.am): Support strcasestr.
53019         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
53020         * modules/strcasestr-tests (Depends-on): Check for alarm.
53021         * tests/test-strcasestr.c: Augment test.
53022         * lib/str-two-way.h: Clean up stray macro.
53023         * NEWS: Document new module.
53024         * MODULES.html.sh (string handling): Likewise.
53025         * doc/functions/strcasestr.texi: New file.
53026         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
53027         here, since it is not a POSIX function.
53028
53029 2008-01-14  Colin Watson  <cjwatson@debian.org>
53030             Bruno Haible  <bruno@clisp.org>
53031
53032         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
53033         works fine; if not, set REPLACE_STRSIGNAL.
53034         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
53035         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53036         REPLACE_STRSIGNAL.
53037         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
53038         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
53039         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
53040
53041 2008-01-14  Bruno Haible  <bruno@clisp.org>
53042
53043         * modules/strsignal (Include): Change to <string.h>.
53044
53045 2008-01-14  Colin Watson  <cjwatson@debian.org>
53046
53047         * modules/argp (Notice): Add a notice recommending to change
53048         XGETTEXT_OPTIONS.
53049         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
53050
53051 2008-01-13  Colin Watson  <cjwatson@debian.org>
53052
53053         * modules/strsignal-tests: New file.
53054         * tests/test-strsignal.c: New file.
53055
53056         * lib/strsignal.c: New file, from glibc with modifications.
53057         * lib/siglist.h: New file, from glibc with modifications.
53058         * lib/string.in.h (strsignal): New declaration.
53059         * m4/strsignal.m4: New file.
53060         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53061         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
53062         * modules/strsignal: New file.
53063         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
53064         HAVE_DECL_STRSIGNAL.
53065
53066 2008-01-13  Bruno Haible  <bruno@clisp.org>
53067
53068         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
53069         locale encoding is not ASCII. Needed for OpenBSD 4.0.
53070         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
53071         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
53072
53073 2008-01-13  Bruno Haible  <bruno@clisp.org>
53074
53075         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
53076         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
53077         * lib/argp.h (__attribute__): Likewise.
53078         * lib/c-stack.c (__attribute__): Likewise.
53079         * lib/error.h (__attribute__): Likewise.
53080         * lib/fts.c (__attribute__): Likewise.
53081         * lib/openat.h (__attribute__): Likewise.
53082         * lib/stdio.in.h (__attribute__): Likewise.
53083         * lib/string.in.h (__attribute__): Likewise.
53084         * lib/utimens.c (__attribute__): Likewise.
53085         * lib/vasnprintf.h (__attribute__): Likewise.
53086         * lib/xalloc.h (__attribute__): Likewise.
53087         * lib/xprintf.h (__attribute__): Likewise.
53088         * lib/xstrtol.h (__attribute__): Likewise.
53089         * lib/xvasprintf.h (__attribute__): Likewise.
53090
53091 2008-01-12  Bruno Haible  <bruno@clisp.org>
53092
53093         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
53094         * doc/glibc-headers/a.out.texi: New file.
53095         * doc/glibc-headers/aliases.texi: New file.
53096         * doc/glibc-headers/alloca.texi: New file.
53097         * doc/glibc-headers/ar.texi: New file.
53098         * doc/glibc-headers/argp.texi: New file.
53099         * doc/glibc-headers/argz.texi: New file.
53100         * doc/glibc-headers/byteswap.texi: New file.
53101         * doc/glibc-headers/crypt.texi: New file.
53102         * doc/glibc-headers/endian.texi: New file.
53103         * doc/glibc-headers/envz.texi: New file.
53104         * doc/glibc-headers/err.texi: New file.
53105         * doc/glibc-headers/error.texi: New file.
53106         * doc/glibc-headers/execinfo.texi: New file.
53107         * doc/glibc-headers/fpu_control.texi: New file.
53108         * doc/glibc-headers/fstab.texi: New file.
53109         * doc/glibc-headers/fts.texi: New file.
53110         * doc/glibc-headers/getopt.texi: New file.
53111         * doc/glibc-headers/ieee754.texi: New file.
53112         * doc/glibc-headers/ifaddrs.texi: New file.
53113         * doc/glibc-headers/libintl.texi: New file.
53114         * doc/glibc-headers/mcheck.texi: New file.
53115         * doc/glibc-headers/mntent.texi: New file.
53116         * doc/glibc-headers/obstack.texi: New file.
53117         * doc/glibc-headers/paths.texi: New file.
53118         * doc/glibc-headers/printf.texi: New file.
53119         * doc/glibc-headers/pty.texi: New file.
53120         * doc/glibc-headers/resolv.texi: New file.
53121         * doc/glibc-headers/shadow.texi: New file.
53122         * doc/glibc-headers/sysexits.texi: New file.
53123         * doc/glibc-headers/ttyent.texi: New file.
53124
53125 2008-01-12  Jim Meyering  <meyering@redhat.com>
53126
53127         announce-gen: emit Gnulib's git-based version string.
53128         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
53129         New option --gnulib-version=V, where V is expected to be
53130         the output of running git describe in the gnulib directory.
53131         (get_tool_versions): Request feedback on xdelta.  I suspect it's
53132         not useful, and plan to stop publishing an xdelta file with each
53133         coreutils release.
53134
53135         * build-aux/announce-gen: Also check for lzma-compressed files.
53136
53137 2008-01-11  Bruno Haible  <bruno@clisp.org>
53138
53139         * tests/test-memmem.c (main): Increase maximum allowed time.
53140         * tests/test-strstr.c (main): Likewise.
53141
53142 2008-01-11  Bruno Haible  <bruno@clisp.org>
53143
53144         * doc/functions/memmem.texi: Add more precisions about platforms.
53145         * doc/functions/strstr.texi: Likewise.
53146
53147 2008-01-10  Eric Blake  <ebb9@byu.net>
53148
53149         * m4/strstr.m4: Delete cruft from copy-n-paste.
53150         Reported by Bruno Haible.
53151
53152 2008-01-10  Bruno Haible  <bruno@clisp.org>
53153
53154         Make c-strstr rely on strstr.
53155         * lib/c-strstr.c: Don't include str-kmp.h.
53156         (c_strstr): Define in terms of strstr.
53157         * modules/c-strstr (Files): Remove lib/str-kmp.h.
53158         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
53159
53160 2008-01-10  Bruno Haible  <bruno@clisp.org>
53161
53162         * doc/gnulib.texi (String Functions in C Locale): New section.
53163         * doc/c-ctype.texi: New file.
53164         * doc/c-strcase.texi: New file.
53165         * doc/c-strcaseeq.texi: New file.
53166         * doc/c-strcasestr.texi: New file.
53167         * doc/c-strstr.texi: New file.
53168         * doc/c-strtod.texi: New file.
53169         * doc/c-strtold.texi: New file.
53170
53171 2008-01-10  Eric Blake  <ebb9@byu.net>
53172
53173         * lib/relocatable.h: Fix a comment.
53174
53175 2008-01-10  Eric Blake  <ebb9@byu.net>
53176
53177         Share two-way algorithm.
53178         * lib/str-two-way.h: New file, merged from...
53179         * lib/memmem.c: ...here...
53180         * lib/strstr.c: ...and here.
53181         * modules/memmem (Files): Use it.
53182         * modules/strstr (Files): Likewise.
53183
53184         Avoid quadratic strstr implementations.
53185         * lib/strstr.c: New file.
53186         * m4/strstr.m4: Likewise.
53187         * modules/strstr: Likewise.
53188         * modules/strstr-tests: Likewise.
53189         * tests/test-strstr.c: Likewise.
53190         * lib/string.in.h (rpl_strstr): Declare.
53191         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
53192         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
53193         * modules/string (Makefile.am): Likewise.
53194         * MODULES.html.sh (string handling): Mention new module.
53195         * doc/functions/strstr.texi (strstr): Document the bug.
53196
53197 2008-01-10  Bruno Haible  <bruno@clisp.org>
53198
53199         * lib/relocatable.h (relocate): State whether result is freshly
53200         allocated or not.
53201         * lib/relocatable.c (relocate): Return a freshly allocated string
53202         instead of a pointer to a privately held string.
53203         Reported by Sylvain Beucler <beuc@gnu.org>.
53204
53205 2008-01-10  Colin Watson  <cjwatson@debian.org>
53206
53207         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
53208         s/S_ISNLK/S_ISLNK/.
53209
53210 2008-01-09  Bruno Haible  <bruno@clisp.org>
53211
53212         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
53213         and other files.
53214         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
53215         if it's only a guess.
53216         * modules/memmem: Simplify by depending on memmem-simple.
53217
53218 2008-01-09  Bruno Haible  <bruno@clisp.org>
53219
53220         Work around OpenBSD 4.0 tdelete() bug.
53221         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
53222         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
53223         macros and don't redefine the enum values.
53224         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
53225         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
53226         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
53227
53228 2008-01-09  Bruno Haible  <bruno@clisp.org>
53229
53230         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
53231         (main): Don't perform the tests if setlocale did not install a UTF-8
53232         locale. Needed on OpenBSD 4.0.
53233         * modules/wcwidth-tests (Depends-on): Add localcharset.
53234
53235 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53236
53237         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
53238         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
53239         * NEWS: announce this.
53240         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
53241
53242 2008-01-09  Simon Josefsson  <simon@josefsson.org>
53243         and Eric Blake  <ebb9@byu.net>
53244
53245         Add memmem-simple module.
53246         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
53247         (gl_FUNC_MEMMEM): Separate performance from presence checks.
53248         * modules/memmem-simple: New file.
53249         * modules/memmem (Description): Tweak.
53250         * MODULES.html.sh (string handling): Mention new module.
53251         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
53252         addressed by memmem-simple.
53253         * NEWS: Document the difference.
53254
53255 2008-01-09  Eric Blake  <ebb9@byu.net>
53256
53257         Give gcc some memmem optimization hints.
53258         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
53259         (strcasestr): Declare as pure.
53260         * modules/memmem (Maintainer): Claim my implementation.
53261
53262 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53263
53264         Support AIX 6.1 and higher.
53265         * build-aux/config.libpath: Likewise.
53266         * build-aux/config.rpath: Likewise.
53267
53268 2008-01-08  Jim Meyering  <meyering@redhat.com>
53269             Bruno Haible  <bruno@clisp.org>
53270
53271         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
53272         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
53273         Reported by Peter Fales in
53274         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
53275
53276 2008-01-08  Bruno Haible  <bruno@clisp.org>
53277
53278         * modules/unictype/category-of (Depends-on): Add
53279         unictype/category-none.
53280         * modules/unictype/category-and-tests (Depends-on): Add
53281         unictype/category-{L,N,Lu,Nd}.
53282         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
53283         * modules/unictype/category-or-tests (Depends-on): Add
53284         unictype/category-{L,N}.
53285         * modules/unictype/category-name-tests (Depends-on): Add
53286         unictype/category-{Z,Nl}.
53287         Reported by Simon Josefsson.
53288
53289 2008-01-08  Bruno Haible  <bruno@clisp.org>
53290
53291         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
53292         convention better.
53293         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
53294         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
53295         Reported by Peter Miller <millerp@canb.auug.org.au>.
53296
53297 2008-01-08  Eric Blake  <ebb9@byu.net>
53298
53299         Rewrite memmem to guarantee linear complexity without malloc.
53300         * lib/memmem.c (memmem): Use Two-Way rather than
53301         Knuth-Morris-Pratt, to allow O(1) space usage.
53302         (critical_factorization, two_way_short_needle)
53303         (two_way_long_needle): New functions.
53304         (knuth_morris_pratt): Delete.
53305         * modules/memmem (Depends-on): No longer need malloca or stdbool.
53306         Add stdint.
53307         * tests/test-memmem.c (main): Add tests for periodic needle and
53308         sublinear performance.
53309         * doc/functions/memmem.texi (memmem): Document other deficiencies
53310         in cygwin and older glibc.
53311
53312 2008-01-08  Bruno Haible  <bruno@clisp.org>
53313
53314         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
53315         augmentation.
53316
53317 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
53318
53319         Add a configure time option: --disable-acl.
53320         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
53321         AC_ARG_ENABLE(acl).
53322
53323 2008-01-06  Simon Josefsson  <simon@josefsson.org>
53324
53325         * tests/test-localename.c: Don't include obsolete "setenv.h".
53326
53327         * modules/localename-tests (Depends-on): Need unsetenv.
53328
53329 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53330
53331         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
53332
53333 2008-01-06  Colin Watson  <cjwatson@debian.org>
53334
53335         * users.txt: Add man-db.
53336
53337 2008-01-07  Bruno Haible  <bruno@clisp.org>
53338
53339         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
53340         previous section name.
53341
53342 2008-01-07  Bruno Haible  <bruno@clisp.org>
53343
53344         * lib/progname.c (set_program_name): Don't strip off a leading
53345         "lt-" prefix outside a .libs directory.
53346         Suggested by Paul Eggert.
53347
53348 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
53349             Bruno Haible  <bruno@clisp.org>
53350
53351         Improve memory cleanup in 'relocatable' module.
53352         * lib/relocatable.h (compute_curr_prefix): Change return type to
53353         'char *'.
53354         * lib/relocatable.c (compute_curr_prefix): Change return type to
53355         'char *'. Free curr_installdir after use.
53356         (relocate): Free curr_prefix_better after use.
53357         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
53358
53359 2008-01-01  Bruno Haible  <bruno@clisp.org>
53360
53361         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
53362         failure on older glibc systems.
53363         Reported by Peter Fales <psfales@alcatel-lucent.com>.
53364
53365 2008-01-05  Eric Blake  <ebb9@byu.net>
53366
53367         Avoid quadratic system memmem.
53368         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
53369         Reported by Ralf Wildenhues.
53370
53371         Fix memmem test for mingw.
53372         * modules/memmem-tests (configure.ac): Check for alarm.
53373         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
53374         it.
53375         * doc/functions/memmem.texi: New file.
53376         * doc/gnulib.texi (Function Substitutes): Add memmem.
53377         Reported by Bruno Haible.
53378
53379 2008-01-04  Bruno Haible  <bruno@clisp.org>
53380
53381         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
53382         Require gl_HEADER_STRINGS_H_DEFAULTS, not
53383         gl_HEADER_STRING_H_DEFAULTS.
53384
53385 2008-01-04  Eric Blake  <ebb9@byu.net>
53386
53387         Shorten duration of memmem test.
53388         * tests/test-memmem.c (main): Use alarm to declare failure if test
53389         is taking too long.
53390         Reported by Ralf Wildenhues.
53391
53392 2007-12-21  Simon Josefsson  <simon@josefsson.org>
53393
53394         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
53395         string, needed by strerror.
53396
53397 2008-01-03  Colin Watson  <cjwatson@debian.org>
53398             Bruno Haible  <bruno@clisp.org>
53399
53400         * doc/gnulib-tool.texi (Localization): New section.
53401
53402 2008-01-02  Bruno Haible  <bruno@clisp.org>
53403
53404         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
53405         variables to 'unsigned char *' type.
53406         Reported by Paul Eggert.
53407
53408 2008-01-02  Jim Meyering  <jim@meyering.net>
53409
53410         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
53411
53412 2007-12-31  Jim Meyering  <jim@meyering.net>
53413
53414         Avoid use of private FTS type name.
53415         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
53416
53417 2007-12-30  Karl Berry  <karl@gnu.org>
53418
53419         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
53420         work around defect in Texinfo and/or the standalone Info browser.
53421
53422 2007-12-30  Bruno Haible  <bruno@clisp.org>
53423
53424         Unify 5 copies of the KMP code.
53425         * lib/str-kmp.h: New file.
53426         * lib/c-strcasestr.c: Include str-kmp.h.
53427         (knuth_morris_pratt): Remove function.
53428         (c_strcasestr): Update.
53429         * lib/c-strstr.c: Include str-kmp.h.
53430         (knuth_morris_pratt): Remove function.
53431         (c_strcasestr): Update.
53432         * lib/mbscasestr.c: Include str-kmp.h.
53433         (knuth_morris_pratt_unibyte): Remove function.
53434         * lib/mbsstr.c: Include str-kmp.h.
53435         (knuth_morris_pratt_unibyte): Remove function.
53436         * lib/strcasestr.c: Include str-kmp.h.
53437         (knuth_morris_pratt): Remove function.
53438         (strcasestr): Update.
53439         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
53440         * modules/c-strstr (Files): Likewise.
53441         * modules/mbscasestr (Files): Likewise.
53442         * modules/mbsstr (Files): Likewise.
53443         * modules/strcasestr (Files): Likewise.
53444         Suggested by Paul Eggert.
53445
53446 2007-12-30  Bruno Haible  <bruno@clisp.org>
53447
53448         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
53449         defined.
53450
53451 2007-12-30  Bruno Haible  <bruno@clisp.org>
53452
53453         * lib/xmalloca.h: Include xalloc.h.
53454         (xnmalloca): New macro.
53455
53456 2007-12-30  Bruno Haible  <bruno@clisp.org>
53457
53458         * lib/malloca.h (nmalloca): New macro.
53459         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
53460         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
53461         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
53462         knuth_morris_pratt_multibyte): Likewise.
53463         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
53464         knuth_morris_pratt_multibyte): Likewise.
53465         * lib/memmem.c (knuth_morris_pratt): Likewise.
53466         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
53467
53468 2007-12-25  Bruno Haible  <bruno@clisp.org>
53469
53470         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
53471         * lib/glob.c: Don't include openat.h.
53472         (link_exists2_p): Add back the code that deals with the
53473         !GLOB_ALTDIRFUNC case.
53474         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
53475         let it do the filename concatenation.
53476         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
53477         * modules/glob (Depends-on): Remove openat.
53478
53479 2007-12-31  Bruno Haible  <bruno@clisp.org>
53480
53481         * modules/dirfd (License): Change to LGPLv2+.
53482         Approved by Jim Meyering.
53483
53484 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
53485
53486         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
53487         when multiplying M by sizeof (size_t).
53488
53489 2007-12-10  Martin Lambers  <marlam@marlam.de>
53490
53491         Override getpagesize on mingw.
53492         * lib/getpagesize.c: New file.
53493         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
53494         * modules/getpagesize (Files): Add lib/getpagesize.c.
53495         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
53496         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53497         REPLACE_GETPAGESIZE.
53498         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
53499
53500 2007-12-25  Bruno Haible  <bruno@clisp.org>
53501
53502         * modules/localcharset (Notice): New field.
53503         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
53504         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
53505
53506 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
53507             Bruno Haible  <bruno@clisp.org>
53508
53509         Avoid using the syntax symbol() in formatted documentation.
53510         * MODULES.html.sh (func_module): When replacing symbol() with a
53511         hyperlink, remove the parentheses. Show an error if some remain.
53512         Recognize and render the '...' syntax.
53513         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
53514         Rework. Add paragraph about GCC's inlining.
53515         * doc/alloca.texi: Likewise.
53516         * doc/error.texi: Remove parentheses from symbol reference.
53517         * doc/gnulib-intro.texi: Likewise.
53518         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
53519         * modules/fnmatch (Description): Reword to say "the ... function".
53520         * modules/full-read (Description): Likewise.
53521         * modules/full-write (Description): Likewise.
53522         * modules/safe-read (Description): Likewise.
53523         * modules/safe-write (Description): Likewise.
53524         * modules/strchrnul (Description): Likewise.
53525         * modules/trim (Description): Likewise.
53526         * modules/error (Description): Remove parentheses from symbol
53527         references.
53528         * modules/verror (Description): Likewise.
53529         Reported by Karl Berry.
53530
53531 2007-12-25  Bruno Haible  <bruno@clisp.org>
53532
53533         Fixup after 2007-10-16 commit.
53534         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
53535
53536 2007-12-24  Bruno Haible  <bruno@clisp.org>
53537
53538         Make --enable-relocatable work with DESTDIR.
53539         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
53540         to compute installdir from destprog.
53541         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
53542         also set the RELOC_DESTDIR variable.
53543         Reported by Левашев Иван <octagram@bluebottle.com>.
53544
53545 2007-12-24  Bruno Haible  <bruno@clisp.org>
53546
53547         Fix link error due to xalloc_die().
53548         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
53549         of xreadlink.
53550         * lib/relocwrapper.c: Update comments.
53551         * build-aux/install-reloc: Remove xreadlink.c from file list.
53552         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
53553         xreadlink.c.
53554         Reported by Левашев Иван <octagram@bluebottle.com>.
53555
53556 2007-12-24  Bruno Haible  <bruno@clisp.org>
53557
53558         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
53559         * lib/setenv.h: Remove file.
53560         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
53561         lib/setenv.h.
53562         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
53563         (Depends-on): Add stdlib.
53564         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
53565         gl_FUNC_UNSETENV.
53566         (Include): Replace setenv.h with <stdlib.h>.
53567         * modules/unsetenv: New file.
53568         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
53569         * lib/unsetenv.c: Include <stdlib.h> first.
53570         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
53571         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
53572         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
53573         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
53574         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
53575         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
53576         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
53577         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
53578         * doc/functions/unsetenv.texi: Update.
53579         * modules/xsetenv (Depends-on): Add unsetenv.
53580         * modules/getdate (Depends-on): Likewise.
53581         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
53582         * lib/xsetenv.c: Don't include setenv.h.
53583         * lib/getdate.y: Likewise.
53584         * lib/relocwrapper.c: Likewise.
53585         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
53586         (Depends-on): Add stdlib.
53587         * NEWS: Mention the changes.
53588         Reported by Левашев Иван <octagram@bluebottle.com>.
53589
53590 2007-12-23  Bruno Haible  <bruno@clisp.org>
53591
53592         * lib/memmem.c (memmem): Use lowercase variable names. Tab
53593         indentation.
53594
53595 2007-12-23  Bruno Haible  <bruno@clisp.org>
53596
53597         * lib/c-strcasestr.c: Add more comments.
53598         * lib/c-strstr.c: Likewise.
53599         * lib/mbscasestr.c: Likewise.
53600         * lib/mbsstr.c: Likewise.
53601         * lib/strcasestr.c: Likewise.
53602         * lib/memmem.c: Likewise.
53603
53604 2007-12-23  Bruno Haible  <bruno@clisp.org>
53605
53606         * tests/test-memmem.c: Include <string.h> first.
53607
53608 2007-12-22  Bruno Haible  <bruno@clisp.org>
53609
53610         * gnulib-tool (func_create_testdir): Change $auxdir while generating
53611         the contents of $testsbase.
53612         Reported by Ralf Wildenhues.
53613
53614 2007-12-22  Bruno Haible  <bruno@clisp.org>
53615
53616         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
53617         two variables local_ldadd_before, local_ldadd_last.
53618
53619 2007-12-20  Eric Blake  <ebb9@byu.net>
53620
53621         Work around circular library issue when cross-compiling.
53622         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
53623         that progname.o does not need to pull in rpl_memcmp.
53624
53625 2007-12-19  Eric Blake  <ebb9@byu.net>
53626
53627         Fix memmem to avoid O(n^2) worst-case complexity.
53628         * lib/memmem.c (knuth_morris_pratt): New function.
53629         (memmem): Use it if first few naive iterations fail.
53630         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
53631         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
53632         * modules/memchr (License): Likewise.
53633         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
53634         malloca.
53635         * tests/test-memmem.c: Rewrite, borrowing ideas from
53636         test-mbsstr1.c; the old version wouldn't even compile!
53637         * modules/memmem-tests: New file.
53638         * lib/string.in.h (rpl_memmem): Add declaration.
53639         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
53640         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
53641         REPLACE_MEMMEM.
53642
53643 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
53644
53645         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
53646         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
53647         before any system include files, and undef after them all.  This
53648         should fix a problem on VMS reported by John E. Malmberg in
53649         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
53650
53651 2007-12-17  Eric Blake  <ebb9@byu.net>
53652
53653         Revert addition of verify, for BSD/OS.
53654         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
53655         can't handle large files, for the sake of obsolete platforms.
53656         * modules/fseeko (Depends-on): Remove verify.
53657         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
53658         * doc/functions/ftello.texi (ftello): Likewise.
53659         * doc/functions/fgetpos.texi (fgetpos): Likewise.
53660         Reported by Larry Jones.
53661
53662 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
53663
53664         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
53665         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
53666
53667 2007-12-17  Jim Meyering  <meyering@redhat.com>
53668
53669         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
53670         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
53671         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
53672         * modules/getcwd (Depends-on): Add openat.
53673         Reported by Petr Salinger.
53674
53675 2007-12-17  Bruno Haible  <bruno@clisp.org>
53676
53677         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
53678         avoid a segmentation fault of the configure test on x86_64 systems.
53679
53680 2007-12-15  Jim Meyering  <meyering@redhat.com>
53681
53682         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
53683
53684 2007-12-13  Eric Blake  <ebb9@byu.net>
53685
53686         Another fseek test.
53687         * tests/test-fseek.c (main): Also test ungetc handling.
53688         * tests/test-fseeko.c (main): Likewise.
53689         * modules/fseeko (Depends-on): Add verify.
53690         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
53691         large.
53692         Reported by Larry Jones.
53693
53694         Fix fseeko on mingw.
53695         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
53696         seek.
53697
53698         Beef up fseek tests.
53699         * tests/test-fseek.c (main): Also test eof handling.
53700         * tests/test-fseeko.c (main): Likewise.
53701         Reported by Larry Jones.
53702
53703 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
53704
53705         Fix fseeko on BSD-based platforms.
53706         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
53707         successful seek.
53708
53709 2007-12-12  Eric Blake  <ebb9@byu.net>
53710
53711         Allow circular dependency of separate libtests.a
53712         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
53713         when use_libtests.
53714
53715 2007-12-11  Eric Blake  <ebb9@byu.net>
53716
53717         Fix bug with -0.0L in previous patch.
53718         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
53719         * tests/test-isnan.c (main): Also test on zeroes.
53720         * tests/test-isnanf.c (main): Likewise.
53721         * tests/test-isnanl.h (main): Likewise.
53722
53723         Detect pseudo-denormals on x86 even when cross-compiling.
53724         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
53725         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
53726         invalid bit patterns that happen to satisfy ==.
53727
53728         Avoid link failures with separate libtests.a.
53729         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
53730         last, to satisfy circular dependencies.
53731
53732 2007-12-11  Eric Blake  <ebb9@byu.net>
53733         and Bruno Haible  <bruno@clisp.org>
53734
53735         Fix OpenBSD 4.0 <float.h> handling of long double.
53736         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
53737         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
53738         * doc/headers/float.texi (float.h): Document OpenBSD bug.
53739
53740 2007-12-11  Jim Meyering  <meyering@redhat.com>
53741
53742         * users.txt: Add libvirt.
53743
53744         Support versions of autoconf prior to 2.59c.
53745         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
53746         if it is not already defined.
53747
53748 2007-12-09  Bruno Haible  <bruno@clisp.org>
53749
53750         Let 'gnulib-tool --import' collect sources needed for the tests in
53751         tests/ rather than in lib/.
53752         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
53753         argument. If true, add rules to generate libtests.a, and put libtests.a
53754         into $(LDADD). Consider source files in subdirectories and set
53755         uses_subdirs.
53756         (func_emit_initmacro_start, func_emit_initmacro_end,
53757         func_emit_initmacro_done): Pass all arguments explicitly.
53758         (func_import): Determine two module lists main_modules,
53759         testsrelated_modules. Determine use_libtests. Determine two variables
53760         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
53761         instead of just sed_transform_lib_file. Determine two variables
53762         main_files and testsrelated_files. Compute 'files' as the union of
53763         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
53764         func_add_or_update. In the generated gnulib-comp.m4, collect the
53765         object files for tests/ in different variables than those for lib/.
53766         Substitute LIBTESTS_LIBDEPS.
53767         (func_create_testdir): Combine the uses_subdirs results from
53768         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
53769
53770 2007-12-09  Bruno Haible  <bruno@clisp.org>
53771
53772         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
53773         the build-aux directory.
53774
53775 2007-12-09  Bruno Haible  <bruno@clisp.org>
53776
53777         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
53778         introduced on 2006-09-09.
53779
53780 2007-12-07  Jim Meyering  <meyering@redhat.com>
53781
53782         Let these macros work also with autoconf-2.59.
53783         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
53784         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
53785         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
53786
53787 2007-12-06  Jim Meyering  <meyering@redhat.com>
53788
53789         Avoid a configure-time syntax error in gl_FUNC_ACL.
53790         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
53791         function in each branch, before testing the cache variable.
53792
53793 2007-12-04  Eric Blake  <ebb9@byu.net>
53794
53795         Make scripts executable.
53796         * build-aux/config.guess: Add execute permissions.
53797         * build-aux/config.sub: Likewise.
53798         * build-aux/gendocs.sh: Likewise.
53799
53800         Fix frexp on mingw.
53801         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
53802         cross-compiling.
53803         * doc/functions/frexp.texi (frexp): Document the bug.
53804
53805         Make cygwin fseeko check more reliable.
53806         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
53807         version numbers, rather than unrelated feature check.
53808         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
53809         * doc/functions/ftello.texi (ftello): Likewise.
53810         Reported by Bruno Haible.
53811
53812         * m4/strerror.m4: Bump version number.
53813
53814 2007-12-03  Bruno Haible  <bruno@clisp.org>
53815
53816         * doc/functions/mprotect.texi: Mention the mingw problem.
53817
53818 2007-12-03  Eric Blake  <ebb9@byu.net>
53819
53820         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
53821         REPLACE_STRERROR is initialized before this macro.
53822
53823 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
53824
53825         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
53826         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
53827         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
53828         put -lsec in even for programs other than 'ls'.  This fixes a problem
53829         for gettext reported by Bruno Haible in
53830         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
53831         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
53832         Add support for Solaris 10.  This isn't efficient, but should get the
53833         job done for now.
53834
53835 2007-12-03  James Youngman  <jay@gnu.org>
53836
53837         * doc/regexprops-generic.texi: change "an close-group" to "a
53838         close-group" and "illegal" to "not allowed".
53839
53840 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53841
53842         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
53843         pr_byname.h. Needed for the rare case when the maintainer has done
53844         "make maintainer-clean" in the source directory and then attempts a
53845         build outside the source directory.
53846         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
53847         scripts_byname.h.
53848
53849 2007-12-02  Martin Lambers <marlam@marlam.de>
53850             Bruno Haible  <bruno@clisp.org>
53851
53852         * lib/getpagesize.h: Remove file.
53853         * lib/unistd.in.h: Include declaration of getpagesize here.
53854         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
53855         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
53856         HAVE_SYS_PARAM_H.
53857         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
53858         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53859         * modules/getpagesize (Files): Remove lib/getpagesize.h.
53860         (Depends-on): Add unistd.
53861         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53862         (Include): Use <unistd.h> instead of getpagesize.h.
53863         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
53864         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53865         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
53866         gl_GETPAGESIZE invocation, already handled by module dependency.
53867         * lib/pagealign_alloc.c: Don't include getpagesize.h.
53868
53869 2007-12-02  Bruno Haible  <bruno@clisp.org>
53870
53871         * modules/strings-tests: New file.
53872         * tests/test-strings.c: New file.
53873
53874         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
53875         * lib/strings.in.h: New file.
53876         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
53877         * m4/strings_h.m4: New file.
53878         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
53879         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
53880         * modules/strings: New file.
53881         * modules/string (Makefile.am): Update.
53882         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
53883         Reported by Karl Berry.
53884
53885 2007-12-01  Eric Blake  <ebb9@byu.net>
53886
53887         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
53888         accomodate fix in cygwin 1.5.25.
53889
53890 2007-12-01  Jim Meyering  <meyering@redhat.com>
53891
53892         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
53893         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
53894         that would inhibit utf8-optimization of a regexp containing line-
53895         or buffer-anchors, e.g., `^', `$'.
53896
53897 2007-11-30  Bruno Haible  <bruno@clisp.org>
53898
53899         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
53900         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
53901         glthread_recursive_lock_init.
53902         * lib/lock.c (glthread_recursive_lock_init)
53903         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
53904         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53905
53906 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
53907
53908         New function qset_acl, like set_acl but with syscall semantics.
53909         * lib/acl.h (qset_acl): New decl.
53910         * lib/acl.c (qset_acl): New function.
53911         (set_acl): Use new function.  Use more-consistent diagnostics.
53912
53913 2007-11-28  Jim Meyering  <meyering@redhat.com>
53914
53915         * modules/physmem (License): Change from GPL to LGPLv2+.
53916
53917 2007-11-26  Bruno Haible  <bruno@clisp.org>
53918
53919         * lib/vasnprintf.c (decode_long_double): Don't abort if the
53920         'long double' type has excess precision.
53921         Reported by Jim Meyering in
53922         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
53923
53924 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53925
53926         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
53927         Sync from <http://gnu.org/licenses>.
53928         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
53929         with license text from same location.
53930         * doc/maintain.texi, doc/standards.texi:  Sync from
53931         <http://savannah.gnu.org/projects/gnustandards>.
53932
53933 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
53934         and Jim Meyering  <meyering@redhat.com>
53935
53936         Adjust getdate' grammar to accept a slightly more regular language.
53937         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
53938         Before, the former was rejected.
53939         * lib/getdate.y (digits_to_date_time): New function, factored
53940         out of ...
53941         (number): ...here.  Just call digits_to_date_time.
53942         (hybrid): New non-terminal to handle an <unsigned number,
53943         signed relative offset> sequence consistently.
53944
53945 2007-11-18  Jim Meyering  <meyering@redhat.com>
53946
53947         Pull my changes from coreutils:
53948         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
53949         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
53950         use of $gnulib_tool_option_extras, so that it's separated from the
53951         preceding argument.
53952
53953         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
53954         * build-aux/bootstrap (cp_mark_as_generated): Create any required
53955         parent destination directories before copying a file into place.
53956
53957 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
53958
53959         bootstrap: work also with 4-argument variant of AC_INIT
53960         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
53961
53962 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53963
53964         Port test-getaddrinfo to Solaris.
53965         Problem reported by Bruno Haible in
53966         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
53967         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
53968         explanation of setting 'hints'.
53969         Don't reject an implementation merely because it returns EAI_SERVICE.
53970         (EAI_SERVICE): Define to 0 if not defined.
53971
53972 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
53973
53974         The license of gnu-make and posix-shell is now "GPLed build tool".
53975         * modules/gnu-make (License): Likewise.
53976         * modules/posix-shell (License): Likewise.
53977
53978         New module posix-shell, for determining a POSIX shell
53979         or perhaps something that is close enough to a POSIX shell.
53980         * m4/posix-shell.m4: New file.
53981         * modules/posix-shell: New file.
53982
53983         * MODULES.html.sh: Mention new module.
53984
53985         New module gnu-make, for determining whether we're using GNU Make.
53986         * m4/gnu-make.m4: New file.
53987         * modules/gnu-make: New file.
53988         * MODULES.html.sh: Mention new module.
53989
53990 2007-11-14  Jim Meyering  <meyering@redhat.com>
53991
53992         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
53993         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
53994         use this macro to create a function _definition_.
53995         Remove useless "#undef ARGMATCH_DIE".
53996
53997 2007-11-14  Bruno Haible  <bruno@clisp.org>
53998
53999         * lib/config.charset: Update for OpenBSD 4.1.
54000         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
54001
54002 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
54003
54004         Document 64-bit #if problems in stdint.texi.
54005         * doc/headers/stdint.texi (stdint.h): Mention problems with
54006         64-bit-#if, and how to work around them.
54007
54008         Don't insist on 'long long int' support in the preprocessor.  It
54009         breaks too many things.  For example, PRIdMAX still uses a 'long
54010         long int' format with the latest Sun compiler, even though
54011         HAVE_LONG_LONG_INT isn't defined due to that compiler's
54012         preprocessor problem.  This causes the latest coreutils to dump
54013         core on Solaris 10 sparc with the Sun C compiler.
54014         Instead, fix the 2007-10-16 problem in a different way, by evaluating
54015         the troublesome expressions at configure-time, not at #if-time.
54016         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
54017         preprocessor.
54018         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
54019         compile-time C checks, done at 'configure'-time.
54020         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
54021         * modules/inttypes (Makefile): Substitute the new symbols that
54022         gl_INTTYPES_H now generates.
54023         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
54024
54025 2007-11-12  Bruno Haible  <bruno@clisp.org>
54026
54027         Tests for Unicode character classification functions.
54028
54029         * modules/unictype/bidicategory-byname-tests: New file.
54030         * modules/unictype/bidicategory-name-tests: New file.
54031         * modules/unictype/bidicategory-of-tests: New file.
54032         * modules/unictype/bidicategory-test-tests: New file.
54033         * modules/unictype/block-list-tests: New file.
54034         * modules/unictype/block-of-tests: New file.
54035         * modules/unictype/block-test-tests: New file.
54036         * modules/unictype/category-C-tests: New file.
54037         * modules/unictype/category-Cc-tests: New file.
54038         * modules/unictype/category-Cf-tests: New file.
54039         * modules/unictype/category-Cn-tests: New file.
54040         * modules/unictype/category-Co-tests: New file.
54041         * modules/unictype/category-Cs-tests: New file.
54042         * modules/unictype/category-L-tests: New file.
54043         * modules/unictype/category-Ll-tests: New file.
54044         * modules/unictype/category-Lm-tests: New file.
54045         * modules/unictype/category-Lo-tests: New file.
54046         * modules/unictype/category-Lt-tests: New file.
54047         * modules/unictype/category-Lu-tests: New file.
54048         * modules/unictype/category-M-tests: New file.
54049         * modules/unictype/category-Mc-tests: New file.
54050         * modules/unictype/category-Me-tests: New file.
54051         * modules/unictype/category-Mn-tests: New file.
54052         * modules/unictype/category-N-tests: New file.
54053         * modules/unictype/category-Nd-tests: New file.
54054         * modules/unictype/category-Nl-tests: New file.
54055         * modules/unictype/category-No-tests: New file.
54056         * modules/unictype/category-P-tests: New file.
54057         * modules/unictype/category-Pc-tests: New file.
54058         * modules/unictype/category-Pd-tests: New file.
54059         * modules/unictype/category-Pe-tests: New file.
54060         * modules/unictype/category-Pf-tests: New file.
54061         * modules/unictype/category-Pi-tests: New file.
54062         * modules/unictype/category-Po-tests: New file.
54063         * modules/unictype/category-Ps-tests: New file.
54064         * modules/unictype/category-S-tests: New file.
54065         * modules/unictype/category-Sc-tests: New file.
54066         * modules/unictype/category-Sk-tests: New file.
54067         * modules/unictype/category-Sm-tests: New file.
54068         * modules/unictype/category-So-tests: New file.
54069         * modules/unictype/category-Z-tests: New file.
54070         * modules/unictype/category-Zl-tests: New file.
54071         * modules/unictype/category-Zp-tests: New file.
54072         * modules/unictype/category-Zs-tests: New file.
54073         * modules/unictype/category-and-not-tests: New file.
54074         * modules/unictype/category-and-tests: New file.
54075         * modules/unictype/category-byname-tests: New file.
54076         * modules/unictype/category-name-tests: New file.
54077         * modules/unictype/category-none-tests: New file.
54078         * modules/unictype/category-of-tests: New file.
54079         * modules/unictype/category-or-tests: New file.
54080         * modules/unictype/category-test-withtable-tests: New file.
54081         * modules/unictype/combining-class-tests: New file.
54082         * modules/unictype/ctype-alnum-tests: New file.
54083         * modules/unictype/ctype-alpha-tests: New file.
54084         * modules/unictype/ctype-blank-tests: New file.
54085         * modules/unictype/ctype-cntrl-tests: New file.
54086         * modules/unictype/ctype-digit-tests: New file.
54087         * modules/unictype/ctype-graph-tests: New file.
54088         * modules/unictype/ctype-lower-tests: New file.
54089         * modules/unictype/ctype-print-tests: New file.
54090         * modules/unictype/ctype-punct-tests: New file.
54091         * modules/unictype/ctype-space-tests: New file.
54092         * modules/unictype/ctype-upper-tests: New file.
54093         * modules/unictype/ctype-xdigit-tests: New file.
54094         * modules/unictype/decimal-digit-tests: New file.
54095         * modules/unictype/digit-tests: New file.
54096         * modules/unictype/mirror-tests: New file.
54097         * modules/unictype/numeric-tests: New file.
54098         * modules/unictype/property-alphabetic-tests: New file.
54099         * modules/unictype/property-ascii-hex-digit-tests: New file.
54100         * modules/unictype/property-bidi-arabic-digit-tests: New file.
54101         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
54102         * modules/unictype/property-bidi-block-separator-tests: New file.
54103         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
54104         * modules/unictype/property-bidi-common-separator-tests: New file.
54105         * modules/unictype/property-bidi-control-tests: New file.
54106         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
54107         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
54108         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
54109         * modules/unictype/property-bidi-european-digit-tests: New file.
54110         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
54111         * modules/unictype/property-bidi-left-to-right-tests: New file.
54112         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
54113         * modules/unictype/property-bidi-other-neutral-tests: New file.
54114         * modules/unictype/property-bidi-pdf-tests: New file.
54115         * modules/unictype/property-bidi-segment-separator-tests: New file.
54116         * modules/unictype/property-bidi-whitespace-tests: New file.
54117         * modules/unictype/property-byname-tests: New file.
54118         * modules/unictype/property-combining-tests: New file.
54119         * modules/unictype/property-composite-tests: New file.
54120         * modules/unictype/property-currency-symbol-tests: New file.
54121         * modules/unictype/property-dash-tests: New file.
54122         * modules/unictype/property-decimal-digit-tests: New file.
54123         * modules/unictype/property-default-ignorable-code-point-tests: New file.
54124         * modules/unictype/property-deprecated-tests: New file.
54125         * modules/unictype/property-diacritic-tests: New file.
54126         * modules/unictype/property-extender-tests: New file.
54127         * modules/unictype/property-format-control-tests: New file.
54128         * modules/unictype/property-grapheme-base-tests: New file.
54129         * modules/unictype/property-grapheme-extend-tests: New file.
54130         * modules/unictype/property-grapheme-link-tests: New file.
54131         * modules/unictype/property-hex-digit-tests: New file.
54132         * modules/unictype/property-hyphen-tests: New file.
54133         * modules/unictype/property-id-continue-tests: New file.
54134         * modules/unictype/property-id-start-tests: New file.
54135         * modules/unictype/property-ideographic-tests: New file.
54136         * modules/unictype/property-ids-binary-operator-tests: New file.
54137         * modules/unictype/property-ids-trinary-operator-tests: New file.
54138         * modules/unictype/property-ignorable-control-tests: New file.
54139         * modules/unictype/property-iso-control-tests: New file.
54140         * modules/unictype/property-join-control-tests: New file.
54141         * modules/unictype/property-left-of-pair-tests: New file.
54142         * modules/unictype/property-line-separator-tests: New file.
54143         * modules/unictype/property-logical-order-exception-tests: New file.
54144         * modules/unictype/property-lowercase-tests: New file.
54145         * modules/unictype/property-math-tests: New file.
54146         * modules/unictype/property-non-break-tests: New file.
54147         * modules/unictype/property-not-a-character-tests: New file.
54148         * modules/unictype/property-numeric-tests: New file.
54149         * modules/unictype/property-other-alphabetic-tests: New file.
54150         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
54151         * modules/unictype/property-other-grapheme-extend-tests: New file.
54152         * modules/unictype/property-other-id-continue-tests: New file.
54153         * modules/unictype/property-other-id-start-tests: New file.
54154         * modules/unictype/property-other-lowercase-tests: New file.
54155         * modules/unictype/property-other-math-tests: New file.
54156         * modules/unictype/property-other-uppercase-tests: New file.
54157         * modules/unictype/property-paired-punctuation-tests: New file.
54158         * modules/unictype/property-paragraph-separator-tests: New file.
54159         * modules/unictype/property-pattern-syntax-tests: New file.
54160         * modules/unictype/property-pattern-white-space-tests: New file.
54161         * modules/unictype/property-private-use-tests: New file.
54162         * modules/unictype/property-punctuation-tests: New file.
54163         * modules/unictype/property-quotation-mark-tests: New file.
54164         * modules/unictype/property-radical-tests: New file.
54165         * modules/unictype/property-sentence-terminal-tests: New file.
54166         * modules/unictype/property-soft-dotted-tests: New file.
54167         * modules/unictype/property-space-tests: New file.
54168         * modules/unictype/property-terminal-punctuation-tests: New file.
54169         * modules/unictype/property-test-tests: New file.
54170         * modules/unictype/property-titlecase-tests: New file.
54171         * modules/unictype/property-unassigned-code-value-tests: New file.
54172         * modules/unictype/property-unified-ideograph-tests: New file.
54173         * modules/unictype/property-uppercase-tests: New file.
54174         * modules/unictype/property-variation-selector-tests: New file.
54175         * modules/unictype/property-white-space-tests: New file.
54176         * modules/unictype/property-xid-continue-tests: New file.
54177         * modules/unictype/property-xid-start-tests: New file.
54178         * modules/unictype/property-zero-width-tests: New file.
54179         * modules/unictype/scripts-tests: New file.
54180         * modules/unictype/syntax-c-ident-tests: New file.
54181         * modules/unictype/syntax-c-whitespace-tests: New file.
54182         * modules/unictype/syntax-java-ident-tests: New file.
54183         * modules/unictype/syntax-java-whitespace-tests: New file.
54184         * tests/unictype/test-bidi_byname.c: New file.
54185         * tests/unictype/test-bidi_name.c: New file.
54186         * tests/unictype/test-bidi_of.c: New file.
54187         * tests/unictype/test-bidi_test.c: New file.
54188         * tests/unictype/test-block_list.c: New file.
54189         * tests/unictype/test-block_of.c: New file.
54190         * tests/unictype/test-block_test.c: New file.
54191         * tests/unictype/test-categ_and.c: New file.
54192         * tests/unictype/test-categ_and_not.c: New file.
54193         * tests/unictype/test-categ_byname.c: New file.
54194         * tests/unictype/test-categ_name.c: New file.
54195         * tests/unictype/test-categ_none.c: New file.
54196         * tests/unictype/test-categ_of.c: New file.
54197         * tests/unictype/test-categ_or.c: New file.
54198         * tests/unictype/test-categ_test_withtable.c: New file.
54199         * tests/unictype/test-combining.c: New file.
54200         * tests/unictype/test-decdigit.c: New file.
54201         * tests/unictype/test-digit.c: New file.
54202         * tests/unictype/test-mirror.c: New file.
54203         * tests/unictype/test-numeric.c: New file.
54204         * tests/unictype/test-pr_byname.c: New file.
54205         * tests/unictype/test-pr_test.c: New file.
54206         * tests/unictype/test-predicate-part1.h: New file.
54207         * tests/unictype/test-predicate-part2.h: New file.
54208         * tests/unictype/test-scripts.c: New file.
54209         * tests/unictype/test-sy_c_ident.c: New file.
54210         * tests/unictype/test-sy_java_ident.c: New file.
54211
54212         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
54213         for Unicode 5.0.0.
54214         * tests/unictype/test-categ_Cc.c: Likewise.
54215         * tests/unictype/test-categ_Cf.c: Likewise.
54216         * tests/unictype/test-categ_Cn.c: Likewise.
54217         * tests/unictype/test-categ_Co.c: Likewise.
54218         * tests/unictype/test-categ_Cs.c: Likewise.
54219         * tests/unictype/test-categ_L.c: Likewise.
54220         * tests/unictype/test-categ_Ll.c: Likewise.
54221         * tests/unictype/test-categ_Lm.c: Likewise.
54222         * tests/unictype/test-categ_Lo.c: Likewise.
54223         * tests/unictype/test-categ_Lt.c: Likewise.
54224         * tests/unictype/test-categ_Lu.c: Likewise.
54225         * tests/unictype/test-categ_M.c: Likewise.
54226         * tests/unictype/test-categ_Mc.c: Likewise.
54227         * tests/unictype/test-categ_Me.c: Likewise.
54228         * tests/unictype/test-categ_Mn.c: Likewise.
54229         * tests/unictype/test-categ_N.c: Likewise.
54230         * tests/unictype/test-categ_Nd.c: Likewise.
54231         * tests/unictype/test-categ_Nl.c: Likewise.
54232         * tests/unictype/test-categ_No.c: Likewise.
54233         * tests/unictype/test-categ_P.c: Likewise.
54234         * tests/unictype/test-categ_Pc.c: Likewise.
54235         * tests/unictype/test-categ_Pd.c: Likewise.
54236         * tests/unictype/test-categ_Pe.c: Likewise.
54237         * tests/unictype/test-categ_Pf.c: Likewise.
54238         * tests/unictype/test-categ_Pi.c: Likewise.
54239         * tests/unictype/test-categ_Po.c: Likewise.
54240         * tests/unictype/test-categ_Ps.c: Likewise.
54241         * tests/unictype/test-categ_S.c: Likewise.
54242         * tests/unictype/test-categ_Sc.c: Likewise.
54243         * tests/unictype/test-categ_Sk.c: Likewise.
54244         * tests/unictype/test-categ_Sm.c: Likewise.
54245         * tests/unictype/test-categ_So.c: Likewise.
54246         * tests/unictype/test-categ_Z.c: Likewise.
54247         * tests/unictype/test-categ_Zl.c: Likewise.
54248         * tests/unictype/test-categ_Zp.c: Likewise.
54249         * tests/unictype/test-categ_Zs.c: Likewise.
54250         * tests/unictype/test-ctype_alnum.c: Likewise.
54251         * tests/unictype/test-ctype_alpha.c: Likewise.
54252         * tests/unictype/test-ctype_blank.c: Likewise.
54253         * tests/unictype/test-ctype_cntrl.c: Likewise.
54254         * tests/unictype/test-ctype_digit.c: Likewise.
54255         * tests/unictype/test-ctype_graph.c: Likewise.
54256         * tests/unictype/test-ctype_lower.c: Likewise.
54257         * tests/unictype/test-ctype_print.c: Likewise.
54258         * tests/unictype/test-ctype_punct.c: Likewise.
54259         * tests/unictype/test-ctype_space.c: Likewise.
54260         * tests/unictype/test-ctype_upper.c: Likewise.
54261         * tests/unictype/test-ctype_xdigit.c: Likewise.
54262         * tests/unictype/test-decdigit.h: Likewise.
54263         * tests/unictype/test-digit.h: Likewise.
54264         * tests/unictype/test-numeric.h: Likewise.
54265         * tests/unictype/test-pr_alphabetic.c: Likewise.
54266         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
54267         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
54268         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
54269         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
54270         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
54271         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
54272         * tests/unictype/test-pr_bidi_control.c: Likewise.
54273         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
54274         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
54275         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
54276         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
54277         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
54278         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
54279         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
54280         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
54281         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
54282         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
54283         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
54284         * tests/unictype/test-pr_combining.c: Likewise.
54285         * tests/unictype/test-pr_composite.c: Likewise.
54286         * tests/unictype/test-pr_currency_symbol.c: Likewise.
54287         * tests/unictype/test-pr_dash.c: Likewise.
54288         * tests/unictype/test-pr_decimal_digit.c: Likewise.
54289         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
54290         * tests/unictype/test-pr_deprecated.c: Likewise.
54291         * tests/unictype/test-pr_diacritic.c: Likewise.
54292         * tests/unictype/test-pr_extender.c: Likewise.
54293         * tests/unictype/test-pr_format_control.c: Likewise.
54294         * tests/unictype/test-pr_grapheme_base.c: Likewise.
54295         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
54296         * tests/unictype/test-pr_grapheme_link.c: Likewise.
54297         * tests/unictype/test-pr_hex_digit.c: Likewise.
54298         * tests/unictype/test-pr_hyphen.c: Likewise.
54299         * tests/unictype/test-pr_id_continue.c: Likewise.
54300         * tests/unictype/test-pr_id_start.c: Likewise.
54301         * tests/unictype/test-pr_ideographic.c: Likewise.
54302         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
54303         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
54304         * tests/unictype/test-pr_ignorable_control.c: Likewise.
54305         * tests/unictype/test-pr_iso_control.c: Likewise.
54306         * tests/unictype/test-pr_join_control.c: Likewise.
54307         * tests/unictype/test-pr_left_of_pair.c: Likewise.
54308         * tests/unictype/test-pr_line_separator.c: Likewise.
54309         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
54310         * tests/unictype/test-pr_lowercase.c: Likewise.
54311         * tests/unictype/test-pr_math.c: Likewise.
54312         * tests/unictype/test-pr_non_break.c: Likewise.
54313         * tests/unictype/test-pr_not_a_character.c: Likewise.
54314         * tests/unictype/test-pr_numeric.c: Likewise.
54315         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
54316         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
54317         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
54318         * tests/unictype/test-pr_other_id_continue.c: Likewise.
54319         * tests/unictype/test-pr_other_id_start.c: Likewise.
54320         * tests/unictype/test-pr_other_lowercase.c: Likewise.
54321         * tests/unictype/test-pr_other_math.c: Likewise.
54322         * tests/unictype/test-pr_other_uppercase.c: Likewise.
54323         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
54324         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
54325         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
54326         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
54327         * tests/unictype/test-pr_private_use.c: Likewise.
54328         * tests/unictype/test-pr_punctuation.c: Likewise.
54329         * tests/unictype/test-pr_quotation_mark.c: Likewise.
54330         * tests/unictype/test-pr_radical.c: Likewise.
54331         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
54332         * tests/unictype/test-pr_soft_dotted.c: Likewise.
54333         * tests/unictype/test-pr_space.c: Likewise.
54334         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
54335         * tests/unictype/test-pr_titlecase.c: Likewise.
54336         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
54337         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
54338         * tests/unictype/test-pr_uppercase.c: Likewise.
54339         * tests/unictype/test-pr_variation_selector.c: Likewise.
54340         * tests/unictype/test-pr_white_space.c: Likewise.
54341         * tests/unictype/test-pr_xid_continue.c: Likewise.
54342         * tests/unictype/test-pr_xid_start.c: Likewise.
54343         * tests/unictype/test-pr_zero_width.c: Likewise.
54344         * tests/unictype/test-sy_c_whitespace.c: Likewise.
54345         * tests/unictype/test-sy_java_whitespace.c: Likewise.
54346
54347 2007-11-12  Bruno Haible  <bruno@clisp.org>
54348
54349         Unicode character classification functions.
54350         * lib/unictype.h: New file.
54351         * modules/unictype/base: New file.
54352         * modules/unictype/category-L: New file.
54353         * modules/unictype/category-Lu: New file.
54354         * modules/unictype/category-Ll: New file.
54355         * modules/unictype/category-Lt: New file.
54356         * modules/unictype/category-Lm: New file.
54357         * modules/unictype/category-Lo: New file.
54358         * modules/unictype/category-M: New file.
54359         * modules/unictype/category-Mn: New file.
54360         * modules/unictype/category-Mc: New file.
54361         * modules/unictype/category-Me: New file.
54362         * modules/unictype/category-N: New file.
54363         * modules/unictype/category-Nd: New file.
54364         * modules/unictype/category-Nl: New file.
54365         * modules/unictype/category-No: New file.
54366         * modules/unictype/category-P: New file.
54367         * modules/unictype/category-Pc: New file.
54368         * modules/unictype/category-Pd: New file.
54369         * modules/unictype/category-Ps: New file.
54370         * modules/unictype/category-Pe: New file.
54371         * modules/unictype/category-Pi: New file.
54372         * modules/unictype/category-Pf: New file.
54373         * modules/unictype/category-Po: New file.
54374         * modules/unictype/category-S: New file.
54375         * modules/unictype/category-Sm: New file.
54376         * modules/unictype/category-Sc: New file.
54377         * modules/unictype/category-Sk: New file.
54378         * modules/unictype/category-So: New file.
54379         * modules/unictype/category-Z: New file.
54380         * modules/unictype/category-Zs: New file.
54381         * modules/unictype/category-Zl: New file.
54382         * modules/unictype/category-Zp: New file.
54383         * modules/unictype/category-C: New file.
54384         * modules/unictype/category-Cc: New file.
54385         * modules/unictype/category-Cf: New file.
54386         * modules/unictype/category-Cs: New file.
54387         * modules/unictype/category-Co: New file.
54388         * modules/unictype/category-Cn: New file.
54389         * modules/unictype/category-or: New file.
54390         * modules/unictype/category-of: New file.
54391         * modules/unictype/category-test: New file.
54392         * modules/unictype/category-test-withtable: New file.
54393         * modules/unictype/category-byname: New file.
54394         * modules/unictype/category-none: New file.
54395         * modules/unictype/category-and: New file.
54396         * modules/unictype/category-and-not: New file.
54397         * modules/unictype/category-name: New file.
54398         * modules/unictype/combining-class: New file.
54399         * modules/unictype/category-all: New file.
54400         * modules/unictype/bidicategory-all: New file.
54401         * modules/unictype/bidicategory-byname: New file.
54402         * modules/unictype/bidicategory-name: New file.
54403         * modules/unictype/bidicategory-of: New file.
54404         * modules/unictype/bidicategory-test: New file.
54405         * modules/unictype/decimal-digit: New file.
54406         * modules/unictype/digit: New file.
54407         * modules/unictype/numeric: New file.
54408         * modules/unictype/mirror: New file.
54409         * modules/unictype/property-white-space: New file.
54410         * modules/unictype/property-alphabetic: New file.
54411         * modules/unictype/property-other-alphabetic: New file.
54412         * modules/unictype/property-not-a-character: New file.
54413         * modules/unictype/property-default-ignorable-code-point: New file.
54414         * modules/unictype/property-other-default-ignorable-code-point: New
54415         file.
54416         * modules/unictype/property-deprecated: New file.
54417         * modules/unictype/property-logical-order-exception: New file.
54418         * modules/unictype/property-variation-selector: New file.
54419         * modules/unictype/property-private-use: New file.
54420         * modules/unictype/property-unassigned-code-value: New file.
54421         * modules/unictype/property-uppercase: New file.
54422         * modules/unictype/property-other-uppercase: New file.
54423         * modules/unictype/property-lowercase: New file.
54424         * modules/unictype/property-other-lowercase: New file.
54425         * modules/unictype/property-titlecase: New file.
54426         * modules/unictype/property-soft-dotted: New file.
54427         * modules/unictype/property-id-start: New file.
54428         * modules/unictype/property-other-id-start: New file.
54429         * modules/unictype/property-id-continue: New file.
54430         * modules/unictype/property-other-id-continue: New file.
54431         * modules/unictype/property-xid-start: New file.
54432         * modules/unictype/property-xid-continue: New file.
54433         * modules/unictype/property-pattern-white-space: New file.
54434         * modules/unictype/property-pattern-syntax: New file.
54435         * modules/unictype/property-join-control: New file.
54436         * modules/unictype/property-grapheme-base: New file.
54437         * modules/unictype/property-grapheme-extend: New file.
54438         * modules/unictype/property-other-grapheme-extend: New file.
54439         * modules/unictype/property-grapheme-link: New file.
54440         * modules/unictype/property-bidi-control: New file.
54441         * modules/unictype/property-bidi-left-to-right: New file.
54442         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
54443         * modules/unictype/property-bidi-arabic-right-to-left: New file.
54444         * modules/unictype/property-bidi-european-digit: New file.
54445         * modules/unictype/property-bidi-eur-num-separator: New file.
54446         * modules/unictype/property-bidi-eur-num-terminator: New file.
54447         * modules/unictype/property-bidi-arabic-digit: New file.
54448         * modules/unictype/property-bidi-common-separator: New file.
54449         * modules/unictype/property-bidi-block-separator: New file.
54450         * modules/unictype/property-bidi-segment-separator: New file.
54451         * modules/unictype/property-bidi-whitespace: New file.
54452         * modules/unictype/property-bidi-non-spacing-mark: New file.
54453         * modules/unictype/property-bidi-boundary-neutral: New file.
54454         * modules/unictype/property-bidi-pdf: New file.
54455         * modules/unictype/property-bidi-embedding-or-override: New file.
54456         * modules/unictype/property-bidi-other-neutral: New file.
54457         * modules/unictype/property-hex-digit: New file.
54458         * modules/unictype/property-ascii-hex-digit: New file.
54459         * modules/unictype/property-ideographic: New file.
54460         * modules/unictype/property-unified-ideograph: New file.
54461         * modules/unictype/property-radical: New file.
54462         * modules/unictype/property-ids-binary-operator: New file.
54463         * modules/unictype/property-ids-trinary-operator: New file.
54464         * modules/unictype/property-zero-width: New file.
54465         * modules/unictype/property-space: New file.
54466         * modules/unictype/property-non-break: New file.
54467         * modules/unictype/property-iso-control: New file.
54468         * modules/unictype/property-format-control: New file.
54469         * modules/unictype/property-dash: New file.
54470         * modules/unictype/property-hyphen: New file.
54471         * modules/unictype/property-punctuation: New file.
54472         * modules/unictype/property-line-separator: New file.
54473         * modules/unictype/property-paragraph-separator: New file.
54474         * modules/unictype/property-quotation-mark: New file.
54475         * modules/unictype/property-sentence-terminal: New file.
54476         * modules/unictype/property-terminal-punctuation: New file.
54477         * modules/unictype/property-currency-symbol: New file.
54478         * modules/unictype/property-math: New file.
54479         * modules/unictype/property-other-math: New file.
54480         * modules/unictype/property-paired-punctuation: New file.
54481         * modules/unictype/property-left-of-pair: New file.
54482         * modules/unictype/property-combining: New file.
54483         * modules/unictype/property-composite: New file.
54484         * modules/unictype/property-decimal-digit: New file.
54485         * modules/unictype/property-numeric: New file.
54486         * modules/unictype/property-diacritic: New file.
54487         * modules/unictype/property-extender: New file.
54488         * modules/unictype/property-ignorable-control: New file.
54489         * modules/unictype/property-test: New file.
54490         * modules/unictype/property-byname: New file.
54491         * modules/unictype/property-all: New file.
54492         * modules/unictype/scripts: New file.
54493         * modules/unictype/scripts-all: New file.
54494         * modules/unictype/block-of: New file.
54495         * modules/unictype/block-test: New file.
54496         * modules/unictype/block-list: New file.
54497         * modules/unictype/block-all: New file.
54498         * modules/unictype/syntax-c-whitespace: New file.
54499         * modules/unictype/syntax-java-whitespace: New file.
54500         * modules/unictype/syntax-c-ident: New file.
54501         * modules/unictype/syntax-java-ident: New file.
54502         * modules/unictype/ctype-alnum: New file.
54503         * modules/unictype/ctype-alpha: New file.
54504         * modules/unictype/ctype-cntrl: New file.
54505         * modules/unictype/ctype-digit: New file.
54506         * modules/unictype/ctype-graph: New file.
54507         * modules/unictype/ctype-lower: New file.
54508         * modules/unictype/ctype-print: New file.
54509         * modules/unictype/ctype-punct: New file.
54510         * modules/unictype/ctype-space: New file.
54511         * modules/unictype/ctype-upper: New file.
54512         * modules/unictype/ctype-xdigit: New file.
54513         * modules/unictype/ctype-blank: New file.
54514         * lib/unictype/bidi_byname.c: New file.
54515         * lib/unictype/bidi_name.c: New file.
54516         * lib/unictype/bidi_of.c: New file.
54517         * lib/unictype/bidi_test.c: New file.
54518         * lib/unictype/bitmap.h: New file.
54519         * lib/unictype/block_test.c: New file.
54520         * lib/unictype/blocks.c: New file.
54521         * lib/unictype/categ_C.c: New file.
54522         * lib/unictype/categ_Cc.c: New file.
54523         * lib/unictype/categ_Cf.c: New file.
54524         * lib/unictype/categ_Cn.c: New file.
54525         * lib/unictype/categ_Co.c: New file.
54526         * lib/unictype/categ_Cs.c: New file.
54527         * lib/unictype/categ_L.c: New file.
54528         * lib/unictype/categ_Ll.c: New file.
54529         * lib/unictype/categ_Lm.c: New file.
54530         * lib/unictype/categ_Lo.c: New file.
54531         * lib/unictype/categ_Lt.c: New file.
54532         * lib/unictype/categ_Lu.c: New file.
54533         * lib/unictype/categ_M.c: New file.
54534         * lib/unictype/categ_Mc.c: New file.
54535         * lib/unictype/categ_Me.c: New file.
54536         * lib/unictype/categ_Mn.c: New file.
54537         * lib/unictype/categ_N.c: New file.
54538         * lib/unictype/categ_Nd.c: New file.
54539         * lib/unictype/categ_Nl.c: New file.
54540         * lib/unictype/categ_No.c: New file.
54541         * lib/unictype/categ_P.c: New file.
54542         * lib/unictype/categ_Pc.c: New file.
54543         * lib/unictype/categ_Pd.c: New file.
54544         * lib/unictype/categ_Pe.c: New file.
54545         * lib/unictype/categ_Pf.c: New file.
54546         * lib/unictype/categ_Pi.c: New file.
54547         * lib/unictype/categ_Po.c: New file.
54548         * lib/unictype/categ_Ps.c: New file.
54549         * lib/unictype/categ_S.c: New file.
54550         * lib/unictype/categ_Sc.c: New file.
54551         * lib/unictype/categ_Sk.c: New file.
54552         * lib/unictype/categ_Sm.c: New file.
54553         * lib/unictype/categ_So.c: New file.
54554         * lib/unictype/categ_Z.c: New file.
54555         * lib/unictype/categ_Zl.c: New file.
54556         * lib/unictype/categ_Zp.c: New file.
54557         * lib/unictype/categ_Zs.c: New file.
54558         * lib/unictype/categ_and.c: New file.
54559         * lib/unictype/categ_and_not.c: New file.
54560         * lib/unictype/categ_byname.c: New file.
54561         * lib/unictype/categ_name.c: New file.
54562         * lib/unictype/categ_none.c: New file.
54563         * lib/unictype/categ_of.c: New file.
54564         * lib/unictype/categ_or.c: New file.
54565         * lib/unictype/categ_test.c: New file.
54566         * lib/unictype/combining.c: New file.
54567         * lib/unictype/ctype_alnum.c: New file.
54568         * lib/unictype/ctype_alpha.c: New file.
54569         * lib/unictype/ctype_blank.c: New file.
54570         * lib/unictype/ctype_cntrl.c: New file.
54571         * lib/unictype/ctype_digit.c: New file.
54572         * lib/unictype/ctype_graph.c: New file.
54573         * lib/unictype/ctype_lower.c: New file.
54574         * lib/unictype/ctype_print.c: New file.
54575         * lib/unictype/ctype_punct.c: New file.
54576         * lib/unictype/ctype_space.c: New file.
54577         * lib/unictype/ctype_upper.c: New file.
54578         * lib/unictype/ctype_xdigit.c: New file.
54579         * lib/unictype/decdigit.c: New file.
54580         * lib/unictype/digit.c: New file.
54581         * lib/unictype/identsyntaxmap.h: New file.
54582         * lib/unictype/mirror.c: New file.
54583         * lib/unictype/numeric.c: New file.
54584         * lib/unictype/pr_alphabetic.c: New file.
54585         * lib/unictype/pr_ascii_hex_digit.c: New file.
54586         * lib/unictype/pr_bidi_arabic_digit.c: New file.
54587         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
54588         * lib/unictype/pr_bidi_block_separator.c: New file.
54589         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
54590         * lib/unictype/pr_bidi_common_separator.c: New file.
54591         * lib/unictype/pr_bidi_control.c: New file.
54592         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
54593         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
54594         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
54595         * lib/unictype/pr_bidi_european_digit.c: New file.
54596         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
54597         * lib/unictype/pr_bidi_left_to_right.c: New file.
54598         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
54599         * lib/unictype/pr_bidi_other_neutral.c: New file.
54600         * lib/unictype/pr_bidi_pdf.c: New file.
54601         * lib/unictype/pr_bidi_segment_separator.c: New file.
54602         * lib/unictype/pr_bidi_whitespace.c: New file.
54603         * lib/unictype/pr_byname.c: New file.
54604         * lib/unictype/pr_byname.gperf: New file.
54605         * lib/unictype/pr_combining.c: New file.
54606         * lib/unictype/pr_composite.c: New file.
54607         * lib/unictype/pr_currency_symbol.c: New file.
54608         * lib/unictype/pr_dash.c: New file.
54609         * lib/unictype/pr_decimal_digit.c: New file.
54610         * lib/unictype/pr_default_ignorable_code_point.c: New file.
54611         * lib/unictype/pr_deprecated.c: New file.
54612         * lib/unictype/pr_diacritic.c: New file.
54613         * lib/unictype/pr_extender.c: New file.
54614         * lib/unictype/pr_format_control.c: New file.
54615         * lib/unictype/pr_grapheme_base.c: New file.
54616         * lib/unictype/pr_grapheme_extend.c: New file.
54617         * lib/unictype/pr_grapheme_link.c: New file.
54618         * lib/unictype/pr_hex_digit.c: New file.
54619         * lib/unictype/pr_hyphen.c: New file.
54620         * lib/unictype/pr_id_continue.c: New file.
54621         * lib/unictype/pr_id_start.c: New file.
54622         * lib/unictype/pr_ideographic.c: New file.
54623         * lib/unictype/pr_ids_binary_operator.c: New file.
54624         * lib/unictype/pr_ids_trinary_operator.c: New file.
54625         * lib/unictype/pr_ignorable_control.c: New file.
54626         * lib/unictype/pr_iso_control.c: New file.
54627         * lib/unictype/pr_join_control.c: New file.
54628         * lib/unictype/pr_left_of_pair.c: New file.
54629         * lib/unictype/pr_line_separator.c: New file.
54630         * lib/unictype/pr_logical_order_exception.c: New file.
54631         * lib/unictype/pr_lowercase.c: New file.
54632         * lib/unictype/pr_math.c: New file.
54633         * lib/unictype/pr_non_break.c: New file.
54634         * lib/unictype/pr_not_a_character.c: New file.
54635         * lib/unictype/pr_numeric.c: New file.
54636         * lib/unictype/pr_other_alphabetic.c: New file.
54637         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
54638         * lib/unictype/pr_other_grapheme_extend.c: New file.
54639         * lib/unictype/pr_other_id_continue.c: New file.
54640         * lib/unictype/pr_other_id_start.c: New file.
54641         * lib/unictype/pr_other_lowercase.c: New file.
54642         * lib/unictype/pr_other_math.c: New file.
54643         * lib/unictype/pr_other_uppercase.c: New file.
54644         * lib/unictype/pr_paired_punctuation.c: New file.
54645         * lib/unictype/pr_paragraph_separator.c: New file.
54646         * lib/unictype/pr_pattern_syntax.c: New file.
54647         * lib/unictype/pr_pattern_white_space.c: New file.
54648         * lib/unictype/pr_private_use.c: New file.
54649         * lib/unictype/pr_punctuation.c: New file.
54650         * lib/unictype/pr_quotation_mark.c: New file.
54651         * lib/unictype/pr_radical.c: New file.
54652         * lib/unictype/pr_sentence_terminal.c: New file.
54653         * lib/unictype/pr_soft_dotted.c: New file.
54654         * lib/unictype/pr_space.c: New file.
54655         * lib/unictype/pr_terminal_punctuation.c: New file.
54656         * lib/unictype/pr_test.c: New file.
54657         * lib/unictype/pr_titlecase.c: New file.
54658         * lib/unictype/pr_unassigned_code_value.c: New file.
54659         * lib/unictype/pr_unified_ideograph.c: New file.
54660         * lib/unictype/pr_uppercase.c: New file.
54661         * lib/unictype/pr_variation_selector.c: New file.
54662         * lib/unictype/pr_white_space.c: New file.
54663         * lib/unictype/pr_xid_continue.c: New file.
54664         * lib/unictype/pr_xid_start.c: New file.
54665         * lib/unictype/pr_zero_width.c: New file.
54666         * lib/unictype/scripts.c: New file.
54667         * lib/unictype/sy_c_ident.c: New file.
54668         * lib/unictype/sy_c_whitespace.c: New file.
54669         * lib/unictype/sy_java_ident.c: New file.
54670         * lib/unictype/sy_java_whitespace.c: New file.
54671
54672         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
54673         Unicode 5.0.0.
54674         * lib/unictype/blocks.h: Likewise.
54675         * lib/unictype/categ_C.h: Likewise.
54676         * lib/unictype/categ_Cc.h: Likewise.
54677         * lib/unictype/categ_Cf.h: Likewise.
54678         * lib/unictype/categ_Cn.h: Likewise.
54679         * lib/unictype/categ_Co.h: Likewise.
54680         * lib/unictype/categ_Cs.h: Likewise.
54681         * lib/unictype/categ_L.h: Likewise.
54682         * lib/unictype/categ_Ll.h: Likewise.
54683         * lib/unictype/categ_Lm.h: Likewise.
54684         * lib/unictype/categ_Lo.h: Likewise.
54685         * lib/unictype/categ_Lt.h: Likewise.
54686         * lib/unictype/categ_Lu.h: Likewise.
54687         * lib/unictype/categ_M.h: Likewise.
54688         * lib/unictype/categ_Mc.h: Likewise.
54689         * lib/unictype/categ_Me.h: Likewise.
54690         * lib/unictype/categ_Mn.h: Likewise.
54691         * lib/unictype/categ_N.h: Likewise.
54692         * lib/unictype/categ_Nd.h: Likewise.
54693         * lib/unictype/categ_Nl.h: Likewise.
54694         * lib/unictype/categ_No.h: Likewise.
54695         * lib/unictype/categ_P.h: Likewise.
54696         * lib/unictype/categ_Pc.h: Likewise.
54697         * lib/unictype/categ_Pd.h: Likewise.
54698         * lib/unictype/categ_Pe.h: Likewise.
54699         * lib/unictype/categ_Pf.h: Likewise.
54700         * lib/unictype/categ_Pi.h: Likewise.
54701         * lib/unictype/categ_Po.h: Likewise.
54702         * lib/unictype/categ_Ps.h: Likewise.
54703         * lib/unictype/categ_S.h: Likewise.
54704         * lib/unictype/categ_Sc.h: Likewise.
54705         * lib/unictype/categ_Sk.h: Likewise.
54706         * lib/unictype/categ_Sm.h: Likewise.
54707         * lib/unictype/categ_So.h: Likewise.
54708         * lib/unictype/categ_Z.h: Likewise.
54709         * lib/unictype/categ_Zl.h: Likewise.
54710         * lib/unictype/categ_Zp.h: Likewise.
54711         * lib/unictype/categ_Zs.h: Likewise.
54712         * lib/unictype/categ_of.h: Likewise.
54713         * lib/unictype/combining.h: Likewise.
54714         * lib/unictype/ctype_alnum.h: Likewise.
54715         * lib/unictype/ctype_alpha.h: Likewise.
54716         * lib/unictype/ctype_blank.h: Likewise.
54717         * lib/unictype/ctype_cntrl.h: Likewise.
54718         * lib/unictype/ctype_digit.h: Likewise.
54719         * lib/unictype/ctype_graph.h: Likewise.
54720         * lib/unictype/ctype_lower.h: Likewise.
54721         * lib/unictype/ctype_print.h: Likewise.
54722         * lib/unictype/ctype_punct.h: Likewise.
54723         * lib/unictype/ctype_space.h: Likewise.
54724         * lib/unictype/ctype_upper.h: Likewise.
54725         * lib/unictype/ctype_xdigit.h: Likewise.
54726         * lib/unictype/decdigit.h: Likewise.
54727         * lib/unictype/digit.h: Likewise.
54728         * lib/unictype/mirror.h: Likewise.
54729         * lib/unictype/numeric.h: Likewise.
54730         * lib/unictype/pr_alphabetic.h: Likewise.
54731         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
54732         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
54733         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
54734         * lib/unictype/pr_bidi_block_separator.h: Likewise.
54735         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
54736         * lib/unictype/pr_bidi_common_separator.h: Likewise.
54737         * lib/unictype/pr_bidi_control.h: Likewise.
54738         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
54739         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
54740         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
54741         * lib/unictype/pr_bidi_european_digit.h: Likewise.
54742         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
54743         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
54744         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
54745         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
54746         * lib/unictype/pr_bidi_pdf.h: Likewise.
54747         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
54748         * lib/unictype/pr_bidi_whitespace.h: Likewise.
54749         * lib/unictype/pr_combining.h: Likewise.
54750         * lib/unictype/pr_composite.h: Likewise.
54751         * lib/unictype/pr_currency_symbol.h: Likewise.
54752         * lib/unictype/pr_dash.h: Likewise.
54753         * lib/unictype/pr_decimal_digit.h: Likewise.
54754         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
54755         * lib/unictype/pr_deprecated.h: Likewise.
54756         * lib/unictype/pr_diacritic.h: Likewise.
54757         * lib/unictype/pr_extender.h: Likewise.
54758         * lib/unictype/pr_format_control.h: Likewise.
54759         * lib/unictype/pr_grapheme_base.h: Likewise.
54760         * lib/unictype/pr_grapheme_extend.h: Likewise.
54761         * lib/unictype/pr_grapheme_link.h: Likewise.
54762         * lib/unictype/pr_hex_digit.h: Likewise.
54763         * lib/unictype/pr_hyphen.h: Likewise.
54764         * lib/unictype/pr_id_continue.h: Likewise.
54765         * lib/unictype/pr_id_start.h: Likewise.
54766         * lib/unictype/pr_ideographic.h: Likewise.
54767         * lib/unictype/pr_ids_binary_operator.h: Likewise.
54768         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
54769         * lib/unictype/pr_ignorable_control.h: Likewise.
54770         * lib/unictype/pr_iso_control.h: Likewise.
54771         * lib/unictype/pr_join_control.h: Likewise.
54772         * lib/unictype/pr_left_of_pair.h: Likewise.
54773         * lib/unictype/pr_line_separator.h: Likewise.
54774         * lib/unictype/pr_logical_order_exception.h: Likewise.
54775         * lib/unictype/pr_lowercase.h: Likewise.
54776         * lib/unictype/pr_math.h: Likewise.
54777         * lib/unictype/pr_non_break.h: Likewise.
54778         * lib/unictype/pr_not_a_character.h: Likewise.
54779         * lib/unictype/pr_numeric.h: Likewise.
54780         * lib/unictype/pr_other_alphabetic.h: Likewise.
54781         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
54782         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
54783         * lib/unictype/pr_other_id_continue.h: Likewise.
54784         * lib/unictype/pr_other_id_start.h: Likewise.
54785         * lib/unictype/pr_other_lowercase.h: Likewise.
54786         * lib/unictype/pr_other_math.h: Likewise.
54787         * lib/unictype/pr_other_uppercase.h: Likewise.
54788         * lib/unictype/pr_paired_punctuation.h: Likewise.
54789         * lib/unictype/pr_paragraph_separator.h: Likewise.
54790         * lib/unictype/pr_pattern_syntax.h: Likewise.
54791         * lib/unictype/pr_pattern_white_space.h: Likewise.
54792         * lib/unictype/pr_private_use.h: Likewise.
54793         * lib/unictype/pr_punctuation.h: Likewise.
54794         * lib/unictype/pr_quotation_mark.h: Likewise.
54795         * lib/unictype/pr_radical.h: Likewise.
54796         * lib/unictype/pr_sentence_terminal.h: Likewise.
54797         * lib/unictype/pr_soft_dotted.h: Likewise.
54798         * lib/unictype/pr_space.h: Likewise.
54799         * lib/unictype/pr_terminal_punctuation.h: Likewise.
54800         * lib/unictype/pr_titlecase.h: Likewise.
54801         * lib/unictype/pr_unassigned_code_value.h: Likewise.
54802         * lib/unictype/pr_unified_ideograph.h: Likewise.
54803         * lib/unictype/pr_uppercase.h: Likewise.
54804         * lib/unictype/pr_variation_selector.h: Likewise.
54805         * lib/unictype/pr_white_space.h: Likewise.
54806         * lib/unictype/pr_xid_continue.h: Likewise.
54807         * lib/unictype/pr_xid_start.h: Likewise.
54808         * lib/unictype/pr_zero_width.h: Likewise.
54809         * lib/unictype/scripts.h: Likewise.
54810         * lib/unictype/scripts_byname.gperf: Likewise.
54811         * lib/unictype/sy_c_ident.h: Likewise.
54812         * lib/unictype/sy_c_whitespace.h: Likewise.
54813         * lib/unictype/sy_java_ident.h: Likewise.
54814         * lib/unictype/sy_java_whitespace.h: Likewise.
54815
54816         * lib/unictype/Makefile: New file.
54817         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
54818         glibc.
54819         * lib/unictype/3level.h: New file, copied from glibc.
54820         * lib/unictype/3levelbit.h: New file.
54821
54822 2007-11-11  Bruno Haible  <bruno@clisp.org>
54823
54824         * modules/gperf: New file.
54825         * modules/iconv_open (Depends-on): Add it.
54826         (Makefile.am): Remove the GPERF definition.
54827
54828 2007-11-11  Bruno Haible  <bruno@clisp.org>
54829
54830         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
54831         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
54832
54833 2007-11-11  Bruno Haible  <bruno@clisp.org>
54834
54835         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
54836         (usage): Remove function.
54837
54838 2007-11-11  Bruno Haible  <bruno@clisp.org>
54839
54840         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
54841         gl_FUNC_CEILF_LIBS.
54842         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
54843         gl_FUNC_CEIL_LIBS.
54844         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
54845         gl_FUNC_CEILL_LIBS.
54846         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
54847         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
54848         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
54849
54850 2007-11-11  Bruno Haible  <bruno@clisp.org>
54851
54852         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
54853         roundf were declared but do not exist on functions.
54854         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
54855         roundl were declared but do not exist on functions.
54856         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
54857         HAVE_FLOORL_AND_CEILL, respectively.
54858         Needed for Sun C on Solaris 10.
54859
54860 2007-11-11  Bruno Haible  <bruno@clisp.org>
54861
54862         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
54863         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
54864         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
54865         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
54866         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
54867         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
54868         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
54869         HAVE_DECL_ROUNDF.
54870         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
54871         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
54872         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
54873         of HAVE_DECL_ROUND*.
54874         * modules/math (Makefile.am): Update.
54875
54876 2007-11-10  Bruno Haible  <bruno@clisp.org>
54877
54878         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
54879         ptrdiff_t as m4/intl.m4.
54880
54881 2007-11-10  Jim Meyering  <meyering@redhat.com>
54882
54883         Avoid link failure for the argmatch test.
54884         * tests/test-argmatch.c (usage): Define function to avoid a link
54885         failure: argmatch_die requires a usage function.
54886
54887 2007-11-09  Bruno Haible  <bruno@clisp.org>
54888
54889         * doc/functions/snprintf.texi: Mention BeOS deficiency.
54890         * doc/functions/vsnprintf.texi: Likewise.
54891         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
54892         with a size argument < 2.
54893
54894 2007-11-09  Bruno Haible  <bruno@clisp.org>
54895
54896         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
54897         buffer. Fixes an inefficiency introduced on 2007-11-03.
54898
54899 2007-11-09  Bruno Haible  <bruno@clisp.org>
54900
54901         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
54902         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
54903
54904 2007-11-08  Jim Meyering  <meyering@redhat.com>
54905
54906         Change cache variable name prefix "jm_" to "gl_" everywhere.
54907         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
54908         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
54909         * m4/uptime.m4: s/gl_/jm_/
54910
54911 2007-11-07  Bruno Haible  <bruno@clisp.org>
54912
54913         Update to GNU gettext 0.17.
54914         * m4/intl.m4: Update to GNU gettext 0.17.
54915         * m4/po.m4: Likewise.
54916         * modules/gettext (Files): Remove m4/ulonglong.m4.
54917         (configure.ac): Require gettext infrastructure from version 0.17.
54918
54919 2007-11-06  Bruno Haible  <bruno@clisp.org>
54920
54921         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
54922         symbolic values are not defined in a public header.
54923         * lib/freadable.c (freadable) [QNX]: Likewise.
54924         * lib/freadahead.c (freadahead) [QNX]: Likewise.
54925         * lib/freading.c (freading) [QNX]: Likewise.
54926         * lib/fseterr.c (fseterr) [QNX]: Likewise.
54927         * lib/fwritable.c (fwritable) [QNX]: Likewise.
54928         * lib/fwriting.c (fwriting) [QNX]: Likewise.
54929         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
54930         Reported by Alain Magloire.
54931
54932         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
54933
54934 2007-11-05  Bruno Haible  <bruno@clisp.org>
54935
54936         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
54937         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
54938         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
54939         Reported by Eric Blake.
54940
54941 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54942             Bruno Haible  <bruno@clisp.org>
54943
54944         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
54945         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
54946         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
54947         (malloc): Undefine also before including <stdlib.h>.
54948         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
54949         Needed on OSF/1 4.0.
54950
54951 2007-11-05  Jim Meyering  <meyering@redhat.com>
54952
54953         git-version-gen: sync from coreutils.
54954         * build-aux/git-version-gen: Add comments.
54955         Change the first '-' to '.' in the snapshot version string,
54956         e.g., 6.9-377-08144 -> 6.9.377-08144
54957         Remove first parameter.
54958         Don't declare a version "-dirty" merely because a time
54959         stamp has changed.
54960
54961 2007-11-04  Bruno Haible  <bruno@clisp.org>
54962
54963         * lib/lock.h: Protect all macro definitions containing an 'if'
54964         statement through a "do { ... } while (0)".
54965         * lib/tls.h: Likewise.
54966
54967 2007-11-04  Bruno Haible  <bruno@clisp.org>
54968
54969         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
54970
54971 2007-11-04  Bruno Haible  <bruno@clisp.org>
54972
54973         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
54974         * modules/fprintf-posix (Depends-on): Add nocrash.
54975         * modules/snprintf-posix (Depends-on): Likewise.
54976         * modules/sprintf-posix (Depends-on): Likewise.
54977         * modules/vasnprintf-posix (Depends-on): Likewise.
54978         * modules/vasprintf-posix (Depends-on): Likewise.
54979         * modules/vfprintf-posix (Depends-on): Likewise.
54980         * modules/vsnprintf-posix (Depends-on): Likewise.
54981         * modules/vsprintf-posix (Depends-on): Likewise.
54982         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54983         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54984         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54985         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54986         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54987         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54988         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54989
54990 2007-11-04  Bruno Haible  <bruno@clisp.org>
54991
54992         * modules/nocrash: New file.
54993         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
54994         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
54995
54996 2007-11-04  Bruno Haible  <bruno@clisp.org>
54997
54998         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
54999         precision handling.
55000         * tests/test-vasprintf-posix.c (test_function): Likewise.
55001         * tests/test-snprintf-posix.h (test_function): Likewise.
55002         * tests/test-sprintf-posix.h (test_function): Likewise.
55003
55004         Fix *printf behaviour for large precisions on mingw and BeOS.
55005         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
55006         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
55007         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
55008         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
55009         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55010         gl_PRINTF_PRECISION and test its result. Invoke
55011         gl_PREREQ_VASNPRINTF_PRECISION.
55012         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55013         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55014         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55015         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55016         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55017         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55018         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55019         * doc/functions/fprintf.texi: Update.
55020         * doc/functions/printf.texi: Update.
55021         * doc/functions/snprintf.texi: Update.
55022         * doc/functions/sprintf.texi: Update.
55023         * doc/functions/vfprintf.texi: Update.
55024         * doc/functions/vprintf.texi: Update.
55025         * doc/functions/vsnprintf.texi: Update.
55026         * doc/functions/vsprintf.texi: Update.
55027
55028 2007-11-04  Bruno Haible  <bruno@clisp.org>
55029
55030         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
55031
55032 2007-11-04  Bruno Haible  <bruno@clisp.org>
55033
55034         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
55035         Reported by Sylvain Beucler <beuc@gnu.org>.
55036
55037 2007-11-03  Bruno Haible  <bruno@clisp.org>
55038
55039         * tests/test-fprintf-posix2.sh: New file.
55040         * tests/test-fprintf-posix2.c: New file.
55041         * modules/fprintf-posix-tests (Files): Add them.
55042         (TESTS): Add test-fprintf-posix2.sh.
55043         (configure.ac): Check for getrlimit and setrlimit.
55044         (check_PROGRAMS): Add test-fprintf-posix2.
55045
55046         * tests/test-printf-posix2.sh: New file.
55047         * tests/test-printf-posix2.c: New file.
55048         * modules/printf-posix-tests (Files): Add them.
55049         (TESTS): Add test-printf-posix2.sh.
55050         (configure.ac): Check for getrlimit and setrlimit.
55051         (check_PROGRAMS): Add test-printf-posix2.
55052
55053         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
55054         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
55055         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
55056         (decode_double): New function, copied from decode_long_double.
55057         (scale10_round_decimal_decoded): New function, extracted from
55058         scale10_round_decimal_long_double.
55059         (scale10_round_decimal_long_double): Use it.
55060         (scale10_round_decimal_double): New function.
55061         (floorlog10): New function.
55062         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
55063         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
55064         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
55065         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55066         gl_PRINTF_ENOMEM and test its result. Invoke
55067         gl_PREREQ_VASNPRINTF_ENOMEM.
55068         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55069         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55070         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55071         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55072         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55073         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55074         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55075         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
55076         * modules/snprintf-posix (Depends-on): Likewise.
55077         * modules/sprintf-posix (Depends-on): Likewise.
55078         * modules/vasnprintf-posix (Depends-on): Likewise.
55079         * modules/vasprintf-posix (Depends-on): Likewise.
55080         * modules/vfprintf-posix (Depends-on): Likewise.
55081         * modules/vsnprintf-posix (Depends-on): Likewise.
55082         * modules/vsprintf-posix (Depends-on): Likewise.
55083         * doc/functions/fprintf.texi: Update.
55084         * doc/functions/printf.texi: Update.
55085         * doc/functions/snprintf.texi: Update.
55086         * doc/functions/sprintf.texi: Update.
55087         * doc/functions/vfprintf.texi: Update.
55088         * doc/functions/vprintf.texi: Update.
55089         * doc/functions/vsnprintf.texi: Update.
55090         * doc/functions/vsprintf.texi: Update.
55091
55092 2007-11-03  Bruno Haible  <bruno@clisp.org>
55093
55094         * modules/frexp-nolibm-tests: New file.
55095
55096         * modules/frexp-nolibm: New file.
55097         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
55098
55099 2007-11-03  Bruno Haible  <bruno@clisp.org>
55100
55101         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
55102         value is C99 compliant.
55103         Needed for OSF/1 5.1.
55104
55105 2007-11-03  Bruno Haible  <bruno@clisp.org>
55106
55107         Fix out-of-memory handling of vasnprintf.
55108         * lib/printf-parse.c: Include <errno.h>.
55109         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
55110         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
55111         is already set.
55112
55113 2007-11-02  Eric Blake  <ebb9@byu.net>
55114
55115         Fix tests on cygwin.
55116         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
55117
55118 2007-11-01  Bruno Haible  <bruno@clisp.org>
55119
55120         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
55121         warning.
55122         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
55123         needed for POSIX compatibility.
55124
55125 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
55126
55127         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
55128         for compatibility with GNU.
55129
55130 2007-11-01  Bruno Haible  <bruno@clisp.org>
55131
55132         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
55133         (putenv): Renamed from rpl_putenv. Change argument type from
55134         'const char *' to 'char *'.
55135         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
55136         of defining putenv in config.h, just set REPLACE_PUTENV.
55137         * modules/putenv (Depends-on): Add stdlib.
55138         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55139         (Include): Use <stdlib.h>.
55140         * lib/stdlib.in.h (putenv): New declaration.
55141         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
55142         REPLACE_PUTENV.
55143         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
55144         REPLACE_PUTENV.
55145         Needed for MacOS X 10.5.0.
55146         Reported by Peter O'Gorman <peter@pogma.com>.
55147
55148 2007-11-01  Jim Meyering  <meyering@redhat.com>
55149
55150         Treat an empty date string exactly like "0".
55151         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
55152         if the remaining date string (to be parsed) is empty, use "0".
55153         Reported by Mischa Molhoek and discussed in this thread:
55154         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
55155
55156 2007-10-31  Bruno Haible  <bruno@clisp.org>
55157
55158         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
55159         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
55160         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
55161         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
55162         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
55163         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
55164
55165 2007-10-31  Bruno Haible  <bruno@clisp.org>
55166
55167         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
55168         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
55169         (AC_TYPE_LONG_LONG_INT): Use it.
55170         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
55171         it as well.
55172         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
55173         to m4/longlong.m4.
55174         * modules/stdint (Files): Remove m4/ulonglong.m4.
55175         * modules/strtoull (Files): Use m4/longlong.m4 instead of
55176         m4/ulonglong.m4.
55177         * modules/strtoumax (Files): Likewise.
55178
55179 2007-10-30  Bruno Haible  <bruno@clisp.org>
55180
55181         * modules/xvasprintf-posix: New file.
55182         Suggested by Eric Blake.
55183
55184 2007-10-30  Bruno Haible  <bruno@clisp.org>
55185
55186         * modules/xprintf-posix-tests: New file.
55187         * tests/test-xprintf-posix.sh: New file.
55188         * tests/test-xprintf-posix.c: New file.
55189         * tests/test-xfprintf-posix.c: New file.
55190
55191         * modules/xprintf-posix: New file.
55192
55193 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55194
55195         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
55196         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
55197         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
55198
55199 2007-10-29  Bruno Haible  <bruno@clisp.org>
55200
55201         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
55202         contain the special marker '_cv_'.
55203         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
55204         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
55205         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
55206         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
55207         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
55208         Reported by Ralf Wildenhues.
55209
55210 2007-10-29  Bruno Haible  <bruno@clisp.org>
55211
55212         * gnulib-tool (func_import): When --lgpl is not specified, set
55213         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
55214         GPLv3.
55215         Reported by Simon Josefsson.
55216
55217 2007-10-28  Bruno Haible  <bruno@clisp.org>
55218
55219         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
55220         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
55221         HAVE_DECL_ISFINITE.
55222         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
55223         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
55224         HAVE_DECL_ISFINITE.
55225
55226 2007-10-28  Bruno Haible  <bruno@clisp.org>
55227
55228         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
55229         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
55230
55231 2007-10-28  Bruno Haible  <bruno@clisp.org>
55232
55233         Fix link errors with Sun C 5.0 on Solaris 10.
55234         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
55235         function is declared but not present in the compiler's libm.
55236         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
55237         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
55238         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
55239         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
55240         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
55241         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
55242         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
55243         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
55244         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
55245         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
55246         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
55247         HAVE_DECL_FLOORL.
55248
55249 2007-10-28  Bruno Haible  <bruno@clisp.org>
55250
55251         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
55252         gl_FUNC_FLOORL. Cache the result.
55253         (gl_FUNC_FLOORL): Use it.
55254         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
55255         gl_FUNC_CEILL. Cache the result.
55256         (gl_FUNC_CEILL): Use it.
55257
55258         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
55259         gl_FUNC_FLOOR. Cache the result.
55260         (gl_FUNC_FLOOR): Use it.
55261         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
55262         gl_FUNC_CEIL. Cache the result.
55263         (gl_FUNC_CEIL): Use it.
55264
55265         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
55266         gl_FUNC_FLOORF. Cache the result.
55267         (gl_FUNC_FLOORF): Use it.
55268         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
55269         gl_FUNC_CEILF. Cache the result.
55270         (gl_FUNC_CEILF): Use it.
55271
55272 2007-10-28  Bruno Haible  <bruno@clisp.org>
55273
55274         * gnulib-tool: Allow specifying the LGPL version number through
55275         --lgpl=2 or --lgpl=3.
55276         (func_usage): Document --lgpl with argument.
55277         Handle --lgpl=... arguments.
55278         (func_import): Recognize also gl_LGPL calls with an argument. When
55279         --lgpl=2 is used and the module's license is just LGPL, report an
55280         error. Set sed_transform_lib_file according to the lgpl variable. In
55281         the generated files, use --lgpl or gl_LGPL invocations with argument,
55282         if necessary.
55283         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
55284         an LGPv2+ license.
55285         * doc/gnulib-tool.texi (Modified imports): Update explanation of
55286         gl_LGPL macro.
55287
55288 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55289             Bruno Haible  <bruno@clisp.org>
55290
55291         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
55292         (u16_uctomb_aux): Likewise.
55293         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
55294         !HAVE_INLINE.
55295         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
55296
55297 2007-10-28  Bruno Haible  <bruno@clisp.org>
55298
55299         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
55300         Invoke AM_GETTEXT_OPTION if it exists.
55301         * modules/vasprintf: Likewise.
55302         * modules/verror: Likewise.
55303         * modules/xprintf: Likewise.
55304         * modules/xvasprintf: Likewise.
55305
55306 2007-10-27  Ben Pfaff  <blp@gnu.org>
55307
55308         * lib/math.in.h: Define isfinite macro and prototypes for
55309         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
55310         implementations.
55311         * m4/math_h.m4: New substitutions for isfinite module.
55312         * lib/isfinite.c: New file.
55313         * m4/isfinite.m4: New file.
55314         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
55315         * modules/isfinite: New file.
55316         * modules/isfinite-tests: New file.
55317         * tests/tests-isfinite.c: New file.
55318         * doc/functions/isfinite.texi: Mention isfinite module.
55319         * MODULES.html.sh: Mention new module.
55320
55321 2007-10-27  Ben Pfaff  <blp@gnu.org>
55322
55323         Ralf Wildenhues reported that Tru64 4.0D declares the round
55324         functions but does not have definitions.
55325         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
55326         cannot be found in any library, set the output variable to
55327         "missing" instead of "".
55328         * m4/round.m4: Also use our substitute if we cannot find round in
55329         any library, even if it is declared.
55330         * m4/roundf.m4: Likewise for roundf.
55331         * m4/roundl.m4: Likewise for roundl.
55332         * lib/math.in.h: Undefine roundf, round, roundl before defining
55333         their replacements, to allow for hypothetical systems where these
55334         may be defined as macros but not available in libraries.
55335
55336 2007-10-27  Bruno Haible  <bruno@clisp.org>
55337
55338         * doc/gnulib.texi: Invoke @firstparagraphindent.
55339         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
55340         changes in gnulib.
55341         (Source changes): New section.
55342
55343 2007-10-26  Bruno Haible  <bruno@clisp.org>
55344
55345         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
55346         borrowed from autoconf.
55347
55348 2007-10-26  Bruno Haible  <bruno@clisp.org>
55349
55350         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
55351         strerror returned the empty string. Needed on HP-UX 11.00.
55352
55353 2007-10-24  Micah Cowan  <micah@cowan.name>
55354
55355         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
55356         * build-aux/bootstrap: Remove support for now-unnecessary option,
55357         --cvs-user, and envvars CVS_USER, CVS_RSH.
55358
55359 2007-10-24  Jim Meyering  <meyering@redhat.com>
55360
55361         Avoid diagnostics from sha1sum when there is no cached checksum.
55362         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
55363         if the po.s1 file hasn't been created yet.
55364
55365         * build-aux/bootstrap: Sync from coreutils:
55366         2007-10-24  Jim Meyering  <meyering@redhat.com>
55367         Get gnulib from the git repository, not from an obsolete cvs one.
55368         * build-aux/bootstrap: Suggestion from Micah Cowan.
55369         2007-10-04  Jim Meyering  <jim@meyering.net>
55370         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
55371         (update_po_files): Work also when there are no .po files in po/.
55372
55373 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55374
55375         * README: Append ".git" to git and cg examples.
55376         Problem reported by Benoit Sigoure.
55377
55378 2007-10-23  Micah Cowan  <micah@cowan.name>
55379
55380         * users.txt: Add wget.
55381
55382 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55383
55384         Fix linking of some unistdio tests on FreeBSD.
55385         * modules/unistdio/u16-vsnprintf-tests
55386         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
55387         * modules/unistdio/u16-vsprintf-tests
55388         (test_u16_vsnprintf1_LDADD): Likewise.
55389         * modules/unistdio/u32-vsnprintf-tests
55390         (test_u32_vsnprintf1_LDADD): Likewise.
55391         * modules/unistdio/u32-vsprintf-tests
55392         (test_u32_vsprintf1_LDADD): Likewise.
55393         * modules/unistdio/u8-vsnprintf-tests
55394         (test_u8_vsnprintf1_LDADD): Likewise.
55395         * modules/unistdio/u8-vsprintf-tests
55396         (test_u8_vsprintf1_LDADD): Likewise.
55397         * modules/unistdio/ulc-vsnprintf-tests
55398         (test_ulc_vsnprintf1_LDADD): Likewise.
55399         * modules/unistdio/ulc-vsprintf-tests
55400         (test_ulc_vsprintf1_LDADD): Likewise.
55401
55402         Fix linking of some uniconv tests on FreeBSD.
55403         * modules/uniconv/u16-conv-from-enc-tests
55404         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
55405         * modules/uniconv/u16-conv-to-enc-tests
55406         (test_u16_conv_to_enc_LDADD): Likewise.
55407         * modules/uniconv/u16-strconv-from-enc-tests
55408         (test_u16_strconv_from_enc_LDADD): Likewise.
55409         * modules/uniconv/u16-strconv-to-enc-tests
55410         (test_u16_strconv_to_enc_LDADD): Likewise.
55411         * modules/uniconv/u32-conv-from-enc-tests
55412         (test_u32_conv_from_enc_LDADD): Likewise.
55413         * modules/uniconv/u32-conv-to-enc-tests
55414         (test_u32_conv_to_enc_LDADD): Likewise.
55415         * modules/uniconv/u32-strconv-from-enc-tests
55416         (test_u32_strconv_from_enc_LDADD): Likewise.
55417         * modules/uniconv/u32-strconv-to-enc-tests
55418         (test_u32_strconv_to_enc_LDADD): Likewise.
55419         * modules/uniconv/u8-conv-from-enc-tests
55420         (test_u8_conv_from_enc_LDADD): Likewise.
55421         * modules/uniconv/u8-conv-to-enc-tests
55422         (test_u8_conv_to_enc_LDADD): Likewise.
55423         * modules/uniconv/u8-strconv-from-enc-tests
55424         (test_u8_strconv_from_enc_LDADD): Likewise.
55425         * modules/uniconv/u8-strconv-to-enc-tests
55426         (test_u8_strconv_to_enc_LDADD): Likewise.
55427
55428 2007-10-22  Bruno Haible  <bruno@clisp.org>
55429
55430         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
55431         size.
55432
55433 2007-10-22  Eric Blake  <ebb9@byu.net>
55434
55435         Tweak x*printf documentation.
55436         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
55437         variable name and comments.
55438         Suggested by Bruno Haible.
55439
55440 2007-10-22  Bruno Haible  <bruno@clisp.org>
55441
55442         * lib/acl.c (copy_acl): Fix file name in comment.
55443
55444 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55445
55446         Fix Tru64 problem with stdbool.h.
55447         * lib/stdbool.in.h (false, true):
55448         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
55449         Don't declare as an enum in this situation; it runs afoul of Tru64.
55450         Problem reported by Steven M. Schweda in
55451         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
55452
55453 2007-10-22  Eric Blake  <ebb9@byu.net>
55454
55455         Also wrap vf?printf.
55456         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
55457         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
55458         (xvprintf, xvfprintf): New functions.
55459
55460 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55461
55462         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
55463         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
55464
55465         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
55466         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
55467
55468 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55469
55470         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
55471         by Bruno Haible.
55472
55473 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55474
55475         * lib/getloadavg.c
55476         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
55477         Undef `sys' after including sys/table.h, for Tru64 4.0D.
55478
55479         * tests/test-i-ring.c: Work for C89.
55480
55481 2007-10-22  Bruno Haible  <bruno@clisp.org>
55482
55483         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
55484         -1u, in preprocessor expression, so that we don't test for the bug
55485         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
55486         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
55487
55488 2007-10-22  Eric Blake  <ebb9@byu.net>
55489
55490         * tests/test-yesno.sh: Silence stderr during test.
55491
55492 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55493
55494         * modules/crypto/gc-camellia: New file.
55495
55496         * m4/gc-camellia.m4: New file.
55497
55498         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
55499
55500         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
55501
55502 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55503
55504         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
55505         --help to stdout.  Reported by sms@antinode.org (Steven
55506         M. Schweda).
55507
55508 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55509
55510         * users.txt: Fix link to libksba.
55511
55512 2007-10-21  Ben Pfaff  <blp@gnu.org>
55513
55514         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
55515         round.c roundf implementation that depends on floorf and ceilf to
55516         be tested unconditionally.
55517
55518 2007-10-21  Ben Pfaff  <blp@gnu.org>
55519
55520         * m4/check-libm-func.m4: Removed.
55521         * m4/check-math-lib.m4: New file.
55522         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
55523         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
55524         definition and lack of AC_LIBOBJ([roundf]).
55525         * m4/roundl.m4: Ditto, and similarly for roundl.
55526         * modules/round: Reference new m4 file.
55527         * modules/roundf: Ditto.
55528         * modules/roundl: Ditto.
55529         * tests/test-round2.c (main): Use ROUND instead of round.
55530         Bug report from Bruno Haible.
55531
55532 2007-10-21  Bruno Haible  <bruno@clisp.org>
55533
55534         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
55535         context.
55536
55537 2007-10-21  Bruno Haible  <bruno@clisp.org>
55538
55539         * tests/test-wcwidth.c (main): Allow negative result for some control
55540         characters.
55541
55542         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
55543         Needed on OSF/1 5.1.
55544
55545 2007-10-21  Bruno Haible  <bruno@clisp.org>
55546
55547         * tests/test-floorf1.c: Include isnanf.h.
55548         (main): Use isnanf() instead of isnan().
55549         * tests/test-ceilf1.c: Include isnanf.h.
55550         (main): Use isnanf() instead of isnan().
55551         * tests/test-truncf1.c: Include isnanf.h.
55552         (main): Use isnanf() instead of isnan().
55553         * tests/test-roundf1.c: Include isnanf.h.
55554         (main): Use isnanf() instead of isnan().
55555
55556 2007-10-21  Eric Blake  <ebb9@byu.net>
55557
55558         * users.txt: Update URL for m4.
55559
55560 2007-10-21  Bruno Haible  <bruno@clisp.org>
55561
55562         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
55563
55564 2007-10-21  Bruno Haible  <bruno@clisp.org>
55565
55566         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
55567         Git's management files if the CVS files are not present.
55568
55569 2007-10-20  Bruno Haible  <bruno@clisp.org>
55570
55571         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
55572         gcc-3.4.x.
55573
55574 2007-10-20  Ben Pfaff  <blp@gnu.org>
55575
55576         * lib/math.in.h: Declare round, roundf, roundl if we are providing
55577         implementations.
55578         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
55579         * lib/round.c: New file.
55580         * lib/roundf.c: New file.
55581         * lib/roundl.c: New file.
55582         * m4/round.m4: New file.
55583         * m4/roundf.m4: New file.
55584         * m4/roundl.m4: New file.
55585         * m4/check-libm-func-m4: New file.
55586         * modules/math: Replace round, roundf, roundl related @VARS@ in
55587         math.in.h.
55588         * modules/round: New file.
55589         * modules/round-tests: New file.
55590         * modules/roundf: New file.
55591         * modules/roundf-tests: New file.
55592         * modules/roundl: New file.
55593         * modules/roundl-tests: New file.
55594         * tests/test-round1.c: New file.
55595         * tests/test-round2.c: New file.
55596         * tests/test-roundf1.c: New file.
55597         * tests/test-roundf2.c: New file.
55598         * tests/test-roundl.c: New file.
55599         * doc/functions/round.texi: Mention round module.
55600         * doc/functions/roundf.texi: Mention roundf module.
55601         * doc/functions/roundl.texi: Mention roundl module.
55602         * MODULES.html.sh: Mention new modules.
55603         Thanks to Bruno Haible for suggestions.
55604
55605 2007-10-20  Jim Meyering  <meyering@redhat.com>
55606
55607         * lib/xprintf.c: Include <config.h> unconditionally.
55608
55609         Change xprintf's license to GPL.
55610         * modules/xprintf (License): s/LGPL/GPL/, since this module
55611         depends on modules (exit and exitfail) which are GPL.
55612         Suggestion from Bruno Haible.
55613
55614         xprintf fixes.
55615         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
55616         Use a clearer diagnostic.
55617         Patch from Bruno Haible.
55618
55619 2007-10-20  Bruno Haible  <bruno@clisp.org>
55620
55621         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
55622         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
55623         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55624
55625 2007-10-20  Bruno Haible  <bruno@clisp.org>
55626
55627         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
55628         precision in the comparison result > x - 1 or similar.
55629         * tests/test-ceilf2.c (correct_result_p): Likewise.
55630         * tests/test-truncf2.c (correct_result_p): Likewise.
55631         * tests/test-trunc2.c (correct_result_p): Likewise.
55632         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55633
55634 2007-10-20  Bruno Haible  <bruno@clisp.org>
55635
55636         * modules/ceil: New file.
55637         * m4/ceil.m4: New file.
55638         * doc/functions/ceil.texi: Mention the 'ceil' module.
55639
55640 2007-10-20  Bruno Haible  <bruno@clisp.org>
55641
55642         * modules/floor: New file.
55643         * m4/floor.m4: New file.
55644         * doc/functions/floor.texi: Mention the 'floor' module.
55645
55646 2007-10-20  Bruno Haible  <bruno@clisp.org>
55647
55648         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
55649         of %a.
55650         * modules/floorf-tests (Depends-on): Likewise.
55651         * modules/truncf-tests (Depends-on): Likewise.
55652         * modules/trunc-tests (Depends-on): Likewise.
55653         Reported by Ben Pfaff.
55654
55655 2007-10-19  Jim Meyering  <meyering@redhat.com>
55656
55657         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
55658         Don't bother testing specific errno values.  Just test ferror.
55659
55660         New module: xprintf
55661         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
55662
55663 2007-10-19  Bruno Haible  <bruno@clisp.org>
55664
55665         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
55666         syntax.
55667         * modules/javaexec (Makefile.am): Likewise.
55668         * modules/relocatable-prog (Makefile.am): Likewise.
55669         Suggested by Jim Meyering.
55670
55671 2007-10-18  Bruno Haible  <bruno@clisp.org>
55672
55673         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
55674         Reported by Jim Meyering.
55675
55676 2007-10-18  Eric Blake  <ebb9@byu.net>
55677
55678         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
55679
55680 2007-10-18  Bruno Haible  <bruno@clisp.org>
55681
55682         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
55683         the format string into writable memory. Needed in Fortify conditions.
55684
55685 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
55686             Bruno Haible  <bruno@clisp.org>
55687
55688         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
55689         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
55690         * modules/trim (Depends-on): Add mbchar.
55691         (configure.ac): Add gl_FUNC_MBRTOWC.
55692         (Makefile.am): Augment lib_SOURCES.
55693
55694 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
55695
55696         Modify glob.c to use fstatat and dirfd, to simplify it.
55697         Suggested by Eric Blake.
55698         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
55699         Don't include <stdbool.h>; not used.
55700         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
55701         (link_exists_p): Simplify implementation, since we can now assume
55702         dirfd and fstatat.
55703         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
55704
55705 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55706
55707         * gnulib-tool (func_get_dependencies): Fix sed script to
55708         match only tests.
55709
55710 2007-10-17  Bruno Haible  <bruno@clisp.org>
55711
55712         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
55713         allow locale names without encoding suffix.
55714         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
55715         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55716
55717 2007-10-16  Bruno Haible  <bruno@clisp.org>
55718
55719         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
55720         * lib/getgroups.c (getgroups): Likewise.
55721         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
55722
55723 2007-10-16  Bruno Haible  <bruno@clisp.org>
55724
55725         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
55726         * modules/malloc-posix (License): Likewise.
55727         * modules/realloc-posix (License): Likewise.
55728         * modules/calloc-posix (License): Likewise.
55729         * modules/intprops (License): Change from GPL to LGPL, with
55730         Paul Eggert's approval.
55731
55732 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55733
55734         Merge glibc changes into lib/glob.c.
55735
55736         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
55737         2007-10-15 04:59:03 UTC.  Here are the changes:
55738
55739         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
55740
55741         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
55742
55743         * lib/glob.c: Add some branch prediction throughout.
55744
55745         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
55746
55747         [BZ #5103]
55748         * lib/glob.c (glob): Recognize patterns starting \/.
55749
55750         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
55751
55752         [BZ #3996]
55753         * lib/glob.c (attribute_hidden): Define if not defined.
55754         (glob): Unescape dirname, filename or username when needed and not
55755         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
55756         is NULL.  Handle unescaped [ in pattern without closing ].
55757         Don't pass GLOB_CHECK down to recursive glob for directories.
55758         (__glob_pattern_type): New function.
55759         (__glob_pattern_p): Implement using __glob_pattern_type.
55760         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
55761         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
55762         Remove unreachable code.
55763
55764         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
55765
55766         * lib/glob.c (glob_in_dir): Add some comments and asserts to
55767         explain why there are no leaks.
55768
55769         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
55770
55771         [BZ #3253]
55772         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
55773         time, rather allocate increasingly bigger arrays of pointers, if
55774         possible with alloca, if too large with malloc.
55775
55776 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55777
55778         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
55779         Problem reported by H.Merijn Brand in
55780         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
55781         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
55782         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
55783
55784 2007-10-15  Bruno Haible  <bruno@clisp.org>
55785
55786         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
55787         with explicit rpl_ prefix.
55788         * lib/fopen.c (fopen): Likewise.
55789         * lib/freopen.c (freopen): Likewise.
55790         * lib/iconv.c (iconv): Likewise.
55791         * lib/iconv_close.c (iconv_close): Likewise.
55792
55793 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55794
55795         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
55796
55797 2007-10-15  Bruno Haible  <bruno@clisp.org>
55798
55799         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
55800         <stddef.h> instead of <stdlib.h> since we only need NULL.
55801         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55802
55803 2007-10-15  Bruno Haible  <bruno@clisp.org>
55804
55805         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
55806         Replace paragraph talking about LIBOBJS.
55807         Reported by Colin Watson <cjwatson@debian.org>.
55808
55809 2007-10-15  Bruno Haible  <bruno@clisp.org>
55810
55811         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
55812         <stdlib.h> before using NULL.
55813
55814 2007-10-15  Simon Josefsson  <simon@josefsson.org>
55815
55816         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
55817         Reported by Albert Chin <china@thewrittenword.com>.
55818
55819 2007-10-14  Bruno Haible  <bruno@clisp.org>
55820
55821         * modules/iconv_open-utf-tests: New file.
55822         * tests/test-iconv-utf.c: New file.
55823
55824         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
55825         * modules/iconv_open-utf: New file.
55826         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
55827         (iconv, iconv_close): New declarations.
55828         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
55829         be defined.
55830         (iconv_open): Add special handling of conversion between UTF-8 and
55831         UTF-{16,32}{BE,LE}.
55832         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
55833         * lib/iconv_close.c: New file.
55834         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
55835         gl_FUNC_ICONV_OPEN.
55836         (gl_FUNC_ICONV_OPEN): Use it.
55837         (gl_FUNC_ICONV_OPEN_UTF): New macro.
55838         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
55839         and REPLACE_ICONV_UTF.
55840         * modules/iconv_open (Depends-on): Add c-strcase.
55841         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
55842         ICONV_CONST.
55843         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
55844
55845 2007-10-13  Albert Chin  <china@thewrittenword.com>
55846             Bruno Haible  <bruno@clisp.org>
55847
55848         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
55849         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
55850
55851 2007-10-13  Bruno Haible  <bruno@clisp.org>
55852
55853         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
55854         defined, use the ISO C99 inline semantics.
55855         * lib/argp.h (ARGP_EI): Likewise.
55856
55857 2007-10-13  Bruno Haible  <bruno@clisp.org>
55858
55859         Handle 'inline' change in gcc 4.3.0.
55860         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
55861         argp_fmtstream_write, argp_fmtstream_set_lmargin,
55862         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
55863         argp_fmtstream_point): Disable 'extern' declaration if the function
55864         definition is going to be provided inline.
55865         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
55866         semantics, not the ISO C99 inline semantics.
55867         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
55868         'extern' declaration if the function definition is going to be provided
55869         inline.
55870         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
55871         the GNU C inline semantics, not the ISO C99 inline semantics. With
55872         GCC 4.2, avoid a warning.
55873
55874 2007-10-13  Bruno Haible  <bruno@clisp.org>
55875
55876         * lib/freading.h (freading): Enable the use of __freading for
55877         glibc >= 2.7.
55878         * lib/freading.c (freading): Likewise.
55879
55880 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
55881
55882         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
55883         "warning: C99 inline functions are not supported; using GNU89".
55884
55885 2007-10-12  Bruno Haible  <bruno@clisp.org>
55886
55887         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
55888         of 2.
55889         * tests/test-ceilf2.c: New file.
55890         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
55891
55892         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
55893         * modules/ceilf-tests: Update.
55894
55895 2007-10-12  Bruno Haible  <bruno@clisp.org>
55896
55897         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
55898         of 2.
55899         * tests/test-floorf2.c: New file.
55900         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
55901
55902         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
55903         * modules/floorf-tests: Update.
55904
55905 2007-10-12  Bruno Haible  <bruno@clisp.org>
55906
55907         * tests/test-trunc2.c: New file.
55908         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
55909
55910         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
55911         * modules/trunc-tests: Update.
55912
55913 2007-10-12  Bruno Haible  <bruno@clisp.org>
55914
55915         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
55916         of 2.
55917         * tests/test-truncf2.c: New file.
55918         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
55919
55920         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
55921         * modules/truncf-tests: Update.
55922
55923 2007-10-11  Eric Blake  <ebb9@byu.net>
55924
55925         Don't claim strerror is broken on Interix.
55926         * doc/functions/strerror.texi (strerror): Known broken systems are
55927         now Solaris 8, and not Interix.
55928         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
55929         Interix on cross-compile.
55930         Reported by Martin Koeppe in
55931         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
55932
55933 2007-10-11  Bruno Haible  <bruno@clisp.org>
55934
55935         * modules/i-ring-tests: New file.
55936         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
55937         instead of assert.
55938
55939 2007-10-11  Bruno Haible  <bruno@clisp.org>
55940
55941         * modules/filenamecat-tests: New file.
55942         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
55943         * lib/filenamecat.c: Remove test code.
55944
55945 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55946
55947         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
55948
55949         * lib/strerror.c: Include <string.h> always, to test interface,
55950         and to remove the need for the dummy.
55951         Include intprops.h to compute width instead of doing it ourselves
55952         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
55953         (strerror): Define it to return NULL if there's no system strerror.
55954         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
55955         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
55956         ancient pre-strerror Unix systems well any more.  Saying "unknown
55957         system error" is enough.
55958         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
55959         simpler strerror.c implementation.
55960         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
55961         Simplify the tests to reflect the simpler strerror implementation.
55962         * modules/strerror (Depends-on): Add intprops.
55963
55964 2007-10-09  Eric Blake  <ebb9@byu.net>
55965
55966         Silence test-fpending.
55967         * modules/fpending-tests (Files): Add wrapper script.
55968         * tests/test-fpending.sh: New file.
55969
55970 2007-10-09  Bruno Haible  <bruno@clisp.org>
55971
55972         * MODULES.html.sh (func_module): Don't create a hyperlink for
55973         function names like 'printf_frexp'.
55974         (Misc): Add crc, memxor.
55975         (Characteristics of floating types): New section.
55976         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
55977         isnanf-nolibm, signbit, trunc, truncf, truncl.
55978         (Enhancements for ISO C 99 functions): New subsection Input/output.
55979         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
55980         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
55981         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
55982         (Compatibility checks for POSIX:2001 functions): Add clock-time.
55983         (Enhancements for POSIX:2001 functions): Add chdir-long.
55984         (File system functions): Add areadlink, chdir-safer, read-file.
55985         Remove cycle-check.
55986         (File system as inode set): New section.
55987         (Date and time): Add gethrxtime.
55988         (Multithreading): Add openmp.
55989         (Internationalization functions): Add localename.
55990         (Unicode string functions): Add unistr/u*-mbsnlen.
55991         (Support for maintaining and releasing projects): Add git-version-gen.
55992         (Lone files): Remove directories.
55993
55994 2007-10-08  Ben Pfaff  <blp@gnu.org>
55995
55996         * lib/xmalloca.h: Fix typo in comment.
55997
55998 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55999
56000         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
56001         when avoiding problems with integer overflow.  Use a portable test
56002         instead.
56003
56004 2007-10-08  Simon Josefsson  <simon@josefsson.org>
56005
56006         * modules/dummy (License): Change to LGPLv2+.
56007         * modules/float (License): Likewise
56008         * modules/realloc (License): Likewise
56009         * modules/stdlib (License): Likewise
56010
56011 2007-10-07  Bruno Haible  <bruno@clisp.org>
56012
56013         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
56014         * floor.c (TWO_MANT_DIG): Likewise.
56015         * ceil.c (TWO_MANT_DIG): Likewise.
56016         Reported by Ben Pfaff.
56017
56018 2007-10-07  Bruno Haible  <bruno@clisp.org>
56019
56020         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
56021         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
56022         * lib/frexp.c (FUNC): Likewise.
56023         * lib/printf-frexp.h (printf_frexp): Likewise.
56024         * lib/printf-frexpl.h (printf_frexpl): Likewise.
56025         * lib/printf-frexp.c (FUNC): Likewise.
56026         Suggested by Jim Meyering.
56027
56028 2007-10-07  Jim Meyering  <meyering@redhat.com>
56029
56030         Make xnanosleep's integer overflow test more robust.
56031         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
56032         so that gcc-4.3.0 doesn't optimize away this test for overflow.
56033
56034 2007-10-07  Bruno Haible  <bruno@clisp.org>
56035
56036         * NEWS: Mention the license change.
56037
56038         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
56039         abbreviations in the modules files.
56040
56041         Change copyright notice from GPLv2+ to GPLv3+.
56042         * README: Change copyright notice.
56043         * MODULES.html.sh: Likewise.
56044         * build-aux/bootstrap.conf: Likewise.
56045         * build-aux/config.libpath: Likewise.
56046         * build-aux/csharpcomp.sh.in: Likewise.
56047         * build-aux/csharpexec.sh.in: Likewise.
56048         * build-aux/install-reloc: Likewise.
56049         * build-aux/javacomp.sh.in: Likewise.
56050         * build-aux/javaexec.sh.in: Likewise.
56051         * build-aux/ldd.sh.in: Likewise.
56052         * build-aux/reloc-ldflags: Likewise.
56053         * build-aux/relocatable.sh.in: Likewise.
56054         * build-aux/x-to-1.in: Likewise.
56055         * check-module: Likewise.
56056         * config/srclistvars.sh: Likewise.
56057         * gnulib-tool: Likewise.
56058         * lib/acl-internal.h: Likewise.
56059         * lib/acl.c: Likewise.
56060         * lib/acl.h: Likewise.
56061         * lib/acl_entries.c: Likewise.
56062         * lib/areadlink-with-size.c: Likewise.
56063         * lib/areadlink.c: Likewise.
56064         * lib/areadlink.h: Likewise.
56065         * lib/argmatch.c: Likewise.
56066         * lib/argmatch.h: Likewise.
56067         * lib/argp-ba.c: Likewise.
56068         * lib/argp-eexst.c: Likewise.
56069         * lib/argp-fmtstream.c: Likewise.
56070         * lib/argp-fmtstream.h: Likewise.
56071         * lib/argp-fs-xinl.c: Likewise.
56072         * lib/argp-help.c: Likewise.
56073         * lib/argp-namefrob.h: Likewise.
56074         * lib/argp-parse.c: Likewise.
56075         * lib/argp-pin.c: Likewise.
56076         * lib/argp-pv.c: Likewise.
56077         * lib/argp-pvh.c: Likewise.
56078         * lib/argp-xinl.c: Likewise.
56079         * lib/argp.h: Likewise.
56080         * lib/at-func.c: Likewise.
56081         * lib/atanl.c: Likewise.
56082         * lib/backupfile.c: Likewise.
56083         * lib/backupfile.h: Likewise.
56084         * lib/basename.c: Likewise.
56085         * lib/binary-io.h: Likewise.
56086         * lib/byteswap.in.h: Likewise.
56087         * lib/c-stack.c: Likewise.
56088         * lib/c-stack.h: Likewise.
56089         * lib/c-strcasestr.c: Likewise.
56090         * lib/c-strcasestr.h: Likewise.
56091         * lib/c-strstr.c: Likewise.
56092         * lib/c-strstr.h: Likewise.
56093         * lib/c-strtod.c: Likewise.
56094         * lib/calloc.c: Likewise.
56095         * lib/canon-host.c: Likewise.
56096         * lib/canon-host.h: Likewise.
56097         * lib/canonicalize-lgpl.c: Likewise.
56098         * lib/canonicalize.c: Likewise.
56099         * lib/canonicalize.h: Likewise.
56100         * lib/ceil.c: Likewise.
56101         * lib/ceilf.c: Likewise.
56102         * lib/ceill.c: Likewise.
56103         * lib/chdir-long.c: Likewise.
56104         * lib/chdir-long.h: Likewise.
56105         * lib/chdir-safer.c: Likewise.
56106         * lib/chdir-safer.h: Likewise.
56107         * lib/chown.c: Likewise.
56108         * lib/classpath.c: Likewise.
56109         * lib/classpath.h: Likewise.
56110         * lib/clean-temp.c: Likewise.
56111         * lib/clean-temp.h: Likewise.
56112         * lib/cloexec.c: Likewise.
56113         * lib/close-stream.c: Likewise.
56114         * lib/closein.c: Likewise.
56115         * lib/closein.h: Likewise.
56116         * lib/closeout.c: Likewise.
56117         * lib/closeout.h: Likewise.
56118         * lib/concat-filename.c: Likewise.
56119         * lib/copy-file.c: Likewise.
56120         * lib/copy-file.h: Likewise.
56121         * lib/count-one-bits.h: Likewise.
56122         * lib/crc.c: Likewise.
56123         * lib/crc.h: Likewise.
56124         * lib/creat-safer.c: Likewise.
56125         * lib/csharpcomp.c: Likewise.
56126         * lib/csharpcomp.h: Likewise.
56127         * lib/csharpexec.c: Likewise.
56128         * lib/csharpexec.h: Likewise.
56129         * lib/cycle-check.c: Likewise.
56130         * lib/cycle-check.h: Likewise.
56131         * lib/diacrit.c: Likewise.
56132         * lib/diacrit.h: Likewise.
56133         * lib/diffseq.h: Likewise.
56134         * lib/dirchownmod.c: Likewise.
56135         * lib/dirent.in.h: Likewise.
56136         * lib/dirfd.c: Likewise.
56137         * lib/dirfd.h: Likewise.
56138         * lib/dirname.c: Likewise.
56139         * lib/dirname.h: Likewise.
56140         * lib/dummy.c: Likewise.
56141         * lib/dup-safer.c: Likewise.
56142         * lib/dup2.c: Likewise.
56143         * lib/eealloc.h: Likewise.
56144         * lib/error.c: Likewise.
56145         * lib/error.h: Likewise.
56146         * lib/euidaccess.c: Likewise.
56147         * lib/exclude.c: Likewise.
56148         * lib/exclude.h: Likewise.
56149         * lib/execute.c: Likewise.
56150         * lib/execute.h: Likewise.
56151         * lib/exitfail.c: Likewise.
56152         * lib/exitfail.h: Likewise.
56153         * lib/expl.c: Likewise.
56154         * lib/fatal-signal.c: Likewise.
56155         * lib/fatal-signal.h: Likewise.
56156         * lib/fbufmode.c: Likewise.
56157         * lib/fbufmode.h: Likewise.
56158         * lib/fchdir.c: Likewise.
56159         * lib/fchmodat.c: Likewise.
56160         * lib/fchownat.c: Likewise.
56161         * lib/fcntl--.h: Likewise.
56162         * lib/fcntl-safer.h: Likewise.
56163         * lib/fcntl.in.h: Likewise.
56164         * lib/fd-safer.c: Likewise.
56165         * lib/fflush.c: Likewise.
56166         * lib/file-has-acl.c: Likewise.
56167         * lib/file-set.c: Likewise.
56168         * lib/file-type.c: Likewise.
56169         * lib/file-type.h: Likewise.
56170         * lib/fileblocks.c: Likewise.
56171         * lib/filemode.c: Likewise.
56172         * lib/filemode.h: Likewise.
56173         * lib/filename.h: Likewise.
56174         * lib/filenamecat.c: Likewise.
56175         * lib/filenamecat.h: Likewise.
56176         * lib/findprog.c: Likewise.
56177         * lib/findprog.h: Likewise.
56178         * lib/float.in.h: Likewise.
56179         * lib/floor.c: Likewise.
56180         * lib/floorf.c: Likewise.
56181         * lib/floorl.c: Likewise.
56182         * lib/fopen-safer.c: Likewise.
56183         * lib/fopen.c: Likewise.
56184         * lib/fpending.c: Likewise.
56185         * lib/fpending.h: Likewise.
56186         * lib/fprintf.c: Likewise.
56187         * lib/fprintftime.h: Likewise.
56188         * lib/fpucw.h: Likewise.
56189         * lib/fpurge.c: Likewise.
56190         * lib/fpurge.h: Likewise.
56191         * lib/freadable.c: Likewise.
56192         * lib/freadable.h: Likewise.
56193         * lib/freadahead.c: Likewise.
56194         * lib/freadahead.h: Likewise.
56195         * lib/freading.c: Likewise.
56196         * lib/freading.h: Likewise.
56197         * lib/free.c: Likewise.
56198         * lib/freopen.c: Likewise.
56199         * lib/frexp.c: Likewise.
56200         * lib/frexpl.c: Likewise.
56201         * lib/fseek.c: Likewise.
56202         * lib/fseterr.c: Likewise.
56203         * lib/fseterr.h: Likewise.
56204         * lib/fstatat.c: Likewise.
56205         * lib/fstrcmp.c: Likewise.
56206         * lib/fstrcmp.h: Likewise.
56207         * lib/fsusage.c: Likewise.
56208         * lib/fsusage.h: Likewise.
56209         * lib/ftell.c: Likewise.
56210         * lib/ftello.c: Likewise.
56211         * lib/fts-cycle.c: Likewise.
56212         * lib/fts.c: Likewise.
56213         * lib/fts_.h: Likewise.
56214         * lib/full-read.c: Likewise.
56215         * lib/full-read.h: Likewise.
56216         * lib/full-write.c: Likewise.
56217         * lib/full-write.h: Likewise.
56218         * lib/fwritable.c: Likewise.
56219         * lib/fwritable.h: Likewise.
56220         * lib/fwriteerror.c: Likewise.
56221         * lib/fwriteerror.h: Likewise.
56222         * lib/fwriting.c: Likewise.
56223         * lib/fwriting.h: Likewise.
56224         * lib/gcd.c: Likewise.
56225         * lib/gcd.h: Likewise.
56226         * lib/getcwd.c: Likewise.
56227         * lib/getdate.h: Likewise.
56228         * lib/getdate.y: Likewise.
56229         * lib/getdomainname.c: Likewise.
56230         * lib/getdomainname.h: Likewise.
56231         * lib/getgroups.c: Likewise.
56232         * lib/gethostname.c: Likewise.
56233         * lib/gethrxtime.c: Likewise.
56234         * lib/gethrxtime.h: Likewise.
56235         * lib/getloadavg.c: Likewise.
56236         * lib/getndelim2.c: Likewise.
56237         * lib/getndelim2.h: Likewise.
56238         * lib/getnline.c: Likewise.
56239         * lib/getnline.h: Likewise.
56240         * lib/getopt.c: Likewise.
56241         * lib/getopt.in.h: Likewise.
56242         * lib/getopt1.c: Likewise.
56243         * lib/getopt_int.h: Likewise.
56244         * lib/getpagesize.h: Likewise.
56245         * lib/getsubopt.c: Likewise.
56246         * lib/gettime.c: Likewise.
56247         * lib/getugroups.c: Likewise.
56248         * lib/getugroups.h: Likewise.
56249         * lib/getusershell.c: Likewise.
56250         * lib/gl_anyavltree_list1.h: Likewise.
56251         * lib/gl_anyavltree_list2.h: Likewise.
56252         * lib/gl_anyhash_list1.h: Likewise.
56253         * lib/gl_anyhash_list2.h: Likewise.
56254         * lib/gl_anylinked_list1.h: Likewise.
56255         * lib/gl_anylinked_list2.h: Likewise.
56256         * lib/gl_anyrbtree_list1.h: Likewise.
56257         * lib/gl_anyrbtree_list2.h: Likewise.
56258         * lib/gl_anytree_list1.h: Likewise.
56259         * lib/gl_anytree_list2.h: Likewise.
56260         * lib/gl_anytree_oset.h: Likewise.
56261         * lib/gl_anytreehash_list1.h: Likewise.
56262         * lib/gl_anytreehash_list2.h: Likewise.
56263         * lib/gl_array_list.c: Likewise.
56264         * lib/gl_array_list.h: Likewise.
56265         * lib/gl_array_oset.c: Likewise.
56266         * lib/gl_array_oset.h: Likewise.
56267         * lib/gl_avltree_list.c: Likewise.
56268         * lib/gl_avltree_list.h: Likewise.
56269         * lib/gl_avltree_oset.c: Likewise.
56270         * lib/gl_avltree_oset.h: Likewise.
56271         * lib/gl_avltreehash_list.c: Likewise.
56272         * lib/gl_avltreehash_list.h: Likewise.
56273         * lib/gl_carray_list.c: Likewise.
56274         * lib/gl_carray_list.h: Likewise.
56275         * lib/gl_linked_list.c: Likewise.
56276         * lib/gl_linked_list.h: Likewise.
56277         * lib/gl_linkedhash_list.c: Likewise.
56278         * lib/gl_linkedhash_list.h: Likewise.
56279         * lib/gl_list.c: Likewise.
56280         * lib/gl_list.h: Likewise.
56281         * lib/gl_oset.c: Likewise.
56282         * lib/gl_oset.h: Likewise.
56283         * lib/gl_rbtree_list.c: Likewise.
56284         * lib/gl_rbtree_list.h: Likewise.
56285         * lib/gl_rbtree_oset.c: Likewise.
56286         * lib/gl_rbtree_oset.h: Likewise.
56287         * lib/gl_rbtreehash_list.c: Likewise.
56288         * lib/gl_rbtreehash_list.h: Likewise.
56289         * lib/gl_sublist.c: Likewise.
56290         * lib/gl_sublist.h: Likewise.
56291         * lib/group-member.c: Likewise.
56292         * lib/group-member.h: Likewise.
56293         * lib/hard-locale.c: Likewise.
56294         * lib/hard-locale.h: Likewise.
56295         * lib/hash-pjw.c: Likewise.
56296         * lib/hash-pjw.h: Likewise.
56297         * lib/hash-triple.c: Likewise.
56298         * lib/hash.c: Likewise.
56299         * lib/hash.h: Likewise.
56300         * lib/human.c: Likewise.
56301         * lib/human.h: Likewise.
56302         * lib/i-ring.c: Likewise.
56303         * lib/i-ring.h: Likewise.
56304         * lib/idcache.c: Likewise.
56305         * lib/imaxabs.c: Likewise.
56306         * lib/imaxdiv.c: Likewise.
56307         * lib/inet_pton.c: Likewise.
56308         * lib/inet_pton.h: Likewise.
56309         * lib/intprops.h: Likewise.
56310         * lib/inttostr.c: Likewise.
56311         * lib/inttostr.h: Likewise.
56312         * lib/inttypes.in.h: Likewise.
56313         * lib/isapipe.c: Likewise.
56314         * lib/isdir.c: Likewise.
56315         * lib/isnan.c: Likewise.
56316         * lib/isnan.h: Likewise.
56317         * lib/isnanf.c: Likewise.
56318         * lib/isnanf.h: Likewise.
56319         * lib/isnanl-nolibm.h: Likewise.
56320         * lib/isnanl.c: Likewise.
56321         * lib/isnanl.h: Likewise.
56322         * lib/javacomp.c: Likewise.
56323         * lib/javacomp.h: Likewise.
56324         * lib/javaexec.c: Likewise.
56325         * lib/javaexec.h: Likewise.
56326         * lib/javaversion.c: Likewise.
56327         * lib/javaversion.h: Likewise.
56328         * lib/javaversion.java: Likewise.
56329         * lib/lbrkprop.h: Likewise.
56330         * lib/lchmod.h: Likewise.
56331         * lib/lchown.c: Likewise.
56332         * lib/ldexpl.c: Likewise.
56333         * lib/linebreak.c: Likewise.
56334         * lib/linebreak.h: Likewise.
56335         * lib/linebuffer.c: Likewise.
56336         * lib/linebuffer.h: Likewise.
56337         * lib/locale.in.h: Likewise.
56338         * lib/logl.c: Likewise.
56339         * lib/long-options.c: Likewise.
56340         * lib/long-options.h: Likewise.
56341         * lib/lstat.c: Likewise.
56342         * lib/lstat.h: Likewise.
56343         * lib/math.in.h: Likewise.
56344         * lib/mbchar.c: Likewise.
56345         * lib/mbchar.h: Likewise.
56346         * lib/mbfile.h: Likewise.
56347         * lib/mbiter.h: Likewise.
56348         * lib/mbscasecmp.c: Likewise.
56349         * lib/mbscasestr.c: Likewise.
56350         * lib/mbschr.c: Likewise.
56351         * lib/mbscspn.c: Likewise.
56352         * lib/mbslen.c: Likewise.
56353         * lib/mbsncasecmp.c: Likewise.
56354         * lib/mbsnlen.c: Likewise.
56355         * lib/mbspbrk.c: Likewise.
56356         * lib/mbspcasecmp.c: Likewise.
56357         * lib/mbsrchr.c: Likewise.
56358         * lib/mbssep.c: Likewise.
56359         * lib/mbsspn.c: Likewise.
56360         * lib/mbsstr.c: Likewise.
56361         * lib/mbstok_r.c: Likewise.
56362         * lib/mbswidth.c: Likewise.
56363         * lib/mbswidth.h: Likewise.
56364         * lib/mbuiter.h: Likewise.
56365         * lib/memcasecmp.c: Likewise.
56366         * lib/memcasecmp.h: Likewise.
56367         * lib/memchr.c: Likewise.
56368         * lib/memcmp.c: Likewise.
56369         * lib/memcoll.c: Likewise.
56370         * lib/memcoll.h: Likewise.
56371         * lib/memcpy.c: Likewise.
56372         * lib/memrchr.c: Likewise.
56373         * lib/mkancesdirs.c: Likewise.
56374         * lib/mkdir-p.c: Likewise.
56375         * lib/mkdir-p.h: Likewise.
56376         * lib/mkdir.c: Likewise.
56377         * lib/mkdirat.c: Likewise.
56378         * lib/mkdtemp.c: Likewise.
56379         * lib/mkstemp-safer.c: Likewise.
56380         * lib/mkstemp.c: Likewise.
56381         * lib/modechange.c: Likewise.
56382         * lib/modechange.h: Likewise.
56383         * lib/mountlist.c: Likewise.
56384         * lib/mountlist.h: Likewise.
56385         * lib/mpsort.c: Likewise.
56386         * lib/nanosleep.c: Likewise.
56387         * lib/obstack.c: Likewise.
56388         * lib/obstack.h: Likewise.
56389         * lib/open-safer.c: Likewise.
56390         * lib/open.c: Likewise.
56391         * lib/openat-die.c: Likewise.
56392         * lib/openat-priv.h: Likewise.
56393         * lib/openat-proc.c: Likewise.
56394         * lib/openat.c: Likewise.
56395         * lib/openat.h: Likewise.
56396         * lib/pagealign_alloc.c: Likewise.
56397         * lib/pagealign_alloc.h: Likewise.
56398         * lib/physmem.c: Likewise.
56399         * lib/physmem.h: Likewise.
56400         * lib/pipe-safer.c: Likewise.
56401         * lib/pipe.c: Likewise.
56402         * lib/pipe.h: Likewise.
56403         * lib/posixtm.c: Likewise.
56404         * lib/posixtm.h: Likewise.
56405         * lib/posixver.c: Likewise.
56406         * lib/printf-frexp.c: Likewise.
56407         * lib/printf-frexp.h: Likewise.
56408         * lib/printf-frexpl.c: Likewise.
56409         * lib/printf-frexpl.h: Likewise.
56410         * lib/printf.c: Likewise.
56411         * lib/progname.c: Likewise.
56412         * lib/progname.h: Likewise.
56413         * lib/progreloc.c: Likewise.
56414         * lib/putenv.c: Likewise.
56415         * lib/quote.c: Likewise.
56416         * lib/quote.h: Likewise.
56417         * lib/quotearg.c: Likewise.
56418         * lib/quotearg.h: Likewise.
56419         * lib/raise.c: Likewise.
56420         * lib/readline.c: Likewise.
56421         * lib/readline.h: Likewise.
56422         * lib/readlink.c: Likewise.
56423         * lib/readtokens.c: Likewise.
56424         * lib/readtokens.h: Likewise.
56425         * lib/readtokens0.c: Likewise.
56426         * lib/readtokens0.h: Likewise.
56427         * lib/readutmp.c: Likewise.
56428         * lib/readutmp.h: Likewise.
56429         * lib/realloc.c: Likewise.
56430         * lib/relocwrapper.c: Likewise.
56431         * lib/rename-dest-slash.c: Likewise.
56432         * lib/rename.c: Likewise.
56433         * lib/rmdir.c: Likewise.
56434         * lib/rpmatch.c: Likewise.
56435         * lib/safe-read.c: Likewise.
56436         * lib/safe-read.h: Likewise.
56437         * lib/safe-write.c: Likewise.
56438         * lib/safe-write.h: Likewise.
56439         * lib/same-inode.h: Likewise.
56440         * lib/same.c: Likewise.
56441         * lib/same.h: Likewise.
56442         * lib/save-cwd.c: Likewise.
56443         * lib/save-cwd.h: Likewise.
56444         * lib/savedir.c: Likewise.
56445         * lib/savedir.h: Likewise.
56446         * lib/savewd.c: Likewise.
56447         * lib/savewd.h: Likewise.
56448         * lib/search.in.h: Likewise.
56449         * lib/setenv.c: Likewise.
56450         * lib/setenv.h: Likewise.
56451         * lib/settime.c: Likewise.
56452         * lib/sh-quote.c: Likewise.
56453         * lib/sh-quote.h: Likewise.
56454         * lib/sig2str.c: Likewise.
56455         * lib/sig2str.h: Likewise.
56456         * lib/signal.in.h: Likewise.
56457         * lib/signbitd.c: Likewise.
56458         * lib/signbitf.c: Likewise.
56459         * lib/signbitl.c: Likewise.
56460         * lib/sigprocmask.c: Likewise.
56461         * lib/sincosl.c: Likewise.
56462         * lib/sleep.c: Likewise.
56463         * lib/sprintf.c: Likewise.
56464         * lib/sqrtl.c: Likewise.
56465         * lib/stat-time.h: Likewise.
56466         * lib/stdio--.h: Likewise.
56467         * lib/stdio-safer.h: Likewise.
56468         * lib/stdlib--.h: Likewise.
56469         * lib/stdlib-safer.h: Likewise.
56470         * lib/stdlib.in.h: Likewise.
56471         * lib/stpcpy.c: Likewise.
56472         * lib/stpncpy.c: Likewise.
56473         * lib/strchrnul.c: Likewise.
56474         * lib/strcspn.c: Likewise.
56475         * lib/strerror.c: Likewise.
56476         * lib/strftime.c: Likewise.
56477         * lib/strftime.h: Likewise.
56478         * lib/striconveh.c: Likewise.
56479         * lib/striconveh.h: Likewise.
56480         * lib/striconveha.c: Likewise.
56481         * lib/striconveha.h: Likewise.
56482         * lib/stripslash.c: Likewise.
56483         * lib/strnlen1.c: Likewise.
56484         * lib/strnlen1.h: Likewise.
56485         * lib/strtod.c: Likewise.
56486         * lib/strtoimax.c: Likewise.
56487         * lib/strtok_r.c: Likewise.
56488         * lib/strtol.c: Likewise.
56489         * lib/strtoll.c: Likewise.
56490         * lib/strtoul.c: Likewise.
56491         * lib/strtoull.c: Likewise.
56492         * lib/sysexits.in.h: Likewise.
56493         * lib/tempname.c: Likewise.
56494         * lib/tempname.h: Likewise.
56495         * lib/timespec.h: Likewise.
56496         * lib/tls.c: Likewise.
56497         * lib/tls.h: Likewise.
56498         * lib/tmpdir.c: Likewise.
56499         * lib/tmpdir.h: Likewise.
56500         * lib/tmpfile-safer.c: Likewise.
56501         * lib/tmpfile.c: Likewise.
56502         * lib/trigl.c: Likewise.
56503         * lib/trigl.h: Likewise.
56504         * lib/trim.c: Likewise.
56505         * lib/trim.h: Likewise.
56506         * lib/trunc.c: Likewise.
56507         * lib/truncf.c: Likewise.
56508         * lib/truncl.c: Likewise.
56509         * lib/tsearch.c: Likewise.
56510         * lib/unicodeio.c: Likewise.
56511         * lib/unicodeio.h: Likewise.
56512         * lib/unistd--.h: Likewise.
56513         * lib/unistd-safer.h: Likewise.
56514         * lib/unistdio/ulc-fprintf.c: Likewise.
56515         * lib/unistdio/ulc-vfprintf.c: Likewise.
56516         * lib/unlinkdir.c: Likewise.
56517         * lib/unlinkdir.h: Likewise.
56518         * lib/unlocked-io.h: Likewise.
56519         * lib/unsetenv.c: Likewise.
56520         * lib/userspec.c: Likewise.
56521         * lib/utime.c: Likewise.
56522         * lib/utimecmp.c: Likewise.
56523         * lib/utimecmp.h: Likewise.
56524         * lib/utimens.c: Likewise.
56525         * lib/verify.h: Likewise.
56526         * lib/verror.c: Likewise.
56527         * lib/verror.h: Likewise.
56528         * lib/version-etc-fsf.c: Likewise.
56529         * lib/version-etc.c: Likewise.
56530         * lib/version-etc.h: Likewise.
56531         * lib/vfprintf.c: Likewise.
56532         * lib/vprintf.c: Likewise.
56533         * lib/vsprintf.c: Likewise.
56534         * lib/w32spawn.h: Likewise.
56535         * lib/wait-process.c: Likewise.
56536         * lib/wait-process.h: Likewise.
56537         * lib/wcwidth.c: Likewise.
56538         * lib/write-any-file.c: Likewise.
56539         * lib/xalloc-die.c: Likewise.
56540         * lib/xalloc.h: Likewise.
56541         * lib/xasprintf.c: Likewise.
56542         * lib/xgetcwd.c: Likewise.
56543         * lib/xgetcwd.h: Likewise.
56544         * lib/xgetdomainname.c: Likewise.
56545         * lib/xgetdomainname.h: Likewise.
56546         * lib/xgethostname.c: Likewise.
56547         * lib/xmalloc.c: Likewise.
56548         * lib/xmalloca.c: Likewise.
56549         * lib/xmalloca.h: Likewise.
56550         * lib/xmemcoll.c: Likewise.
56551         * lib/xnanosleep.c: Likewise.
56552         * lib/xreadlink.c: Likewise.
56553         * lib/xreadlink.h: Likewise.
56554         * lib/xsetenv.c: Likewise.
56555         * lib/xsetenv.h: Likewise.
56556         * lib/xstriconv.c: Likewise.
56557         * lib/xstriconv.h: Likewise.
56558         * lib/xstrndup.c: Likewise.
56559         * lib/xstrndup.h: Likewise.
56560         * lib/xstrtod.c: Likewise.
56561         * lib/xstrtod.h: Likewise.
56562         * lib/xstrtol-error.c: Likewise.
56563         * lib/xstrtol.c: Likewise.
56564         * lib/xstrtol.h: Likewise.
56565         * lib/xtime.h: Likewise.
56566         * lib/xvasprintf.c: Likewise.
56567         * lib/xvasprintf.h: Likewise.
56568         * lib/yesno.c: Likewise.
56569         * lib/yesno.h: Likewise.
56570         * posix-modules: Likewise.
56571         * tests/test-alloca-opt.c: Likewise.
56572         * tests/test-arcfour.c: Likewise.
56573         * tests/test-arctwo.c: Likewise.
56574         * tests/test-argmatch.c: Likewise.
56575         * tests/test-argp-2.sh: Likewise.
56576         * tests/test-argp.c: Likewise.
56577         * tests/test-arpa_inet.c: Likewise.
56578         * tests/test-array_list.c: Likewise.
56579         * tests/test-array_oset.c: Likewise.
56580         * tests/test-atexit.c: Likewise.
56581         * tests/test-avltree_list.c: Likewise.
56582         * tests/test-avltree_oset.c: Likewise.
56583         * tests/test-avltreehash_list.c: Likewise.
56584         * tests/test-base64.c: Likewise.
56585         * tests/test-binary-io.c: Likewise.
56586         * tests/test-byteswap.c: Likewise.
56587         * tests/test-c-ctype.c: Likewise.
56588         * tests/test-c-strcasecmp.c: Likewise.
56589         * tests/test-c-strcasestr.c: Likewise.
56590         * tests/test-c-strncasecmp.c: Likewise.
56591         * tests/test-c-strstr.c: Likewise.
56592         * tests/test-canonicalize-lgpl.c: Likewise.
56593         * tests/test-canonicalize.c: Likewise.
56594         * tests/test-carray_list.c: Likewise.
56595         * tests/test-ceilf.c: Likewise.
56596         * tests/test-ceill.c: Likewise.
56597         * tests/test-count-one-bits.c: Likewise.
56598         * tests/test-crc.c: Likewise.
56599         * tests/test-dirname.c: Likewise.
56600         * tests/test-fbufmode.c: Likewise.
56601         * tests/test-fcntl.c: Likewise.
56602         * tests/test-fflush.c: Likewise.
56603         * tests/test-floorf.c: Likewise.
56604         * tests/test-floorl.c: Likewise.
56605         * tests/test-fopen.c: Likewise.
56606         * tests/test-fprintf-posix.c: Likewise.
56607         * tests/test-fprintf-posix.h: Likewise.
56608         * tests/test-fpurge.c: Likewise.
56609         * tests/test-freadable.c: Likewise.
56610         * tests/test-freadahead.c: Likewise.
56611         * tests/test-freading.c: Likewise.
56612         * tests/test-freopen.c: Likewise.
56613         * tests/test-frexp.c: Likewise.
56614         * tests/test-frexpl.c: Likewise.
56615         * tests/test-fseek.c: Likewise.
56616         * tests/test-fseeko.c: Likewise.
56617         * tests/test-fseterr.c: Likewise.
56618         * tests/test-fstrcmp.c: Likewise.
56619         * tests/test-ftell.c: Likewise.
56620         * tests/test-ftello.c: Likewise.
56621         * tests/test-fwritable.c: Likewise.
56622         * tests/test-fwriting.c: Likewise.
56623         * tests/test-getaddrinfo.c: Likewise.
56624         * tests/test-getpass.c: Likewise.
56625         * tests/test-gettimeofday.c: Likewise.
56626         * tests/test-hmac-md5.c: Likewise.
56627         * tests/test-hmac-sha1.c: Likewise.
56628         * tests/test-iconv.c: Likewise.
56629         * tests/test-iconvme.c: Likewise.
56630         * tests/test-inttypes.c: Likewise.
56631         * tests/test-isnan.c: Likewise.
56632         * tests/test-isnanf.c: Likewise.
56633         * tests/test-isnanl-nolibm.c: Likewise.
56634         * tests/test-isnanl.c: Likewise.
56635         * tests/test-isnanl.h: Likewise.
56636         * tests/test-ldexpl.c: Likewise.
56637         * tests/test-linked_list.c: Likewise.
56638         * tests/test-linkedhash_list.c: Likewise.
56639         * tests/test-locale.c: Likewise.
56640         * tests/test-localename.c: Likewise.
56641         * tests/test-lock.c: Likewise.
56642         * tests/test-lseek.c: Likewise.
56643         * tests/test-malloca.c: Likewise.
56644         * tests/test-math.c: Likewise.
56645         * tests/test-mbscasecmp.c: Likewise.
56646         * tests/test-mbscasestr1.c: Likewise.
56647         * tests/test-mbscasestr2.c: Likewise.
56648         * tests/test-mbscasestr3.c: Likewise.
56649         * tests/test-mbscasestr4.c: Likewise.
56650         * tests/test-mbschr.c: Likewise.
56651         * tests/test-mbscspn.c: Likewise.
56652         * tests/test-mbsncasecmp.c: Likewise.
56653         * tests/test-mbspbrk.c: Likewise.
56654         * tests/test-mbspcasecmp.c: Likewise.
56655         * tests/test-mbsrchr.c: Likewise.
56656         * tests/test-mbsspn.c: Likewise.
56657         * tests/test-mbsstr1.c: Likewise.
56658         * tests/test-mbsstr2.c: Likewise.
56659         * tests/test-mbsstr3.c: Likewise.
56660         * tests/test-md5.c: Likewise.
56661         * tests/test-memmem.c: Likewise.
56662         * tests/test-netinet_in.c: Likewise.
56663         * tests/test-open.c: Likewise.
56664         * tests/test-printf-frexp.c: Likewise.
56665         * tests/test-printf-frexpl.c: Likewise.
56666         * tests/test-printf-posix.c: Likewise.
56667         * tests/test-printf-posix.h: Likewise.
56668         * tests/test-rbtree_list.c: Likewise.
56669         * tests/test-rbtree_oset.c: Likewise.
56670         * tests/test-rbtreehash_list.c: Likewise.
56671         * tests/test-read-file.c: Likewise.
56672         * tests/test-rijndael.c: Likewise.
56673         * tests/test-search.c: Likewise.
56674         * tests/test-signbit.c: Likewise.
56675         * tests/test-sleep.c: Likewise.
56676         * tests/test-snprintf-posix.c: Likewise.
56677         * tests/test-snprintf-posix.h: Likewise.
56678         * tests/test-snprintf.c: Likewise.
56679         * tests/test-sprintf-posix.c: Likewise.
56680         * tests/test-sprintf-posix.h: Likewise.
56681         * tests/test-stat-time.c: Likewise.
56682         * tests/test-stdbool.c: Likewise.
56683         * tests/test-stdint.c: Likewise.
56684         * tests/test-stdio.c: Likewise.
56685         * tests/test-stdlib.c: Likewise.
56686         * tests/test-stpncpy.c: Likewise.
56687         * tests/test-strcasestr.c: Likewise.
56688         * tests/test-striconv.c: Likewise.
56689         * tests/test-striconveh.c: Likewise.
56690         * tests/test-striconveha.c: Likewise.
56691         * tests/test-string.c: Likewise.
56692         * tests/test-sys_select.c: Likewise.
56693         * tests/test-sys_socket.c: Likewise.
56694         * tests/test-sys_stat.c: Likewise.
56695         * tests/test-sys_time.c: Likewise.
56696         * tests/test-sysexits.c: Likewise.
56697         * tests/test-time.c: Likewise.
56698         * tests/test-tls.c: Likewise.
56699         * tests/test-trunc.c: Likewise.
56700         * tests/test-truncf.c: Likewise.
56701         * tests/test-truncl.c: Likewise.
56702         * tests/test-unistd.c: Likewise.
56703         * tests/test-vasnprintf-posix.c: Likewise.
56704         * tests/test-vasnprintf-posix2.c: Likewise.
56705         * tests/test-vasnprintf.c: Likewise.
56706         * tests/test-vasprintf-posix.c: Likewise.
56707         * tests/test-vasprintf.c: Likewise.
56708         * tests/test-verify.c: Likewise.
56709         * tests/test-vfprintf-posix.c: Likewise.
56710         * tests/test-vprintf-posix.c: Likewise.
56711         * tests/test-vsnprintf-posix.c: Likewise.
56712         * tests/test-vsnprintf.c: Likewise.
56713         * tests/test-vsprintf-posix.c: Likewise.
56714         * tests/test-wchar.c: Likewise.
56715         * tests/test-wctype.c: Likewise.
56716         * tests/test-wcwidth.c: Likewise.
56717         * tests/test-xstrtol.c: Likewise.
56718         * tests/test-xvasprintf.c: Likewise.
56719         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
56720         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
56721         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
56722         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
56723         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
56724         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
56725         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
56726         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
56727         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
56728         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
56729         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
56730         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
56731         * tests/uniname/test-uninames.c: Likewise.
56732         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
56733         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
56734         * tests/unistdio/test-u16-printf1.h: Likewise.
56735         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
56736         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
56737         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
56738         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
56739         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
56740         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
56741         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
56742         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
56743         * tests/unistdio/test-u32-printf1.h: Likewise.
56744         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
56745         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
56746         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
56747         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
56748         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
56749         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
56750         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
56751         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
56752         * tests/unistdio/test-u8-printf1.h: Likewise.
56753         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
56754         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
56755         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
56756         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
56757         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
56758         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
56759         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
56760         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
56761         * tests/unistdio/test-ulc-printf1.h: Likewise.
56762         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
56763         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
56764         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
56765         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
56766         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
56767         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
56768         * tests/uniwidth/test-u16-strwidth.c: Likewise.
56769         * tests/uniwidth/test-u16-width.c: Likewise.
56770         * tests/uniwidth/test-u32-strwidth.c: Likewise.
56771         * tests/uniwidth/test-u32-width.c: Likewise.
56772         * tests/uniwidth/test-u8-strwidth.c: Likewise.
56773         * tests/uniwidth/test-u8-width.c: Likewise.
56774         * tests/uniwidth/test-uc_width.c: Likewise.
56775         * config/srclist-update: Likewise.
56776         (fixlicense): Update to GPLv3+.
56777
56778         Change copyright notice from LGPLv2.1+ to LGPLv3+.
56779         * tests/test-tsearch.c: Change copyright notice.
56780
56781         Change copyright notice from LGPLv2.0+ to LGPLv3+.
56782         * lib/c-strcaseeq.h: Change copyright notice.
56783         * lib/streq.h: Likewise.
56784         * lib/uniconv.h: Likewise.
56785         * lib/uniconv/u-conv-from-enc.h: Likewise.
56786         * lib/uniconv/u-conv-to-enc.h: Likewise.
56787         * lib/uniconv/u-strconv-from-enc.h: Likewise.
56788         * lib/uniconv/u-strconv-to-enc.h: Likewise.
56789         * lib/uniconv/u16-conv-from-enc.c: Likewise.
56790         * lib/uniconv/u16-conv-to-enc.c: Likewise.
56791         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
56792         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
56793         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
56794         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
56795         * lib/uniconv/u32-conv-from-enc.c: Likewise.
56796         * lib/uniconv/u32-conv-to-enc.c: Likewise.
56797         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
56798         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
56799         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
56800         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
56801         * lib/uniconv/u8-conv-from-enc.c: Likewise.
56802         * lib/uniconv/u8-conv-to-enc.c: Likewise.
56803         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
56804         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
56805         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
56806         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
56807         * lib/uniname.h: Likewise.
56808         * lib/uniname/uniname.c: Likewise.
56809         * lib/unistdio.h: Likewise.
56810         * lib/unistdio/u-asnprintf.h: Likewise.
56811         * lib/unistdio/u-asprintf.h: Likewise.
56812         * lib/unistdio/u-printf-args.c: Likewise.
56813         * lib/unistdio/u-printf-args.h: Likewise.
56814         * lib/unistdio/u-printf-parse.h: Likewise.
56815         * lib/unistdio/u-snprintf.h: Likewise.
56816         * lib/unistdio/u-sprintf.h: Likewise.
56817         * lib/unistdio/u-vasprintf.h: Likewise.
56818         * lib/unistdio/u-vsnprintf.h: Likewise.
56819         * lib/unistdio/u-vsprintf.h: Likewise.
56820         * lib/unistdio/u16-asnprintf.c: Likewise.
56821         * lib/unistdio/u16-asprintf.c: Likewise.
56822         * lib/unistdio/u16-printf-parse.c: Likewise.
56823         * lib/unistdio/u16-snprintf.c: Likewise.
56824         * lib/unistdio/u16-sprintf.c: Likewise.
56825         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
56826         * lib/unistdio/u16-u16-asprintf.c: Likewise.
56827         * lib/unistdio/u16-u16-snprintf.c: Likewise.
56828         * lib/unistdio/u16-u16-sprintf.c: Likewise.
56829         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
56830         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
56831         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
56832         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
56833         * lib/unistdio/u16-vasnprintf.c: Likewise.
56834         * lib/unistdio/u16-vasprintf.c: Likewise.
56835         * lib/unistdio/u16-vsnprintf.c: Likewise.
56836         * lib/unistdio/u16-vsprintf.c: Likewise.
56837         * lib/unistdio/u32-asnprintf.c: Likewise.
56838         * lib/unistdio/u32-asprintf.c: Likewise.
56839         * lib/unistdio/u32-printf-parse.c: Likewise.
56840         * lib/unistdio/u32-snprintf.c: Likewise.
56841         * lib/unistdio/u32-sprintf.c: Likewise.
56842         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
56843         * lib/unistdio/u32-u32-asprintf.c: Likewise.
56844         * lib/unistdio/u32-u32-snprintf.c: Likewise.
56845         * lib/unistdio/u32-u32-sprintf.c: Likewise.
56846         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
56847         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
56848         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
56849         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
56850         * lib/unistdio/u32-vasnprintf.c: Likewise.
56851         * lib/unistdio/u32-vasprintf.c: Likewise.
56852         * lib/unistdio/u32-vsnprintf.c: Likewise.
56853         * lib/unistdio/u32-vsprintf.c: Likewise.
56854         * lib/unistdio/u8-asnprintf.c: Likewise.
56855         * lib/unistdio/u8-asprintf.c: Likewise.
56856         * lib/unistdio/u8-printf-parse.c: Likewise.
56857         * lib/unistdio/u8-snprintf.c: Likewise.
56858         * lib/unistdio/u8-sprintf.c: Likewise.
56859         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
56860         * lib/unistdio/u8-u8-asprintf.c: Likewise.
56861         * lib/unistdio/u8-u8-snprintf.c: Likewise.
56862         * lib/unistdio/u8-u8-sprintf.c: Likewise.
56863         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
56864         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
56865         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
56866         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
56867         * lib/unistdio/u8-vasnprintf.c: Likewise.
56868         * lib/unistdio/u8-vasprintf.c: Likewise.
56869         * lib/unistdio/u8-vsnprintf.c: Likewise.
56870         * lib/unistdio/u8-vsprintf.c: Likewise.
56871         * lib/unistdio/ulc-asnprintf.c: Likewise.
56872         * lib/unistdio/ulc-asprintf.c: Likewise.
56873         * lib/unistdio/ulc-printf-parse.c: Likewise.
56874         * lib/unistdio/ulc-snprintf.c: Likewise.
56875         * lib/unistdio/ulc-sprintf.c: Likewise.
56876         * lib/unistdio/ulc-vasnprintf.c: Likewise.
56877         * lib/unistdio/ulc-vasprintf.c: Likewise.
56878         * lib/unistdio/ulc-vsnprintf.c: Likewise.
56879         * lib/unistdio/ulc-vsprintf.c: Likewise.
56880         * lib/unistr.h: Likewise.
56881         * lib/unistr/u-cpy-alloc.h: Likewise.
56882         * lib/unistr/u-cpy.h: Likewise.
56883         * lib/unistr/u-endswith.h: Likewise.
56884         * lib/unistr/u-move.h: Likewise.
56885         * lib/unistr/u-set.h: Likewise.
56886         * lib/unistr/u-startswith.h: Likewise.
56887         * lib/unistr/u-stpcpy.h: Likewise.
56888         * lib/unistr/u-stpncpy.h: Likewise.
56889         * lib/unistr/u-strcat.h: Likewise.
56890         * lib/unistr/u-strcpy.h: Likewise.
56891         * lib/unistr/u-strcspn.h: Likewise.
56892         * lib/unistr/u-strdup.h: Likewise.
56893         * lib/unistr/u-strlen.h: Likewise.
56894         * lib/unistr/u-strncat.h: Likewise.
56895         * lib/unistr/u-strncpy.h: Likewise.
56896         * lib/unistr/u-strnlen.h: Likewise.
56897         * lib/unistr/u-strpbrk.h: Likewise.
56898         * lib/unistr/u-strspn.h: Likewise.
56899         * lib/unistr/u-strstr.h: Likewise.
56900         * lib/unistr/u-strtok.h: Likewise.
56901         * lib/unistr/u16-check.c: Likewise.
56902         * lib/unistr/u16-chr.c: Likewise.
56903         * lib/unistr/u16-cmp.c: Likewise.
56904         * lib/unistr/u16-cpy-alloc.c: Likewise.
56905         * lib/unistr/u16-cpy.c: Likewise.
56906         * lib/unistr/u16-endswith.c: Likewise.
56907         * lib/unistr/u16-mblen.c: Likewise.
56908         * lib/unistr/u16-mbsnlen.c: Likewise.
56909         * lib/unistr/u16-mbtouc-aux.c: Likewise.
56910         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
56911         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
56912         * lib/unistr/u16-mbtouc.c: Likewise.
56913         * lib/unistr/u16-mbtoucr.c: Likewise.
56914         * lib/unistr/u16-move.c: Likewise.
56915         * lib/unistr/u16-next.c: Likewise.
56916         * lib/unistr/u16-prev.c: Likewise.
56917         * lib/unistr/u16-set.c: Likewise.
56918         * lib/unistr/u16-startswith.c: Likewise.
56919         * lib/unistr/u16-stpcpy.c: Likewise.
56920         * lib/unistr/u16-stpncpy.c: Likewise.
56921         * lib/unistr/u16-strcat.c: Likewise.
56922         * lib/unistr/u16-strchr.c: Likewise.
56923         * lib/unistr/u16-strcmp.c: Likewise.
56924         * lib/unistr/u16-strcpy.c: Likewise.
56925         * lib/unistr/u16-strcspn.c: Likewise.
56926         * lib/unistr/u16-strdup.c: Likewise.
56927         * lib/unistr/u16-strlen.c: Likewise.
56928         * lib/unistr/u16-strmblen.c: Likewise.
56929         * lib/unistr/u16-strmbtouc.c: Likewise.
56930         * lib/unistr/u16-strncat.c: Likewise.
56931         * lib/unistr/u16-strncmp.c: Likewise.
56932         * lib/unistr/u16-strncpy.c: Likewise.
56933         * lib/unistr/u16-strnlen.c: Likewise.
56934         * lib/unistr/u16-strpbrk.c: Likewise.
56935         * lib/unistr/u16-strrchr.c: Likewise.
56936         * lib/unistr/u16-strspn.c: Likewise.
56937         * lib/unistr/u16-strstr.c: Likewise.
56938         * lib/unistr/u16-strtok.c: Likewise.
56939         * lib/unistr/u16-to-u32.c: Likewise.
56940         * lib/unistr/u16-to-u8.c: Likewise.
56941         * lib/unistr/u16-uctomb-aux.c: Likewise.
56942         * lib/unistr/u16-uctomb.c: Likewise.
56943         * lib/unistr/u32-check.c: Likewise.
56944         * lib/unistr/u32-chr.c: Likewise.
56945         * lib/unistr/u32-cmp.c: Likewise.
56946         * lib/unistr/u32-cpy-alloc.c: Likewise.
56947         * lib/unistr/u32-cpy.c: Likewise.
56948         * lib/unistr/u32-endswith.c: Likewise.
56949         * lib/unistr/u32-mblen.c: Likewise.
56950         * lib/unistr/u32-mbsnlen.c: Likewise.
56951         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
56952         * lib/unistr/u32-mbtouc.c: Likewise.
56953         * lib/unistr/u32-mbtoucr.c: Likewise.
56954         * lib/unistr/u32-move.c: Likewise.
56955         * lib/unistr/u32-next.c: Likewise.
56956         * lib/unistr/u32-prev.c: Likewise.
56957         * lib/unistr/u32-set.c: Likewise.
56958         * lib/unistr/u32-startswith.c: Likewise.
56959         * lib/unistr/u32-stpcpy.c: Likewise.
56960         * lib/unistr/u32-stpncpy.c: Likewise.
56961         * lib/unistr/u32-strcat.c: Likewise.
56962         * lib/unistr/u32-strchr.c: Likewise.
56963         * lib/unistr/u32-strcmp.c: Likewise.
56964         * lib/unistr/u32-strcpy.c: Likewise.
56965         * lib/unistr/u32-strcspn.c: Likewise.
56966         * lib/unistr/u32-strdup.c: Likewise.
56967         * lib/unistr/u32-strlen.c: Likewise.
56968         * lib/unistr/u32-strmblen.c: Likewise.
56969         * lib/unistr/u32-strmbtouc.c: Likewise.
56970         * lib/unistr/u32-strncat.c: Likewise.
56971         * lib/unistr/u32-strncmp.c: Likewise.
56972         * lib/unistr/u32-strncpy.c: Likewise.
56973         * lib/unistr/u32-strnlen.c: Likewise.
56974         * lib/unistr/u32-strpbrk.c: Likewise.
56975         * lib/unistr/u32-strrchr.c: Likewise.
56976         * lib/unistr/u32-strspn.c: Likewise.
56977         * lib/unistr/u32-strstr.c: Likewise.
56978         * lib/unistr/u32-strtok.c: Likewise.
56979         * lib/unistr/u32-to-u16.c: Likewise.
56980         * lib/unistr/u32-to-u8.c: Likewise.
56981         * lib/unistr/u32-uctomb.c: Likewise.
56982         * lib/unistr/u8-check.c: Likewise.
56983         * lib/unistr/u8-chr.c: Likewise.
56984         * lib/unistr/u8-cmp.c: Likewise.
56985         * lib/unistr/u8-cpy-alloc.c: Likewise.
56986         * lib/unistr/u8-cpy.c: Likewise.
56987         * lib/unistr/u8-endswith.c: Likewise.
56988         * lib/unistr/u8-mblen.c: Likewise.
56989         * lib/unistr/u8-mbsnlen.c: Likewise.
56990         * lib/unistr/u8-mbtouc-aux.c: Likewise.
56991         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
56992         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
56993         * lib/unistr/u8-mbtouc.c: Likewise.
56994         * lib/unistr/u8-mbtoucr.c: Likewise.
56995         * lib/unistr/u8-move.c: Likewise.
56996         * lib/unistr/u8-next.c: Likewise.
56997         * lib/unistr/u8-prev.c: Likewise.
56998         * lib/unistr/u8-set.c: Likewise.
56999         * lib/unistr/u8-startswith.c: Likewise.
57000         * lib/unistr/u8-stpcpy.c: Likewise.
57001         * lib/unistr/u8-stpncpy.c: Likewise.
57002         * lib/unistr/u8-strcat.c: Likewise.
57003         * lib/unistr/u8-strchr.c: Likewise.
57004         * lib/unistr/u8-strcmp.c: Likewise.
57005         * lib/unistr/u8-strcpy.c: Likewise.
57006         * lib/unistr/u8-strcspn.c: Likewise.
57007         * lib/unistr/u8-strdup.c: Likewise.
57008         * lib/unistr/u8-strlen.c: Likewise.
57009         * lib/unistr/u8-strmblen.c: Likewise.
57010         * lib/unistr/u8-strmbtouc.c: Likewise.
57011         * lib/unistr/u8-strncat.c: Likewise.
57012         * lib/unistr/u8-strncmp.c: Likewise.
57013         * lib/unistr/u8-strncpy.c: Likewise.
57014         * lib/unistr/u8-strnlen.c: Likewise.
57015         * lib/unistr/u8-strpbrk.c: Likewise.
57016         * lib/unistr/u8-strrchr.c: Likewise.
57017         * lib/unistr/u8-strspn.c: Likewise.
57018         * lib/unistr/u8-strstr.c: Likewise.
57019         * lib/unistr/u8-strtok.c: Likewise.
57020         * lib/unistr/u8-to-u16.c: Likewise.
57021         * lib/unistr/u8-to-u32.c: Likewise.
57022         * lib/unistr/u8-uctomb-aux.c: Likewise.
57023         * lib/unistr/u8-uctomb.c: Likewise.
57024         * lib/unitypes.h: Likewise.
57025         * lib/uniwidth.h: Likewise.
57026         * lib/uniwidth/cjk.h: Likewise.
57027         * lib/uniwidth/u16-strwidth.c: Likewise.
57028         * lib/uniwidth/u16-width.c: Likewise.
57029         * lib/uniwidth/u32-strwidth.c: Likewise.
57030         * lib/uniwidth/u32-width.c: Likewise.
57031         * lib/uniwidth/u8-strwidth.c: Likewise.
57032         * lib/uniwidth/u8-width.c: Likewise.
57033         * lib/uniwidth/width.c: Likewise.
57034
57035 2007-10-07  Bruno Haible  <bruno@clisp.org>
57036
57037         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
57038         The file is still under LGPL (see modules/inttypes).
57039
57040 2007-10-06  Bruno Haible  <bruno@clisp.org>
57041
57042         * modules/trunc (Dependencies): Add 'extensions'.
57043         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
57044         Reported by Ben Pfaff <blp@gnu.org>.
57045
57046 2007-10-06  Bruno Haible  <bruno@clisp.org>
57047
57048         * modules/freopen-tests: New file.
57049         * tests/test-freopen.c: New file.
57050
57051         * modules/fopen-tests: New file.
57052         * tests/test-fopen.c: New file.
57053
57054         * modules/fopen: New file.
57055         * lib/fopen.c: New file.
57056         * m4/fopen.m4: New file.
57057         * modules/freopen: New file.
57058         * lib/freopen.c: New file.
57059         * m4/freopen.m4: New file.
57060         * lib/stdio.in.h (fopen, freopen): New declarations.
57061         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
57062         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
57063         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
57064         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
57065         * doc/functions/fopen.texi: Mention the 'fopen' module.
57066         * doc/functions/freopen.texi: Mention the 'freopen' module.
57067
57068 2007-10-06  Bruno Haible  <bruno@clisp.org>
57069
57070         * modules/open-tests: New file.
57071         * tests/test-open.c: New file.
57072
57073         * modules/open: New file.
57074         * lib/open.c: New file.
57075         * m4/open.m4: New file.
57076         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
57077         lib/open.c does.
57078         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
57079         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
57080         macros.
57081         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
57082         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
57083         REPLACE_OPEN.
57084         * doc/functions/open.texi: Mention the 'open' module.
57085
57086 2007-10-04  Bruno Haible  <bruno@clisp.org>
57087
57088         * modules/ceill-tests: New file.
57089         * tests/test-ceill.c: New file.
57090
57091         * modules/ceill: New file.
57092         * lib/ceill.c: Replace entire file.
57093         * m4/ceill.m4: New file.
57094         * lib/math.in.h (ceill): Replace declaration.
57095         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
57096         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
57097         * doc/functions/ceill.texi: Mention the 'ceill' module.
57098         * modules/mathl (Files): Remove lib/ceill.c.
57099         (Depends-on): Add ceill.
57100
57101 2007-10-04  Bruno Haible  <bruno@clisp.org>
57102
57103         * modules/ceilf-tests: New file.
57104         * tests/test-ceilf.c: New file.
57105
57106         * modules/ceilf: New file.
57107         * lib/ceil.c: New file.
57108         * lib/ceilf.c: New file.
57109         * m4/ceilf.m4: New file.
57110         * lib/math.in.h (ceilf): New declaration.
57111         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
57112         HAVE_DECL_CEILF.
57113         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
57114         HAVE_DECL_CEILF.
57115         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
57116
57117 2007-10-04  Bruno Haible  <bruno@clisp.org>
57118
57119         * modules/floorl-tests: New file.
57120         * tests/test-floorl.c: New file.
57121
57122         * modules/floorl: New file.
57123         * lib/floorl.c: Replace entire file.
57124         * m4/floorl.m4: New file.
57125         * lib/math.in.h (floorl): Replace declaration.
57126         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
57127         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
57128         * doc/functions/floorl.texi: Mention the 'floorl' module.
57129         * modules/mathl (Files): Remove lib/floorl.c.
57130         (Depends-on): Add floorl.
57131
57132 2007-10-04  Bruno Haible  <bruno@clisp.org>
57133
57134         * modules/floorf-tests: New file.
57135         * tests/test-floorf.c: New file.
57136
57137         * modules/floorf: New file.
57138         * lib/floor.c: New file.
57139         * lib/floorf.c: New file.
57140         * m4/floorf.m4: New file.
57141         * lib/math.in.h (floorf): New declaration.
57142         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
57143         HAVE_DECL_FLOORF.
57144         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
57145         HAVE_DECL_FLOORF.
57146         * doc/functions/floorf.texi: Mention the 'floorf' module.
57147
57148 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
57149             Bruno Haible  <bruno@clisp.org>
57150
57151         Advertise for the Git server instead of the CVS server.
57152         * doc/gnulib-intro.texi (Steady Development): Mention the Git
57153         repository instead of the CVS one.
57154         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
57155         about all VCS systems generically.
57156         * doc/gnulib.texi (Introduction): Capitalize `Git'.
57157
57158 2007-10-04  Bruno Haible  <bruno@clisp.org>
57159
57160         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
57161         means.
57162         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
57163
57164 2007-10-04  Bruno Haible  <bruno@clisp.org>
57165
57166         * modules/truncl-tests: New file.
57167         * tests/test-truncl.c: New file.
57168
57169         * modules/truncl: New file.
57170         * lib/truncl.c: New file.
57171         * m4/truncl.m4: New file.
57172         * lib/math.in.h (truncl): New declaration.
57173         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
57174         HAVE_DECL_TRUNCL.
57175         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
57176         HAVE_DECL_TRUNCL.
57177         * doc/functions/truncl.texi: Mention the 'truncl' module.
57178
57179 2007-10-04  Bruno Haible  <bruno@clisp.org>
57180
57181         * modules/truncf-tests: New file.
57182         * tests/test-truncf.c: New file.
57183
57184         * modules/truncf: New file.
57185         * lib/trunc.c: Make paramerizable through USE_* macros.
57186         * lib/truncf.c: New file.
57187         * m4/truncf.m4: New file.
57188         * lib/math.in.h (truncf): New declaration.
57189         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
57190         HAVE_DECL_TRUNCF.
57191         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
57192         HAVE_DECL_TRUNCF.
57193         * doc/functions/truncf.texi: Mention the 'truncf' module.
57194
57195 2007-10-03  Bruno Haible  <bruno@clisp.org>
57196
57197         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
57198         augmentation also for tests modules.
57199         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
57200         * modules/atexit-tests (Makefile.am): Likewise.
57201         * modules/binary-io-tests (Makefile.am): Likewise.
57202         * modules/c-strcase-tests (Makefile.am): Likewise.
57203         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
57204         * modules/canonicalize-tests (Makefile.am): Likewise.
57205         * modules/closein-tests (Makefile.am): Likewise.
57206         * modules/fprintf-posix-tests (Makefile.am): Likewise.
57207         * modules/freadahead-tests (Makefile.am): Likewise.
57208         * modules/fseek-tests (Makefile.am): Likewise.
57209         * modules/fseeko-tests (Makefile.am): Likewise.
57210         * modules/ftell-tests (Makefile.am): Likewise.
57211         * modules/ftello-tests (Makefile.am): Likewise.
57212         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
57213         * modules/isnanl-tests (Makefile.am): Likewise.
57214         * modules/lseek-tests (Makefile.am): Likewise.
57215         * modules/mbscasecmp-tests (Makefile.am): Likewise.
57216         * modules/mbscasestr-tests (Makefile.am): Likewise.
57217         * modules/mbschr-tests (Makefile.am): Likewise.
57218         * modules/mbscspn-tests (Makefile.am): Likewise.
57219         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
57220         * modules/mbspbrk-tests (Makefile.am): Likewise.
57221         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
57222         * modules/mbsrchr-tests (Makefile.am): Likewise.
57223         * modules/mbsspn-tests (Makefile.am): Likewise.
57224         * modules/mbsstr-tests (Makefile.am): Likewise.
57225         * modules/printf-posix-tests (Makefile.am): Likewise.
57226         * modules/snprintf-posix-tests (Makefile.am): Likewise.
57227         * modules/sprintf-posix-tests (Makefile.am): Likewise.
57228         * modules/tsearch-tests (Makefile.am): Likewise.
57229         * modules/uniname/uniname-tests (Makefile.am): Likewise.
57230         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
57231         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
57232         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
57233         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
57234         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
57235         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
57236         * modules/vprintf-posix-tests (Makefile.am): Likewise.
57237         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
57238         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
57239         * modules/xstrtoimax-tests (Makefile.am): Likewise.
57240         * modules/xstrtol-tests (Makefile.am): Likewise.
57241         * modules/xstrtoumax-tests (Makefile.am): Likewise.
57242         * modules/yesno-tests (Makefile.am): Likewise.
57243
57244 2007-10-03  Bruno Haible  <bruno@clisp.org>
57245
57246         * modules/trunc-tests: New file.
57247         * tests/test-trunc.c: New file.
57248
57249         * modules/trunc: New file.
57250         * lib/trunc.c: New file.
57251         * m4/trunc.m4: New file.
57252         * lib/math.in.h (trunc): New declaration.
57253         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
57254         HAVE_DECL_TRUNC.
57255         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
57256         HAVE_DECL_TRUNC.
57257         * doc/functions/trunc.texi: Mention the 'trunc' module.
57258
57259 2007-10-03  Bruno Haible  <bruno@clisp.org>
57260
57261         * tests/test-fpending.c: New file, mostly copied
57262         from coreutils/lib/t-fpending.c.
57263         * modules/fpending-tests: New file.
57264
57265 2007-10-03  Bruno Haible  <bruno@clisp.org>
57266
57267         Port the stdio extensions to QNX (untested).
57268         * lib/fseterr.c (fseterr): Add support for QNX.
57269         * lib/fbufmode.c (fbufmode): Likewise.
57270         * lib/freadable.c (freadable): Likewise.
57271         * lib/fwritable.c (fwritable): Likewise.
57272         * lib/freading.c (freading): Likewise.
57273         * lib/fwriting.c (fwriting): Likewise.
57274         * lib/freadahead.c (freadahed): Likewise.
57275         * lib/fpurge.c (fpurge): Likewise.
57276         * lib/fseeko.c (rpl_fseeko): Likewise.
57277
57278 2007-10-03  Bruno Haible  <bruno@clisp.org>
57279             Jim Meyering  <jim@meyering.net>
57280             Eric Blake  <ebb9@byu.net>
57281
57282         * doc/relocatable.texi: Use @command instead of @program.
57283
57284 2007-10-02  Jim Meyering  <jim@meyering.net>
57285
57286         Perform one more "_.h" -> ".in.h" substitution.
57287         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
57288         instead of unistd_.h here, too.
57289
57290 2007-10-01  Bruno Haible  <bruno@clisp.org>
57291
57292         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
57293         Needed for the alloca-opt module.
57294
57295 2007-09-30  Bruno Haible  <bruno@clisp.org>
57296
57297         * lib/alloca.in.h: Renamed from lib/alloca_.h.
57298         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
57299         alloca_.h.
57300         * lib/argz.in.h: Renamed from lib/argz_.h.
57301         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
57302         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
57303         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
57304         byteswap_.h.
57305         * lib/dirent.in.h: Renamed from lib/dirent_.h.
57306         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
57307         dirent_.h.
57308         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
57309         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
57310         fcntl_.h.
57311         * lib/float.in.h: Renamed from lib/float_.h.
57312         * modules/float (Files, Makefile.am): Use float.in.h instead of
57313         float_.h.
57314         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
57315         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
57316         fnmatch_.h.
57317         * lib/getopt.in.h: Renamed from lib/getopt_.h.
57318         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
57319         getopt_.h.
57320         * lib/glob.in.h: Renamed from lib/glob_.h.
57321         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
57322         * lib/iconv.in.h: Renamed from lib/iconv_.h.
57323         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
57324         iconv_.h.
57325         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
57326         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
57327         inttypes_.h.
57328         * lib/locale.in.h: Renamed from lib/locale_.h.
57329         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
57330         locale_.h.
57331         * lib/math.in.h: Renamed from lib/math_.h.
57332         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
57333         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
57334         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
57335         of netinet_in_.h. Add dependency.
57336         * lib/poll.in.h: Renamed from lib/poll_.h.
57337         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
57338         * lib/search.in.h: Renamed from lib/search_.h.
57339         * modules/search (Files, Makefile.am): Use search.in.h instead of
57340         search_.h.
57341         * lib/signal.in.h: Renamed from lib/signal_.h.
57342         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
57343         _signal.h.
57344         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
57345         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
57346         stdbool_.h.
57347         * lib/stdint.in.h: Renamed from lib/stdint_.h.
57348         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
57349         stdint_.h.
57350         * lib/stdio.in.h: Renamed from lib/stdio_.h.
57351         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
57352         stdio_.h.
57353         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
57354         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
57355         stdlib_.h.
57356         * lib/string.in.h: Renamed from lib/string_.h.
57357         * modules/string (Files, Makefile.am): Use string.in.h instead of
57358         string_.h.
57359         * doc/gnulib-tool.texi (Initial import): Update.
57360         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
57361         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
57362         of sys_select_.h. Add dependency.
57363         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
57364         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
57365         of sys_socket_.h.
57366         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
57367         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
57368         sys_stat_.h.
57369         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
57370         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
57371         sys_time_.h.
57372         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
57373         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
57374         sysexits_.h.
57375         * lib/time.in.h: Renamed from lib/time_.h.
57376         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
57377         * lib/unistd.in.h: Renamed from lib/unistd_.h.
57378         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
57379         unistd_.h.
57380         * lib/wchar.in.h: Renamed from lib/wchar_.h.
57381         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
57382         wchar_.h.
57383         * lib/wctype.in.h: Renamed from lib/wctype_.h.
57384         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
57385         wctype_.h.
57386         * build-aux/bootstrap (slurp): Update.
57387         * lib/.cppi-disable: Update.
57388
57389 2007-09-30  Bruno Haible  <bruno@clisp.org>
57390
57391         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
57392         Needed on BeOS.
57393
57394 2007-09-30  Bruno Haible  <bruno@clisp.org>
57395
57396         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
57397
57398 2007-09-29  Bruno Haible  <bruno@clisp.org>
57399
57400         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
57401
57402 2007-09-29  Bruno Haible  <bruno@clisp.org>
57403
57404         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
57405         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
57406         * build-aux/install-reloc: Compile also areadlink.c.
57407         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
57408
57409 2007-09-29  Bruno Haible  <bruno@clisp.org>
57410
57411         * gnulib-tool (func_emit_initmacro_done): Indentation.
57412
57413 2007-09-29  Bruno Haible  <bruno@clisp.org>
57414
57415         * README: Add CVS checkout update instructions.
57416         Info from Bob Proulx <bob@proulx.com>.
57417
57418 2007-09-28  Eric Blake  <ebb9@byu.net>
57419
57420         Provide move-if-change.
57421         * build-aux/move-if-change: New file, based on best practice
57422         rather than any canonical upstream location.
57423
57424 2007-09-28  Jim Meyering  <jim@meyering.net>
57425
57426         Fix canonicalize loop-detection corner case.
57427         Do not attempt to stat the symlink values stored via seen_triple.
57428         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
57429         on linux-2.6.18, (but not 2.6.22).
57430         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
57431         triple_compare.  The former compares dev,ino,filename, while the latter
57432         would actually stat dirname(filename) when dev and ino were equal.
57433         * lib/hash-triple.c: Install <string.h>.
57434         (STREQ): Define.
57435         (triple_compare_ino_str): New function.
57436         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
57437
57438 2007-09-28  Eric Blake  <ebb9@byu.net>
57439
57440         Enforce that AC_REPLACE_FUNCS files exist.
57441         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
57442         override check for typos.
57443
57444         Fix test-closein on Solaris 10.
57445         * tests/test-closein.c (main): Don't assume stdin can be inherited
57446         closed on all systems.
57447         * tests/test-closein.sh: Likewise.
57448         Reported by Piotr Tarnowski.
57449
57450 2007-09-28  Jim Meyering  <jim@meyering.net>
57451
57452         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
57453
57454 2007-09-27  Jim Meyering  <jim@meyering.net>
57455
57456         canonicalize: Avoid a false-positive cycle failure.
57457         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
57458         Sort.  Remove cycle-check.
57459         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
57460         not cycle-check.h.
57461         (seen_triple): New function.
57462         (canonicalize_filename_mode): Use it instead of cycle-check.
57463         * tests/test-canonicalize.c: Add a test for this bug.
57464         * tests/test-canonicalize.sh: Set up and run the test.
57465
57466         New module, file-set, from coreutils.
57467         * modules/file-set: Define it.
57468         * lib/file-set.c, lib/file-set.h: Implement.
57469
57470         New module, hash-triple, from coreutils.
57471         * modules/hash-triple: Define it.
57472         * lib/hash-triple.c, lib/hash-triple.h: Implement.
57473
57474 2007-09-25  Eric Blake  <ebb9@byu.net>
57475
57476         Fix strerror on Interix.
57477         * lib/string_.h (strerror): Declare replacement.
57478         * doc/functions/strerror.texi (strerror): Document the Interix
57479         shortcoming.
57480         * modules/string (Makefile.am): Support new hooks.
57481         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
57482         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
57483         gl_FUNC_STRERROR_SEPARATE.
57484         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
57485         * lib/strerror.c (rpl_strerror): Provide replacement.
57486         * modules/strerror (Depends-on): Add string.
57487         (configure.ac): Detect use of module.
57488         * tests/test-strerror.c: New file.
57489         * modules/strerror-tests: New test module.
57490         * modules/argp (Depends-on): Add strerror.
57491         * modules/error (Depends-on): Likewise.
57492         Reported by Martin Koeppe.
57493
57494 2007-09-24  Bruno Haible  <bruno@clisp.org>
57495
57496         * README: Update git instructions.
57497
57498 2007-09-24  Eric Blake  <ebb9@byu.net>
57499
57500         Revert fpending breakage from 2007-09-08.
57501         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
57502         __fpending.c.
57503
57504 2007-09-24  Jim Meyering  <jim@meyering.net>
57505
57506         filenamecat.c: Add a test.
57507         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
57508         showing how the function works when DIR is the empty string.
57509
57510 2007-09-21  Simon Josefsson  <simon@josefsson.org>
57511
57512         * tests/test-canonicalize.sh: Turn on executable bit.
57513
57514 2007-09-19  Eric Blake  <ebb9@byu.net>
57515
57516         * README: Update CVS instructions.
57517
57518 2007-09-18  Bruno Haible  <bruno@clisp.org>
57519
57520         * modules/areadlink: New file.
57521         * lib/areadlink.h (areadlink): New declaration.
57522         * lib/areadlink.c: New file, based on lib/xreadlink.c.
57523
57524 2007-09-17  Jim Meyering  <jim@meyering.net>
57525
57526         * lib/savewd.c (ESTALE) [!defined]: Define.
57527         Reported to be required on Interix by Martin Koeppe.
57528
57529 2007-09-17  Bruno Haible  <bruno@clisp.org>
57530
57531         * gnulib-tool (func_version): Use $version.
57532
57533 2007-09-16  Bruno Haible  <bruno@clisp.org>
57534
57535         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
57536         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
57537         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
57538         Reported by Greg Schafer <gschafer@zip.com.au>.
57539
57540 2007-09-15  Bruno Haible  <bruno@clisp.org>
57541
57542         * gnulib-tool (sed): Try a little harder to make bash understand the
57543         alias.
57544         Reported by Bruce Korb <bruce.korb@gmail.com>.
57545
57546 2007-09-13  Eric Blake  <ebb9@byu.net>
57547
57548         * ChangeLog: Remove conflict markers.
57549
57550 2007-09-13  Simon Josefsson  <simon@josefsson.org>
57551
57552         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
57553         Reported by Bruno Haible <bruno@clisp.org>.
57554
57555 2007-09-12  Bruno Haible  <bruno@clisp.org>
57556
57557         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
57558         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
57559         is not defined.
57560
57561 2007-09-12  Eric Blake  <ebb9@byu.net>
57562
57563         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
57564         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
57565         Autoconf definition.
57566         * modules/euidaccess (Depends-on): Add extensions, for
57567         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
57568         * modules/fnmatch (Depends-on): Likewise.
57569         * modules/getaddrinfo (Depends-on): Likewise.
57570         * modules/getdelim (Depends-on): Likewise.
57571         * modules/getline (Depends-on): Likewise.
57572         * modules/getsubopt (Depends-on): Likewise.
57573         * modules/gettext (Depends-on): Likewise.
57574         * modules/group-member (Depends-on): Likewise.
57575         * modules/mbchar (Depends-on): Likewise.
57576         * modules/memmem (Depends-on): Likewise.
57577         * modules/mempcpy (Depends-on): Likewise.
57578         * modules/memrchr (Depends-on): Likewise.
57579         * modules/pagealign_alloc (Depends-on): Likewise.
57580         * modules/readutmp (Depends-on): Likewise.
57581         * modules/stpcpy (Depends-on): Likewise.
57582         * modules/stpncpy (Depends-on): Likewise.
57583         * modules/strchrnul (Depends-on): Likewise.
57584         * modules/strndup (Depends-on): Likewise.
57585         * modules/strsep (Depends-on): Likewise.
57586         * modules/strverscmp (Depends-on): Likewise.
57587         * modules/vasprintf (Depends-on): Likewise.
57588         * modules/wcwidth (Depends-on): Likewise.
57589         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
57590         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
57591         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
57592         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
57593         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
57594         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57595         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
57596         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
57597         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
57598         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
57599         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57600         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
57601         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
57602         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
57603         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
57604         * m4/readutmp.m4 (gl_READUTMP): Likewise.
57605         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57606         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
57607         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
57608         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
57609         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
57610         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
57611         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
57612         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
57613         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
57614         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57615         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
57616         so that lock.m4 can be used in gettext without extensions module.
57617
57618 2007-09-11  Bruno Haible  <bruno@clisp.org>
57619
57620         * m4/isc-posix.m4: Remove file.
57621         Suggested by Eric Blake.
57622
57623 2007-09-11  Eric Blake  <ebb9@byu.net>
57624
57625         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
57626
57627 2007-09-10  Bruno Haible  <bruno@clisp.org>
57628
57629         * posix-modules: Fix typo in error message.
57630         Reported by Matt <mkraai@beckman.com>.
57631
57632 2007-09-09  Bruno Haible  <bruno@clisp.org>
57633
57634         * doc/functions/getdelim.texi: Update list of platforms lacking the
57635         function.
57636         * doc/functions/getline.texi: Likewise.
57637
57638 2007-09-09  Jim Meyering  <jim@meyering.net>
57639
57640         * lib/hash.c (hash_initialize): Detect calloc failure.
57641         Reported by Bruno Haible.
57642
57643 2007-09-09  Bruno Haible  <bruno@clisp.org>
57644
57645         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
57646         malloc or realloc fails.
57647
57648 2007-09-09  Bruno Haible  <bruno@clisp.org>
57649
57650         * modules/getcwd (Depends-on): Add malloc-posix.
57651         * modules/glob (Depends-on): Likewise.
57652         * modules/putenv (Depends-on): Likewise.
57653         * modules/strdup (Depends-on): Likewise.
57654         * modules/getdelim (Depends-on): Add realloc-posix.
57655         * modules/read-file (Depends-on): Likewise.
57656
57657 2007-09-09  Bruno Haible  <bruno@clisp.org>
57658
57659         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
57660         (gl_FUNC_MALLOC_POSIX): Require it.
57661         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
57662         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
57663         * modules/realloc (Files): Add m4/malloc.m4.
57664         * modules/calloc (Files): Likewise.
57665
57666 2007-09-09  Bruno Haible  <bruno@clisp.org>
57667
57668         * modules/malloc-posix: New file.
57669         * modules/malloc (Depends-on): Add malloc-posix.
57670         * lib/malloc.c: Include errno.h.
57671         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
57672         and a POSIX-compatible malloc into a single function. Set ENOMEM
57673         when returning NULL.
57674         * m4/malloc.m4: New file.
57675         * doc/functions/malloc.texi: Mention the malloc-posix module.
57676         * lib/stdlib_.h (malloc): New declaration.
57677         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57678         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
57679         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
57680         and HAVE_MALLOC_POSIX.
57681
57682 2007-09-09  Bruno Haible  <bruno@clisp.org>
57683
57684         * modules/realloc-posix: New file.
57685         * modules/realloc (Depends-on): Add realloc-posix.
57686         * lib/realloc.c: Include errno.h.
57687         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
57688         and a POSIX-compatible realloc into a single function. Set ENOMEM
57689         when returning NULL.
57690         * m4/realloc.m4: New file.
57691         * doc/functions/realloc.texi: Mention the realloc-posix module.
57692         * lib/stdlib_.h (realloc): New declaration.
57693         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57694         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
57695         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
57696         and HAVE_REALLOC_POSIX.
57697
57698 2007-09-09  Bruno Haible  <bruno@clisp.org>
57699
57700         * modules/calloc-posix: New file.
57701         * modules/calloc (Depends-on): Add calloc-posix.
57702         * lib/calloc.c: Include errno.h.
57703         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
57704         and a POSIX-compatible calloc into a single function. Set ENOMEM
57705         when returning NULL.
57706         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
57707         * doc/functions/calloc.texi: Mention the calloc-posix module.
57708         * lib/stdlib_.h (calloc): New declaration.
57709         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57710         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
57711         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
57712         and HAVE_CALLOC_POSIX.
57713
57714 2007-09-09  Bruno Haible  <bruno@clisp.org>
57715
57716         Allow for modules to show an arbitrary notice.
57717         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
57718         * gnulib-tool: New option --extract-notice.
57719         (func_usage): Document it.
57720         (sed_extract_prog): Update.
57721         (func_get_notice): New function.
57722         (func_modules_notice): New function.
57723         (func_import, func_create_testdir): Invoke it.
57724         Suggested by Jim Meyering.
57725
57726 2007-09-09  Bruno Haible  <bruno@clisp.org>
57727
57728         * gnulib-tool: New options --verbose, --quiet.
57729         (func_usage): Document them.
57730         (verbose): New variable.
57731         (func_execute_command): New function.
57732         (func_import): Don't show the module list and the file list if
57733         $verbose < 0.
57734         (func_create_testdir): Likewise. Use func_execute_command.
57735         (func_create_megatestdir): Use func_execute_command.
57736
57737 2007-09-08  Bruno Haible  <bruno@clisp.org>
57738
57739         * gnulib-tool (func_import): Prefer rsync over wget when available,
57740         for fetching the PO files.
57741
57742 2007-09-08  Bruno Haible  <bruno@clisp.org>
57743
57744         * posix-modules: New file. Portions copied from gnulib-tool.
57745         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
57746
57747 2007-09-08  Jim Meyering  <jim@meyering.net>
57748
57749         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
57750         * lib/fpending.h: Rename from __fpending.h.
57751         * lib/fpending.c: Rename from __fpending.c.
57752         Include "fpending.h", not "__fpending.h".
57753         * lib/__fpending.h, lib/__fpending.c: Remove files.
57754         * modules/fpending (Files): Reflect new file names.
57755         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
57756
57757 2007-09-08  Bruno Haible  <bruno@clisp.org>
57758
57759         * m4/inttypes-h.m4: Remove stub file.
57760
57761 2007-09-07  Simon Josefsson  <simon@josefsson.org>
57762
57763         * doc/headers/stdint.texi: Discuss #include_next issue.
57764
57765 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
57766
57767         * build-aux/bootstrap: Remove obsolete comment about wget --help.
57768
57769 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57770
57771         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
57772         in variable name.
57773
57774 2007-09-03  Jim Meyering  <jim@meyering.net>
57775
57776         New module: git-version-gen.
57777         * modules/git-version-gen: New file.
57778
57779         Import changes from coreutils for bootstrap script.
57780
57781         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
57782
57783         bootstrap: uses rsync to download the .po files
57784         * build-aux/bootstrap (po_download_command_format): New global.
57785         (download_po_files): Use rsync.
57786         (update_po_files): Don't remove .po files after download,
57787         so future rsync runs can take advantage of the copies.
57788
57789         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
57790
57791         Solve the unnecessary-.po-file-regeneration problem once and for all.
57792         * build-aux/bootstrap (download_po_files): New function, renamed from
57793         get_translations.  Now, downloads, but doesn't update LINGUAS.
57794         (update_po_files): New function.
57795
57796         bootstrap: Ignore more.
57797         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
57798         uniwidth to e.g., lib/.gitignore.
57799         (slurp): Handle the sys_stat_.h -> sys mapping, too.
57800
57801         * build-aux/bootstrap: New setting: vc_ignore.
57802         (insert_sorted_if_absent): Create $file if absent.
57803         Adapt to new, possibly empty, list: $vc_ignore.
57804
57805         bootstrap: generate more ignorable names
57806         * build-aux/bootstrap (slurp): When generating ignorable names,
57807         also map .sin to .sed, .gperf to .c, and .y to .c.
57808
57809 2007-09-03  Jim Meyering  <jim@meyering.net>
57810
57811         * build-aux/git-version-gen: New file, from coreutils.  For details, see
57812         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
57813
57814 2007-09-02  Bruno Haible  <bruno@clisp.org>
57815
57816         Fix mis-recognition of 'mcs' on QNX 6.
57817         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
57818         output contains the string "Mono".
57819         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
57820         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
57821
57822 2007-09-01  Bruno Haible  <bruno@clisp.org>
57823
57824         Fix collision between uniwidth/* and linebreak modules.
57825         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
57826         u32_width): Remove declarations.
57827         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
57828         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
57829         streq3, streq2, streq1, streq0): Remove functions.
57830         (STREQ): Remove macro.
57831         (is_cjk_encoding): Remove function.
57832         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
57833         (uc_width, u8_width, u16_width, u32_width): Remove functions.
57834         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
57835         * NEWS: Document the change.
57836
57837 2007-09-01  Bruno Haible  <bruno@clisp.org>
57838
57839         * lib/streq.h: Add double-inclusion guard.
57840
57841 2007-09-01  Karl Berry  <karl@gnu.org>
57842
57843         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
57844
57845 2007-08-28  Jim Meyering  <jim@meyering.net>
57846
57847         Rename mreadlink_with_size to areadlink_with_size.
57848         * NEWS: Document the change.
57849         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
57850         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
57851         * lib/mreadlink.h: Rename this to...
57852         * lib/areadlink.h: ...this.
57853         * modules/mreadlink-with-size: Rename this to...
57854         * modules/areadlink-with-size: ...this.
57855         * lib/canonicalize.c: Reflect the renaming.
57856         * modules/canonicalize: Likewise.
57857
57858 2007-08-26  Bruno Haible  <bruno@clisp.org>
57859
57860         * gnulib-tool (func_import): When deciding which files to remove,
57861         consider also dangling symbolic links.
57862         Reported by Eric Blake.
57863
57864 2007-08-26  Bruno Haible  <bruno@clisp.org>
57865
57866         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
57867
57868 2007-08-23  Simon Josefsson  <simon@josefsson.org>
57869
57870         * lib/readline.c: Don't include getline.h, the prototype is now
57871         found in stdio.h.
57872
57873 2007-08-23  Jim Meyering  <jim@meyering.net>
57874
57875         Getdelim touchup.
57876         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
57877         around the funlockfile call, since funlockfile never sets errno.
57878         Don't set errno upon failed realloc.
57879
57880 2007-08-22  Eric Blake  <ebb9@byu.net>
57881
57882         Getline touchups.
57883         * lib/getdelim.c (getdelim): Revert regression that required *n to
57884         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
57885         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
57886         getdelim, rather than whether implementation is missing.
57887         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
57888         * lib/stdio_.h (getline): Also declare if replacement is
57889         required.
57890         * doc/functions/getdelim.texi: New file.
57891         * doc/functions/getline.texi: Likewise.
57892         * doc/gnulib.texi (Function Substitutes): Add new files.
57893         Reported by Bruno Haible.
57894
57895 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
57896
57897         * users.txt: Add Guile.
57898
57899 2007-08-22  Eric Blake  <ebb9@byu.net>
57900
57901         * tests/test-getdelim.c (main): Use remove, not unlink.
57902         * tests/test-getline.c (main): Likewise.
57903
57904         Move getline and getdelim into stdio.h, per POSIX 200x.
57905         * modules/getline (Files): Remove getline.h.
57906         (Depends-on): Add stdio.
57907         (configure.ac): Add module indicator.
57908         * modules/getdelim (Files): Remove getdelim.h.
57909         (Depends-on): Add stdio.
57910         (configure.ac): Add module indicator.
57911         * modules/stdio (Makefile.am): Work with new indicators.
57912         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
57913         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
57914         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57915         * lib/getdelim.h: Delete.
57916         * lib/getline.h: Delete.
57917         * lib/stdio_.h (getdelim, getline): Declare.
57918         * modules/getdelim-tests: New module.
57919         * modules/getline-tests: Likewise.
57920         * tests/test-getdelim.c: New file.
57921         * tests/test-getline.c: Likewise.
57922         * NEWS: Document the change.
57923         * lib/getline.c: Update choice of header.
57924         * lib/csharpcomp.c: Likewise.
57925         * lib/getpass.c: Likewise.
57926         * lib/javacomp.c: Likewise.
57927         * lib/javaversion.c: Likewise.
57928         * lib/yesno.c: Likewise.
57929         * lib/getdelim.c: Likewise.
57930         (getdelim): Set errno on failure, and avoid memory leak.
57931
57932 2007-08-19  Bruno Haible  <bruno@clisp.org>
57933
57934         * modules/closein (Depends-on): Add freadahead.
57935         * lib/closein.c: Include freadahead.h.
57936         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
57937         is zero.
57938
57939 2007-08-19  Bruno Haible  <bruno@clisp.org>
57940
57941         * modules/freadahead-tests: New file.
57942         * tests/test-freadahead.sh: New file.
57943         * tests/test-freadahead.c: New file.
57944
57945         * modules/freadahead: New file.
57946         * lib/freadahead.h: New file.
57947         * lib/freadahead.c: New file.
57948         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
57949         fbufmode, fpurge, freadable, fwritable.
57950
57951 2007-08-19  Eric Blake  <ebb9@byu.net>
57952
57953         Test yesno in combination with closein.
57954         * lib/yesno.c (yesno): Document use of stdin.
57955         * modules/yesno-tests (Files): New module.
57956         * tests/test-yesno.c (main): New file.
57957         * tests/test-yesno.sh: Likewise.
57958
57959 2007-08-19  Bruno Haible  <bruno@clisp.org>
57960
57961         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
57962         * lib/fseeko.c (rpl_fseeko): Likewise.
57963         * lib/fseterr.c (fseterr): Likewise.
57964
57965 2007-08-19  Bruno Haible  <bruno@clisp.org>
57966
57967         * tests/test-lseek.c (main): Disable a test for BeOS.
57968         * doc/functions/lseek.texi: Document the BeOS bug.
57969
57970 2007-08-19  Bruno Haible  <bruno@clisp.org>
57971             Eric Blake  <ebb9@byu.net>
57972
57973         * lib/lseek.c: Include <sys/stat.h>.
57974         (rpl_lseek): Add workaround code also for Unix platforms.
57975         Needed for BeOS.
57976         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
57977         * doc/functions/lseek.texi: Document BeOS definiency.
57978
57979 2007-08-18  Bruno Haible  <bruno@clisp.org>
57980
57981         * modules/fstrcmp-tests: New file.
57982         * tests/test-fstrcmp.c: New file.
57983
57984 2007-08-18  Bruno Haible  <bruno@clisp.org>
57985
57986         * modules/fstrcmp: New file, from GNU gettext with modifications.
57987         * lib/fstrcmp.h: New file, from GNU gettext.
57988         * lib/fstrcmp.c: New file, from GNU gettext.
57989         * MODULES.html.sh (String handling): Add fstrcmp.
57990
57991 2007-08-18  Bruno Haible  <bruno@clisp.org>
57992
57993         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
57994         'bool'.
57995         (diag, compareseq): Remove const from the ctxt argument.
57996         (USE_HEURISTIC): Undefine at the end.
57997
57998 2007-08-18  Jim Meyering  <jim@meyering.net>
57999
58000         New file: lib/idcache.h
58001         * NEWS: Mention the addition.
58002         * modules/idcache (Files): Add lib/idcache.h
58003         * lib/idcache.c: Include "idcache.h".
58004         Don't include <sys/types.h>.
58005         Add a FIXME comment.
58006         Move file-scoped "static" declarations to the top.
58007         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
58008
58009 2007-08-17  Bruno Haible  <bruno@clisp.org>
58010         and Paul Eggert  <eggert@cs.ucla.edu>
58011
58012         * MODULES.html.sh: Add diffseq.
58013         * modules/diffseq: New file.
58014         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
58015         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
58016
58017 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58018
58019         Import changes from coreutils for bootstrap script.
58020
58021         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
58022
58023         * build-aux/bootstrap (slurp): Work even in environments where
58024         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
58025         current code does not slurp files whose names start with ".", and
58026         this looks like it might be a troublesome area.
58027
58028         2007-07-11  Jim Meyering  <jim@meyering.net>
58029
58030         If there's a GPL vN copyright comment, require that N == 3.
58031
58032         2007-07-08  Jim Meyering  <jim@meyering.net>
58033
58034         Run the coreutils-specific code only if tests/Makefile.am.in exists.
58035         * build-aux/bootstrap (mam_template): Move definition out of loop.
58036
58037         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
58038
58039         * build-aux/bootstrap (symlink_to_dir): Rename function from
58040         symlink_to_gnulib.  Add a directory parameter.  Update all
58041         callers.
58042         (cp_mark_as_generated): Also check for -- and link to -- files in
58043         gl/.
58044
58045         2007-07-08  Jim Meyering  <jim@meyering.net>
58046
58047         Adapt to deeper hierarchy in gnulib.
58048         * build-aux/bootstrap (symlink_to_dir): If the destination
58049         directory doesn't exist, create it. This is required at least for
58050         "lib/uniwidth/cjk.h".
58051
58052         2007-05-15  Jim Meyering  <jim@meyering.net>
58053
58054         * build-aux/bootstrap: Now that generated Makefile.am files
58055         are no longer under version control, they must be created at
58056         bootstrap time.
58057
58058 2007-08-14  Ben Pfaff  <blp@gnu.org>
58059
58060         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
58061
58062 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58063
58064         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
58065         given the changes below.
58066         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
58067         even on hosts that have padding bits beyond the supported 64.
58068
58069 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
58070
58071         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
58072         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
58073         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
58074         depends on it.
58075         (xstrtol_error): Remove.
58076         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
58077         but with a different signature.
58078         (ATTRIBUTE_NORETURN, __attribute__): New macros.
58079         * lib/xstrtol-error.c: Include exitfail.h.
58080         (xstrtol_fatal): New function, with a different signature from the
58081         old xstrtol_error, so that the caller need not worry about passing
58082         in an exit status, or about storage management of the option argument.
58083         (xstrtol_error): Now a static function.  Redo signature to
58084         implement xstrtol_fatal.  Output the correct number of hyphens in
58085         front of the option so that the caller need not worry about
58086         storage management.
58087         (N_): New macro.
58088         (_): Remove; not used now.
58089         * modules/xstrtol: Depend on getopt.
58090         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
58091         of old STRTOL_FATAL_ERROR macro.
58092         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
58093         of test program.
58094         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
58095         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
58096
58097 2007-08-08  Eric Blake  <ebb9@byu.net>
58098
58099         * lib/xstrtol-error.c: Add missing include.
58100
58101         Move xstrtol messages into gnulib domain, when --pobase is used.
58102         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
58103         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
58104         * modules/xstrtol (Files): Distribute new file.
58105         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
58106         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
58107         * tests/test-xstrtol.c: ...into new file.
58108         * tests/test-xstrtoul.c: Also test xstrtoul.
58109         * tests/test-xstrtoimax.c: Also test xstrtoimax.
58110         * tests/test-xstrtoumax.c: Also test xstrtoumax.
58111         * tests/test-xstrtol.sh: Drive the tests.
58112         * tests/test-xstrtoimax.sh: Likewise.
58113         * tests/test-xstrtoumax.sh: Likewise.
58114         * modules/xstrtol-tests: New module.
58115         * modules/xstrtoimax-tests: Likewise.
58116         * modules/xstrtoumax-tests: Likewise.
58117
58118 2007-08-08  Jim Meyering  <jim@meyering.net>
58119
58120         New function: mfile_name_concat.
58121         * lib/filenamecat.c (mfile_name_concat): New function, just like
58122         file_name_concat, but return NULL upon failure rather than exiting
58123         with a diagnostic.
58124         * lib/filenamecat.h: Declare it.
58125
58126 2007-08-07  Bruno Haible  <bruno@clisp.org>
58127
58128         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
58129         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
58130         warning from gcc.
58131         Reported by Eric Blake.
58132
58133 2007-08-07  Simon Josefsson  <simon@josefsson.org>
58134
58135         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
58136         * modules/crypto/arcfour (License): Likewise.
58137         * modules/crypto/des-tests (License): Likewise.
58138         * modules/crypto/gc-arctwo-tests (License): Likewise.
58139         * modules/crypto/gc-des-tests (License): Likewise.
58140         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
58141         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
58142         * modules/crypto/gc-md2-tests (License): Likewise.
58143         * modules/crypto/gc-md4-tests (License): Likewise.
58144         * modules/crypto/gc-md5-tests (License): Likewise.
58145         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
58146         * modules/crypto/gc-rijndael-tests (License): Likewise.
58147         * modules/crypto/gc-sha1-tests (License): Likewise.
58148         * modules/crypto/gc-tests (License): Likewise.
58149         * modules/crypto/hmac-md5 (License): Likewise.
58150         * modules/crypto/hmac-sha1 (License): Likewise.
58151         * modules/crypto/md2-tests (License): Likewise.
58152         * modules/crypto/md4-tests (License): Likewise.
58153         * modules/crypto/md5 (License): Likewise.
58154         * modules/crypto/rijndael (License): Likewise.
58155         * modules/crypto/sha1 (License): Likewise.
58156         * modules/memxor (License): Likewise.
58157
58158 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
58159         and Bruno Haible  <bruno@clisp.org>
58160
58161         * NEWS: Describe interface changes to human, xstrtol.
58162         * lib/human.h: Include <xstrtol.h>.
58163         (human_options): Return enum strtol_error, not int.  Remove
58164         bool arg; take int * instead.
58165         * lib/human.c: Don't include "gettext.h".
58166         (_): Remove; no longer used.
58167         Don't include <xstrtol.h>, since human.h does it.
58168         (human_options): Adjust to abovementioned interface changes.
58169         Do not report error to stderr; that's now the caller's
58170         responsibility.
58171         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
58172         interface change.
58173         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
58174         Str, Argument_type_string.  All uses changed.  Put " argument"
58175         in diagnostics to make them clearer.  Change wording of suffix
58176         message for clarity.
58177         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
58178         Argument_type_string.
58179         (STRTOL_FATAL_WARN): Remove; no longer used.
58180         * modules/human (Depends-on): Remove gettext-h.
58181
58182 2007-08-06  Simon Josefsson  <simon@josefsson.org>
58183
58184         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
58185
58186 2007-07-31  Bruno Haible  <bruno@clisp.org>
58187
58188         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
58189         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
58190         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
58191
58192 2007-07-31  Bruno Haible  <bruno@clisp.org>
58193
58194         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
58195         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
58196
58197 2007-07-30  Bruno Haible  <bruno@clisp.org>
58198
58199         * modules/base64 (License): Use the synonymous term "LGPLv2+".
58200         * modules/c-ctype (License): Likewise.
58201         * modules/c-strcase (License): Likewise.
58202         * modules/check-version (License): Likewise.
58203         * modules/iconv (License): Likewise.
58204         * modules/iconv_open (License): Likewise.
58205         * modules/read-file (License): Likewise.
58206         * modules/striconv (License): Likewise.
58207         * modules/strverscmp (License): Likewise.
58208         * modules/vasprintf (License): Likewise.
58209         * modules/crypto/des (License): Likewise.
58210         * modules/crypto/gc (License): Likewise.
58211         * modules/crypto/gc-arcfour (License): Likewise.
58212         * modules/crypto/gc-arctwo (License): Likewise.
58213         * modules/crypto/gc-des (License): Likewise.
58214         * modules/crypto/gc-hmac-md5 (License): Likewise.
58215         * modules/crypto/gc-hmac-sha1 (License): Likewise.
58216         * modules/crypto/gc-md2 (License): Likewise.
58217         * modules/crypto/gc-md4 (License): Likewise.
58218         * modules/crypto/gc-md5 (License): Likewise.
58219         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
58220         * modules/crypto/gc-random (License): Likewise.
58221         * modules/crypto/gc-rijndael (License): Likewise.
58222         * modules/crypto/gc-sha1 (License): Likewise.
58223         * modules/crypto/md2 (License): Likewise.
58224         * modules/crypto/md4 (License): Likewise.
58225
58226 2007-07-30  Jim Meyering  <jim@meyering.net>
58227
58228         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
58229         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
58230         it has valid stat data.  This bug would cause du not to count the
58231         sizes of inaccessible directories.
58232         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
58233         in <http://bugzilla.redhat.com/250077>.
58234
58235 2007-07-25  Peter O'Gorman  <peter@pogma.com>
58236             Bruno Haible  <bruno@clisp.org>
58237
58238         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
58239         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
58240         #include_next, gives a diagnostic about it, but reports no error in
58241         the exit code.
58242         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
58243
58244 2007-07-24  Ben Pfaff  <blp@gnu.org>
58245
58246         Improve name: "count-one-bits" is better than "popcount".
58247         * MODULES.html.sh: Update name.
58248         * lib/popcount.h: Renamed lib/count-one-bits.h.
58249         (popcount): Renamed count_one_bits.
58250         (popcountl): Renamed count_one_bits_l.
58251         (popcountll): Renamed count_one_bits_ll.
58252         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
58253         * modules/popcount: Renamed module/count-one-bits.
58254         * modules/popcount-tests: Renamed module/count-one-bits-tests.
58255         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
58256
58257 2007-07-23  Ben Pfaff  <blp@gnu.org>
58258
58259         * lib/popcount.h (popcount32): Reduce size of constants, to allow
58260         better code generation, and add U to large constants to avoid
58261         warnings, in non-GCC case.
58262         Suggested by Bruno Haible.
58263
58264 2007-07-23  Ben Pfaff  <blp@gnu.org>
58265
58266         * lib/popcount.h: Use verify_true instead of if...abort.
58267         * modules/popcount: Depend on verify module.
58268         Suggested by Jim Meyering.
58269
58270 2007-07-23  Bruno Haible  <bruno@clisp.org>
58271
58272         * gnulib-tool (func_import): Create a .cvsignore file also when the
58273         directory is not yet in CVS but the toplevel directory is. When
58274         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
58275         Reported by Karl Berry.
58276
58277 2007-07-22  Ben Pfaff  <blp@gnu.org>
58278
58279         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
58280         case.
58281         Suggested by Eric Blake.
58282
58283 2007-07-22  Ben Pfaff  <blp@gnu.org>
58284
58285         New module: popcount.
58286         * MODULES.html.sh: Add popcount.
58287         * modules/popcount: New file.
58288         * modules/popcount-tests: New file.
58289         * tests/test-popcount.c: New file.
58290         * lib/popcount.h: New file.
58291         * m4/popcount.m4: New file.
58292
58293 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
58294
58295         * build-aux/announce-gen: Update to GPLv3.
58296
58297         * build-aux/config.guess: Update from config.
58298
58299 2007-07-21  Bruno Haible  <bruno@clisp.org>
58300
58301         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
58302         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
58303
58304 2007-07-20  Jim Meyering  <jim@meyering.net>
58305
58306         * check-module: Diagnose a self-dependency.
58307
58308 2007-07-19  Bruno Haible  <bruno@clisp.org>
58309
58310         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
58311         empty.
58312         Reported by Eric Blake.
58313
58314 2007-07-18  Bruno Haible  <bruno@clisp.org>
58315
58316         * gnulib-tool: New options --po-base, --po-domain.
58317         (func_usage): Document them.
58318         (pobase, po_domain): New variables.
58319         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
58320         DEFAULT_TEXT_DOMAIN.
58321         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
58322         (func_import): Consider pobase and po_domain. Create a po/ directory.
58323         (func_create_testdir): Set pobase and po_domain to empty.
58324         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
58325         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
58326
58327 2007-07-18  Bruno Haible  <bruno@clisp.org>
58328
58329         * gnulib-tool (func_get_automake_snippet): Synthesize also an
58330         EXTRA_DIST augmentation for files in build-aux/.
58331
58332 2007-07-16  Bruno Haible  <bruno@clisp.org>
58333
58334         * modules/lseek (License): Use the synonymous term "LGPLv2+".
58335         * modules/getdelim (License): Likewise.
58336
58337 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58338
58339         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
58340         * modules/d-type (License): Likewise.
58341         * modules/extensions (License): Likewise.
58342         * modules/fnmatch (License): Likewise.
58343         * modules/fseeko (License): Likewise.
58344         * modules/getaddrinfo (License): Likewise.
58345         * modules/getline (License): Likewise.
58346         * modules/getlogin_r (License): Likewise.
58347         * modules/getpass (License): Likewise.
58348         * modules/gettimeofday (License): Likewise.
58349         * modules/glob (License): Likewise.
58350         * modules/inet_ntop (License): Likewise.
58351         * modules/malloc (License): Likewise.
58352         * modules/malloca (License): Likewise.
58353         * modules/memmem (License): Likewise.
58354         * modules/mempcpy (License): Likewise.
58355         * modules/memset (License): Likewise.
58356         * modules/minmax (License): Likewise.
58357         * modules/mktime (License): Likewise.
58358         * modules/netinet_in (License): Likewise.
58359         * modules/pathmax (License): Likewise.
58360         * modules/poll (License): Likewise.
58361         * modules/regex (License): Likewise.
58362         * modules/snprintf (License): Likewise.
58363         * modules/stdbool (License): Likewise.
58364         * modules/stdint (License): Likewise.
58365         * modules/stdio (License): Likewise.
58366         * modules/strcase (License): Likewise.
58367         * modules/strcasestr (License): Likewise.
58368         * modules/strdup (License): Likewise.
58369         * modules/string (License): Likewise.
58370         * modules/strndup (License): Likewise.
58371         * modules/strnlen (License): Likewise.
58372         * modules/strpbrk (License): Likewise.
58373         * modules/strptime (License): Likewise.
58374         * modules/strsep (License): Likewise.
58375         * modules/sys_select (License): Likewise.
58376         * modules/sys_socket (License): Likewise.
58377         * modules/sys_stat (License): Likewise.
58378         * modules/sys_time (License): Likewise.
58379         * modules/time (License): Likewise.
58380         * modules/time_r (License): Likewise.
58381         * modules/timegm (License): Likewise.
58382         * modules/unistd (License): Likewise.
58383         * modules/vsnprintf (License): Likewise.
58384         * modules/wctype (License): Likewise.
58385
58386 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58387
58388         * modules/argz (License): LGPLv2+.
58389
58390 2007-07-15  Karl Berry  <karl@gnu.org>
58391
58392         * doc/gnulib.texi: revise node structure per new fdl.texi.
58393
58394 2007-07-14  Bruno Haible  <bruno@clisp.org>
58395
58396         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
58397         the output file.
58398         * lib/uniname/uninames.h: Regenerated.
58399
58400 2007-07-14  Karl Berry  <karl@gnu.org>
58401
58402         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
58403         omitting sectioning and index commands.
58404
58405 2007-07-13  Bruno Haible  <bruno@clisp.org>
58406
58407         New gnulib-tool option --more-symlinks.
58408         * gnulib-tool (func_usage): Document --more-symlinks.
58409         (do_copyrights): New variable.
58410         Recognize option --more-symlinks.
58411         (func_import): Don't add a copyright notice transform to
58412         sed_transform_lib_file if do_copyrights is empty.
58413
58414 2007-07-13  Bruno Haible  <bruno@clisp.org>
58415
58416         * lib/vasnprintf.c (decimal_point_char): Define also if
58417         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
58418         && !NEED_PRINTF_DIRECTIVE_A.
58419         Reported by Clemens Koller <clemens.koller@anagramm.de> via
58420         Gary V. Vaughan <gary@gnu.org>.
58421
58422 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
58423
58424         * lib/inttypes_.h: Undo previous change, since it was fixed
58425         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
58426
58427 2007-07-13  Bruno Haible  <bruno@clisp.org>
58428
58429         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
58430         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
58431
58432 2007-07-13  Jim Meyering  <jim@meyering.net>
58433
58434         df: Don't fail for Tru64's "file-on-file mount".
58435         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
58436         so we fall through and use statfs instead.  Details here:
58437         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
58438         Reported by Albert Chin.
58439
58440 2007-07-13  Bruno Haible  <bruno@clisp.org>
58441
58442         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
58443         * modules/configmake (License): Likewise.
58444         * modules/gettext (License): Likewise.
58445         * modules/gettext-h (License): Likewise.
58446         * modules/include_next (License): Likewise.
58447         * modules/link-warning (License): Likewise.
58448         * modules/localcharset (License): Likewise.
58449         * modules/localename (License): Likewise.
58450         * modules/lock (License): Likewise.
58451         * modules/relocatable-lib-lgpl (License): Likewise.
58452         * modules/size_max (License): Likewise.
58453         * modules/vasnprintf (License): Likewise.
58454         * modules/wchar (License): Likewise.
58455         * modules/xsize (License): Likewise.
58456
58457 2007-07-13  Bruno Haible  <bruno@clisp.org>
58458
58459         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
58460         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
58461
58462 2007-07-12  Bruno Haible  <bruno@clisp.org>
58463
58464         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
58465         in the modules files.
58466
58467 2007-07-11  Karl Berry  <karl@gnu.org>
58468
58469         * MODULES.html.sh (func_module): use
58470          sed -e '\|^'"${includefile}"'$|d'
58471          instead of /.../d, to avoid errors on $includefile's containing /.
58472
58473 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58474
58475         * gnulib-tool (func_import): Avoid duplication of --avoid
58476         statements
58477         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
58478         names to `_' in variable names.
58479
58480 2007-07-10  Eric Blake  <ebb9@byu.net>
58481
58482         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
58483         * NEWS: Document this change.
58484
58485 2007-07-08  Bruno Haible  <bruno@clisp.org>
58486
58487         Update to Unicode 5.0.
58488         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
58489         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
58490         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
58491         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
58492         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
58493         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
58494         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
58495         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
58496         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
58497         U+10A3F, U+1D242..U+1D244.
58498         (nonspacing_table_ind): Update.
58499         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
58500         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
58501
58502 2007-07-08  Bruno Haible  <bruno@clisp.org>
58503
58504         Update to Unicode 5.0.
58505         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
58506         code transform. Extend the name index field of unicode_name_to_code and
58507         unicode_code_to_name from 16 to 24 bits.
58508         * lib/uniname/uniname.c (unicode_character_name,
58509         unicode_name_character): Add the range 0x12xxx to the code transform.
58510         * lib/uniname/uninames.h: Regenerated.
58511         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
58512
58513 2007-07-07  Bruno Haible  <bruno@clisp.org>
58514
58515         * modules/wcwidth-tests: New file.
58516         * tests/test-wcwidth.c: New file.
58517
58518         Work around MacOS X wcwidth() bug.
58519         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
58520         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
58521         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
58522         original wcwidth in non-UTF-8 locales.
58523         * modules/wcwidth (Depends-on): Add localcharset, streq,
58524         uniwidth/width.
58525         * doc/functions/wcwidth.texi: Update.
58526
58527 2007-07-07  Bruno Haible  <bruno@clisp.org>
58528
58529         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
58530         (wcwidth): New declaration.
58531         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
58532         macros.
58533         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
58534         here. Prepare for creating <wchar.h> unconditionally.
58535         * modules/wchar (Depends-on): Add link-warning.
58536         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
58537         REPLACE_WCWIDTH, and GL_LINK_WARNING.
58538         * lib/wcwidth.h: Remove file.
58539         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
58540         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
58541         * modules/wcwidth (Files): Remove lib/wcwidth.h.
58542         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
58543         (Include): Replace wcwidth.h with <wchar.h>.
58544         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
58545         * lib/mbchar.h: Don't include wcwidth.h.
58546         * lib/mbswidth.c: Likewise.
58547         * NEWS: Mention the change.
58548
58549 2007-07-07  Bruno Haible  <bruno@clisp.org>
58550
58551         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
58552         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
58553         definition with an external declaration.
58554         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
58555         defined as a function. Remove AC_C_INLINE requirement.
58556         * modules/wcwidth (Files): Add lib/wcwidth.c.
58557         (Makefile.am): Remove redundant statement.
58558
58559 2007-07-07  Bruno Haible  <bruno@clisp.org>
58560
58561         * MODULES.html.sh (Unicode string functions): Add the new modules.
58562
58563         * tests/uniwidth/test-u32-strwidth.c: New file.
58564         * modules/uniwidth/u32-strwidth-tests: New file.
58565
58566         * lib/uniwidth/u32-strwidth.c: New file.
58567         * modules/uniwidth/u32-strwidth: New file.
58568
58569         * tests/uniwidth/test-u16-strwidth.c: New file.
58570         * modules/uniwidth/u16-strwidth-tests: New file.
58571
58572         * lib/uniwidth/u16-strwidth.c: New file.
58573         * modules/uniwidth/u16-strwidth: New file.
58574
58575         * tests/uniwidth/test-u8-strwidth.c: New file.
58576         * modules/uniwidth/u8-strwidth-tests: New file.
58577
58578         * lib/uniwidth/u8-strwidth.c: New file.
58579         * modules/uniwidth/u8-strwidth: New file.
58580
58581         * tests/uniwidth/test-u32-width.c: New file.
58582         * modules/uniwidth/u32-width-tests: New file.
58583
58584         * lib/uniwidth/u32-width.c: New file.
58585         * modules/uniwidth/u32-width: New file.
58586
58587         * tests/uniwidth/test-u16-width.c: New file.
58588         * modules/uniwidth/u16-width-tests: New file.
58589
58590         * lib/uniwidth/u16-width.c: New file.
58591         * modules/uniwidth/u16-width: New file.
58592
58593         * tests/uniwidth/test-u8-width.c: New file.
58594         * modules/uniwidth/u8-width-tests: New file.
58595
58596         * lib/uniwidth/u8-width.c: New file.
58597         * modules/uniwidth/u8-width: New file.
58598
58599         * tests/uniwidth/test-uc_width.c: New file.
58600         * modules/uniwidth/width-tests: New file.
58601
58602         * lib/uniwidth/width.c: New file, from GNU libiconv.
58603         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
58604         * modules/uniwidth/width: New file.
58605
58606         * lib/uniwidth.h: New file, from GNU libiconv.
58607         * modules/uniwidth/base: New file.
58608
58609 2007-07-07  Bruno Haible  <bruno@clisp.org>
58610
58611         * lib/uniname.h: New file, from GNU gettext.
58612         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
58613         * lib/uniname/uninames.h: New file, from GNU gettext.
58614         * lib/uniname/uniname.c: New file, from GNU gettext.
58615         * tests/uniname/test-uninames.sh: New file.
58616         * tests/uniname/test-uninames.c: New file, from GNU gettext.
58617         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
58618         * modules/uniname/base: New file.
58619         * modules/uniname/uniname: New file.
58620         * modules/uniname/uniname-tests: New file.
58621         * MODULES.html.sh (Unicode string functions): Add the new modules.
58622
58623 2007-07-06  Bruno Haible  <bruno@clisp.org>
58624
58625         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
58626
58627 2007-07-06  Bruno Haible  <bruno@clisp.org>
58628
58629         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
58630         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
58631         includes <cygwin/sys_time.h> which includes <sys/select.h> which
58632         include <sys/time.h>.
58633         Reported by Eric Blake.
58634
58635 2007-07-06  Eric Blake  <ebb9@byu.net>
58636
58637         Fix testing canonicalize on cygwin.
58638         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58639         Revert patch from 2007-06-19.
58640         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
58641         canonicalize module is also in use.
58642         * tests/test-canonicalize.c: New file.
58643         * tests/test-canonicalize.sh: Likewise.
58644         * modules/canonicalize-tests: Likewise.
58645
58646 2007-07-06  Jim Meyering  <jim@meyering.net>
58647
58648         * lib/getugroups.c (getugroups): Detect getgrent failure.
58649         Adjust comment to reflect reality: this function may return -1.
58650
58651 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
58652
58653         * build-aux/bootstrap (TP_URL,get_translations): Update to use
58654         the new TP address.
58655         (usage): Fix typo
58656         (gnulib_mk): New variable.
58657
58658 2007-07-05  Jim Meyering  <jim@meyering.net>
58659
58660         Don't let endgrent clobber errno, no matter how improbable.
58661         * lib/getugroups.c (getugroups): Save and restore errno around
58662         endgrent call.
58663
58664         Close the group DB even when failing with 2^31 or more members.
58665         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
58666
58667 2007-07-04  Jim Meyering  <jim@meyering.net>
58668
58669         * lib/getugroups.h: New file.
58670         * lib/getugroups.c: Include "getugroups.h".
58671         Remove uses of "register" keyword.
58672         Move local variable, "cp", down into scope where used.
58673         Give "username" parameter the "const" attribute.
58674         * modules/getugroups (Files): Add lib/getugroups.h
58675
58676 2007-07-04  Karl Berry  <karl@gnu.org>
58677
58678         * MODULES.html.sh (func_all_modules): Complete rename of
58679         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
58680
58681 2007-07-02  Bruno Haible  <bruno@clisp.org>
58682
58683         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
58684         mode, when inttypes.h comes from gnulib.
58685         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
58686
58687 2007-07-02  Simon Josefsson  <simon@josefsson.org>
58688
58689         * NEWS: Mention lgpl module name change.
58690
58691         * modules/lgpl-2.1: Renamed from lgpl.
58692
58693         * NEWS: Mention gpl module name change.
58694
58695         * modules/gpl-3.0: New file, based on gpl-2.0.
58696
58697         * modules/gpl-2.0: Renamed from gpl.
58698
58699         * modules/gpl: Fix filename, doc/gpl.texi is now found at
58700         doc/gpl-2.0.texi.
58701
58702 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
58703
58704         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
58705         #define __STDC_LIMIT_MACROS temporarily while including
58706         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
58707         Problem reported by Joel E. Denny in
58708         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
58709
58710 2007-07-01  Bruno Haible  <bruno@clisp.org>
58711
58712         * lib/unistdio.h: New file.
58713         * lib/unistdio/u-asnprintf.h: New file.
58714         * lib/unistdio/u-asprintf.h: New file.
58715         * lib/unistdio/u-printf-args.c: New file.
58716         * lib/unistdio/u-printf-args.h: New file.
58717         * lib/unistdio/u-printf-parse.h: New file.
58718         * lib/unistdio/u-snprintf.h: New file.
58719         * lib/unistdio/u-sprintf.h: New file.
58720         * lib/unistdio/u-vasprintf.h: New file.
58721         * lib/unistdio/u-vsnprintf.h: New file.
58722         * lib/unistdio/u-vsprintf.h: New file.
58723         * lib/unistdio/ulc-asnprintf.c: New file.
58724         * lib/unistdio/ulc-asprintf.c: New file.
58725         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
58726         * lib/unistdio/ulc-printf-parse.c: New file.
58727         * lib/unistdio/ulc-snprintf.c: New file.
58728         * lib/unistdio/ulc-sprintf.c: New file.
58729         * lib/unistdio/ulc-vasnprintf.c: New file.
58730         * lib/unistdio/ulc-vasprintf.c: New file.
58731         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
58732         * lib/unistdio/ulc-vsnprintf.c: New file.
58733         * lib/unistdio/ulc-vsprintf.c: New file.
58734         * lib/unistdio/u8-asnprintf.c: New file.
58735         * lib/unistdio/u8-asprintf.c: New file.
58736         * lib/unistdio/u8-printf-parse.c: New file.
58737         * lib/unistdio/u8-snprintf.c: New file.
58738         * lib/unistdio/u8-sprintf.c: New file.
58739         * lib/unistdio/u8-vasnprintf.c: New file.
58740         * lib/unistdio/u8-vasprintf.c: New file.
58741         * lib/unistdio/u8-vsnprintf.c: New file.
58742         * lib/unistdio/u8-vsprintf.c: New file.
58743         * lib/unistdio/u8-u8-asnprintf.c: New file.
58744         * lib/unistdio/u8-u8-asprintf.c: New file.
58745         * lib/unistdio/u8-u8-snprintf.c: New file.
58746         * lib/unistdio/u8-u8-sprintf.c: New file.
58747         * lib/unistdio/u8-u8-vasnprintf.c: New file.
58748         * lib/unistdio/u8-u8-vasprintf.c: New file.
58749         * lib/unistdio/u8-u8-vsnprintf.c: New file.
58750         * lib/unistdio/u8-u8-vsprintf.c: New file.
58751         * lib/unistdio/u16-asnprintf.c: New file.
58752         * lib/unistdio/u16-asprintf.c: New file.
58753         * lib/unistdio/u16-printf-parse.c: New file.
58754         * lib/unistdio/u16-snprintf.c: New file.
58755         * lib/unistdio/u16-sprintf.c: New file.
58756         * lib/unistdio/u16-vasnprintf.c: New file.
58757         * lib/unistdio/u16-vasprintf.c: New file.
58758         * lib/unistdio/u16-vsnprintf.c: New file.
58759         * lib/unistdio/u16-vsprintf.c: New file.
58760         * lib/unistdio/u16-u16-asnprintf.c: New file.
58761         * lib/unistdio/u16-u16-asprintf.c: New file.
58762         * lib/unistdio/u16-u16-snprintf.c: New file.
58763         * lib/unistdio/u16-u16-sprintf.c: New file.
58764         * lib/unistdio/u16-u16-vasnprintf.c: New file.
58765         * lib/unistdio/u16-u16-vasprintf.c: New file.
58766         * lib/unistdio/u16-u16-vsnprintf.c: New file.
58767         * lib/unistdio/u16-u16-vsprintf.c: New file.
58768         * lib/unistdio/u32-asnprintf.c: New file.
58769         * lib/unistdio/u32-asprintf.c: New file.
58770         * lib/unistdio/u32-printf-parse.c: New file.
58771         * lib/unistdio/u32-snprintf.c: New file.
58772         * lib/unistdio/u32-sprintf.c: New file.
58773         * lib/unistdio/u32-vasnprintf.c: New file.
58774         * lib/unistdio/u32-vasprintf.c: New file.
58775         * lib/unistdio/u32-vsnprintf.c: New file.
58776         * lib/unistdio/u32-vsprintf.c: New file.
58777         * lib/unistdio/u32-u32-asnprintf.c: New file.
58778         * lib/unistdio/u32-u32-asprintf.c: New file.
58779         * lib/unistdio/u32-u32-snprintf.c: New file.
58780         * lib/unistdio/u32-u32-sprintf.c: New file.
58781         * lib/unistdio/u32-u32-vasnprintf.c: New file.
58782         * lib/unistdio/u32-u32-vasprintf.c: New file.
58783         * lib/unistdio/u32-u32-vsnprintf.c: New file.
58784         * lib/unistdio/u32-u32-vsprintf.c: New file.
58785         * tests/unistdio/test-ulc-asnprintf1.c: New file.
58786         * tests/unistdio/test-ulc-asnprintf1.h: New file.
58787         * tests/unistdio/test-ulc-printf1.h: New file.
58788         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
58789         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
58790         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
58791         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
58792         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
58793         * tests/unistdio/test-ulc-vasprintf1.c: New file.
58794         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
58795         * tests/unistdio/test-ulc-vsprintf1.c: New file.
58796         * tests/unistdio/test-u8-asnprintf1.c: New file.
58797         * tests/unistdio/test-u8-asnprintf1.h: New file.
58798         * tests/unistdio/test-u8-printf1.h: New file.
58799         * tests/unistdio/test-u8-vasnprintf1.c: New file.
58800         * tests/unistdio/test-u8-vasnprintf2.c: New file.
58801         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
58802         * tests/unistdio/test-u8-vasnprintf3.c: New file.
58803         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
58804         * tests/unistdio/test-u8-vasprintf1.c: New file.
58805         * tests/unistdio/test-u8-vsnprintf1.c: New file.
58806         * tests/unistdio/test-u8-vsprintf1.c: New file.
58807         * tests/unistdio/test-u16-asnprintf1.c: New file.
58808         * tests/unistdio/test-u16-asnprintf1.h: New file.
58809         * tests/unistdio/test-u16-printf1.h: New file.
58810         * tests/unistdio/test-u16-vasnprintf1.c: New file.
58811         * tests/unistdio/test-u16-vasnprintf2.c: New file.
58812         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
58813         * tests/unistdio/test-u16-vasnprintf3.c: New file.
58814         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
58815         * tests/unistdio/test-u16-vasprintf1.c: New file.
58816         * tests/unistdio/test-u16-vsnprintf1.c: New file.
58817         * tests/unistdio/test-u16-vsprintf1.c: New file.
58818         * tests/unistdio/test-u32-asnprintf1.c: New file.
58819         * tests/unistdio/test-u32-asnprintf1.h: New file.
58820         * tests/unistdio/test-u32-printf1.h: New file.
58821         * tests/unistdio/test-u32-vasnprintf1.c: New file.
58822         * tests/unistdio/test-u32-vasnprintf2.c: New file.
58823         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
58824         * tests/unistdio/test-u32-vasnprintf3.c: New file.
58825         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
58826         * tests/unistdio/test-u32-vasprintf1.c: New file.
58827         * tests/unistdio/test-u32-vsnprintf1.c: New file.
58828         * tests/unistdio/test-u32-vsprintf1.c: New file.
58829         * modules/unistdio/base: New file.
58830         * modules/unistdio/u-printf-args: New file.
58831         * modules/unistdio/ulc-asnprintf: New file.
58832         * modules/unistdio/ulc-asprintf: New file.
58833         * modules/unistdio/ulc-fprintf: New file.
58834         * modules/unistdio/ulc-printf-parse: New file.
58835         * modules/unistdio/ulc-snprintf: New file.
58836         * modules/unistdio/ulc-sprintf: New file.
58837         * modules/unistdio/ulc-vasnprintf: New file.
58838         * modules/unistdio/ulc-vasprintf: New file.
58839         * modules/unistdio/ulc-vfprintf: New file.
58840         * modules/unistdio/ulc-vsnprintf: New file.
58841         * modules/unistdio/ulc-vsprintf: New file.
58842         * modules/unistdio/u8-asnprintf: New file.
58843         * modules/unistdio/u8-asprintf: New file.
58844         * modules/unistdio/u8-printf-parse: New file.
58845         * modules/unistdio/u8-snprintf: New file.
58846         * modules/unistdio/u8-sprintf: New file.
58847         * modules/unistdio/u8-vasnprintf: New file.
58848         * modules/unistdio/u8-vasprintf: New file.
58849         * modules/unistdio/u8-vsnprintf: New file.
58850         * modules/unistdio/u8-vsprintf: New file.
58851         * modules/unistdio/u8-u8-asnprintf: New file.
58852         * modules/unistdio/u8-u8-asprintf: New file.
58853         * modules/unistdio/u8-u8-snprintf: New file.
58854         * modules/unistdio/u8-u8-sprintf: New file.
58855         * modules/unistdio/u8-u8-vasnprintf: New file.
58856         * modules/unistdio/u8-u8-vasprintf: New file.
58857         * modules/unistdio/u8-u8-vsnprintf: New file.
58858         * modules/unistdio/u8-u8-vsprintf: New file.
58859         * modules/unistdio/u16-asnprintf: New file.
58860         * modules/unistdio/u16-asprintf: New file.
58861         * modules/unistdio/u16-printf-parse: New file.
58862         * modules/unistdio/u16-snprintf: New file.
58863         * modules/unistdio/u16-sprintf: New file.
58864         * modules/unistdio/u16-vasnprintf: New file.
58865         * modules/unistdio/u16-vasprintf: New file.
58866         * modules/unistdio/u16-vsnprintf: New file.
58867         * modules/unistdio/u16-vsprintf: New file.
58868         * modules/unistdio/u16-u16-asnprintf: New file.
58869         * modules/unistdio/u16-u16-asprintf: New file.
58870         * modules/unistdio/u16-u16-snprintf: New file.
58871         * modules/unistdio/u16-u16-sprintf: New file.
58872         * modules/unistdio/u16-u16-vasnprintf: New file.
58873         * modules/unistdio/u16-u16-vasprintf: New file.
58874         * modules/unistdio/u16-u16-vsnprintf: New file.
58875         * modules/unistdio/u16-u16-vsprintf: New file.
58876         * modules/unistdio/u32-asnprintf: New file.
58877         * modules/unistdio/u32-asprintf: New file.
58878         * modules/unistdio/u32-printf-parse: New file.
58879         * modules/unistdio/u32-snprintf: New file.
58880         * modules/unistdio/u32-sprintf: New file.
58881         * modules/unistdio/u32-vasnprintf: New file.
58882         * modules/unistdio/u32-vasprintf: New file.
58883         * modules/unistdio/u32-vsnprintf: New file.
58884         * modules/unistdio/u32-vsprintf: New file.
58885         * modules/unistdio/u32-u32-asnprintf: New file.
58886         * modules/unistdio/u32-u32-asprintf: New file.
58887         * modules/unistdio/u32-u32-snprintf: New file.
58888         * modules/unistdio/u32-u32-sprintf: New file.
58889         * modules/unistdio/u32-u32-vasnprintf: New file.
58890         * modules/unistdio/u32-u32-vasprintf: New file.
58891         * modules/unistdio/u32-u32-vsnprintf: New file.
58892         * modules/unistdio/u32-u32-vsprintf: New file.
58893         * modules/unistdio/ulc-asnprintf-tests: New file.
58894         * modules/unistdio/ulc-vasnprintf-tests: New file.
58895         * modules/unistdio/ulc-vasprintf-tests: New file.
58896         * modules/unistdio/ulc-vsnprintf-tests: New file.
58897         * modules/unistdio/ulc-vsprintf-tests: New file.
58898         * modules/unistdio/u8-asnprintf-tests: New file.
58899         * modules/unistdio/u8-vasnprintf-tests: New file.
58900         * modules/unistdio/u8-vasprintf-tests: New file.
58901         * modules/unistdio/u8-vsnprintf-tests: New file.
58902         * modules/unistdio/u8-vsprintf-tests: New file.
58903         * modules/unistdio/u16-asnprintf-tests: New file.
58904         * modules/unistdio/u16-vasnprintf-tests: New file.
58905         * modules/unistdio/u16-vasprintf-tests: New file.
58906         * modules/unistdio/u16-vsnprintf-tests: New file.
58907         * modules/unistdio/u16-vsprintf-tests: New file.
58908         * modules/unistdio/u32-asnprintf-tests: New file.
58909         * modules/unistdio/u32-vasnprintf-tests: New file.
58910         * modules/unistdio/u32-vasprintf-tests: New file.
58911         * modules/unistdio/u32-vsnprintf-tests: New file.
58912         * modules/unistdio/u32-vsprintf-tests: New file.
58913         * MODULES.html.sh (Unicode string functions): Add the new modules.
58914
58915 2007-07-01  Bruno Haible  <bruno@clisp.org>
58916
58917         * lib/sprintf.c (sprintf): Limit the available length estimation,
58918         to avoid address wraparound.
58919         * lib/vsprintf.c (vsprintf): Likewise.
58920         * modules/sprintf-posix (Dependencies): Add stdint.
58921         * modules/vsprintf-posix (Dependencies): Likewise.
58922
58923 2007-07-01  Bruno Haible  <bruno@clisp.org>
58924
58925         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
58926         Windows PATH as well. Conservative double-quoting. Comments.
58927
58928 2007-07-01  Bruno Haible  <bruno@clisp.org>
58929             Eric Blake  <ebb9@byu.net>
58930             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58931
58932         * gnulib-tool (self_abspathname): Fix algorithm to cope with
58933         empty components in $PATH, denoting '.'.
58934
58935 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58936
58937         * gnulib-tool: Fix indentation.
58938         (func_create_megatestdir): Likewise.
58939         Report by Bruno Haible.
58940
58941 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58942
58943         Sync from Automake.
58944         * build-aux/gnupload: Fix shell portability issues with for loops.
58945         Report by Karl Berry.
58946
58947 2007-06-29  Simon Josefsson  <simon@josefsson.org>
58948
58949         * build-aux/maint.mk (POURL): Use translationproject.org.
58950
58951 2007-06-27  Simon Josefsson  <simon@josefsson.org>
58952             Bruno Haible  <bruno@clisp.org>
58953
58954         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
58955         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
58956         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
58957         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
58958         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
58959
58960 2007-06-27  Bruno Haible  <bruno@clisp.org>
58961
58962         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
58963         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
58964
58965 2007-06-26  Karl Berry  <karl@gnu.org>
58966
58967         * MODULES.html.sh: remove xreadlink-with-size.
58968
58969 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58970
58971         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
58972         method that I hope also handles the double-include problem noted
58973         by Bruno Haible in
58974         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
58975
58976 2007-06-23  Bruno Haible  <bruno@clisp.org>
58977
58978         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58979         Don't let the 'mostlyclean' target fail if the last subdirectory could
58980         not be removed.
58981         Reported by Karl Berry.
58982
58983 2007-06-23  Bruno Haible  <bruno@clisp.org>
58984
58985         * gnulib-tool (echo): Add a speedier workaround for ksh.
58986         * tests/test-echo.sh: Likewise.
58987
58988 2007-06-23  Bruno Haible  <bruno@clisp.org>
58989
58990         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
58991         * tests/test-echo.sh: Likewise.
58992
58993 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58994
58995         * gnulib-tool (IFS): Initialize early, so we don't set it to
58996         empty later.
58997         (self_abspathname): Rewrite algorithm to set it, reindent.
58998         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
58999         (func_create_megatestdir): Merge some sed scripts.
59000
59001 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
59002
59003         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
59004         exposed by Sun Studio 11 cc on Solaris 8.
59005
59006 2007-06-22  Bruno Haible  <bruno@clisp.org>
59007
59008         * gnulib-tool (echo): Ensure the echo primitive does not interpret
59009         backslashes.
59010         * tests/test-echo.sh: New file.
59011
59012 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59013
59014         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
59015         simplify `sed_replace_build_aux' scripts, they are portable but
59016         echoing them with `echo' is not.
59017         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
59018
59019 2007-06-21  Karl Berry  <karl@gnu.org>
59020
59021         * config/srclist.txt: guess we can't handle the licenses via
59022         srclist at the moment.
59023
59024 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
59025
59026         * MODULES.html.sh: Add include_next.
59027         * modules/include_next: New file.
59028
59029 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
59030
59031         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
59032         INCLUDE_NEXT.
59033         (gl_CHECK_NEXT_HEADERS): New macro.
59034         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
59035         the obsolescent gl_ABSOLUTE_HEADER.
59036         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
59037         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
59038         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
59039         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
59040         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
59041         * m4/math_h.m4 (gl_MATH_H): Likewise.
59042         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
59043         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
59044         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
59045         * m4/stdint.m4 (gl_STDINT_H): Likewise.
59046         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
59047         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
59048         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
59049         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59050         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
59051         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
59052         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
59053         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
59054         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
59055         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
59056         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
59057         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
59058         * m4/inttypes.m4 (gl_INTTYPES_H): Define
59059         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
59060         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
59061         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
59062         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
59063         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
59064         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
59065         * lib/float_.h: Likewise.
59066         * lib/inttypes_.h: Likewise.
59067         * lib/math_.h: Likewise.
59068         * lib/search_.h: Likewise.
59069         * lib/signal_.h: Likewise.
59070         * lib/stdint_.h: Likewise.
59071         * lib/stdio_.h: Likewise.
59072         * lib/stdlib_.h: Likewise.
59073         * lib/string_.h: Likewise.
59074         * lib/sys_stat_.h: Likewise.
59075         * lib/sys_time_.h: Likewise.
59076         * lib/time_.h: Likewise.
59077         * lib/unistd_.h: Likewise.
59078         * lib/wchar_.h: Likewise.
59079         * lib/wctype_.h: Likewise.
59080         * lib/dirent_.h: Likewise.
59081         * lib/iconv_.h: Likewise.
59082         * lib/locale_.h: Likewise.
59083         * lib/netinet_in_.h: Likewise.
59084         * lib/sys_select_.h: Likewise.
59085         * lib/sys_socket_.h: Likewise.
59086         * lib/sysexits_.h: Likewise.
59087         * modules/fcntl (Depends-on): Depend on include_next, not
59088         absolute_header.
59089         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
59090         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
59091         * modules/fchdir: Likewise.
59092         * modules/float: Likewise.
59093         * modules/iconv_open: Likewise.
59094         * modules/inttypes: Likewise.
59095         * modules/locale: Likewise.
59096         * modules/math: Likewise.
59097         * modules/netinet_in: Likewise.
59098         * modules/search: Likewise.
59099         * modules/signal: Likewise.
59100         * modules/stdint: Likewise.
59101         * modules/stdio: Likewise.
59102         * modules/stdlib: Likewise.
59103         * modules/string: Likewise.
59104         * modules/sys_select: Likewise.
59105         * modules/sys_socket: Likewise.
59106         * modules/sys_stat: Likewise.
59107         * modules/sys_time: Likewise.
59108         * modules/sysexits: Likewise.
59109         * modules/time: Likewise.
59110         * modules/unistd: Likewise.
59111         * modules/wchar: Likewise.
59112         * modules/wctype: Likewise.
59113         * modules/sys_stat: Change maintainer to "all".
59114         * modules/unistd: Likewise.
59115
59116 2007-06-20  Karl Berry  <karl@gnu.org>
59117
59118         * config/srclist.txt: track www changes in license files.
59119
59120 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
59121
59122         * build-aux/bootstrap: Remove stray dot.
59123         Make sure build_aux settings are honored when linking
59124         gnulib_extra_files.
59125
59126 2007-06-19  Eric Blake  <ebb9@byu.net>
59127
59128         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
59129         Allow compilation on cygwin.
59130
59131 2007-06-19  Jim Meyering  <jim@meyering.net>
59132
59133         xreadlink-with-size: Remove module.  No longer used.
59134         Ex-callers now use xreadlink or mreadlink-with-size.
59135         * modules/xreadlink-with-size: Remove module.
59136         * lib/xreadlink-with-size.c: Remove file.
59137         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
59138         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
59139         just before the function definition *is* accurate.
59140
59141         Eliminate one way canonicalize_filename_mode could exit.
59142         * lib/canonicalize.c (canonicalize_filename_mode):
59143         Use mreadlink_with_size, not xreadlink_with_size.
59144
59145 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
59146
59147         Detect porting problems to FreeBSD/arm, which has time_t wider than
59148         long int.  Original problem reported for GNU diff by Xin Li in
59149         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
59150         * modules/getdate (Depends-on): Add intprops, verify.
59151         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
59152         is an integer type no wider than long int.
59153
59154 2007-06-18  Jim Meyering  <jim@meyering.net>
59155
59156         New module: mreadlink-with-size.
59157         * MODULES.html.sh: Add mreadlink-with-size.
59158         * modules/mreadlink-with-size: New module
59159         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
59160         not xreadlink-with-size.
59161         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
59162
59163 2007-06-16  Bruno Haible  <bruno@clisp.org>
59164
59165         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
59166         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
59167         Reported by Gary V. Vaughan <gary@gnu.org>.
59168
59169 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
59170
59171         Revamp lchown so that it lives in unistd.h where it belongs.
59172         * lib/lchown.h: Remove.
59173         * lib/dirchownmod.c: Don't include lib/lchown.h.
59174         * lib/fchownat.c: Likewise.
59175         * lib/openat.c: Likewise.
59176         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
59177         does not follow symlinks.
59178         (EOPNOTSUPP): Define if not defined.
59179         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
59180         is defined to 0.
59181         (lchown): New decl.
59182         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
59183         Do not check for lchown decl.
59184         Set REPLACE_LCHOWN.
59185         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
59186         REPLACE_LCHOWN.
59187         * modules/chown: Make it clear it follows symlinks.
59188         * modules/lchown: Make it clear it doesn't follow symlinks.
59189         (Files): Remove lib/lchown.h
59190         (Depends-on): Add unistd.
59191         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
59192         (Include): Include <unistd.h>, not "lchown.h".
59193         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
59194         REPLACE_LCHOWN.
59195
59196 2007-06-15  Jim Meyering  <jim@meyering.net>
59197
59198         Change license (GPL to LGPL) of fsusage and dependents.
59199         * modules/fsusage (License): Change to LGPL.
59200         * modules/full-read (License): Likewise.
59201         * modules/full-write (License): Likewise.
59202         * modules/safe-read (License): Likewise.
59203         * modules/safe-write (License): Likewise.
59204
59205 2007-06-14  Ben Pfaff  <blp@gnu.org>
59206
59207         Missing part of allocsa -> malloca transition.
59208         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
59209         gl_MALLOCA.
59210
59211 2007-06-12  Bruno Haible  <bruno@clisp.org>
59212
59213         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
59214         to ia64, x86_64, i386.
59215         Reported by Eric Blake.
59216
59217 2007-06-12  Bruno Haible  <bruno@clisp.org>
59218
59219         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
59220         cross-compiling to x86_64.
59221
59222 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
59223
59224         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
59225         glitch reported by Ralf Wildenhues in
59226         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
59227
59228         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
59229         Vin Shelton.
59230
59231 2007-06-11  Bruno Haible  <bruno@clisp.org>
59232
59233         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
59234         replacement string.
59235         Reported by Eric Blake.
59236
59237 2007-06-10  Bruno Haible  <bruno@clisp.org>
59238
59239         Prepare vasnprintf code for use with Unicode strings.
59240         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
59241         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
59242         TYPE_U32_STRING.
59243         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
59244         a_u32_string variants.
59245         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
59246         * lib/printf-args.c: Don't include config.h and the specification
59247         header if PRINTF_FETCHARGS is already defined.
59248         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
59249         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
59250         TYPE_U16_STRING, TYPE_U32_STRING.
59251         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
59252         u16_directive, u16_directives, u32_directive, u32_directives): New
59253         types.
59254         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
59255         New declarations.
59256         * lib/printf-parse.c: Don't include config.h and the specification
59257         header if PRINTF_PARSE is already defined. Eliminate the set of
59258         parameters for WIDE_CHAR_VERSION; the user of this file must provide
59259         them now. Include c-ctype.h.
59260         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
59261         directive and CHAR_T_ONLY_ASCII.
59262         * lib/vasnprintf.c: Don't include config.h and the specification header
59263         if VASNPRINTF is already defined.
59264         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
59265         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
59266         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
59267         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
59268         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
59269         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
59270         code accordingly.
59271         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
59272         pad_ourselves also in this case, with the 'c' and 's' directives, and
59273         with a different notion of "width".
59274         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
59275
59276 2007-06-10  Bruno Haible  <bruno@clisp.org>
59277
59278         * modules/unistr/u32-mbsnlen: New file.
59279         * lib/unistr/u32-mbsnlen.c: New file.
59280
59281         * modules/unistr/u16-mbsnlen: New file.
59282         * lib/unistr/u16-mbsnlen.c: New file.
59283
59284         * modules/unistr/u8-mbsnlen: New file.
59285         * lib/unistr/u8-mbsnlen.c: New file.
59286
59287         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
59288         declarations.
59289
59290 2007-06-10  Bruno Haible  <bruno@clisp.org>
59291
59292         * lib/string_.h (mbsnlen): New declaration.
59293         * lib/mbsnlen.c: New file.
59294         * m4/mbsnlen.m4: New file.
59295         * modules/mbsnlen: New file.
59296         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
59297         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
59298         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
59299
59300 2007-06-10  Bruno Haible  <bruno@clisp.org>
59301
59302         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
59303
59304 2007-06-10  Bruno Haible  <bruno@clisp.org>
59305
59306         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
59307         * lib/mbuiter.h: Likewise.
59308
59309 2007-06-10  Bruno Haible  <bruno@clisp.org>
59310
59311         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
59312         declaration.
59313
59314 2007-06-10  Karl Berry  <karl@gnu.org>
59315
59316         * config/srclist.txt: remove gettext entries, Bruno prefers
59317         to update individually.
59318
59319 2007-06-10  Bruno Haible  <bruno@clisp.org>
59320
59321         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
59322         'maxlen'. Ensure only length + width bytes are allocated, not
59323         length + 1 + width.
59324
59325 2007-06-09  Bruno Haible  <bruno@clisp.org>
59326
59327         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
59328         (CHAR_T): Remove macro.
59329         (VASNPRINTF): Update.
59330
59331 2007-06-09  Bruno Haible  <bruno@clisp.org>
59332
59333         * MODULES.html.sh (Unicode string functions): Add the new modules.
59334
59335         * modules/uniconv/u32-conv-to-enc: New file.
59336         * lib/uniconv/u32-conv-to-enc.c: New file.
59337         * modules/uniconv/u32-conv-to-enc-tests: New file.
59338         * tests/uniconv/test-u32-conv-to-enc.c: New file.
59339
59340         * modules/uniconv/u16-conv-to-enc: New file.
59341         * lib/uniconv/u16-conv-to-enc.c: New file.
59342         * lib/uniconv/u-conv-to-enc.h: New file.
59343         * modules/uniconv/u16-conv-to-enc-tests: New file.
59344         * tests/uniconv/test-u16-conv-to-enc.c: New file.
59345
59346         * modules/uniconv/u8-conv-to-enc: New file.
59347         * lib/uniconv/u8-conv-to-enc.c: New file.
59348         * modules/uniconv/u8-conv-to-enc-tests: New file.
59349         * tests/uniconv/test-u8-conv-to-enc.c: New file.
59350
59351         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
59352         u32_conv_to_encoding): New declarations.
59353
59354 2007-06-09  Bruno Haible  <bruno@clisp.org>
59355
59356         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
59357
59358 2007-06-09  Bruno Haible  <bruno@clisp.org>
59359
59360         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
59361         * modules/malloca: Renamed from modules/allocsa, updated.
59362         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
59363         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
59364         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
59365         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
59366         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
59367         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
59368         * modules/xmalloca: Renamed from modules/xallocsa, updated.
59369         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
59370         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
59371         * modules/c-strcasestr (Depends-on): Update.
59372         * lib/c-strcasestr.c: Update.
59373         * modules/c-strstr (Depends-on): Update.
59374         * lib/c-strstr.c: Update.
59375         * modules/canonicalize-lgpl (Depends-on): Update.
59376         * lib/canonicalize-lgpl.c: Update.
59377         * modules/clean-temp (Depends-on): Update.
59378         * lib/clean-temp.c: Update.
59379         * modules/csharpcomp (Depends-on): Update.
59380         * lib/csharpcomp.c: Update.
59381         * modules/csharpexec (Depends-on): Update.
59382         * lib/csharpexec.c: Update.
59383         * modules/javacomp (Depends-on): Update.
59384         * lib/javacomp.c: Update.
59385         * modules/javaexec (Depends-on): Update.
59386         * lib/javaexec.c: Update.
59387         * modules/mbscasestr (Depends-on): Update.
59388         * lib/mbscasestr.c: Update.
59389         * modules/mbsstr (Depends-on): Update.
59390         * lib/mbsstr.c: Update.
59391         * modules/setenv (Depends-on): Update.
59392         * lib/setenv.c: Update.
59393         * modules/strcasestr (Depends-on): Update.
59394         * lib/strcasestr.c: Update.
59395         * modules/striconveha (Depends-on): Update.
59396         * lib/striconveha.c: Update.
59397         * modules/relocatable-prog-wrapper (Files): Update.
59398         * lib/relocwrapper.c: Update.
59399         * build-aux/install-reloc: Update.
59400         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
59401
59402 2007-06-08  Bruno Haible  <bruno@clisp.org>
59403
59404         Port to uClibc.
59405         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
59406         * lib/fpurge.c (fpurge): Likewise.
59407         * lib/freading.c (freading): Likewise.
59408         * lib/fseeko.c (rpl_fseeko): Likewise.
59409         * lib/fseterr.c (fseterr): Likewise.
59410         * lib/fwriting.c (fwriting): Likewise.
59411         * tests/test-fflush.c (main): Avoid a failure on uClibc.
59412
59413 2007-06-08  Bruno Haible  <bruno@clisp.org>
59414
59415         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
59416         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
59417         * modules/gettext (Files): Add m4/intlmacosx.m4.
59418
59419 2007-06-07  Bruno Haible  <bruno@clisp.org>
59420
59421         * modules/localename-tests: New file.
59422         * tests/test-localename.c: New file.
59423
59424         New module 'localename'.
59425         * lib/localename.h: New file.
59426         * lib/localename.c: New file, from GNU gettext.
59427         * m4/localename.m4: New file.
59428         * modules/localename: New file.
59429
59430 2007-06-07  Bruno Haible  <bruno@clisp.org>
59431
59432         Work around the lack of <wchar.h> on some builds of uClibc.
59433         * doc/headers/wchar.texi: Update.
59434         * lib/wchar_.h: Include <wchar.h> only if it exists.
59435         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
59436         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
59437         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
59438         doesn't exist.
59439         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
59440         * modules/mbfile (Depends-on): Add wchar.
59441         * modules/mbiter (Depends-on): Likewise.
59442         * modules/mbuiter (Depends-on): Likewise.
59443         Reported by Simon Josefsson.
59444
59445 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
59446
59447         Work around problem reported by Steven M. Schweda in
59448         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
59449         Tru64 5.1B with the Compaq compiler environment installed declares
59450         an 'isblank' function but does not define it in the C library.
59451         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
59452         * lib/regex_internal.h (isblank): Likewise.
59453         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
59454         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
59455
59456 2007-06-05  Bruno Haible  <bruno@clisp.org>
59457
59458         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
59459         ia64.
59460         * modules/printf-safe: New file.
59461         * modules/fprintf-posix (Depends-on): Add printf-safe.
59462         * modules/printf-posix (Depends-on): Likewise.
59463         * modules/snprintf-posix (Depends-on): Likewise.
59464         * modules/sprintf-posix (Depends-on): Likewise.
59465         * modules/vasnprintf-posix (Depends-on): Likewise.
59466         * modules/vasprintf-posix (Depends-on): Likewise.
59467         * modules/vfprintf-posix (Depends-on): Likewise.
59468         * modules/vprintf-posix (Depends-on): Likewise.
59469         * modules/vsnprintf-posix (Depends-on): Likewise.
59470         * modules/vsprintf-posix (Depends-on): Likewise.
59471         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
59472         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
59473         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
59474         "no" on i386, x86_64, ia64.
59475         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
59476         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59477         on i386, x86_64, ia64.
59478         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
59479         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59480         on i386, x86_64, ia64.
59481         * tests/test-vasnprintf-posix.c: Include float.h.
59482         (LDBL80_WORDS): New macro.
59483         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59484         on i386, x86_64, ia64.
59485         * tests/test-vasprintf-posix.c: Include float.h.
59486         (LDBL80_WORDS): New macro.
59487         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59488         on i386, x86_64, ia64.
59489         * tests/test-snprintf-posix.c: Include float.h.
59490         * tests/test-sprintf-posix.c: Likewise.
59491         * tests/test-vsnprintf-posix.c: Likewise.
59492         * tests/test-vsprintf-posix.c: Likewise.
59493
59494 2007-06-05  Bruno Haible  <bruno@clisp.org>
59495
59496         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
59497         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
59498         non-IEEE numbers on i386, x86_64, ia64.
59499         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
59500         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
59501         * tests/test-isnanl.h: Include float.h.
59502         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
59503
59504 2007-06-05  Bruno Haible  <bruno@clisp.org>
59505
59506         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
59507         also the %a / %A. Handle the %a / %A code before this extra handling.
59508
59509 2007-06-05  Bruno Haible  <bruno@clisp.org>
59510
59511         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
59512         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
59513
59514 2007-06-05  Bruno Haible  <bruno@clisp.org>
59515
59516         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
59517         typo in variable name.
59518
59519 2007-06-05  Eric Blake  <ebb9@byu.net>
59520
59521         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
59522         Reported by Simon Josefsson.
59523
59524 2007-06-04  Bruno Haible  <bruno@clisp.org>
59525
59526         Avoid test failures on some PowerPC platforms.
59527         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
59528         Define differently for PowerPC.
59529         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
59530         Reported by Gary V. Vaughan <gary@gnu.org>.
59531
59532 2007-06-02  Bruno Haible  <bruno@clisp.org>
59533
59534         Fix test-stdint failure on FreeBSD/ia64.
59535         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
59536         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
59537         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
59538         * doc/headers/stdint.texi: Update.
59539
59540 2007-06-01  Bruno Haible  <bruno@clisp.org>
59541
59542         * tests/test-binary-io.c (main): Pass a third argument to open().
59543         Reported by Gary V. Vaughan <gary@gnu.org>.
59544
59545 2007-06-01  Bruno Haible  <bruno@clisp.org>
59546
59547         * doc/functions/frexpl.texi: Update for mingw.
59548
59549 2007-06-01  Bruno Haible  <bruno@clisp.org>
59550
59551         * tests/test-lseek.c (main): Disable test of errno for invalid third
59552         argument.
59553         * doc/functions/lseek.texi: Update.
59554         Reported by Gary V. Vaughan <gary@gnu.org>.
59555
59556 2007-05-28  Bruno Haible  <bruno@clisp.org>
59557
59558         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
59559
59560 2007-05-31  Eric Blake  <ebb9@byu.net>
59561
59562         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
59563         cross compiling.
59564
59565 2007-05-30  Eric Blake  <ebb9@byu.net>
59566         and Bruno Haible  <bruno@clisp.org>
59567
59568         Work around mingw test failures exposed by m4-1.4.9b.
59569         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
59570         * tests/test-unistd.c: Disable uid_t and git_t tests for the
59571         moment.
59572
59573 2007-05-30  Bruno Haible  <bruno@clisp.org>
59574
59575         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
59576         assuming that they are closed. Needed on HP-UX 11.
59577
59578 2007-05-29  Bruno Haible  <bruno@clisp.org>
59579
59580         Fix a problem with #include_next.
59581         * lib/dirent_.h: Split the double-inclusion guard.
59582         * lib/fcntl_.h: Likewise.
59583         * lib/float_.h: Likewise.
59584         * lib/iconv_.h: Likewise.
59585         * lib/inttypes_.h: Likewise.
59586         * lib/locale_.h: Likewise.
59587         * lib/math_.h: Likewise.
59588         * lib/netinet_in_.h: Likewise.
59589         * lib/search_.h: Likewise.
59590         * lib/signal_.h: Likewise.
59591         * lib/stdint_.h: Likewise.
59592         * lib/stdio_.h: Likewise.
59593         * lib/stdlib_.h: Likewise.
59594         * lib/string_.h: Likewise.
59595         * lib/sys_select_.h: Likewise.
59596         * lib/sys_socket_.h: Likewise.
59597         * lib/sys_stat_.h: Likewise.
59598         * lib/sys_time_.h: Likewise.
59599         * lib/sysexits_.h: Likewise.
59600         * lib/time_.h: Likewise.
59601         * lib/unistd_.h: Likewise.
59602         * lib/wchar_.h: Likewise.
59603         * lib/wctype_.h: Likewise.
59604
59605 2007-05-29  Bruno Haible  <bruno@clisp.org>
59606
59607         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
59608         for the moment.
59609
59610 2007-05-29  Bruno Haible  <bruno@clisp.org>
59611
59612         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
59613         invocation.
59614         Reported by Eric Blake.
59615
59616 2007-05-29  Bruno Haible  <bruno@clisp.org>
59617
59618         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
59619         compiling case.
59620
59621 2007-05-29  Eric Blake  <ebb9@byu.net>
59622             Bruno Haible  <bruno@clisp.org>
59623
59624         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
59625         cross compiles.
59626
59627 2007-05-28  Eric Blake  <ebb9@byu.net>
59628
59629         * modules/closein-tests (test_closein_LDADD): Support test on
59630         cygwin with libtool.
59631
59632 2007-05-28  Bruno Haible  <bruno@clisp.org>
59633
59634         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
59635         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
59636         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
59637         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
59638         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
59639         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
59640         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
59641         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
59642         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
59643
59644 2007-05-28  Eric Blake  <ebb9@byu.net>
59645
59646         Unconditionally include <config.h> in unit tests.
59647         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
59648         * tests/test-allocsa.c, tests/test-arcfour.c,
59649         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
59650         tests/test-array_list.c, tests/test-array_oset.c,
59651         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
59652         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
59653         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
59654         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
59655         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
59656         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
59657         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
59658         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
59659         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
59660         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
59661         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
59662         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
59663         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
59664         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
59665         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
59666         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
59667         test-md5.c, test-memmem.c, test-printf-posix.c,
59668         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
59669         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
59670         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
59671         test-strcasestr.c, test-striconv.c, test-striconveh.c,
59672         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
59673         test-vasnprintf-posix2.c, test-vasnprintf.c,
59674         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
59675         test-vfprintf-posix.c, test-vprintf-posix.c,
59676         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
59677         test-xvasprintf.c: Likewise.
59678
59679 2007-05-28  Bruno Haible  <bruno@clisp.org>
59680
59681         * gnulib-tool (func_import): Remember the --with-tests command-line
59682         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
59683         Reported by Eric Blake.
59684
59685 2007-05-28  Bruno Haible  <bruno@clisp.org>
59686
59687         * modules/ftell-tests: New file.
59688         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
59689         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
59690
59691         * lib/ftell.c: New file.
59692         * modules/ftell: New file.
59693         * m4/ftell.m4: New file.
59694         * doc/functions/ftell.texi: Update.
59695         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
59696         REPLACE_FTELL.
59697         * lib/stdio_.h (rpl_ftell): New declaration.
59698         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
59699         REPLACE_FTELL.
59700
59701 2007-05-28  Eric Blake  <ebb9@byu.net>
59702
59703         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
59704
59705 2007-05-28  Bruno Haible  <bruno@clisp.org>
59706
59707         * modules/fseek-tests: New file.
59708         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
59709         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
59710
59711         * lib/fseek.c: New file.
59712         * modules/fseek: New file.
59713         * m4/fseek.m4: New file.
59714         * doc/functions/fseek.texi: Update.
59715         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
59716         REPLACE_FSEEK.
59717         * lib/stdio_.h (rpl_fseek): New declaration.
59718         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
59719         REPLACE_FSEEK.
59720
59721 2007-05-28  Bruno Haible  <bruno@clisp.org>
59722
59723         * lib/stdio_.h (fflush): More comments.
59724
59725 2007-05-28  Bruno Haible  <bruno@clisp.org>
59726
59727         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
59728         runtime test.
59729
59730 2007-05-28  Eric Blake  <ebb9@byu.net>
59731
59732         Improve lseek module.
59733         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
59734         * lib/unistd_.h (lseek): Scale back link warning message.
59735         * tests/test-lseek.c: Beef up test.
59736         * tests/test-lseek.sh: Exercise more facets of lseek.
59737         Reported by Bruno Haible.
59738
59739 2007-05-28  Bruno Haible  <bruno@clisp.org>
59740
59741         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
59742         to define.
59743
59744 2007-05-27  Bruno Haible  <bruno@clisp.org>
59745
59746         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
59747
59748 2007-05-27  Bruno Haible  <bruno@clisp.org>
59749
59750         * modules/openmp: New file.
59751         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
59752         Noah Misch.
59753
59754 2007-05-26  Bruno Haible  <bruno@clisp.org>
59755
59756         * modules/chdir-long (Depends-on): Add fchdir.
59757         * modules/chdir-safer (Depends-on): Likewise.
59758         * modules/fts (Depends-on): Likewise.
59759         * modules/fts-lgpl (Depends-on): Likewise.
59760         * modules/openat (Depends-on): Likewise.
59761         * modules/savewd (Depends-on): Likewise.
59762
59763 2007-05-24  Eric Blake  <ebb9@byu.net>
59764
59765         Fix lseek on mingw.
59766         * modules/lseek: New module.
59767         * m4/lseek.m4: New file.
59768         * lib/lseek.c: New file.
59769         * modules/lseek-tests: New file.
59770         * tests/test-lseek.c: New file.
59771         * tests/test-lseek.sh: New file.
59772         * MODULES.html.sh: Document lseek module.
59773         * modules/fflush (Depends-on): Add lseek, fseeko.
59774         * modules/fseeko (Depends-on): Likewise.
59775         * modules/ftello (Depends-on): Likewise.
59776         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
59777         broken.
59778         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
59779         broken.
59780         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
59781         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
59782         * lib/ftello.c (rpl_ftello): Likewise.
59783         * tests/test-fseeko.c (main): Test this.
59784         * tests/test-fseeko.sh: Likewise.
59785         * tests/test-ftello.c (main): Likewise.
59786         * tests/test-ftello.sh: Likewise.
59787         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
59788         implies replacing fseek.
59789         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
59790         HAVE_FTELLO.
59791         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
59792         * modules/unistd (Makefile.am): Likewise.
59793         * lib/unistd_.h (lseek): Declare a replacement.
59794         * doc/functions/lseek.texi (lseek): Document this fix.
59795         * doc/functions/fseek.texi (fseek): Likewise.
59796         * doc/functions/ftell.texi (ftell): Likewise.
59797
59798 2007-05-24  Bruno Haible  <bruno@clisp.org>
59799
59800         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
59801         in the printed representation of a NaN.
59802         * tests/test-vasprintf-posix.c (test_function): Likewise.
59803         * tests/test-snprintf-posix.h (test_function): Likewise.
59804         * tests/test-sprintf-posix.h (test_function): Likewise.
59805         Reported by Eric Blake.
59806
59807 2007-05-23  Eric Blake  <ebb9@byu.net>
59808
59809         Fix fseeko/ftello on cygwin 1.5.24.
59810         * doc/functions/fseeko.texi (fseeko): Document the fix.
59811         * doc/functions/ftello.texi (ftello): Document the fix.
59812         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
59813         * doc/functions/stdout.text (stdout): New file.
59814         * doc/functions/stderr.text (stderr): New file.
59815         * doc/gnulib.texi (Function Substitutes): Use new files.
59816         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
59817         prior to 1.7.0.
59818         * tests/test-ftello.c (main): Likewise for ftello.
59819         * tests/test-fseeko.sh: New file.
59820         * tests/test-ftello.sh: New file.
59821         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
59822         with seekable stdin.
59823         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
59824         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
59825         (gl_REPLACE_FSEEKO): New macro.
59826         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
59827         * modules/fseeko (Files): Distribute fseeko.c.
59828         * modules/ftello (Files): Distribute ftello.c.
59829         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
59830         mode.
59831         * lib/ftello.c (rpl_ftello): New file.
59832         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
59833         fseeko, ftello.
59834         (gl_STDIN_LARGE_OFFSET): New macro.
59835         * modules/stdio (Makefile.am): Perform the replacement.
59836         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
59837
59838 2007-05-23  Bruno Haible  <bruno@clisp.org>
59839
59840         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
59841         GNULIB_POSIXCHECK is defined.
59842
59843 2007-05-21  Bruno Haible  <bruno@clisp.org>
59844
59845         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
59846         Check also the output for NaN arguments. When cross-compiling, guess
59847         no on IRIX.
59848         * lib/vasnprintf.c: Update comments.
59849         * tests/test-vasnprintf-posix.c (strisnan): New function.
59850         (test_function): Use it.
59851         * tests/test-vasprintf-posix.c (strisnan): New function.
59852         (test_function): Use it.
59853         * tests/test-snprintf-posix.h (strisnan): New function.
59854         (test_function): Use it.
59855         * tests/test-sprintf-posix.h (strisnan): New function.
59856         (test_function): Use it.
59857         Reported by Eric Blake.
59858
59859 2007-05-20  Bruno Haible  <bruno@clisp.org>
59860
59861         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
59862         numbers that fails on BeOS.
59863         * doc/functions/frexpl.texi: Update.
59864
59865 2007-05-20  Jim Meyering  <jim@meyering.net>
59866
59867         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
59868         forced upon us by glibc-2.6.
59869
59870 2007-05-20  Bruno Haible  <bruno@clisp.org>
59871
59872         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
59873         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
59874         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
59875         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
59876         NEED_PRINTF_INFINITE.
59877         (is_infinitel): New function.
59878         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
59879         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
59880         gl_PREREQ_VASNPRINTF_INFINITE.
59881         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
59882         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59883         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
59884         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
59885         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
59886         gl_PREREQ_VASNPRINTF_INFINITE.
59887         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59888         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59889         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59890         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59891         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59892         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59893         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59894         * doc/functions/fprintf.texi: Update.
59895         * doc/functions/printf.texi: Update.
59896         * doc/functions/snprintf.texi: Update.
59897         * doc/functions/sprintf.texi: Update.
59898         * doc/functions/vfprintf.texi: Update.
59899         * doc/functions/vprintf.texi: Update.
59900         * doc/functions/vsnprintf.texi: Update.
59901         * doc/functions/vsprintf.texi: Update.
59902
59903 2007-05-20  Bruno Haible  <bruno@clisp.org>
59904
59905         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
59906         was not found in libc.
59907         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
59908
59909 2007-05-20  Bruno Haible  <bruno@clisp.org>
59910
59911         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59912         printed as "-nan" instead of "nan".
59913         * tests/test-vasprintf-posix.c (test_function): Likewise.
59914         * tests/test-snprintf-posix.h (test_function): Likewise.
59915         * tests/test-sprintf-posix.h (test_function): Likewise.
59916         Needed for HP-UX 11.
59917
59918 2007-05-20  Jim Meyering  <jim@meyering.net>
59919
59920         Fix buggy test for the fchownat-deref bug.
59921         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
59922         symlink required for the run-test.  Without it, this test would
59923         always declare that fchownat doesn't work, and client code would
59924         unnecessarily use the replacement function with fixed libc.
59925         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
59926         Reported by Greg Schafer.
59927
59928 2007-05-19  Bruno Haible  <bruno@clisp.org>
59929
59930         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
59931         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
59932         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
59933         Needed for IRIX 6.5 and Solaris 2.5.1.
59934
59935 2007-05-19  Bruno Haible  <bruno@clisp.org>
59936
59937         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
59938         (test_function): Skip tests involving -0.0 on platforms where
59939         -0.0 = 0.0.
59940         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
59941         (test_function): Skip tests involving -0.0 on platforms where
59942         -0.0 = 0.0.
59943         * tests/test-snprintf-posix.h (have_minus_zero): New function.
59944         (test_function): Skip tests involving -0.0 on platforms where
59945         -0.0 = 0.0.
59946         * tests/test-sprintf-posix.h (have_minus_zero): New function.
59947         (test_function): Skip tests involving -0.0 on platforms where
59948         -0.0 = 0.0.
59949         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
59950         tests.
59951         * tests/test-printf-posix.h (test_function): Likewise.
59952         * tests/test-printf-posix.output: Remove all -0.0 related results.
59953         Needed for IRIX 6.5.
59954
59955 2007-05-19  Bruno Haible  <bruno@clisp.org>
59956
59957         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59958         printed as "nan0x7fffffff" instead of "nan".
59959         * tests/test-vasprintf-posix.c (test_function): Likewise.
59960         * tests/test-snprintf-posix.h (test_function): Likewise.
59961         * tests/test-sprintf-posix.h (test_function): Likewise.
59962         * tests/test-fprintf-posix.h (NaN): Remove macro.
59963         (test_function): Remove all NaN related tests.
59964         * tests/test-printf-posix.h (NaN): Remove macro.
59965         (test_function): Remove all NaN related tests.
59966         * tests/test-printf-posix.output: Remove all NaN related results.
59967         Needed for IRIX 6.5.
59968
59969 2007-05-19  Bruno Haible  <bruno@clisp.org>
59970
59971         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
59972         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
59973
59974 2007-05-19  Bruno Haible  <bruno@clisp.org>
59975
59976         * lib/float_.h: New file.
59977         * m4/float_h.m4: New file.
59978         * modules/float: New file.
59979         * modules/isnanl (Dependencies): Add float.
59980         * modules/isnanl-nolibm (Dependencies): Likewise.
59981         * modules/mathl (Dependencies): Likewise.
59982         * modules/printf-frexpl (Dependencies): Likewise.
59983         * modules/signbit (Dependencies): Likewise.
59984         * modules/vasnprintf (Dependencies): Likewise.
59985         * doc/headers/float.texi: Update.
59986
59987 2007-05-19  Jim Meyering  <jim@meyering.net>
59988
59989         * lib/utimens.c (gl_futimens): Rename from futimens,
59990         now that glibc-2.6 declares futimens.
59991         * lib/utimens.h: Likewise.
59992
59993 2007-05-19  Bruno Haible  <bruno@clisp.org>
59994
59995         Avoid test failures on mingw.
59996         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
59997         * tests/test-printf-posix.sh: Likewise.
59998         * tests/test-vfprintf-posix.sh: Likewise.
59999         * tests/test-vprintf-posix.sh: Likewise.
60000
60001 2007-05-19  Bruno Haible  <bruno@clisp.org>
60002
60003         Fix *printf result for NaN, Inf, -0.0 on mingw.
60004         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
60005         * lib/vasnprintf.c: Include math.h and isnan.h.
60006         (is_infinite_or_zero): New function.
60007         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
60008         values in the %f, %F, %e, %E, %g, %G directives.
60009         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
60010         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60011         gl_PRINTF_INFINITE and test its result. Invoke
60012         gl_PREREQ_VASNPRINTF_INFINITE.
60013         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60014         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60015         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60016         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60017         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60018         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60019         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60020         * doc/functions/fprintf.texi: Update.
60021         * doc/functions/printf.texi: Update.
60022         * doc/functions/snprintf.texi: Update.
60023         * doc/functions/sprintf.texi: Update.
60024         * doc/functions/vfprintf.texi: Update.
60025         * doc/functions/vprintf.texi: Update.
60026         * doc/functions/vsnprintf.texi: Update.
60027         * doc/functions/vsprintf.texi: Update.
60028
60029 2007-05-19  Bruno Haible  <bruno@clisp.org>
60030
60031         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
60032         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
60033         Instead of multiplying with 10^k, set extra_zeroes to k.
60034         (scale10_round_long_double): Remove function.
60035
60036 2007-05-18  Bruno Haible  <bruno@clisp.org>
60037
60038         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
60039         introduced on 2007-05-06.
60040
60041 2007-05-18  Bruno Haible  <bruno@clisp.org>
60042
60043         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
60044         %g directives.
60045         * tests/test-vasprintf-posix.c (test_function): Likewise.
60046         * tests/test-snprintf-posix.h (test_function): Likewise.
60047         * tests/test-sprintf-posix.h (test_function): Likewise.
60048
60049 2007-05-18  Bruno Haible  <bruno@clisp.org>
60050
60051         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
60052         (strmatch): New function.
60053         (test_function): Test the %f directive on numbers of various exponents.
60054         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
60055         (strmatch): New function.
60056         (test_function): Test the %f directive on numbers of various exponents.
60057         * tests/test-snprintf-posix.h (strmatch): New function.
60058         (test_function): Test the %f directive on numbers of various exponents.
60059         * tests/test-sprintf-posix.h (strmatch): New function.
60060         (test_function): Test the %f directive on numbers of various exponents.
60061         * tests/test-snprintf-posix.c (SIZEOF): New macro.
60062         * tests/test-sprintf-posix.c (SIZEOF): New macro.
60063         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
60064         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
60065
60066 2007-05-18  Bruno Haible  <bruno@clisp.org>
60067
60068         Add support for 'long double' number output.
60069         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
60070         * lib/vasnprintf.c: Include math.h and float+.h.
60071         (mp_limb_t): New type.
60072         (GMP_LIMB_BITS): New macro.
60073         (mp_twolimb_t): New type.
60074         (GMP_TWOLIMB_BITS): New macro.
60075         (mpn_t): New type.
60076         (multiply, divide, convert_to_decimal, decode_long_double,
60077         scale10_round_long_double, scale10_round_decimal_long_double,
60078         floorlog10l): New functions.
60079         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
60080         for the %f, %F, %e, %E, %g, %G directives.
60081         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
60082         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60083         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
60084         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
60085         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60086         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60087         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60088         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60089         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60090         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60091         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60092         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
60093         * modules/snprintf-posix (Depends-on): Likewise.
60094         * modules/sprintf-posix (Depends-on): Likewise.
60095         * modules/vasnprintf-posix (Depends-on): Likewise.
60096         * modules/vasprintf-posix (Depends-on): Likewise.
60097         * modules/vfprintf-posix (Depends-on): Likewise.
60098         * modules/vsnprintf-posix (Depends-on): Likewise.
60099         * modules/vsprintf-posix (Depends-on): Likewise.
60100         * modules/vasnprintf (Files): Add lib/float+.h.
60101         * doc/functions/fprintf.texi: Update.
60102         * doc/functions/printf.texi: Update.
60103         * doc/functions/snprintf.texi: Update.
60104         * doc/functions/sprintf.texi: Update.
60105         * doc/functions/vfprintf.texi: Update.
60106         * doc/functions/vprintf.texi: Update.
60107         * doc/functions/vsnprintf.texi: Update.
60108         * doc/functions/vsprintf.texi: Update.
60109
60110 2007-05-18  Bruno Haible  <bruno@clisp.org>
60111
60112         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
60113
60114 2007-05-18  Bruno Haible  <bruno@clisp.org>
60115
60116         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
60117         for printing 64-bit integers. Needed for mingw.
60118
60119 2007-05-18  Bruno Haible  <bruno@clisp.org>
60120
60121         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
60122         gl_FUNC_FREXPL_WORKS.
60123         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
60124
60125 2007-05-18  Bruno Haible  <bruno@clisp.org>
60126
60127         * modules/frexpl-nolibm-tests: New file.
60128
60129         * modules/frexpl-nolibm: New file.
60130         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
60131
60132 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
60133
60134         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
60135         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
60136         GCC 4.2, which otherwise issues a lot of warnings.
60137         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
60138         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
60139         Likewise.
60140         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
60141         * modules/iconv_open (iconv.h): Likewise.
60142         * modules/locale (locale.h): Likewise.
60143         * modules/netinet_in (netinet/in.h): Likewise.
60144         * modules/sys_select (sys_select.h): Likewise.
60145         * modules/sys_socket (sys/socket.h): Likewise.
60146         * modules/sys_stat (sys/stat.h): Likewise.
60147         * modules/sysexits (sysexits.h): Likewise.
60148         * modules/unistd (unistd.h): Likewise.
60149
60150 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60151
60152         * modules/closein-tests (Makefile.am): Distribute
60153         `test-closein.sh'.
60154
60155 2007-05-17  Bruno Haible  <bruno@clisp.org>
60156
60157         * tests/test-printf-posix.output: Renamed from
60158         tests/test-fprintf-posix.out.
60159         * modules/fprintf-posix-tests: Update.
60160         * modules/printf-posix-tests: Update.
60161         * modules/vfprintf-posix-tests: Update.
60162         * modules/vprintf-posix-tests: Update.
60163         * tests/test-fprintf-posix.sh: Update.
60164         * tests/test-printf-posix.sh: Update.
60165         * tests/test-vfprintf-posix.sh: Update.
60166         * tests/test-vprintf-posix.sh: Update.
60167         Reported by Ralf Wildenhues.
60168
60169 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
60170
60171         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
60172         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
60173         GCC 4.2, which otherwise issues a lot of warnings.
60174         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
60175         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
60176         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
60177         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
60178         it should no longer be needed.
60179         * lib/string_.h: Likewise.
60180         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
60181         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
60182         * modules/inttypes (inttypes.h): Likewise.
60183         * modules/math (math.h): Likewise.
60184         * modules/search (search.h): Likewise.
60185         * modules/signal (signal.h): Likewise.
60186         * modules/stdint (stdint.h): Likewise.
60187         * modules/stdio (stdio.h): Likewise.
60188         * modules/stdlib (stdlib.h): Likewise.
60189         * modules/string (string.h): Likewise.
60190         * modules/sys_time (sys/time.h): Likewise.
60191         * modules/time (time.h): Likewise.
60192         * modules/wchar (wchar.h): Likewise.
60193         * modules/wctype (wtype.h): Likewise.
60194
60195 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
60196
60197         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
60198
60199 2007-05-13  Bruno Haible  <bruno@clisp.org>
60200
60201         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
60202         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
60203         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
60204         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
60205         (gl_PREREQ_STRTOK_R): Don't require it here.
60206
60207 2007-05-13  Bruno Haible  <bruno@clisp.org>
60208
60209         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
60210         when used in C++ mode.
60211
60212 2007-05-12  Bruno Haible  <bruno@clisp.org>
60213
60214         * lib/linebuffer.h: Tweak doc.
60215         * lib/linebuffer.c: Likewise.
60216
60217 2007-05-12  James Youngman  <jay@gnu.org>
60218
60219         * lib/linebuffer.c (readlinebuffer_delim): New function,
60220         like readlinebuffer, but use a caller-specified delimiter.
60221         (readlinebuffer): Just call readlinebuffer_delim with '\n'
60222         as the delimiter.
60223         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
60224
60225 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60226
60227         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
60228         * modules/openat (Files): Remove openat-die.c.
60229         (Depends-on): Add openat-die.
60230         * modules/openat-die: New module.
60231
60232 2007-05-06  Bruno Haible  <bruno@clisp.org>
60233
60234         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
60235         Update with info about Cygwin.
60236         * doc/functions/fprintf.texi: Update.
60237         * doc/functions/printf.texi: Update.
60238         * doc/functions/snprintf.texi: Update.
60239         * doc/functions/sprintf.texi: Update.
60240         * doc/functions/vfprintf.texi: Update.
60241         * doc/functions/vprintf.texi: Update.
60242         * doc/functions/vsnprintf.texi: Update.
60243         * doc/functions/vsprintf.texi: Update.
60244         Reported by Eric Blake.
60245
60246 2007-05-06  Bruno Haible  <bruno@clisp.org>
60247
60248         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
60249         padding ourselves for the floating-point directives.
60250         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
60251         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
60252         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60253         gl_PRINTF_FLAG_ZERO and test its result. Invoke
60254         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
60255         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60256         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
60257         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60258         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60259         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60260         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60261         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60262         * tests/test-snprintf-posix.h (test_function): Also check the width
60263         and some flags in the %f directive.
60264         * tests/test-sprintf-posix.h (test_function): Likewise.
60265         * tests/test-vasnprintf-posix.c (test_function): Likewise.
60266         * tests/test-vasprintf-posix.c (test_function): Likewise.
60267         * doc/functions/fprintf.texi: Update.
60268         * doc/functions/printf.texi: Update.
60269         * doc/functions/snprintf.texi: Update.
60270         * doc/functions/sprintf.texi: Update.
60271         * doc/functions/vfprintf.texi: Update.
60272         * doc/functions/vprintf.texi: Update.
60273         * doc/functions/vsnprintf.texi: Update.
60274         * doc/functions/vsprintf.texi: Update.
60275
60276 2007-05-06  Bruno Haible  <bruno@clisp.org>
60277
60278         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
60279         pass the ' flag character to sprintf or snprintf.
60280         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
60281         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
60282         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60283         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
60284         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
60285         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60286         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
60287         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60288         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60289         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60290         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60291         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60292         * tests/test-snprintf-posix.h (test_function): Also check the grouping
60293         flag.
60294         * tests/test-sprintf-posix.h (test_function): Likewise.
60295         * tests/test-vasnprintf-posix.c (test_function): Likewise.
60296         * tests/test-vasprintf-posix.c (test_function): Likewise.
60297         * doc/functions/fprintf.texi: Update.
60298         * doc/functions/printf.texi: Update.
60299         * doc/functions/snprintf.texi: Update.
60300         * doc/functions/sprintf.texi: Update.
60301         * doc/functions/vfprintf.texi: Update.
60302         * doc/functions/vprintf.texi: Update.
60303         * doc/functions/vsnprintf.texi: Update.
60304         * doc/functions/vsprintf.texi: Update.
60305
60306 2007-05-01  Bruno Haible  <bruno@clisp.org>
60307
60308         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
60309
60310 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
60311
60312         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
60313         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
60314
60315 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60316
60317         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
60318         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
60319         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
60320
60321 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
60322
60323         * lib/argp-help.c (struct hol_entry): New member `ord'.
60324         (HOL_ENTRY_PTRCMP): Use ord for comparison
60325         (hol_sort): Initialize ord.
60326
60327 2007-05-01  Bruno Haible  <bruno@clisp.org>
60328
60329         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
60330         Reported by Eric Blake.
60331         * doc/gnulib.texi (Function Substitutes): Update.
60332
60333 2007-05-01  Bruno Haible  <bruno@clisp.org>
60334
60335         * doc/functions.texi: Remove file, now redundant through
60336         doc/functions/*.texi.
60337
60338 2007-05-01  Bruno Haible  <bruno@clisp.org>
60339
60340         * modules/argp (Depends-on): Add sleep.
60341
60342 2007-05-01  Bruno Haible  <bruno@clisp.org>
60343
60344         * modules/sleep-tests: New file.
60345         * tests/test-sleep.c: New file.
60346
60347         * modules/sleep: New file.
60348         * lib/sleep.c: New file.
60349         * m4/sleep.m4: New file.
60350         * lib/unistd_.h (sleep): New declaration.
60351         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
60352         HAVE_SLEEP.
60353         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
60354         * doc/functions/sleep.texi: Document the sleep module.
60355
60356 2007-05-01  Bruno Haible  <bruno@clisp.org>
60357
60358         * lib/sigprocmask.h: Remove file.
60359         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
60360         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
60361         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
60362         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
60363         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
60364         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
60365         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
60366         HAVE_SIGSET_T as a shell variable.
60367         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
60368         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
60369         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
60370         (Depends-on): Add signal. Remove verify.
60371         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
60372         (Include): Mention <signal.h> instead of sigprocmask.h.
60373         * NEWS: Mention the change.
60374         * lib/fatal-signal.c: Don't include sigprocmask.h.
60375
60376 2007-05-01  Bruno Haible  <bruno@clisp.org>
60377
60378         * modules/signal: New file.
60379         * lib/signal_.h: New file.
60380         * m4/signal_h.m4: New file.
60381
60382 2007-05-01  Bruno Haible  <bruno@clisp.org>
60383
60384         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
60385         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
60386         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
60387         HAVE_WCTYPE_CTMP_BUG into wctype.h.
60388
60389 2007-05-01  Bruno Haible  <bruno@clisp.org>
60390
60391         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
60392         configure time.
60393         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
60394         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
60395         * modules/sys_stat (Makefile.am): Substitute their values into
60396         sys/stat.h.
60397
60398 2007-05-01  Bruno Haible  <bruno@clisp.org>
60399
60400         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
60401         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
60402         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
60403
60404 2007-05-01  Bruno Haible  <bruno@clisp.org>
60405
60406         * doc/header/assert.texi: Undo last change: don't mention the gnulib
60407         'assert' module here.
60408
60409 2007-05-01  Bruno Haible  <bruno@clisp.org>
60410
60411         * doc/functions/*.texi: New files.
60412         * doc/functions/google-ranking.txt: New file.
60413         * doc/gnulib.texi (Function Substitutes): New chapter.
60414         (ctime, inet_ntoa): Remove sections.
60415         * doc/ctime.texi: Remove file.
60416         * doc/inet_ntoa.texi: Remove file.
60417         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
60418         dependencies.
60419         (%.info): New rule, specifying a --reference-limit.
60420
60421 2007-05-01  Bruno Haible  <bruno@clisp.org>
60422
60423         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
60424
60425 2007-05-01  Bruno Haible  <bruno@clisp.org>
60426
60427         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
60428         the portability of 'mkdir' to mingw systems.
60429
60430 2007-05-01  Bruno Haible  <bruno@clisp.org>
60431
60432         * doc/headers/google-ranking.txt: New file.
60433
60434 2007-04-30  Eric Blake  <ebb9@byu.net>
60435
60436         Prefer fseeko to fseek.
60437         * modules/getpass (Depends-on): Add fseeko.
60438         * lib/getpass.c (getpass): Use fseeko, not fseek.
60439
60440 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
60441
60442         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
60443         assumes the sorting is stable, while most qsort implementations
60444         are not.  Use argument addresses to ensure they never compare as
60445         equal.
60446
60447         * tests/test-argp-2.sh (usage-indent test): Fix output
60448         (func_compare): Restore diff options
60449         * tests/test-argp.c: Restore #include "progname.h"
60450
60451 2007-04-29  Bruno Haible  <bruno@clisp.org>
60452
60453         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
60454         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60455         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
60456         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60457         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
60458         (configure.ac): Define CHECK_SNPRINTF_POSIX.
60459         (TESTS, check_PROGRAMS): Add test-snprintf.
60460         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
60461         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
60462         (TESTS, check_PROGRAMS): Add test-vsnprintf.
60463         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
60464         assertions that fail on HP-UX, OSF/1, or IRIX.
60465         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
60466
60467 2007-04-29  Bruno Haible  <bruno@clisp.org>
60468
60469         * MODULES.html.sh (posix_functions): Remove 'contents'.
60470
60471 2007-04-29  Karl Berry  <karl@gnu.org>
60472
60473         * config/srclist.txt (gendocs_template_min): new entry.
60474
60475 2007-04-29  Bruno Haible  <bruno@clisp.org>
60476
60477         Work around fpurge bug on BSD systems.
60478         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
60479         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
60480         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
60481         fpurge to rpl_fpurge if the system already has this function.
60482         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
60483         the case where the system already has this function. Correct invariants
60484         on BSD systems.
60485         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
60486         BSD systems.
60487
60488 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
60489
60490         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
60491         proposed by Sven Verdoolaege.
60492
60493         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
60494         options.
60495         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
60496         (usage and help tests): Update
60497
60498 2007-04-29  Bruno Haible  <bruno@clisp.org>
60499
60500         * tests/test-fflush.c (main): Use a file of size 17, not 10.
60501         Print more information in case of failure. Disable a test on BeOS.
60502
60503 2007-04-29  Bruno Haible  <bruno@clisp.org>
60504
60505         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
60506         This helps debugging on systems on which no gdb is available.
60507
60508 2007-04-29  Bruno Haible  <bruno@clisp.org>
60509
60510         * lib/freading.h: Improve comments.
60511         * lib/fwriting.h: Likewise.
60512         * tests/test-freading.c (main): Don't check freading immediately after
60513         repositioning. Needed for glibc.
60514
60515 2007-04-29  Bruno Haible  <bruno@clisp.org>
60516
60517         * lib/freading.c (freading): Trivial simplification.
60518
60519 2007-04-28  Bruno Haible  <bruno@clisp.org>
60520
60521         * tests/test-fwriting.c (main): Also test the interaction between
60522         fflush and fwriting.
60523         * modules/fwriting-tests (Depends-on): Add fflush.
60524
60525         * tests/test-freading.c (main): Also test the interaction between
60526         fflush and freading.
60527         * modules/freading-tests (Depends-on): Add fflush.
60528
60529 2007-04-28  Bruno Haible  <bruno@clisp.org>
60530
60531         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
60532         fseeko and ftello.
60533         Suggested by Eric Blake.
60534
60535 2007-04-28  Jim Meyering  <jim@meyering.net>
60536
60537         Avoid false-negative in gl_STDINT_H's C99 conformance test.
60538         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
60539         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
60540
60541 2007-04-27  Eric Blake  <ebb9@byu.net>
60542
60543         * doc/headers/assert.texi (assert.h): Document assert module use.
60544
60545 2007-04-27  Bruno Haible  <bruno@clisp.org>
60546
60547         * doc/headers/*.texi: New files.
60548         * doc/gnulib.texi (Header File Substitutes): New chapter.
60549         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
60550         dependencies.
60551         (standards.info ,standards.html, standards.dvi): Update dependencies.
60552         (mostlyclean, clean): New targets.
60553
60554 2007-04-27  Bruno Haible  <bruno@clisp.org>
60555
60556         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
60557         * modules/sysexits (Files, Makefile.am): Update.
60558
60559         * lib/sys_socket_.h: Renamed from lib/socket_.h.
60560         * modules/sys_socket (Files, Makefile.am): Update.
60561
60562         * lib/sys_stat_.h: Renamed from lib/stat_.h.
60563         * modules/sys_stat (Files, Makefile.am): Update.
60564
60565 2007-04-27  Eric Blake  <ebb9@byu.net>
60566
60567         * lib/freading.h: Improve comments.
60568         * lib/fwriting.h: Likewise.
60569         * lib/fflush.c: Likewise.
60570
60571         Fix closein for mingw.
60572         * modules/closein-tests: Add tests for closein.
60573         * tests/test-closein.c: New file.
60574         * tests/test-closein.sh: Likewise.
60575         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
60576         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
60577
60578 2007-04-27  Bruno Haible  <bruno@clisp.org>
60579
60580         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
60581         version is < 6.
60582         * lib/math_.h [__DECC]: Likewise.
60583         * lib/stdio_.h [__DECC]: Likewise.
60584         * lib/stdlib_.h [__DECC]: Likewise.
60585         * lib/string_.h [__DECC]: Likewise.
60586         * lib/time_.h [__DECC]: Likewise.
60587         * lib/wchar_.h [__DECC]: Likewise.
60588         * lib/wctype_.h [__DECC]: Likewise.
60589
60590 2007-04-27  Bruno Haible  <bruno@clisp.org>
60591
60592         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
60593
60594 2007-04-27  Bruno Haible  <bruno@clisp.org>
60595
60596         * lib/fflush.c: Add comments.
60597         * modules/fpurge-tests (Depends-on): Add fflush.
60598         * modules/freadable-tests (Depends-on): Likewise.
60599         * modules/fwritable-tests (Depends-on): Likewise.
60600
60601 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
60602
60603         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
60604         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
60605         Report by Bruno Haible <bruno@clisp.org>.
60606
60607 2007-04-26  Eric Blake  <ebb9@byu.net>
60608
60609         Fix fflush on mingw.
60610         * modules/fflush (Depends-on): Add freading.
60611         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
60612         but unread data.
60613
60614 2007-04-26  Eric Blake  <ebb9@byu.net>
60615         and Bruno Haible  <bruno@clisp.org>
60616
60617         Implement freading and fwriting.
60618         * lib/freading.c: New file.
60619         * lib/freading.h: Likewise.
60620         * m4/freading.m4: Likewise.
60621         * modules/freading: Likewise.
60622         * modules/freading-tests: Likewise.
60623         * tests/test-freading.c: Likewise.
60624         * lib/fwriting.c: New file.
60625         * lib/fwriting.h: Likewise.
60626         * m4/fwriting.m4: Likewise.
60627         * modules/fwriting: Likewise.
60628         * modules/fwriting-tests: Likewise.
60629         * tests/test-fwriting.c: Likewise.
60630         * MODULES.html.sh (File stream based Input/Output): Mention them.
60631
60632 2007-04-26  Bruno Haible  <bruno@clisp.org>
60633
60634         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
60635         'long' when we assume it.
60636         Suggested by Eric Blake.
60637
60638 2007-04-26  Bruno Haible  <bruno@clisp.org>
60639
60640         Ensure fseeko, ftello are declared on glibc systems.
60641         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
60642         * modules/fseeko (configure.ac-early): Likewise.
60643         * modules/ftello (configure.ac-early): Likewise.
60644         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
60645         AC_FUNC_FSEEKO for this.
60646         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
60647         (gl_CHECK_FSEEKO): Remove macro.
60648
60649 2007-04-26  Bruno Haible  <bruno@clisp.org>
60650
60651         * tests/test-fflush.c (main): Also check the ftell result after
60652         fflush and fseek/fseeko.
60653         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
60654         file descriptor position cache in the stream.
60655         * lib/fseeko.c (rpl_fseeko): Likewise.
60656
60657 2007-04-26  Bruno Haible  <bruno@clisp.org>
60658
60659         * modules/fflush-tests (Depends-on): Add fseeko.
60660
60661 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
60662             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60663
60664         * lib/argz_.h: ensure error_t definition is obtained in same
60665         mechanism system argz.h would have.
60666         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
60667         argz facilities are known bad.  Err on the side of caution if
60668         cross-compiling.
60669
60670 2007-04-25  Eric Blake  <ebb9@byu.net>
60671
60672         * lib/fpurge.c (includes): Use stdlib.h for free.
60673         * tests/test-fflush.c (main): Also test fflush-fseeko.
60674
60675 2007-04-25  Bruno Haible  <bruno@clisp.org>
60676
60677         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
60678         * lib/fseeko.c: New file.
60679         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
60680         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
60681         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
60682         gl_FUNC_FSEEKO.
60683         (gl_FUNC_FSEEKO): Invoke it.
60684         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
60685         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
60686         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
60687
60688 2007-04-25  Bruno Haible  <bruno@clisp.org>
60689
60690         * modules/fflush (Depends-on): Add ftello.
60691
60692 2007-04-25  Bruno Haible  <bruno@clisp.org>
60693
60694         * modules/ftello-tests: New file.
60695         * tests/test-ftello.c: New file.
60696
60697         * modules/ftello: New file.
60698         * m4/ftello.m4: New file.
60699         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
60700         HAVE_FTELLO.
60701         * lib/stdio_.h (ftello): New declaration.
60702         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
60703         HAVE_FTELLO.
60704
60705 2007-04-25  Bruno Haible  <bruno@clisp.org>
60706
60707         * modules/fseeko-tests: New file.
60708         * tests/test-fseeko.c: New file.
60709
60710         * modules/fseeko: New file.
60711         * m4/fseeko.m4: New file.
60712         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
60713         HAVE_FSEEKO.
60714         * lib/stdio_.h (fseeko): New declaration.
60715         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
60716         HAVE_FSEEKO.
60717
60718 2007-04-25  Bruno Haible  <bruno@clisp.org>
60719
60720         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
60721
60722 2007-04-25  Bruno Haible  <bruno@clisp.org>
60723
60724         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
60725         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
60726         * tests/test-unistd.c: Likewise.
60727         * tests/test-fcntl.c: Likewise.
60728
60729 2007-04-23  Eric Blake  <ebb9@byu.net>
60730
60731         * lib/fflush.c: Fix missing include.
60732         Reported by Bruno Haible.
60733
60734 2007-04-23  Bruno Haible  <bruno@clisp.org>
60735
60736         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
60737         Reported by Eric Blake.
60738
60739 2007-04-23  Bruno Haible  <bruno@clisp.org>
60740
60741         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
60742
60743 2007-04-23  Bruno Haible  <bruno@clisp.org>
60744
60745         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
60746
60747 2007-04-23  Bruno Haible  <bruno@clisp.org>
60748
60749         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
60750         Needed on HP-UX 11.
60751
60752 2007-04-16  Eric Blake  <ebb9@byu.net>
60753
60754         Make fflush rely on fpurge.
60755         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
60756         open coding all variants.
60757         * modules/fflush (Depends-on): Add fpurge and unistd.
60758         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
60759         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
60760
60761         Fix --with-tests compilation on cygwin.
60762         * modules/argmatch-tests (Makefile.am): List gnulib library first
60763         in LDADD.
60764         * modules/argp-tests (Makefile.am): Likewise.
60765         * modules/array-list-tests (Makefile.am): Likewise.
60766         * modules/array-oset-tests (Makefile.am): Likewise.
60767         * modules/avltree-list-tests (Makefile.am): Likewise.
60768         * modules/avltree-oset-tests (Makefile.am): Likewise.
60769         * modules/avltreehash-list-tests (Makefile.am): Likewise.
60770         * modules/carray-list-tests (Makefile.am): Likewise.
60771         * modules/dirname-tests (Makefile.am): Likewise.
60772         * modules/frexp-tests (Makefile.am): Likewise.
60773         * modules/isnanl-tests (Makefile.am): Likewise.
60774         * modules/linked-list-tests (Makefile.am): Likewise.
60775         * modules/linkedhash-list-tests (Makefile.am): Likewise.
60776         * modules/lock-tests (Makefile.am): Likewise.
60777         * modules/rbtree-list-tests (Makefile.am): Likewise.
60778         * modules/rbtree-oset-tests (Makefile.am): Likewise.
60779         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
60780         * modules/tls-tests (Makefile.am): Likewise.
60781         * modules/tsearch-tests (Makefile.am): Likewise.
60782         * modules/xvasprintf-tests (Makefile.am): Likewise.
60783
60784         Fix fpurge for cygwin.
60785         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
60786         value.
60787         * modules/fpurge-tests (Depends-on): Clean up trash.
60788
60789 2007-04-16  Simon Josefsson  <simon@josefsson.org>
60790
60791         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
60792
60793         * m4/autobuild.m4: Re-indent.
60794
60795 2007-04-13  Bruno Haible  <bruno@clisp.org>
60796
60797         * modules/fpurge-tests: New file.
60798         * tests/test-fpurge.c: New file.
60799
60800         * modules/fpurge: New file.
60801         * lib/fpurge.h: New file.
60802         * lib/fpurge.c: New file.
60803         * m4/fpurge.m4: New file.
60804
60805 2007-04-13  Bruno Haible  <bruno@clisp.org>
60806
60807         * modules/fbufmode-tests: New file.
60808         * tests/test-fbufmode.c: New file.
60809
60810         * modules/fbufmode: New file.
60811         * lib/fbufmode.h: New file.
60812         * lib/fbufmode.c: New file.
60813         * m4/fbufmode.m4: New file.
60814
60815 2007-04-13  Bruno Haible  <bruno@clisp.org>
60816
60817         * modules/fwritable-tests: New file.
60818         * tests/test-fwritable.c: New file.
60819
60820         * modules/fwritable: New file.
60821         * lib/fwritable.h: New file.
60822         * lib/fwritable.c: New file.
60823         * m4/fwritable.m4: New file.
60824
60825 2007-04-13  Bruno Haible  <bruno@clisp.org>
60826
60827         * modules/freadable-tests: New file.
60828         * tests/test-freadable.c: New file.
60829
60830         * modules/freadable: New file.
60831         * lib/freadable.h: New file.
60832         * lib/freadable.c: New file.
60833         * m4/freadable.m4: New file.
60834
60835 2007-04-13  Bruno Haible  <bruno@clisp.org>
60836
60837         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
60838         MOSTLYCLEANFILES.
60839
60840 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
60841
60842         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
60843         gzip bootstrap.conf to avoid dragging in i18n machinery.
60844         (gnulib_tool_option): Use it.
60845
60846 2007-04-13  Bruno Haible  <bruno@clisp.org>
60847
60848         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
60849         %F directives.
60850         * tests/test-vasprintf-posix.c (test_function): Likewise.
60851         * tests/test-snprintf-posix.h (test_function): Likewise.
60852         * tests/test-sprintf-posix.h (test_function): Likewise.
60853         * tests/test-fprintf-posix.h (test_function): Likewise.
60854         * tests/test-printf-posix.h (test_function): Likewise.
60855         * tests/test-fprintf-posix.out: Likewise.
60856
60857 2007-04-13  Bruno Haible  <bruno@clisp.org>
60858
60859         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
60860         * modules/tls-tests (configure.ac): Likewise.
60861         Reported by Arto C. Nirkko <anirkko@insel.ch>.
60862
60863 2007-04-13  Bruno Haible  <bruno@clisp.org>
60864
60865         * lib/tls.c (glthread_tls_get): Fix return type.
60866         Patch by Arto C. Nirkko <anirkko@insel.ch>.
60867
60868 2007-04-12  Eric Blake  <ebb9@byu.net>
60869
60870         * modules/gettime (Depends-on): Remove gettime.
60871         Reported by Dmitry V. Levin.
60872
60873 2007-04-12  Bruno Haible  <bruno@clisp.org>
60874
60875         * modules/fflush (Include): Mention <stdio.h>.
60876         * modules/strtoimax (Include): Mention <inttypes.h>.
60877         * modules/strtoumax (Include): Likewise.
60878
60879 2007-04-12  Eric Blake  <ebb9@byu.net>
60880
60881         * .cvsignore: New file.
60882         * .gitignore: Likewise.
60883
60884 2007-04-12  Bruno Haible  <bruno@clisp.org>
60885
60886         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
60887         not before, since $(LDADD) often contains libgnu.a.
60888         * modules/striconv-tests (test_striconv_LDADD): Likewise.
60889         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
60890         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
60891         Needed on Cygwin.
60892
60893 2007-04-12  Eric Blake  <ebb9@byu.net>
60894
60895         Work around glibc's failure to flush stdin on fclose.
60896         * lib/closein.c (close_stdin): Flush stdin before closing.
60897
60898         Work around glibc's failure to reset seekable stdin on exit.
60899         * modules/closein: New module.
60900         * lib/closein.c: New file.
60901         * lib/closein.h: Likewise.
60902         * m4/closein.m4: Likewise.
60903         * MODULES.html.sh (File stream based Input/Output): Document it.
60904
60905 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60906
60907         * gnulib-tool: Rename generated 'autobuild' script to
60908         'do-autobuild' in --create-megatestdir output.
60909
60910         * doc/gnulib.texi (Build robot for gnulib): Fix.
60911
60912 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60913
60914         * modules/sysexits (Depends-on): Add absolute-header.
60915
60916 2007-04-12  Eric Blake  <ebb9@byu.net>
60917
60918         No need to preserve errno on success.
60919         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
60920         Reported by Bruno Haible.
60921
60922 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60923
60924         * MODULES.html.sh (Support for maintaining and releasing
60925         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
60926
60927 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60928
60929         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
60930
60931 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60932
60933         * modules/autobuild: New module.
60934
60935         * m4/autobuild.m4: New file.
60936
60937 2007-04-11  Bruno Haible  <bruno@clisp.org>
60938
60939         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
60940         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
60941         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
60942         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
60943         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60944         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60945         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60946         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60947         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60948         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60949         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
60950         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60951         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60952         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
60953         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60954         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60955         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
60956         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60957         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60958         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
60959         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60960         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60961         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
60962         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60963         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60964         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
60965         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60966         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60967         Reported by Eric Blake.
60968
60969 2007-04-11  Bruno Haible  <bruno@clisp.org>
60970
60971         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
60972
60973 2007-04-10  Bruno Haible  <bruno@clisp.org>
60974
60975         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
60976         for NaN and Infinity. Needed on FreeBSD 6.1.
60977         * tests/test-vasnprintf-posix.c (test_function): Undo last change
60978         regarding results for "%010a" of Infinity and NaN.
60979         * tests/test-vasprintf-posix.c (test_function): Likewise.
60980         * tests/test-snprintf-posix.h (test_function): Likewise.
60981         * tests/test-sprintf-posix.h (test_function): Likewise.
60982         * tests/test-fprintf-posix.h (test_function): Likewise.
60983         * tests/test-printf-posix.h (test_function): Likewise.
60984         * tests/test-fprintf-posix.out: Likewise.
60985
60986 2007-04-10  Bruno Haible  <bruno@clisp.org>
60987
60988         * modules/locale-tests: New file.
60989         * tests/test-locale.c: New file.
60990
60991         * modules/locale: New file.
60992         * lib/locale_.h: New file.
60993         * m4/locale_h.m4: New file.
60994
60995 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
60996             Bruno Haible  <bruno@clisp.org>
60997
60998         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
60999         be determined, test for availability of the copysignf, copysign,
61000         copysignl functions.
61001         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
61002         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
61003         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
61004
61005 2007-04-09  Eric Blake  <ebb9@byu.net>
61006
61007         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
61008         * modules/stdio (Makefile.am): Support fflush.
61009         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
61010         * modules/fflush: New file.
61011         * lib/fflush.c: Likewise.
61012         * m4/fflush.m4: Likewise.
61013         * modules/fflush-tests: New test.
61014         * tests/test-fflush.c: Likewise.
61015         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
61016
61017 2007-04-06  Bruno Haible  <bruno@clisp.org>
61018
61019         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
61020         (VASNPRINTF): Use signbit for faster determination whether to print a
61021         minus sign.
61022         * modules/vasnprintf (Files): Remove lib/float+.h.
61023         * modules/fprintf-posix (Depends-on): Add signbit.
61024         * modules/snprintf-posix (Depends-on): Likewise.
61025         * modules/sprintf-posix (Depends-on): Likewise.
61026         * modules/vasnprintf-posix (Depends-on): Likewise.
61027         * modules/vasprintf-posix (Depends-on): Likewise.
61028         * modules/vfprintf-posix (Depends-on): Likewise.
61029         * modules/vsnprintf-posix (Depends-on): Likewise.
61030         * modules/vsprintf-posix (Depends-on): Likewise.
61031
61032 2007-04-06  Bruno Haible  <bruno@clisp.org>
61033
61034         * tests/test-frexp.c (main): Test also the sign bit of zero results.
61035         * tests/test-frexpl.c (main): Likewise.
61036         * tests/test-ldexpl.c (main): Likewise.
61037         * modules/frexp-tests (Depends-on): Add signbit.
61038         * modules/frexpl-tests (Depdends-on): Likewise.
61039         * modules/ldexpl-tests (Depdends-on): Likewise.
61040
61041 2007-04-06  Bruno Haible  <bruno@clisp.org>
61042
61043         * modules/signbit-tests: New file.
61044         * tests/test-signbit.c: New file.
61045
61046         * modules/signbit: New file.
61047         * lib/signbitf.c: New file.
61048         * lib/signbitd.c: New file.
61049         * lib/signbitl.c: New file.
61050         * m4/signbit.m4: New file.
61051         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
61052         (signbit): New macro.
61053         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
61054         REPLACE_SIGNBIT.
61055         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
61056         REPLACE_FREXPL into math.h.
61057
61058 2007-04-06  Bruno Haible  <bruno@clisp.org>
61059
61060         * modules/isnanf-nolibm-tests: New file.
61061         * tests/test-isnanf.c: New file.
61062
61063         * modules/isnanf-nolibm: New file.
61064         * lib/isnanf.h: New file.
61065         * lib/isnanf.c: New file.
61066         * lib/isnan.c: Consider the USE_FLOAT macro.
61067         * m4/isnanf.m4: New file.
61068
61069 2007-04-06  Bruno Haible  <bruno@clisp.org>
61070
61071         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
61072         (Link): New section.
61073
61074         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
61075
61076 2007-04-06  Bruno Haible  <bruno@clisp.org>
61077
61078         Assume the 'long double' type.
61079         * m4/longdouble.m4: Remove file.
61080         * config/srclist.txt: Don't mention longdouble.m4.
61081         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
61082         * lib/float+.h: Likewise.
61083         * lib/frexp.c: Likewise.
61084         * lib/printf-args.h: Likewise.
61085         * lib/printf-args.c: Likewise.
61086         * lib/printf-frexp.c: Likewise.
61087         * lib/printf-parse.c: Likewise.
61088         * lib/vasnprintf.c: Likewise.
61089         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
61090         * m4/intl.m4: Likewise.
61091         * m4/isnanl.m4: Likewise.
61092         * m4/printf.m4: Likewise.
61093         * m4/printf-frexpl.m4: Likewise.
61094         * m4/vasnprintf.m4: Likewise.
61095         * modules/allocsa (Files): Remove m4/longdouble.m4.
61096         * modules/gettext (Files): Likewise.
61097         * modules/relocatable-prog-wrapper (Files): Likewise.
61098         * modules/vasnprintf (Files): Likewise.
61099         * modules/isnanl (Files): Likewise.
61100         (Include): Simplify.
61101         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
61102         (Include): Simplify.
61103         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
61104         (Include): Simplify.
61105         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
61106         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61107         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
61108         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61109         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
61110         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61111         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
61112         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61113         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
61114         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61115         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
61116         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61117         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
61118         * tests/test-isnanl.c: Likewise.
61119         * tests/test-snprintf-posix.h: Likewise.
61120         * tests/test-sprintf-posix.h: Likewise.
61121         * tests/test-vasnprintf-posix.c: Likewise.
61122         * tests/test-vasnprintf-posix2.c: Likewise.
61123         * tests/test-vasprintf-posix.c: Likewise.
61124
61125 2007-04-06  Bruno Haible  <bruno@clisp.org>
61126
61127         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
61128         * lib/math_.h [__DECC]: Include the overridden include file through
61129         #include_next, outside the double-inclusion guard.
61130         * lib/stdio_.h [__DECC]: Likewise.
61131         * lib/stdlib_.h [__DECC]: Likewise.
61132         * lib/string_.h [__DECC]: Likewise.
61133         * lib/time_.h [__DECC]: Likewise.
61134         * lib/wchar_.h [__DECC]: Likewise.
61135         * lib/wctype_.h [__DECC]: Likewise.
61136         * lib/inttypes_.h [__DECC]: Likewise.
61137         Reported by Albert Chin <china@thewrittenword.com> in
61138         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
61139
61140 2007-04-04  Eric Blake  <ebb9@byu.net>
61141
61142         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
61143         1.5.x.
61144
61145 2007-04-04  Bruno Haible  <bruno@clisp.org>
61146
61147         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
61148         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
61149
61150 2007-04-04  Bruno Haible  <bruno@clisp.org>
61151
61152         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
61153         results for "%010a" of Infinity and NaN.
61154         * tests/test-vasprintf-posix.c (test_function): Likewise.
61155         * tests/test-snprintf-posix.h (test_function): Likewise.
61156         * tests/test-sprintf-posix.h (test_function): Likewise.
61157         * tests/test-fprintf-posix.h (test_function): Remove these tests.
61158         * tests/test-printf-posix.h (test_function): Likewise.
61159         * tests/test-fprintf-posix.out: Update.
61160         Needed for FreeBSD 6.1.
61161
61162 2007-04-04  Bruno Haible  <bruno@clisp.org>
61163
61164         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
61165         directly used by the gnulib modules nor by gnulib-tool.
61166
61167 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
61168
61169         * DEPENDENCIES: Give overall description of version dependency
61170         desirability.  Use more-typical names for apps.
61171         Add shell, coreutils, diffutils, grep, tar, gzip.
61172
61173 2007-04-04  Simon Josefsson  <simon@josefsson.org>
61174
61175         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
61176
61177 2007-04-04  Karl Berry  <karl@gnu.org>
61178
61179         * MODULES.html.sh (func_module): missing '.
61180
61181 2007-04-03  Bruno Haible  <bruno@clisp.org>
61182
61183         * modules/argmatch-tests (Makefile.am): New variable
61184         test_argmatch_LDADD.
61185         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
61186         * modules/array-list-tests (Makefile.am): New variable
61187         test_array_list_LDADD.
61188         * modules/array-oset-tests (Makefile.am): New variable
61189         test_array_oset_LDADD.
61190         * modules/avltree-list-tests (Makefile.am): New variable
61191         test_avltree_list_LDADD.
61192         * modules/avltree-oset-tests (Makefile.am): New variable
61193         test_avltree_oset_LDADD.
61194         * modules/avltreehash-list-tests (Makefile.am): New variable
61195         test_avltreehash_list_LDADD.
61196         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
61197         test_canonicalize_lgpl_LDADD.
61198         * modules/carray-list-tests (Makefile.am): New variable
61199         test_carray_list_LDADD.
61200         * modules/dirname-tests (Makefile.am): New variable
61201         test_dirname_LDADD.
61202         * modules/linked-list-tests (Makefile.am): New variable
61203         test_linked_list_LDADD.
61204         * modules/linkedhash-list-tests (Makefile.am): New variable
61205         test_linkedhash_list_LDADD.
61206         * modules/rbtree-list-tests (Makefile.am): New variable
61207         test_rbtree_list_LDADD.
61208         * modules/rbtree-oset-tests (Makefile.am): New variable
61209         test_rbtree_oset_LDADD.
61210         * modules/rbtreehash-list-tests (Makefile.am): New variable
61211         test_rbtreehash_list_LDADD.
61212         * modules/xvasprintf-tests (Makefile.am): New variable
61213         test_xvasprintf_LDADD.
61214         Reported by Eric Blake.
61215
61216 2007-04-03  Eric Blake  <ebb9@byu.net>
61217
61218         * DEPENDENCIES: Weaken m4 requirements.
61219
61220 2007-04-03  Bruno Haible  <bruno@clisp.org>
61221
61222         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
61223         * modules/isnanl-tests (configure.ac): Likewise.
61224
61225 2007-04-03  Ben Pfaff  <blp@gnu.org>
61226
61227         * modules/iconv_open: Add $(srcdir)/ to source directory
61228         references in Makefile fragments that call gperf, to fix VPATH
61229         builds.
61230
61231 2007-04-03  Bruno Haible  <bruno@clisp.org>
61232
61233         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
61234         * lib/ldexpl.c: Undo last change.
61235
61236 2007-04-03  Bruno Haible  <bruno@clisp.org>
61237
61238         * modules/printf-frexpl (Depends-on): Undo last change.
61239         (Files): Add m4/ldexpl.m4.
61240
61241 2007-04-03  Bruno Haible  <bruno@clisp.org>
61242
61243         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
61244         * modules/isnanl (Link): New section.
61245
61246         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
61247         * modules/frexp (Link): New section.
61248
61249         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
61250         * modules/frexpl (Link): New section.
61251
61252         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
61253         * modules/ldexpl (Link): New section.
61254
61255 2007-04-03  Bruno Haible  <bruno@clisp.org>
61256
61257         * modules/TEMPLATE-EXTENDED: New file.
61258         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
61259
61260 2007-04-03  Bruno Haible  <bruno@clisp.org>
61261
61262         * DEPENDENCIES: New file.
61263         Suggested by Simon Josefsson.
61264
61265 2007-04-03  Bruno Haible  <bruno@clisp.org>
61266
61267         * doc/gnulib.texi: Escape @.
61268
61269 2007-04-03  James Youngman  <jay@gnu.org>
61270         and Paul Eggert  <eggert@cs.ucla.edu>
61271
61272         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
61273         birthtime on all systems that have birthtime, not just those which
61274         use st_birthtimensec rather than st_birthtim.  Putting zero in
61275         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
61276         that the birth time is not available for files on an NFS mount.
61277
61278 2007-04-03  Simon Josefsson  <simon@josefsson.org>
61279
61280         * modules/memxor: Move back from crypto/, suggested by Bruno.
61281         * modules/crypto/hmac-sha1: Fix memxor dependency.
61282
61283         * modules/crypto/gc: Moved from ../.
61284
61285 2007-04-02  Eric Blake  <ebb9@byu.net>
61286
61287         * lib/ldexpl.c (includes): Avoid libm.
61288
61289         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
61290
61291 2007-04-02  Bruno Haible  <bruno@clisp.org>
61292
61293         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
61294         on IRIX.
61295
61296 2007-04-02  Bruno Haible  <bruno@clisp.org>
61297
61298         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
61299         x86 or x86_64 platforms running MacOS X.
61300         Reported by Ryan Schmidt <@ryandesign.com>.
61301
61302 2007-04-02  Bruno Haible  <bruno@clisp.org>
61303
61304         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
61305         i386.
61306
61307 2007-04-01  Simon Josefsson  <simon@josefsson.org>
61308
61309         * modules/crypto/arcfour: Moved from ../.
61310         * modules/crypto/arcfour-tests: Moved from ../.
61311         * modules/crypto/arctwo: Moved from ../.
61312         * modules/crypto/arctwo-tests: Moved from ../.
61313         * modules/crypto/des: Moved from ../.
61314         * modules/crypto/des-tests: Moved from ../.
61315         * modules/crypto/gc-arcfour: Moved from ../.
61316         * modules/crypto/gc-arcfour-tests: Moved from ../.
61317         * modules/crypto/gc-arctwo: Moved from ../.
61318         * modules/crypto/gc-arctwo-tests: Moved from ../.
61319         * modules/crypto/gc-des: Moved from ../.
61320         * modules/crypto/gc-des-tests: Moved from ../.
61321         * modules/crypto/gc-hmac-md5: Moved from ../.
61322         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
61323         * modules/crypto/gc-hmac-sha1: Moved from ../.
61324         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
61325         * modules/crypto/gc-md2: Moved from ../.
61326         * modules/crypto/gc-md2-tests: Moved from ../.
61327         * modules/crypto/gc-md4: Moved from ../.
61328         * modules/crypto/gc-md4-tests: Moved from ../.
61329         * modules/crypto/gc-md5: Moved from ../.
61330         * modules/crypto/gc-md5-tests: Moved from ../.
61331         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
61332         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
61333         * modules/crypto/gc-random: Moved from ../.
61334         * modules/crypto/gc-rijndael: Moved from ../.
61335         * modules/crypto/gc-rijndael-tests: Moved from ../.
61336         * modules/crypto/gc-sha1: Moved from ../.
61337         * modules/crypto/gc-sha1-tests: Moved from ../.
61338         * modules/crypto/gc-tests: Moved from ../.
61339         * modules/crypto/hmac-md5: Moved from ../.
61340         * modules/crypto/hmac-md5-tests: Moved from ../.
61341         * modules/crypto/hmac-sha1: Moved from ../.
61342         * modules/crypto/hmac-sha1-tests: Moved from ../.
61343         * modules/crypto/md2: Moved from ../.
61344         * modules/crypto/md2-tests: Moved from ../.
61345         * modules/crypto/md4: Moved from ../.
61346         * modules/crypto/md4-tests: Moved from ../.
61347         * modules/crypto/md5: Moved from ../.
61348         * modules/crypto/md5-tests: Moved from ../.
61349         * modules/crypto/memxor: Moved from ../.
61350         * modules/crypto/rijndael: Moved from ../.
61351         * modules/crypto/rijndael-tests: Moved from ../.
61352         * modules/crypto/sha1: Moved from ../.
61353
61354 2007-03-30  James Youngman  <jay@gnu.org>
61355
61356         * tests/test-stat-time.c (prepare_test): use chmod() rather than
61357         rename() to change the ctime of a file (because ctime is unaffected
61358         by rename on jfs2 on AIX 5.1).
61359         (main): Start by doing cleanup, in case a previous run failed leaving
61360         test files behind.
61361
61362 2007-03-31  Bruno Haible  <bruno@clisp.org>
61363
61364         Support old proprietary implementations of iconv.
61365         * modules/iconv_open: New file.
61366         * lib/iconv_.h: New file.
61367         * m4/iconv_h.m4: New file.
61368         * lib/iconv_open.c: New file.
61369         * lib/iconv_open-aix.gperf: New file.
61370         * lib/iconv_open-hpux.gperf: New file.
61371         * lib/iconv_open-irix.gperf: New file.
61372         * lib/iconv_open-osf.gperf: New file.
61373         * m4/iconv_open.m4: New file.
61374         * modules/linebreak (Depends-on): Add iconv_open.
61375         * modules/striconv (Depends-on): Likewise.
61376         * modules/striconveh (Depends-on): Likewise.
61377         * modules/unicodeio (Depends-on): Likewise.
61378         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
61379         (iconv_t)(-1).
61380         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
61381         conversion if cd is (iconv_t)(-1).
61382         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
61383         is not possible.
61384
61385 2007-03-31  Bruno Haible  <bruno@clisp.org>
61386
61387         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
61388         work on Solaris either. Protect also second use of "autodetect_jp".
61389
61390 2007-03-31  Bruno Haible  <bruno@clisp.org>
61391
61392         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
61393         the function is not present.
61394
61395 2007-03-31  Bruno Haible  <bruno@clisp.org>
61396
61397         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
61398         the function is not present.
61399
61400 2007-03-31  Bruno Haible  <bruno@clisp.org>
61401
61402         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
61403         a bug in HP-UX iconv_open().
61404
61405 2007-03-31  Bruno Haible  <bruno@clisp.org>
61406
61407         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
61408         (Mathematics <math.h>): New section, add fpieee.
61409         (Input/output <stdio.h>): Add fseterr.
61410         (Mathematics <math.h>): New section, add printf-frexp.
61411         (Container data structures): Add sublist.
61412         (Core language properties): Add fpucw, inline.
61413         (Functions for greatest-width integer types <inttypes.h>): Add
61414         imaxabs, imaxdiv, inttypes.
61415         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
61416         isnanl-nolibm, ldexp.
61417         (Mathematics <math.h>): New section, add printf-frexpl.
61418         (Support for systems lacking POSIX:2001): Add fprintf-posix,
61419         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
61420         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
61421         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
61422         (Unicode string functions): Add unistr/u*-mbtoucr.
61423         (Java): Add javacomp-script, javaexec-script.
61424         (C#): Add csharpcomp-script, csharpexec-script.
61425         (Support for building libraries and executables): Add havelib,
61426         relocatable-*.
61427         (Support for maintaining and releasing projects): Renamed from
61428         'Support for maintaining and release projects'. Add announce-gen.
61429
61430 2007-03-31  Bruno Haible  <bruno@clisp.org>
61431
61432         * README: Talk primarily about git.
61433         (git and CVS): Renamed from CVS.
61434         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
61435         gnulib is available through git.
61436         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
61437
61438 2007-03-30  Bruno Haible  <bruno@clisp.org>
61439
61440         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
61441         * lib/poll_.h: Likewise.
61442         * lib/stat_.h: Likewise.
61443         * lib/sys_time_.h: Likewise.
61444         * lib/sysexit_.h: Likewise.
61445         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
61446         * lib/stdbool_.h: Likewise.
61447         * lib/byteswap_.h: Add double-inclusion guard.
61448
61449 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
61450
61451         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
61452
61453 2007-03-30  Karl Berry  <karl@gnu.org>
61454
61455         * config/srclist-update: double space after USA in the license
61456         substitution, since that's how it's usually (?) written.
61457
61458 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
61459
61460         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
61461         reported by Bruno Haible.
61462
61463 2007-03-29  Bruno Haible  <bruno@clisp.org>
61464
61465         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
61466         a bug in AIX iconv().
61467
61468 2007-03-29  Bruno Haible  <bruno@clisp.org>
61469
61470         * modules/ldexpl-tests: New file.
61471         * tests/test-ldexpl.c: New file.
61472
61473 2007-03-29  Bruno Haible  <bruno@clisp.org>
61474
61475         * lib/ldexpl.c: Include fpucw.h.
61476         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
61477         multiplication.
61478         * modules/ldexpl (Depends-on): Add fpucw.
61479
61480 2007-03-29  Bruno Haible  <bruno@clisp.org>
61481
61482         * modules/ldexpl: New file.
61483         * m4/ldexpl.m4: New file.
61484         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
61485         set.
61486         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
61487         REPLACE_LDEXPL.
61488         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
61489         REPLACE_LDEXPL.
61490         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
61491         gl_FUNC_LDEXPL_WORKS.
61492         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
61493         * modules/mathl (Files): Remove lib/ldexpl.c.
61494         (Depends-on): Add ldexpl.
61495
61496 2007-03-29  Bruno Haible  <bruno@clisp.org>
61497
61498         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
61499
61500 2007-03-29  Bruno Haible  <bruno@clisp.org>
61501
61502         * tests/test-striconveh.c (main): Don't assume that a direct conversion
61503         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
61504         and possibly also HP-UX.
61505         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
61506         work on AIX, IRIX, HP-UX, OSF/1.
61507         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
61508         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
61509         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
61510         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
61511         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
61512         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
61513
61514 2007-03-29  Bruno Haible  <bruno@clisp.org>
61515
61516         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
61517
61518 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
61519
61520         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
61521         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
61522
61523 2007-03-29  Eric Blake  <ebb9@byu.net>
61524
61525         * lib/acl-internal.h: Remove redundant include.
61526         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
61527         Cygwin when a file is locked.
61528
61529 2007-03-29  Bruno Haible  <bruno@clisp.org>
61530
61531         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
61532         file.
61533         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
61534
61535 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
61536
61537         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
61538         try to remove a parent directory if the child couldn't be removed
61539         (except for the first rmdir, which could fail because the child
61540         doesn't exist).  Problem reported by Jeff Blaine in
61541         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
61542
61543 2007-03-28  Bruno Haible  <bruno@clisp.org>
61544
61545         * lib/striconveh.c (utf8conv_carefully): New function.
61546         (mem_cd_iconveh_internal): Invoke it.
61547
61548 2007-03-28  Bruno Haible  <bruno@clisp.org>
61549
61550         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
61551         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
61552         input.
61553         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
61554         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
61555         unistr/u8-uctomb.
61556
61557 2007-03-28  Bruno Haible  <bruno@clisp.org>
61558
61559         * modules/unistr/u8-mbtoucr: New file.
61560         * lib/unistr/u8-mbtoucr.c: New file.
61561         * modules/unistr/u16-mbtoucr: New file.
61562         * lib/unistr/u16-mbtoucr.c: New file.
61563         * modules/unistr/u16-mbtoucr: New file.
61564         * lib/unistr/u16-mbtoucr.c: New file.
61565         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
61566
61567 2007-03-27  Simon Josefsson  <simon@josefsson.org>
61568             Bruno Haible  <bruno@clisp.org>
61569
61570         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
61571         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
61572         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
61573
61574         * m4/stdio_h.m4: Add stubs for vasprintf too.
61575
61576         * modules/stdio: Support vasprintf in sed command.
61577
61578         * modules/vasprintf: Depend on stdio for prototypes.  Remove
61579         vasprintf.h.  Add stdio module indicator.
61580
61581         * lib/stdio_.h: Declare asprintf and vasprintf, based on
61582         vasprintf.h.
61583
61584         * lib/vasprintf.h: File removed.
61585
61586         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
61587         * lib/vasprintf.c: Ditto.
61588         * lib/xvasprintf.c: Ditto.
61589         * tests/test-vasprintf-posix.c: Ditto.
61590         * tests/test-vasprintf.c: Ditto.
61591
61592 2007-03-27  Bruno Haible  <bruno@clisp.org>
61593
61594         Make vasnprintf multithread-safe.
61595         * lib/vasnprintf.c (decimal_point_char): New function.
61596         (VASNPRINTF): Use it.
61597         Suggested by Simon Josefsson.
61598
61599 2007-03-27  Eric Blake  <ebb9@byu.net>
61600
61601         Support sub-second birthtime on cygwin.
61602         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
61603         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
61604         (get_stat_birthtime): Also work with st_birthtim.
61605
61606 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
61607
61608         * lib/stat-time.h (USE_BIRTHTIME): Remove.
61609         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
61610         (get_stat_birthtime_ns): Do not try to use "spare" fields.
61611         (get_stat_birthtime_ns): Simplify compile-time tests.
61612         (get_stat_birthtime): Change the API to look like
61613         get_stat_mtime etc., except return a negative tv_nsec on error.
61614         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
61615         Don't check for "spare" fields.
61616         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
61617         or for struct stat.st_birthtime, as these tests aren't used.
61618         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
61619
61620 2007-03-27  Bruno Haible  <bruno@clisp.org>
61621
61622         * lib/stat-time.h: Include <sys/stat.h>.
61623
61624 2007-03-27  James Youngman  <jay@gnu.org>
61625
61626         * lib/stat-time.h (get_stat_birthtime): New function for
61627           retrieving st_birthtime as provided by UFS2 (hence *BSD).
61628         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
61629           and its variants.
61630         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
61631         * modules/stat-time-test: New file.
61632         * tests/test-stat-time.c: New test, devised by Bruno Haible.
61633
61634 2007-03-26  Bruno Haible  <bruno@clisp.org>
61635
61636         Better support of signalling NaNs.
61637         * lib/atanl.c: Include isnanl.h.
61638         (atanl): Perform test for NaN at the beginning of the function and
61639         through a call to isnanl.
61640         * lib/cosl.c: Include isnanl.h.
61641         (cosl): Perform test for NaN at the beginning of the function and
61642         through a call to isnanl.
61643         * lib/ldexpl.c: Include isnanl.h.
61644         (ldexpl): Perform test for NaN through a call to isnanl.
61645         * lib/logl.c: Include isnanl.h.
61646         (logl): Perform test for NaN at the beginning of the function and
61647         through a call to isnanl.
61648         * lib/sinl.c: Include isnanl.h.
61649         (sinl): Perform test for NaN at the beginning of the function and
61650         through a call to isnanl.
61651         * lib/sqrtl.c: Include isnanl.h.
61652         (sqrtl): Perform test for NaN at the beginning of the function and
61653         through a call to isnanl.
61654         * lib/tanl.c: Include isnanl.h.
61655         (tanl): Perform test for NaN at the beginning of the function and
61656         through a call to isnanl.
61657         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
61658         * modules/mathl (Depends-on): Add isnanl.
61659
61660 2007-03-26  Eric Blake  <ebb9@byu.net>
61661
61662         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
61663         regression in logic sense of previous patch.
61664
61665 2007-03-26  Bruno Haible  <bruno@clisp.org>
61666
61667         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
61668         unportable shell command "if ! ...".
61669         Reported by Ralf Wildenhues.
61670
61671 2007-03-25  Bruno Haible  <bruno@clisp.org>
61672
61673         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
61674         <sysexits.h> file, and only add EX_CONFIG.
61675         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
61676         absolute file name and whether it is sufficient. Substitute also
61677         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
61678         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
61679         ABSOLUTE_SYSEXITS_H into sysexits.h.
61680
61681 2007-03-25  Bruno Haible  <bruno@clisp.org>
61682
61683         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
61684         hints is NULL.
61685
61686 2007-03-25  Bruno Haible  <bruno@clisp.org>
61687
61688         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
61689         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
61690
61691 2007-03-25  Bruno Haible  <bruno@clisp.org>
61692
61693         * lib/vasnprintf.c: Include langinfo.h.
61694         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
61695         multithread-safe.
61696         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
61697         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
61698         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61699         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61700         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61701         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61702         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61703         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
61704         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61705         Reported by Simon Josefsson.
61706
61707 2007-03-25  Bruno Haible  <bruno@clisp.org>
61708
61709         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
61710         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
61711         * modules/vasnprintf (Depends-on): Add stdint.
61712
61713 2007-03-25  Bruno Haible  <bruno@clisp.org>
61714
61715         * modules/fpieee: New file.
61716         * m4/fpieee.m4: New file.
61717         * modules/isnan-nolibm (Depends-on): Add fpieee.
61718         * modules/isnanl-nolibm (Depends-on): Add fpieee.
61719         * modules/isnanl (Depends-on): Add fpieee.
61720
61721 2007-03-25  Bruno Haible  <bruno@clisp.org>
61722
61723         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
61724
61725 2007-03-25  Bruno Haible  <bruno@clisp.org>
61726
61727         Avoid test failures on IRIX 6.5.
61728         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
61729         (main): Use it.
61730         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
61731         macros.
61732         (main): Use them.
61733
61734 2007-03-25  Bruno Haible  <bruno@clisp.org>
61735
61736         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
61737         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
61738         exists but doesn't work.
61739         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
61740         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
61741         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
61742         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
61743         math.h.
61744
61745 2007-03-25  Bruno Haible  <bruno@clisp.org>
61746
61747         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
61748         returns inf. Needed on IRIX 6.5.
61749
61750 2007-03-25  Bruno Haible  <bruno@clisp.org>
61751
61752         * tests/test-frexpl.c: Include isnanl-nolibm.h.
61753         (main): Use isnanl instead of x != x idiom.
61754         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
61755
61756         * tests/test-frexp.c: Include isnan.h.
61757         (main): Use isnan instead of x != x idiom.
61758         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
61759
61760 2007-03-25  Bruno Haible  <bruno@clisp.org>
61761
61762         * tests/test-frexp.c (NaN): New function/macro.
61763         (main): Use it instead of 0.0 / 0.0.
61764         * tests/test-isnan.c (NaN): New function/macro.
61765         (main): Use it instead of 0.0 / 0.0.
61766         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
61767         (test_function): Use it instead of 0.0 / 0.0.
61768         * tests/test-vasprintf-posix.c (NaN): New function/macro.
61769         (test_function): Use it instead of 0.0 / 0.0.
61770         * tests/test-snprintf-posix.h (NaN): New function/macro.
61771         (test_function): Use it instead of 0.0 / 0.0.
61772         * tests/test-sprintf-posix.h (NaN): New function/macro.
61773         (test_function): Use it instead of 0.0 / 0.0.
61774         * tests/test-fprintf-posix.h (NaN): New function/macro.
61775         (test_function): Use it instead of 0.0 / 0.0.
61776         * tests/test-printf-posix.h (NaN): New function/macro.
61777         (test_function): Use it instead of 0.0 / 0.0.
61778
61779         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
61780
61781 2007-03-25  Bruno Haible  <bruno@clisp.org>
61782
61783         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
61784
61785 2007-03-25  Bruno Haible  <bruno@clisp.org>
61786
61787         * lib/regexec.c (merge_state_with_log): Make static.
61788
61789 2007-03-25  Bruno Haible  <bruno@clisp.org>
61790
61791         * lib/trigl.c (kernel_rem_pio2): Make static.
61792
61793 2007-03-25  Bruno Haible  <bruno@clisp.org>
61794
61795         * lib/sincosl.c (sincosl_table): Make static.
61796
61797 2007-03-25  Bruno Haible  <bruno@clisp.org>
61798
61799         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
61800         if the compiler does not support C99.
61801
61802 2007-03-25  Bruno Haible  <bruno@clisp.org>
61803
61804         * modules/time (Makefile.am): Ensure all rule action lines start with a
61805         tab.
61806
61807 2007-03-24  Bruno Haible  <bruno@clisp.org>
61808
61809         * modules/tsearch-tests: New file.
61810         * tests/test-tsearch.sh: New file.
61811         * tests/test-tsearch.c: New file, mostly copied from glibc.
61812
61813         * modules/search-tests: New file.
61814         * tests/test-search.c: New file.
61815
61816         * modules/search: New file.
61817         * lib/search_.h: New file, incorporating lib/tsearch.h.
61818         * m4/search_h.m4: New file.
61819         * lib/tsearch.h: Remove file.
61820         * lib/tsearch.c: Include search.h instead of tsearch.h.
61821         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
61822         HAVE_TSEARCH.
61823         * modules/tsearch (Files): Remove lib/tsearch.h.
61824         (Depends-on): Add search.
61825         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
61826         (Include): Change tsearch.h into search.h.
61827
61828 2007-03-24  Bruno Haible  <bruno@clisp.org>
61829
61830         * modules/fpucw: New file.
61831         * lib/fpucw.h: New file.
61832         * lib/frexp.c: Include fpucw.h.
61833         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61834         (FUNC): Use them.
61835         * lib/printf-frexp.c: Include fpucw.h.
61836         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61837         (FUNC): Use them.
61838         * lib/vasnprintf.c: Include fpucw.h.
61839         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
61840         'long double' calculations.
61841         * tests/test-frexpl.c: Include fpucw.h.
61842         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61843         * tests/test-printf-frexpl.c: Include fpucw.h.
61844         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61845         * modules/frexpl (Depends-on): Add fpucw.
61846         * modules/printf-frexpl (Depends-on): Likewise.
61847         * modules/fprintf-posix (Depends-on): Likewise.
61848         * modules/snprintf-posix (Depends-on): Likewise.
61849         * modules/sprintf-posix (Depends-on): Likewise.
61850         * modules/vasnprintf-posix (Depends-on): Likewise.
61851         * modules/vasprintf-posix (Depends-on): Likewise.
61852         * modules/vfprintf-posix (Depends-on): Likewise.
61853         * modules/vsnprintf-posix (Depends-on): Likewise.
61854         * modules/vsprintf-posix (Depends-on): Likewise.
61855         * modules/frexpl-tests (Depends-on): Likewise.
61856         * modules/printf-frexpl-tests (Depends-on): Likewise.
61857
61858 2007-03-24  Bruno Haible  <bruno@clisp.org>
61859
61860         * lib/float+.h: New file.
61861         * lib/isnan.c: Include float+.h.
61862         (SIZE): New macro.
61863         (FUNC): Compare only SIZE bytes of the value.
61864         * lib/vasnprintf.c: Include float+.h.
61865         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
61866         SIZEOF_LDBL or SIZEOF_DBL bytes.
61867         * modules/isnan-nolibm (Files): Add lib/float+.h.
61868         * modules/isnanl-nolibm (Files): Add lib/float+.h.
61869         * modules/isnanl (Files): Add lib/float+.h.
61870         * modules/vasnprintf (Files): Add lib/float+.h.
61871
61872 2007-03-24  Bruno Haible  <bruno@clisp.org>
61873
61874         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
61875         include isnanl-nolibm.h.
61876
61877 2007-03-24  Bruno Haible  <bruno@clisp.org>
61878
61879         * tests/test-read-file.c (main): Don't produce spurious output for
61880         expected situations. Make the test fail if it encountered unexpected
61881         results.
61882
61883 2007-03-24  Bruno Haible  <bruno@clisp.org>
61884
61885         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
61886         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
61887
61888 2007-03-24  Bruno Haible  <bruno@clisp.org>
61889
61890         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
61891
61892 2007-03-24  Bruno Haible  <bruno@clisp.org>
61893
61894         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
61895         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
61896
61897         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
61898         * modules/utf8-ucs4: Turn into a symbolic link to module
61899         unistr/u8-mbtouc.
61900
61901         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
61902         utf8-ucs4-unsafe.
61903         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
61904         unistr/u8-mbtouc-unsafe.
61905
61906         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
61907         * modules/utf16-ucs4: Turn into a symbolic link to module
61908         unistr/u16-mbtouc.
61909
61910         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
61911         utf16-ucs4-unsafe.
61912         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
61913         unistr/u16-mbtouc-unsafe.
61914
61915         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
61916         * modules/ucs4-utf8: Turn into a symbolic link to module
61917         unistr/u8-ubtomb.
61918
61919         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
61920         * modules/ucs4-utf16: Turn into a symbolic link to module
61921         unistr/u16-ubtomb.
61922
61923 2007-03-24  Bruno Haible  <bruno@clisp.org>
61924
61925         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
61926         Enable the function only if HAVE_INLINE.
61927         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
61928         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61929         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
61930         Enable the function only if HAVE_INLINE.
61931         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
61932         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61933         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
61934         Enable the function only if HAVE_INLINE.
61935         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
61936         Enable the function only if HAVE_INLINE.
61937         * modules/utf8-ucs4: Update.
61938         * modules/utf8-ucs4-unsafe: Update.
61939         * modules/utf16-ucs4: Update.
61940         * modules/utf16-ucs4-unsafe: Update.
61941         * modules/ucs4-utf8: Update.
61942         * modules/ucs4-utf16: Update.
61943
61944 2007-03-24  Bruno Haible  <bruno@clisp.org>
61945
61946         * lib/utf8-ucs4.h: Remove file.
61947         * lib/utf8-ucs4-unsafe.h: Remove file.
61948         * lib/utf16-ucs4.h: Remove file.
61949         * lib/utf16-ucs4-unsafe.h: Remove file.
61950         * lib/ucs4-utf8.h: Remove file.
61951         * lib/ucs4-utf16.h: Remove file.
61952         * lib/unistr.h: Include their previous contents.
61953         * m4/utf-ucs4.m4: Remove file.
61954         * m4/ucs4-utf.m4: Remove file.
61955         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
61956         (Depends-on): Add unistr/base.
61957         (configure.ac): Remove gl_UTF_UCS4.
61958         (Makefile.am): Update.
61959         (Include): Change to unistr.h.
61960         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
61961         (Depends-on): Add unistr/base.
61962         (configure.ac): Remove gl_UTF_UCS4.
61963         (Makefile.am): Update.
61964         (Include): Change to unistr.h.
61965         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
61966         (Depends-on): Add unistr/base.
61967         (configure.ac): Remove gl_UTF_UCS4.
61968         (Makefile.am): Update.
61969         (Include): Change to unistr.h.
61970         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
61971         (Depends-on): Add unistr/base.
61972         (configure.ac): Remove gl_UTF_UCS4.
61973         (Makefile.am): Update.
61974         (Include): Change to unistr.h.
61975         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
61976         (Depends-on): Add unistr/base.
61977         (configure.ac): Remove gl_UCS4_UTF.
61978         (Makefile.am): Update.
61979         (Include): Change to unistr.h.
61980         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
61981         (Depends-on): Add unistr/base.
61982         (configure.ac): Remove gl_UCS4_UTF.
61983         (Makefile.am): Update.
61984         (Include): Change to unistr.h.
61985         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
61986         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
61987         utf8-ucs4-unsafe.h.
61988         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
61989         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
61990         utf16-ucs4-unsafe.h.
61991         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
61992         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
61993         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
61994         * lib/unistr/u8-strchr.c: Likewise.
61995         * lib/unistr/u8-strrchr.c: Likewise.
61996         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
61997         * lib/unistr/u16-strchr.c: Likewise.
61998         * lib/unistr/u16-strrchr.c: Likewise.
61999         * lib/striconveh.c: Update.
62000         * lib/linebreak.c: Update.
62001
62002 2007-03-24  Bruno Haible  <bruno@clisp.org>
62003
62004         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
62005         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
62006
62007 2007-03-22  Bruno Haible  <bruno@clisp.org>
62008
62009         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
62010
62011 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
62012
62013         * MODULES.html.sh (File system functions): New module write-any-file.
62014         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
62015         * m4/write-any-file.m4: New files.
62016
62017 2007-03-23  Eric Blake  <ebb9@byu.net>
62018
62019         * gnulib-tool: Rearrange space-tab sequences, since some editors
62020         like to eat them.
62021
62022 2007-03-23  Eric Blake  <ebb9@byu.net>
62023
62024         * lib/version-etc.c (version_etc_va): Update license wording to
62025         be more concise.  Recommended by Richard Stallman.
62026
62027 2007-03-22  Bruno Haible  <bruno@clisp.org>
62028
62029         * lib/poll.c (MSG_PEEK): New fallback definition.
62030
62031 2007-03-22  Bruno Haible  <bruno@clisp.org>
62032
62033         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
62034         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
62035         (main): Update.
62036         Fixes a compilation error on BeOS.
62037
62038 2007-03-22  Bruno Haible  <bruno@clisp.org>
62039
62040         * modules/frexpl-tests: New file.
62041         * tests/test-frexpl.c: New file.
62042
62043         * modules/frexpl: New file.
62044         * m4/frexpl.m4: New file.
62045         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
62046         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
62047         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
62048         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
62049         (Depends-on): Add frexpl. Remove isnanl-nolibm.
62050         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
62051
62052 2007-03-22  Bruno Haible  <bruno@clisp.org>
62053
62054         * lib/frexpl.c: Share code with lib/frexp.c.
62055         * modules/mathl (Files): Add lib/frexp.c.
62056         (Depends-on): Add isnanl-nolibm.
62057
62058 2007-03-22  Bruno Haible  <bruno@clisp.org>
62059
62060         * modules/printf-frexp (Files): Add m4/frexp.m4.
62061         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
62062         only if the found frexp function actually works.
62063
62064 2007-03-22  Bruno Haible  <bruno@clisp.org>
62065
62066         * lib/frexp.c: Remove older implementation that uses divisions.
62067
62068 2007-03-21  Bruno Haible  <bruno@clisp.org>
62069
62070         * modules/frexp-tests: New file.
62071         * tests/test-frexp.c: New file.
62072
62073         * modules/frexp: New file.
62074         * lib/frexp.c: New file.
62075         * m4/frexp.m4: New file.
62076         * lib/math_.h (frexp): New declaration.
62077         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
62078         REPLACE_FREXP.
62079         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
62080
62081 2007-03-21  Bruno Haible  <bruno@clisp.org>
62082
62083         * modules/isnanl-tests: New file.
62084         * tests/test-isnanl.c: New file.
62085
62086         * modules/isnanl: New file.
62087         * lib/isnanl.h: New file.
62088         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
62089         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
62090         gl_FUNC_ISNANL_WORKS.
62091         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
62092         New macros.
62093
62094 2007-03-21  Bruno Haible  <bruno@clisp.org>
62095
62096         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
62097         lib/isnanl.h.
62098         (Include): Update.
62099         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
62100         * lib/vasnprintf.c: Update.
62101         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
62102         tests/test-isnanl.h, remove tests/test-isnanl.c.
62103         (Makefile.am): Update.
62104         * tests/test-isnanl-nolibm.c: New file.
62105         * tests/test-isnanl.h: New file.
62106         * tests/test-isnanl.c: Remove file.
62107
62108 2007-03-21  Jim Meyering  <jim@meyering.net>
62109
62110         When trying to open ".", treat ESTALE like EACCES.
62111         * lib/savewd.c (savewd_save): Resort to forking not just upon
62112         failure with EACCES, but also when errno is ESTALE.
62113
62114 2007-03-20  Bruno Haible  <bruno@clisp.org>
62115
62116         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
62117         Needed on AIX 5.1. Reported by Matthew Woehlke.
62118
62119 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62120
62121         Suggestions by Bruno Haible:
62122         * lib/acl-internal.h: Include "gettext.h" rather than rolling
62123         our own.
62124         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
62125         * modules/acl (Depends-on): Add gettext.
62126
62127 2007-03-19  Bruno Haible  <bruno@clisp.org>
62128
62129         * modules/iconvme: Remove file.
62130         * lib/iconvme.h: Remove file.
62131         * lib/iconvme.c: Remove file.
62132         * m4/iconvme.m4: Remove file.
62133
62134 2007-03-19  Bruno Haible  <bruno@clisp.org>
62135
62136         * doc/relocatable-maint.texi: Break long shell script line.
62137         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
62138
62139 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62140
62141         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
62142         handle file_has_acl.
62143         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
62144         * lib/acl.c: Move header inclusions and related macro defns into
62145         lib/acl-internal.h.
62146         (S_ISLNK): Remove defn, since that's now done for us.
62147         (file_has_acl): Move to lib/file-has-acl.c.
62148         Call acl_trivial if available.  This is the crucial part of the fix.
62149         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
62150         shared within the library.  Rewrite a bit, partly to make it compatible
62151         with the GNU coding style.
62152         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
62153         Remove unnecessary double-quotes.
62154         Don't test for acl_to_text; the build will catch that.
62155         Replace acl_entries if it doesn't exist and it is needed.
62156         Check for -lsec and acl_trivial (as used on Solaris 10).
62157         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
62158         lib/file-has-acl.c.
62159         (Depends-on): Add sys_stat, for S_ISLNK.
62160
62161 2007-03-19  Ben Pfaff  <blp@gnu.org>
62162
62163         * doc/gnulib.texi: Fix typos.
62164         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
62165
62166 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62167
62168         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
62169         If size is zero here, buf must be zero.
62170
62171 2007-03-19  Simon Josefsson  <simon@josefsson.org>
62172
62173         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
62174         <bruno@clisp.org>.
62175
62176 2007-03-18  Bruno Haible  <bruno@clisp.org>
62177
62178         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
62179         Suggested by Eric Blake.
62180
62181 2007-03-18  Ben Pfaff  <blp@gnu.org>
62182
62183         * doc/relocatable.texi: Recommend using as prefix a directory
62184         that does not exist and will never be created.  Based on
62185         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
62186         and others.
62187
62188 2007-03-17  Bruno Haible  <bruno@clisp.org>
62189
62190         * lib/fchownat.c: Include lchown.h.
62191
62192 2007-03-17  Bruno Haible  <bruno@clisp.org>
62193
62194         Fix endless loop when the given allocated size was > INT_MAX.
62195         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
62196         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
62197         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
62198         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
62199         * lib/sprintf.c (sprintf): Likewise.
62200
62201 2007-03-17  Bruno Haible  <bruno@clisp.org>
62202
62203         * tests/test-argp-2.sh (func_compare): Output a context diff.
62204
62205 2007-03-17  Bruno Haible  <bruno@clisp.org>
62206
62207         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
62208         locale's decimal-point character.
62209
62210 2007-03-17  Bruno Haible  <bruno@clisp.org>
62211
62212         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
62213         before comparing it. Needed because on some platforms (e.g. x86) a
62214         'long double' occupies less bytes than sizeof (long double).
62215
62216 2007-03-17  Bruno Haible  <bruno@clisp.org>
62217
62218         * tests/test-crc.c (main): Make printf statements 64-bit clean.
62219         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
62220         * tests/test-getaddrinfo.c (simple): Likewise.
62221         * tests/test-read-file.c (main): Likewise.
62222
62223 2007-03-17  Bruno Haible  <bruno@clisp.org>
62224
62225         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
62226
62227 2007-03-17  Bruno Haible  <bruno@clisp.org>
62228
62229         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
62230         unused variable.
62231
62232 2007-03-17  Bruno Haible  <bruno@clisp.org>
62233
62234         * tests/test-c-strcasecmp.c: Include c-strcase.h.
62235         * tests/test-c-strncasecmp.c: Likewise.
62236
62237 2007-03-17  Bruno Haible  <bruno@clisp.org>
62238
62239         * modules/stdlib (Depends-on): Add unistd.
62240         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
62241         Needed for MacOS X 10.3.
62242
62243 2007-03-17  Bruno Haible  <bruno@clisp.org>
62244
62245         * lib/unistr/u-strdup.h: Include <stdlib.h>.
62246
62247 2007-03-17  Bruno Haible  <bruno@clisp.org>
62248
62249         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
62250
62251 2007-03-17  Bruno Haible  <bruno@clisp.org>
62252
62253         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
62254         to reflect files copied from gnulib (with or without modifications).
62255         Suggested by Jim Meyering.
62256
62257 2007-03-17  Eric Blake  <ebb9@byu.net>
62258
62259         * NEWS: Document stdlib change from 2007-02-18.
62260
62261 2007-03-17  Jim Meyering  <jim@meyering.net>
62262
62263         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
62264         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
62265         someone uses a name containing shell meta-characters.
62266         Reported by Alfred M. Szmidt.
62267
62268         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
62269
62270 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
62271
62272         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
62273         and copy gettext configuration files only if configure.ac contains
62274         a use of AM_GNU_GETTEXT_VERSION.
62275
62276 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
62277
62278         * build-aux/bootstrap (gnulib_name): New variable.
62279         (gnulib_tool_options): Use it.
62280
62281 2007-03-13  Simon Josefsson  <simon@josefsson.org>
62282
62283         * tests/test-des.c: Use new namespace.
62284
62285 2007-03-15  Bruno Haible  <bruno@clisp.org>
62286
62287         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
62288         Reported by James Youngman <jay@gnu.org>.
62289
62290 2007-03-15  Bruno Haible  <bruno@clisp.org>
62291
62292         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
62293         declared prototype. Needed with cc on OSF/1 5.1.
62294
62295 2007-03-15  Bruno Haible  <bruno@clisp.org>
62296
62297         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
62298         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
62299         (struct gl_list_implementation): Add dispose_fn argument to the
62300         'create_empty', 'create' methods.
62301         (struct gl_list_impl_base): Add field 'dispose_fn'.
62302         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
62303         argument.
62304         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
62305         dispose_fn argument.
62306         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
62307         dispose_fn on the dropped values.
62308         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
62309         dispose_fn argument.
62310         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
62311         dropped values.
62312         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
62313         (gl_tree_remove_node): Call dispose_fn on the dropped value.
62314         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
62315         (gl_tree_remove_node): Call dispose_fn on the dropped value.
62316         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
62317         argument.
62318         (gl_tree_list_free): Call dispose_fn on the dropped values.
62319         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
62320         the dropped values.
62321         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
62322         Add dispose_fn argument.
62323         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
62324         Call dispose_fn on the dropped values.
62325         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
62326         Add dispose_fn argument.
62327         (gl_sublist_create): Initialize the 'dispose_fn' field.
62328         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
62329         * tests/test-array_list.c (main): Update.
62330         * tests/test-carray_list.c (main): Update.
62331         * tests/test-avltree_list.c (main): Update.
62332         * tests/test-rbtree_list.c (main): Update.
62333         * tests/test-avltreehash_list.c (main): Update.
62334         * tests/test-rbtreehash_list.c (main): Update.
62335         * tests/test-linked_list.c (main): Update.
62336         * tests/test-linkedhash_list.c (main): Update.
62337         * tests/test-array_oset.c (main): Update.
62338
62339 2007-03-15  Bruno Haible  <bruno@clisp.org>
62340
62341         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
62342         (gl_oset_create_empty): Add dispose_fn argument.
62343         (struct gl_oset_implementation): Add dispose_fn argument to
62344         'create_empty' method.
62345         (struct gl_oset_impl_base): Add dispose_fn field.
62346         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
62347         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
62348         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
62349         values.
62350         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
62351         (gl_tree_oset_free): Call dispose_fn on the dropped values.
62352         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
62353         dropped value.
62354         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
62355         dropped value.
62356         * tests/test-array_oset.c (main): Update.
62357         * tests/test-avltree_oset.c (main): Update.
62358         * tests/test-rbtree_oset.c (main): Update.
62359         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
62360
62361 2007-03-13  Bruno Haible  <bruno@clisp.org>
62362
62363         * tests/test-stdbool.c (i): Update after last patch.
62364
62365 2007-03-12  Bruno Haible  <bruno@clisp.org>
62366
62367         * lib/quotearg.c: Include <wctype.h> early, before the definition of
62368         the iswprint macro. Needed on Solaris 2.5.1.
62369
62370 2007-03-12  Bruno Haible  <bruno@clisp.org>
62371
62372         * tests/test-printf-frexp.c (main): Declare x as volatile.
62373
62374 2007-03-12  Simon Josefsson  <simon@josefsson.org>
62375
62376         * doc/gnulib.texi (Build robot for gnulib): New section.
62377
62378 2007-03-12  Jim Meyering  <jim@meyering.net>
62379
62380         * build-aux/bootstrap: New file.
62381         * build-aux/bootstrap.conf: New file, from coreutils.
62382
62383 2007-03-11  Bruno Haible  <bruno@clisp.org>
62384
62385         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
62386
62387 2007-03-12  Simon Josefsson  <simon@josefsson.org>
62388
62389         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
62390         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
62391         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
62392
62393 2007-03-11  Bruno Haible  <bruno@clisp.org>
62394
62395         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
62396         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
62397
62398 2007-03-11  Bruno Haible  <bruno@clisp.org>
62399
62400         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
62401         formula. Needed for SunPRO C 5.0.
62402
62403 2007-03-11  Bruno Haible  <bruno@clisp.org>
62404
62405         * modules/long-options (Depends-on): Add getopt.
62406
62407 2007-03-11  Bruno Haible  <bruno@clisp.org>
62408
62409         * modules/modechange (Depends-on): Add stdbool.
62410
62411 2007-03-11  Bruno Haible  <bruno@clisp.org>
62412
62413         * modules/i-ring (Depends-on): Add stdbool.
62414
62415 2007-03-11  Bruno Haible  <bruno@clisp.org>
62416
62417         * modules/gc-des (Depends-on): Add stdbool.
62418
62419 2007-03-11  Bruno Haible  <bruno@clisp.org>
62420
62421         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
62422
62423 2007-03-11  Bruno Haible  <bruno@clisp.org>
62424
62425         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
62426
62427 2007-03-11  Bruno Haible  <bruno@clisp.org>
62428
62429         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
62430
62431 2007-03-11  Bruno Haible  <bruno@clisp.org>
62432
62433         * lib/vasnprintf.c (sprintf): Undefine.
62434
62435 2007-03-11  Bruno Haible  <bruno@clisp.org>
62436
62437         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
62438         initializers in SunPRO C and Compaq C compilers.
62439
62440 2007-03-11  Bruno Haible  <bruno@clisp.org>
62441
62442         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
62443         decrementing code ANSI C compliant.
62444
62445 2007-03-11  Bruno Haible  <bruno@clisp.org>
62446
62447         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
62448         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
62449
62450 2007-03-11  Bruno Haible  <bruno@clisp.org>
62451
62452         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
62453         <stdbool.h> substitute doesn't pass.
62454
62455 2007-03-11  Bruno Haible  <bruno@clisp.org>
62456
62457         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
62458
62459 2007-03-11  Bruno Haible  <bruno@clisp.org>
62460
62461         * gnulib-tool (func_create_megatestdir): Create also an autobuild
62462         script, for submission to autobuild.josefsson.org.
62463
62464 2007-03-10  Bruno Haible  <bruno@clisp.org>
62465
62466         * modules/canonicalize-lgpl-tests: New file.
62467         * tests/test-canonicalize-lgpl.sh: New file.
62468         * tests/test-canonicalize-lgpl.c: New file.
62469
62470         * modules/c-strcase-tests: New file.
62471         * tests/test-c-strcase.sh: New file.
62472         * tests/test-c-strcasecmp.c: New file.
62473         * tests/test-c-strncasecmp.c: New file.
62474
62475         * modules/atexit-tests: New file.
62476         * tests/test-atexit.sh: New file.
62477         * tests/test-atexit.c: New file.
62478
62479 2007-03-10  Bruno Haible  <bruno@clisp.org>
62480
62481         * tests/test-binary-io.sh: Use temporary filenames that are not so
62482         likely to clash with those of other tests (in a parallel make).
62483         * tests/test-binary-io.c: Likewise.
62484
62485 2007-03-10  Bruno Haible  <bruno@clisp.org>
62486
62487         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
62488         fallback; use #error instead.
62489         Suggested by Simon Josefsson.
62490
62491 2007-03-10  Bruno Haible  <bruno@clisp.org>
62492
62493         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
62494         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
62495         first and the last.
62496
62497 2007-03-10  Bruno Haible  <bruno@clisp.org>
62498
62499         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
62500
62501 2007-03-10  Bruno Haible  <bruno@clisp.org>
62502
62503         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
62504         "make distcheck".
62505         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
62506         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
62507         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
62508
62509 2007-03-10  Bruno Haible  <bruno@clisp.org>
62510
62511         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
62512         variable.
62513         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
62514         variable.
62515
62516 2007-03-09  Eric Blake  <ebb9@byu.net>
62517         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
62518
62519         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
62520         types are not being provided by gnulib.
62521         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
62522         types are supported.
62523
62524 2007-03-10  Bruno Haible  <bruno@clisp.org>
62525
62526         * lib/stdio_.h (__attribute__): New macro.
62527         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
62528         vsprintf): Specify __attribute__ __format__ for GCC.
62529         Suggested by Eric Blake.
62530
62531 2007-03-09  Bruno Haible  <bruno@clisp.org>
62532
62533         * modules/printf-posix-tests: New file.
62534         * tests/test-printf-posix.sh: New file.
62535         * tests/test-printf-posix.c: New file.
62536
62537         * modules/printf-posix: New file.
62538         * lib/printf.c: New file.
62539         * m4/printf-posix-rpl.m4: New file.
62540         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
62541         REPLACE_PRINTF.
62542         * lib/stdio_.h (printf): New declaration.
62543         (format, __format__, ____printf____, ____scanf____, ____strftime____,
62544         ____strfmon____): New macros.
62545         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
62546         REPLACE_PRINTF.
62547
62548 2007-03-09  Bruno Haible  <bruno@clisp.org>
62549
62550         * tests/test-vasnprintf-posix2.sh: New file.
62551         * tests/test-vasnprintf-posix2.c: New file.
62552         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
62553         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
62554         (Makefile.am): Activate test-vasnprintf-posix2.sh.
62555
62556         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
62557         a locale dependent decimal point, rather than always '.'.
62558
62559 2007-03-09  Eric Blake  <ebb9@byu.net>
62560
62561         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
62562         spite of platforms like Tandem/NSK that define it to -1.
62563
62564 2007-03-08  Bruno Haible  <bruno@clisp.org>
62565
62566         * modules/vprintf-posix-tests: New file.
62567         * tests/test-vprintf-posix.sh: New file.
62568         * tests/test-vprintf-posix.c: New file.
62569         * tests/test-printf-posix.h: New file.
62570
62571         * modules/vprintf-posix: New file.
62572         * lib/vprintf.c: New file.
62573         * m4/vprintf-posix.m4: New file.
62574         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
62575         REPLACE_VPRINTF.
62576         * lib/stdio_.h (vprintf): New declaration.
62577         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
62578         REPLACE_VPRINTF.
62579
62580 2007-03-08  Bruno Haible  <bruno@clisp.org>
62581
62582         * modules/fprintf-posix-tests: New file.
62583         * tests/test-fprintf-posix.sh: New file.
62584         * tests/test-fprintf-posix.c: New file.
62585
62586         * modules/fprintf-posix: New file.
62587         * lib/fprintf.c: New file.
62588         * m4/fprintf-posix.m4: New file.
62589         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
62590         REPLACE_FPRINTF.
62591         * lib/stdio_.h (fprintf): New declaration.
62592         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
62593         REPLACE_FPRINTF.
62594
62595 2007-03-08  Bruno Haible  <bruno@clisp.org>
62596
62597         * modules/vfprintf-posix-tests: New file.
62598         * tests/test-vfprintf-posix.sh: New file.
62599         * tests/test-vfprintf-posix.c: New file.
62600         * tests/test-fprintf-posix.h: New file.
62601         * tests/test-fprintf-posix.out: New file.
62602
62603         * modules/vfprintf-posix: New file.
62604         * lib/vfprintf.c: New file.
62605         * m4/vfprintf-posix.m4: New file.
62606         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
62607         REPLACE_VFPRINTF.
62608         * lib/stdio_.h (vfprintf): New declaration.
62609         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
62610         REPLACE_VFPRINTF.
62611
62612 2007-03-08  Bruno Haible  <bruno@clisp.org>
62613
62614         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
62615
62616 2007-03-08  Bruno Haible  <bruno@clisp.org>
62617
62618         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
62619         instead of 'expr' invocations.
62620         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62621         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62622         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62623         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62624         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62625         Suggested by Paul Eggert.
62626
62627 2007-03-08  Bruno Haible  <bruno@clisp.org>
62628
62629         * modules/fseterr-tests: New file.
62630         * tests/test-fseterr.c: New file.
62631
62632         * modules/fseterr: New file.
62633         * lib/fseterr.h: New file.
62634         * lib/fseterr.c: New file.
62635
62636 2007-03-08  Bruno Haible  <bruno@clisp.org>
62637
62638         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
62639         * lib/getopt_.h: Likewise.
62640         * lib/mbswidth.h: Likewise.
62641         * lib/setenv.h: Likewise.
62642         * lib/vasnprintf.h: Likewise.
62643         * lib/vasprintf.h: Likewise.
62644         * lib/verror.h: Likewise.
62645         * lib/xsetenv.h: Likewise.
62646         * lib/xvasprintf.h: Likewise.
62647
62648 2007-03-08  Jim Meyering  <jim@meyering.net>
62649
62650         * users.txt: Add parted.
62651
62652         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
62653
62654 2007-03-07  Bruno Haible  <bruno@clisp.org>
62655
62656         * m4/printf.m4: Make the shell script snippets copy&pastable.
62657
62658 2007-03-02  Bruno Haible  <bruno@clisp.org>
62659
62660         * lib/netinet_in_.h: New file.
62661         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
62662         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
62663         * modules/netinet_in (Files): Add lib/netinet_in_.h.
62664         (Depends-on): Add absolute-header.
62665         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
62666         into netinet/in.h.
62667
62668 2007-03-03  Bruno Haible  <bruno@clisp.org>
62669
62670         * lib/sys_select_.h: New file.
62671         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
62672         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
62673         * modules/sys_select (Files): Add lib/sys_select_.h.
62674         (Depends-on): Add absolute-header.
62675         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
62676         into sys/select.h.
62677
62678 2007-03-02  Bruno Haible  <bruno@clisp.org>
62679
62680         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
62681         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
62682         values.
62683         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
62684         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
62685         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
62686         * modules/sys_socket (Depends-on): Add absolute-header.
62687         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
62688         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
62689         (Include): Remove requirement of inclusion of <sys/types.h>.
62690
62691 2007-03-02  Bruno Haible  <bruno@clisp.org>
62692
62693         * lib/byteswap_.h (bswap_32): Fix formula.
62694
62695 2007-03-06  Bruno Haible  <bruno@clisp.org>
62696
62697         * modules/sprintf-posix-tests: New file.
62698         * tests/test-sprintf-posix.c: New file.
62699
62700         * modules/sprintf-posix: New file.
62701         * lib/sprintf.c: New file.
62702         * m4/sprintf-posix.m4: New file.
62703         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
62704         REPLACE_SPRINTF.
62705         * lib/stdio_.h (sprintf): New declaration.
62706         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
62707         REPLACE_SPRINTF.
62708
62709 2007-03-06  Bruno Haible  <bruno@clisp.org>
62710
62711         * modules/vsprintf-posix-tests: New file.
62712         * tests/test-vsprintf-posix.c: New file.
62713         * tests/test-sprintf-posix.h: New file.
62714
62715         * modules/vsprintf-posix: New file.
62716         * lib/vsprintf.c: New file.
62717         * m4/vsprintf-posix.m4: New file.
62718         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
62719         REPLACE_VSPRINTF.
62720         * lib/stdio_.h (vsprintf): New declaration.
62721         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
62722         REPLACE_VSPRINTF.
62723
62724 2007-03-06  Bruno Haible  <bruno@clisp.org>
62725
62726         * modules/vsnprintf (Depend-on): Remove minmax.
62727
62728 2007-03-06  Bruno Haible  <bruno@clisp.org>
62729
62730         * modules/snprintf-posix-tests: New file.
62731         * tests/test-snprintf-posix.c: New file.
62732
62733         * modules/snprintf-posix: New file.
62734         * m4/snprintf-posix.m4: New file.
62735         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
62736         gl_FUNC_SNPRINTF.
62737         (gl_FUNC_SNPRINTF): Invoke it.
62738         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
62739         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
62740         is set.
62741         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
62742
62743 2007-03-06  Bruno Haible  <bruno@clisp.org>
62744
62745         * modules/vsnprintf-posix-tests: New file.
62746         * tests/test-vsnprintf-posix.c: New file.
62747         * tests/test-snprintf-posix.h: New file.
62748
62749         * modules/vsnprintf-posix: New file.
62750         * m4/vsnprintf-posix.m4: New file.
62751         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
62752         gl_FUNC_VSNPRINTF.
62753         (gl_FUNC_VSNPRINTF): Invoke it.
62754         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
62755         * lib/stdio_.h (vsnprintf): Define as a replacement if
62756         REPLACE_VSNPRINTF is set.
62757         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
62758
62759 2007-03-06  Bruno Haible  <bruno@clisp.org>
62760
62761         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
62762         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
62763
62764 2007-03-06  Bruno Haible  <bruno@clisp.org>
62765
62766         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
62767         (asinl): Declare also if HAVE_DECL_ASINL is set.
62768         (atanl): Declare also if HAVE_DECL_ATANL is set.
62769         (ceill): Declare also if HAVE_DECL_CEILL is set.
62770         (cosl): Declare also if HAVE_DECL_COSL is set.
62771         (expl): Declare also if HAVE_DECL_EXPL is set.
62772         (floorl): Declare also if HAVE_DECL_FLOORL is set.
62773         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
62774         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
62775         (logl): Declare also if HAVE_DECL_LOGL is set.
62776         (sinl): Declare also if HAVE_DECL_SINL is set.
62777         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
62778         (tanl): Declare also if HAVE_DECL_TANL is set.
62779         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
62780         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
62781         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
62782         declaration of frexpl, ldexpl.
62783         * modules/printf-frexpl (Depends-on): Add math.
62784         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
62785
62786 2007-03-05  Bruno Haible  <bruno@clisp.org>
62787
62788         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
62789         frexpl and ldexpl are declared.
62790         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
62791
62792 2007-03-05  Bruno Haible  <bruno@clisp.org>
62793
62794         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
62795         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
62796
62797 2007-03-05  Bruno Haible  <bruno@clisp.org>
62798
62799         * lib/stdio_.h: Include <stddef.h>.
62800
62801 2007-03-05  Bruno Haible  <bruno@clisp.org>
62802
62803         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
62804
62805 2007-03-05  Bruno Haible  <bruno@clisp.org>
62806
62807         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
62808         NetBSD 4, from Ralf Wildenhues.
62809
62810 2007-03-04  Bruno Haible  <bruno@clisp.org>
62811
62812         * lib/vasprintf.h: Update #if logic for the case when the functions
62813         exist but are overridden.
62814
62815 2007-03-04  Bruno Haible  <bruno@clisp.org>
62816
62817         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
62818         implementations: glibc-2.4 and MacOS X 10.3.
62819         * tests/test-vasnprintf-posix.c (test_function): Test also the case
62820         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
62821         * tests/test-vasprintf-posix.c (test_function): Likewise.
62822
62823 2007-03-04  Bruno Haible  <bruno@clisp.org>
62824
62825         * modules/vasprintf-posix-tests: New file.
62826         * tests/test-vasprintf-posix.c: New file.
62827
62828         * modules/vasprintf-posix: New file.
62829         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
62830         defined.
62831         * m4/vasprintf-posix.m4: New file.
62832         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
62833         gl_FUNC_VASPRINTF.
62834         (gl_FUNC_VASPRINTF): Invoke it.
62835         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
62836         here.
62837         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
62838
62839 2007-03-04  Bruno Haible  <bruno@clisp.org>
62840
62841         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
62842         REPLACE_GETTIMEOFDAY.
62843         * modules/sys_time (Makefile.am): Likewise.
62844         * m4/sys_time_h.m4: Likewise.
62845         * m4/gettimeofday.m4: Likewise.
62846
62847 2007-03-04  Bruno Haible  <bruno@clisp.org>
62848
62849         * modules/vasnprintf-posix-tests: New file.
62850         * tests/test-vasnprintf-posix.c: New file.
62851
62852         * modules/vasnprintf-posix: New file.
62853         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
62854         printf-frexpl.h.
62855         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
62856         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
62857         REPLACE_VASNPRINTF is defined.
62858         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
62859         gl_FUNC_VASNPRINTF.
62860         (gl_FUNC_VASNPRINTF): Invoke it.
62861         * m4/vasnprintf-posix.m4: New file.
62862         * m4/printf.m4: New file.
62863
62864 2007-03-04  Bruno Haible  <bruno@clisp.org>
62865
62866         Compile progreloc.c only if --enable-relocatable is specified.
62867         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
62868         if --enable-relocatable was specified.
62869         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
62870         lib_SOURCES.
62871
62872 2007-03-04  Jim Meyering  <jim@meyering.net>
62873
62874         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
62875         Use it consistently, rather than enumerating errno constants.
62876
62877 2007-03-04  Bruno Haible  <bruno@clisp.org>
62878
62879         * modules/xvasprintf-tests: New file.
62880         * tests/test-xvasprintf.c: New file.
62881
62882         * modules/vasprintf-tests: New file.
62883         * tests/test-vasprintf.c: New file.
62884
62885         * modules/vasnprintf-tests: New file.
62886         * tests/test-vasnprintf.c: New file.
62887
62888         * modules/vsnprintf-tests: New file.
62889         * tests/test-vsnprintf.c: New file.
62890
62891         * modules/snprintf-tests: New file.
62892         * tests/test-snprintf.c: New file.
62893
62894 2007-03-04  Bruno Haible  <bruno@clisp.org>
62895
62896         Compile relocatable.c only if --enable-relocatable is specified.
62897         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
62898         gl_RELOCATABLE_LIBRARY.
62899         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
62900         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
62901         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
62902         gl_RELOCATABLE_LIBRARY.
62903         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
62904         (Makefile.am): Remove lib_SOURCES.
62905         * modules/relocatable-lib-lgpl (configure.ac): Invoke
62906         gl_RELOCATABLE_LIBRARY.
62907         (Makefile.am): Remove lib_SOURCES.
62908         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
62909         always.
62910         * modules/relocatable-prog-wrapper (configure.ac): Invoke
62911         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
62912
62913 2007-03-04  Bruno Haible  <bruno@clisp.org>
62914
62915         * modules/argmatch-tests: New file.
62916         * tests/test-argmatch.c: New file.
62917
62918         * tests/test-allocsa.c (main): Halve the number of loop runs.
62919
62920         * modules/alloca-opt-tests: New file.
62921         * tests/test-alloca-opt.c: New file.
62922
62923 2007-03-04  Jim Meyering  <jim@meyering.net>
62924
62925         Work around difference between Linux ACLs and Solaris 10 ZFS.
62926         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
62927         for EINVAL.
62928
62929 2007-03-03  Bruno Haible  <bruno@clisp.org>
62930
62931         * modules/relocatable-prog (Depends-on): Add back progreloc's
62932         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
62933
62934 2007-03-03  Bruno Haible  <bruno@clisp.org>
62935
62936         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
62937         * modules/relocatable-lib: New file.
62938
62939 2007-03-03  Bruno Haible  <bruno@clisp.org>
62940
62941         * modules/relocatable-prog: Renamed from modules/relocatable.
62942         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
62943
62944 2007-03-03  Bruno Haible  <bruno@clisp.org>
62945
62946         * modules/relocatable-script (Files): Add doc/relocatable.texi,
62947         m4/relocatable-lib.m4.
62948         (Depends-on): Remove 'relocatable'.
62949         (configure.ac): Add gl_RELOCATABLE_NOP.
62950
62951 2007-03-03  Bruno Haible  <bruno@clisp.org>
62952
62953         * modules/relocatable-prog-wrapper: New file.
62954         * modules/relocatable (Depends-on): Add it. Remove all other
62955         dependencies except progname.
62956         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
62957
62958         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
62959         (gl_FUNC_STRERROR): Nop.
62960         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
62961
62962         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
62963         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
62964
62965         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
62966         (gl_FUNC_READLINK): Update.
62967
62968         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
62969
62970 2007-03-03  Bruno Haible  <bruno@clisp.org>
62971
62972         * lib/xreadlink.c: Include <unistd.h> unconditionally.
62973         * modules/xreadlink (Depends-on): Add unistd.
62974         * modules/xreadlink-with-size (Depends-on): Likewise.
62975
62976 2007-03-03  Bruno Haible  <bruno@clisp.org>
62977
62978         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
62979         extracted from gt_FUNC_SETENV.
62980         (gt_FUNC_SETENV): Remove macro.
62981         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
62982         remove gt_FUNC_SETENV.
62983
62984 2007-03-03  Bruno Haible  <bruno@clisp.org>
62985
62986         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
62987         ENABLE_RELOCATABLE here.
62988         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
62989
62990 2007-03-03  Bruno Haible  <bruno@clisp.org>
62991
62992         * modules/rbtreehash-list-tests (Depends-on): Add progname.
62993         * tests/test-rbtreehash_list.c: Include progname.h.
62994         (main): Call set_program_name.
62995
62996         * modules/rbtree-oset-tests (Depends-on): Add progname.
62997         * tests/test-rbtree_oset.c: Include progname.h.
62998         (main): Call set_program_name.
62999
63000         * modules/rbtree-list-tests (Depends-on): Add progname.
63001         * tests/test-rbtree_list.c: Include progname.h.
63002         (main): Call set_program_name.
63003
63004         * modules/linked-list-tests (Depends-on): Add progname.
63005         * tests/test-linked_list.c: Include progname.h.
63006         (main): Call set_program_name.
63007
63008 2007-03-03  Bruno Haible  <bruno@clisp.org>
63009
63010         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
63011         All uses of __restrict changed to _Restrict_.
63012         * lib/glob_.h (__restrict): Remove macro.
63013
63014 2007-03-02  Bruno Haible  <bruno@clisp.org>
63015
63016         * modules/gettext (configure.ac): Require gettext infrastructure
63017         from version 0.16.1.
63018
63019 2007-03-02  Bruno Haible  <bruno@clisp.org>
63020
63021         * modules/linkedhash-list-tests (Depends-on): Add progname.
63022         * tests/test-linkedhash_list.c: Include progname.h.
63023         (main): Call set_program_name.
63024
63025         * modules/carray-list-tests (Depends-on): Add progname.
63026         * tests/test-carray_list.c: Include progname.h.
63027         (main): Call set_program_name.
63028
63029         * modules/avltreehash-list-tests (Depends-on): Add progname.
63030         * tests/test-avltreehash_list.c: Include progname.h.
63031         (main): Call set_program_name.
63032
63033         * modules/avltree-oset-tests (Depends-on): Add progname.
63034         * tests/test-avltree_oset.c: Include progname.h.
63035         (main): Call set_program_name.
63036
63037         * modules/avltree-list-tests (Depends-on): Add progname.
63038         * tests/test-avltree_list.c: Include progname.h.
63039         (main): Call set_program_name.
63040
63041         * modules/array-oset-tests (Depends-on): Add progname.
63042         * tests/test-array_oset.c: Include progname.h.
63043         (main): Call set_program_name.
63044
63045         * modules/array-list-tests (Depends-on): Add progname.
63046         * tests/test-array_list.c: Include progname.h.
63047         (main): Call set_program_name.
63048
63049         * modules/argp-tests (Depends-on): Add progname.
63050         * tests/test-argp.c: Include argp.h first. Include progname.h.
63051         (main): Call set_program_name.
63052
63053 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
63054
63055         * doc/gnulib-tool.texi (Initial import): Reword description of
63056         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
63057         limited effect even if defined after the first system include.
63058
63059 2007-03-01  Bruno Haible  <bruno@clisp.org>
63060
63061         * build-aux/config.libpath: Update to libtool-1.5.22.
63062         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
63063
63064 2007-03-01  Bruno Haible  <bruno@clisp.org>
63065
63066         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
63067         foo_CFLAGS.
63068         Reported by Ralf Wildenhues.
63069
63070 2007-03-01  Bruno Haible  <bruno@clisp.org>
63071
63072         * build-aux/install-reloc: Remove object files left over by some
63073         compilers.
63074         Reported by Ralf Wildenhues.
63075
63076 2007-03-01  Bruno Haible  <bruno@clisp.org>
63077
63078         * build-aux/install-reloc: Break long lines.
63079
63080 2007-03-01  Bruno Haible  <bruno@clisp.org>
63081
63082         * doc/relocatable.texi: Document that it may not work on OpenBSD.
63083         Reported by Ralf Wildenhues.
63084
63085 2007-03-01  Bruno Haible  <bruno@clisp.org>
63086
63087         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
63088         include ordering constraints.
63089
63090 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63091
63092         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
63093         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
63094         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
63095         as another example.
63096         * lib/time_.h: Fix misspelling.
63097         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
63098         Require gl_HEADER_TIME_H_DEFAULTS.
63099         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
63100         * m4/time_r.m4 (gl_TIME_R): Likewise.
63101         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
63102
63103 2007-03-01  Bruno Haible  <bruno@clisp.org>
63104
63105         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
63106         * m4/utimens.m4 (gl_UTIMENS): Likewise.
63107
63108 2007-03-01  Jim Meyering  <jim@meyering.net>
63109
63110         * modules/xreadlink (Maintainer): Add my name.
63111         * modules/xreadlink-with-size (Depends-on): Alphabetize.
63112
63113 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
63114             Bruno Haible  <bruno@clisp.org>
63115
63116         * build-aux/install-reloc: Compile also c-ctype.c.
63117         * build-aux/relocatable.sh.in: New file.
63118         * doc/relocatable.texi: New file.
63119         * doc/relocatable-maint.texi: New file.
63120         * doc/gnulib.texi: Include relocatable-maint.texi.
63121         * lib/progreloc.c: Include unistd.h unconditionally.
63122         * lib/relocwrapper.c: Include unistd.h unconditionally.
63123         Include c-ctype.h.
63124         (add_dotbin): Use c_tolower.
63125         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
63126         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
63127         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
63128         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
63129         to m4/relocatable-lib.m4.
63130         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
63131         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
63132         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
63133         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
63134         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
63135         * modules/relocatable: New file.
63136         * modules/relocatable-lib: New file.
63137         * modules/relocatable-script: New file.
63138
63139 2007-02-28  Bruno Haible  <bruno@clisp.org>
63140
63141         Import --enable-relocatable infrastructure.
63142         * build-aux/config.libpath: New file, from GNU gettext.
63143         * build-aux/install-reloc: New file, from GNU gettext.
63144         * build-aux/reloc-ldflags: New file, from GNU gettext.
63145         * lib/relocatable.h: New file, from GNU gettext.
63146         * lib/relocatable.c: New file, from GNU gettext.
63147         * lib/relocwrapper.c: New file, from GNU gettext.
63148         * m4/relocatable.m4: New file, from GNU gettext.
63149
63150 2007-02-28  Bruno Haible  <bruno@clisp.org>
63151
63152         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
63153
63154         * modules/xreadlink: New file, from GNU gettext with modifications.
63155         * lib/xreadlink.c: New file, from GNU gettext.
63156         * lib/xreadlink.h: Add comments.
63157         (xreadlink): New declaration.
63158
63159         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
63160         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
63161         lib/xreadlink-with-size.c.
63162         (configure.ac): Remove gl_XREADLINK invocation.
63163         (Makefile.am): Augment lib_SOURCES.
63164         * m4/xreadlink.m4: Remove file.
63165         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
63166         (xreadlink_with_size): Renamed from xreadink.
63167         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
63168         * modules/canonicalize (Depends-on): Replace xreadlink with
63169         xreadlink-with-size.
63170         * lib/canonicalize.c (canonicalize_filename_mode): Update.
63171
63172 2007-02-25  Jim Meyering  <jim@meyering.net>
63173
63174         * build-aux/announce-gen: When complaining about excess arguments,
63175         list them.
63176
63177 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
63178
63179         * README: Document signed integer overflow situation more
63180         accurately.
63181
63182 2007-02-25  Bruno Haible  <bruno@clisp.org>
63183
63184         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
63185         'a' or 'A' conversion.
63186
63187 2007-02-25  Bruno Haible  <bruno@clisp.org>
63188
63189         * modules/filename: Renamed from modules/pathname.
63190         (Files): Replace lib/pathname.h with lib/filename.h. Replace
63191         lib/concatpath.c with lib/concat-filename.c.
63192         (Makefile.am): Update.
63193         (Include): Replace pathname.h with filename.h.
63194         * lib/filename.h: Renamed from lib/pathname.h.
63195         (concatenated_filename): Renamed from concatenated_pathname.
63196         * lib/concat-filename.c: Renamed from lib/concatpath.c.
63197         (concatenated_filename): Renamed from concatenated_pathname.
63198         * lib/findprog.c: Include filename.h instead of pathname.h.
63199         (find_in_path): Update.
63200         * lib/javacomp.c: Include filename.h instead of pathname.h.
63201         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
63202         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
63203         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
63204         is_oldgcj_14_13_usable, is_javac_usable): Update.
63205         * lib/javaexec.c: Include filename.h instead of pathname.h.
63206         (execute_java_class): Update.
63207         * modules/findprog: Update.
63208         * modules/javacomp: Update.
63209         * modules/javaexec: Update.
63210         * MODULES.html.sh (File system functions): Add 'filename', remove
63211         'pathname'.
63212
63213 2007-02-25  Bruno Haible  <bruno@clisp.org>
63214
63215         * modules/printf-frexpl-tests: New file.
63216         * tests/test-printf-frexpl.c: New file.
63217
63218         * modules/printf-frexpl: New file.
63219         * lib/printf-frexpl.h: New file.
63220         * lib/printf-frexpl.c: New file.
63221         * m4/printf-frexpl.m4: New file.
63222
63223 2007-02-25  Bruno Haible  <bruno@clisp.org>
63224
63225         * modules/printf-frexp-tests: New file.
63226         * tests/test-printf-frexp.c: New file.
63227
63228         * modules/printf-frexp: New file.
63229         * lib/printf-frexp.h: New file.
63230         * lib/printf-frexp.c: New file.
63231         * m4/printf-frexp.m4: New file.
63232
63233 2007-02-25  Bruno Haible  <bruno@clisp.org>
63234
63235         Assume automake >= 1.10 for the tests.
63236         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
63237         * modules/arctwo-tests: Likewise.
63238         * modules/argp-tests: Likewise.
63239         * modules/avltree-list-tests: Likewise.
63240         * modules/avltree-oset-tests: Likewise.
63241         * modules/avltreehash-list-tests: Likewise.
63242         * modules/carray-list-tests: Likewise.
63243         * modules/crc-tests: Likewise.
63244         * modules/des-tests: Likewise.
63245         * modules/gc-arcfour-tests: Likewise.
63246         * modules/gc-arctwo-tests: Likewise.
63247         * modules/gc-des-tests: Likewise.
63248         * modules/gc-hmac-md5-tests: Likewise.
63249         * modules/gc-hmac-sha1-tests: Likewise.
63250         * modules/gc-md2-tests: Likewise.
63251         * modules/gc-md4-tests: Likewise.
63252         * modules/gc-md5-tests: Likewise.
63253         * modules/gc-pbkdf2-sha1-tests: Likewise.
63254         * modules/gc-rijndael-tests: Likewise.
63255         * modules/gc-sha1-tests: Likewise.
63256         * modules/gc-tests: Likewise.
63257         * modules/getaddrinfo-tests: Likewise.
63258         * modules/hmac-md5-tests: Likewise.
63259         * modules/hmac-sha1-tests: Likewise.
63260         * modules/linked-list-tests: Likewise.
63261         * modules/linkedhash-list-tests: Likewise.
63262         * modules/lock-tests: Likewise.
63263         * modules/md2-tests: Likewise.
63264         * modules/md4-tests: Likewise.
63265         * modules/md5-tests: Likewise.
63266         * modules/rbtree-list-tests: Likewise.
63267         * modules/rbtree-oset-tests: Likewise.
63268         * modules/rbtreehash-list-tests: Likewise.
63269         * modules/read-file-tests: Likewise.
63270         * modules/rijndael-tests: Likewise.
63271         * modules/stdint-tests: Likewise.
63272         * modules/tls-tests: Likewise.
63273
63274 2007-02-24  Bruno Haible  <bruno@clisp.org>
63275
63276         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
63277         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
63278         function; instead check whether isnan with a double argument links.
63279         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
63280         function; instead check whether isnan with a 'long double' argument
63281         links.
63282         Reported by Eric Blake <ebb9@byu.net>.
63283
63284 2007-02-24  Bruno Haible  <bruno@clisp.org>
63285
63286         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
63287         defined.
63288         * lib/isnanl.c: Remove all code. Just include isnan.c.
63289         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
63290
63291 2007-02-25  Jim Meyering  <jim@meyering.net>
63292
63293         Avoid conflicting types for 'unsetenv' on FreeBSD.
63294         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
63295         conflicting with FreeBSD's (5.0 and 6.1) function declaration
63296         in stdlib.h.
63297
63298 2007-02-24  Bruno Haible  <bruno@clisp.org>
63299
63300         * modules/isnanl-nolibm-tests: New file.
63301         * tests/test-isnanl.c: New file.
63302
63303         * modules/isnanl-nolibm: New file.
63304         * lib/isnanl.h: New file.
63305         * lib/isnanl.c: New file.
63306         * m4/isnanl.m4: New file.
63307
63308 2007-02-24  Bruno Haible  <bruno@clisp.org>
63309
63310         * modules/isnan-nolibm-tests: New file.
63311         * tests/test-isnan.c: New file.
63312
63313         * modules/isnan-nolibm: New file.
63314         * lib/isnan.h: New file.
63315         * lib/isnan.c: New file.
63316         * m4/isnan.m4: New file.
63317
63318 2007-02-24  Bruno Haible  <bruno@clisp.org>
63319
63320         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
63321         assume that an exponent fits in 20 bits.
63322
63323 2007-02-24  Jim Meyering  <jim@meyering.net>
63324
63325         * m4/regex.m4: Update the description of the configure-time option,
63326         --without-included-regex, to state accurately what the defaults are,
63327         and perhaps to give people an idea why using this option is risky.
63328
63329 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
63330
63331         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
63332         loops on small arguments.  This attempts to avoid the problem
63333         Bruno Haible reported for AIX 4.3.2 in
63334         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
63335
63336 2007-02-23  Bruno Haible  <bruno@clisp.org>
63337
63338         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
63339         Needed for help2man.
63340
63341 2007-02-23  Karl Berry  <karl@gnu.org>
63342
63343         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
63344         exists, foo.h should be cvs-ignored, not committed.
63345
63346 2007-02-23  Eric Blake  <ebb9@byu.net>
63347
63348         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
63349         * lib/stat-time.h (includes): Likewise.
63350         * lib/utimecmp.c (includes): Likewise.
63351         * lib/utimens.h (includes): Likewise.
63352         * lib/getdate.y (includes): Also include "timespec.h" for use
63353         internal to the module.
63354         * modules/utimens (Depends-on): Revert yesterday's patch.
63355         * modules/nanosleep (Depends-on): Add missing dependency.
63356
63357 2007-02-22  Bruno Haible  <bruno@clisp.org>
63358
63359         * lib/glob.c: Don't include getlogin_r.h.
63360
63361 2007-02-22  Jim Meyering  <jim@meyering.net>
63362
63363         * modules/utimens (Depends-on): Add timespec, required for
63364         utimens.h's inclusion of timespec.h.
63365
63366 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
63367
63368         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
63369         long unreadable paths in GNU/Linux.  Problem reported by Andreas
63370         Schwab in
63371         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
63372         I'll try to think of a better way to fix the Solaris problem.
63373
63374         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
63375         like glibc; on Solaris 10, it fails with errno == EINVAL.
63376         POSIX says the behavior is unspecified if the first argument is NULL,
63377         so play it safe and never pass NULL to the system getcwd.
63378
63379 2007-02-21  Jim Meyering  <jim@meyering.net>
63380
63381         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
63382         of gettimeofday.  It would conflict with the one now always
63383         provided via sys_time_.h.  Reported by Matthew Woehlke, as
63384         an IRIX 6.5 build failure.
63385
63386 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
63387
63388         Minor fixups to port to Solaris 10 with Sun C 5.8.
63389         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
63390         * modules/getcwd (Depends-on): Add dirfd.
63391         * lib/putenv.c (putenv): #undef it.
63392         (rpl_putenv): New decl.
63393         (malloc, free): Include <stdlib.h> rather than prototyping separately.
63394
63395 2007-02-20  Bruno Haible  <bruno@clisp.org>
63396
63397         * modules/stdio-tests: New file.
63398         * tests/test-stdio.c: New file.
63399
63400         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
63401         (Depends-on): Add stdio.
63402         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
63403         (Include): Use <stdio.h> instead of vsnprintf.h.
63404         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
63405         HAVE_DECL_VSNPRINTF.
63406         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
63407
63408         * modules/snprintf (Files): Remove lib/snprintf.h.
63409         (Depends-on): Add stdio.
63410         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
63411         (Include): Use <stdio.h> instead of snprintf.h.
63412         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
63413         HAVE_DECL_SNPRINTF.
63414         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
63415         * lib/getaddrinfo.c: Likewise.
63416
63417         * modules/stdio: New file.
63418         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
63419         * lib/snprintf.h: Remove file.
63420         * lib/vsnprintf.h: Remove file.
63421         * lib/.cppi-disable: Remove snprintf.h.
63422         * m4/stdio_h.m4: New file.
63423         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
63424
63425 2007-02-20  Jim Meyering  <jim@meyering.net>
63426
63427         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
63428         used by e.g., mingw.  From Bruno Haible.
63429
63430 2007-02-19  Bruno Haible  <bruno@clisp.org>
63431
63432         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
63433         warnings.
63434         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63435
63436 2007-02-19  Bruno Haible  <bruno@clisp.org>
63437
63438         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
63439         from mingw users.
63440
63441 2007-02-19  Bruno Haible  <bruno@clisp.org>
63442
63443         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
63444         warnings.
63445         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
63446
63447 2007-02-19  Jim Meyering  <jim@meyering.net>
63448
63449         Don't use FD after a successful "fdopendir (fd)".
63450         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
63451         Reset it by calling dirfd on the just-obtained DIR*.
63452
63453         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
63454         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
63455
63456 2007-02-18  Bruno Haible  <bruno@clisp.org>
63457
63458         * lib/readlink.c: Include <unistd.h>.
63459         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
63460         HAVE_READLINK.
63461         * modules/readlink (Depends-on): Add unistd.
63462         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63463         (Include): Add <unistd.h>.
63464
63465         * lib/getlogin_r.h: Remove file.
63466         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
63467         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
63468         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
63469         HAVE_DECL_GETLOGIN_R.
63470         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
63471         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63472         (Include): Use <unistd.h> instead of getlogin_r.h.
63473
63474         * lib/getcwd.h: Remove file.
63475         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
63476         * lib/xgetcwd.c: Likewise.
63477         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
63478         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
63479         * modules/getcwd (Files): Remove lib/getcwd.h.
63480         (Depends-on): Add unistd.
63481         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63482         (Include): Use <unistd.h> instad of getcwd.h.
63483
63484         * lib/ftruncate.c: Include <unistd.h> first.
63485         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
63486         Set HAVE_FTRUNCATE.
63487         * modules/ftruncate (Depends-on): Add unistd.
63488         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63489
63490         * lib/fchdir.c: Include <unistd.h> first.
63491         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
63492         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
63493         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
63494         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63495         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
63496
63497         * lib/dup2.c: Include <unistd.h> first.
63498         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
63499         HAVE_DUP2.
63500         * modules/dup2 (Depends-on): Add unistd.
63501         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63502
63503         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
63504         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
63505         REPLACE_CHOWN. Don't define chown as a macro here.
63506         * modules/chown (Depends-on): Add unistd.
63507         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63508
63509         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
63510         Add definition for GL_LINK_WARNING.
63511         (chown, dup2): New declarations.
63512         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
63513         link warning.
63514         (ftruncate): New declaration.
63515         (getcwd): New declaration, taken from old getcwd.h.
63516         (getlogin_r): New declaration, taken from old getlogin_r.h.
63517         (readlink): New declaration.
63518         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
63519         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
63520         (gl_PREREQ_UNISTD): Remove macro.
63521         (gl_UNISTD_MODULE_INDICATOR): New macro.
63522         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
63523         many new variables. Don't set UNISTD_H.
63524         * modules/unistd (Description): Change.
63525         (Depends-on): Add link-warning.
63526         (configure.ac): Update.
63527         (Makefile.am): Create unistd.h always. Substitute many new variables
63528         into it.
63529
63530 2007-02-18  Bruno Haible  <bruno@clisp.org>
63531
63532         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
63533         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
63534         HAVE_GETSUBOPT.
63535         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
63536         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
63537         * lib/getsubopt.h: Remove file.
63538         * modules/getsubopt (Files): Remove lib/getsubopt.h.
63539         (Depends-on): Add stdlib.
63540         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63541         (Includes): Use <stdlib.h> instead of getsubopt.h.
63542         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
63543         Set HAVE_GETSUBOPT.
63544         * lib/getsubopt.c: Don't include getsubopt.h.
63545
63546 2007-02-18  Bruno Haible  <bruno@clisp.org>
63547
63548         * modules/fchdir (Depends-on): Add dup2.
63549
63550 2007-02-18  Bruno Haible  <bruno@clisp.org>
63551
63552         * lib/stdlib_.h: Handle glibc's special invocation convention
63553         specially.
63554
63555 2007-02-18  Bruno Haible  <bruno@clisp.org>
63556
63557         * modules/stdlib-tests: New file.
63558         * tests/test-stdlib.c: New file.
63559
63560         * modules/mkstemp (Files): Remove lib/mkstemp.h.
63561         (Depends-on): Add stdlib.
63562         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63563         (Includes): Use <stdlib.h> instead of mkstemp.h.
63564         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
63565         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
63566         * lib/mkstemp.c: Don't include mkstemp.h.
63567         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
63568         * lib/stdlib--.h: Don't include mkstemp.h.
63569
63570         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
63571         (Depends-on): Add stdlib.
63572         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63573         (Includes): Use <stdlib.h> instead of mkdtemp.h.
63574         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
63575         HAVE_MKDTEMP.
63576         * lib/mkdtemp.c: Don't include mkdtemp.h.
63577         * lib/clean-temp.c: Don't include mkdtemp.h.
63578
63579         * modules/exit (Files): Remove lib/exit.h.
63580         (Depends-on): Add stdlib.
63581         (Makefile.am): Remove lib_SOURCES.
63582         (Include): Use <stdlib.h> instead of exit.h.
63583         * lib/argmatch.c: Don't include exit.h.
63584         * lib/execute.c: Likewise.
63585         * lib/pagealign_alloc.c: Likewise.
63586         * lib/pipe.c: Likewise.
63587         * lib/wait-process.c: Likewise.
63588         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
63589         * lib/exitfail.c: Likewise.
63590         * lib/savewd.c: Likewise.
63591         * lib/xsetenv.c: Likewise.
63592
63593         * modules/stdlib: New file.
63594         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
63595         and extra comments about mkstemp().
63596         * lib/exit.h: Remove file.
63597         * lib/mkdtemp.h: Remove file.
63598         * lib/mkstemp.h: Remove file.
63599         * m4/stdlib_h.m4: New file.
63600         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
63601
63602 2007-02-18  Bruno Haible  <bruno@clisp.org>
63603
63604         * modules/math-tests: New file.
63605         * tests/test-math.c: New file.
63606
63607         * modules/math: New file.
63608         * modules/mathl (Files): Remove lib/mathl.h.
63609         (Depends-on): Add math.
63610         (Makefile.am): Don't mention mathl.h.
63611         (Include): Use <math.h> instead of mathl.h.
63612         * lib/math_.h: New file.
63613         * lib/mathl.h: Remove file.
63614         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
63615         mathl.h.
63616         * lib/asinl.c: Likewise.
63617         * lib/atanl.c: Likewise.
63618         * lib/ceill.c: Likewise.
63619         * lib/cosl.c: Likewise.
63620         * lib/expl.c: Likewise.
63621         * lib/floorl.c: Likewise.
63622         * lib/frexpl.c: Likewise.
63623         * lib/ldexpl.c: Likewise.
63624         * lib/logl.c: Likewise.
63625         * lib/sincosl.c: Likewise.
63626         * lib/sinl.c: Likewise.
63627         * lib/sqrtl.c: Likewise.
63628         * lib/tanl.c: Likewise.
63629         * lib/trigl.c: Likewise.
63630         * m4/math_h.m4: New file.
63631         * MODULES.html.sh (Mathematics): Add math.
63632
63633 2007-02-17  Bruno Haible  <bruno@clisp.org>
63634
63635         * modules/wctype-tests: New file.
63636         * tests/test-wctype.c: New file.
63637
63638         * modules/wchar-tests: New file.
63639         * tests/test-wchar.c: New file.
63640
63641         * modules/unistd-tests: New file.
63642         * tests/test-unistd.c: New file.
63643
63644         * modules/time-tests: New file.
63645         * tests/test-time.c: New file.
63646
63647         * modules/sysexits-tests: New file.
63648         * tests/test-sysexits.c: New file.
63649
63650         * modules/sys_time-tests: New file.
63651         * tests/test-sys_time.c: New file.
63652
63653         * modules/sys_stat-tests: New file.
63654         * tests/test-sys_stat.c: New file.
63655
63656         * modules/sys_socket-tests: New file.
63657         * tests/test-sys_socket.c: New file.
63658
63659         * modules/sys_select-tests: New file.
63660         * tests/test-sys_select.c: New file.
63661
63662         * modules/string-tests: New file.
63663         * tests/test-string.c: New file.
63664
63665         * modules/stdbool-tests: New file.
63666         * tests/test-stdbool.c: New file.
63667
63668         * modules/netinet_in-tests: New file.
63669         * tests/test-netinet_in.c: New file.
63670
63671         * modules/inttypes-tests: New file.
63672         * tests/test-inttypes.c: New file.
63673
63674         * modules/fcntl-tests: New file.
63675         * tests/test-fcntl.c: New file.
63676
63677         * modules/byteswap-tests: New file.
63678         * tests/test-byteswap.c: New file.
63679
63680         * modules/arpa_inet-tests: New file.
63681         * tests/test-arpa_inet.c: New file.
63682
63683 2007-02-17  Bruno Haible  <bruno@clisp.org>
63684
63685         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
63686         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
63687         if the corresponding module is not enabled. Emit link warnings if
63688         the function is used nevertheless.
63689         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
63690         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
63691         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
63692         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
63693         * modules/inttypes (Depends-on): Add link-warning.
63694         (Makefile.am): Copy the contents of build-aux/link-warning.h into
63695         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
63696         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
63697         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
63698         * modules/imaxdiv (configure.ac): Likewise.
63699         * modules/strtoimax (configure.ac): Likewise.
63700         * modules/strtoumax (configure.ac): Likewise.
63701
63702 2007-02-17  Bruno Haible  <bruno@clisp.org>
63703
63704         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
63705         gl_STRING_MODULE_INDICATOR_DEFAULTS.
63706         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
63707         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
63708
63709 2007-02-17  Bruno Haible  <bruno@clisp.org>
63710
63711         * modules/link-warning: New file.
63712         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
63713         * lib/string_.h (GL_LINK_WARNING): Remove definition.
63714         * modules/string (Depends-on): Add link-warning.
63715         (Makefile.am): Copy the contents of build-aux/link-warning.h into
63716         string.h.
63717         * MODULES.html.sh (Support for building libraries and executables): Add
63718         link-warning.
63719
63720 2007-02-17  Bruno Haible  <bruno@clisp.org>
63721
63722         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
63723         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
63724         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
63725         long lines.
63726
63727 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
63728             Bruno Haible  <bruno@clisp.org>
63729
63730         * modules/tmpfile: New file.
63731         * lib/tmpfile.c: New file.
63732         * m4/tmpfile.m4: New file.
63733         * MODULES.html.sh (func_all_modules): New section "Input/output".
63734
63735 2007-02-15  Bruno Haible  <bruno@clisp.org>
63736
63737         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
63738         (supports_delete_on_close): New function.
63739         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
63740
63741 2007-02-14  Bruno Haible  <bruno@clisp.org>
63742
63743         * modules/mbspcasecmp-tests: New file.
63744         * tests/test-mbspcasecmp.sh: New file.
63745         * tests/test-mbspcasecmp.c: New file.
63746
63747         New module mbspcasecmp.
63748         * modules/mbspcasecmp: New file.
63749         * lib/mbspcasecmp.c: New file.
63750         * lib/string_.h (strncasecmp): Change warning message.
63751         (mbspcasecmp): New declaration.
63752         * m4/mbspcasecmp.m4: New file.
63753         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63754         GNULIB_MBSPCASECMP.
63755         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
63756         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
63757
63758 2007-02-14  Bruno Haible  <bruno@clisp.org>
63759
63760         * modules/mbsncasecmp-tests: New file.
63761         * tests/test-mbsncasecmp.sh: New file.
63762         * tests/test-mbsncasecmp.c: New file.
63763
63764         New module mbsncasecmp.
63765         * modules/mbsncasecmp: New file.
63766         * lib/mbsncasecmp.c: New file.
63767         * lib/string_.h (mbsncasecmp): New declaration.
63768         * m4/mbsncasecmp.m4: New file.
63769         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63770         GNULIB_MBSNCASECMP.
63771         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
63772         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
63773
63774 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
63775
63776         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
63777         Verify that it doesn't overlap with our flags.
63778         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
63779         do not have the desired effect in multibyte locales; instead, use
63780         mbscasecmp.
63781         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
63782         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
63783         we don't require GNU fnmatch ourselves (if our users require it, they
63784         should do so explicitly).
63785
63786         Fix regex code so it doesn't rely on strcasecmp.
63787         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
63788         Otherwise, include gnulib's langinfo.h.
63789         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
63790         undesirable behavior in non-C locales.  Instead, rely on localecharset.
63791         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
63792         * modules/regex (FILES): Remove m4/codeset.m4.
63793         (Depends-on): Add localcharset.  Remove strcase.
63794
63795 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63796
63797         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
63798         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
63799
63800 2007-02-13  Bruno Haible  <bruno@clisp.org>
63801
63802         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
63803         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63804
63805 2007-02-12  Bruno Haible  <bruno@clisp.org>
63806
63807         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63808         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
63809         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
63810         time warning rather than a link error.
63811
63812 2007-02-12  Bruno Haible  <bruno@clisp.org>
63813
63814         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
63815         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63816         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63817
63818 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63819
63820         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
63821         args, not 2.
63822
63823 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63824
63825         New module 'time', so that apps can include <time.h> as per
63826         POSIX and GNU instead of separate include files like time_r.h
63827         and timegm.h.  This implementation tries out a simpler approach
63828         for replacing decls in standard include files (as compared to
63829         the string module), somewhat as an experiment.
63830
63831         * config/srclist.txt: Comment out mktime.c for now.
63832         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
63833         since it doesn't apply any more.  Use generic wording instead.
63834         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
63835         'time'.
63836         * lib/time_.h, m4/time_h.m4, modules/time: New files.
63837         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
63838         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
63839         Don't include <sys/types.h>; no longer needed since we assume C89.
63840         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
63841         * lib/strftime.c: Likewise.
63842         * lib/time_r.c: Likewise.
63843         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
63844         * lib/nanosleep.c: Include <time.h> first, to check interface.
63845         * lib/strptime.c: Likewise.
63846         * lib/time_r.c: Likewise.
63847         * lib/timegm.c: Likewise.
63848         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
63849         needed.
63850         * lib/timegm.c: Don't include timegm.h; no longer needed.
63851         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
63852         time.h now handles any problems in that area.
63853         (struct timespec, nanosleep): Remove; time.h now arranges for these.
63854         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
63855         that time.h defines struct timespec.
63856         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
63857         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
63858         handles that.
63859         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
63860         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
63861         needed.  Set REPLACE_LOCALTIME.
63862         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
63863         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
63864         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
63865         nanosleep; time_h.m4 now does that.  Don't require
63866         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
63867         module handles this now.
63868         * modules/getdate (Depends-on): Remove timespec.  Add time.
63869         * modules/nanosleep (Depends-on): Likewise.
63870         * modules/stat-time (Depends-on): Likewise.
63871         * modules/nanosleep (Include): Include time.h, not timespec.h.
63872         * modules/strptime (Files): Remove lib/strptime.h.
63873         (Depends-on): Add extensions, time.
63874         (Include): Include time.h, not strptime.h.
63875         * modules/time_r (Files): Remove lib/time_r.h.
63876         (Depends-on): Add time.
63877         (Include): Include time.h, not time_r.h.
63878         * modules/timegm: Likewise.
63879         * modules/timespec (Description): Now does timespec-related decls
63880         of our own, instead of struct timespec itself.
63881         (Depends-on): Add time; remove extensions.
63882         (Maintainer): Add self.
63883         * modules/utimecmp (Depends-on): Add time; remove timespec.
63884         * modules/utimens (Depends-on): Likewise.
63885         * modules/xnanosleep (Depends-on): Likewise.
63886
63887 2007-02-11  Bruno Haible  <bruno@clisp.org>
63888
63889         * lib/c-strstr.c: Include allocsa.h.
63890         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63891         * lib/c-strcasestr.c: Include allocsa.h.
63892         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63893         * lib/strcasestr.c: Include allocsa.h.
63894         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63895         * lib/mbsstr.c: Include allocsa.h.
63896         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63897         allocsa/freesa instead of malloc/free.
63898         * lib/mbscasestr.c: Include allocsa.h.
63899         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63900         allocsa/freesa instead of malloc/free.
63901         * modules/c-strstr (Depends-on): Add allocsa.
63902         * modules/c-strcasestr (Depends-on): Likewise.
63903         * modules/strcasestr (Depends-on): Likewise.
63904         * modules/mbsstr (Depends-on): Likewise.
63905         * modules/mbscasestr (Depends-on): Likewise.
63906
63907 2007-02-11  Bruno Haible  <bruno@clisp.org>
63908
63909         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
63910
63911         * modules/mbsspn-tests: New file.
63912         * tests/test-mbsspn.sh: New file.
63913         * tests/test-mbsspn.c: New file.
63914
63915 2007-02-11  Bruno Haible  <bruno@clisp.org>
63916
63917         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
63918
63919         * modules/mbspbrk-tests: New file.
63920         * tests/test-mbspbrk.sh: New file.
63921         * tests/test-mbspbrk.c: New file.
63922
63923 2007-02-11  Bruno Haible  <bruno@clisp.org>
63924
63925         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
63926         unneeded cast.
63927
63928         * modules/mbscspn-tests: New file.
63929         * tests/test-mbscspn.sh: New file.
63930         * tests/test-mbscspn.c: New file.
63931
63932 2007-02-11  Bruno Haible  <bruno@clisp.org>
63933
63934         * modules/mbscasecmp-tests: New file.
63935         * tests/test-mbscasecmp.sh: New file.
63936         * tests/test-mbscasecmp.c: New file.
63937
63938 2007-02-11  Bruno Haible  <bruno@clisp.org>
63939
63940         Ensure O(n) worst-case complexity of mbscasestr.
63941         * lib/mbscasestr.c: Include stdbool.h.
63942         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63943         functions.
63944         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
63945         the bookkeeping indicates that it's worth it.
63946         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
63947
63948         * modules/mbscasestr-tests: New file.
63949         * tests/test-mbscasestr1.c: New file.
63950         * tests/test-mbscasestr2.sh: New file.
63951         * tests/test-mbscasestr2.c: New file.
63952         * tests/test-mbscasestr3.sh: New file.
63953         * tests/test-mbscasestr3.c: New file.
63954         * tests/test-mbscasestr4.sh: New file.
63955         * tests/test-mbscasestr4.c: New file.
63956         * m4/locale-tr.m4: New file.
63957
63958 2007-02-11  Bruno Haible  <bruno@clisp.org>
63959
63960         Ensure O(n) worst-case complexity of mbsstr.
63961         * lib/mbsstr.c: Include stdbool.h.
63962         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63963         functions.
63964         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
63965         bookkeeping indicates that it's worth it.
63966         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
63967
63968         * modules/mbsstr-tests: New file.
63969         * tests/test-mbsstr1.c: New file.
63970         * tests/test-mbsstr2.sh: New file.
63971         * tests/test-mbsstr2.c: New file.
63972         * tests/test-mbsstr3.sh: New file.
63973         * tests/test-mbsstr3.c: New file.
63974         * m4/locale-fr.m4: New file.
63975
63976 2007-02-11  Bruno Haible  <bruno@clisp.org>
63977
63978         * lib/mbsrchr.c (mbsrchr): Fix bug.
63979
63980         * modules/mbsrchr-tests: New file.
63981         * tests/test-mbsrchr.sh: New file.
63982         * tests/test-mbsrchr.c: New file.
63983
63984 2007-02-11  Bruno Haible  <bruno@clisp.org>
63985
63986         * lib/mbschr.c (mbschr): Fix bug.
63987
63988         * modules/mbschr-tests: New file.
63989         * tests/test-mbschr.sh: New file.
63990         * tests/test-mbschr.c: New file.
63991         * m4/locale-zh.m4: New file.
63992
63993 2007-02-11  Bruno Haible  <bruno@clisp.org>
63994
63995         Support for copying multibyte string iterators.
63996         * lib/mbiter.h: Include <string.h>.
63997         (mbiter_multi_copy): New function.
63998         (mbi_copy): New macro.
63999         * lib/mbuiter.h: Include <string.h>.
64000         (mbuiter_multi_copy): New function.
64001         (mbui_copy): New macro.
64002
64003 2007-02-11  Bruno Haible  <bruno@clisp.org>
64004
64005         New module mbslen.
64006         * modules/mbslen: New file.
64007         * lib/mbslen.c: New file.
64008         * lib/string_.h (mbslen): New declaration.
64009         * m4/mbslen.m4: New file.
64010         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64011         GNULIB_MBSLEN.
64012         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
64013         * MODULES.html.sh (Internationalization functions): Add mbslen.
64014
64015 2007-02-11  Bruno Haible  <bruno@clisp.org>
64016
64017         Ensure O(n) worst-case complexity of strcasestr substitute.
64018         * lib/strcasestr.c: Include stdbool.h.
64019         (knuth_morris_pratt): New function.
64020         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
64021         bookkeeping indicates that it's worth it.
64022         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
64023
64024         * modules/strcasestr-tests: New file.
64025         * tests/test-strcasestr.c: New file.
64026
64027 2007-02-11  Bruno Haible  <bruno@clisp.org>
64028
64029         Ensure O(n) worst-case complexity of c_strcasestr.
64030         * lib/c-strcasestr.c: Include stdbool.h, string.h.
64031         (knuth_morris_pratt): New function.
64032         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
64033         the bookkeeping indicates that it's worth it.
64034         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
64035
64036         * modules/c-strcasestr-tests: New file.
64037         * tests/test-c-strcasestr.c: New file.
64038
64039 2007-02-11  Bruno Haible  <bruno@clisp.org>
64040
64041         Ensure O(n) worst-case complexity of c_strstr.
64042         * lib/c-strstr.c: Include stdbool.h, string.h.
64043         (knuth_morris_pratt): New function.
64044         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
64045         bookkeeping indicates that it's worth it.
64046         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
64047
64048         * lib/c-strstr.c: Complete rewrite for maintainability.
64049
64050         * modules/c-strstr-tests: New file.
64051         * tests/test-c-strstr.c: New file.
64052
64053 2007-02-11  Bruno Haible  <bruno@clisp.org>
64054
64055         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
64056         5.2.1 and earlier, whereby \055 was treated just like the range
64057         delimiter '-'.
64058         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
64059
64060 2007-02-08  Bruno Haible  <bruno@clisp.org>
64061
64062         * modules/regex (Depends-on): Add stdbool.
64063         Reported by Dalibor Topic <robilad@kaffe.org>.
64064
64065 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
64066
64067         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
64068         Prefer returning from main to exiting from it.
64069         Remove unnecessary parens after sizeof.
64070
64071 2007-02-05  Bruno Haible  <bruno@clisp.org>
64072
64073         New module mbssep.
64074         * modules/mbssep: New file.
64075         * lib/mbssep.c: New file.
64076         * lib/string_.h (strsep): Add a conditional link warning.
64077         (mbssep): New declaration.
64078         * m4/mbssep.m4: New file.
64079         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64080         GNULIB_MBSSEP.
64081         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
64082         * MODULES.html.sh (Internationalization functions): Add mbssep.
64083
64084 2007-02-05  Bruno Haible  <bruno@clisp.org>
64085
64086         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
64087         Optimize search in case of 1 delimiter.
64088
64089 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
64090
64091         * lib/acl.h: Include sys/types.h before sys/acl.h.
64092
64093 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
64094
64095         Merge upstream fix for glibc bugzilla #3957:
64096
64097         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
64098
64099         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
64100         bit for RE_HAT_LISTS_NOT_NEWLINE.
64101         (build_charclass_op): Remove bogus comment.
64102
64103 2007-02-05  Simon Josefsson  <simon@josefsson.org>
64104
64105         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
64106
64107 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
64108
64109         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
64110         * lib/memmem.c [!defined _LIBC]: Include config.h.
64111
64112 2007-02-04  Bruno Haible  <bruno@clisp.org>
64113
64114         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
64115         warning message.
64116
64117 2007-02-04  Bruno Haible  <bruno@clisp.org>
64118
64119         New module mbstok_r.
64120         * modules/mbstok_r: New file.
64121         * lib/mbstok_r.c: New file.
64122         * lib/string_.h (strtok_r): Change argument names to match the
64123         comments. Add a conditional link warning.
64124         (mbstok_r): New declaration.
64125         * m4/mbstok_r.m4: New file.
64126         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64127         GNULIB_MBSTOK_R.
64128         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
64129         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
64130
64131 2007-02-04  Bruno Haible  <bruno@clisp.org>
64132
64133         New module mbsspn.
64134         * modules/mbsspn: New file.
64135         * lib/mbsspn.c: New file.
64136         * lib/string_.h (strspn): Add a conditional link warning.
64137         (mbsspn): New declaration.
64138         * m4/mbsspn.m4: New file.
64139         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64140         GNULIB_MBSSPN.
64141         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
64142         * MODULES.html.sh (Internationalization functions): Add mbsspn.
64143
64144 2007-02-04  Bruno Haible  <bruno@clisp.org>
64145
64146         New module mbspbrk.
64147         * modules/mbspbrk: New file.
64148         * lib/mbspbrk.c: New file.
64149         * lib/string_.h (strpbrk): Add a conditional link warning.
64150         (mbspbrk): New declaration.
64151         * m4/mbspbrk.m4: New file.
64152         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64153         GNULIB_MBSPBRK.
64154         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
64155         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
64156
64157 2007-02-04  Bruno Haible  <bruno@clisp.org>
64158
64159         New module mbscspn.
64160         * modules/mbscspn: New file.
64161         * lib/mbscspn.c: New file.
64162         * lib/string_.h (strcspn): Add a conditional link warning.
64163         (mbscspn): New declaration.
64164         * m4/mbscspn.m4: New file.
64165         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64166         GNULIB_MBSCSPN.
64167         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
64168         * MODULES.html.sh (Internationalization functions): Add mbscspn.
64169
64170 2007-02-04  Bruno Haible  <bruno@clisp.org>
64171
64172         New module mbscasestr, reduced goal of strcasestr.
64173         * modules/mbscasestr: New file.
64174         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
64175         (mbscasestr): Renamed from strcasestr.
64176         * lib/strcasestr.c: Don't include mbuiter.h.
64177         (strcasestr): Remove support for multibyte locales.
64178         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
64179         Change the conditional link warning.
64180         (mbscasestr): New declaration.
64181         * m4/mbscasestr.m4: New file.
64182         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
64183         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
64184         REPLACE_STRCASESTR.
64185         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
64186         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
64187         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
64188         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
64189         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
64190         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
64191         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
64192         (Depends-on): Remove mbuiter.
64193         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
64194
64195 2007-02-04  Bruno Haible  <bruno@clisp.org>
64196
64197         Simplify handling of strncasecmp.
64198         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
64199         the conditional link warning.
64200         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
64201         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
64202         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
64203         * modules/strcase (configure.ac): Don't invoke
64204         gl_STRING_MODULE_INDICATOR.
64205         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
64206
64207 2007-02-04  Bruno Haible  <bruno@clisp.org>
64208
64209         New module mbscasecmp, reduced goal of strcasecmp.
64210         * modules/mbscasecmp: New file.
64211         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
64212         (mbscasecmp): Renamed from strcasecmp.
64213         * lib/strcasecmp.c: Don't include mbuiter.h.
64214         (strcasecmp): Remove support for multibyte locales.
64215         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
64216         Change the conditional link warning.
64217         (mbscasecmp): New declaration.
64218         * m4/mbscasecmp.m4: New file.
64219         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
64220         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
64221         REPLACE_STRCASECMP.
64222         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
64223         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64224         GNULIB_MBSCASECMP.
64225         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
64226         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
64227         * modules/strcase (Files): Remove m4/mbrtowc.m4.
64228         (Depends-on): Remove mbuiter.
64229         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
64230
64231 2007-02-04  Bruno Haible  <bruno@clisp.org>
64232
64233         New module mbsstr. Remove module strstr.
64234         * modules/mbsstr: New file.
64235         * modules/strstr: Remove file.
64236         * lib/mbsstr.c: Renamed from lib/strstr.c.
64237         (mbsstr): Renamed from strstr.
64238         * lib/string_.h (strstr): Remove declaration. Change the conditional
64239         link warning.
64240         (mbsstr): New declaration.
64241         * m4/mbsstr.m4: New file.
64242         * m4/strstr.m4: Remove file.
64243         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
64244         REPLACE_STRSTR.
64245         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
64246         Don't initialize GNULIB_STRSTR.
64247         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
64248         substitute GNULIB_STRSTR and REPLACE_STRSTR.
64249         * MODULES.html.sh (Internationalization functions): Add mbsstr.
64250         (Support for systems lacking ANSI C 89): Remove strstr.
64251
64252 2007-02-04  Bruno Haible  <bruno@clisp.org>
64253
64254         New module mbsrchr.
64255         * modules/mbsrchr: New file.
64256         * lib/mbsrchr.c: New file.
64257         * lib/string_.h (strrchr): Add a conditional link warning.
64258         (mbsrchr): New declaration.
64259         * m4/mbsrchr.m4: New file.
64260         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64261         GNULIB_MBSRCHR.
64262         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
64263         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
64264
64265 2007-02-04  Bruno Haible  <bruno@clisp.org>
64266
64267         New module mbschr.
64268         * modules/mbschr: New file.
64269         * lib/mbschr.c: New file.
64270         * lib/string_.h (strchr): Add a conditional link warning.
64271         (mbschr): New declaration.
64272         * m4/mbschr.m4: New file.
64273         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64274         GNULIB_MBSCHR.
64275         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
64276         * MODULES.html.sh (Internationalization functions): Add mbschr.
64277
64278 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
64279
64280         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
64281
64282         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
64283
64284 2007-02-04  Bruno Haible  <bruno@clisp.org>
64285
64286         New module description section 'configure.ac-early'.
64287         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
64288         (func_get_autoconf_early_snippet): New function.
64289         (func_import, func_create_testdir): Use it. Remove special cases for
64290         modules 'extensions' and 'lock'.
64291         * modules/extensions (configure.ac-early): Require
64292         gl_USE_SYSTEM_EXTENSIONS.
64293         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
64294
64295 2007-02-04  Bruno Haible  <bruno@clisp.org>
64296
64297         Make use of gcj-4.3's -fsource and -ftarget option.
64298         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
64299         and if so try the options -fsource and -ftarget.
64300         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
64301         source_version, ftarget_option, target_version arguments.
64302         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
64303         (is_envjavac_oldgcj_14_14_usable): Renamed from
64304         is_envjavac_gcj_14_14_usable.
64305         (is_envjavac_oldgcj_14_13_usable): Renamed from
64306         is_envjavac_gcj_14_13_usable.
64307         (is_gcj_present): Update.
64308         (is_gcj_43, is_gcj43_usable): New functions.
64309         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
64310         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
64311         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
64312         try the options -fsource and -ftarget.
64313
64314 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
64315
64316         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
64317         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
64318         larger value.
64319
64320 2007-02-03  Jim Meyering  <jim@meyering.net>
64321
64322         Give tools a better chance to allocate space for very large buffers.
64323         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
64324
64325         Make pwd and readlink work also when run with an unreadable parent dir
64326         on systems with openat support.
64327         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
64328         provided getcwd function, even when we have openat support.
64329         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
64330
64331 2007-02-02  Bruno Haible  <bruno@clisp.org>
64332
64333         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
64334         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
64335         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
64336         portability problems if one of these functions is only used on specific
64337         platforms.
64338         Reported by Paul Eggert.
64339
64340 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
64341
64342         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
64343         is causing more trouble than it's curing.
64344         * lib/regex_internal.h (__mempcpy): Remove.
64345         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
64346         (and make the code a tad smaller to boot).
64347         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
64348
64349 2007-02-02  Jim Meyering  <jim@meyering.net>
64350
64351         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
64352         section, not in the Makefile.am: one.
64353
64354 2007-02-02  Eric Blake  <ebb9@byu.net>
64355
64356         * lib/strchrnul.c: Always include config.h first.
64357
64358         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
64359         gnulib strstr is not necessary here.
64360
64361 2007-02-02  Simon Josefsson  <simon@josefsson.org>
64362
64363         * m4/socklen.m4: Fix typo.
64364
64365 2007-02-02  Eric Blake  <ebb9@byu.net>
64366
64367         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
64368         * modules/netinet_in (Makefile.am): Likewise.
64369
64370 2007-02-01  Bruno Haible  <bruno@clisp.org>
64371
64372         * lib/string_.h (GL_LINK_WARNING): New macro.
64373         (strcasecmp, strstr, strcasestr): If provided by the system,
64374         conditionally define as a macro that leads to a warning instead of to
64375         an error.
64376         (strncasecmp): Conditionally define as a macro that leads to a warning.
64377
64378 2007-02-01  Karl Berry  <karl@gnu.org>
64379
64380         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
64381
64382 2007-02-01  Bruno Haible  <bruno@clisp.org>
64383
64384         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
64385         renamings.
64386
64387 2007-02-01  Eric Blake  <ebb9@byu.net>
64388
64389         * modules/regex (Depends-on): Revert dependence on mempcpy.
64390         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
64391         module's definition of mempcpy.
64392         Reported by Paul Eggert.
64393
64394 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
64395
64396         * lib/string_.h: If the gnulib module XYZ is not present, undefine
64397         the symbol XYZ before redefining it.  This fixes a problem with
64398         programs that don't use XYZ, when compiled on systems that define
64399         XYZ to something else.
64400
64401 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
64402
64403         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
64404         occurs when "mkdir -m foo" creates a setgid directory that is (1)
64405         writeable to group or other and (2) is intended to have a special
64406         mode bit that is set or cleared.  In such a case, the directory
64407         should be neither group- nor other-writeable until the special
64408         mode bits are right.
64409
64410 2007-01-31  Eric Blake  <ebb9@byu.net>
64411
64412         * modules/mountlist (Depends-on): Add strstr.
64413
64414         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
64415         bug.
64416         * modules/string (Makefile.am): Remove redundant replacement.
64417         * modules/regex (Depends-on): Add mempcpy.
64418
64419 2007-01-31  Bruno Haible  <bruno@clisp.org>
64420
64421         New module description field 'Link'.
64422         * gnulib-tool (func_usage): Document --extract-link-directive.
64423         (sed_extract_prog): Recognize 'Link' directive.
64424         (func_get_link_directive): New function.
64425         (func_import): Show summary of link directives.
64426         Handle --extract-link-directive option.
64427         * modules/acl (Link): New section.
64428         * modules/clock-time (Link): New section.
64429         * modules/euidaccess (Link): New section.
64430         * modules/gettext (Link): New section.
64431         * modules/iconv (Link): New section.
64432         * modules/lock (Link): New section.
64433         * modules/nanosleep (Link): New section.
64434         * modules/readline (Link): New section.
64435
64436 2007-01-27  Bruno Haible  <bruno@clisp.org>
64437
64438         Enforce the use of gnulib modules for unportable <string.h> functions.
64439         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
64440         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
64441         (gl_HEADER_STRING_H_BODY): Require it.
64442         * lib/string_.h: If the gnulib module XYZ is not present, redefine
64443         the symbol XYZ to one that gives a link error.
64444         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
64445         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
64446         * modules/mempcpy (configure.ac): Likewise.
64447         * modules/memrchr (configure.ac): Likewise.
64448         * modules/stpcpy (configure.ac): Likewise.
64449         * modules/stpncpy (configure.ac): Likewise.
64450         * modules/strcase (configure.ac): Likewise.
64451         * modules/strcasestr (configure.ac): Likewise.
64452         * modules/strchrnul (configure.ac): Likewise.
64453         * modules/strdup (configure.ac): Likewise.
64454         * modules/strndup (configure.ac): Likewise.
64455         * modules/strnlen (configure.ac): Likewise.
64456         * modules/strpbrk (configure.ac): Likewise.
64457         * modules/strsep (configure.ac): Likewise.
64458         * modules/strstr (configure.ac): Likewise.
64459         * modules/strtok_r (configure.ac): Likewise.
64460
64461 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
64462
64463         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
64464
64465 2007-01-30  Jim Meyering  <jim@meyering.net>
64466
64467         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
64468
64469 2007-01-29  Bruno Haible  <bruno@clisp.org>
64470
64471         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
64472         * lib/execute.c: Likewise.
64473         * lib/pipe.c: Likewise.
64474         * lib/printf-args.h: Likewise.
64475         * lib/printf-args.c: Likewise.
64476         * lib/printf-parse.c: Likewise.
64477         * lib/vasnprintf.c: Likewise.
64478
64479 2007-01-29  Eric Blake  <ebb9@byu.net>
64480
64481         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
64482         declaration.
64483
64484 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
64485
64486         * lib/strptime.h (strptime): Use 'restrict' for args where
64487         POSIX requires this.
64488         * lib/strptime.c (strptime): Likewise.
64489         Change license notice from LGPL to GPL, since gnulib-tool will
64490         change this as needed.
64491         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
64492         defined.
64493         Include "strptime.h" first, to check interface.
64494         Do not #undef _LIBC and _NL_CURRENT.
64495         Do not include <stdlib.h>; no longer needed.
64496         Include "time_r.h" and declare ptime_locale_status
64497         only if _LIBC is not defined.
64498         (__P): Remove unused macro.
64499         (match_string): Bring back glibc version, but use it only if _LIBC
64500         is defined.
64501         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
64502         Remove unnecessary assertion and abort() call.
64503         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
64504         * m4/strptime.m4: Fix serial number comment.
64505         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
64506         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
64507         (Depends-on): Add time_r.
64508
64509 2007-01-29  Bruno Haible  <bruno@clisp.org>
64510
64511         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64512         strptime.
64513         * modules/strptime (Depends-on): Add stdbool.
64514         * lib/strptime.h: Include <time.h> always. Add comments.
64515
64516 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64517
64518         * modules/strptime: New file.
64519         * lib/strptime.h: New file.
64520         * lib/strptime.c: New file.
64521         * m4/strptime.m4: New file.
64522
64523 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
64524
64525         * MODULES.html.sh: New module mpsort.
64526         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
64527
64528         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
64529         a circularity problem with HP-UX ia64 reported by Bob Proulx in
64530         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
64531         All uses changed.
64532         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
64533         All uses changed.
64534         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
64535         to _Restrict_.
64536         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
64537         the parameter matches the prototype.
64538
64539 2007-01-28  Jim Meyering  <jim@meyering.net>
64540
64541         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
64542         sys/time.h here, reverting that part of the previous patch:
64543         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
64544
64545 2007-01-28  Bruno Haible  <bruno@clisp.org>
64546
64547         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
64548         value of $(SYS_TIME_H).
64549         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
64550         remove it conditionally, too. [added by Jim Meyering]
64551         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
64552         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
64553         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
64554         GETTIMEOFDAY_REPLACEMENT to 1.
64555
64556 2007-01-28  Bruno Haible  <bruno@clisp.org>
64557
64558         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
64559         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
64560         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
64561         Set UNISTD_H instead of UNISTD_H2.
64562         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
64563
64564 2007-01-28  Bruno Haible  <bruno@clisp.org>
64565
64566         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
64567         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
64568
64569 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64570
64571         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
64572         (func_create_testdir): Ensure C locale for `grep' and `tr'
64573         character ranges.
64574         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
64575         ACLOCAL_AMFLAGS parsing state machine.
64576
64577 2007-01-27  Bruno Haible  <bruno@clisp.org>
64578
64579         * modules/unistr/base: Update.
64580
64581 2007-01-27  Bruno Haible  <bruno@clisp.org>
64582
64583         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
64584         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
64585         * modules/unistr/u32-mbtouc-unsafe: Renamed from
64586         modules/unistr/u32-mbtouc.
64587         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
64588         * lib/unistr.h: Update.
64589         * lib/linebreak.c: Update.
64590         * modules/unistr/u32-mbtouc: Renamed from
64591         modules/unistr/u32-mbtouc-safe.
64592         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
64593         * lib/unistr.h: Update.
64594         * lib/unistr/u32-to-u8.c: Update.
64595         * lib/unistr/u32-to-u16.c: Update.
64596
64597 2007-01-27  Bruno Haible  <bruno@clisp.org>
64598
64599         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
64600         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
64601         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
64602         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
64603         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
64604         * modules/unistr/u16-mbtouc-unsafe: Renamed from
64605         modules/unistr/u16-mbtouc.
64606         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
64607         * lib/unistr.h: Update.
64608         * lib/linebreak.c: Update.
64609         * modules/linebreak: Update.
64610         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
64611         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
64612         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
64613         * modules/unistr/u16-mbtouc: Renamed from
64614         modules/unistr/u16-mbtouc-safe.
64615         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
64616         * lib/unistr.h: Update.
64617         * lib/unistr/u16-to-u8.c: Update.
64618         * modules/unistr/u16-to-u8: Update.
64619         * lib/unistr/u16-to-u32.c: Update.
64620         * modules/unistr/u16-to-u32: Update.
64621
64622 2007-01-27  Bruno Haible  <bruno@clisp.org>
64623
64624         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
64625         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
64626         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
64627         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
64628         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
64629         * modules/unistr/u8-mbtouc-unsafe: Renamed from
64630         modules/unistr/u8-mbtouc.
64631         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
64632         * lib/unistr.h: Update.
64633         * lib/striconveh.c: Update.
64634         * modules/striconveh: Update.
64635         * lib/linebreak.c: Update.
64636         * modules/linebreak: Update.
64637         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
64638         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
64639         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
64640         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
64641         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
64642         * lib/unistr.h: Update.
64643         * lib/striconveh.c: Update.
64644         * modules/striconveh: Update.
64645         * lib/unistr/u8-to-u16.c: Update.
64646         * modules/unistr/u8-to-u16: Update.
64647         * lib/unistr/u8-to-u32.c: Update.
64648         * modules/unistr/u8-to-u32: Update.
64649
64650 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64651
64652         Sync from Libtool.
64653         * lib/argz.c: Do not include strings.h nor memory.h, include
64654         string.h unconditionally.  Patch by Simon Josefsson.
64655
64656 2007-01-27  Bruno Haible  <bruno@clisp.org>
64657
64658         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
64659         from gl_HEADER_STRING_H_BODY.
64660         (gl_HEADER_STRING_H_BODY): Require it.
64661         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
64662         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
64663         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
64664         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
64665         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64666         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
64667         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
64668         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
64669         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
64670         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
64671         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
64672         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
64673         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
64674         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
64675         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64676
64677 2007-01-27  Bruno Haible  <bruno@clisp.org>
64678
64679         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
64680         check_PROGRAMS into noinst_PROGRAMS.
64681         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
64682         check_PROGRAMS in this case.
64683         (func_import): Set for_test to false.
64684         (func_create_testdir): Set for_test to true.
64685
64686 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
64687             Bruno Haible  <bruno@clisp.org>
64688
64689         * modules/strcasestr (Files): Remove lib/strcasestr.h.
64690         (Depends-on): Add string.
64691         (Includes): Use <string.h> instead of strcasestr.h.
64692         * modules/string (Makefile.am): Also substitute the value of
64693         REPLACE_STRCASESTR.
64694         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
64695         assume strcasestr is declared in <string.h> not <strings.h>. Also
64696         set REPLACE_STRCASESTR.
64697         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
64698         REPLACE_STRCASESTR.
64699         * lib/strcasestr.h: Remove file.
64700         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
64701         * lib/string_.h (strcasestr): New declaration.
64702
64703 2007-01-27  Bruno Haible  <bruno@clisp.org>
64704
64705         * lib/string_.h: Use 'extern'.
64706
64707 2007-01-27  Jim Meyering  <jim@meyering.net>
64708
64709         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
64710         of set-but-not-used local, "q".
64711
64712         * lib/mempcpy.c: Include <config.h> before <string.h>.
64713         This fixes a compilation error on HP-UX, due to the system's
64714         "restrict"-using mempcpy prototype.
64715
64716 2007-01-26  Bruno Haible  <bruno@clisp.org>
64717
64718         Small optimization.
64719         * lib/javacomp.c: Include c-strstr.h.
64720          (is_envjavac_gcj): Use c_strstr instead of strstr.
64721         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
64722
64723 2007-01-26  Bruno Haible  <bruno@clisp.org>
64724
64725         * MODULES.html.sh (Unicode string functions): Add the new modules.
64726
64727         * modules/uniconv/u32-strconv-to-locale: New file.
64728         * lib/uniconv/u32-strconv-to-locale.c: New file.
64729
64730         * modules/uniconv/u16-strconv-to-locale: New file.
64731         * lib/uniconv/u16-strconv-to-locale.c: New file.
64732
64733         * modules/uniconv/u8-strconv-to-locale: New file.
64734         * lib/uniconv/u8-strconv-to-locale.c: New file.
64735
64736         * modules/uniconv/u32-strconv-from-locale: New file.
64737         * lib/uniconv/u32-strconv-from-locale.c: New file.
64738
64739         * modules/uniconv/u16-strconv-from-locale: New file.
64740         * lib/uniconv/u16-strconv-from-locale.c: New file.
64741
64742         * modules/uniconv/u8-strconv-from-locale: New file.
64743         * lib/uniconv/u8-strconv-from-locale.c: New file.
64744
64745         * modules/uniconv/u32-strconv-to-enc: New file.
64746         * lib/uniconv/u32-strconv-to-enc.c: New file.
64747         * modules/uniconv/u32-strconv-to-enc-tests: New file.
64748         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
64749
64750         * modules/uniconv/u16-strconv-to-enc: New file.
64751         * lib/uniconv/u16-strconv-to-enc.c: New file.
64752         * lib/uniconv/u-strconv-to-enc.h: New file.
64753         * modules/uniconv/u16-strconv-to-enc-tests: New file.
64754         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
64755
64756         * modules/uniconv/u8-strconv-to-enc: New file.
64757         * lib/uniconv/u8-strconv-to-enc.c: New file.
64758         * modules/uniconv/u8-strconv-to-enc-tests: New file.
64759         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
64760
64761         * modules/uniconv/u32-strconv-from-enc: New file.
64762         * lib/uniconv/u32-strconv-from-enc.c: New file.
64763         * modules/uniconv/u32-strconv-from-enc-tests: New file.
64764         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
64765
64766         * modules/uniconv/u16-strconv-from-enc: New file.
64767         * lib/uniconv/u16-strconv-from-enc.c: New file.
64768         * modules/uniconv/u16-strconv-from-enc-tests: New file.
64769         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
64770
64771         * modules/uniconv/u8-strconv-from-enc: New file.
64772         * lib/uniconv/u8-strconv-from-enc.c: New file.
64773         * lib/uniconv/u-strconv-from-enc.h: New file.
64774         * modules/uniconv/u8-strconv-from-enc-tests: New file.
64775         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
64776
64777         * modules/uniconv/u32-conv-from-enc: New file.
64778         * lib/uniconv/u32-conv-from-enc.c: New file.
64779         * modules/uniconv/u32-conv-from-enc-tests: New file.
64780         * tests/uniconv/test-u32-conv-from-enc.c: New file.
64781
64782         * modules/uniconv/u16-conv-from-enc: New file.
64783         * lib/uniconv/u16-conv-from-enc.c: New file.
64784         * lib/uniconv/u-conv-from-enc.h: New file.
64785         * modules/uniconv/u16-conv-from-enc-tests: New file.
64786         * tests/uniconv/test-u16-conv-from-enc.c: New file.
64787
64788         * modules/uniconv/u8-conv-from-enc: New file.
64789         * lib/uniconv/u8-conv-from-enc.c: New file.
64790         * modules/uniconv/u8-conv-from-enc-tests: New file.
64791         * tests/uniconv/test-u8-conv-from-enc.c: New file.
64792
64793         * modules/uniconv/base: New file.
64794         * lib/uniconv.h: New file.
64795
64796 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
64797
64798         * doc/gnulib-tool.texi (Initial import): Update to match current
64799         behavior with strdup module.
64800         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
64801         * lib/memmem.h: Remove; all uses removed.  This is now done
64802         by <string.h>.
64803         * lib/mempcpy.h: Likewise.
64804         * lib/memrchr.h: Likewise.
64805         * lib/stpcpy.h: Likewise.
64806         * lib/stpncpy.h: Likewise.
64807         * lib/strcase.h: Likewise.
64808         * lib/strchrnul.h: Likewise.
64809         * lib/strdup.h: Likewise.
64810         * lib/strndup.h: Likewise.
64811         * lib/strnlen.h: Likewise.
64812         * lib/strpbrk.h: Likewise.
64813         * lib/strsep.h: Likewise.
64814         * lib/strstr.h: Likewise.
64815         * lib/strtok_r.h: Likewise.
64816         * lib/string_.h: New file.
64817         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
64818         Rely on <string.h> instead.
64819         * lib/canon-host.c: Likewise.
64820         * lib/chdir-long.c: Likewise.
64821         * lib/concatpath.c: Likewise.
64822         * lib/exclude.c: Likewise.
64823         * lib/fchdir.c: Likewise.
64824         * lib/getaddrinfo.c: Likewise.
64825         * lib/getcwd.c: Likewise.
64826         * lib/getsubopt.c: Likewise.
64827         * lib/glob.c: Likewise.
64828         * lib/hard-locale.c: Likewise.
64829         * lib/iconvme.c: Likewise.
64830         * lib/javacomp.c: Likewise.
64831         * lib/mempcpy.c: Likewise.
64832         * lib/memrchr.c: Likewise.
64833         * lib/regex_internal.h: Likewise.
64834         * lib/stpncpy.c: Likewise.
64835         * lib/strcasecmp.c: Likewise.
64836         * lib/strchrnul.c: Likewise.
64837         * lib/strdup.c: Likewise.
64838         * lib/striconv.c: Likewise.
64839         * lib/striconveh.c: Likewise.
64840         * lib/striconveha.c: Likewise.
64841         * lib/strncasecmp.c: Likewise.
64842         * lib/strndup.c: Likewise.
64843         * lib/strnlen.c: Likewise.
64844         * lib/strsep.c: Likewise.
64845         * lib/strstr.c: Likewise.
64846         * lib/strtok_r.c: Likewise.
64847         * lib/userspec.c: Likewise.
64848         * lib/w32spawn.h: Likewise.
64849         * lib/xstrndup.c: Likewise.
64850         * lib/mountlist.c (strstr): Remove decl.
64851         * m4/string_h.m4: New file.
64852         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
64853         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
64854         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
64855         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
64856         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
64857         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
64858         Set REPLACE_STRCASECMP if necessary.
64859         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
64860         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
64861         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
64862         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
64863         HAVE_DECL_STRDUP if necessary.
64864         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
64865         since gl_FUNC_STRNDUP does that now.
64866         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
64867         Check for decl here...
64868         (gl_PREREQ_STRNLEN): ... not here.
64869         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
64870         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
64871         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
64872         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
64873         necessary.
64874         * modules/string: New file.
64875         * modules/memmem (Files): Remove special-purpose include file.
64876         (Depends-on): Add string.
64877         (Include): Include <string.h>, not the removed file.
64878         * modules/mempcpy: Likewise.
64879         * modules/memrchr: Likewise.
64880         * modules/stpcpy: Likewise.
64881         * modules/stpncpy: Likewise.
64882         * modules/strcase: Likewise.
64883         * modules/strchrnul: Likewise.
64884         * modules/strdup: Likewise.
64885         * modules/strndup: Likewise.
64886         * modules/strnlen: Likewise.
64887         * modules/strpbrk: Likewise.
64888         * modules/strsep: Likewise.
64889         * modules/strstr: Likewise.
64890         * modules/strtok_r: Likewise.
64891         * tests/test-dirname.c: Don't include "strdup.h", since
64892         <string.h> now suffices.
64893         * tests/test-memmem.c: Don't include "memmem.h", since
64894         <string.h> now suffices.
64895
64896 2007-01-25  Bruno Haible  <bruno@clisp.org>
64897
64898         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
64899         *resultp is 0.
64900
64901         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
64902         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
64903         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
64904         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
64905
64906         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
64907         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
64908         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
64909         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
64910         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
64911         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
64912
64913 2007-01-24  Bruno Haible  <bruno@clisp.org>
64914
64915         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
64916         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
64917         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
64918         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
64919         gl_FUNC_FTS_CORE.
64920         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
64921         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
64922         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64923         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
64924         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
64925         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
64926         gl_FUNC_FCHOWNAT.
64927         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
64928         gl_FUNC_STRFTIME.
64929         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
64930         Reported by Ralf Wildenhues.
64931
64932 2007-01-24  Bruno Haible  <bruno@clisp.org>
64933
64934         Drop AC_REQUIRE calls that are redundant with the module dependencies.
64935         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
64936         gl_GETADDRINFO.
64937         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
64938         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
64939         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
64940
64941 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
64942
64943         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
64944         Don't use 'exit'; just return from 'main'.
64945         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
64946
64947         * lib/fnmatch_.h: Readjust white space and comments to match
64948         glibc, to avoid spurious diffs.
64949
64950 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64951
64952         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
64953         2004-12-01 change by Jakub Jelinek, since this code won't compile
64954         if !LIBC.  Problem reported by Bob Proulx.
64955
64956 2007-01-23  Bruno Haible  <bruno@clisp.org>
64957
64958         * lib/striconveh.c: Include c-strcaseeq.h.
64959         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
64960         * modules/striconveh (Depends-on): Add c-strcaseeq.
64961
64962 2007-01-23  Bruno Haible  <bruno@clisp.org>
64963
64964         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
64965
64966         * modules/c-strcaseeq: New file.
64967         * lib/c-strcaseeq.h: New file.
64968
64969         * modules/streq: New file.
64970         * lib/streq.h: New file.
64971
64972 2007-01-23  Bruno Haible  <bruno@clisp.org>
64973
64974         * modules/striconveha-tests: New file.
64975         * tests/test-striconveha.c: New file.
64976
64977         * lib/striconveha.h: Include <stdbool.h>.
64978         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
64979         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
64980         (mem_iconveha_notranslit): Renamed from mem_iconveha.
64981         (mem_iconveha): New function.
64982         (str_iconveha_notranslit): Renamed from str_iconveha.
64983         (str_iconveha): New function.
64984         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
64985         c-strcase.
64986
64987 2007-01-23  Bruno Haible  <bruno@clisp.org>
64988
64989         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
64990         encodings without forgiving before trying any encoding with handler.
64991         (str_iconveha): Try all encodings without forgiving before trying any
64992         encoding with handler.
64993
64994 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64995
64996         Import the following changes from libc.
64997
64998         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
64999
65000         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
65001
65002         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
65003
65004         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
65005         normal_bracket label.
65006
65007         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
65008
65009         [BZ #361]
65010         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
65011         to normal_bracket after fetching the next character.
65012
65013 2007-01-22  Bruno Haible  <bruno@clisp.org>
65014
65015         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
65016         argument.
65017         * lib/striconveh.c (iconv_carefully_1): New function.
65018         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
65019         argument.
65020         (str_cd_iconveh): Update.
65021         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
65022         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
65023         * tests/test-striconveh.c (MAGIC): New macro.
65024         (new_offsets): New function.
65025         (main): Test call with and without offsets.
65026
65027 2007-01-22  Bruno Haible  <bruno@clisp.org>
65028
65029         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
65030         * modules/sys_select (Makefile.am): Likewise.
65031         * modules/sys_socket (Makefile.am): Likewise.
65032         * modules/sys_time (Makefile.am): Likewise.
65033
65034 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
65035
65036         * modules/gettimeofday (License): Change from GPL to LGPL, since
65037         gettimeofday is a library function.
65038
65039 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65040
65041         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
65042
65043 2007-01-21  Bruno Haible  <bruno@clisp.org>
65044
65045         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
65046
65047 2007-01-21  Bruno Haible  <bruno@clisp.org>
65048
65049         * modules/striconveha: New file.
65050         * lib/striconveha.h: New file.
65051         * lib/striconveha.c: New file.
65052         * MODULES.html.sh (Internationalization functions): Add striconveha.
65053         * lib/striconv.c (str_iconv): Optimize the case of an empty input
65054         string.
65055         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
65056
65057 2007-01-21  Bruno Haible  <bruno@clisp.org>
65058
65059         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
65060         * lib/striconveh.c (str_iconveh): Likewise.
65061
65062 2007-01-21  Bruno Haible  <bruno@clisp.org>
65063
65064         * lib/striconveh.h (mem_iconveh): New declaration.
65065         * lib/striconveh.c (mem_iconveh): New function.
65066         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
65067
65068 2007-01-21  Bruno Haible  <bruno@clisp.org>
65069
65070         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
65071
65072         * lib/striconveh.h (mem_cd_iconveh): Change specification.
65073         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
65074         original result buffer.
65075         (str_cd_iconveh): Update.
65076         * tests/test-striconveh.c (main): Update.
65077
65078         * lib/striconv.h (mem_cd_iconv): Change specification.
65079         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
65080         result buffer.
65081         (str_cd_iconv): Update.
65082         * tests/test-striconv.c (main): Update.
65083
65084 2007-01-21  Bruno Haible  <bruno@clisp.org>
65085
65086         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
65087
65088 2007-01-20  Jim Meyering  <jim@meyering.net>
65089
65090         * lib/userspec.c (parse_with_separator): If a user or group string
65091         starts with "+", skip the corresponding name-to-ID look-up, since
65092         such a look-up must fail: user and group names may not include "+".
65093
65094 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
65095
65096         * lib/poll.c: Include sys/time.h and time.h unconditionally,
65097         since we now assume the sys_time module.
65098         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
65099         check for sys/time.h; no longer needed.
65100         * modules/poll (Depends-on): Depend on sys_time.
65101
65102 2007-01-18  Bruno Haible  <bruno@clisp.org>
65103
65104         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
65105         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
65106
65107         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
65108         gettimeofday.
65109
65110         * tests/test-gettimeofday.c: Include <time.h>.
65111         (dummy): Remove variable.
65112
65113         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
65114         gl_HEADER_SYS_TIME_H.
65115         (gl_HEADER_SYS_TIME_H): New macro.
65116
65117         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
65118         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65119         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
65120         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
65121         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65122         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
65123         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
65124         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65125         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
65126         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
65127         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65128
65129         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
65130         last change; it caused a compilation error when cross-compiling to
65131         Cygwin.
65132
65133 2007-01-18  Jim Meyering  <jim@meyering.net>
65134
65135         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
65136         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
65137         than the race-prone "test -d sys || mkdir sys".
65138         (configure.ac): Use AC_PROG_MKDIR_P.
65139         * modules/sys_select: Likewise.
65140         * modules/sys_socket: Likewise.
65141         * modules/sys_time: Likewise.
65142
65143 2007-01-18  Eric Blake  <ebb9@byu.net>
65144
65145         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
65146         replace gettimeofday.
65147         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
65148         name, to avoid infinite recursion.
65149
65150 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
65151
65152         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
65153         module sys_time.
65154         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
65155         assume timespec.h defines struct timeval.
65156         * lib/settime.c: Likewise.
65157         * lib/utimens.c: Likewise.
65158         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
65159         since we now assume the gettimeofday module.
65160         * lib/tempname.c (__gen_tempname): Likewise.
65161         * lib/gettimeofday.h: Remove.
65162         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
65163         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
65164         Include <time.h>, for 'time()'.
65165         (localtime_buffer_addr): Also use this workaround if
65166         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
65167         to simplify the uses.  All uses changed.
65168         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
65169         that #undef is inside {}, and 'const' follows type name consistently.
65170         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
65171         (gettimeofday): Do not use the maximum possible value for
65172         tv->tv_usec, since that might break usages other than ls.c.
65173         Instead, we'll leave ls.c alone.  This undoes today's patch
65174         by Bruno.  Add a compile-time warning for 1s-clock resolution;
65175         we've never observed the problem but might as well keep the
65176         canary.
65177         * lib/nanosleep.c: Include timespec.h first, for interface check.
65178         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
65179         now assume the sys_time module.
65180         * lib/tempname.c: Likewise.
65181         * lib/timespec.h: Likewise.
65182         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
65183         needed.
65184         * lib/strftime.c: Likewise.
65185         * lib/timespec.h: Likewise.
65186         * lib/posixtm.c: Include posixtm.h first, for interface check.
65187         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
65188         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
65189         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
65190         * lib/sys_time_.h: New file.
65191         * lib/timespec.h (struct timespec): Use long int, not long.
65192         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
65193         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
65194         Remove obsolescent call to AC_HEADER_TIME.
65195         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
65196         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
65197         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
65198         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
65199         Likewise.
65200         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
65201         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
65202         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
65203         into the sys_time module.  Check for gettimeofday just once.
65204         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
65205         for gettimeofday signature to just check the signature.  Merely
65206         compile it, since linking doesn't test signature.  Improve test for
65207         whether gettimeofday.o is actually needed.
65208         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
65209         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
65210         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
65211         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65212         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
65213         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
65214         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
65215         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
65216         than worrying about sys/time.h.
65217         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
65218         Don't bother worrying about TIME_WITH_SYS_TIME.
65219         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
65220         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
65221         * m4/sys_time_h.m4: New file.
65222         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
65223         Don't include sys/time.h.  Return from main rather than exiting.
65224         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
65225         all uses changed.
65226         * modules/gethrxtime (Depends-on): Add sys_time.
65227         * modules/gettime (Depends-on): Likewise.
65228         * modules/gettimeofday (Depends-on): Likewise.
65229         * modules/nanosleep (Depends-on): Likewise.
65230         * modules/settime (Depends-on): Likewise.
65231         * modules/tempname (Depends-on): Likewise.
65232         * modules/utimens (Depends-on): Likewise.
65233         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
65234         (Include): Change back to <sys/time.h>.
65235         (Maintainer): Add self.
65236         * modules/sys_time: New file.
65237         * modules/tempname (Depends-on): Add gettimeofday.
65238         * tests/test-gettimeofday.c: Include <sys/time.h>
65239         rather than gettimeofday.h.
65240
65241 2007-01-17  Bruno Haible  <bruno@clisp.org>
65242
65243         * gnulib-tool (func_get_license): Revert last patch. Instead, let
65244         the license default to GPL.
65245         (func_create_testdir): Don't complain if a module is LGPL and its
65246         tests module depends on GPLed modules.
65247
65248 2007-01-17  Bruno Haible  <bruno@clisp.org>
65249
65250         * lib/gettimeofday.c (gettimeofday): Add code for the case
65251         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
65252         maximum possible value for tv->tv_usec, rather than the minimum one.
65253
65254 2005-10-08  Martin Lambers  <marlam@marlam.de>
65255 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
65256 2007-01-16  Bruno Haible  <bruno@clisp.org>
65257
65258         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
65259         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
65260         gl_FUNC_GETTIMEOFDAY.
65261         (Include): Add gettimeofday.h.
65262         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
65263         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
65264         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
65265         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
65266         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
65267         * lib/gettimeofday.h: New file.
65268         * lib/gettimeofday.c: Include <sys/timeb.h>.
65269         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
65270         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65271         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
65272         fall back on time().
65273
65274         * tests/test-gettimeofday.c: New file.
65275         * modules/gettimeofday-tests: New file.
65276
65277 2007-01-16  Eric Blake  <ebb9@byu.net>
65278
65279         * modules/fnmatch (Depends-on): Depend on wchar.
65280         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
65281         * m4/fnmatch.m4: Likewise.
65282         * modules/mbchar (Makefile.am): Assume <wchar.h>.
65283         * m4/mbchar.m4: Likewise.
65284         * modules/mbswidth (Depends-on): Depend on wchar.
65285         * lib/mbswidth.c: Assume <wchar.h>.
65286         * m4/mbswidth.m4: Likewise.
65287         * modules/quotearg (Depends-on): Depend on wchar.
65288         * lib/quotearg.c: Assume <wchar.h>.
65289         * m4/quotearg.m4: Likewise.
65290         * modules/regex (Depends-on): Depend on wchar.
65291         * lib/regex_internal.h: Assume <wchar.h>.
65292         * m4/regex.m4: Likewise.
65293         * modules/stdint (Depends-on): Depend on wchar.
65294         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
65295         * m4/stdint.m4: Likewise.
65296         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
65297         * modules/strftime (Depends-on): Depend on wchar.
65298         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
65299         * modules/strtol (Depends-on): Depend on wchar.
65300         * lib/strtol.c: Assume <wchar.h>.
65301         * modules/wcwidth (Depends-on): Depend on wchar.
65302         * lib/wcwidth.h: Assume <wchar.h>.
65303         * m4/wcwidth.m4: Likewise.
65304
65305 2007-01-16  Bruno Haible  <bruno@clisp.org>
65306
65307         * modules/csharpexec-script: New, created from...
65308         * modules/csharpexec: ... this.
65309
65310 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
65311
65312         * modules/javaexec-script: New, created from...
65313         * modules/javaexec: ... this.
65314
65315 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65316
65317         * modules/poll (Dependencies): Add sys_select.
65318
65319 2007-01-15  Jim Meyering  <jim@meyering.net>
65320
65321         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
65322         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
65323         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
65324         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
65325
65326 2007-01-15  Bruno Haible  <bruno@clisp.org>
65327
65328         * modules/striconveh: New file.
65329         * lib/striconveh.h: New file.
65330         * lib/striconveh.c: New file.
65331         * MODULES.html.sh (Internationalization functions): Add striconveh.
65332
65333         * modules/striconveh-tests: New file.
65334         * tests/test-striconveh.c: New file.
65335
65336 2007-01-15  Bruno Haible  <bruno@clisp.org>
65337
65338         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
65339         not from GNU libiconv or GNU libc.
65340
65341 2007-01-15  Bruno Haible  <bruno@clisp.org>
65342
65343         * doc/gnulib-intro.texi (Copyright): Explain the different license
65344         terms for module descriptions, autoconf macros, tests, documentation.
65345
65346 2007-01-14  Bruno Haible  <bruno@clisp.org>
65347
65348         * modules/striconv-tests: New file.
65349         * tests/test-striconv.c: New file.
65350
65351 2007-01-14  Bruno Haible  <bruno@clisp.org>
65352
65353         * modules/iconv-tests: New file.
65354         * tests/test-iconv.c: New file.
65355
65356 2007-01-14  Bruno Haible  <bruno@clisp.org>
65357
65358         * gnulib-tool (func_get_license): For test modules, use the license of
65359         the main module.
65360
65361 2007-01-14  Bruno Haible  <bruno@clisp.org>
65362
65363         * modules/iconv (Include): Clarify that <iconv.h> can only be included
65364         if iconv is found to exist.
65365
65366 2007-01-14  Bruno Haible  <bruno@clisp.org>
65367
65368         * modules/c-ctype-tests: New file.
65369         * tests/test-c-ctype.c: New file.
65370
65371 2007-01-14  Bruno Haible  <bruno@clisp.org>
65372
65373         * modules/binary-io-tests: New file.
65374         * tests/test-binary-io.sh: New file.
65375         * tests/test-binary-io.c: New file.
65376
65377 2007-01-14  Bruno Haible  <bruno@clisp.org>
65378
65379         * modules/array-oset-tests: New file.
65380         * tests/test-array_oset.c: New file.
65381
65382 2007-01-14  Bruno Haible  <bruno@clisp.org>
65383
65384         * modules/array-list-tests: New file.
65385         * tests/test-array_list.c: New file.
65386
65387 2007-01-14  Bruno Haible  <bruno@clisp.org>
65388
65389         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
65390         and make.
65391         Reported by Simon Josefsson in
65392         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
65393
65394 2007-01-14  Bruno Haible  <bruno@clisp.org>
65395
65396         * modules/allocsa-tests: New file.
65397         * tests/test-allocsa.c: New file.
65398
65399 2007-01-14  Bruno Haible  <bruno@clisp.org>
65400
65401         * modules/fchdir (Depends-on): Add absolute-header.
65402         * modules/unistd (Depends-on): Likewise.
65403
65404 2006-12-30  Bruno Haible  <bruno@clisp.org>
65405
65406         * modules/fchdir: New file.
65407         * modules/unistd (Files): Add lib/unistd_.h.
65408         (Makefile.am): Generate unistd.h from unistd_.h.
65409         * lib/fchdir.c: New file.
65410         * lib/dirent_.h: New file.
65411         * lib/unistd_.h: New file.
65412         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
65413         * m4/fchdir.m4: New file.
65414         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
65415         (gl_HEADER_UNISTD): Invoke it.
65416         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
65417         function.
65418         * lib/backupfile.c (opendir, closedir): Undefine.
65419         * lib/chown.c (open, close): Undefine.
65420         * lib/clean-temp.c (open, close): Undefine.
65421         * lib/copy-file.c (open, close): Undefine.
65422         * lib/execute.c (open, close): Undefine.
65423         * lib/fsusage.c (open, close): Undefine.
65424         * lib/gc-gnulib.c (open, close): Undefine.
65425         * lib/getcwd.c (opendir, closedir): Undefine.
65426         * lib/glob.c (opendir, closedir): Undefine.
65427         * lib/javacomp.c (open, close): Undefine.
65428         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
65429         * lib/openat-proc.c (open, close): Undefine.
65430         * lib/pagealign_alloc.c (open, close): Undefine.
65431         * lib/pipe.c (open, close): Undefine.
65432         * lib/progreloc.c (open, close): Undefine.
65433         * lib/savedir.c (opendir, closedir): Undefine.
65434         * lib/utime.c (open, close): Undefine.
65435         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
65436
65437 2007-01-10  Bruno Haible  <bruno@clisp.org>
65438
65439         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
65440
65441 2007-01-12  Eric Blake  <ebb9@byu.net>
65442
65443         Provide a robust <wchar.h>.  Further simplifications are now
65444         possible in other modules, but not included here.
65445         * modules/wchar: New module.
65446         * m4/wchar.m4: New file.
65447         * lib/wchar_.h: Likewise.
65448         * modules/mbchar (Depends-on): Depend on wchar, as the first use
65449         of the new module.
65450         * MODULES.html.sh (Extended multibyte and wide character utilities):
65451         New section.
65452
65453 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
65454
65455         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
65456         to a reasonable default for memory allocation.
65457         (xreadlink): Don't allocate a huge buffer, to work around a buggy
65458         file system that reports garbage st_size values for symlinks.
65459         Problem reported by Liyang Hu.
65460
65461 2007-01-11  Simon Josefsson  <simon@josefsson.org>
65462
65463         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
65464         Emacs .#* auto-save files).
65465
65466 2007-01-11  Bruno Haible  <bruno@clisp.org>
65467
65468         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
65469         directory.
65470
65471 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65472
65473         Use @...@ consistently in lib/wctype_.h.
65474         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
65475         on it being set to 1 or 0.
65476         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
65477         go back to AC_SUBSTing it.
65478         * modules/wctype (Makefile.am): Undo previous change.
65479
65480 2007-01-10  Eric Blake  <ebb9@byu.net>
65481
65482         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
65483         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
65484         * modules/wctype (Makefile.am): Likewise.
65485         Reported by Chris McGuire.
65486
65487 2007-01-10  Jim Meyering  <jim@meyering.net>
65488
65489         fts.c: a small readability/maintainability improvement
65490         * lib/fts.c (fts_read): Make this code slightly more readable and
65491         maintainable by hoisting the "sp->fts_cur = p" assignments to
65492         immediately follow the statements that set P.  Derived from
65493         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
65494
65495 2007-01-10  Eric Blake  <ebb9@byu.net>
65496
65497         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
65498         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
65499         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65500         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
65501         Reported by Chris McGuire.
65502
65503 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65504
65505         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
65506         in sed script.
65507
65508 2007-01-09  Bruno Haible  <bruno@clisp.org>
65509
65510         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
65511         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
65512         variables.
65513         (func_module): Use them.
65514
65515 2007-01-09  Bruno Haible  <bruno@clisp.org>
65516
65517         * modules/unistr/base: New file.
65518         * lib/unistr.h: New file.
65519
65520         * modules/unistr/u8-to-u16: New file.
65521         * lib/unistr/u8-to-u16.c: New file.
65522
65523         * modules/unistr/u8-to-u32: New file.
65524         * lib/unistr/u8-to-u32.c: New file.
65525
65526         * modules/unistr/u16-to-u8: New file.
65527         * lib/unistr/u16-to-u8.c: New file.
65528
65529         * modules/unistr/u16-to-u32: New file.
65530         * lib/unistr/u16-to-u32.c: New file.
65531
65532         * modules/unistr/u32-to-u8: New file.
65533         * lib/unistr/u32-to-u8.c: New file.
65534
65535         * modules/unistr/u32-to-u16: New file.
65536         * lib/unistr/u32-to-u16.c: New file.
65537
65538         * modules/unistr/u8-check: New file.
65539         * modules/unistr/u16-check: New file.
65540         * modules/unistr/u32-check: New file.
65541         * lib/unistr/u8-check.c: New file.
65542         * lib/unistr/u16-check.c: New file.
65543         * lib/unistr/u32-check.c: New file.
65544
65545         * modules/unistr/u8-chr: New file.
65546         * modules/unistr/u16-chr: New file.
65547         * modules/unistr/u32-chr: New file.
65548         * lib/unistr/u8-chr.c: New file.
65549         * lib/unistr/u16-chr.c: New file.
65550         * lib/unistr/u32-chr.c: New file.
65551
65552         * modules/unistr/u8-cmp: New file.
65553         * modules/unistr/u16-cmp: New file.
65554         * modules/unistr/u32-cmp: New file.
65555         * lib/unistr/u8-cmp.c: New file.
65556         * lib/unistr/u16-cmp.c: New file.
65557         * lib/unistr/u32-cmp.c: New file.
65558
65559         * modules/unistr/u8-cpy: New file.
65560         * modules/unistr/u16-cpy: New file.
65561         * modules/unistr/u32-cpy: New file.
65562         * lib/unistr/u8-cpy.c: New file.
65563         * lib/unistr/u16-cpy.c: New file.
65564         * lib/unistr/u32-cpy.c: New file.
65565         * lib/unistr/u-cpy.h: New file.
65566
65567         * modules/unistr/u8-cpy-alloc: New file.
65568         * modules/unistr/u16-cpy-alloc: New file.
65569         * modules/unistr/u32-cpy-alloc: New file.
65570         * lib/unistr/u8-cpy-alloc.c: New file.
65571         * lib/unistr/u16-cpy-alloc.c: New file.
65572         * lib/unistr/u32-cpy-alloc.c: New file.
65573         * lib/unistr/u-cpy-alloc.h: New file.
65574
65575         * modules/unistr/u8-endswith: New file.
65576         * modules/unistr/u16-endswith: New file.
65577         * modules/unistr/u32-endswith: New file.
65578         * lib/unistr/u8-endswith.c: New file.
65579         * lib/unistr/u16-endswith.c: New file.
65580         * lib/unistr/u32-endswith.c: New file.
65581         * lib/unistr/u-endswith.h: New file.
65582
65583         * modules/unistr/u8-mblen: New file.
65584         * modules/unistr/u16-mblen: New file.
65585         * modules/unistr/u32-mblen: New file.
65586         * lib/unistr/u8-mblen.c: New file.
65587         * lib/unistr/u16-mblen.c: New file.
65588         * lib/unistr/u32-mblen.c: New file.
65589
65590         * modules/unistr/u8-mbtouc: New file.
65591         * modules/unistr/u16-mbtouc: New file.
65592         * modules/unistr/u32-mbtouc: New file.
65593         * lib/unistr/u8-mbtouc.c: New file.
65594         * lib/unistr/u16-mbtouc.c: New file.
65595         * lib/unistr/u32-mbtouc.c: New file.
65596
65597         * modules/unistr/u8-mbtouc-safe: New file.
65598         * modules/unistr/u16-mbtouc-safe: New file.
65599         * modules/unistr/u32-mbtouc-safe: New file.
65600         * lib/unistr/u8-mbtouc-safe.c: New file.
65601         * lib/unistr/u16-mbtouc-safe.c: New file.
65602         * lib/unistr/u32-mbtouc-safe.c: New file.
65603
65604         * modules/unistr/u8-move: New file.
65605         * modules/unistr/u16-move: New file.
65606         * modules/unistr/u32-move: New file.
65607         * lib/unistr/u8-move.c: New file.
65608         * lib/unistr/u16-move.c: New file.
65609         * lib/unistr/u32-move.c: New file.
65610         * lib/unistr/u-move.h: New file.
65611
65612         * modules/unistr/u8-next: New file.
65613         * modules/unistr/u16-next: New file.
65614         * modules/unistr/u32-next: New file.
65615         * lib/unistr/u8-next.c: New file.
65616         * lib/unistr/u16-next.c: New file.
65617         * lib/unistr/u32-next.c: New file.
65618
65619         * modules/unistr/u8-prev: New file.
65620         * modules/unistr/u16-prev: New file.
65621         * modules/unistr/u32-prev: New file.
65622         * lib/unistr/u8-prev.c: New file.
65623         * lib/unistr/u16-prev.c: New file.
65624         * lib/unistr/u32-prev.c: New file.
65625
65626         * modules/unistr/u8-set: New file.
65627         * modules/unistr/u16-set: New file.
65628         * modules/unistr/u32-set: New file.
65629         * lib/unistr/u8-set.c: New file.
65630         * lib/unistr/u16-set.c: New file.
65631         * lib/unistr/u32-set.c: New file.
65632         * lib/unistr/u-set.h: New file.
65633
65634         * modules/unistr/u8-startswith: New file.
65635         * modules/unistr/u16-startswith: New file.
65636         * modules/unistr/u32-startswith: New file.
65637         * lib/unistr/u8-startswith.c: New file.
65638         * lib/unistr/u16-startswith.c: New file.
65639         * lib/unistr/u32-startswith.c: New file.
65640         * lib/unistr/u-startswith.h: New file.
65641
65642         * modules/unistr/u8-stpcpy: New file.
65643         * modules/unistr/u16-stpcpy: New file.
65644         * modules/unistr/u32-stpcpy: New file.
65645         * lib/unistr/u8-stpcpy.c: New file.
65646         * lib/unistr/u16-stpcpy.c: New file.
65647         * lib/unistr/u32-stpcpy.c: New file.
65648         * lib/unistr/u-stpcpy.h: New file.
65649
65650         * modules/unistr/u8-stpncpy: New file.
65651         * modules/unistr/u16-stpncpy: New file.
65652         * modules/unistr/u32-stpncpy: New file.
65653         * lib/unistr/u8-stpncpy.c: New file.
65654         * lib/unistr/u16-stpncpy.c: New file.
65655         * lib/unistr/u32-stpncpy.c: New file.
65656         * lib/unistr/u-stpncpy.h: New file.
65657
65658         * modules/unistr/u8-strcat: New file.
65659         * modules/unistr/u16-strcat: New file.
65660         * modules/unistr/u32-strcat: New file.
65661         * lib/unistr/u8-strcat.c: New file.
65662         * lib/unistr/u16-strcat.c: New file.
65663         * lib/unistr/u32-strcat.c: New file.
65664         * lib/unistr/u-strcat.h: New file.
65665
65666         * modules/unistr/u8-strchr: New file.
65667         * modules/unistr/u16-strchr: New file.
65668         * modules/unistr/u32-strchr: New file.
65669         * lib/unistr/u8-strchr.c: New file.
65670         * lib/unistr/u16-strchr.c: New file.
65671         * lib/unistr/u32-strchr.c: New file.
65672
65673         * modules/unistr/u8-strcmp: New file.
65674         * modules/unistr/u16-strcmp: New file.
65675         * modules/unistr/u32-strcmp: New file.
65676         * lib/unistr/u8-strcmp.c: New file.
65677         * lib/unistr/u16-strcmp.c: New file.
65678         * lib/unistr/u32-strcmp.c: New file.
65679
65680         * modules/unistr/u8-strcpy: New file.
65681         * modules/unistr/u16-strcpy: New file.
65682         * modules/unistr/u32-strcpy: New file.
65683         * lib/unistr/u8-strcpy.c: New file.
65684         * lib/unistr/u16-strcpy.c: New file.
65685         * lib/unistr/u32-strcpy.c: New file.
65686         * lib/unistr/u-strcpy.h: New file.
65687
65688         * modules/unistr/u8-strcspn: New file.
65689         * modules/unistr/u16-strcspn: New file.
65690         * modules/unistr/u32-strcspn: New file.
65691         * lib/unistr/u8-strcspn.c: New file.
65692         * lib/unistr/u16-strcspn.c: New file.
65693         * lib/unistr/u32-strcspn.c: New file.
65694         * lib/unistr/u-strcspn.h: New file.
65695
65696         * modules/unistr/u8-strdup: New file.
65697         * modules/unistr/u16-strdup: New file.
65698         * modules/unistr/u32-strdup: New file.
65699         * lib/unistr/u8-strdup.c: New file.
65700         * lib/unistr/u16-strdup.c: New file.
65701         * lib/unistr/u32-strdup.c: New file.
65702         * lib/unistr/u-strdup.h: New file.
65703
65704         * modules/unistr/u8-strlen: New file.
65705         * modules/unistr/u16-strlen: New file.
65706         * modules/unistr/u32-strlen: New file.
65707         * lib/unistr/u8-strlen.c: New file.
65708         * lib/unistr/u16-strlen.c: New file.
65709         * lib/unistr/u32-strlen.c: New file.
65710         * lib/unistr/u-strlen.h: New file.
65711
65712         * modules/unistr/u8-strmblen: New file.
65713         * modules/unistr/u16-strmblen: New file.
65714         * modules/unistr/u32-strmblen: New file.
65715         * lib/unistr/u8-strmblen.c: New file.
65716         * lib/unistr/u16-strmblen.c: New file.
65717         * lib/unistr/u32-strmblen.c: New file.
65718
65719         * modules/unistr/u8-strmbtouc: New file.
65720         * modules/unistr/u16-strmbtouc: New file.
65721         * modules/unistr/u32-strmbtouc: New file.
65722         * lib/unistr/u8-strmbtouc.c: New file.
65723         * lib/unistr/u16-strmbtouc.c: New file.
65724         * lib/unistr/u32-strmbtouc.c: New file.
65725
65726         * modules/unistr/u8-strncat: New file.
65727         * modules/unistr/u16-strncat: New file.
65728         * modules/unistr/u32-strncat: New file.
65729         * lib/unistr/u8-strncat.c: New file.
65730         * lib/unistr/u16-strncat.c: New file.
65731         * lib/unistr/u32-strncat.c: New file.
65732         * lib/unistr/u-strncat.h: New file.
65733
65734         * modules/unistr/u8-strncmp: New file.
65735         * modules/unistr/u16-strncmp: New file.
65736         * modules/unistr/u32-strncmp: New file.
65737         * lib/unistr/u8-strncmp.c: New file.
65738         * lib/unistr/u16-strncmp.c: New file.
65739         * lib/unistr/u32-strncmp.c: New file.
65740
65741         * modules/unistr/u8-strncpy: New file.
65742         * modules/unistr/u16-strncpy: New file.
65743         * modules/unistr/u32-strncpy: New file.
65744         * lib/unistr/u8-strncpy.c: New file.
65745         * lib/unistr/u16-strncpy.c: New file.
65746         * lib/unistr/u32-strncpy.c: New file.
65747         * lib/unistr/u-strncpy.h: New file.
65748
65749         * modules/unistr/u8-strnlen: New file.
65750         * modules/unistr/u16-strnlen: New file.
65751         * modules/unistr/u32-strnlen: New file.
65752         * lib/unistr/u8-strnlen.c: New file.
65753         * lib/unistr/u16-strnlen.c: New file.
65754         * lib/unistr/u32-strnlen.c: New file.
65755         * lib/unistr/u-strnlen.h: New file.
65756
65757         * modules/unistr/u8-strpbrk: New file.
65758         * modules/unistr/u16-strpbrk: New file.
65759         * modules/unistr/u32-strpbrk: New file.
65760         * lib/unistr/u8-strpbrk.c: New file.
65761         * lib/unistr/u16-strpbrk.c: New file.
65762         * lib/unistr/u32-strpbrk.c: New file.
65763         * lib/unistr/u-strpbrk.h: New file.
65764
65765         * modules/unistr/u8-strrchr: New file.
65766         * modules/unistr/u16-strrchr: New file.
65767         * modules/unistr/u32-strrchr: New file.
65768         * lib/unistr/u8-strrchr.c: New file.
65769         * lib/unistr/u16-strrchr.c: New file.
65770         * lib/unistr/u32-strrchr.c: New file.
65771
65772         * modules/unistr/u8-strspn: New file.
65773         * modules/unistr/u16-strspn: New file.
65774         * modules/unistr/u32-strspn: New file.
65775         * lib/unistr/u8-strspn.c: New file.
65776         * lib/unistr/u16-strspn.c: New file.
65777         * lib/unistr/u32-strspn.c: New file.
65778         * lib/unistr/u-strspn.h: New file.
65779
65780         * modules/unistr/u8-strstr: New file.
65781         * modules/unistr/u16-strstr: New file.
65782         * modules/unistr/u32-strstr: New file.
65783         * lib/unistr/u8-strstr.c: New file.
65784         * lib/unistr/u16-strstr.c: New file.
65785         * lib/unistr/u32-strstr.c: New file.
65786         * lib/unistr/u-strstr.h: New file.
65787
65788         * modules/unistr/u8-strtok: New file.
65789         * modules/unistr/u16-strtok: New file.
65790         * modules/unistr/u32-strtok: New file.
65791         * lib/unistr/u8-strtok.c: New file.
65792         * lib/unistr/u16-strtok.c: New file.
65793         * lib/unistr/u32-strtok.c: New file.
65794         * lib/unistr/u-strtok.h: New file.
65795
65796         * modules/unistr/u8-uctomb: New file.
65797         * modules/unistr/u16-uctomb: New file.
65798         * modules/unistr/u32-uctomb: New file.
65799         * lib/unistr/u8-uctomb.c: New file.
65800         * lib/unistr/u16-uctomb.c: New file.
65801         * lib/unistr/u32-uctomb.c: New file.
65802
65803         * MODULES.html.sh (Unicode string functions): Add the new modules.
65804
65805 2007-01-08  Bruno Haible  <bruno@clisp.org>
65806
65807         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
65808         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
65809         subdirectories.
65810
65811 2007-01-08  Karl Berry  <karl@gnu.org>
65812
65813         * doc/error.texi: mention that main() fns must set program_name
65814         when progname is used.
65815
65816 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
65817
65818         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
65819         WCTYPE_H is empty, for the benefit of builds from non-distclean
65820         directories.  Problem reported by Eric Blake in
65821         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
65822
65823 2007-01-08  Bruno Haible  <bruno@clisp.org>
65824
65825         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
65826         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
65827         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
65828         PROVIDE_CANONICALIZE_FILENAME_MODE.
65829         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
65830
65831 2007-01-08  Bruno Haible  <bruno@clisp.org>
65832
65833         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
65834         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
65835         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
65836         * lib/fts.c: Likewise.
65837         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
65838
65839 2006-12-25  Bruno Haible  <bruno@clisp.org>
65840
65841         * modules/utf8-ucs4-safe: New file.
65842         * lib/utf8-ucs4-safe.h: New file.
65843         * lib/unistr/utf8-ucs4-safe.c: New file.
65844
65845         * modules/utf16-ucs4-safe: New file.
65846         * lib/utf16-ucs4-safe.h: New file.
65847         * lib/unistr/utf16-ucs4-safe.c: New file.
65848
65849         * MODULES.html.sh (Unicode string functions): Add the new modules.
65850
65851 2007-01-08  Bruno Haible  <bruno@clisp.org>
65852
65853         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
65854         (Depends-on): Add unitypes.
65855         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65856         (u8_mbtouc_aux): Move out to separate file.
65857         (u8_mbtouc): Use ucs4_t, uint8_t types.
65858         * lib/unistr/utf8-ucs4.c: New file.
65859
65860         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
65861         (Depends-on): Add unitypes.
65862         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65863         (u16_mbtouc_aux): Move out to separate file.
65864         (u16_mbtouc): Use ucs4_t, uint16_t types.
65865         * lib/unistr/utf16-ucs4.c: New file.
65866
65867         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
65868         (Depends-on): Add unitypes.
65869         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
65870         (u8_uctomb_aux): Move out to separate file.
65871         (u8_uctomb): Use ucs4_t, uint8_t types.
65872         * lib/unistr/ucs4-utf8.c: New file.
65873
65874         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
65875         (Depends-on): Add unitypes.
65876         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
65877         (u16_uctomb_aux): Move out to separate file.
65878         (u16_uctomb): Use ucs4_t, uint16_t types.
65879         * lib/unistr/ucs4-utf16.c: New file.
65880
65881 2006-12-25  Bruno Haible  <bruno@clisp.org>
65882
65883         * modules/unitypes: New file.
65884         * lib/unitypes.h: New file.
65885         * MODULES.html.sh (func_all_modules): New section "Unicode string
65886         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
65887         this section. Add unitypes.
65888
65889 2007-01-08  Bruno Haible  <bruno@clisp.org>
65890
65891         Avoid variable names that conflict with those from libtool.
65892         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
65893         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
65894         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
65895         library_names_spec to acl_library_names_spec, hardcode_* to
65896         acl_hardcode_*.
65897         Reported by Ralf Wildenhues.
65898
65899 2007-01-08  Bruno Haible  <bruno@clisp.org>
65900
65901         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
65902         definition.
65903         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
65904         definition.
65905         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
65906         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
65907         definition.
65908         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
65909         definition.
65910         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
65911         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
65912         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
65913         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
65914         definition.
65915         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
65916         definition.
65917         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
65918         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
65919         GC_USE_<algorithm>.
65920         * lib/gc-libgcrypt.c: Likewise.
65921         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
65922         * modules/gc-arctwo (configure.ac): Likewise.
65923         * modules/gc-des (configure.ac): Likewise.
65924         * modules/gc-hmac-md5 (configure.ac): Likewise.
65925         * modules/gc-hmac-sha1 (configure.ac): Likewise.
65926         * modules/gc-md2 (configure.ac): Likewise.
65927         * modules/gc-md4 (configure.ac): Likewise.
65928         * modules/gc-md5 (configure.ac): Likewise.
65929         * modules/gc-random (configure.ac): Likewise.
65930         * modules/gc-rijndael (configure.ac): Likewise.
65931         * modules/gc-sha1 (configure.ac): Likewise.
65932
65933 2007-01-08  Bruno Haible  <bruno@clisp.org>
65934
65935         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
65936         macro definition.
65937         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
65938         definition.
65939         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
65940         definition.
65941         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
65942         * modules/fcntl-safer (configure.ac): Likewise.
65943         * modules/fopen-safer (configure.ac): Likewise.
65944         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
65945         GNULIB_FWRITEERROR macro definition.
65946
65947 2007-01-08  Bruno Haible  <bruno@clisp.org>
65948
65949         * m4/gnulib-common.m4: New file.
65950         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
65951         (func_get_filelist): Add m4/gnulib-common.m4.
65952
65953 2007-01-08  Bruno Haible  <bruno@clisp.org>
65954
65955         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
65956         command.
65957
65958 2007-01-08  Jim Meyering  <jim@meyering.net>
65959
65960         Use a more robust test for a "can't happen" condition.
65961         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
65962         narrowed the st_size value.  Presuming the "can't happen" condition
65963         is true, that narrowing could conceivably convert an invalid st_size
65964         value into a valid one.  Instead, use a change based on Matthew
65965         Woehlke's original patch.
65966
65967         Slight readability improvement: use an assert-like macro
65968         in place of literal "abort ()" uses.
65969         * lib/fts.c (fts_assert): Define.
65970         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
65971         Use this macro instead of a bare 'abort'.
65972
65973 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
65974
65975         Don't worry about using IRIX 5.3's wctype.h broken definitions;
65976         simply work around them.
65977         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
65978         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
65979         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
65980         declaring.
65981         Don't bother to define as macros, since the standard doesn't require it.
65982         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
65983         longer worry about IRIX 5.3.
65984         (HAVE_WCTYPE_CTMP_BUG): Remove.
65985
65986 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65987
65988         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
65989         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
65990         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
65991         Problems reported by Georg Schwarz for IRIX 5.3.
65992
65993         * gnulib-tool (autoconf_minversion): Take the maximum version number
65994         found, not the minimum.  Problem reported by James Youngman.
65995
65996 2007-01-03  Karl Berry  <karl@gnu.org>
65997
65998         * doc/error.texi: new file, explaining interaction with progname.
65999         * doc/gnulib.texi: include it.  Update copyright.
66000
66001 2007-01-03  Simon Josefsson  <simon@josefsson.org>
66002
66003         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
66004         AC_CANONICAL_HOST, to improve autobuild outputs.
66005
66006 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
66007             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
66008
66009         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
66010         sockets, server sockets, and other file descriptors.  Count errors
66011         to compute the return value.  Reorder the code a bit to be easier
66012         to follow.  Don't set event bits that were not requested (except
66013         POLLERR and POLLHUP).
66014
66015 2007-01-01  Bruno Haible  <bruno@clisp.org>
66016
66017         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
66018
66019 2007-01-03  Jim Meyering  <jim@meyering.net>
66020
66021         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
66022
66023 2007-01-02  Bruno Haible  <bruno@clisp.org>
66024
66025         * modules/settime (Include): Require timespec.h.
66026         * modules/nanosleep (Include): Likewise.
66027
66028 2007-01-01  Bruno Haible  <bruno@clisp.org>
66029
66030         * gnulib-tool (func_emit_copyright_notice): Bump year.
66031         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
66032
66033 2007-01-01  Bruno Haible  <bruno@clisp.org>
66034
66035         Improve support for OpenBSD.
66036         * build-aux/config.rpath (libname_spec): Export.
66037         (library_names_spec): New variable. Export.
66038         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
66039         library_names_spec from the config.rpath output. Locate shared library
66040         through the name pattern in library_names_spec.
66041
66042 2007-01-01  Eric Blake  <ebb9@byu.net>
66043
66044         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
66045
66046 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
66047
66048         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
66049         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
66050         assume the C locale, and avoid an "eval" that could cause trouble.
66051         Problem with SORT reported by Bob Proulx.
66052
66053         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
66054         Define.  Trivial patch from Henning Nielsen Lund, originally
66055         sent to bug-grep@gnu.org today.
66056
66057 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
66058
66059         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
66060         struct stat.  Problem reported by Henning Nielsen Lund.
66061         * lib/acl.c: Include acl.h first, to check interface.  Don't
66062         bother to include sys/types.h and sys/stat.h again.
66063
66064 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
66065
66066         Import the following change from libc; problem reported by
66067         Sven Verdoolaege.
66068
66069         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
66070
66071         [BZ #1373]
66072         * lib/argp.h: Remove __NTH for __argp_usage inline function.
66073
66074 2006-12-28  Jim Meyering  <jim@meyering.net>
66075
66076         * build-aux/announce-gen: Do not assume that the package
66077         builds any of tar.gz, tar.bz2, and .xdelta files.
66078         Suggestion from Simon Josefsson.
66079
66080 2006-12-28  Simon Josefsson  <simon@josefsson.org>
66081
66082         * modules/announce-gen: New file.
66083
66084 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
66085
66086         * lib/mbchar.h: Just include <wctype.h>; the wctype module
66087         handles its gotchas now.
66088         * lib/mbswidth.c: Likewise.
66089         * lib/wcwidth.h: Likewise.
66090         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
66091         and iswcntrl; the wctype module does this stuff now.
66092         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
66093         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66094         * modules/mbchar (Depends-on): Add wctype.
66095         * modules/mbswidth (Depends-on): Likewise.
66096         * modules/wcwidth (Depends-on): Likewise.
66097
66098 2006-12-27  Eric Blake  <ebb9@byu.net>
66099
66100         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
66101         module uses more than what <wctype.h> is required to provide.
66102
66103 2006-12-26  Eric Blake  <ebb9@byu.net>
66104
66105         * gnulib-tool (sed_extract_prog): Avoid space-tab.
66106
66107 2006-12-26  Eric Blake  <ebb9@byu.net>
66108
66109         * modules/absolute-header: New module.
66110         * modules/fcntl (Depends-on): Depend on it.
66111         * modules/inttypes (Depends-on): Likewise.
66112         * modules/stdint (Depends-on): Likewise.
66113         * modules/sys_stat (Depends-on): Likewise.
66114         * modules/wctype (Depends-on): Likewise.
66115         * MODULES.html.sh (Support for building libraries and
66116         executables): Document it.
66117
66118 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
66119
66120         * gnulib-tool (SED): Remove, undoing previous change.
66121         The problem was that it broke coreutils on Solaris, because
66122         "sed --posix" leaked into a makefile.
66123         (sed): New alias, if 'alias' and GNU sed.
66124
66125 2006-12-24  Jim Meyering  <jim@meyering.net>
66126
66127         Work around an fchownat bug in glibc-2.4:
66128         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
66129         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
66130         in spite of the -P option.
66131         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
66132         New macros.
66133         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
66134         * modules/openat (Files): Add lib/fchownat.c.
66135         * lib/openat.c (fchownat): Don't define here.  Move to...
66136         * lib/fchownat.c: ...this new file.
66137
66138 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
66139
66140         Fix bug reported by Bruno Haible in
66141         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
66142         where quotearg.c didn't compile on Mac OS X 10.2 because it
66143         lacks <wchar.h> and wint_t.
66144         * lib/wctype_.h (__wctype_wint_t): New type.
66145         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
66146         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
66147         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
66148         Arg is now of type __wctype_wint_t, not wint_t.
66149         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
66150         substitute HAVE_WINT_T.
66151         * modules/wctype (Files): Add m4/wint_t.m4.
66152         (wctype.h): Substitute HAVE_WINT_T.
66153
66154 2006-12-23  Bruno Haible  <bruno@clisp.org>
66155
66156         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
66157
66158 2006-12-23  Bruno Haible  <bruno@clisp.org>
66159
66160         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
66161         S_ISLNK.
66162         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
66163         mingw.
66164
66165 2006-12-22  Bruno Haible  <bruno@clisp.org>
66166
66167         * lib/copy-file.c: Include acl.h.
66168         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
66169         Close the file descriptors only after being done with copy_acl.
66170         * modules/copy-file (Depends-on): Add acl.
66171
66172 2006-12-22  Bruno Haible  <bruno@clisp.org>
66173
66174         * gnulib-tool (SED): New variable.
66175         Use $SED instead of sed everywhere.
66176
66177 2006-12-22  Bruno Haible  <bruno@clisp.org>
66178
66179         * modules/no-c++: New file.
66180         * m4/no-c++.m4: New file.
66181         * MODULES.html.sh (Support for building libraries and executables):
66182         Add no-c++.
66183
66184 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
66185
66186         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
66187         Include <limits.h>, and use its INT_MAX to rewrite the
66188         j loop so that it does not overflow 'int'.  Problem reported by
66189         Ralf Wildenhues in
66190         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
66191         Play it safe by shifting left by 1 rather than multiplying by 2,
66192         as GCC is less likely to optimize this away when the value
66193         is signed (when it assumes overflow leads to undefined behavior).
66194         Also, don't assume time_t uses two's complement.
66195
66196 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
66197
66198         * MODULES.html.sh: New module wctype.
66199         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
66200         * lib/fnmatch.c: Don't bother to include <wchar.h> before
66201         <wctype.h>, since the new wctype module should fix this.
66202         * lib/quotearg.c: Include <wctype.h> unconditionally, since
66203         the wctype module should arrange for it.
66204         * lib/regex_internal.h: Likewise.
66205         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
66206         since the wctype module should handle this now.
66207         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
66208         * modules/fnmatch (Depends-on): Add wctype.
66209         * modules/quotearg (Depends-on): Likewise.
66210         * modules/regex (Depends-on): Likewise.
66211
66212 2006-12-19  Bruno Haible  <bruno@clisp.org>
66213
66214         * lib/strdup.h [C++]: Wrap definitions in extern "C".
66215         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
66216
66217 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66218
66219         * modules/savewd (Depends-on): Fix dependency on fcntl.
66220
66221 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
66222
66223         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
66224         conforms to C99, rather than relying on the user's environment
66225         setting of STDINT_H.
66226
66227 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
66228         and Eric Blake  <ebb9@byu.net>
66229
66230         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
66231         This is more consistent with the other defines here.
66232         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
66233         Port to z/OS.  Problem reported by Paul Gilmartin.
66234         Change local vars to use gl_ prefix rather than ac_.
66235         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
66236         with other defines.
66237         * modules/double-slash-root: New module.
66238         * modules/dirname (Files): Remove m4/double-slash-root.m4.
66239         (Depends-on): Add double-slash-root.
66240         * MODULES.html.sh (File system functions): Mention new module.
66241
66242 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
66243
66244         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
66245         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
66246         This is for the benefit of gzip, which doesn't do i18n.
66247
66248 2006-12-12  Jim Meyering  <jim@meyering.net>
66249
66250         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
66251         Reported by Andreas Schwab <schwab@suse.de>.
66252
66253 2006-12-12  Bruno Haible  <bruno@clisp.org>
66254
66255         Merge these changes.
66256         2006-09-05  Bruno Haible  <bruno@clisp.org>
66257         * lib/iconvme.c (iconv_string): No need to save and restore errno when
66258         iconv_alloc succeeded.
66259         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
66260         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
66261         test for " && dest " at the end - dest is always != NULL there. Call
66262         iconv with 4xNULL arguments initially, to reset the state. Call iconv
66263         with 2xNULL arguments, also to flush the state storage. Handle the
66264         IRIX iconv behaviour. Realloc the final result, to throw away unused
66265         memory.
66266
66267 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
66268
66269         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
66270         and fchmodat unconditionally, since glibc 2.4 has them.
66271         Problem reported by Arkadiusz Miskiewicz.
66272
66273 2006-12-10  Bruno Haible  <bruno@clisp.org>
66274
66275         * gnulib-tool (func_import): Show the include files only for those
66276         modules that are copied and specified.
66277         Reported by Karl Berry.
66278
66279 2006-12-08  Jim Meyering  <jim@meyering.net>
66280
66281         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
66282         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
66283
66284         * build-aux/announce-gen: Add two new options, both optional:
66285         --bootstrap-tools=TOOL_LIST
66286               a comma-separated list of tools, e.g.,
66287               autoconf,automake,bison,gnulib
66288         --gnulib-snapshot-date=DATE
66289               if gnulib is in the bootstrap tool list,
66290               then report this as the snapshot date.
66291               If not specified, use the current date/time.
66292               If you specify a date here, be sure it's UTC.
66293
66294 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66295
66296         * tests/test-argp-2.sh: Fix test to match actual output.
66297         (func_compare): Fix sed script to be portable.
66298
66299 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
66300
66301         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
66302         workaround for this case.  It is not autoconfigured now; offhand
66303         it's hard to see how to autoconfigure it.
66304
66305 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
66306
66307         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
66308         a directory that is about to be chowned.  Such a directory's
66309         initial file permissions should permit the owner only and this
66310         should not be changed until after the chown, since the group and
66311         other bits would be incorrect if they granted permission before
66312         the chown.
66313
66314         Fix porting problem for iswctype reported by Georg Schwarz in:
66315         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
66316         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
66317         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
66318         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
66319         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
66320
66321 2006-12-03  Jim Meyering  <jim@meyering.net>
66322
66323         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
66324         p->fts_statp may not yet be defined.
66325         (fts_read): Instead, set it in the caller, once p->fts_statp is
66326         sure to be defined, and corresponds to a top-level directory.
66327         This bug made du -x fail.  Here's the coreutils test case:
66328         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
66329         Reported by Mike Frysinger.
66330
66331 2006-12-01  Jim Meyering  <jim@meyering.net>
66332
66333         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
66334         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
66335         Reported by Simon Josefsson.
66336
66337 2006-11-30  Jim Meyering  <jim@meyering.net>
66338
66339         * m4/warning.m4: Use the all-permissive copyright notice
66340         recommended by RMS (rather than LGPL).
66341         * m4/vararrays.m4: Likewise.
66342         * m4/flexmember.m4: Likewise.
66343
66344 2006-11-29  Bruno Haible  <bruno@clisp.org>
66345
66346         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
66347         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
66348         using +=.
66349         Reported by Simon Josefsson <simon@josefsson.org>.
66350
66351 2006-11-28  James Youngman <jay@gnu.org>
66352
66353         * README: Advise users that they might find the bug-gnulib@gnu.org
66354         and autotools-announce@gnu.org mailing lists useful.
66355
66356 2006-11-28  Bruno Haible  <bruno@clisp.org>
66357
66358         * m4/ptrdiff_max.m4: Remove file.
66359
66360 2006-11-21  Bruno Haible  <bruno@clisp.org>
66361
66362         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
66363         _AC_COMPUTE_INT.
66364         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66365         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
66366         _AC_COMPUTE_INT.
66367         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66368         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
66369         _AC_COMPUTE_INT.
66370         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66371
66372 2006-11-28  Jim Meyering  <jim@meyering.net>
66373
66374         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
66375         warning from "gcc -Wshadow" about shadowing the builtin.
66376
66377 2006-11-27  Bruno Haible  <bruno@clisp.org>
66378
66379         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
66380         _AC_COMPUTE_INT.
66381         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66382
66383 2006-11-27  Bruno Haible  <bruno@clisp.org>
66384             Paul Eggert  <eggert@cs.ucla.edu>
66385
66386         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
66387
66388 2006-11-26  Bruno Haible  <bruno@clisp.org>
66389
66390         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
66391         noinst_LTLIBRARIES.
66392
66393 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
66394             Bruno Haible  <bruno@clisp.org>
66395
66396         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
66397         if compiling with "gcc -ansi".
66398
66399 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
66400
66401         Fix some incompatibilities with gcc -ansi -pedantic.
66402         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
66403         if compiling pedantically with GCC, unless it's C99 or later.
66404         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
66405         it mishandles gcc -ansi -pedantic as well.
66406         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
66407         if gcc -pedantic.
66408         * lib/regexec.c (check_node_accept_bytes): Don't use auto
66409         initializers for struct if -pedantic, unless it's C99 or later.
66410
66411 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
66412
66413         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
66414         Don't close an fd more than once. Identical atimes indicate
66415         success, not failure.
66416
66417 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
66418
66419         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
66420
66421 2006-11-23  Jim Meyering  <jim@meyering.net>
66422
66423         * build-aux/announce-gen: New file.  From coreutils.
66424
66425 2006-11-22  Jim Meyering  <jim@meyering.net>
66426
66427         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
66428         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
66429         (fts_read): Use a temporary to narrow the overused st_size member
66430         before using it in a switch statement.  Reported by Matthew Woehlke.
66431
66432         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
66433         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
66434
66435 2006-11-20  Bruno Haible  <bruno@clisp.org>
66436
66437         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
66438         changequote instead of pairs of brackets.
66439         Reported by Andreas Schwab <schwab@suse.de>.
66440
66441 2006-11-21  Jim Meyering  <jim@meyering.net>
66442
66443         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
66444         so as to remain compatible with older compilers.
66445         Patch from Michael Deutschmann.
66446
66447 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
66448
66449         * MODULES.html.sh (File system functions): Add openat.
66450
66451         * lib/openat.h (rpl_fstatat): New macro, if
66452         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
66453         (fstatat): Define to rpl_fstatat under the same conditions,
66454         unless COMPILING_FSTATAT.
66455         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
66456         seems to have the bug.
66457         * lib/fstatat.c: New file.
66458         * modules/openat (Files): Add it.
66459
66460 2006-11-20  Bruno Haible  <bruno@clisp.org>
66461
66462         * Makefile: New file.
66463
66464 2006-11-20  Jim Meyering  <jim@meyering.net>
66465
66466         The beginnings of syntax-related checks for gnulib.
66467         * lib/Makefile: New file.
66468         * lib/t-idcache: New script.  Ensure that the two halves of
66469         idcache.c stay in sync.
66470
66471         * lib/idcache.c: Adjust comments in user- and group- portions to
66472         be more accurate, and to be consistent with one another.
66473
66474 2006-11-20  Jim Meyering  <jim@meyering.net>
66475
66476         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
66477         continue using the flexible array member (thus, this module performs
66478         half as many malloc calls), with the addition that...
66479         (getgroup, getuser): Consistently record a non-match via an empty
66480         "name" string, and map an empty string match to a NULL return value.
66481         * modules/idcache (Depends-on): Re-add flexmember.
66482
66483         * lib/idcache.c (getuser): Remove all uses of the register keyword.
66484         (getuidbyname, getgroup, getgidbyname): Likewise.
66485
66486         Use cleaner syntax: NULL rather than 0.
66487         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
66488
66489 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
66490
66491         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
66492         It mishandled the case where the group was missing.
66493         Problem reported by Greg Schafer.
66494         * modules/idcache: Likewise.
66495
66496 2006-11-18  Jim Meyering  <jim@meyering.net>
66497
66498         * check-module (%exempt_header): Add exception for some
66499         conditionally-included headers.
66500
66501         * modules/i-ring (Depends-on): Add verify.
66502         (License): Change to LGPL.
66503
66504 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
66505
66506         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
66507         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
66508         and inttostr.h.  Use snprintf rather than uinttostr, so that
66509         LGPLed code doesn't depend on GPLed.
66510
66511 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
66512
66513         * modules/inline (License): Change from GPL to LGPL.
66514
66515 2006-11-17  Jim Meyering  <jim@meyering.net>
66516
66517         * modules/d-type (License): Switch to LGPL.
66518
66519 2006-11-15  Bruno Haible  <bruno@clisp.org>
66520
66521         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
66522
66523 2006-11-15  Eric Blake  <ebb9@byu.net>
66524
66525         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
66526         the module dependency.
66527
66528 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66529             Bruno Haible  <bruno@clisp.org>
66530
66531         * gnulib-tool (func_create_testdir): Add license consistency check.
66532
66533 2006-11-15  Eric Blake  <ebb9@byu.net>
66534
66535         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
66536         random "(cached)" in configure output.
66537
66538 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66539
66540         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
66541         test for conforming inttypes.h is both announced and cached.
66542
66543         * MODULES.html.sh (seen_modules, seen_files): New variables.
66544         (func_module): Rewrite to use a few less gnulib-tool and sed
66545         invocations.  Avoid a couple of quadratic algorithms for ...
66546         (missed_modules, missed_files): ... these, with ...
66547         (func_append, func_tmpdir): ... these new functions, from
66548         gnulib-tool.  Analogously, install traps for cleanup.
66549
66550         * tests/test-gc.c (main): Remove unused variables.
66551         * tests/test-read-file.c: Include stdlib.h, for 'free'.
66552
66553 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
66554
66555         * modules/inttostr (License): Change to LGPL.
66556
66557 2006-11-14  Eric Blake  <ebb9@byu.net>
66558
66559         * modules/tempname (License): Change to LGPL.
66560
66561 2006-11-14  Eric Blake  <ebb9@byu.net>
66562
66563         * doc/functions.texi (Function Portability): *printf functions on
66564         Cygwin now understand all POSIX size specifiers.
66565
66566 2006-11-14  Bruno Haible  <bruno@clisp.org>
66567
66568         * modules/c-ctype (License): Change to LGPL.
66569
66570 2006-11-12  Bruno Haible  <bruno@clisp.org>
66571
66572         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
66573         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
66574         for GNOME libraries, for which the include files are installed in
66575         subdirectories of $prefix/include.
66576
66577 2006-11-12  Bruno Haible  <bruno@clisp.org>
66578
66579         * m4/lib-link.m4: Require at least autoconf-2.54.
66580         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
66581         name to underscores for the --with option.
66582
66583 2006-11-13  Bruno Haible  <bruno@clisp.org>
66584
66585         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
66586         the tests directory.
66587         Reported by Ralf Wildenhues.
66588
66589 2006-11-13  Bruno Haible  <bruno@clisp.org>
66590
66591         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
66592         (func_emit_initmacro_end): Undo the override here.
66593         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
66594         Works around the famous automake error in coreutils.
66595
66596 2006-11-13  Eric Blake  <ebb9@byu.net>
66597
66598         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
66599         element, not its node.
66600
66601 2006-11-12  Bruno Haible  <bruno@clisp.org>
66602
66603         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
66604         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
66605
66606 2006-11-12  Bruno Haible  <bruno@clisp.org>
66607
66608         * gnulib-tool: New option --local-symlink.
66609         (func_usage): Document it.
66610         (lsymbolic): New variable.
66611         (func_import, func_create_testdir): If --symlink was not specified,
66612         test whether --local-symlink was specified and the file comes from
66613         the local_gnulib_dir.
66614
66615 2006-11-12  Bruno Haible  <bruno@clisp.org>
66616
66617         * gnulib-tool (func_ln): New function.
66618         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
66619
66620 2006-11-12  Bruno Haible  <bruno@clisp.org>
66621
66622         Finish support for source files in subdirectories.
66623         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
66624         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
66625         AUTOMAKE_OPTIONS.
66626         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
66627
66628 2006-11-12  Bruno Haible  <bruno@clisp.org>
66629
66630         * gnulib-tool (func_get_automake_snippet): Synthesize also an
66631         EXTRA_lib_SOURCES augmentation.
66632         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
66633
66634 2006-11-12  Jim Meyering  <jim@meyering.net>
66635
66636         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
66637         file descriptors.  This also averts a failure on systems with
66638         native openat support when a traversed directory lacks "x" access.
66639         * lib/fts_.h: Include "i-ring.h"
66640         (struct FTS) [fts_fd_ring]: New member.
66641         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
66642         (FCHDIR): Add parentheses.
66643         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
66644         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
66645         When descending, rather than simply closing the previous
66646         fts_cwd_fd value, push that file descriptor onto the ring.
66647         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
66648         (fts_open): Initialize the new fd_ring member.
66649         (fts_close): Clear the ring.
66650         (fts_safe_changedir): When possible, use our new fd_ring to skip
66651         the diropen and fstat and dev/ino comparison that would normally
66652         accompany a virtual `chdir ("..")'.
66653
66654         * modules/fts (Depends-on): Add i-ring.
66655         * modules/i-ring: New module.
66656         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
66657         * m4/i-ring.m4: New file.
66658
66659 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66660
66661         * gnulib-tool (func_create_testdir): Fix replacement of
66662         `build-aux' in configure.ac.  Run autotools in gltests
66663         subdirectory.
66664         (func_create_testdir, func_create_megatestdir, test): There is
66665         no need for '--force' in most autotool invocations in a new
66666         tree.  Actually fail the whole test if any of the tools, or the
66667         configure or make stages fail.
66668
66669         Sync from Automake.
66670         * build-aux/gnupload: Revert last change.  Add pointer to upload
66671         instructions of the GNU Maintenance Instructions.
66672         Suggestion by Karl Berry.
66673
66674 2006-11-10  Jim Meyering  <jim@meyering.net>
66675
66676         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
66677
66678 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66679
66680         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
66681         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
66682         (bind_textdomain_codeset) [! ENABLE_NLS]:
66683         Evaluate all the arguments.  That way, callers get compatible behavior
66684         if the arguments have side effects.  Also, it avoids some GCC
66685         diagnostics in some cases; Joel E. Denny reported problems when Bison
66686         was configured with --enable-gcc-warnigs.
66687
66688 2006-11-10  Jim Meyering  <jim@meyering.net>
66689
66690         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
66691         relevant options in CFLAGS (like -O, -fno-inline) are taken into
66692         account.
66693
66694 2006-11-10  Jim Meyering  <jim@meyering.net>
66695
66696         * modules/inline: New file/module.
66697         * modules/xalloc (Files): Remove m4/inline.m4.
66698         (Depends-on): Add inline, instead.
66699         * modules/oset: Likewise.
66700         * modules/list: Likewise.
66701
66702 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66703
66704         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
66705         Problem reported by Matthew Woehlke.
66706
66707 2006-11-09  Bruno Haible  <bruno@clisp.org>
66708
66709         * lib/tempname.c (gen_tempname): Remove variant that invokes
66710         __gen_tempname.
66711         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
66712         __gen_tempname.
66713
66714 2006-11-08  Bruno Haible  <bruno@clisp.org>
66715
66716         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
66717         to 'yes' instead of 'cross-compiling'.
66718
66719 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
66720
66721         * lib/quotearg.h (quotearg_free): New decl.
66722         * lib/quotearg.c (quotearg_free): New function.
66723         (slot0, nslots, slotvec0, slotvec):
66724         Now file-scope so that quotearg_free can get at them.
66725
66726 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66727
66728         Sync from Automake.
66729         * build-aux/gnupload: Add missing 'gnu' to example URL.
66730         Report by Karl Berry.
66731
66732 2006-11-08  Bruno Haible  <bruno@clisp.org>
66733
66734         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
66735         Suggested by Paul Eggert.
66736
66737 2006-11-08  Jim Meyering  <jim@meyering.net>
66738
66739         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
66740         It's already included if !_LIBC.
66741         (fts_safe_changedir): Add a comment.
66742
66743 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66744
66745         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
66746         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
66747         Matthew Woehlke.
66748
66749         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
66750         definitions up, to avoid colliding with change below.
66751         (static_inline) [HAVE_INLINE]: New macro.
66752         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
66753         Provide extern decls when !HAVE_INLINE.  Do not define unless
66754         static_inline is defined, either by us or by xmalloc.c.  Use
66755         static_inline rather than static inline.
66756         (XCALLOC): Optimize sizeof(T) = 1 case.
66757         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
66758
66759 2006-11-07  Bruno Haible  <bruno@clisp.org>
66760
66761         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
66762         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
66763         AC_C_INLINE.
66764         * modules/xalloc (Files): Add m4/inline.m4.
66765
66766 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66767
66768         * README: Fix typo.
66769         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
66770         (Miscellanous Notes): ...from this.
66771
66772 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66773
66774         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
66775         Mention that offsetof should be used instead of sizeof.
66776         From Bruno Haible.
66777
66778 2006-11-07  Bruno Haible  <bruno@clisp.org>
66779
66780         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
66781
66782 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66783
66784         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66785         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
66786         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66787         (gl_tree_add_before, gl_tree_add_after):
66788         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
66789         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
66790         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
66791         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
66792         (gl_linked_add_after, gl_linked_add_at): Likewise.
66793         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
66794         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66795         (gl_tree_add_before, gl_tree_add_after): Likewise.
66796         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
66797         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
66798         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
66799
66800 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66801
66802         * lib/gl_oset.h: Use C comment style, not C++ comment style.
66803
66804 2006-11-06  Bruno Haible  <bruno@clisp.org>
66805
66806         * m4/inline.m4: New file.
66807         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
66808         * modules/list (Files): Add m4/inline.m4.
66809         * modules/oset (Files): Likewise.
66810
66811 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66812
66813         * lib/idcache.c: Include <stddef.h>, for offsetof.
66814         (struct userid.name): Change from char * to a flexible array member.
66815         All uses changed.
66816         * modules/idcache (Depends-on): Add flexmember.
66817
66818         * MODULES.html.sh (Core language properties): New module flexmember.
66819         * modules/flexmember, m4/flexmember.m4: New files.
66820
66821         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
66822         inline functions that are identical with the old xnmalloc_inline,
66823         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
66824         that we can avoid some unnecessary integer multiplications and
66825         divisions in the common case where the element size is known at
66826         compile time.
66827         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
66828         needed.
66829         (xnboundedmalloc): Remove.
66830         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
66831         arguments, for consistency with rest of this header.
66832         (xcharalloc): Rewrite using XNMALLOC.
66833         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
66834         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
66835         versions have been moved to lib/xalloc.h and renamed to be the
66836         non-*_inline versions.
66837         (xmalloc, xrealloc): Implement without reference to the xnmalloc
66838         and xnrealloc functions, since those functions are now inline and
66839         now call us.
66840         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
66841         renaming described above.
66842         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
66843         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
66844         captures the dependency in AC_C_INLINE.
66845
66846         New module canonicalize-lgpl, proposed by Charles Wilson in
66847         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
66848         with a few small changes afterwards.
66849         * MODULES.html.sh (File system functions): New module
66850         canonicalize-lgpl.
66851         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
66852         and canonicalize_file_name.
66853         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
66854         * modules/canonicalize-lgpl: New files.
66855
66856 2006-11-05  Bruno Haible  <bruno@clisp.org>
66857
66858         * gnulib-tool (func_import, func_create_testdir): Create directories
66859         also for files in subdirectories of lib/.
66860
66861 2006-11-05  Bruno Haible  <bruno@clisp.org>
66862
66863         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
66864         ANSI C compliant.
66865
66866 2006-11-03  Bruno Haible  <bruno@clisp.org>
66867
66868         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66869         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
66870         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
66871         (xnboundedmalloc): New inline function.
66872         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
66873         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
66874         xmalloc.
66875         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
66876         xmalloc.
66877         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
66878         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
66879         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
66880         xmalloc.
66881         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66882         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
66883         xmalloc.
66884         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
66885         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66886         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
66887         xmalloc.
66888         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66889         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
66890         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66891         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
66892         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
66893         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
66894         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
66895
66896 2006-11-03  Bruno Haible  <bruno@clisp.org>
66897
66898         * lib/c-ctype.h [C++]: Define functions without name mangling.
66899         * lib/fwriteerror.h [C++]: Likewise.
66900         * lib/gcd.h [C++]: Likewise.
66901         * lib/linebreak.h [C++]: Likewise.
66902
66903 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
66904
66905         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
66906         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
66907         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
66908         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
66909         Check for functions and headers just once.
66910         Check for declaration of canonicalize_file_name.
66911         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
66912
66913 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66914
66915         * gnulib-tool (func_import): Fix typo in actioncmd.
66916
66917 2006-11-02  Bruno Haible  <bruno@clisp.org>
66918
66919         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
66920         newline sequence in the Makefile.am snippet as a space, like "make"
66921         does.
66922         Reported by Roger Persson <perrog@gmail.com>.
66923
66924 2006-11-01  Bruno Haible  <bruno@clisp.org>
66925
66926         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
66927         already declared in <string.h>.
66928         * lib/strcase.h (strncasecmp): Don't declare it if yes.
66929
66930 2006-11-01  Bruno Haible  <bruno@clisp.org>
66931
66932         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
66933         * lib/strcase.h: Include <string.h>.
66934         (strcasecmp): Define to rpl_strcasecmp here.
66935
66936 2006-11-01  Bruno Haible  <bruno@clisp.org>
66937
66938         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
66939
66940 2006-11-01  Eric Blake  <ebb9@byu.net>
66941
66942         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
66943
66944         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
66945
66946 2006-10-29  Bruno Haible  <bruno@clisp.org>
66947
66948         Make it compile in C++ mode.
66949         * lib/full-write.c (full_rw): Add a cast.
66950
66951 2006-11-01  Bruno Haible  <bruno@clisp.org>
66952
66953         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
66954         be POSIX compliant.
66955         Reported by Roger Persson <perrog@gmail.com>.
66956
66957 2006-11-01  Eric Blake  <ebb9@byu.net>
66958
66959         * lib/getopt_.h: Fix comments.
66960
66961 2006-10-31  Eric Blake  <ebb9@byu.net>
66962
66963         * modules/tmpdir (Depends-on): Add sys_stat.
66964         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
66965         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
66966         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
66967         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
66968         tempname.
66969
66970 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
66971
66972         Avoid some C++ diagnostics reported by Bruno Haible.
66973         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
66974         xmalloc.
66975         (quotearg_alloc): Use xcharalloc rather than xmalloc.
66976         (struct slotvec): Move to top level.
66977         (quotearg_n_options): Rewrite to avoid xmalloc.
66978         * lib/xalloc.h (xcharalloc): New function.
66979         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
66980         [defined __cplusplus]: Add function template that provides result
66981         type propagation.  This part of the change is from Bruno Haible.
66982
66983 2006-10-29  Bruno Haible  <bruno@clisp.org>
66984
66985         Make it compile in C++ mode.
66986         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
66987         * lib/strnlen1.c (strnlen1): Cast memchr result.
66988         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
66989         * lib/clean-temp.c (string_equals, string_hash): Add casts.
66990         (create_temp_dir): Rename local variable 'template'.
66991         (compile_csharp_using_sscli): Add cast.
66992         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
66993         * lib/findprog.c (find_in_path): Likewise.
66994         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
66995         * lib/wait-process.c (register_slave_subprocess): Likewise.
66996
66997 2006-10-22  Bruno Haible  <bruno@clisp.org>
66998
66999         * modules/tsearch: New file.
67000         * lib/tsearch.h: New file.
67001         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
67002         * m4/tsearch.m4: New file.
67003         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
67004
67005 2006-10-29  Eric Blake  <ebb9@byu.net>
67006
67007         * lib/arcfour.c: Assume config.h.
67008         * lib/arctwo.c: Likewise.
67009         * lib/base64.c: Likewise.
67010         * lib/check-version.c: Likewise.
67011         * lib/crc.c: Likewise.
67012         * lib/des.c: Likewise.
67013         * lib/gc-gnulib.c: Likewise.
67014         * lib/gc-libgcrypt.c: Likewise.
67015         * lib/gc-pbkdf2-sha1.c: Likewise.
67016         * lib/getaddrinfo.c: Likewise.
67017         * lib/getdelim.c: Likewise.
67018         * lib/getline.c: Likewise.
67019         * lib/hmac-md5.c: Likewise.
67020         * lib/hmac-sha1.c: Likewise.
67021         * lib/iconvme.c: Likewise.
67022         * lib/md2.c: Likewise.
67023         * lib/md4.c: Likewise.
67024         * lib/memxor.c: Likewise.
67025         * lib/read-file.c: Likewise.
67026         * lib/readline.c: Likewise.
67027         * lib/rijndael-alg-fst.c: Likewise.
67028         * lib/rijndael-api-fst.c: Likewise.
67029         * lib/xgetdomainname.c: Likewise.
67030
67031 2006-10-28  Eric Blake  <ebb9@byu.net>
67032
67033         * lib/xstrndup.c: Assume config.h.
67034
67035 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
67036
67037         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
67038         stat-macros.h is now for our own macros, whereas stat_h is for
67039         macros in the <sys/stat.h> name space.
67040         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
67041         (STAT_MACROS_H): Remove.
67042         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
67043         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
67044         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
67045         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
67046         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
67047         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
67048         Move these macros to ...
67049         * lib/stat_.h: here.  Don't include stat-macros.h.
67050         * lib/canonicalize.c: Don't include stat-macros.h.
67051         * lib/chown.c: Likewise.
67052         * lib/euidaccess.c: Likewise.
67053         * lib/file-type.c: Likewise.
67054         * lib/filemode.c: Likewise.
67055         * lib/glob.c: Likewise.
67056         * lib/isapipe.c: Likewise.
67057         * lib/lchown.c: Likewise.
67058         * lib/lstat.c: Likewise.
67059         * lib/mkdir-p.c: Likewise.
67060         * lib/rmdir.c: Likewise.
67061         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
67062         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
67063         unless mkdir isn't declared, to speed up 'configure'.
67064         Always create sys/stat.h, since it's unlikely any real sys/stat.h
67065         would define all the S_* symbols.
67066         * modules/canonicalize (Depends-on):
67067         Depend on sys_stat, not stat-macros.
67068         * modules/chown: Likewise.
67069         * modules/euidaccess: Likewise.
67070         * modules/filemode: Likewise.
67071         * modules/file-type: Likewise.
67072         * modules/glob: Likewise.
67073         * modules/isapipe: Likewise.
67074         * modules/lchown: Likewise.
67075         * modules/lstat: Likewise.
67076         * modules/mkancesdirs: Likewise.
67077         * modules/rmdir: Likewise.
67078         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
67079         * modules/modechange: Likewise.
67080         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
67081         (configure.ac): Remove gl_STAT_MACROS.
67082         * modules/sys_stat (Depends-on): Remove stat-macros.
67083
67084 2006-10-27  Bruno Haible  <bruno@clisp.org>
67085
67086         * m4/signed.m4: Remove file.
67087         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
67088         invocation.
67089         * modules/vasnprintf (Files): Remove m4/signed.m4.
67090
67091 2006-10-27  Bruno Haible  <bruno@clisp.org>
67092
67093         Update to GNU gettext 0.16.
67094         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
67095         m4/inttypes-h.m4, m4/signed.m4.
67096         * m4/gettext.m4: Update to GNU gettext 0.16.
67097         * m4/intl.m4: New file, from GNU gettext.
67098         * m4/intldir.m4: New file, from GNU gettext.
67099         * config/srclist.txt: Update
67100
67101 2006-10-27  Eric Blake  <ebb9@byu.net>
67102
67103         * MODULES.html.sh: Document tempname.
67104         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
67105         dependencies.
67106         (Files): Move lib/tempname.c...
67107         * modules/tempname: ...to this new module.
67108         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
67109         (gl_PREREQ_TEMPNAME): Move...
67110         * m4/tempname.m4: ...to this new file.
67111         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
67112         * modules/sys_stat (Depends-on): Add stat-macros.
67113         * lib/stat_.h (includes): Pick up stat macros.
67114         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
67115         if stat macros are broken.
67116         * lib/tempname.c (includes): No need to include "stat-macros.h".
67117         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
67118         (direxists, __path_search) [!_LIBC]: Don't compile these in
67119         gnulib; the tmpdir module covers that.
67120         * lib/tempname.h: New file.
67121
67122 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
67123
67124         * COPYING: Explain how gnulib-tool converts licence headers.
67125         Almost all wording by Eric Blake.
67126
67127 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
67128
67129         * lib/mbchar.h (is_basic_table): Make read-only.
67130         * lib/mbchar.c (is_basic_table): Likewise.
67131         Reported by John Darrington.
67132
67133 2006-10-25  Bruno Haible  <bruno@clisp.org>
67134
67135         * lib/progname.h (set_program_name): Undefine before defining.
67136
67137 2006-10-25  Bruno Haible  <bruno@clisp.org>
67138
67139         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
67140         false for non-gcc C++ compilers.
67141         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
67142
67143 2006-10-24  Bruno Haible  <bruno@clisp.org>
67144
67145         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
67146         iconv implementations like Irix iconv.
67147
67148 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67149
67150         * modules/vararrays: New file.
67151         * m4/vararrays.m4: New file, taken from diffutils.
67152         * MODULES.html.sh: New module vararrays.
67153
67154 2006-10-24  Karl Berry  <karl@gnu.org>
67155
67156         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
67157         Don't call GNU Unix.
67158
67159 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67160
67161         * users.txt: Add Libtool.
67162
67163         Sync from Libtool:
67164
67165         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67166
67167         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
67168         to gnulib's policy of including config.h unconditionally.
67169
67170 2006-10-24  Bruno Haible  <bruno@clisp.org>
67171
67172         * modules/wcwidth (Files): Add m4/wint_t.m4.
67173         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
67174         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
67175
67176 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67177
67178         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
67179         to pacify GCC with some -W flags enabled.  Problem reported by
67180         Bruno Haible.
67181
67182 2006-10-24  Jim Meyering  <jim@meyering.net>
67183
67184         * MODULES.html.sh: Remove uinttostr.  It's not a module.
67185         Reported by Karl Berry.
67186
67187 2006-10-23  Bruno Haible  <bruno@clisp.org>
67188
67189         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
67190
67191 2006-10-24  Bruno Haible  <bruno@clisp.org>
67192
67193         * lib/gl_list.h: Use C comment style, not C++ comment style.
67194
67195 2006-10-23  Eric Blake  <ebb9@byu.net>
67196
67197         * lib/getaddrinfo.c (includes): Add missing include.
67198
67199 2006-10-23  Bruno Haible  <bruno@clisp.org>
67200             Paul Eggert  <eggert@cs.ucla.edu>
67201
67202         Ability to rename obstack_free.
67203         * lib/obstack.h (__obstack_free): New macro. Declare instead of
67204         obstack_free.
67205         (obstack_free): Invoke the __obstack_free macro.
67206         * lib/obstack.c (obstack_free): Use __obstack_free macro.
67207
67208 2006-10-23  Bruno Haible  <bruno@clisp.org>
67209             Paul Eggert  <eggert@cs.ucla.edu>
67210
67211         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
67212         __argc, __argv from the declaration. (They are defined as macros on
67213         mingw.)
67214
67215 2006-10-22  Bruno Haible  <bruno@clisp.org>
67216
67217         * doc/gnulib-intro.texi: New file.
67218         * doc/gnulib.texi: Include it.
67219
67220 2006-10-21  Bruno Haible  <bruno@clisp.org>
67221
67222         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
67223         "Introduction", "Miscellanous Notes", "Particular Modules".
67224
67225 2006-10-21  Bruno Haible  <bruno@clisp.org>
67226
67227         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67228         Change mostlyclean-local rule to avoid sh syntax error from bash
67229         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
67230
67231 2006-10-23  Jim Meyering  <jim@meyering.net>
67232
67233         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
67234         in place of snprintf.
67235
67236         * modules/inttostr (Files): Add lib/uinttostr.c.
67237         * lib/uinttostr.c (inttostr): New file/function.
67238         * lib/inttostr.h (uinttostr): Declare.
67239         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
67240         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
67241         Add uinttostr.
67242         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
67243
67244 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
67245
67246         * lib/canonicalize.c (ELOOP): Define if not already defined.
67247         Problem reported by Bruno Haible in
67248         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
67249
67250 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
67251
67252         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
67253         Problem reported by Perry Smith and Ville Laurikari.
67254
67255         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
67256         uses.
67257
67258 2006-10-19  Bruno Haible  <bruno@clisp.org>
67259
67260         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
67261         for mingw.
67262
67263 2006-10-19  Bruno Haible  <bruno@clisp.org>
67264
67265         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
67266         Needed for mingw.
67267
67268 2006-10-19  Bruno Haible  <bruno@clisp.org>
67269
67270         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
67271
67272 2006-10-19  Bruno Haible  <bruno@clisp.org>
67273
67274         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
67275         it.
67276
67277 2006-10-19  Bruno Haible  <bruno@clisp.org>
67278
67279         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
67280         invocation.
67281
67282 2006-10-19  Bruno Haible  <bruno@clisp.org>
67283
67284         * gnulib-tool (func_create_testdir): Don't include ftruncate and
67285         mountlist by default.
67286
67287 2006-10-16  Bruno Haible  <bruno@clisp.org>
67288
67289         * lib/c-strstr.c: Include c-strstr.h.
67290
67291 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
67292
67293         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
67294         in a slash.
67295
67296 2006-10-18  Bruno Haible  <bruno@clisp.org>
67297
67298         * lib/lock.h [C++]: Wrap definitions in extern "C".
67299
67300 2006-10-18  Bruno Haible  <bruno@clisp.org>
67301
67302         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
67303         gl_LIBOBJS list.
67304
67305 2006-10-18  Bruno Haible  <bruno@clisp.org>
67306
67307         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
67308
67309 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
67310
67311         * lib/xstrtol.h: Include gettext.h.
67312         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
67313         Problem reported by Eric Blake.
67314         * modules/xstrtol (Depends-on): Add gettext-h.
67315
67316 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
67317
67318         * lib/strftime.c (advance): New macro.
67319         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
67320         incomplete type, so you can't add 0 to it.  Problem and patch
67321         reported by Eelco Dolstra for dietlibc.
67322
67323 2006-10-18  Jim Meyering  <jim@meyering.net>
67324
67325         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
67326         type for a local, and rename it: s/up/user_proc/.
67327
67328 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
67329
67330         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
67331         READ_UTMP_USER_PROCESS.
67332         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
67333
67334 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
67335
67336         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
67337         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
67338
67339 2006-10-17  Eric Blake  <ebb9@byu.net>
67340
67341         * lib/sigprocmask.c (sigprocmask): Fix typo.
67342
67343         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
67344
67345         * modules/clean-temp (Makefile.am): Don't add to make output...
67346         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
67347         config.h.
67348
67349 2006-10-17  Bruno Haible  <bruno@clisp.org>
67350
67351         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
67352         differently if DEFAULT_TEXT_DOMAIN is set.
67353
67354 2006-10-16  Bruno Haible  <bruno@clisp.org>
67355
67356         * lib/clean-temp.c: Include fwriteerror.h.
67357
67358 2006-10-16  Bruno Haible  <bruno@clisp.org>
67359
67360         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
67361
67362 2006-10-16  Bruno Haible  <bruno@clisp.org>
67363
67364         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
67365         * lib/sigprocmask.h: Include <sys/types.h>.
67366         (sigset_t): Use the system's definition if present.
67367
67368 2006-10-17  Eric Blake  <ebb9@byu.net>
67369
67370         * lib/xvasprintf.c (includes): Assume config.h.
67371         * lib/xasprintf.c (includes): Likewise.
67372
67373 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
67374
67375         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
67376         at least as wide as intmax_t.
67377
67378 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
67379
67380         (Imported from Automake.)
67381         * build-aux/gnupload: Update to version 1.1 of directive file.
67382
67383 2006-10-16  Eric Blake  <ebb9@byu.net>
67384
67385         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
67386         match Automake 1.10a.
67387
67388 2006-10-14  Bruno Haible  <bruno@clisp.org>
67389
67390         * modules/sigprocmask: New file.
67391         * lib/sigprocmask.h: New file.
67392         * lib/sigprocmask.c: New file.
67393         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
67394         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
67395         request sigprocmask.o.
67396         (gl_PREREQ_SIGPROCMASK): New macro.
67397         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
67398         (Depends-on): Add sigprocmask.
67399         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
67400         gt_SIGNALBLOCKING. Test for 'raise' only once.
67401         * lib/fatal-signal.c: Include sigprocmask.h.
67402         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
67403         unblock_fatal_signals): Define always.
67404         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67405         sigprocmask.
67406
67407 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
67408
67409         Sync from Automake.
67410         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
67411         which incorrectly sets the mode of an existing destination
67412         directory.  In some cases the unpatched install-sh could do the
67413         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
67414         system.  We hope this is rare in practice, but it's clearly worth
67415         fixing.  Problem reported by Alex Unleashed in
67416         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
67417         Also, don't bother to check for -m bugs unless we're using -m;
67418         suggested by Stepan Kasal.
67419
67420 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67421
67422         Sync from Automake.
67423         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
67424         `-c' flag, so they appear at the same position as in %FASTDEP%
67425         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
67426         which ignores unknown options only after the first non-option.
67427         Bug report against M4 by Nelson H. F. Beebe.
67428
67429 2006-10-13  Jim Meyering  <jim@meyering.net>
67430
67431         Fix a bug in yesterday's change.
67432         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
67433         p->fts_statp->st_dev would be used uninitialized.
67434         Ensures that we always call fts_stat on the very first entry.
67435         Miklos Szeredi reported that find -xdev stopped working.
67436
67437 2006-10-12  Bruno Haible  <bruno@clisp.org>
67438
67439         * gnulib-tool (func_get_automake_snippet): Append an automatically
67440         computed EXTRA_DIST augmentation.
67441         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
67442         * modules/alloca-opt (Makefile.am): Likewise.
67443         * modules/allocsa (Makefile.am): Likewise.
67444         * modules/arcfour (Makefile.am): Likewise.
67445         * modules/arctwo (Makefile.am): Likewise.
67446         * modules/argmatch (Makefile.am): Likewise.
67447         * modules/argz (Makefile.am): Likewise.
67448         * modules/atexit (Makefile.am): Likewise.
67449         * modules/backupfile (Makefile.am): Likewise.
67450         * modules/byteswap (Makefile.am): Likewise.
67451         * modules/c-strtod (Makefile.am): Likewise.
67452         * modules/c-strtold (Makefile.am): Likewise.
67453         * modules/calloc (Makefile.am): Likewise.
67454         * modules/canon-host (Makefile.am): Likewise.
67455         * modules/canonicalize (Makefile.am): Likewise.
67456         * modules/chdir-long (Makefile.am): Likewise.
67457         * modules/chdir-safer (Makefile.am): Likewise.
67458         * modules/check-version (Makefile.am): Likewise.
67459         * modules/chown (Makefile.am): Likewise.
67460         * modules/cloexec (Makefile.am): Likewise.
67461         * modules/close-stream (Makefile.am): Likewise.
67462         * modules/closeout (Makefile.am): Likewise.
67463         * modules/crc (Makefile.am): Likewise.
67464         * modules/csharpexec (Makefile.am): Likewise.
67465         * modules/cycle-check (Makefile.am): Likewise.
67466         * modules/des (Makefile.am): Likewise.
67467         * modules/dev-ino (Makefile.am): Likewise.
67468         * modules/dirfd (Makefile.am): Likewise.
67469         * modules/dirname (Makefile.am): Likewise.
67470         * modules/dup2 (Makefile.am): Likewise.
67471         * modules/eealloc (Makefile.am): Likewise.
67472         * modules/error (Makefile.am): Likewise.
67473         * modules/euidaccess (Makefile.am): Likewise.
67474         * modules/exclude (Makefile.am): Likewise.
67475         * modules/exitfail (Makefile.am): Likewise.
67476         * modules/fcntl-safer (Makefile.am): Likewise.
67477         * modules/fcntl (Makefile.am): Likewise.
67478         * modules/file-type (Makefile.am): Likewise.
67479         * modules/fileblocks (Makefile.am): Likewise.
67480         * modules/filemode (Makefile.am): Likewise.
67481         * modules/filenamecat (Makefile.am): Likewise.
67482         * modules/fnmatch (Makefile.am): Likewise.
67483         * modules/fopen-safer (Makefile.am): Likewise.
67484         * modules/fpending (Makefile.am): Likewise.
67485         * modules/fprintftime (Makefile.am): Likewise.
67486         * modules/free (Makefile.am): Likewise.
67487         * modules/fsusage (Makefile.am): Likewise.
67488         * modules/ftruncate (Makefile.am): Likewise.
67489         * modules/fts (Makefile.am): Likewise.
67490         * modules/gc-arcfour (Makefile.am): Likewise.
67491         * modules/gc-des (Makefile.am): Likewise.
67492         * modules/gc-hmac-md5 (Makefile.am): Likewise.
67493         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
67494         * modules/gc-md4 (Makefile.am): Likewise.
67495         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
67496         * modules/gc-sha1 (Makefile.am): Likewise.
67497         * modules/gc (Makefile.am): Likewise.
67498         * modules/getaddrinfo (Makefile.am): Likewise.
67499         * modules/getcwd (Makefile.am): Likewise.
67500         * modules/getdelim (Makefile.am): Likewise.
67501         * modules/getdomainname (Makefile.am): Likewise.
67502         * modules/getgroups (Makefile.am): Likewise.
67503         * modules/gethostname (Makefile.am): Likewise.
67504         * modules/gethrxtime (Makefile.am): Likewise.
67505         * modules/getline (Makefile.am): Likewise.
67506         * modules/getloadavg (Makefile.am): Likewise.
67507         * modules/getlogin_r (Makefile.am): Likewise.
67508         * modules/getndelim2 (Makefile.am): Likewise.
67509         * modules/getopt (Makefile.am): Likewise.
67510         * modules/getpagesize (Makefile.am): Likewise.
67511         * modules/getpass-gnu (Makefile.am): Likewise.
67512         * modules/getpass (Makefile.am): Likewise.
67513         * modules/getsubopt (Makefile.am): Likewise.
67514         * modules/gettime (Makefile.am): Likewise.
67515         * modules/gettimeofday (Makefile.am): Likewise.
67516         * modules/getugroups (Makefile.am): Likewise.
67517         * modules/getusershell (Makefile.am): Likewise.
67518         * modules/glob (Makefile.am): Likewise.
67519         * modules/group-member (Makefile.am): Likewise.
67520         * modules/hard-locale (Makefile.am): Likewise.
67521         * modules/hash (Makefile.am): Likewise.
67522         * modules/hmac-md5 (Makefile.am): Likewise.
67523         * modules/hmac-sha1 (Makefile.am): Likewise.
67524         * modules/human (Makefile.am): Likewise.
67525         * modules/idcache (Makefile.am): Likewise.
67526         * modules/imaxabs (Makefile.am): Likewise.
67527         * modules/imaxdiv (Makefile.am): Likewise.
67528         * modules/inet_ntop (Makefile.am): Likewise.
67529         * modules/inet_pton (Makefile.am): Likewise.
67530         * modules/intprops (Makefile.am): Likewise.
67531         * modules/inttostr (Makefile.am): Likewise.
67532         * modules/inttypes (Makefile.am): Likewise.
67533         * modules/isapipe (Makefile.am): Likewise.
67534         * modules/javaversion (Makefile.am): Likewise.
67535         * modules/lchmod (Makefile.am): Likewise.
67536         * modules/lchown (Makefile.am): Likewise.
67537         * modules/localcharset (Makefile.am): Likewise.
67538         * modules/long-options (Makefile.am): Likewise.
67539         * modules/lstat (Makefile.am): Likewise.
67540         * modules/malloc (Makefile.am): Likewise.
67541         * modules/mathl (Makefile.am): Likewise.
67542         * modules/mbchar (Makefile.am): Likewise.
67543         * modules/md2 (Makefile.am): Likewise.
67544         * modules/md4 (Makefile.am): Likewise.
67545         * modules/md5 (Makefile.am): Likewise.
67546         * modules/memcasecmp (Makefile.am): Likewise.
67547         * modules/memchr (Makefile.am): Likewise.
67548         * modules/memcmp (Makefile.am): Likewise.
67549         * modules/memcoll (Makefile.am): Likewise.
67550         * modules/memcpy (Makefile.am): Likewise.
67551         * modules/memmem (Makefile.am): Likewise.
67552         * modules/memmove (Makefile.am): Likewise.
67553         * modules/mempcpy (Makefile.am): Likewise.
67554         * modules/memrchr (Makefile.am): Likewise.
67555         * modules/memset (Makefile.am): Likewise.
67556         * modules/memxor (Makefile.am): Likewise.
67557         * modules/mkancesdirs (Makefile.am): Likewise.
67558         * modules/mkdir-p (Makefile.am): Likewise.
67559         * modules/mkdir (Makefile.am): Likewise.
67560         * modules/mkdtemp (Makefile.am): Likewise.
67561         * modules/mkstemp (Makefile.am): Likewise.
67562         * modules/mktime (Makefile.am): Likewise.
67563         * modules/modechange (Makefile.am): Likewise.
67564         * modules/mountlist (Makefile.am): Likewise.
67565         * modules/nanosleep (Makefile.am): Likewise.
67566         * modules/obstack (Makefile.am): Likewise.
67567         * modules/openat (Makefile.am): Likewise.
67568         * modules/pagealign_alloc (Makefile.am): Likewise.
67569         * modules/pathmax (Makefile.am): Likewise.
67570         * modules/physmem (Makefile.am): Likewise.
67571         * modules/poll (Makefile.am): Likewise.
67572         * modules/posixtm (Makefile.am): Likewise.
67573         * modules/posixver (Makefile.am): Likewise.
67574         * modules/putenv (Makefile.am): Likewise.
67575         * modules/quote (Makefile.am): Likewise.
67576         * modules/quotearg (Makefile.am): Likewise.
67577         * modules/raise (Makefile.am): Likewise.
67578         * modules/read-file (Makefile.am): Likewise.
67579         * modules/readline (Makefile.am): Likewise.
67580         * modules/readlink (Makefile.am): Likewise.
67581         * modules/readtokens (Makefile.am): Likewise.
67582         * modules/readutmp (Makefile.am): Likewise.
67583         * modules/realloc (Makefile.am): Likewise.
67584         * modules/regex (Makefile.am): Likewise.
67585         * modules/rename-dest-slash (Makefile.am): Likewise.
67586         * modules/rename (Makefile.am): Likewise.
67587         * modules/rijndael (Makefile.am): Likewise.
67588         * modules/rmdir (Makefile.am): Likewise.
67589         * modules/rpmatch (Makefile.am): Likewise.
67590         * modules/safe-read (Makefile.am): Likewise.
67591         * modules/safe-write (Makefile.am): Likewise.
67592         * modules/same-inode (Makefile.am): Likewise.
67593         * modules/same (Makefile.am): Likewise.
67594         * modules/save-cwd (Makefile.am): Likewise.
67595         * modules/savedir (Makefile.am): Likewise.
67596         * modules/setenv (Makefile.am): Likewise.
67597         * modules/settime (Makefile.am): Likewise.
67598         * modules/sha1 (Makefile.am): Likewise.
67599         * modules/sig2str (Makefile.am): Likewise.
67600         * modules/snprintf (Makefile.am): Likewise.
67601         * modules/stat-macros (Makefile.am): Likewise.
67602         * modules/stat-time (Makefile.am): Likewise.
67603         * modules/stdbool (Makefile.am): Likewise.
67604         * modules/stdint (Makefile.am): Likewise.
67605         * modules/stdlib-safer (Makefile.am): Likewise.
67606         * modules/stpcpy (Makefile.am): Likewise.
67607         * modules/stpncpy (Makefile.am): Likewise.
67608         * modules/strcase (Makefile.am): Likewise.
67609         * modules/strcasestr (Makefile.am): Likewise.
67610         * modules/strchrnul (Makefile.am): Likewise.
67611         * modules/strcspn (Makefile.am): Likewise.
67612         * modules/strdup (Makefile.am): Likewise.
67613         * modules/strerror (Makefile.am): Likewise.
67614         * modules/strftime (Makefile.am): Likewise.
67615         * modules/strndup (Makefile.am): Likewise.
67616         * modules/strnlen (Makefile.am): Likewise.
67617         * modules/strpbrk (Makefile.am): Likewise.
67618         * modules/strsep (Makefile.am): Likewise.
67619         * modules/strstr (Makefile.am): Likewise.
67620         * modules/strtod (Makefile.am): Likewise.
67621         * modules/strtoimax (Makefile.am): Likewise.
67622         * modules/strtok_r (Makefile.am): Likewise.
67623         * modules/strtol (Makefile.am): Likewise.
67624         * modules/strtoll (Makefile.am): Likewise.
67625         * modules/strtoul (Makefile.am): Likewise.
67626         * modules/strtoull (Makefile.am): Likewise.
67627         * modules/strtoumax (Makefile.am): Likewise.
67628         * modules/strverscmp (Makefile.am): Likewise.
67629         * modules/sys_socket (Makefile.am): Likewise.
67630         * modules/sys_stat (Makefile.am): Likewise.
67631         * modules/sysexits (Makefile.am): Likewise.
67632         * modules/time_r (Makefile.am): Likewise.
67633         * modules/timegm (Makefile.am): Likewise.
67634         * modules/timespec (Makefile.am): Likewise.
67635         * modules/tmpfile-safer (Makefile.am): Likewise.
67636         * modules/trim (Makefile.am): Likewise.
67637         * modules/unistd-safer (Makefile.am): Likewise.
67638         * modules/unlinkdir (Makefile.am): Likewise.
67639         * modules/unlocked-io (Makefile.am): Likewise.
67640         * modules/userspec (Makefile.am): Likewise.
67641         * modules/utime (Makefile.am): Likewise.
67642         * modules/utimecmp (Makefile.am): Likewise.
67643         * modules/utimens (Makefile.am): Likewise.
67644         * modules/vasnprintf (Makefile.am): Likewise.
67645         * modules/vasprintf (Makefile.am): Likewise.
67646         * modules/vsnprintf (Makefile.am): Likewise.
67647         * modules/xalloc (Makefile.am): Likewise.
67648         * modules/xgetcwd (Makefile.am): Likewise.
67649         * modules/xnanosleep (Makefile.am): Likewise.
67650         * modules/xreadlink (Makefile.am): Likewise.
67651         * modules/xstrtod (Makefile.am): Likewise.
67652         * modules/xstrtol (Makefile.am): Likewise.
67653         * modules/xstrtold (Makefile.am): Likewise.
67654         * modules/yesno (Makefile.am): Likewise.
67655         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
67656
67657 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67658
67659         * modules/error (Makefile.am): Distribute files through
67660         EXTRA_DIST, not lib_SOURCES.
67661
67662 2006-10-12  Eric Blake  <ebb9@byu.net>
67663
67664         * modules/error (Makefile.am): Distribute files in /lib.
67665         * modules/obstack (Makefile.am): Likewise.
67666
67667 2006-10-12  Bruno Haible  <bruno@clisp.org>
67668
67669         * modules/acl (Makefile.am): Distribute all files in lib/ through
67670         EXTRA_DIST.
67671         * modules/arcfour (Makefile.am): Likewise.
67672         * modules/arctwo (Makefile.am): Likewise.
67673         * modules/argmatch (Makefile.am): Likewise.
67674         * modules/argz (Makefile.am): Likewise.
67675         * modules/atexit (Makefile.am): Likewise.
67676         * modules/backupfile (Makefile.am): Likewise.
67677         * modules/c-strtod (Makefile.am): Likewise.
67678         * modules/c-strtold (Makefile.am): Likewise.
67679         * modules/calloc (Makefile.am): Likewise.
67680         * modules/canon-host (Makefile.am): Likewise.
67681         * modules/canonicalize (Makefile.am): Likewise.
67682         * modules/chdir-long (Makefile.am): Likewise.
67683         * modules/chdir-safer (Makefile.am): Likewise.
67684         * modules/check-version (Makefile.am): Likewise.
67685         * modules/chown (Makefile.am): Likewise.
67686         * modules/cloexec (Makefile.am): Likewise.
67687         * modules/close-stream (Makefile.am): Likewise.
67688         * modules/closeout (Makefile.am): Likewise.
67689         * modules/crc (Makefile.am): Likewise.
67690         * modules/cycle-check (Makefile.am): Likewise.
67691         * modules/des (Makefile.am): Likewise.
67692         * modules/dirfd (Makefile.am): Likewise.
67693         * modules/dirname (Makefile.am): Likewise.
67694         * modules/dup2 (Makefile.am): Likewise.
67695         * modules/euidaccess (Makefile.am): Likewise.
67696         * modules/exclude (Makefile.am): Likewise.
67697         * modules/exitfail (Makefile.am): Likewise.
67698         * modules/fcntl-safer (Makefile.am): Likewise.
67699         * modules/file-type (Makefile.am): Likewise.
67700         * modules/fileblocks (Makefile.am): Likewise.
67701         * modules/filemode (Makefile.am): Likewise.
67702         * modules/filenamecat (Makefile.am): Likewise.
67703         * modules/fnmatch (Makefile.am): Likewise.
67704         * modules/fopen-safer (Makefile.am): Likewise.
67705         * modules/fpending (Makefile.am): Likewise.
67706         * modules/fprintftime (Makefile.am): Likewise.
67707         * modules/free (Makefile.am): Likewise.
67708         * modules/fsusage (Makefile.am): Likewise.
67709         * modules/ftruncate (Makefile.am): Likewise.
67710         * modules/fts (Makefile.am): Likewise.
67711         * modules/gc (Makefile.am): Likewise.
67712         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
67713         * modules/getaddrinfo (Makefile.am): Likewise.
67714         * modules/getcwd (Makefile.am): Likewise.
67715         * modules/getdelim (Makefile.am): Likewise.
67716         * modules/getdomainname (Makefile.am): Likewise.
67717         * modules/getgroups (Makefile.am): Likewise.
67718         * modules/gethostname (Makefile.am): Likewise.
67719         * modules/gethrxtime (Makefile.am): Likewise.
67720         * modules/getline (Makefile.am): Likewise.
67721         * modules/getloadavg (Makefile.am): Likewise.
67722         * modules/getlogin_r (Makefile.am): Likewise.
67723         * modules/getopt (Makefile.am): Likewise.
67724         * modules/getpass (Makefile.am): Likewise.
67725         * modules/getpass-gnu (Makefile.am): Likewise.
67726         * modules/getsubopt (Makefile.am): Likewise.
67727         * modules/gettime (Makefile.am): Likewise.
67728         * modules/gettimeofday (Makefile.am): Likewise.
67729         * modules/getugroups (Makefile.am): Likewise.
67730         * modules/getusershell (Makefile.am): Likewise.
67731         * modules/glob (Makefile.am): Likewise.
67732         * modules/group-member (Makefile.am): Likewise.
67733         * modules/hard-locale (Makefile.am): Likewise.
67734         * modules/hash (Makefile.am): Likewise.
67735         * modules/hmac-md5 (Makefile.am): Likewise.
67736         * modules/hmac-sha1 (Makefile.am): Likewise.
67737         * modules/human (Makefile.am): Likewise.
67738         * modules/idcache (Makefile.am): Likewise.
67739         * modules/imaxabs (Makefile.am): Likewise.
67740         * modules/imaxdiv (Makefile.am): Likewise.
67741         * modules/inet_ntop (Makefile.am): Likewise.
67742         * modules/inet_pton (Makefile.am): Likewise.
67743         * modules/inttostr (Makefile.am): Likewise.
67744         * modules/isapipe (Makefile.am): Likewise.
67745         * modules/lchown (Makefile.am): Likewise.
67746         * modules/long-options (Makefile.am): Likewise.
67747         * modules/lstat (Makefile.am): Likewise.
67748         * modules/malloc (Makefile.am): Likewise.
67749         * modules/mathl (Makefile.am): Likewise.
67750         * modules/mbchar (Makefile.am): Likewise.
67751         * modules/md2 (Makefile.am): Likewise.
67752         * modules/md4 (Makefile.am): Likewise.
67753         * modules/md5 (Makefile.am): Likewise.
67754         * modules/memcasecmp (Makefile.am): Likewise.
67755         * modules/memchr (Makefile.am): Likewise.
67756         * modules/memcmp (Makefile.am): Likewise.
67757         * modules/memcoll (Makefile.am): Likewise.
67758         * modules/memcpy (Makefile.am): Likewise.
67759         * modules/memmem (Makefile.am): Likewise.
67760         * modules/memmove (Makefile.am): Likewise.
67761         * modules/mempcpy (Makefile.am): Likewise.
67762         * modules/memrchr (Makefile.am): Likewise.
67763         * modules/memset (Makefile.am): Likewise.
67764         * modules/memxor (Makefile.am): Likewise.
67765         * modules/mkancesdirs (Makefile.am): Likewise.
67766         * modules/mkdir (Makefile.am): Likewise.
67767         * modules/mkdir-p (Makefile.am): Likewise.
67768         * modules/mkdtemp (Makefile.am): Likewise.
67769         * modules/mkstemp (Makefile.am): Likewise.
67770         * modules/mktime (Makefile.am): Likewise.
67771         * modules/modechange (Makefile.am): Likewise.
67772         * modules/mountlist (Makefile.am): Likewise.
67773         * modules/nanosleep (Makefile.am): Likewise.
67774         * modules/openat (Makefile.am): Likewise.
67775         * modules/pagealign_alloc (Makefile.am): Likewise.
67776         * modules/physmem (Makefile.am): Likewise.
67777         * modules/poll (Makefile.am): Likewise.
67778         * modules/posixtm (Makefile.am): Likewise.
67779         * modules/posixver (Makefile.am): Likewise.
67780         * modules/putenv (Makefile.am): Likewise.
67781         * modules/quote (Makefile.am): Likewise.
67782         * modules/quotearg (Makefile.am): Likewise.
67783         * modules/raise (Makefile.am): Likewise.
67784         * modules/read-file (Makefile.am): Likewise.
67785         * modules/readline (Makefile.am): Likewise.
67786         * modules/readlink (Makefile.am): Likewise.
67787         * modules/readtokens (Makefile.am): Likewise.
67788         * modules/readutmp (Makefile.am): Likewise.
67789         * modules/realloc (Makefile.am): Likewise.
67790         * modules/regex (Makefile.am): Likewise.
67791         * modules/rename (Makefile.am): Likewise.
67792         * modules/rename-dest-slash (Makefile.am): Likewise.
67793         * modules/rijndael (Makefile.am): Likewise.
67794         * modules/rmdir (Makefile.am): Likewise.
67795         * modules/rpmatch (Makefile.am): Likewise.
67796         * modules/safe-read (Makefile.am): Likewise.
67797         * modules/safe-write (Makefile.am): Likewise.
67798         * modules/same (Makefile.am): Likewise.
67799         * modules/save-cwd (Makefile.am): Likewise.
67800         * modules/savedir (Makefile.am): Likewise.
67801         * modules/setenv (Makefile.am): Likewise.
67802         * modules/settime (Makefile.am): Likewise.
67803         * modules/sha1 (Makefile.am): Likewise.
67804         * modules/sig2str (Makefile.am): Likewise.
67805         * modules/snprintf (Makefile.am): Likewise.
67806         * modules/stdlib-safer (Makefile.am): Likewise.
67807         * modules/stpcpy (Makefile.am): Likewise.
67808         * modules/stpncpy (Makefile.am): Likewise.
67809         * modules/strcase (Makefile.am): Likewise.
67810         * modules/strcasestr (Makefile.am): Likewise.
67811         * modules/strchrnul (Makefile.am): Likewise.
67812         * modules/strcspn (Makefile.am): Likewise.
67813         * modules/strdup (Makefile.am): Likewise.
67814         * modules/strerror (Makefile.am): Likewise.
67815         * modules/strftime (Makefile.am): Likewise.
67816         * modules/strndup (Makefile.am): Likewise.
67817         * modules/strnlen (Makefile.am): Likewise.
67818         * modules/strpbrk (Makefile.am): Likewise.
67819         * modules/strsep (Makefile.am): Likewise.
67820         * modules/strstr (Makefile.am): Likewise.
67821         * modules/strtod (Makefile.am): Likewise.
67822         * modules/strtoimax (Makefile.am): Likewise.
67823         * modules/strtok_r (Makefile.am): Likewise.
67824         * modules/strtol (Makefile.am): Likewise.
67825         * modules/strtoll (Makefile.am): Likewise.
67826         * modules/strtoul (Makefile.am): Likewise.
67827         * modules/strtoull (Makefile.am): Likewise.
67828         * modules/strtoumax (Makefile.am): Likewise.
67829         * modules/strverscmp (Makefile.am): Likewise.
67830         * modules/time_r (Makefile.am): Likewise.
67831         * modules/timegm (Makefile.am): Likewise.
67832         * modules/tmpfile-safer (Makefile.am): Likewise.
67833         * modules/unistd-safer (Makefile.am): Likewise.
67834         * modules/unlinkdir (Makefile.am): Likewise.
67835         * modules/userspec (Makefile.am): Likewise.
67836         * modules/utime (Makefile.am): Likewise.
67837         * modules/utimecmp (Makefile.am): Likewise.
67838         * modules/utimens (Makefile.am): Likewise.
67839         * modules/vasnprintf (Makefile.am): Likewise.
67840         * modules/vasprintf (Makefile.am): Likewise.
67841         * modules/vsnprintf (Makefile.am): Likewise.
67842         * modules/xalloc (Makefile.am): Likewise.
67843         * modules/xgetcwd (Makefile.am): Likewise.
67844         * modules/xnanosleep (Makefile.am): Likewise.
67845         * modules/xreadlink (Makefile.am): Likewise.
67846         * modules/xstrtod (Makefile.am): Likewise.
67847         * modules/xstrtol (Makefile.am): Likewise.
67848         * modules/xstrtold (Makefile.am): Likewise.
67849         * modules/yesno (Makefile.am): Likewise.
67850
67851 2006-10-12  Jim Meyering  <jim@meyering.net>
67852
67853         * m4/getloadavg.m4: Revert the change below.
67854
67855         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
67856         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
67857         fail with a symlink, which is what coreutils' ./bootstrap now
67858         creates by default.
67859
67860 2006-10-12  Bruno Haible  <bruno@clisp.org>
67861
67862         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
67863         mingw.
67864         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
67865         MSVC and mingw explicitly.
67866
67867 2006-10-11  Simon Josefsson  <jas@extundo.com>
67868             Bruno Haible  <bruno@clisp.org>
67869
67870         Add support for multiple gnulib-tool invocations in the scope of a
67871         single configure.ac file.
67872         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
67873         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
67874         with the same contents as the _LIBADD variable.
67875         (func_emit_initmacro_start, func_emit_initmacro_end,
67876         func_emit_initmacro_done): New functions.
67877         (func_import, func_create_testdir): Invoke them. Allow the identifiers
67878         gl_LIBOBJS and gl_LTLIBOBJS.
67879
67880 2006-10-11  Bruno Haible  <bruno@clisp.org>
67881
67882         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
67883         (func_create_testdir): Don't create po/Makefile.am, don't invoke
67884         autoreconf. Instead, invoke autopoint explicitly but move back the
67885         *.m4 files from gnulib.
67886
67887 2006-10-11  Bruno Haible  <bruno@clisp.org>
67888
67889         * gnulib-tool (func_usage): Make module names after --create-testdir
67890         optional.
67891         (func_create_testdir): If no module was specified, use nearly all
67892         modules.
67893
67894 2006-10-12  Jim Meyering  <jim@meyering.net>
67895
67896         Big performance improvement for fts-based tools that use FTS_NOSTAT.
67897         Avoid spurious inode-mismatch problems on non-POSIX file systems.
67898         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
67899         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
67900         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
67901         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
67902         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
67903         (fts_set_stat_required): New function.
67904         (fts_open): Defer the calls to fts_stat, if possible or requested.
67905         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
67906         into fts_stat itself.
67907         (fts_read): Perform any required (deferred) fts_stat call.
67908         (fts_build): Likewise, for the directory we're about to open and read.
67909         In the readdir loop, carefully decide whether each entry will require
67910         an eventual call to fts_stat, using dirent.d_type info if available.
67911         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
67912         a command line argument into this function.  Update all callers.
67913         Map a return value of FTS_DOT to FTS_D for a command line argument.
67914         * modules/fts (Depends-on): Add d-type.  Alphabetize.
67915         Thanks to Miklos Szeredi for his tenacity and for the initial
67916         bug report about "find" failing on a FUSE-based file system.
67917
67918         * lib/fts.c (fts_open): Use consistent indentation.
67919
67920 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67921
67922         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
67923         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
67924         reported by Jim Meyering.  All uses of cache variables renamed
67925         to match Autoconf's.
67926         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
67927         the other one.
67928
67929         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
67930         Fix misspelling in diagnostic.
67931
67932 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67933
67934         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
67935         defined.  Problem reported by Matthew Woehlke.
67936
67937         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
67938         Add support for Tandem NonStop R series.
67939         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
67940         Use new macro.
67941
67942         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
67943         (has_trailing_slash): Omit size arg; all callers changed.
67944         Omit 'inline', since it doesn't help performance and we'd
67945         need to configure it.
67946         Don't count //, ///, etc. as having a trailing slash.
67947         As a side effect, this removes a C99ism reported by Matthew Woehlke.
67948         (rpl_rename_dest_slash): On failure, use rename's errno rather
67949         than (in some cases) an incorrect or junk errno.
67950         Simplify code by removing need to compute length; this does
67951         cause it to make two passes instead of one over the file name,
67952         but it's worth it.
67953
67954         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
67955         change, since Autoconf's version may no longer be appropriate now
67956         that we are using CVS Autoconf's version.  Add support for Tandem.
67957
67958 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67959             Bruno Haible  <bruno@clisp.org>
67960
67961         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
67962         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
67963         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
67964         gl_AC_TYPE_LONG_LONG.
67965
67966         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
67967         instead of HAVE_LONG_LONG.
67968         * lib/printf-args.c (printf_fetchargs): Likewise.
67969         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
67970         * lib/vasnprintf.c (VASNPRINTF): Likewise.
67971         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
67972         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
67973         gl_AC_TYPE_LONG_LONG.
67974
67975 2006-10-11  Bruno Haible  <bruno@clisp.org>
67976
67977         * m4/longlong.m4: Add comments.
67978         * m4/ulonglong.m4: Likewise.
67979
67980 2006-10-10  Bruno Haible  <bruno@clisp.org>
67981
67982         Make it possible to #define stpcpy, strdup to aliases.
67983         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
67984         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
67985
67986 2006-10-10  Bruno Haible  <bruno@clisp.org>
67987
67988         Make it possible to #define gcd to an alias.
67989         * lib/gcd.c: Include config.h.
67990
67991 2006-10-10  Bruno Haible  <bruno@clisp.org>
67992
67993         Make it possible to #define c_isascii to an alias.
67994         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
67995         defined. Undefine the macros before defining them, to avoid gcc
67996         warnings.
67997         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
67998         define NO_C_CTYPE_MACROS early.
67999
68000 2006-10-10  Bruno Haible  <bruno@clisp.org>
68001
68002         Make it possible to #define set_program_name to an alias.
68003         * lib/progname.c: Don't undefine set_program_name; instead, undefine
68004         ENABLE_RELOCATABLE early.
68005
68006 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
68007
68008         Port to Tandem NSK OSS, which has 64-bit signed int but at most
68009         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
68010         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
68011         More generally, don't assume that 64-bit signed int is available
68012         if unsigned int is, and vice versa.
68013         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
68014         unsigned symbols, not on their signed counterparts.
68015         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
68016         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
68017         (UINT64_C, UINTMAX_C):
68018         Likewise.
68019         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
68020         unsigned counterparts.
68021         (Have_long_long, Unsigned): New macros.
68022         (Int): Renamed from INT.
68023         (strtoimax): Use the new macros.
68024         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
68025         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
68026         * modules/inttypes (inttypes.h): Substitute
68027         HAVE_UNSIGNED_LONG_LONG_INT.
68028         * modules/stdint (stdint.h): Likewise.
68029         (Files): Add m4/ulonglong.m4.
68030
68031 2006-10-10  Bruno Haible  <bruno@clisp.org>
68032
68033         Fix a gcc -Wshadow warning.
68034         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
68035         to 'bucket'.
68036         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
68037         gl_linked_indexof_from_to): Likewise.
68038         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
68039         Likewise.
68040         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
68041         Likewise.
68042         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
68043         Reported by Eric Blake.
68044
68045 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
68046
68047         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
68048         for NetBSD.  Problem reported by Bruno Haible.
68049
68050 2006-10-09  Jim Meyering  <jim@meyering.net>
68051
68052         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
68053         Patch from Bruno Haible.
68054
68055 2006-10-09  Jim Meyering  <jim@meyering.net>
68056
68057         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
68058         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
68059         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
68060
68061 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
68062
68063         Don't include <config.h> twice; this doesn't work in some cases,
68064         e.g., when config.h has "#define intmax_t long long int" and
68065         we include <config.h>, <inttypes.h>, <config.h> in that order.
68066         Problem reported by Matthew Woehlke in:
68067         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
68068         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
68069         * lib/fts-cycle.c: Don't include config.h.
68070         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
68071         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
68072         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
68073         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
68074         inttypes.h.
68075         * lib/xstrtoumax.c: Likewise.
68076         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
68077         __strtol and the like, so that this module is more like its siblings.
68078         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
68079         Remove; no longer needed now that we assume gnulib inttypes.h.
68080
68081 2006-10-08  Bruno Haible  <bruno@clisp.org>
68082
68083         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
68084         option.
68085
68086 2006-10-07  Jim Meyering  <jim@meyering.net>
68087
68088         * modules/inttypes (inttypes.h): Revert what seems to have been
68089         an inadvertent part of today's change: use "|", not "/" in the
68090         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
68091
68092 2006-10-07  Bruno Haible  <bruno@clisp.org>
68093
68094         * modules/sublist: New file.
68095
68096 2006-10-07  Bruno Haible  <bruno@clisp.org>
68097
68098         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
68099         * modules/argz (argz.h): Likewise.
68100         * modules/arpa_inet (arpa/inet.h): Likewise.
68101         * modules/byteswap (byteswap.h): Likewise.
68102         * modules/configmake (configmake.h): Likewise.
68103         * modules/fcntl (fcntl.h): Likewise.
68104         * modules/fnmatch (fnmatch.h): Likewise.
68105         * modules/getopt (getopt.h): Likewise.
68106         * modules/glob (glob.h): Likewise.
68107         * modules/inttypes (inttypes.h): Likewise.
68108         * modules/netinet_in (netinet/in.h): Likewise.
68109         * modules/poll (poll.h): Likewise.
68110         * modules/stdbool (stdbool.h): Likewise.
68111         * modules/stdint (stdint.h): Likewise.
68112         * modules/sys_select (sys/select.h): Likewise.
68113         * modules/sys_socket (sys/socket.h): Likewise.
68114         * modules/sys_stat (sys/stat.h): Likewise.
68115         * modules/sysexits (sysexits.h): Likewise.
68116         * modules/unistd (unistd.h): Likewise.
68117         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68118         Add a "DO NOT EDIT" comment to the generated file.
68119         (func_import): Likewise for gnulib-comp.m4.
68120
68121 2006-10-07  Bruno Haible  <bruno@clisp.org>
68122
68123         * lib/gl_sublist.h: New file.
68124         * lib/gl_sublist.c: New file.
68125
68126 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
68127
68128         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
68129         name (relative to the original working directory) and the file
68130         name component (relative to the temporary working directory).  All
68131         callers changed.
68132         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
68133         * lib/mkdir-p.c (make_dir_parents): Likewise.
68134         * lib/mkdir-p.h (make_dir_parents): Likewise.
68135
68136 2006-10-06  Eric Blake  <ebb9@byu.net>
68137
68138         Define several macros for use by the clean-temp module.
68139         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
68140         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
68141         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
68142
68143         * lib/clean-temp.h (close_stream_temp): New declaration.
68144         * lib/clean-temp.c (includes): Pull in headers according to what
68145         other modules are in use.
68146         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
68147
68148 2006-10-06  Bruno Haible  <bruno@clisp.org>
68149
68150         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
68151         instead of fopen, fwriteerror.
68152
68153 2006-10-06  Bruno Haible  <bruno@clisp.org>
68154
68155         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
68156         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
68157         int.
68158         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
68159         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
68160         Return an error indicator.
68161         Suggested by Eric Blake.
68162
68163 2006-10-06  Bruno Haible  <bruno@clisp.org>
68164
68165         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
68166         Reported by Eric Blake.
68167
68168 2006-10-06  Bruno Haible  <bruno@clisp.org>
68169
68170         * modules/closeout (Description): Mention stderr too.
68171
68172 2006-10-06  Bruno Haible  <bruno@clisp.org>
68173         and Paul Eggert  <eggert@cs.ucla.edu>
68174
68175         * lib/closeout.c (close_stdout): Also close stderr.
68176         * lib/closeout.h: Update comment.
68177
68178 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
68179
68180         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
68181         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
68182         * lib/dirchownmod.c: Include lchown.h.
68183         * lib/lchown.c: Don't include files that lchown.h now includes.
68184         Don't declare chown, since lchown.h now does that.
68185         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
68186         (lchown): Define to rpl_chown if lchown is declared but
68187         does not exist.  Declare using a prototype if lchown is not
68188         declared.  Add a copyright notice.
68189         * lib/mkstemp.h: Include <unistd.h>.
68190         * lib/openat.c: Include lchown.h.
68191
68192         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
68193         we now test for that separately.
68194         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
68195         rather than O_NOFOLLOW, when testing whether it's possible to
68196         avoid a race condition reliably.
68197         * lib/savewd.c (savewd_chdir): Likewise.
68198
68199         Remove macros that are no longer needed now that stdint.h is
68200         reliable.
68201         * lib/fsusage.c (UINTMAX_MAX): Remove.
68202         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
68203         * lib/utimecmp.c (SIZE_MAX): Remove.
68204
68205         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
68206
68207         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
68208         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
68209         O_NOATIME works.
68210
68211 2006-10-05  Bruno Haible  <bruno@clisp.org>
68212
68213         * lib/gl_list.h (gl_sortedlist_search_from_to,
68214         gl_sortedlist_indexof_from_to): New declarations.
68215         (gl_list_implementation): New fields sortedlist_search_from_to,
68216         sortedlist_indexof_from_to.
68217         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
68218         inline functions.
68219         * lib/gl_list.c (gl_sortedlist_search_from_to,
68220         gl_sortedlist_indexof_from_to): New functions.
68221         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
68222         function.
68223         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
68224         (gl_array_sortedlist_search_from_to): New function.
68225         (gl_array_list_implementation): Update.
68226         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
68227         function.
68228         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
68229         (gl_carray_sortedlist_search_from_to): New function.
68230         (gl_carray_list_implementation): Update.
68231         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
68232         gl_linked_sortedlist_indexof_from_to): New functions.
68233         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
68234         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
68235         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
68236         gl_tree_sortedlist_indexof_from_to): New functions.
68237         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
68238         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
68239         Update.
68240         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
68241         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
68242         Update.
68243
68244 2006-10-05  Bruno Haible  <bruno@clisp.org>
68245
68246         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
68247         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
68248         (struct gl_list_implementation): Add fields search_from_to,
68249         indexof_from_to. Remove fields search, indexof.
68250         (gl_list_search): Use the search_from_to method.
68251         (gl_list_search_from, gl_list_search_from_to): New functions.
68252         (gl_list_indexof): Use the indexof_from_to method.
68253         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
68254         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
68255         (gl_list_search_from, gl_list_search_from_to): New functions.
68256         (gl_list_indexof): Use the indexof_from_to method.
68257         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
68258         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
68259         gl_array_indexof. Add start_index, end_index arguments.
68260         (gl_array_search_from_to): Renamed from gl_array_search. Add
68261         start_index, end_index arguments.
68262         (gl_array_remove, gl_array_list_implementation): Update.
68263         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
68264         gl_carray_indexof. Add start_index, end_index arguments.
68265         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
68266         start_index, end_index arguments.
68267         (gl_carray_remove, gl_carray_list_implementation): Update.
68268         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
68269         gl_linked_search. Add start_index, end_index arguments.
68270         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
68271         start_index, end_index arguments.
68272         (gl_linked_remove): Update.
68273         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
68274         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
68275         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
68276         field to 'size_t'.
68277         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
68278         gl_tree_search. Add start_index, end_index arguments.
68279         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
68280         start_index, end_index arguments.
68281         (gl_tree_remove): Update.
68282         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
68283         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
68284         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
68285         function.
68286         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
68287         gl_tree_search. Add start_index, end_index arguments.
68288         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
68289         start_index, end_index arguments.
68290         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
68291         Update.
68292         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
68293
68294 2006-10-05  Bruno Haible  <bruno@clisp.org>
68295
68296         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
68297
68298         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
68299         fwriteerror_temp): New declarations.
68300         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
68301         (descriptors): New variable.
68302         (cleanup): First, close the descriptors.
68303         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
68304         fclose_temp, fwriteerror_temp): New functions.
68305
68306 2006-10-04  Jim Meyering  <jim@meyering.net>
68307
68308         * lib/fts.c (fts_open): Tiny comment change.
68309
68310 2006-10-04  Bruno Haible  <bruno@clisp.org>
68311
68312         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
68313         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
68314         gl_LOCK_BODY.
68315         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
68316         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
68317         gl_LOCK_EARLY_BODY.
68318         (gl_LOCK): Require gl_LOCK_BODY.
68319
68320 2006-10-04  Bruno Haible  <bruno@clisp.org>
68321
68322         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
68323         (gl_oset_search_atleast): New declaration.
68324         (struct gl_oset_implementation): Add field 'search_atleast'.
68325         (gl_oset_search_atleast): New inline function.
68326         * lib/gl_oset.c (gl_oset_search_atleast): New function.
68327         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
68328         (gl_array_oset_implementation): Update.
68329         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
68330         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
68331         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
68332
68333 2006-10-04  Bruno Haible  <bruno@clisp.org>
68334
68335         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
68336
68337 2006-10-03  Bruno Haible  <bruno@clisp.org>
68338
68339         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
68340         from gl_avltreehash_list_implementation.
68341
68342 2006-10-03  Bruno Haible  <bruno@clisp.org>
68343
68344         * lib/gl_oset.c (gl_oset_add): Fix return type.
68345
68346 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
68347
68348         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
68349
68350 2006-10-02  Eric Blake  <ebb9@byu.net>
68351
68352         * modules/strnlen (Depends-on): Add extensions.
68353
68354 2006-10-02  Eric Blake  <ebb9@byu.net>
68355
68356         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
68357         definition in 2.60+.
68358
68359 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
68360
68361         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
68362         checks.
68363
68364 2006-10-02  Bruno Haible  <bruno@clisp.org>
68365
68366         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
68367         to the AUTOMAKE_OPTIONS.
68368         Reported by Jim Meyering.
68369
68370 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
68371
68372         Work around bug in Solaris 10 /proc file system:
68373         /proc/self/fd/NNN/.. isn't the parent directory of
68374         the directory whose file descriptor is NNN.  This needs to
68375         be worked around at run time, not compile time, since a
68376         program might be built on Solaris 8, where things work, and
68377         run on Solaris 10.
68378         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
68379         to use the following interface instead:
68380         (OPENAT_BUFFER_SIZE): New macro.
68381         (openat_proc_name): New function.
68382         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
68383         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
68384         Likewise.
68385         * lib/openat-proc.c: New file.
68386         * modules/openat (Files): Add lib/openat-proc.c.
68387         (Depends-on): Add same-inode, stdbool.
68388         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
68389
68390 2006-09-29  Bruno Haible  <bruno@clisp.org>
68391
68392         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
68393         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
68394         argument. Set stdout_closed before testing for ferror, not after.
68395         (fwriteerror, fwriteerror_no_ebadf): New functions.
68396
68397 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68398
68399         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
68400
68401 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
68402
68403         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
68404         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
68405
68406 2006-09-28  Jim Meyering  <jim@meyering.net>
68407
68408         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
68409         Include <unistd.h>.
68410
68411 2006-09-28  Bruno Haible  <bruno@clisp.org>
68412
68413         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
68414         * modules/linkedhash-list (Depends-on): Likewise.
68415         * modules/rbtreehash-list (Depends-on): Likewise.
68416
68417 2006-09-28  Bruno Haible  <bruno@clisp.org>
68418
68419         * lib/strndup.h: Simplify the redefinition of strndup.
68420         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
68421         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
68422
68423 2006-09-28  Bruno Haible  <bruno@clisp.org>
68424
68425         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
68426         * lib/gl_linkedhash_list.c: Likewise.
68427         * lib/gl_rbtreehash_list.c: Likewise.
68428
68429 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
68430
68431         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
68432         getaddrinfo.
68433
68434         * lib/__fpending.h: Don't include <stdio_ext.h> unless
68435         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
68436         it causes <stdio_ext.h> to cause a compile-time error.
68437         Problem reported by Nelson H. F. Beebe.
68438         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
68439         of HAVE_DECL___PENDING.
68440
68441         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
68442         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
68443         declaration.
68444
68445 2006-09-27  Jim Meyering  <jim@meyering.net>
68446
68447         This file could end up with a definition for a function
68448         named __strndup, rather than rpl_strndup on a system with
68449         incomplete weak_alias support.
68450         * lib/strndup.c (strndup): Rename from __strndup.
68451         Remove #defines that used to map __strndup to strndup.
68452         Don't use K&R prototypes.
68453         Remove LIBC-related code, since this file is not sync'd with glibc.
68454         * lib/strndup.h: Revamp, accordingly.
68455         * m4/strndup.m4: Modernize.
68456
68457 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
68458
68459         * modules/savewd (Depends-on): Add 'raise'.
68460         * lib/savewd.c: Include <signal.h>, for 'raise'.
68461
68462 2006-09-26  Jim Meyering  <jim@meyering.net>
68463
68464         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
68465         when we detect Darwin 8.7.0's acl_get_file bug.
68466         Rearrange to perform the new (below) run-test while $LIBS
68467         contains any acl-related library.  Set USE_ACL at the end.
68468         (gl_ACL_GET_FILE): New function.
68469
68470 2006-09-26  Eric Blake  <ebb9@byu.net>
68471
68472         * lib/verror.c: Include <config.h> unconditionally.
68473
68474 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
68475
68476         * modules/clock-time (Maintainer): Add self.
68477         * modules/getlogin_r (Depends-on): Add extensions.
68478
68479 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68480
68481         * modules/clock-time: New module.
68482         * modules/nanosleep (Depends-on): Add clock-time.
68483         * modules/gethrxtime (Depends-on): Likewise.
68484         * modules/gettime (Depends-on): Likewise.
68485         * modules/settime (Depends-on): Likewise.
68486
68487         * modules/fts-lgpl: Depend on openat.
68488         * modules/mkancesdirs: Depend on savewd.
68489         * modules/mkdir-p: Likewise.
68490
68491 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68492
68493         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
68494
68495         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
68496         `gl_have_arbitrary_file_name_length_limit' to
68497         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
68498         actually works between configure runs.
68499
68500 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68501             Bruno Haible  <bruno@clisp.org>
68502
68503         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
68504
68505 2006-09-25  Jim Meyering  <jim@meyering.net>
68506
68507         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
68508         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
68509
68510 2006-09-25  Eric Blake  <ebb9@byu.net>
68511
68512         * gnulib-tool (func_import, func_create_testdir): Fix typos in
68513         exec's in 2006-09-18 patch when shuffling fds.
68514
68515 2006-09-25  Bruno Haible  <bruno@clisp.org>
68516
68517         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
68518         Reported by Jim Meyering.
68519
68520 2006-09-24  Jim Meyering  <jim@meyering.net>
68521
68522         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
68523         compare a pointer against a literal "0".  That caused failures with
68524         at least HP-UX's hpcc.
68525
68526 2006-09-22  Simon Josefsson  <jas@extundo.com>
68527
68528         * modules/gc-sha1:
68529         * modules/gc-md4:
68530         * modules/gc-hmac-sha1:
68531         * modules/gc-hmac-md5:
68532         * modules/gc-des:
68533         * modules/gc-arcfour: Distribute more files.
68534
68535 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68536
68537         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
68538         (gl_linked_iterator_from_to): Initialize struct completely.
68539         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
68540         (gl_tree_iterator_from_to): Likewise
68541         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
68542         * lib/gl_array_list.c [lint] (gl_array_iterator)
68543         (gl_array_iterator_from_to): Likewise.
68544         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
68545         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
68546         (gl_carray_iterator_from_to): Likewise.
68547
68548         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
68549         * lib/md4.c (md4_process_block): Remove unused variable.
68550         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
68551         parentheses for clarity.
68552
68553 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68554
68555         * modules/bison-i18n (Depends-on): Add gettext.
68556
68557 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68558
68559         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
68560         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
68561         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
68562         also add missing comma that caused broken test.
68563         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
68564         stdlib.h, for `abort'.
68565         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
68566         variables.
68567         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
68568         include unistd.h if present, for `rmdir'.
68569         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
68570         variables.
68571         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
68572         in the process include standard headers for prototypes.
68573         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
68574         gets declared on GNU/Linux.
68575         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
68576         unistd.h, for `rmdir'.
68577         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
68578
68579         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
68580         always true.
68581         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
68582
68583         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
68584
68585 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68586
68587         * gnulib-tool (func_version): Create output all at once.  This
68588         may help avoid triggering unnecessary SIGPIPEs, and at any
68589         rate it doesn't hurt.
68590
68591 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68592             Bruno Haible  <bruno@clisp.org>
68593
68594         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
68595         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
68596         * m4/signed.m4 (bh_C_SIGNED): Likewise.
68597
68598         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
68599         (gl_FUNC_VASPRINTF): Invoke it.
68600
68601 2006-09-22  Bruno Haible  <bruno@clisp.org>
68602
68603         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
68604         getloadavg.c as first argument.
68605
68606 2006-09-22  Bruno Haible  <bruno@clisp.org>
68607
68608         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
68609         at the beginning of the gl_INIT macro.
68610         * modules/getloadavg (configure.ac): Pass $gl_source_base to
68611         gl_GETLOADAVG.
68612
68613 2006-09-22  Bruno Haible  <bruno@clisp.org>
68614
68615         * gnulib-tool (func_create_megatestdir): Don't include the config-h
68616         module.
68617         Suggested by Ralf Wildenhues.
68618
68619 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
68620
68621         Import this patch from libc:
68622
68623         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
68624
68625         * lib/regex_internal.c (re_string_reconstruct): Handle
68626         offset < pstr->valid_raw_len && pstr->offsets_needed case.
68627         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
68628         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
68629         re_string_context_at.
68630
68631         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
68632         now requires it.
68633         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
68634         gl_REGEX now does it for us.
68635         (gl_REGEX): Add test taken from
68636         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
68637
68638         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
68639         Check that large offsets work.  Modernize Autoconf usages.
68640         Prefer "yes" to mean a good thing rather than a bad.
68641         Don't put "#define mkstemp" in config.h, as this might interfere
68642         with standard system headers that "#define mkstemp mkstemp64".
68643
68644         * modules/mkstemp (Depends-on): Add extensions, so that
68645         mkstemp is visible on some platforms.
68646         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
68647         (Include): Change to "mkstemp.h" from <stdlib.h>.
68648         (Files): Add mkstemp.h.
68649
68650         * lib/mkstemp.h: New file, since some standard headers
68651         #define mkstemp.
68652         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
68653         Include "mkstemp.h".
68654         Make the _LIBC code resemble glibc original more,
68655         e.g., use K&R style.
68656         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
68657         (mkstemp): Remove, since mkstemp.h does this for us.
68658         * lib/stdlib--.h: Include mkstemp.h.
68659
68660         Import this patch from libc:
68661
68662         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
68663
68664         * lib/tempname.c (__gen_tempname): Change attempts_min
68665         into a macro.  Use preprocessor to decide how to initialize
68666         attempts [Coverity CID 67].
68667
68668 2006-09-20  Bruno Haible  <bruno@clisp.org>
68669
68670         * lib/mkdtemp.c: Import from libc.
68671         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
68672                 * sysdeps/posix/tempname.c (__gen_tempname): Change
68673                 attempts_min into a macro.  Use preprocessor to decide how to
68674                 initialize attempts [Coverity CID 67].
68675         2001-11-27  Paul Eggert  <eggert@twinsun.com>
68676                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
68677                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
68678
68679 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68680
68681         * gnulib-tool (func_exit): New function, to allow to pass the
68682         exit status portably through the trap.  Use everywhere.
68683         (--help, --version): Signal a write error.
68684         (trap): catch SIGPIPE, for write errors.
68685         Exit at the end of the trap, with the correct exit status.
68686
68687 2006-09-19  Karl Berry  <karl@gnu.org>
68688
68689         * doc/gnulib.texi: note about the license texinfo files.
68690
68691 2006-09-19  Eric Blake  <ebb9@byu.net>
68692
68693         * gnulib-tool: Avoid space-tab.
68694
68695 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
68696
68697         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
68698         that prevented coreutils 6.1 from building.  Problem reported
68699         by Petter Reinholdtsen.
68700
68701 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
68702
68703         * gnulib-tool (avoidlist): Fix typo that broke options like
68704         --avoid=lock that are used by coreutils bootstrap.
68705
68706 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
68707
68708         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
68709         more systematically.
68710
68711 2006-09-18  Jim Meyering  <jim@meyering.net>
68712
68713         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
68714
68715 2006-09-18  Bruno Haible  <bruno@clisp.org>
68716
68717         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
68718
68719 2006-09-18  Bruno Haible  <bruno@clisp.org>
68720
68721         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
68722         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
68723         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
68724         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
68725         * m4/gettext.m4: Require autoconf >= 2.52.
68726         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
68727         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
68728         of gl_cv_header_inttypes_h.
68729
68730 2006-09-18  Bruno Haible  <bruno@clisp.org>
68731
68732         * lib/javaversion.c: Include configmake.h.
68733
68734 2006-09-18  Bruno Haible  <bruno@clisp.org>
68735
68736         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
68737         avoid that the while loops be executed in a subshell.
68738
68739 2006-09-18  Bruno Haible  <bruno@clisp.org>
68740
68741         * MODULES.html.sh (func_module): Break long lines.
68742         Suggested by Bruce Korb <bkorb@gnu.org>.
68743
68744 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68745
68746         Speed up by a factor of 1.12.
68747         * gnulib-tool (nl): New variable.
68748         (func_import): Rewrite include directive extraction to only read each
68749         directive once.
68750
68751 2006-09-17  Bruno Haible  <bruno@clisp.org>
68752
68753         * modules/javaversion (Makefile.am): Remove DEFS setting.
68754         (Depends-on): Add configmake, for PKGDATADIR definition.
68755
68756 2006-09-17  Bruno Haible  <bruno@clisp.org>
68757
68758         * gnulib-tool (func_create_testdir): Rewrite all files at once.
68759
68760 2006-09-17  Bruno Haible  <bruno@clisp.org>
68761
68762         * gnulib-tool (func_append): New function, stolen from libtool.m4.
68763         (func_modules_transitive_closure, func_modules_add_dummy,
68764         func_modules_to_filelist, func_import, func_create_testdir,
68765         func_create_megatestdir, ...): Use it wherever possible.
68766         Suggested by Ralf Wildenhues.
68767
68768 2006-09-16  Karl Berry  <karl@gnu.org>
68769
68770         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
68771         to avoid sectioning errors.
68772         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
68773         [ifinfo]: blank line after @center-ed titles.
68774         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
68775         Spell FSF address consistently with others.
68776         (These changes approved by rms.)
68777
68778 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68779
68780         Speed up by a factor of 1.61.
68781         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
68782         already checked module names again.
68783
68784 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68785
68786         Speed up by a factor of 1.13.
68787         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
68788         for new_files, and the input to func_add_or_update.
68789
68790 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68791
68792         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
68793         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
68794
68795 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68796
68797         * modules/mkancesdirs (Depends-on): Add fcntl.
68798         * modules/savewd: New file.
68799         * MODULES.html.sh (File system functions): Add savewd.
68800
68801         * modules/configmake (Makefile.am): Add support for the
68802         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
68803
68804 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68805
68806         * m4/savewd.m4: New file.
68807
68808 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68809
68810         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
68811         (dirchownmod): New arg FD.  All callers changed.
68812         Use FD rather than opening the directory ourself, as opening is
68813         now the caller's responsibility.
68814         * lib/dirchownmod.h: Likewise.
68815         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
68816         hosts that require <sys/types.h> before <sys/stat.h>.  Include
68817         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
68818         (test_dir): Remove.
68819         (mkancesdirs): Return length of prefix of FILE that has already
68820         been made, or -2 if there is a child doing the work.  Redo
68821         algorithm so that it is O(N) rather than O(N**2).  Optimize away
68822         ".", and treat ".." specially since it might stray back into
68823         already-created areas.  Use a subprocess if necessary.  New arg
68824         WD; all users changed.  MAKE_DIR function should now return 1
68825         if it creates a directory that is not readable.  Return -2 if
68826         a child process is spun off.
68827         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
68828         Adjust signature to match code.
68829         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
68830         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
68831         all users changed.
68832         * lib/savewd.c, lib/savewd.h: New files.
68833
68834 2006-09-15  Jim Meyering  <jim@meyering.net>
68835
68836         * modules/rename-dest-slash: New module.
68837         * MODULES.html.sh (posix_compat): Add it here.
68838
68839         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
68840
68841 2006-09-15  Jim Meyering  <jim@meyering.net>
68842
68843         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
68844         file.
68845
68846         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
68847
68848 2006-09-15  Jim Meyering  <jim@meyering.net>
68849
68850         * lib/rename-dest-slash.c (has_trailing_slash): Use
68851         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
68852         (rpl_rename_dest_slash): Perform the cheaper trailing slash
68853         test before testing whether SRC is a directory.
68854         Suggestions from Bruno Haible.
68855
68856         Avoid a warning about an unused variable.
68857         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
68858         into the #ifdef block where it's used.
68859
68860         * lib/rename-dest-slash.c: New file.
68861
68862 2006-09-14  Bruno Haible  <bruno@clisp.org>
68863
68864         * lib/allocsa.c: Include <config.h> unconditionally.
68865         * lib/asnprintf.c: Likewise.
68866         * lib/asprintf.c: Likewise.
68867         * lib/c-strcasecmp.c: Likewise.
68868         * lib/c-strcasestr.c: Likewise.
68869         * lib/c-strncasecmp.c: Likewise.
68870         * lib/c-strstr.c: Likewise.
68871         * lib/classpath.c: Likewise.
68872         * lib/clean-temp.c: Likewise.
68873         * lib/concatpath.c: Likewise.
68874         * lib/copy-file.c: Likewise.
68875         * lib/csharpcomp.c: Likewise.
68876         * lib/csharpexec.c: Likewise.
68877         * lib/execute.c: Likewise.
68878         * lib/fatal-signal.c: Likewise.
68879         * lib/findprog.c: Likewise.
68880         * lib/fwriteerror.c: Likewise.
68881         * lib/gl_array_list.c: Likewise.
68882         * lib/gl_array_oset.c: Likewise.
68883         * lib/gl_avltree_list.c: Likewise.
68884         * lib/gl_avltree_oset.c: Likewise.
68885         * lib/gl_avltreehash_list.c: Likewise.
68886         * lib/gl_carray_list.c: Likewise.
68887         * lib/gl_linked_list.c: Likewise.
68888         * lib/gl_linkedhash_list.c: Likewise.
68889         * lib/gl_list.c: Likewise.
68890         * lib/gl_oset.c: Likewise.
68891         * lib/gl_rbtree_list.c: Likewise.
68892         * lib/gl_rbtree_oset.c: Likewise.
68893         * lib/gl_rbtreehash_list.c: Likewise.
68894         * lib/imaxabs.c: Likewise.
68895         * lib/imaxdiv.c: Likewise.
68896         * lib/javacomp.c: Likewise.
68897         * lib/javaexec.c: Likewise.
68898         * lib/javaversion.c: Likewise.
68899         * lib/linebreak.c: Likewise.
68900         * lib/localcharset.c: Likewise.
68901         * lib/lock.c: Likewise.
68902         * lib/mbchar.c: Likewise.
68903         * lib/mbswidth.c: Likewise.
68904         * lib/mkdtemp.c: Likewise.
68905         * lib/pipe.c: Likewise.
68906         * lib/printf-args.c: Likewise.
68907         * lib/printf-parse.c: Likewise.
68908         * lib/progname.c: Likewise.
68909         * lib/progreloc.c: Likewise.
68910         * lib/readlink.c: Likewise.
68911         * lib/sh-quote.c: Likewise.
68912         * lib/stpcpy.c: Likewise.
68913         * lib/stpncpy.c: Likewise.
68914         * lib/strcasecmp.c: Likewise.
68915         * lib/strcasestr.c: Likewise.
68916         * lib/strcspn.c: Likewise.
68917         * lib/striconv.c: Likewise.
68918         * lib/strncasecmp.c: Likewise.
68919         * lib/strnlen1.c: Likewise.
68920         * lib/strstr.c: Likewise.
68921         * lib/strtok_r.c: Likewise.
68922         * lib/tls.c: Likewise.
68923         * lib/tmpdir.c: Likewise.
68924         * lib/unicodeio.c: Likewise.
68925         * lib/unsetenv.c: Likewise.
68926         * lib/vasnprintf.c: Likewise.
68927         * lib/vasprintf.c: Likewise.
68928         * lib/wait-process.c: Likewise.
68929         * lib/xallocsa.c: Likewise.
68930         * lib/xsetenv.c: Likewise.
68931         * lib/xstriconv.c: Likewise.
68932
68933 2006-09-13  Simon Josefsson  <jas@extundo.com>
68934
68935         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
68936         that internally, suggested by Ralf Wildenhues
68937         <Ralf.Wildenhues@gmx.de>.
68938
68939 2006-09-13  Simon Josefsson  <jas@extundo.com>
68940
68941         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
68942         @LIBOBJS@.
68943         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68944
68945 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
68946
68947         * lib/_fpending.c: Include <config.h> unconditionally, since we no
68948         longer worry about uses that don't define HAVE_CONFIG_H.
68949         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
68950         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
68951         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
68952         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
68953         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
68954         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
68955         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
68956         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
68957         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
68958         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
68959         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
68960         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
68961         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
68962         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
68963         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
68964         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
68965         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
68966         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
68967         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
68968         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
68969         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
68970         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
68971         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
68972         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
68973         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
68974         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
68975         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
68976         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
68977         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
68978         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
68979         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
68980         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
68981         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
68982         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
68983         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
68984         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
68985         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
68986         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
68987         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
68988         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
68989         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
68990         Likewise.
68991
68992 2006-09-13  Eric Blake  <ebb9@byu.net>
68993
68994         * lib/getopt.c: Fix typo in last commit.
68995
68996 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
68997
68998         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
68999         dgettext.
69000
69001 2006-09-12  Jim Meyering  <jim@meyering.net>
69002
69003         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
69004         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
69005         Reported by Nelson H. F. Beebe.
69006
69007 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69008
69009         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
69010         program_invocation_name and program_invocation_short_name are
69011         initialized.
69012         * lib/argp-namefrob.h: Move declarations of program_invocation_name
69013         and program_invocation_short_name to argp.h, so they are visible
69014         to user programs.
69015         * lib/argp.h: Likewise
69016
69017 2006-09-10  Bruno Haible  <bruno@clisp.org>
69018
69019         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
69020         m4/inttypes_h.m4, m4/uintmax_t.m4.
69021
69022 2006-09-10  Bruno Haible  <bruno@clisp.org>
69023
69024         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
69025         gl_AC_TYPE_UINTMAX_T.
69026
69027 2006-09-10  Bruno Haible  <bruno@clisp.org>
69028
69029         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
69030
69031 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69032
69033         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
69034         convention.  Text proposed by Bruno Haible.
69035         (struct argp_option): Document the use of N_() wrappers.
69036
69037         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
69038         '\v', and translate the two parts separately, instead of feeding
69039         the whole string to gettext.  This allows to exclude
69040         '\v' from the strings visible to the translator by writing doc
69041         strings as N_("..") "\v" N_("..").
69042
69043 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
69044
69045         * config/srclist.txt: Undo latest change; the bug was fixed.
69046
69047 2006-09-09  Bruno Haible  <bruno@clisp.org>
69048
69049         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
69050         assignments if building a library without libtool.
69051         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
69052         in func_emit_lib_Makefile_am.
69053         (func_import): When building a static library libfoo.a, arrange to
69054         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
69055         (func_create_testdir): Likewise.
69056         * modules/gc (configure.ac, Makefile.am): If building statically,
69057         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
69058         * modules/iconvme (configure.ac, Makefile.am): Likewise.
69059         * modules/striconv (configure.ac, Makefile.am): Likewise.
69060         Based on a suggestion by Ralf Wildenhues.
69061
69062 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69063
69064         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
69065         Check for unistd.h too, since Autoconf doesn't assume POSIX.
69066         Also:
69067
69068         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69069         Add year_2050_test to catch glibc bug 2821
69070         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
69071
69072         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69073         Prefer #ifdef to #if.
69074
69075         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
69076         Return from 'main' instead of calling 'exit'.
69077
69078 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69079
69080         * lib/mktime.c (guess_time_tm): Fix bug where mktime
69081         returned the maximum time_t value rather than (time_t) -1.
69082         Problem originally reported by William Bardwell
69083         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
69084
69085         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
69086         Moved to here ...
69087         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
69088         ... from here.
69089
69090 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69091
69092         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
69093         2821 is fixed.
69094
69095 2006-09-08  Jim Meyering  <jim@meyering.net>
69096
69097         Don't make generated files read-only.  That would bother too many
69098         people.  However, do retain the ability to work when targets are
69099         read-only: remove the destination and temporary files before writing
69100         them (when generated via sed or echo), or by using the -f option for
69101         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
69102         * modules/alloca-opt, modules/argz, modules/arpa_inet:
69103         * modules/byteswap, modules/configmake, modules/fcntl:
69104         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
69105         * modules/localcharset, modules/netinet_in, modules/poll:
69106         * modules/stdbool, modules/stdint, modules/sys_select:
69107         * modules/sys_socket, modules/sys_stat, modules/sysexits:
69108
69109 2006-09-08  Jim Meyering  <jim@meyering.net>
69110
69111         Avoid new build failure on FreeBSD 6.0.
69112         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
69113         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
69114         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
69115
69116 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69117
69118         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
69119
69120 2006-09-07  Jim Meyering  <jim@meyering.net>
69121
69122         Fix global typo in last change: use chmod u-w, not chmod u-x.
69123         Spotted by Paul Eggert and Bruce Korb.
69124         * modules/alloca-opt, modules/argz, modules/arpa_inet:
69125         * modules/byteswap, modules/configmake, modules/fcntl:
69126         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
69127         * modules/localcharset, modules/netinet_in, modules/poll:
69128         * modules/stdbool, modules/stdint, modules/sys_select:
69129         * modules/sys_socket, modules/sys_stat, modules/sysexits:
69130
69131 2006-09-06  Jim Meyering  <jim@meyering.net>
69132
69133         Make generated files be read-only.
69134         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
69135         Ensure that each generated file is now read-only.
69136         * modules/argz: Likewise.
69137         * modules/arpa_inet: Likewise.
69138         * modules/byteswap: Likewise.
69139         * modules/configmake: Likewise.
69140         * modules/fcntl: Likewise.
69141         * modules/fnmatch: Likewise.
69142         * modules/getopt: Likewise.
69143         * modules/glob: Likewise.
69144         * modules/inttypes: Likewise.
69145         * modules/netinet_in: Likewise.
69146         * modules/poll: Likewise.
69147         * modules/stdbool: Likewise.
69148         * modules/stdint: Likewise.
69149         * modules/sys_select: Likewise.
69150         * modules/sys_socket: Likewise.
69151         * modules/sys_stat: Likewise.
69152         * modules/sysexits: Likewise.
69153         * modules/localcharset: Same as above, but continue using temporary
69154         file named "t-$@" (why different?) rather than the "$@-t" used
69155         everywhere else.
69156
69157         * modules/sysexits (Makefile.am): Replace literal occurrences
69158         of "sysexit.h" more readable, and more consistent, "$@".
69159
69160 2006-09-06  Bruno Haible  <bruno@clisp.org>
69161
69162         * modules/striconv: New file.
69163         * modules/xstriconv: New file.
69164         * MODULES.html.sh (Internationalization functions): Add striconv,
69165         xstriconv.
69166
69167 2006-09-06  Bruno Haible  <bruno@clisp.org>
69168
69169         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
69170         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
69171         not using libtool correctly.
69172
69173 2006-09-06  Bruno Haible  <bruno@clisp.org>
69174
69175         * lib/striconv.h: New file.
69176         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
69177         iconvstring.c.
69178         * lib/xstriconv.h: New file.
69179         * lib/xstriconv.c: New file.
69180
69181 2006-09-06  Bruno Haible  <bruno@clisp.org>
69182
69183         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
69184         lib_..._LDFLAGS.
69185
69186 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69187
69188         * lib/argz_.h: Sync from Libtool.
69189
69190         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
69191                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
69192
69193         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
69194
69195 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
69196
69197         * modules/trim: New file.
69198
69199 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
69200
69201         * lib/trim.h: New file.
69202         * lib/trim.c: New file.
69203
69204 2006-09-05  Bruno Haible  <bruno@clisp.org>
69205
69206         * MODULES.html.sh (String handling): Add trim.
69207
69208 2006-09-04  Karl Berry  <karl@gnu.org>
69209
69210         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
69211         until next release.
69212
69213 2006-09-03  Bruno Haible  <bruno@clisp.org>
69214
69215         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
69216         correctly.
69217
69218 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69219
69220         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
69221         not gl_GETLOADAVG.  Omit unneeded semicolons.
69222         Problems reported by Ralf Wildenhues in
69223         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
69224         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
69225         at the end, which is the usual gnulib style.
69226
69227         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
69228         of doing all the work ourselves.
69229         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
69230         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
69231
69232 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69233
69234         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
69235         Problem reported by Ralf Wildenhues in
69236         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
69237
69238         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
69239         HAVE_STRUCT_STATFS_F_FSTYPENAME.
69240
69241 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69242
69243         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
69244         yesterday's patch by changing test -n to test -z.
69245
69246 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69247
69248         * modules/getloadavg (Files): Add m4/getloadavg.m4.
69249         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
69250         the former is now obsolescent.
69251
69252         * modules/chdir-long (Depends-on): Add fcntl.
69253
69254 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69255
69256         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
69257         obsolescent, and programs should use gnulib instead.
69258         * m4/getloadavg.m4: New file, with contents taken from Autoconf
69259         but with prefixes changed.
69260
69261 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69262
69263         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
69264         or stdbool.h, because they might not exist while configuring.
69265
69266         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
69267         Don't include unistd.h or limits.h; not needed, since chdir-long.h
69268         does that for us.
69269         (O_DIRECTORY): Remove.
69270
69271 2006-08-31  Eric Blake  <ebb9@byu.net>
69272
69273         * gnulib-tool: Don't let emacs change spaces to TAB.
69274
69275 2006-08-31  Bruno Haible  <bruno@clisp.org>
69276
69277         * gnulib-tool: When calling func_import more than once, do it in a
69278         subshell.
69279         Reported by Eric Blake <ebb9@byu.net>.
69280
69281 2006-08-31  Bruno Haible  <bruno@clisp.org>
69282
69283         * gnulib-tool (nl): Remove variable.
69284         (sed_transform_lib_file): Use more robust test for config-h module.
69285         (func_import): Fix typo in 2006-08-25 patch.
69286
69287 2006-08-31  Bruno Haible  <bruno@clisp.org>
69288
69289         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
69290         specified, augment Makefile.am variables instead of assigning them.
69291
69292 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69293
69294         Work around a bug in both the Linux and SunOS 64-bit kernels:
69295         nanosleep mishandles sleeps for longer than 2**31 seconds.
69296         Problem reported by Frank v Waveren in
69297         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
69298         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
69299         Check for nanosleep bug.
69300         (LIB_NANOSLEEP): Append clock_gettime library if needed.
69301
69302 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69303
69304         Work around a bug in both the Linux and SunOS 64-bit kernels:
69305         nanosleep mishandles sleeps for longer than 2**31 seconds.
69306         Problem reported by Frank v Waveren in
69307         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
69308         * lib/nanosleep.c (BILLION): New constant.
69309         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
69310         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
69311         implementation.
69312
69313 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69314
69315         * modules/nanosleep (Depends-on): Add gettime.
69316
69317 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69318         and Simon Josefsson  <jas@extundo.com>
69319         and Oskar Liljeblad  <oskar@osk.mine.nu>
69320
69321         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
69322         * gnulib-tool (func_import): New license type 'unmodifiable license
69323         text'.
69324         * modules/fdl: Use it.  Longer description.
69325         * module/gpl, module/lgpl: New files.
69326
69327 2006-08-30  Jim Meyering  <jim@meyering.net>
69328
69329         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
69330         shadowing the parameter.
69331
69332 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69333
69334         Sync from Libtool:
69335
69336         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69337
69338         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
69339         sharing with gnulib.  Report by Eric Blake.
69340
69341 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69342
69343         * modules/isapipe: New file.
69344         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
69345
69346 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69347
69348         * modules/configmake (Makefile.am): Add a comment, and omit
69349         the CONFIGMAKE_ prefix from generated macro names.  Suggested
69350         by Bruno Haible.
69351
69352 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69353
69354         * m4/isapipe.m4: New file.
69355
69356 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69357
69358         * lib/isapipe.c, lib/isapipe.h: New files.
69359
69360 2006-08-29  Jim Meyering  <jim@meyering.net>
69361
69362         * modules/configmake (Makefile.am): Make configmake.h depend on
69363         Makefile.  Otherwise, a stale configmake.h could hang around.
69364
69365 2006-08-29  Eric Blake  <ebb9@byu.net>
69366
69367         * lib/error.c (error_at_line, print_errno_message): Match libc, after
69368         resolution of upstream bug 3044.
69369
69370 2006-08-29  Bruno Haible  <bruno@clisp.org>
69371
69372         * modules/localcharset (Depends-on): Add configmake.
69373         (Makefile.am): Remove setting of LIBDIR through DEFS.
69374
69375 2006-08-29  Bruno Haible  <bruno@clisp.org>
69376
69377         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
69378         defined.
69379
69380 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69381
69382         * modules/fcntl: New file.
69383         * modules/chdir-safer (Depends-on): Add fcntl.
69384         * modules/fts: Likewise.
69385         * modules/mkdir-p: Likewise.
69386
69387         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
69388         This undoes the most recent change, since we're now addressing the
69389         problem in a different way.
69390
69391         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
69392         into output, since the output might be called Makefile.am even
69393         if $makefile_name is something different.
69394         (func_import): Use $makefile_am rather than
69395         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
69396         empty.
69397
69398         * modules/inttypes (Files): Add m4/inttypes-h.m4.
69399
69400 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69401
69402         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
69403         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
69404         recent change to stdint.m4, since we're now addressing the problem in a
69405         different way.
69406
69407 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69408
69409         * m4/fcntl_h.m4: New file.
69410
69411 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69412
69413         * lib/fcntl_.h: New file.
69414         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
69415         the fcntl module.
69416         * lib/dirchownmod.c: Likewise.
69417         * lib/fts.c: Likewise.
69418
69419         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
69420         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
69421         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
69422         just before including <inttypes.h>, to avoid circular inclusion.
69423
69424 2006-08-28  Jim Meyering  <jim@meyering.net>
69425
69426         * doc/visibility.texi: Actually read and correct the grammar of the
69427         sentence affected by yesterday's change.
69428
69429 2006-08-28  Eric Blake  <ebb9@byu.net>
69430
69431         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
69432         needs wrapper.
69433
69434 2006-08-28  Eric Blake  <ebb9@byu.net>
69435
69436         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
69437
69438 2006-08-28  Eric Blake  <ebb9@byu.net>
69439
69440         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
69441
69442 2006-08-28  Bruno Haible  <bruno@clisp.org>
69443
69444         * modules/c-strstr: New file, from GNU gettext.
69445         * MODULES.html.sh (String handling): Add c-strstr.
69446
69447 2006-08-28  Bruno Haible  <bruno@clisp.org>
69448
69449         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
69450         macros.
69451         Reported by Eric Blake.
69452
69453 2006-08-28  Bruno Haible  <bruno@clisp.org>
69454
69455         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
69456         (VASNPRINTF): Return a string of length > INT_MAX without failing.
69457         * lib/vasprintf.c: Include errno.h, limits.h.
69458         (EOVERFLOW): New fallback definition.
69459         (vasprintf): Test here whether the string length is > INT_MAX.
69460         * lib/vsnprintf.c: Include errno.h, limits.h.
69461         (EOVERFLOW): New fallback definition.
69462         (vsnprintf): Fix bug when generated string was too long for the buffer.
69463         Test here whether the string length is > INT_MAX.
69464
69465 2006-08-28  Bruno Haible  <bruno@clisp.org>
69466
69467         * lib/inttypes_.h (SCNX*): Remove definitions.
69468         Reported by Eric Blake.
69469
69470 2006-08-28  Bruno Haible  <bruno@clisp.org>
69471
69472         * lib/c-strstr.h: New file, from GNU gettext.
69473         * lib/c-strstr.c: New file, from GNU gettext.
69474
69475 2006-08-28  Bruno Haible  <bruno@clisp.org>
69476
69477         * gnulib-tool: Reorder some statements.
69478
69479 2006-08-28  Bruno Haible  <bruno@clisp.org>
69480
69481         * gnulib-tool: New option --makefile-name.
69482         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
69483         $makefile_name.
69484         (func_import): Write $makefile_name to the cache file, and read it from
69485         there unless explicitly specified. Use $makefile_name as file name
69486         instead of Makefile.am. Adjust the recommendations accordingly.
69487
69488 2006-08-28  Bruno Haible  <bruno@clisp.org>
69489
69490         * gnulib-tool (func_verify_module): Check against misapplying patch.
69491
69492 2006-08-28  Bruno Haible  <bruno@clisp.org>
69493
69494         * gnulib-tool (func_relativize, func_relconcat): New functions.
69495         Give an error if --local-dir is given with --update.
69496         Remove trailing slashes from $local_gnulib_dir.
69497         (func_import): Store the relativized $local_gnulib_dir in
69498         gnulib-cache.m4, and read it from there if not specified explicitly.
69499
69500 2006-08-28  Bruno Haible  <bruno@clisp.org>
69501
69502         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
69503         is the current directory. Respect also $local_gnulib_dir.
69504
69505 2006-08-28  Bruno Haible  <bruno@clisp.org>
69506             Simon Josefsson  <jas@extundo.com>
69507
69508         BeOS portability.
69509         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
69510
69511 2006-08-27  Jim Meyering  <jim@meyering.net>
69512
69513         * doc/visibility.texi: Remove duplicate word: "pointer".
69514
69515 2006-08-26  Bruno Haible  <bruno@clisp.org>
69516
69517         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
69518         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
69519         (Makefile.am): Create inttypes.h from inttypes_.h.
69520         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
69521
69522         * modules/imaxabs: New file.
69523
69524         * modules/imaxdiv: New file.
69525
69526 2006-08-26  Bruno Haible  <bruno@clisp.org>
69527
69528         * m4/inttypes.m4: New file.
69529         * m4/_inttypes_h.m4: Remove file.
69530         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
69531         PRI_MACROS_BROKEN.
69532         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
69533
69534         * m4/imaxabs.m4: New file.
69535
69536         * m4/imaxdiv.m4: New file.
69537
69538 2006-08-26  Bruno Haible  <bruno@clisp.org>
69539
69540         * lib/inttypes_.h: New file.
69541         * lib/inttypes.h: Remove file.
69542         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
69543
69544         * lib/imaxabs.c: New file.
69545
69546         * lib/imaxdiv.c: New file.
69547
69548 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69549
69550         New config-h module, so that "make" output needn't be cluttered
69551         by -DHAVE_CONFIG_H.
69552         * MODULES.html.sh (Support for building libraries and executables):
69553         Add config-h.
69554         * modules/config-h: New file.
69555         * gnulib-tool (nl, sed_transform_lib_file): New vars.
69556         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
69557         the config-h module is used.
69558
69559         New configmake module, so that "make" output needn't be cluttered
69560         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
69561         * MODULES.html.sh (Support for building libraries and executables):
69562         Add configmake.
69563         * modules/configmake: New file.
69564
69565 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69566
69567         * m4/config-h.m4: New file.
69568
69569 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69570
69571         * config/srclist.txt: Add elisp-comp.
69572
69573 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69574
69575         * MODULES.html.sh (Support for building libraries and executables):
69576         Add elisp-comp.
69577         * build-aux/elisp-comp: New file.
69578         * modules/elisp-comp: New file.
69579
69580 2006-08-24  Bruno Haible  <bruno@clisp.org>
69581
69582         * gnulib-tool (func_create_testdir): Use non-default values of
69583         sourcebase and m4base.
69584
69585 2006-08-24  Bruno Haible  <bruno@clisp.org>
69586
69587         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
69588         HTML structure.
69589
69590 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
69591
69592         * modules/openat (Depends-on): Add lchown.
69593
69594 2006-08-23  Bruno Haible  <bruno@clisp.org>
69595
69596         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
69597         of gl_LOCK_EARLY instead of gl_LOCK.
69598
69599 2006-08-23  Bruno Haible  <bruno@clisp.org>
69600
69601         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
69602         on OSF/1 to no.
69603         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
69604
69605 2006-08-23  Bruno Haible  <bruno@clisp.org>
69606
69607         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
69608         as unusable.
69609
69610         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
69611         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
69612         (gl_LOCK): New macro.
69613
69614 2006-08-22  Simon Josefsson  <jas@extundo.com>
69615
69616         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
69617         to md5 module.
69618
69619 2006-08-22  Simon Josefsson  <jas@extundo.com>
69620
69621         * MODULES.html.sh: Add "Support for maintaining and release
69622         projects".
69623
69624         * build-aux/gnupload: New file, from coreutils.
69625
69626 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69627
69628         Avoid the need for AC_LIBSOURCES in m4 macros.
69629         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
69630         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
69631         * modules/check-version (EXTRA_DIST): Add check-version.h.
69632         * modules/crc (EXTRA_DIST): Add crc.h.
69633         * modules/des (EXTRA_DIST): Add des.h.
69634         * modules/gc (EXTRA_DIST): Add gc.h.
69635         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
69636         * modules/getline (EXTRA_DIST): Add getline.h.
69637         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
69638         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
69639         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
69640         * modules/md2 (EXTRA_DIST): Add md2.h.
69641         * modules/md4 (EXTRA_DIST): Add md4.h.
69642         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
69643         * modules/read-file (EXTRA_DIST): Add read-file.h.
69644         * modules/readline (EXTRA_DIST): Add readline.h.
69645         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
69646         rijndael-api-fst.h.
69647
69648 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69649
69650         * m4/rijndael.m4 (gl_ARCFOUR):
69651         * m4/arctwo.m4 (gl_ARCTWO):
69652         * m4/check-version.m4 (gl_CHECK_VERSION):
69653         * m4/crc.m4 (gl_CRC):
69654         * m4/des.m4 (gl_DES):
69655         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
69656         * m4/gc.m4 (gl_GC):
69657         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
69658         * m4/getline.m4 (gl_FUNC_GETLINE):
69659         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
69660         * m4/hmac-md5.m4 (gl_HMAC_MD5):
69661         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
69662         * m4/md2.m4 (gl_MD2):
69663         * m4/md4.m4 (gl_MD4):
69664         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
69665         * m4/read-file.m4 (gl_FUNC_READ_FILE):
69666         * m4/readline.m4 (gl_FUNC_READLINE):
69667         * m4/rijndael.m4 (gl_RIJNDAEL):
69668         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69669         to get the necessary .h files and whatnot.
69670
69671 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69672
69673         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
69674         gnulib rather than the other way around.
69675         * config/srclistvars.sh (COREUTILS): Remove.
69676
69677 2006-08-22  Jim Meyering  <jim@meyering.net>
69678
69679         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
69680
69681         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
69682
69683 2006-08-22  Eric Blake  <ebb9@byu.net>
69684
69685         * modules/regexprops-generic: New file.
69686         * MODULES.html.sh (Support for building documentation): List it.
69687
69688 2006-08-22  Eric Blake  <ebb9@byu.net>
69689
69690         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
69691         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
69692         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
69693         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
69694
69695 2006-08-22  Bruno Haible  <bruno@clisp.org>
69696
69697         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
69698         and lib_LTLIBRARIES like the other lib_* variables.
69699
69700 2006-08-22  Bruno Haible  <bruno@clisp.org>
69701
69702         * build-aux/x-to-1.in: New file, from GNU gettext.
69703
69704 2006-08-22  Bruno Haible  <bruno@clisp.org>
69705
69706         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
69707         <utmpx.h> exists.
69708
69709 2006-08-22  Bruno Haible  <bruno@clisp.org>
69710
69711         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
69712         <utmpx.h> exists.
69713
69714 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69715
69716         BeOS portability.
69717         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
69718         exist.
69719         Problem reported by Bruno Haible.
69720
69721 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69722
69723         Avoid the need for AC_LIBSOURCES in m4 macros.
69724         * modules/acl (EXTRA_DIST): Add acl.h.
69725         * modules/argmatch (Files): Add m4/argmatch.m4.
69726         (configure.ac): Add gl_ARGMATCH.
69727         (EXTRA_DIST): Renamed from lib_SOURCES, for
69728         consistency with the other modules.  Remove argmatch.c.
69729         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
69730         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
69731         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
69732         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
69733         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
69734         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
69735         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
69736         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
69737         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
69738         * modules/closeout (EXTRA_DIST): Add closeout.h.
69739         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
69740         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
69741         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
69742         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
69743         dirname.h; remove basename.c and stripslash.c.
69744         * modules/exclude (EXTRA_DIST): Add exclude.h.
69745         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
69746         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
69747         * modules/file-type (EXTRA_DIST): Add file-type.h.
69748         * modules/filemode (EXTRA_DIST): Add filemode.h.
69749         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
69750         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69751         * modules/fpending (EXTRA_DIST): Add __fpending.h.
69752         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
69753         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
69754         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
69755         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
69756         * modules/getdate (EXTRA_DIST): Add getdate.c.
69757         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
69758         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
69759         * modules/getpass (EXTRA_DIST): Add getpass.h.
69760         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
69761         * modules/group-member (EXTRA_DIST): Add group-member.h.
69762         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
69763         * modules/hash (EXTRA_DIST): Add hash.h.
69764         * modules/human (EXTRA_DIST): Add human.h.
69765         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
69766         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
69767         * modules/lchown (EXTRA_DIST): Add lchown.h.
69768         * modules/long-options (EXTRA_DIST): Add long-options.h.
69769         * modules/lstat (EXTRA_DIST): Add lstat.h.
69770         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
69771         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
69772         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
69773         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
69774         * modules/memxor (EXTRA_DIST): Add memxor.h.
69775         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
69776         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
69777         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
69778         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
69779         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
69780         * modules/physmem (EXTRA_DIST): Add physmem.h.
69781         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
69782         * modules/posixver (EXTRA_DIST): Add posixver.h.
69783         * modules/quote (EXTRA_DIST): Add quote.h.
69784         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
69785         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
69786         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
69787         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
69788         regex_internal.h regexec.c.
69789         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
69790         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
69791         * modules/same (EXTRA_DIST): Add same.h.
69792         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
69793         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
69794         * modules/savedir (EXTRA_DIST): Add savedir.h.
69795         * modules/sha1 (EXTRA_DIST): Add sha1.h.
69796         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
69797         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
69798         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
69799         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
69800         * modules/strdup (EXTRA_DIST): Add strdup.h.
69801         * modules/strftime (EXTRA_DIST): Add strftime.h.
69802         * modules/strndup (EXTRA_DIST): Add strndup.h.
69803         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
69804         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
69805         * modules/time_r (EXTRA_DIST): Add time_r.h.
69806         * modules/timespec (EXTRA_DIST): Add timespec.h.
69807         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69808         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
69809         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
69810         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
69811         * modules/userspec (EXTRA_DIST): Add userspec.h.
69812         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
69813         * modules/utimens (EXTRA_DIST): Add utimens.h.
69814         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
69815         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
69816         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
69817         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
69818         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
69819         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
69820         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
69821         * modules/yesno (EXTRA_DIST): Add yesno.h.
69822
69823 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69824
69825         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
69826
69827         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
69828         * m4/dev-ino.m4, same-inode.m4: Remove.
69829
69830         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
69831         * m4/acl.m4 (AC_FUNC_ACL):
69832         * m4/backupfile.m4 (gl_BACKUPFILE):
69833         * m4/c-strtod.m4 (gl_C99_STRTOLD):
69834         * m4/canon-host.m4 (gl_CANON_HOST):
69835         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
69836         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
69837         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
69838         * m4/cloexec.m4 (gl_CLOEXEC):
69839         * m4/close-stream.m4 (gl_CLOSE_STREAM):
69840         * m4/closeout.m4 (gl_CLOSEOUT):
69841         * m4/dirfd.m4 (gl_FUNC_DIRFD):
69842         * m4/dirname.m4 (gl_DIRNAME):
69843         * m4/exclude.m4 (gl_EXCLUDE):
69844         * m4/exitfail.m4 (gl_EXITFAIL):
69845         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
69846         * m4/file-type.m4 (gl_FILE_TYPE):
69847         * m4/filemode.m4 (gl_FILEMODE):
69848         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
69849         * m4/fpending.m4 (gl_FUNC_FPENDING):
69850         * m4/fprintftime.m4 (gl_FPRINTFTIME):
69851         * m4/fts.m4 (gl_FUNC_FTS):
69852         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
69853         * m4/getdate.m4 (gl_GETDATE):
69854         * m4/gethrxtime.m4 (gl_GETHRXTIME):
69855         * m4/getpagesize.m4 (gl_GETPAGESIZE):
69856         * m4/getpass.m4 (gl_FUNC_GETPASS):
69857         * m4/gettime.m4 (gl_GETTIME):
69858         * m4/getugroups.m4 (gl_GETUGROUPS):
69859         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
69860         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
69861         * m4/hard-locale.m4 (gl_HARD_LOCALE):
69862         * m4/hash.m4 (gl_HASH):
69863         * m4/idcache.m4 (gl_IDCACHE):
69864         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
69865         * m4/lchown.m4 (gl_FUNC_LCHOWN):
69866         * m4/long-options.m4 (gl_LONG_OPTIONS):
69867         * m4/lstat.m4 (gl_FUNC_LSTAT):
69868         * m4/md5.m4 (gl_MD5):
69869         * m4/memcasecmp.m4 (gl_MEMCASECMP):
69870         * m4/memcoll.m4 (gl_MEMCOLL):
69871         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
69872         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
69873         * m4/memxor.m4 (gl_MEMXOR):
69874         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
69875         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
69876         * m4/modechange.m4 (gl_MODECHANGE):
69877         * m4/mountlist.m4 (gl_MOUNTLIST):
69878         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69879         * m4/openat.m4 (gl_FUNC_OPENAT):
69880         * m4/pathmax.m4 (gl_PATHMAX):
69881         * m4/physmem.m4 (gl_PHYSMEM):
69882         * m4/posixtm.m4 (gl_POSIXTM):
69883         * m4/posixver.m4 (gl_POSIXVER):
69884         * m4/quote.m4 (gl_QUOTE):
69885         * m4/quotearg.m4 (gl_QUOTEARG):
69886         * m4/readtokens.m4 (gl_READTOKENS):
69887         * m4/readutmp.m4 (gl_READUTMP):
69888         * m4/regex.m4 (gl_REGEX):
69889         * m4/safe-read.m4 (gl_SAFE_READ):
69890         * m4/safe-write.m4 (gl_SAFE_WRITE):
69891         * m4/same.m4 (gl_SAME):
69892         * m4/save-cwd.m4 (gl_SAVE_CWD):
69893         * m4/savedir.m4 (gl_SAVEDIR):
69894         * m4/settime.m4 (gl_SETTIME):
69895         * m4/sha1.m4 (gl_SHA1):
69896         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
69897         * m4/stat-macros.m4 (gl_STAT_MACROS):
69898         * m4/stat-time.m4 (gl_STAT_TIME):
69899         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
69900         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
69901         * m4/strdup.m4 (gl_FUNC_STRDUP):
69902         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
69903         * m4/strndup.m4 (gl_FUNC_STRNDUP):
69904         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
69905         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
69906         * m4/time_r.m4 (gl_TIME_R):
69907         * m4/timespec.m4 (gl_TIMESPEC):
69908         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
69909         * m4/unlinkdir.m4 (gl_UNLINKDIR):
69910         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
69911         * m4/userspec.m4 (gl_USERSPEC):
69912         * m4/utimecmp.m4 (gl_UTIMECMP):
69913         * m4/utimens.m4 (gl_UTIMENS):
69914         * m4/xalloc.m4 (gl_XALLOC):
69915         * m4/xgetcwd.m4 (gl_XGETCWD):
69916         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
69917         * m4/xreadlink.m4 (gl_XREADLINK):
69918         * m4/xstrtod.m4 (gl_XSTRTOD):
69919         * m4/yesno.m4 (gl_YESNO):
69920         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69921         to get the necessary .h files and whatnot.
69922
69923 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
69924             Bruno Haible  <bruno@clisp.org>
69925
69926         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
69927         /bin/sh understanding of '!' conditional negation.
69928
69929 2006-08-21  Jim Meyering  <jim@meyering.net>
69930
69931         * modules/openat (Depends-on): Really alphabetize.
69932
69933         * modules/acl (Depends-on): Add error and quote.
69934
69935         * check-module (find_included_lib_files): Add at-func.c to the
69936         ok-to-include-more-than-once white list.
69937
69938         * modules/openat (Depends-on): Add lstat.  Alphabetize.
69939
69940 2006-08-21  Bruno Haible  <bruno@clisp.org>
69941
69942         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69943         Emit a pkgdata_DATA variable only if some snippets add contents to it.
69944         Reported by Martin Lambers <marlam@marlam.de>.
69945
69946 2006-08-21  Bruno Haible  <bruno@clisp.org>
69947
69948         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
69949         specify an installation location, don't emit a noinst_LIBRARIES or
69950         noinst_LTLIBRARIES assignment.
69951
69952 2006-08-21  Bruno Haible  <bruno@clisp.org>
69953
69954         BeOS portability.
69955         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
69956         BeOS has mbrtowc() but no <wctype.h>.
69957
69958 2006-08-21  Bruno Haible  <bruno@clisp.org>
69959
69960         BeOS portability.
69961         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
69962         exist.
69963
69964 2006-08-21  Bruno Haible  <bruno@clisp.org>
69965
69966         BeOS portability.
69967         * lib/mbchar.h: Include <wctype.h> only if it exists.
69968
69969 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69970
69971         Remove files that are no longer needed by their respective modules.
69972         * m4/obstack.m4: Remove.
69973         * m4/strerror_r.m4: Remove.
69974         * m4/uint32_t.m4: Remove.
69975         * m4/uintptr_t.m4: Remove.
69976         * m4/ullong_max.m4: Remove.
69977         * m4/xstrtoimax.m4: Remove.
69978         * m4/xstrtoumax.m4: Remove.
69979
69980         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
69981         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
69982         dependencies now capture this.
69983
69984         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
69985         Do not use AC_LIBSOURCES, since gnulib modules now do this.
69986         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
69987         * m4/human.m4 (gl_HUMAN): Likewise.
69988         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
69989         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
69990
69991         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
69992
69993         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
69994         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
69995         stdint.
69996         * m4/human.m4 (gl_HUMAN): Likewise.
69997         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
69998         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
69999         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
70000         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
70001         * m4/xstrtol (gl_XSTRTOL): Likewise.
70002
70003         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
70004         AC_TYPE_LONG_LONG_INT.
70005         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
70006         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
70007         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
70008         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
70009
70010         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
70011         on stdbool.
70012
70013         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
70014         (gl_PREREQ_XSTRTOUL): Remove.
70015
70016         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
70017
70018         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
70019         mode.
70020
70021 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70022
70023         Add and change modules to make it easier for coreutils to use
70024         gnulib-tool.
70025         * modules/backupfile (Files): Remove m4/d-ino.m4.
70026         (Depends-on): Add d-ino.
70027         * modules/cycle-check (Depends-on): Add stdint.
70028         (lib_SOURCES): Add cycle-check.h.
70029         * modules/d-ino: New module.
70030         * modules/d-type: New module.
70031         * modules/error (Files): Remove m4/strerror_r.m4.
70032         * modules/filemode (Files): Add m4/st_dm_mode.m4.
70033         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
70034         m4/inttypes_h.m4, m4/uintmax_t.m4.
70035         (Depends-on): Add stdint.
70036         (lib_SOURCES): Add fsusage.h.
70037         * modules/getcwd (Files): Remove d-ino.m4.
70038         (Depends-on): Add d-ino.
70039         * modules/getndelim2 (Depends-on): Add stdint.
70040         * modules/glob (Files): Remove m4/d-type.m4.
70041         (Depends-on): Add d-type.
70042         * modules/host-os: New module.
70043         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
70044         m4/inttypes_h.m4, m4/uintmax_t.m4.
70045         * Depends-on: Add stdint.
70046         (lib_SOURCES): Add human.h.
70047         * modules/inttostr (Files): Remove m4/intmax_t.m4,
70048         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
70049         m4/uintmax_t.m4, m4/ulonglong.m4.
70050         (Depends-on): Add stdint.
70051         (EXTRA_DIST): Add inttostr.h.
70052         * modules/lchmod: New module.
70053         * modules/link-follow: New module.
70054         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
70055         (Depends-on): Add lchmod.
70056         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
70057         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
70058         (Depends-on): Add stdint.
70059         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
70060         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
70061         (Depends-on): Add stdint.
70062         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
70063         * modules/perl: New module.
70064         * modules/regex (Depends-on): Add stdint.
70065         * modules/rmdir-errno: New module.
70066         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
70067         m4/intmax_t.m4.
70068         (Depends-on): Add stdint.
70069         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
70070         m4/uintmax_t.m4.
70071         (Depends-on): Add stdint.
70072         * modules/unlink-busy: New module.
70073         * modules/utimecmp (Depends-on): Add stdint.
70074         * modules/uptime: New module.
70075         * modules/winsz-ioctl: New module.
70076         * modules/winsz-termios: New module.
70077         * modules/xnanosleep (Depends-on): Add nanosleep.
70078         * modules/ullong_max: Remove.
70079         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
70080         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
70081         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
70082         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
70083         (Depends-on): Add inttypes.
70084         (lib_SOURCES): Add xstrtol.h.
70085         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
70086         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
70087         * MODULES.html.sh: Move 'assert' into the assert section.
70088         Move 'dummy' into the linking section.
70089         Remove ullong_max.
70090         Add section for compatibility checks for POSIX:2001 functions,
70091         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
70092         winsz-ioctl, and winsz-termios into it.
70093         Add lchmod.
70094         Add top-level Misc section and put host-os, perl, and uptime
70095         into it.
70096
70097 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70098
70099         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
70100         now assume the stdint module.  Do not include inttypes.h.
70101         * lib/fsusage.h: Likewise.
70102         * lib/getndelim2.c: Likewise.
70103         * lib/human.h: Likewise.
70104         * lib/inttostr.h: Likewise.
70105         * lib/obstack.c: Likewise.
70106         * lib/regex_internal.h: Likewise.
70107         * lib/tempname.c: Likewise.
70108         * lib/utimecmp.c: Likewise.
70109         * lib/xstrtol.h: Likewise.
70110
70111         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
70112
70113         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
70114         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
70115         * lib/xtime.h: Likewise.
70116
70117 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70118
70119         * modules/openat (Files): Add lib/fchmodat.c.
70120         Fixes problem reported by Jay Youngman.
70121
70122 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70123
70124         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
70125         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
70126
70127 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
70128             Bruno Haible  <bruno@clisp.org>
70129
70130         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
70131         and is a script that invokes bison. Tighten the code. Add comments.
70132
70133 2006-08-18  Jim Meyering  <jim@meyering.net>
70134
70135         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
70136         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
70137         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
70138         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
70139
70140 2006-08-18  Bruno Haible  <bruno@clisp.org>
70141
70142         * modules/bison-i18n: New file.
70143         * MODULES.html.sh (Internationalization functions): Add it.
70144
70145 2006-08-18  Bruno Haible  <bruno@clisp.org>
70146
70147         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
70148         sys/statvfs.h. When getmntinfo was found, check its declaration and
70149         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
70150
70151 2006-08-18  Bruno Haible  <bruno@clisp.org>
70152
70153         * m4/bison-i18n.m4: New file, from bison.
70154
70155 2006-08-18  Bruno Haible  <bruno@clisp.org>
70156
70157         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
70158         (ME_DUMMY): Treat "kernfs" as a dummy.
70159         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
70160
70161 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70162
70163         Update from coreutils.
70164
70165         2006-08-15  Jim Meyering  <jim@meyering.net>
70166
70167         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
70168
70169         2006-01-17  Jim Meyering  <jim@meyering.net>
70170
70171         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
70172
70173         2006-01-11  Jim Meyering  <jim@meyering.net>
70174
70175         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
70176         Check for the lchmod function.
70177
70178 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70179
70180         Update from coreutils.
70181
70182         * lib/__fpending.h: Add copyright notice.
70183         * lib/fprintftime.h: Likewise.
70184         * lib/savedir.c: Use (C) in copyright notice.
70185         * lib/savedir.h: Likewise.
70186
70187         2006-08-15  Jim Meyering  <jim@meyering.net>
70188
70189         * lib/at-func.c: New file, with the logic of all emulated at-functions.
70190         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
70191         in support of the EXPECTED_ERRNO macro.
70192         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
70193         definitions.  Instead, define the appropriate symbols and include
70194         "at-func.c".
70195         * lib/mkdirat.c (mkdirat): Likewise.
70196         * lib/fchmodat.c (fchmodat): Likewise.
70197         (ENOSYS): Remove definition.
70198         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
70199         it.  Don't include "unistd--.h" -- it wasn't ever used.
70200
70201         2006-01-17  Jim Meyering  <jim@meyering.net>
70202
70203         Rewrite fts.c not to change the current working directory,
70204         by using openat, fstatat, fdopendir, etc..
70205
70206         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
70207         (HAVE_OPENAT_SUPPORT): Define.
70208         [_LIBC] (fchdir): Don't undef or define; no longer used.
70209         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
70210         Now, this `function' always succeeds, and consumes its file descriptor
70211         parameter -- so callers must not close such FDs.  Update callers.
70212         (diropen_fd, opendirat, cwd_advance_fd): New functions.
70213         (diropen): Add parameter, SP.  Adjust all callers.
70214         Implement using diropen_fd, rather than open.
70215         (fts_open): Initialize new member, fts_cwd_fd.
70216         Remove fts_rft-setting code.
70217         (fts_close): Close fts_cwd_fd, if necessary.
70218         (__opendir2): Define in terms of opendir or opendirat,
70219         depending on whether the FST_NOCHDIR flag is set.
70220         (fts_build): Since fts_safe_changedir consumes its FD, and since
70221         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
70222         and close the dup'd file descriptor upon failure.
70223         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
70224         (fts_safe_changedir): Tweak semantics to reflect that this function
70225         now calls cwd_advance_fd and hence consumes its FD argument.
70226         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
70227         [struct FTS] (fts_rft): Remove now-unused member.
70228         [struct FTS] (fts_cycle.state): Improve comment.
70229
70230         * lib/openat.c (openat_needs_fchdir): New function.
70231         * lib/openat.h (openat_needs_fchdir): Declare it.
70232
70233 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
70234
70235         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
70236         Problem and fix reported by Pádraig Brady in
70237         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
70238
70239 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70240
70241         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
70242
70243 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70244
70245         * lib/memcoll.c (memcoll): Optimize for the common case where the
70246         arguments are bytewise equal.
70247
70248 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70249
70250         * doc/regexprops-generic.texi: Add a copyright notice.
70251
70252 2006-08-15  Bruno Haible  <bruno@clisp.org>
70253
70254         * modules/tmpdir (License): Change to LGPL.
70255
70256 2006-08-15  Bruno Haible  <bruno@clisp.org>
70257
70258         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
70259         module.
70260
70261 2006-08-14  Simon Josefsson  <jas@extundo.com>
70262
70263         * config/srclist.txt: Add gnupload.
70264
70265 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70266
70267         Change copyright notice from LGPL 2 to GPL 2, since that's the
70268         standard form used in the gnulib repository.
70269         * tests/test-lock.c: Likewise.
70270         * tests/test-stdint.c: Likewise.
70271         * tests/test-tls.c: Likewise.
70272
70273         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
70274         prelude-manager.  User shorter URLs for GNU projects, without '?'.
70275         Add copyright notice.
70276
70277         * check-module: Add copyright notice.  Output a copyright
70278         notice if "--version" is specified.
70279         * modules/COPYING: New file.
70280         * tests/test-getaddrinfo.c: Add copyright notice.
70281         * tests/test-verify.c: Likewise.
70282
70283 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70284
70285         Change copyright notice from LGPL 2 to GPL 2, since that's the
70286         standard form used in the gnulib repository.
70287         * lib/lock.c: LGPL -> GPL.
70288         * lib/lock.h: Likewise.
70289         * lib/strnlen1.c: Likewise.
70290         * lib/strnlen1.h: Likewise.
70291         * lib/tls.c: Likewise.
70292         * lib/tls.h: Likewise.
70293         * lib/tmpdir.c: Likewise.
70294
70295         * lib/TODO: Remove; this belongs only in coreutils.
70296
70297 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70298
70299         Add copyright notices to long-enough files that lack them, since
70300         otherwise the files aren't clearly free.  Use the same notice that
70301         getdate.texi already uses.
70302         * doc/alloca-opt.texi: Add copyright notice.
70303         * doc/alloca.texi: Likewise.
70304         * doc/ctime.texi: Likewise.
70305         * doc/functions.texi: Likewise.
70306         * doc/gcd.texi: Likewise.
70307         * doc/gnulib-tool.texi: Likewise.
70308         * doc/inet_ntoa.texi: Likewise.
70309         * doc/visibility.texi: Likewise.
70310
70311         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
70312         * doc/quote.texi: Add copyright notice.
70313
70314         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
70315         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
70316         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
70317         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
70318         is now obsolete, and give a pointer to the Sun list.
70319         Add copyright notice.
70320
70321 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70322
70323         * config/srclistvars.sh: Add copyright notice.
70324
70325 2006-08-14  Eric Blake  <ebb9@byu.net>
70326
70327         Import the following change from libc:
70328
70329         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
70330
70331         Upstream bug 2997.
70332         * lib/misc/error.c: Add space between program name and message if file
70333         name is missing.
70334
70335 2006-08-12  Karl Berry  <karl@gnu.org>
70336
70337         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
70338         remove, these originate in gnulib now.
70339
70340 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70341
70342         * doc/Makefile (standards.info standards.html standards.dvi):
70343         Also depend on make-stds.texi.
70344
70345 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70346
70347         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
70348         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
70349
70350         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
70351         in wchar_t.  Problem reported by Eric Blake.
70352
70353         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
70354         LEN is smaller than SIZE.  Suggested by Bruno Haible.
70355         Also, help the compiler to keep LEN in a register.
70356
70357 2006-08-11  Eric Blake  <ebb9@byu.net>
70358
70359         * users.txt: Sort.  Add tar.
70360
70361 2006-08-11  Bruno Haible  <bruno@clisp.org>
70362
70363         * users.txt: New file.
70364
70365 2006-08-11  Bruno Haible  <bruno@clisp.org>
70366
70367         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
70368         before <wchar.h>. Needed for OSF/1 and BSD/OS.
70369
70370 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
70371
70372         * modules/snprintf (Depends-on): Remove minmax.
70373         (Maintainer): Add self and Bruno.
70374
70375 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
70376
70377         * lib/.cppi-disable: Add snprintf.h, socket_.h.
70378         * lib/snprintf.c: Include <errno.h> and <limits.h>.
70379         (EOVERFLOW): Define if the system does not.
70380         Do not include "minmax.h"; it wasn't used.
70381         (snprintf): Don't assume size_t promotes to an unsigned type.
70382         Fix bug when generated string was too long for the buffer: the
70383         buffer's contents are supposed to be the initial prefix of the
70384         output.  Don't assume vasnprintf returns EOVERFLOW if the size
70385         exceeds INT_MAX; do the check ourselves.
70386
70387         Import the following changes from libc:
70388
70389         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
70390
70391         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
70392         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
70393         set wc to the byte which couldn't be converted.
70394         (re_string_reconstruct): Don't clear valid_raw_len before calling
70395         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
70396         tip_context using re_string_context_at.
70397
70398         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
70399
70400         * lib/posix/regex.h: g++ still cannot handled [restrict].
70401
70402         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
70403
70404         * lib/posix/regex.h: Remove special handling for VMS.
70405
70406 2006-08-10  Jim Meyering  <jim@meyering.net>
70407
70408         * modules/same-inode: New module.
70409         * modules/dev-ino: New module.
70410         * modules/cycle-check: Depend on these modules, rather than simply
70411         including their .h files.
70412         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
70413         required via m4/cycle-check.m4.
70414         * modules/same: Depend on new same-inode module, rather than
70415         including same-inode.h.
70416         * modules/chdir-safer: New file.
70417
70418         * modules/chown (Depends-on): Add stat-macros.
70419
70420 2006-08-10  Jim Meyering  <jim@meyering.net>
70421
70422         * m4/cycle-check.m4: New file.
70423         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
70424         * m4/dev-ino.m4, m4/same-inode.m4: New files.
70425
70426 2006-08-10  Eric Blake  <ebb9@byu.net>
70427
70428         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
70429         in from original proposal.
70430
70431 2006-08-10  Eric Blake  <ebb9@byu.net>
70432         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
70433
70434         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
70435         namespace.
70436
70437 2006-08-10  Bruno Haible  <bruno@clisp.org>
70438
70439         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
70440         as well.
70441
70442 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70443
70444         Sync from coreutils.
70445
70446         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
70447
70448         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
70449         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
70450
70451 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70452
70453         * modules/restrict: Remove; no longer needed now that we assume
70454         Autoconf 2.59 or later.
70455         * MODULES.html.sh: Remove 'restrict'.
70456         * modules/argp (Depends-on): Remove 'restrict'.
70457         * modules/base64 (Depends-on): Likewise.
70458         * modules/gc (Depends-on): Likewise.
70459         * modules/getaddrinfo (Depends-on): Likewise.
70460         * modules/glob (Depends-on): Likewise.
70461         * modules/inet_ntop (Depends-on): Likewise.
70462         * modules/inet_pton (Depends-on): Likewise.
70463         * modules/memxor (Depends-on): Likewise.
70464         * modules/regex (Depends-on): Likewise.
70465         * modules/strtok_r (Depends-on): Likewise.
70466         * modules/time_r (Depends-on): Likewise.
70467
70468 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70469
70470         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
70471         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
70472         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
70473         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
70474         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
70475         * m4/memxor.m4 (gl_MEMXOR): Likewise.
70476         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
70477         gl_C_RESTRICT replaced by AC_C_RESTRICT.
70478
70479         Merge from coreutils.
70480         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
70481         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
70482         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70483         * m4/time_r.m4 (gl_TIME_R): Likewise.
70484
70485 2006-08-09  Karl Berry  <karl@gnu.org>
70486
70487         * config/srclist.txt: no more gettext-tools, per Bruno.
70488
70489 2006-08-08  Eric Blake  <ebb9@byu.net>
70490
70491         * modules/verror: New module.
70492         * MODULES.html.sh: Document it.
70493
70494 2006-08-08  Eric Blake  <ebb9@byu.net>
70495
70496         * lib/verror.h, lib/verror.c: New files.
70497
70498 2006-08-08  Eric Blake  <ebb9@byu.net>
70499
70500         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
70501         verror_at_line output complies with GNU Coding Standards even when
70502         file is NULL.
70503
70504 2006-08-07  Bruno Haible  <bruno@clisp.org>
70505
70506         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
70507         versions of AIX.
70508         Reported by Ralf Wildenhues.
70509
70510 2006-08-07  Bruno Haible  <bruno@clisp.org>
70511
70512         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
70513         in an AC_DEFUN. Needed so that the autoconf snippets can use
70514         AC_REQUIRE.
70515
70516 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70517
70518         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70519         Initialize pkgdata_DATA.
70520         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
70521         overriding it.
70522
70523 2006-08-06  Eric Blake  <ebb9@byu.net>
70524
70525         * lib/error.h: Fold in some upstream changes from glibc.
70526         * lib/error.c: Likewise.
70527
70528 2006-08-04  Bruno Haible  <bruno@clisp.org>
70529
70530         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70531         Make the mostlyclean-local rule depend on mostlyclean-generic.
70532         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
70533
70534 2006-07-31  Bruno Haible  <bruno@clisp.org>
70535
70536         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
70537         <stdlib.h>, <string.h>.
70538
70539 2006-07-30  Bruno Haible  <bruno@clisp.org>
70540
70541         * modules/readlink (License): Change to LGPL.
70542
70543 2006-07-30  Bruno Haible  <bruno@clisp.org>
70544
70545         * modules/javaversion (Makefile.am): Distribute javaversion.java and
70546         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
70547         set PKGDATADIR to point to it.
70548
70549 2006-07-30  Bruno Haible  <bruno@clisp.org>
70550
70551         * modules/csharpexec (configure.ac): Comment out macro invocation.
70552         * modules/javaexec (configure.ac): Likewise.
70553         * modules/javacomp-script (configure.ac): Likewise.
70554
70555         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
70556
70557 2006-07-30  Bruno Haible  <bruno@clisp.org>
70558
70559         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
70560         linked-list.
70561
70562 2006-07-30  Bruno Haible  <bruno@clisp.org>
70563
70564         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
70565
70566 2006-07-30  Bruno Haible  <bruno@clisp.org>
70567
70568         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70569         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
70570         get removed.
70571
70572 2006-07-29  Bruno Haible  <bruno@clisp.org>
70573
70574         Make it possible for gnulib-tool to work with locally modified or
70575         augmented gnulib repositories.
70576         * gnulib-tool (func_usage): Document --local-dir option.
70577         (local_gnulib_dir): New variable.
70578         Handle --local-dir option.
70579         (func_lookup_file): New function.
70580         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
70581         (func_get_description, func_get_filelist, func_get_description,
70582         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
70583         func_get_automake_snippet, func_get_include_directive,
70584         func_get_license, func_get_maintainer): Use func_lookup_file.
70585         (func_import, func_create_testdir): Use func_lookup_file.
70586
70587 2006-07-29  Bruno Haible  <bruno@clisp.org>
70588
70589         * modules/setenv (Depends-on): Add unistd.
70590
70591 2006-07-29  Bruno Haible  <bruno@clisp.org>
70592
70593         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
70594
70595 2006-07-29  Bruno Haible  <bruno@clisp.org>
70596
70597         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
70598
70599 2006-07-29  Bruno Haible  <bruno@clisp.org>
70600
70601         * gnulib-tool (import, update): If there is no Makefile.am, look at
70602         aclocal.m4, instead of bailing out.
70603
70604 2006-07-29  Bruno Haible  <bruno@clisp.org>
70605
70606         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
70607         Categorize the options by when they are useful.
70608
70609 2006-07-29  Bruno Haible  <bruno@clisp.org>
70610
70611         * gnulib-tool (func_usage): Document option --no-libtool.
70612         Handle option --no-libtool.
70613         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
70614         for changed semantics of $libtool variable.
70615         (func_import): Likewise. If libtool is not used, show this through
70616         an option --no-libtool.
70617         (func_create_testdir): Update.
70618
70619 2006-07-29  Bruno Haible  <bruno@clisp.org>
70620
70621         * gnulib-tool (func_import): Extend error message about missing
70622         --doc-base.
70623
70624 2006-07-29  Bruno Haible  <bruno@clisp.org>
70625
70626         * gnulib-tool (func_import): Don't create the $docbase directory if
70627         there is no file to store there.
70628
70629 2006-07-29  Bruno Haible  <bruno@clisp.org>
70630
70631         * gnulib-tool (autoconf_minversion): If a --dir option is given and
70632         relevant, look for configure.ac there, not in the current directory.
70633         Also use a simple search for AC_PREREQ, not "autoconf --trace".
70634
70635 2006-07-29  Bruno Haible  <bruno@clisp.org>
70636
70637         * gnulib-tool (SORT): New variable.
70638         (func_usage): Undocument --assume-autoconf option.
70639         Remove --assume-autoconf option handling.
70640         (autoconf_minversion): Determine from the contents of configure.ac.
70641         (func_import): Remove autoconf_minversion handling.
70642         Suggested by Eric Blake.
70643
70644 2006-07-29  Bruno Haible  <bruno@clisp.org>
70645
70646         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
70647
70648 2006-07-29  Bruno Haible  <bruno@clisp.org>
70649
70650         * config/srclist.txt (*setenv.[ch]): Remove rules.
70651
70652 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70653
70654         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
70655
70656 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70657
70658         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
70659         arpa/inet.h.
70660
70661 2006-07-28  Simon Josefsson  <jas@extundo.com>
70662
70663         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
70664         * modules/inet_pton (Depends-on): Likewise.
70665
70666 2006-07-28  Simon Josefsson  <jas@extundo.com>
70667
70668         * m4/netinet_in_h.m4: New file.
70669
70670 2006-07-28  Simon Josefsson  <jas@extundo.com>
70671
70672         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
70673         #include's.
70674
70675 2006-07-28  Simon Josefsson  <jas@extundo.com>
70676
70677         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
70678         #include's.
70679
70680 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
70681
70682         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
70683         setgid on directories only if they set these bits.
70684         * lib/modechange.h: Remove obsolete comment about masks.
70685
70686 2006-07-28  Eric Blake  <ebb9@byu.net>
70687
70688         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
70689         macro expansion.
70690
70691 2006-07-28  Bruno Haible  <bruno@clisp.org>
70692
70693         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
70694
70695 2006-07-28  Bruno Haible  <bruno@clisp.org>
70696
70697         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
70698
70699 2006-07-28  Bruno Haible  <bruno@clisp.org>
70700
70701         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
70702         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
70703         Define fallbacks.
70704         Avoids link error on FreeBSD 4.x.
70705         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
70706
70707         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
70708         encoding.
70709         * lib/mbswidth.c (iswcntrl): Likewise.
70710
70711 2006-07-27  Bruno Haible  <bruno@clisp.org>
70712
70713         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
70714         test.
70715
70716 2006-07-27  Bruno Haible  <bruno@clisp.org>
70717
70718         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
70719         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
70720         defined.
70721
70722 2006-07-26  Eric Blake  <ebb9@byu.net>
70723
70724         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
70725
70726 2006-07-26  Eric Blake  <ebb9@byu.net>
70727
70728         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
70729         like mingw that lack mkstemp.
70730         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
70731         avoid compilation warning on mingw.
70732
70733 2006-07-26  Bruno Haible  <bruno@clisp.org>
70734
70735         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
70736         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
70737         INT_FAST*_MIN, INTPTR_MIN.
70738
70739 2006-07-25  Bruno Haible  <bruno@clisp.org>
70740
70741         * modules/version-etc (Depends-on): Add stdarg.
70742
70743 2006-07-25  Bruno Haible  <bruno@clisp.org>
70744
70745         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
70746         complex commands.
70747
70748 2006-07-25  Bruno Haible  <bruno@clisp.org>
70749
70750         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
70751         defined in <stdarg.h> or config.h.
70752
70753 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70754
70755         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
70756         (gl_STDIO_SAFER): Remove.
70757
70758 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70759
70760         * MODULES.html.sh (File stream based Input/Output):
70761         Add fopen-safer, tmpfile-safer; remove stdio-safer.
70762         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
70763         * modules/fopen-safer, modules/tmpfile-safer: New files.
70764         * modules/stdio-safer: Remove.
70765
70766 2006-07-24  Bruno Haible  <bruno@clisp.org>
70767
70768         * modules/tmpdir: New file.
70769         * MODULES.html.sh (File system functions): Add it.
70770
70771 2006-07-24  Bruno Haible  <bruno@clisp.org>
70772
70773         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
70774         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
70775
70776 2006-07-24  Bruno Haible  <bruno@clisp.org>
70777
70778         * modules/clean-temp: New file.
70779
70780 2006-07-24  Bruno Haible  <bruno@clisp.org>
70781
70782         * m4/tmpdir.m4: New file, from GNU gettext.
70783
70784 2006-07-24  Bruno Haible  <bruno@clisp.org>
70785
70786         * lib/tmpdir.h: New file, from GNU gettext.
70787         * lib/tmpdir.c: New file, from GNU gettext.
70788
70789 2006-07-24  Bruno Haible  <bruno@clisp.org>
70790
70791         * lib/clean-temp.h: New file, from GNU gettext.
70792         * lib/clean-temp.c: New file, from GNU gettext.
70793
70794 2006-07-23  Eric Blake  <ebb9@byu.net>
70795
70796         * modules/stdio-safer (Files): Add tmpfile-safer.c.
70797         (Depends-on): Add binary-io.
70798
70799 2006-07-23  Eric Blake  <ebb9@byu.net>
70800
70801         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
70802
70803 2006-07-23  Eric Blake  <ebb9@byu.net>
70804
70805         * lib/tmpfile-safer.c: New file.
70806         * lib/stdio-safer.h (fopen_safer): Add prototype.
70807         * lib/stdio--.h (tmpfile): Make safer.
70808
70809 2006-07-23  Bruno Haible  <bruno@clisp.org>
70810
70811         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
70812         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
70813         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
70814         gl_linked_remove_at): Use it.
70815
70816 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70817         and Simon Josefsson <jas@extundo.com>
70818
70819         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
70820
70821         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
70822
70823 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70824
70825         * modules/close-stream: New file.
70826         * modules/closeout (Description): Make it clear that it exits
70827         with a diagnostic on error.
70828         (Depends-on): Add close-stream.  Remove fpending, stdbool.
70829         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
70830
70831 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70832
70833         * m4/close-stream.m4: New file.
70834
70835 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70836
70837         * lib/close-stream.c, lib/close-stream.h: New files.
70838
70839 2006-07-22  Bruno Haible  <bruno@clisp.org>
70840
70841         Merge from GNU gettext 0.15.
70842
70843         2006-05-01  Bruno Haible  <bruno@clisp.org>
70844
70845                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
70846
70847         2006-07-22  Bruno Haible  <bruno@clisp.org>
70848
70849                 * modules/javaversion: New file.
70850                 * MODULES.html.sh (Java): Add javaversion.
70851
70852         2006-03-12  Bruno Haible  <bruno@clisp.org>
70853
70854                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
70855
70856         2005-12-04  Bruno Haible  <bruno@clisp.org>
70857
70858                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
70859                 (untested).
70860
70861         2006-06-21  Bruno Haible  <bruno@clisp.org>
70862
70863                 Avoid warnings from recent versions of mcs.
70864                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
70865                 -o, -L, -r any more. Use options documented since mcs-1.0
70866                 instead. Similarly for -g.
70867
70868         2005-12-04  Bruno Haible  <bruno@clisp.org>
70869
70870                 * build-aux/csharpcomp.sh.in: Suffix for resources is
70871                 .resources, not .resource.
70872
70873         2005-07-09  Bruno Haible  <bruno@clisp.org>
70874
70875                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
70876                 add a .dll suffix.
70877                 Reported by Mark Junker <mjscod@gmx.de>.
70878
70879         2006-07-22  Bruno Haible  <bruno@clisp.org>
70880
70881                 * modules/gettext: Upgrade to gettext-0.15.
70882                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
70883                 m4/visibility.m4.
70884                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
70885
70886 2006-07-22  Bruno Haible  <bruno@clisp.org>
70887
70888         Merge from GNU gettext 0.15.
70889
70890         2006-03-25  Bruno Haible  <bruno@clisp.org>
70891
70892                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
70893
70894         2006-07-21  Bruno Haible  <bruno@clisp.org>
70895
70896                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
70897                 "1.1".
70898
70899         2006-05-09  Bruno Haible  <bruno@clisp.org>
70900
70901                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
70902                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
70903                 for the conftestver execution.
70904
70905         2006-05-01  Bruno Haible  <bruno@clisp.org>
70906
70907                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
70908                 optional target-version argument. Verify that the compiler
70909                 groks source of the specified source-version, or add -source
70910                 option as necessary. Verify that the compiler produces
70911                 bytecode in the specified target-version, or add -target and
70912                 -source options as necessary. Make the result of the test
70913                 available as variable CONF_JAVAC. Also log error output in
70914                 config.log.
70915
70916         2006-03-11  Bruno Haible  <bruno@clisp.org>
70917
70918                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
70919
70920         2006-05-09  Bruno Haible  <bruno@clisp.org>
70921
70922                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
70923                 CLASSPATH_SEPARATOR to a semicolon.
70924
70925         2006-03-12  Bruno Haible  <bruno@clisp.org>
70926
70927                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
70928                 available as variable CONF_JAVA, for subsequent autoconf
70929                 tests. Also log error output in config.log.
70930
70931         2006-07-19  Bruno Haible  <bruno@clisp.org>
70932
70933                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
70934                 that getline works on glibc2 systems. Needed to avoid trouble
70935                 in relocatable.c.
70936                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
70937
70938         2005-12-04  Bruno Haible  <bruno@clisp.org>
70939
70940                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
70941                 launcher (untested).
70942
70943         2005-12-04  Bruno Haible  <bruno@clisp.org>
70944
70945                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
70946
70947         2006-07-22  Bruno Haible  <bruno@clisp.org>
70948
70949                 * gettext.m4: Update from GNU gettext-0.15.
70950                 * nls.m4: Likewise.
70951                 * po.m4: Likewise.
70952                 * inttypes-pri.m4: Likewise.
70953                 * inttypes-h.m4: Renamed from inttypes.m4.
70954                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
70955
70956 2006-07-22  Bruno Haible  <bruno@clisp.org>
70957
70958         Merge from GNU gettext 0.15.
70959
70960         2005-07-05  Bruno Haible  <bruno@clisp.org>
70961
70962                 * printf-args.c (printf_fetchargs): Work around broken
70963                 definition of wint_t on mingw.
70964
70965         2005-02-12  Bruno Haible  <bruno@clisp.org>
70966
70967                 * xallocsa.h: Add extern "C" for C++.
70968
70969         2006-05-17  Bruno Haible  <bruno@clisp.org>
70970
70971                 Cygwin portability.
70972                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
70973
70974         2006-04-30  Bruno Haible  <bruno@clisp.org>
70975
70976                 * progreloc.c: Include <mach-o/dyld.h> if available.
70977                 (find_executable): Use _NSGetExecutablePath when possible.
70978
70979         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
70980
70981                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
70982                 function.
70983
70984         2005-12-29  Bruno Haible  <bruno@clisp.org>
70985
70986                 * progreloc.c (set_program_name_and_installdir): Fix
70987                 compilation error.
70988
70989         2005-12-04  Bruno Haible  <bruno@clisp.org>
70990
70991                 Cygwin portability.
70992                 * progreloc.c: Include <windows.h> also on Cygwin.
70993                 (find_executable): Add support for Cygwin.
70994                 (set_program_name_and_installdir): Handle also platforms with
70995                 nonempty EXEEXT.
70996
70997         2006-07-11  Bruno Haible  <bruno@clisp.org>
70998
70999                 * javacomp.c: Fix a comment.
71000                 Reported by Jim Meyering.
71001
71002         2006-04-30  Bruno Haible  <bruno@clisp.org>
71003
71004                 * javacomp.h (compile_java_class): Add source_version,
71005                 target_version arguments.
71006                 * javacomp.c: Rewritten to choose only a compiler that
71007                 respects the specified source_version and target_version.
71008
71009         2006-06-27  Bruno Haible  <bruno@clisp.org>
71010
71011                 Assume correct S_ISDIR macro.
71012                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
71013
71014         2006-07-22  Bruno Haible  <bruno@clisp.org>
71015
71016                 * javaversion.h: New file, from GNU gettext.
71017                 * javaversion.c: New file, from GNU gettext.
71018                 * javaversion.java: New file, from GNU gettext.
71019                 * javaversion.class: New file, from GNU gettext.
71020
71021         2006-05-17  Bruno Haible  <bruno@clisp.org>
71022
71023                 Cygwin portability.
71024                 * javaexec.c (execute_java_class): Test for jview program
71025                 also on Cygwin.
71026
71027         2006-04-09  Bruno Haible  <bruno@clisp.org>
71028
71029                 * fatal-signal.c: Don't include string.h.
71030                 (at_fatal_signal): Use a copying loop instead of memcpy.
71031
71032         2005-12-04  Bruno Haible  <bruno@clisp.org>
71033
71034                 * csharpexec.c: Add support for 'clix' launcher (untested).
71035                 (execute_csharp_using_sscli): New function.
71036                 (execute_csharp_program): Call it.
71037
71038         2006-06-21  Bruno Haible  <bruno@clisp.org>
71039
71040                 Avoid warnings from recent versions of mcs.
71041                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
71042                 -o, -L, -r any more. Use options documented since mcs-1.0
71043                 instead. Similarly for -g.
71044
71045         2005-07-09  Bruno Haible  <bruno@clisp.org>
71046
71047                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
71048                 add a .dll suffix.
71049                 Reported by Mark Junker <mjscod@gmx.de>.
71050
71051         2006-06-17  Bruno Haible  <bruno@clisp.org>
71052
71053                 * config.charset: Update for NetBSD 3.0.
71054
71055         2006-05-17  Bruno Haible  <bruno@clisp.org>
71056
71057                 Cygwin portability.
71058                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
71059
71060         2006-05-16  Bruno Haible  <bruno@clisp.org>
71061
71062                 * localcharset.c [CYGWIN]: Include <windows.h>.
71063                 (get_charset_aliases): For Cygwin, return the same CPxxx
71064                 aliases list as under WIN32.
71065                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
71066                 the environment variables. Fall back to GetACP().
71067
71068         2006-04-05  Bruno Haible  <bruno@clisp.org>
71069
71070                 * config.charset: Update Juan Manuel Guerrero's address.
71071
71072         2005-02-12  Bruno Haible  <bruno@clisp.org>
71073
71074                 * allocsa.h: Add extern "C" for C++.
71075
71076         2005-02-10  Bruno Haible  <bruno@clisp.org>
71077
71078                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
71079                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
71080
71081         2006-07-22  Bruno Haible  <bruno@clisp.org>
71082
71083                 * gettext.h: Update to GNU gettext-0.15.
71084
71085 2006-07-22  Bruno Haible  <bruno@clisp.org>
71086
71087         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
71088         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
71089         lib-prefix.m4, longdouble.m4, ssize_t.m4.
71090
71091 2006-07-21  Eric Blake  <ebb9@byu.net>
71092
71093         * modules/stdlib-safer: New file.
71094         * MODULES.html.sh (File stream based Input/Output): Add
71095         stdlib-safer.
71096
71097 2006-07-21  Eric Blake  <ebb9@byu.net>
71098
71099         * lib/stdlib-safer.h: New file from coreutils, required by
71100         stdlib--.h.
71101
71102 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
71103
71104         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
71105
71106 2006-07-20  Bruno Haible  <bruno@clisp.org>
71107
71108         * gnulib-tool: Recognize new option --assume-autoconf.
71109         (autoconf_minversion): New variable.
71110         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
71111
71112 2006-07-20  Bruno Haible  <bruno@clisp.org>
71113
71114         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
71115
71116 2006-07-19  Derek R. Price  <derek@ximbiot.com>
71117
71118         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
71119         Reindent and repaginate.
71120
71121 2006-07-19  Derek Price  <derek@ximbiot.com>
71122
71123         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
71124         Correct grammar.
71125
71126 2006-07-17  Bruno Haible  <bruno@clisp.org>
71127
71128         * modules/list: New file.
71129         * modules/array-list: New file.
71130         * modules/carray-list, modules/carray-list-tests: New files.
71131         * modules/linked-list, modules/linked-list-tests: New files.
71132         * modules/avltree-list, modules/avltree-list-tests: New files.
71133         * modules/rbtree-list, modules/rbtree-list-tests: New files.
71134         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
71135         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
71136         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
71137         * modules/oset: New file.
71138         * modules/array-oset: New file.
71139         * modules/avltree-oset, modules/avltree-oset-tests: New files.
71140         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
71141         * tests/test-carray_list.c: New file.
71142         * tests/test-linked_list.c: New file.
71143         * tests/test-avltree_list.c: New file.
71144         * tests/test-rbtree_list.c: New file.
71145         * tests/test-linkedhash_list.c: New file.
71146         * tests/test-avltreehash_list.c: New file.
71147         * tests/test-rbtreehash_list.c: New file.
71148         * tests/test-avltree_oset.c: New file.
71149         * tests/test-rbtree_oset.c: New file.
71150         * MODULES.html.sh (Container data structures): New section.
71151
71152 2006-07-17  Bruno Haible  <bruno@clisp.org>
71153
71154         * m4/gl_list.m4: New file.
71155
71156 2006-07-17  Bruno Haible  <bruno@clisp.org>
71157
71158         * lib/gl_list.h: New file.
71159         * lib/gl_list.c: New file.
71160         * lib/gl_array_list.h: New file.
71161         * lib/gl_array_list.c: New file.
71162         * lib/gl_carray_list.h: New file.
71163         * lib/gl_carray_list.c: New file.
71164         * lib/gl_linked_list.h: New file.
71165         * lib/gl_linked_list.c: New file.
71166         * lib/gl_anylinked_list1.h: New file.
71167         * lib/gl_anylinked_list2.h: New file.
71168         * lib/gl_avltree_list.h: New file.
71169         * lib/gl_avltree_list.c: New file.
71170         * lib/gl_anyavltree_list1.h: New file.
71171         * lib/gl_anyavltree_list2.h: New file.
71172         * lib/gl_rbtree_list.h: New file.
71173         * lib/gl_rbtree_list.c: New file.
71174         * lib/gl_anyrbtree_list1.h: New file.
71175         * lib/gl_anyrbtree_list2.h: New file.
71176         * lib/gl_anytree_list1.h: New file.
71177         * lib/gl_anytree_list2.h: New file.
71178         * lib/gl_linkedhash_list.h: New file.
71179         * lib/gl_linkedhash_list.c: New file.
71180         * lib/gl_anyhash_list1.h: New file.
71181         * lib/gl_anyhash_list2.h: New file.
71182         * lib/gl_avltreehash_list.h: New file.
71183         * lib/gl_avltreehash_list.c: New file.
71184         * lib/gl_rbtreehash_list.h: New file.
71185         * lib/gl_rbtreehash_list.c: New file.
71186         * lib/gl_anytreehash_list1.h: New file.
71187         * lib/gl_anytreehash_list2.h: New file.
71188
71189         * lib/gl_oset.h: New file.
71190         * lib/gl_oset.c: New file.
71191         * lib/gl_array_oset.h: New file.
71192         * lib/gl_array_oset.c: New file.
71193         * lib/gl_avltree_oset.h: New file.
71194         * lib/gl_avltree_oset.c: New file.
71195         * lib/gl_rbtree_oset.h: New file.
71196         * lib/gl_rbtree_oset.c: New file.
71197         * lib/gl_anytree_oset.h: New file.
71198
71199 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71200
71201         * m4/mkancesdirs.m4: New file.
71202         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
71203         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
71204         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
71205         it.
71206
71207 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71208
71209         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
71210         * lib/mkancesdirs.h: New files.
71211         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
71212         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
71213         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
71214         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
71215         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
71216         callers changed.  Revamp internals significantly, by not
71217         attempting to create directories that are temporarily more
71218         permissive than the final results.  Do not attempt to use
71219         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
71220         This removes some race conditions, fixes some bugs, and simplifies
71221         things.  Use new dirchownmod function to do owner and mode changes.
71222         * lib/mkdir-p.h: Likewise.
71223         * lib/modechange.c (octal_to_mode): New function.
71224         (struct mode_change): New member mentioned.
71225         (make_node_op_equals): New arg mentioned.  All callers changed.
71226         (mode_compile): Keep track of which mode bits the user has explicitly
71227         mentioned.
71228         (mode_adjust): New arg DIR, so that we implement the X op correctly.
71229         New arg PMODE_BITS, to keep track of which mode bits the user
71230         mentioned; it treats S_ISUID and S_ISGID speciall.
71231         All callers changed.
71232         * lib/modechange.h: Likewise.
71233
71234 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71235
71236         * MODULES.html.sh: Add mkancestors.
71237         * modules/mkancesdirs: New module.
71238         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
71239         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
71240         The chdir-safer and afs files are now orphans; I'll remove them
71241         unless someone speaks up.
71242         Add lib/dirchownmod.c, lib/dirchownmod.h.
71243         (Depends-on): Remove alloca, chown, save-cwd, dirname.
71244         Add lchown, mkancesdirs.
71245         (Maintainer): Add self.
71246
71247 2006-07-15  Karl Berry  <karl@gnu.org>
71248
71249         * gnulib-tool: help message wording/arrangement.
71250
71251 2006-07-14  Simon Josefsson  <jas@extundo.com>
71252
71253         * doc/gnulib.texi (Libtool and Windows): New section.
71254
71255 2006-07-12  Simon Josefsson  <jas@extundo.com>
71256
71257         * modules/gendocs (License): Fix license, approved by Karl.
71258
71259 2006-07-12  Eric Blake  <ebb9@byu.net>
71260
71261         * MODULES.html.sh: Add gendocs.
71262
71263 2006-07-11  Eric Blake  <ebb9@byu.net>
71264
71265         * modules/fdl: New module, to install doc/fdl.texi.
71266         * MODULES.html.sh: Add new section for documentation modules.
71267         * gnulib-tool: Avoid space-tab.
71268         (--doc-base): New option, to manage files from doc.
71269
71270 2006-07-11  Eric Blake  <ebb9@byu.net>
71271
71272         * m4/absolute-header.m4: Fix comments to match recent change.
71273
71274 2006-07-11  Eric Blake  <ebb9@byu.net>
71275
71276         * gnulib-tool: List --doc-base before --tests-base.
71277
71278 2006-07-11  Derek R. Price  <derek@ximbiot.com>
71279
71280         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
71281
71282 2006-07-11  Bruno Haible  <bruno@clisp.org>
71283
71284         * README: Mention where to put documentation.
71285
71286 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71287
71288         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
71289
71290 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
71291
71292         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
71293         to stdint.m4.
71294
71295 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
71296
71297         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
71298         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
71299         "no/such/file/stdint.h" when there is no such file, so that
71300         the resulting C code can be parsed by dodgy compilers.
71301         Problems reported by Bob Proulx.
71302
71303 2006-07-10  Derek R. Price  <derek@ximbiot.com>
71304
71305         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
71306         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
71307         macros into the GNU _D_EXACT_NAMLEN.
71308         * lib/savedir.c:  Likewise.
71309         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
71310
71311 2006-07-10  Derek R. Price  <derek@ximbiot.com>
71312         and Paul Eggert  <eggert@cs.ucla.edu>
71313
71314         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
71315         * m4/savedir.m4:
71316         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
71317         macros into the GNU _D_EXACT_NAMLEN.
71318
71319 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71320
71321         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
71322         around the absolute name, to work around a problem with the HP-UX
71323         11.23 native C compiler, reported by Bob Proulx.
71324
71325 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71326
71327         * doc/maintain.texi, make-stds.texi: Sync from
71328         <http://savannah.gnu.org/projects/gnustandards>.
71329
71330 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71331
71332         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
71333
71334 2006-07-09  Jim Meyering  <jim@meyering.net>
71335
71336         * m4/glob.m4: Remove a doubled word in a comment.
71337
71338 2006-07-09  Jim Meyering  <jim@meyering.net>
71339
71340         * lib/argp-pv.c: Remove a doubled word in a comment.
71341         * lib/check-version.c (check_version): Likewise.
71342         * lib/javacomp.c (compile_java_class): Likewise.
71343
71344 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
71345
71346         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
71347         for the benefit of people using Autoconf 2.60.  If you want to
71348         support older Autoconf versions you can copy m4/onceonly_2_57.m4
71349         (or m4/onceonly.m4, if pre-2.57) manually.
71350
71351 2006-07-08  Jim Meyering  <jim@meyering.net>
71352
71353         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
71354         comment.
71355         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
71356         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
71357         comment.
71358
71359 2006-07-08  Jim Meyering  <jim@meyering.net>
71360
71361         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
71362
71363 2006-07-07  Simon Josefsson  <jas@extundo.com>
71364
71365         * tests/test-crc.c: Change expected crc value, the test vector
71366         were probably computed using the old broken crc.c?
71367
71368 2006-07-06  Simon Josefsson  <jas@extundo.com>
71369
71370         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
71371         now the canonical place for the M4 file).
71372
71373         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
71374         from the sys_socket dependency now.
71375
71376         * modules/inet_pton (Files): Ditto.
71377
71378         * modules/inet_ntop (Files): Ditto.
71379
71380 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71381
71382         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
71383         not gl_PREREQ_GETUSERSHELL.
71384
71385 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71386
71387         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
71388         with only one argument, for Autoconf 2.60.
71389         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
71390         expand to nothing, so add a shell command to avoid syntax error.
71391         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
71392
71393 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71394
71395         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
71396
71397 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71398
71399         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
71400         no longer needed.  Check for isblank decl.
71401         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
71402         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
71403         of existence.
71404
71405 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71406
71407         * lib/getloadavg.c: Use __VMS, not VMS.
71408         * lib/getopt.c: Likewise.
71409         * lib/getpagesize.h: Likewise.
71410         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
71411         and probably does not work.
71412
71413 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71414
71415         * lib/.cppi-disable: Add wcwidth.
71416         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
71417         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
71418         (ISGRAPH): Remove.  All uses changed to isgraph.
71419         (FOLD) [!defined _LIBC]: Remove special case.
71420         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
71421         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
71422         HAVE_ISBLANK.
71423         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
71424         case.
71425
71426 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
71427
71428         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
71429         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
71430         brackets.  Other minor changes to suppress some compiler
71431         warnings.
71432
71433 2006-07-06  Derek R. Price  <derek@ximbiot.com>
71434         and Paul Eggert  <eggert@cs.ucla.edu>
71435
71436         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
71437         of invoking obsolescent AC_HEADER_DIRENT macro.
71438         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
71439         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
71440         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
71441         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
71442         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
71443         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
71444         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
71445         * m4/readdir.m4: Remove; no longer needed.
71446
71447 2006-07-06  Derek R. Price  <derek@ximbiot.com>
71448         and Paul Eggert  <eggert@cs.ucla.edu>
71449
71450         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
71451         Don't worry about this obsolete case any more.
71452         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
71453         directories.
71454         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
71455         worry about this obsolete case any more.
71456         * lib/fts.c: Likewise.
71457         * lib/getcwd.c: Likewise.
71458         * lib/glob.h: Likewise.
71459         * lib/savedir.c: Likewise.
71460
71461 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71462
71463         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
71464         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
71465         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
71466         needed.
71467         All uses removed.
71468         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71469         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
71470         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
71471         needed.
71472         * m4/getdate.m4 (gl_GETDATE): Likewise.
71473         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
71474         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
71475         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
71476         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71477         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
71478         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71479         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
71480         needed.
71481
71482 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71483
71484         * lib/memcasecmp.c: Include <limits.h>.
71485         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
71486         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
71487         Don't assume isdigit succeeds only on '0' through '9'.
71488
71489 2006-07-05  Eric Blake  <ebb9@byu.net>
71490
71491         * modules/getaddrinfo (Depends-on): Add snprintf.
71492
71493 2006-07-05  Eric Blake  <ebb9@byu.net>
71494
71495         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
71496         to avoid 'header present but could not be compiled' on cygwin.
71497
71498 2006-07-05  Eric Blake  <ebb9@byu.net>
71499
71500         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
71501         missing from netdb.h.
71502         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
71503
71504 2006-07-05  Derek R. Price  <derek@ximbiot.com>
71505
71506         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
71507         no longer needed.
71508         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
71509         * m4/getdate.m4 (gl_GETDATE): Likewise.
71510         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
71511         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
71512         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
71513         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71514         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71515
71516 2006-07-05  Derek R. Price  <derek@ximbiot.com>
71517
71518         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
71519         All uses of is_space replaced by isspace.
71520         * lib/exit.h: Don't talk about STDC_HEADERS.
71521         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
71522         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
71523         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
71524         replaced by isprint etc.
71525         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
71526         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
71527         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
71528         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
71529         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
71530         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
71531
71532 2006-07-05  Bruno Haible  <bruno@clisp.org>
71533
71534         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
71535         the function exists, before testing against AIX.
71536         Reported by Martin Lambers <marlam@marlam.de>.
71537
71538 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
71539
71540         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
71541         From Mark D. Baushke.
71542
71543 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
71544
71545         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
71546         to the absolute name, not just one, to bypass Sun C 5.8's
71547         "warning: #include of /usr/include/... may be non-portable".
71548
71549 2006-07-04  Eric Blake  <ebb9@byu.net>
71550
71551         * modules/dirname-tests: New test module.
71552         * tests/test-dirname.c: New file, replacing dirname.c
71553         TEST_DIRNAME section that was recently deleted.
71554
71555 2006-07-04  Bruno Haible  <bruno@clisp.org>
71556
71557         Assume ANSI C header files and <ctype.h> functions.
71558         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
71559         (mbsnwidth): Use isprint, iscntrl instead.
71560
71561 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71562
71563         Merge from coreutils.
71564         * MODULES.html.sh: Add xstrtold.
71565         * modules/xstrtold: New file.
71566         * modules/cycle-check (Files): Add lib/same-inode.h.
71567         * modules/dirname (Files): Add m4/double-slash-root.m4.
71568         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
71569         * modules/mkdir-p (Files): Add lib/same-inode.h.
71570         * modules/same (Files): Add lib/same-inode.h.
71571
71572 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71573
71574         * m4/absolute-header.m4: Renamed from full-header-path.m4.
71575         This is to keep the terminology clean; POSIX talks about
71576         "absolute pathnames", not "full pathnames", but the GNU
71577         Coding Standards say to use "path" for something else;
71578         so use "absolute" to keep both sides happy.
71579         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
71580         Set gl_absolute_header, not gl_full_header_path.
71581         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
71582         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
71583         All uses changed.
71584
71585         Merge from coreutils.
71586
71587         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
71588
71589         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
71590         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
71591         want to require the building of c-strtod.o.
71592         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
71593         needs -lm directly.
71594         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
71595
71596         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71597
71598         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
71599         --as-needed option if available.  Problem reported by Albert Chin in
71600         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
71601         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
71602         cc merely issues a bunch of annoying warnings for --as-needed
71603         (this problem was reported by Bob Proulx).  Also, try linking with
71604         -lm to detect a bug in binutils 2.16 (this problem was reported
71605         by Ralf Wildenhues).
71606
71607         2006-06-18  Jim Meyering  <jim@meyering.net>
71608
71609         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
71610         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
71611         macro.
71612         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
71613         also check for glibc-2.4's abort-inducing bug.
71614
71615         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
71616         Low-probability clean-up should be to use rmdir to get rid of
71617         the just-created directory, not unlink.
71618
71619         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
71620         configure fail, and request a bug report to inform us about it.
71621         Add a comment that, barring reports to the contrary, in 2007 we'll
71622         assume ftruncate is universally available.
71623
71624         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
71625
71626         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
71627
71628         2006-03-12  Jim Meyering  <jim@meyering.net>
71629
71630         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
71631         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
71632         * m4/same.m4 (gl_SAME): Likewise.
71633         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
71634
71635         2006-03-11  Eric Blake  <ebb9@byu.net>
71636
71637         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
71638         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
71639         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
71640         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
71641
71642 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71643
71644         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
71645         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
71646         reported by Mark D. Baushke, one in
71647         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
71648
71649         Merge from coreutils.
71650
71651         * lib/.cppi-disable: Add stdint_.h.
71652         * lib/.cvsignore: Add stdint.h.
71653
71654         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
71655
71656         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
71657         both double and long double versions.
71658         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
71659         * lib/xstrtold.c: New file.
71660         * lib/xstrtod.h (xstrtold): New decl.
71661
71662         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
71663
71664         * lib/filemode.c (setst): Remove.
71665         (strmode): Rewrite to avoid setst.  This makes the code shorter,
71666         (arguably) clearer, and the generated code is a bit smaller on my
71667         Debian GNU/Linux stable x86 host.
71668
71669         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
71670
71671         * lib/filemode.c: Include "filemode.h" first, to test the interface.
71672         Assume that filemode.h includes sys/types.h and sys/stat.h.
71673         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
71674         (ftypelet): Reorder to put common cases first, for efficiency.
71675         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
71676         to do 'M'.
71677         (strmode): Renamed from mode_string, and now stores 12 bytes instead
71678         of 10, for compatibility with FreeBSD.  All callers changed.
71679         (filemodestring): Now stores 12 bytes instead of 10, and sets file
71680         types that can't be deduced solely from st_mode.  First arg is now a
71681         const pointer.
71682         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
71683         (strmode): Renamed from mode_string.
71684         (filemodestring): New decl.
71685         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
71686         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
71687         needed.
71688         (S_ISPORT, S_ISWHT): New macros, if not already defined.
71689
71690         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
71691
71692         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
71693         fsusage.h now does that.  Include fsusage.h first, to test interface.
71694         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
71695         at most one method (the old code could have generated decls that
71696         didn't conform to C89, not that this was ever exercised).
71697         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
71698
71699         2006-03-19  Jim Meyering  <jim@meyering.net>
71700
71701         Work even in a chroot where d_ino values for entries in "/"
71702         don't match the stat.st_ino values for the same names.
71703         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
71704         number, iterate through all entries again, using lstat instead.
71705         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
71706         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
71707
71708         * lib/getcwd.c (__getcwd): Clarify a comment.
71709         Use memcpy in place of a call to strcpy.
71710
71711         2006-03-12  Jim Meyering  <jim@meyering.net>
71712
71713         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
71714         matches that of the current directory (which we're about to chdir ".."
71715         out of), then save the dev-ino of the parent, instead.
71716
71717         * lib/same-inode.h (SAME_INODE): New file/macro.
71718         * lib/chdir-safer.c (SAME_INODE): Remove definition.
71719         Include "same-inode.h", instead.
71720         * lib/same.c: Likewise.
71721         * lib/cycle-check.h: Include "same-inode.h".
71722         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
71723         * lib/cycle-check.c (SAME_INODE): Remove definition.
71724         * lib/root-dev-ino.h: Include "same-inode.h".
71725
71726         2006-03-11  Eric Blake  <ebb9@byu.net>
71727
71728         * lib/same.c (same_name): s/base_name/last_component/
71729         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
71730         * lib/filenamecat.c (file_name_concat): Likewise.
71731
71732         2006-03-11  Eric Blake  <ebb9@byu.net>,
71733                     Paul Eggert  <eggert@cs.ucla.edu>
71734
71735         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
71736         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
71737         drive prefix.
71738         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
71739         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
71740         (last_component): New method.
71741         * lib/dirname.c (dir_len): Determine when drive letters need a
71742         subsequent slash.  Preserve // when it is special.
71743         (dir_name): Don't append dot when drive letter is absolute.
71744         [TEST_DIRNAME]: Move into a full-blown gnulib test.
71745         * lib/basename.c (base_name): New semantics - malloc the result.
71746         Preserve // when it is special.  Preserve relative files that look
71747         like drive letters.
71748         (base_len): Preserve // when it is special.
71749         (last_component): New method, similar to old base_name semantics.
71750         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
71751         base_name.  Strip redundant slashes from ///.
71752
71753 2006-07-03  Jim Meyering  <jim@meyering.net>
71754
71755         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
71756         macro is used before the first cycle_check call.
71757
71758 2006-07-03  Eric Blake  <ebb9@byu.net>
71759
71760         * modules/dirname (Depends-on): Add xstrndup.
71761
71762 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71763
71764         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
71765         test cases, so that config.log is a bit easier to follow.
71766
71767 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71768
71769         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
71770         both are 64 bits, since this seems to be the tradition, and this
71771         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
71772         we ever run into a host that prefers long long to long in this
71773         case, we'll need another configure-time test.  Problem reported by
71774         Jim Meyering.
71775
71776 2006-07-02  Eric Blake  <ebb9@byu.net>
71777
71778         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
71779
71780 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71781
71782         * modules/inttypes (Depends-on): No longer depends on stdint.
71783         * modules/stdint (Description): Say more about assumptions.
71784         Say that the fast types might differ.  Say macros are used.
71785         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
71786         (Makefile.am): Revise list of substituted symbols to match
71787         new stdint.m4.
71788         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
71789         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
71790         * tests/test-stdint.c (verify_same_types)
71791         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
71792         the code conforms to C99/C89.
71793         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
71794         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
71795
71796 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71797
71798         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
71799         but fix a bug, by requiring at least 64 bits.
71800         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
71801         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
71802         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
71803         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
71804
71805         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
71806         changes.  Make 2.59 a prerequisite.  Check and substitute for
71807         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
71808         inttypes.h.  Do not use special include files; just use the
71809         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
71810         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
71811         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
71812         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
71813         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
71814         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
71815         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
71816         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
71817         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
71818         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
71819         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
71820         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
71821         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
71822         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
71823         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
71824         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
71825         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
71826         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
71827         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
71828         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
71829         WINT_MAX.  Check for C99 conformance more strictly, by detecting
71830         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
71831         not check for things that C99 does not require, e.g., int8_t.  If
71832         a test isn't needed unless <stdint.h> isn't working, and is
71833         unlikely to be needed for any other reason, then don't do it
71834         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
71835         size_t, since we assume C89 freestanding at least.  Do not check
71836         for sig_atomic_t, wchar_t, or wint_t, since the code now does
71837         the right thing even if the types are not defined.  Instead use:
71838         (gl_STDINT_TYPE_PROPERTIES): New macro.
71839         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
71840         testing whether <sys/types.h> clashes, as Autoconf does this for
71841         us now.  All uses removed.
71842         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
71843         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
71844         (gl_CHECK_TYPE_SAME):
71845         Remove; no longer needed.
71846         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
71847         exists, since we'll return 0 anyway in that case.
71848         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
71849
71850 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71851
71852         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
71853         possible collision with system files.
71854         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
71855         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
71856         WCHAR_MIN and WCHAR_MAX in this case.
71857         (<stddef.h>): Do not include; no longer needed.
71858         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
71859         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
71860         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
71861         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
71862         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
71863         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
71864         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
71865         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
71866         !defined(__c99))]: Include in this case too, since it's harmless
71867         now.
71868         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
71869         dangerous to do so.
71870         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
71871         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
71872         (_STDINT_MIN, _STDINT_MAX): New macros.
71873         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
71874         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
71875         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
71876         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
71877         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
71878         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
71879         macros, not typedefs; this simplifies things quite a bit.
71880         Use long int for all types narrower than int64_t.
71881         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
71882         Define in terms of long long int or int64_t or long int,
71883         not int64_t or int32_t.  This saves some compile-time testing.
71884         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
71885         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
71886         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
71887         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
71888         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
71889         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
71890         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
71891         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
71892         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
71893         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
71894         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71895         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71896         undef any previous version and define our own version, for
71897         simplicity and consistency with the new macros for types.
71898         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71899         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71900         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
71901         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
71902         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
71903         @WINT_T_SUFFIX@ to keep things simple here.
71904         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
71905         Simplify by assuming typical 8/16/32/64 host, since we're
71906         already doing that elsewhere anyway.
71907         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
71908         and assume long long int is 64 bits if available.  This
71909         speeds up 'configure'.
71910
71911 2006-07-01  Eric Blake  <ebb9@byu.net>
71912
71913         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
71914         Reported by Andreas Buening.
71915
71916 2006-07-01  Eric Blake  <ebb9@byu.net>
71917
71918         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
71919
71920 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
71921
71922         * lib/getaddrinfo.c: fixed typo
71923
71924 2006-06-29  Jim Meyering  <jim@meyering.net>
71925
71926         * modules/strftime (Maintainer): Add my name, since with the
71927         FPRINTFTIME changes strftime.c has forked from glibc.
71928
71929 2006-06-29  Eric Blake  <ebb9@byu.net>
71930
71931         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
71932
71933 2006-06-29  Eric Blake  <ebb9@byu.net>
71934
71935         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
71936
71937 2006-06-29  Eric Blake  <ebb9@byu.net>
71938
71939         * lib/stat_.h: New file.
71940
71941 2006-06-29  Eric Blake  <ebb9@byu.net>
71942
71943         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
71944         unused static function.
71945
71946 2006-06-29  Eric Blake  <ebb9@byu.net>
71947
71948         * doc/functions.texi (Function Portability): Document missing lstat
71949         on mingw.
71950
71951 2006-06-29  Eric Blake  <ebb9@byu.net>
71952
71953         * MODULES.html.sh: Add sys_stat.
71954         * modules/sys_stat: New module.
71955         * modules/mkstemp (Depends-on): Add sys_stat.
71956
71957 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71958
71959         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
71960
71961 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71962
71963         * m4/c-bs-a.m4: Removed.
71964
71965 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71966
71967         * lib/strftime.c: Assume strftime() exists.
71968
71969 2006-06-29  Derek Price  <derek@ximbiot.com>
71970
71971         * modules/c-bs-a: Removed - \a is C89.
71972         * MODULES.html.sh: Remove c-bs-a.
71973
71974 2006-06-29  Bruno Haible  <bruno@clisp.org>
71975
71976         * modules/wcwidth (License): Change to LGPL.
71977
71978 2006-06-28  Simon Josefsson  <jas@extundo.com>
71979
71980         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
71981         on _WIN32.
71982
71983         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
71984         getnameinfo.
71985
71986 2006-06-28  Simon Josefsson  <jas@extundo.com>
71987
71988         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
71989
71990 2006-06-28  Simon Josefsson  <jas@extundo.com>
71991
71992         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
71993         functions there.  It will succeed on Windows XP, but on Windows
71994         2000 and (presumably) earlier, it will fail, and use the internal
71995         re-implementation.
71996         (use_win32_p): New function.
71997         (getaddrinfo): Use strtoul on servname, to support numeric ports.
71998         Support AI_NUMERICSERV to disable getservbyname.
71999         (getnameinfo): New function, only supports
72000         NI_NUMERICHOST|NI_NUMERICSERV for now.
72001
72002         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
72003         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
72004         getnameinfo.
72005
72006 2006-06-28  Eric Blake  <ebb9@byu.net>
72007
72008         * modules/wcwidth: New file.
72009         * modules/mbchar (Depends-on): Add wcwidth.
72010         * modules/mbswidth (Depends-on): Add wcwidth.
72011         * MODULES.html.sh: Add wcwidth.
72012
72013 2006-06-28  Eric Blake  <ebb9@byu.net>
72014
72015         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
72016         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
72017
72018 2006-06-28  Eric Blake  <ebb9@byu.net>
72019
72020         * lib/xvasprintf.h: Fix comments.
72021
72022 2006-06-28  Eric Blake  <ebb9@byu.net>
72023
72024         * lib/mbchar.h (wcwidth): Include wcwidth.h.
72025         * lib/mbswidth.c (wcwidth): Move from here...
72026         * lib/wcwidth.h: ...to this new file.
72027
72028 2006-06-28  Derek R. Price  <derek@ximbiot.com>
72029
72030         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
72031
72032         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
72033         it's obsolete.
72034         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
72035
72036 2006-06-28  Derek R. Price  <derek@ximbiot.com>
72037
72038         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
72039         Autoconf 2.60 says this stuff was obsolete.
72040
72041 2006-06-28  Bruno Haible  <bruno@clisp.org>
72042
72043         * modules/wcwidth (Files): Add m4/wchar_t.m4.
72044
72045 2006-06-28  Bruno Haible  <bruno@clisp.org>
72046
72047         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
72048         gt_TYPE_WCHAR_T.
72049
72050 2006-06-28  Bruno Haible  <bruno@clisp.org>
72051
72052         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
72053         declaration for wcwidth.
72054         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
72055
72056 2006-06-28  Bruno Haible  <bruno@clisp.org>
72057
72058         * lib/mkdtemp.c [MINGW]: Include <io.h>.
72059         (mkdir): Define using _mkdir.
72060
72061 2006-06-28  Bruno Haible  <bruno@clisp.org>
72062
72063         * lib/getaddrinfo.h: Fix POSIX URL.
72064         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
72065         _WIN32.
72066         (use_win32_p): Make static.
72067         (getaddrinfo): Reject service name if it is empty or does not consist
72068         solely of decimal digits, or if its value is > 65535.
72069         (getnameinfo): Remove useless casts.
72070
72071 2006-06-27  Simon Josefsson  <jas@extundo.com>
72072
72073         * modules/sys_select: New file, suggested by Bruno Haible, Paul
72074         Eggert and Martin Lambers.
72075
72076 2006-06-27  Simon Josefsson  <jas@extundo.com>
72077
72078         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
72079         Eggert and Martin Lambers.
72080
72081 2006-06-27  Bruno Haible  <bruno@clisp.org>
72082
72083         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
72084         result to 0, not to empty.
72085         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
72086
72087 2006-06-27  Bruno Haible  <bruno@clisp.org>
72088
72089         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
72090
72091 2006-06-26  Simon Josefsson  <jas@extundo.com>
72092
72093         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
72094         present.
72095
72096 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
72097
72098         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
72099         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
72100         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
72101
72102 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
72103
72104         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
72105
72106 2006-06-26  Bruno Haible  <bruno@clisp.org>
72107
72108         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
72109
72110 2006-06-26  Bruno Haible  <bruno@clisp.org>
72111
72112         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
72113
72114 2006-06-26  Bruno Haible  <bruno@clisp.org>
72115
72116         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
72117         SGI C compiler in pre-C99 mode.
72118         Suggested by Mark D. Baushke and Larry Jones.
72119
72120 2006-06-26  Bruno Haible  <bruno@clisp.org>
72121
72122         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
72123         WCHAR_MAX.
72124         Reported by Mark D. Baushke and Larry Jones.
72125
72126 2006-06-26  Bruno Haible  <bruno@clisp.org>
72127
72128         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
72129         in pre-C99 mode.
72130         Suggested by Mark D. Baushke and Larry Jones.
72131
72132 2006-06-23  Simon Josefsson  <jas@extundo.com>
72133             Bruno Haible  <bruno@clisp.org>
72134
72135         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
72136         Emit mostlyclean-local rule.
72137         (func_emit_tests_Makefile_am): Likewise.
72138         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
72139
72140 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
72141
72142         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
72143
72144 2006-06-23  Bruno Haible  <bruno@clisp.org>
72145
72146         * tests/test-stdint.c: Update to match ISO C 99 Technical
72147         Corrigendum 1.
72148
72149 2006-06-23  Bruno Haible  <bruno@clisp.org>
72150
72151         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
72152
72153 2006-06-23  Bruno Haible  <bruno@clisp.org>
72154
72155         * lib/stdint_.h: Treat IRIX like OpenBSD.
72156
72157 2006-06-23  Bruno Haible  <bruno@clisp.org>
72158
72159         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
72160         ISO C 99 Technical Corrigendum 1.
72161
72162 2006-06-22  Simon Josefsson  <jas@extundo.com>
72163
72164         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
72165         MinGW.
72166
72167 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72168
72169         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
72170         needed.  Some compiler complained about some of them.  Problem reported
72171         by Larry Jones in
72172         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
72173
72174 2006-06-21  Simon Josefsson  <jas@extundo.com>
72175
72176         * tests/test-getaddrinfo.c: New file.
72177
72178         * modules/getaddrinfo-tests: New file.
72179
72180         * MODULES.html.sh: Add inet_pton.
72181
72182         * modules/inet_pton: New file.
72183
72184 2006-06-21  Simon Josefsson  <jas@extundo.com>
72185
72186         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
72187         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
72188         of using the (limited) gnulib implementation on Windows XP.
72189
72190         * m4/inet_pton.m4: New file.
72191
72192 2006-06-21  Simon Josefsson  <jas@extundo.com>
72193
72194         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
72195         variable.
72196
72197         * lib/socket_.h: Don't define WINVER.
72198
72199         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
72200         slightly modified to work in gnulib.
72201
72202 2006-06-21  Simon Josefsson  <jas@extundo.com>
72203
72204         * doc/gnulib.texi (Windows sockets): Add.
72205
72206 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
72207
72208         * lib/read-file.c (fread_file): Start with buffer allocation of
72209         0 bytes rather than 1 byte; this simplifies the code.
72210         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
72211         code to free buffer and save/restore errno.
72212         (internal_read_file): Remove unused local.
72213
72214 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
72215
72216         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
72217         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
72218         Problem reported by Denis Excoffier in
72219         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
72220
72221 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72222
72223         * modules/sys_socket, modules/socklen: Include sys/types since
72224         FreeBSD 4.x's sys/socket.h needs it.
72225
72226 2006-06-19  Simon Josefsson  <jas@extundo.com>
72227
72228         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
72229
72230 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
72231
72232         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
72233
72234 2006-06-19  Bruno Haible  <bruno@clisp.org>
72235
72236         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
72237         and FULL_PATH_INTTYPES_H in angle brackets.
72238         Reported by Mark D. Baushke <mdb@gnu.org>.
72239
72240 2006-06-17  Eric Blake  <ebb9@byu.net>
72241
72242         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
72243         errno.
72244
72245 2006-06-17  Bruno Haible  <bruno@clisp.org>
72246
72247         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
72248         <sys/inttypes.h>.
72249
72250 2006-06-17  Bruno Haible  <bruno@clisp.org>
72251
72252         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
72253         whether errno is declared. Assume <errno.h> declares errno.
72254
72255 2006-06-17  Bruno Haible  <bruno@clisp.org>
72256
72257         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
72258
72259 2006-06-17  Bruno Haible  <bruno@clisp.org>
72260
72261         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
72262         problem on Solaris 2.5.1.
72263
72264 2006-06-16  Eric Blake  <ebb9@byu.net>
72265
72266         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
72267         * lib/unicodeio.c [!defined errno]: Likewise.
72268         * lib/strtol.c [!defined errno]: Likewise.
72269         * lib/strtod.c [!defined errno]: Likewise.
72270
72271 2006-06-15  Eric Blake  <ebb9@byu.net>
72272
72273         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
72274
72275 2006-06-15  Eric Blake  <ebb9@byu.net>
72276
72277         * config/srclist.txt (ssize_t.m4): Lose sync.
72278
72279 2006-06-15  Bruno Haible  <bruno@clisp.org>
72280
72281         * modules/stdint (Files): Include m4/full-header-path.m4,
72282         m4/size_max.m4, m4/wchar_t.m4.
72283         (Makefile.am): Many more substitutions.
72284         * modules/stdint-tests: New file.
72285         * tests/test-stdint.c: New file.
72286
72287 2006-06-15  Bruno Haible  <bruno@clisp.org>
72288
72289         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
72290         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
72291         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
72292         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
72293         gl_CHECK_TYPE_SAME): New macros.
72294
72295 2006-06-15  Bruno Haible  <bruno@clisp.org>
72296
72297         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
72298
72299 2006-06-15  Bruno Haible  <bruno@clisp.org>
72300
72301         * lib/stdint_.h: Rewritten to be fully auto-configured.
72302         Fixes bug on HP-UX/IA64.
72303
72304 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
72305
72306         * lib/getdate.y (__attribute__): Don't define if already defined.
72307         Problem reported by Larry Jones.
72308         * lib/utimens.c (__attribute__): Likewise.
72309
72310 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
72311
72312         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
72313         reported by Andreas Schwab.
72314
72315 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72316             Bruno Haible  <bruno@clisp.org>
72317
72318         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
72319         check for the declaration of strnlen and a run test that exposes the
72320         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
72321         rpl_strndup.
72322
72323 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72324             Bruno Haible  <bruno@clisp.org>
72325
72326         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
72327
72328 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72329
72330         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
72331         compile test, for Tru64 4.0D.
72332
72333 2006-05-28  Karl Berry  <karl@gnu.org>
72334
72335         * config/srclist.txt (printf-args.c): lose sync.
72336
72337 2006-05-26  Martin Lambers  <marlam@marlam.de>
72338
72339         * lib/getpass.c: Updates the test for the native W32 API, and adds
72340         missing includes, thus fixing compilation warnings.
72341
72342 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72343
72344         * lib/exclude.c (exclude_fnmatch): New function.
72345         (excluded_file_name): Call exclude_fnmatch.
72346         * lib/exclude.h (excluded_file_name): New prototype
72347
72348 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
72349
72350         * lib/tempname.c (small_open, large_open): New macros.
72351         (__open, __open64) [!_LIBC]: Remove.
72352         (__gen_tempname): Use small_open and large_open instead of __open
72353         and __open64.  This fixes a portability bug on HP-UX 11.11i
72354         reported by Simon Wing-Tang in
72355         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
72356
72357 2006-05-24  Bruno Haible  <bruno@clisp.org>
72358
72359         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
72360         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
72361         Reported by Thorsten Maerz <torte@netztorte.de> via
72362         Aaron Stone <aaron@serendipity.cx>.
72363
72364 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
72365
72366         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
72367         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
72368         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
72369         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
72370         not really conditional on the cache.
72371         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
72372
72373 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
72374
72375         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
72376         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
72377         (my_usleep): Don't mishandle maximum value.
72378
72379 2006-05-19  Jim Meyering  <jim@meyering.net>
72380
72381         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
72382
72383 2006-05-17  Bruno Haible  <bruno@clisp.org>
72384
72385         Cygwin portability.
72386         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
72387
72388 2006-05-17  Bruno Haible  <bruno@clisp.org>
72389
72390         * lib/stdint_.h: Fix recognition of Cygwin.
72391
72392 2006-05-15  Bruno Haible  <bruno@clisp.org>
72393
72394         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
72395         on libtool patch by Ralf Wildenhues.
72396
72397 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
72398
72399         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
72400         test for C99 conformance; (bool) 0.5 is an integer constant
72401         expression, but (bool) -0.5 is not.  Problem reported by Fedor
72402         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
72403
72404 2006-05-11  Simon Josefsson  <jas@extundo.com>
72405
72406         * m4/xvasprintf.m4: Fix obvious typo.
72407
72408 2006-05-11  Jim Meyering  <jim@meyering.net>
72409
72410         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
72411         James Lemley.
72412
72413 2006-05-10  Simon Josefsson  <jas@extundo.com>
72414
72415         * lib/md4.c: Typo fix, update copyright years.
72416         (K1, K2): Don't use L because it turn computations into 64-bit on
72417         64-bit platforms.
72418
72419 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
72420
72421         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
72422         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
72423         unwanted sign propagation, e.g., on hosts with 64-bit int.
72424         There still are some problems with reeelly weird theoretical hosts
72425         (e.g., 33-bit int) but it's not worth worrying about now.
72426         * lib/sha1.c (rol): Likewise.
72427         (K1, K2, K3, K4): Remove unnecessary L suffix.
72428
72429 2006-05-10  Bruno Haible  <bruno@clisp.org>
72430
72431         * lib/des.c: Cast to avoid warnings.
72432
72433 2006-05-09  Bruno Haible  <bruno@clisp.org>
72434
72435         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
72436         (Depends-on): Depend also on xsize, stdarg.
72437         (configure.ac): Add gl_XVASPRINTF.
72438
72439 2006-05-09  Bruno Haible  <bruno@clisp.org>
72440
72441         * m4/xvasprintf.m4: New file.
72442
72443 2006-05-09  Bruno Haible  <bruno@clisp.org>
72444
72445         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
72446         (EOVERFLOW): Define fallback value.
72447         (xstrcat): New function.
72448         (xvasprintf): Recognize the special case of a string concatenation.
72449
72450 2006-05-08  Eric Blake  <ebb9@byu.net>
72451
72452         * gnulib-tool (func_version): Base copyright year on CVS date.
72453         (func_emit_copyright_notice): New function.
72454         (func_emit_lib_Makefile_am): Use it.
72455         (func_emit_tests_Makefile_am): Likewise.
72456         (func_import): Likewise.
72457
72458 2006-05-08  Bruno Haible  <bruno@clisp.org>
72459
72460         * modules/stdarg: New file.
72461         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
72462
72463 2006-05-08  Bruno Haible  <bruno@clisp.org>
72464
72465         * m4/stdarg.m4: New file, from GNU gettext.
72466
72467 2006-05-08  Bruno Haible  <bruno@clisp.org>
72468
72469         * config/srclist.txt (build-aux/config.rpath): different from latest
72470         release.
72471
72472 2006-05-08  Bruno Haible  <bruno@clisp.org>
72473
72474         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
72475
72476 2006-05-05  Jim Meyering  <jim@meyering.net>
72477
72478         * m4/warning.m4: New file, derived from bison's file by the same name.
72479
72480 2006-05-03  Bruno Haible  <bruno@clisp.org>
72481
72482         * lib/stdint_.h: Shorter URL.
72483         * lib/inttypes.h: Likewise.
72484
72485 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72486
72487         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
72488
72489 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72490
72491         * lib/verify.h: Document the internals better.  Most of this change
72492         was written by Bruno Haible.
72493
72494 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72495
72496         * doc/verify.texi: New file, partly based on a proposal by
72497         Bruno Haible.
72498
72499 2006-05-02  Bruno Haible  <bruno@clisp.org>
72500
72501         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
72502         test from here...
72503         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
72504
72505 2006-04-29  Bruno Haible  <bruno@clisp.org>
72506
72507         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
72508         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
72509
72510 2006-04-29  Bruno Haible  <bruno@clisp.org>
72511
72512         * gnulib-tool: Make --update option actually work.
72513
72514 2006-04-29  Bruno Haible  <bruno@clisp.org>
72515
72516         * doc/gcd.texi: New file.
72517         * doc/gnulib.texi: Include it.
72518
72519 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
72520
72521         * lib/getdate.y (get_date): When adding relative date, start with the
72522         initial time, not with the result of the first mktime call.
72523
72524 2006-04-25  Bruno Haible  <bruno@clisp.org>
72525
72526         * gnulib-tool (func_import): Output the include directives in three
72527         blocks, sorted separately.
72528         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72529
72530 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
72531
72532         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
72533         to define main with arguments, for C++.  Reported by Eric Blake.
72534         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
72535         Prefer 'int main ()' to 'int main (void)', for C++.
72536         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
72537         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
72538         for 'main', for C99 and C++.
72539
72540 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
72541
72542         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
72543         Don't assume that exit status -1 is valid.
72544         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72545         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
72546         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
72547         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
72548         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
72549         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
72550         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
72551         functions can be used without declaring them, or that you can
72552         exit with status -1.
72553         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
72554
72555 2006-04-24  Karl Berry  <karl@gnu.org>
72556
72557         * config/srclist.txt (longdouble.m4): sync lost.
72558
72559 2006-04-24  Eric Blake  <ebb9@byu.net>
72560
72561         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
72562
72563 2006-04-24  Bruno Haible  <bruno@clisp.org>
72564
72565         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
72566         poll() implementation in AIX.
72567         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72568
72569 2006-04-24  Bruno Haible  <bruno@clisp.org>
72570
72571         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
72572         assigned exactly once.
72573
72574 2006-04-23  Claudio Fontana  <claudio@gnu.org>
72575             Bruno Haible  <bruno@clisp.org>
72576
72577         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
72578         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
72579         for AM_CPPFLAGS.
72580
72581 2006-04-23  Bruno Haible  <bruno@clisp.org>
72582
72583         * modules/copy-file: Depend on unistd.
72584         * modules/execute: Likewise.
72585         * modules/fatal-signal: Likewise.
72586         * modules/findprog: Likewise.
72587         * modules/mkdtemp : Likewise.
72588         * modules/pipe: Likewise.
72589         * modules/wait-process: Likewise.
72590
72591 2006-04-23  Bruno Haible  <bruno@clisp.org>
72592
72593         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
72594         condition was already detected.
72595         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72596
72597 2006-04-23  Bruno Haible  <bruno@clisp.org>
72598
72599         * lib/copy-file.c: Include <unistd.h> unconditionally.
72600         * lib/execute.c: Likewise.
72601         * lib/fatal-signal.c: Likewise.
72602         * lib/findprog.c: Likewise.
72603         * lib/mkdtemp.c: Likewise.
72604         * lib/pipe.h: Likewise.
72605         * lib/pipe.c: Likewise.
72606         * lib/wait-process.h: Likewise.
72607
72608 2006-04-23  Bruno Haible  <bruno@clisp.org>
72609
72610         * gnulib-tool (func_usage): Fix --import description. Document
72611         --update.
72612         (func_import): Create temporary file in a temporary directory, if
72613         --dry-run is specified. Silence errors from 'grep' when there are no
72614         m4 files in $m4dir.
72615         (func_create_testdir): Silence errors from 'grep' when there are no
72616         m4 files in $m4dir.
72617         Reported by Karl Berry <karl@freefriends.org>.
72618
72619 2006-04-20  Bruno Haible  <bruno@clisp.org>
72620
72621         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
72622         one argument, so that the code will be portable to Autoconf 2.60.
72623         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
72624         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
72625         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
72626
72627 2006-04-19  Derek Price  <derek@ximbiot.com>
72628             Eric Blake  <ebb9@byu.net>
72629
72630         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
72631         rather than "/full/path.h".  Update comment to match.  Shorten &
72632         generalize m4_translit call via AS_TR_CPP.
72633
72634 2006-04-19  Derek Price  <derek@ximbiot.com>
72635             Eric Blake  <ebb9@byu.net>
72636
72637         * lib/inttypes.h: Correct grammar in comment.
72638
72639 2006-04-18  Derek Price  <derek@ximbiot.com>
72640             Paul Eggert  <eggert@cs.ucla.edu>
72641
72642         * modules/inttypes: New file.
72643         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
72644
72645 2006-04-18  Derek Price  <derek@ximbiot.com>
72646             Paul Eggert  <eggert@cs.ucla.edu>
72647
72648         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
72649         New files.
72650
72651 2006-04-18  Derek Price  <derek@ximbiot.com>
72652             Paul Eggert  <eggert@cs.ucla.edu>
72653
72654         * lib/inttypes.h: New file.
72655         * lib/strtoimax.c: Assume <inttypes.h>.
72656
72657 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
72658
72659         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
72660         isn't mounted.  Problem reported by Kir Kolyshkin.
72661
72662 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
72663
72664         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
72665         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
72666         Derek R. Price.
72667         * lib/regex.h (RE_DUP_MAX): Update comment to match current
72668         implementation.
72669
72670 2006-04-12  Eric Blake  <ebb9@byu.net>
72671
72672         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
72673         is now done automatically by the corresponding Autoconf macro.
72674
72675 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
72676
72677         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
72678         time_r.h.
72679
72680 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72681
72682         Merge regex changes from libc, removing some of our
72683         POSIX-conformance changes that were rejected and redoing them in a
72684         less-intrusive way.
72685
72686         * lib/regcomp.c (re_compile_internal, init_dfa):
72687         Length arg is now size_t, not Idx.  All uses changed.
72688         (peek_token): Forward decl now says internal_function.
72689         (__re_error_msgid, __re_error_msgid_idx):
72690         Now static rather than extern with attribute_hidden.
72691         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
72692         For some reason libc prefers K&R style defns for external functions.
72693         (regerror) [!defined _LIBC]: Likewise.
72694         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
72695         (seek_collating_symbol_entry, lookup_collation_sequence_value):
72696         (build_range_exp, build_collating_symbol):
72697         Use K&R-style defn.
72698         (re_compile_fastmap): Use '\0' to memset, not 0.
72699         (utf8_sb_map): Make the calculations more obvious.
72700         (init_dfa, parse_bracket_exp, build_charclass_op):
72701         Call calloc and cast result, as glibc does.
72702         (init_word_char, fetch_token, peek_token, peek_token_bracket):
72703         (build_range_exp, build_collating_symbol):
72704         Now internal functions.
72705
72706         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
72707
72708         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
72709         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
72710         Don't depend on VMS; depend on __VMS instead, for POSIX
72711         namespace cleanness.
72712         (regoff_t): Define to ssize_t, not long int.
72713
72714         Remove the REG_ macros named below.  Instead, make the old names
72715         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
72716         __USE_GNU_REGEX.
72717         (REG_BACKSLASH_ESCAPE_IN_LISTS):
72718         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
72719         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
72720         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
72721         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
72722         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
72723         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
72724         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
72725         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
72726         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
72727         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
72728         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
72729         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
72730         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
72731         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
72732         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
72733         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
72734         (REG_NREGS):
72735         Remove.  All uses replaced by the old RE_* names.
72736         (RE_BACKSLASH_ESCAPE_IN_LISTS):
72737         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
72738         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
72739         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
72740         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
72741         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
72742         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
72743         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
72744         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
72745         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
72746         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
72747         Don't bother having these macros be independent of each others'
72748         values, since they no longer exist in the POSIX name space.
72749
72750         Rename the following member names back to their old names,
72751         unless !__USE_GNU_REGEX.  All uses changed back.
72752         (buffer): Renamed from re_buffer.
72753         (allocated): Renamed from re_allocated.
72754         (used): Renamed from re_used.
72755         (syntax): Renamed from re_syntax.
72756         (fastmap): Renamed from re_fastmap.
72757         (translate): Renamed from re_translate.
72758         (can_be_null): Renamed from re_can_be_null.
72759         (regs_allocated): Renamed from re_regs_allocated.
72760         (fastmap_accurate): Renamed from re_fastmap_accurate.
72761         (no_sub): Renamed from re_no_sub.
72762         (not_bol): Renamed from re_not_bol.
72763         (not_eol): Renamed from re_not_eol.
72764         (newline_anchor): Renamed from re_newline_anchor.
72765         (num_regs): Renamed from rm_num_regs.
72766         (start): Renamed from rm_start.
72767         (end): Renamed from rm_end.
72768
72769         (free_state): Move up a bit.
72770
72771         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
72772         #define to be empty.
72773         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
72774         when that is what is intended.
72775         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
72776         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
72777         (MAX): New macro.
72778         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
72779         All uses changed back to re_malloc, etc.  It's now the caller's
72780         responsibility to check for overflow; all callers changed.
72781         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
72782         (re_x2nrealloc): Remove.
72783         (free_state): Remove decl.
72784
72785         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
72786         (re_set_registers, re_exec):
72787         Use K&R-style defn.
72788
72789         2006-01-31  Roland McGrath  <roland@redhat.com>
72790
72791         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
72792         Reported by Mike Frysinger <vapier@gentoo.org>.
72793
72794         2006-01-15  Andreas Jaeger  <aj@suse.de>
72795
72796         [BZ #1950]
72797         * lib/regex_internal.c (re_string_reconstruct): Adjust for
72798         build_wcs_upper_buffer change.
72799         (build_wcs_upper_buffer): Change return type.
72800
72801         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
72802
72803         * lib/regex_internal.h: Include <stdint.h> if available.
72804
72805         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
72806
72807         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
72808
72809         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
72810
72811         * lib/regcomp.c: Adjust for changed secondary hash function.
72812
72813         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
72814
72815         * lib/regex.h: Pretty printing.
72816         Clean up namespace a bit.
72817
72818         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
72819
72820         * lib/regexec.c (update_cur_sifted_state, check_arrival,
72821         check_arrival_add_next_nodes): Avoid using uninitialized variable.
72822
72823         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
72824                     Ulrich Drepper  <drepper@redhat.com>
72825
72826         [BZ #1302]
72827         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
72828         changed.
72829         (bitset_word_t): Renamed from bitset_word.  All uses changed.
72830
72831         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
72832
72833         [BZ #281]
72834         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
72835         * lib/regcomp.c: Remove unnecessary uses of
72836         unsigned RE_TRANSLATE_TYPE.
72837         * lib/regex_internal.h: Likewise.
72838         * lib/regex_internal.c: Likewise.
72839         * lib/regexec.c: Likewise.
72840         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
72841
72842         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
72843
72844         * lib/regexec.c (find_recover_state): Remove unnecessary
72845         initialization.
72846         (transit_state_bkref): Make DFA a const pointer.
72847         (get_subexp): Likewise.
72848         (check_arrival): Likewise.
72849         (update_cur_sifted_state): Likewise.
72850         (re_search_internal): Likewise.
72851         (prune_impossible_nodes): Likewise.
72852         (acquire_init_state_context): Likewise.
72853         (proceed_next_node): Likewise.
72854         (set_regs): Likewise.
72855         (free_fail_stack_return): Likewise.
72856         (check_arrival_expand_ecl): Mark DFA parameter as const.
72857         (check_arrival_expand_ecl_sub): Likewise.
72858         (check_subexp_limits): Likewise.
72859         (sub_epsilon_src_nodes):  Likewise.
72860         (add_epsilon_src_nodes):  Likewise.
72861         (merge_state_array): Likewise.
72862         (update_regs): Likewise.
72863         (build_trtable): Likewise.
72864         (sift_states_backward): Mark MCTX parameter as const.
72865         (build_sifted_states): Likewise.
72866         (update_cur_sifted_state): Likewise.
72867         (sift_states_mkref): Likewise.
72868         (check_arrival_expand_ecl): Mark eclosure as const.
72869         (check_dst_limits_calc_pos_1): Likewise.
72870         * lib/regex_internal.h (re_match_context_t): Make dfa a const
72871         pointer.
72872
72873         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
72874
72875         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
72876         (transit_state_sb): Likewise.
72877         (transit_state_mb): Likewise.
72878         (sift_states_iter_mb): Likewise.
72879         (check_arrival_add_next_nodes): Likewise.
72880         (check_node_accept_bytes): Change first parameter to pointer-to-const.
72881         [_LIBC] (re_search_2_stub): Use mempcpy.
72882
72883         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
72884         mbrtowc for very simple UTF-8 case.
72885
72886         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
72887         a pointer-to-const.
72888         (re_acquire_state_context): Likewise.
72889         * lib/regex_internal.h: Adjust prototypes.
72890
72891         * lib/regex.c: Prevent using C++ compilers.
72892
72893         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
72894         (re_acquire_state_context): Likewise.
72895
72896 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72897
72898         * modules/regex (Depends-on): Add ssize_t.
72899
72900 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72901
72902         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
72903         translation table.
72904
72905 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72906
72907         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
72908
72909 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
72910             Bruno Haible  <bruno@clisp.org>
72911
72912         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
72913         <sys/types.h> and <inttypes.h>.
72914
72915 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72916
72917         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
72918         `__error_t_defined', so argp.h will not typedef the former.
72919
72920 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
72921
72922         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
72923         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
72924         glibc names.  Even if glibc is changed to conform to POSIX, the
72925         traditional names will be available anyway, since regex depends on
72926         the extensions module.  Also, fix a longstanding typo in the
72927         implementation of Spencer ERE test #75 from grep 2.3.  Problems
72928         reported by Emanuele Giaquinta.  Also, change sense of cached
72929         variable, so that the message makes sense.
72930
72931 2006-03-24  Simon Josefsson  <jas@extundo.com>
72932
72933         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
72934         including some doc fixes.
72935         (base64_encode_alloc): Fix +1 bug on allocation failures.
72936
72937 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72938
72939         * lib/base64.c (base64_encode): Do not read past end of array with
72940         unsanitized input on systems with CHAR_BIT > 8.
72941
72942 2006-03-24  Eric Blake  <ebb9@byu.net>
72943
72944         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
72945
72946 2006-03-22  Karl Berry  <karl@gnu.org>
72947
72948         * config/srclist.txt (*setenv.[ch]): get from coreutils.
72949         * config/srclistvars.sh (COREUTILS): new var.
72950
72951 2006-03-17  Jim Meyering  <jim@meyering.net>
72952
72953         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
72954         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
72955
72956 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72957
72958         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
72959         no longer needs it.  Instead, check that regoff_t is as least
72960         as wide as ptrdiff_t.
72961
72962         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
72963         so that our regex.h stays compatible with the installed regex.
72964         This is helpful for installers who configure --without-included-regex.
72965         Problem reported by Emanuele Giaquinta.
72966
72967 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72968
72969         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
72970         Typedef to long int, not to off_, as POSIX will likely change
72971         in that direction.
72972
72973 2006-03-15  Eric Blake  <ebb9@byu.net>
72974
72975         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
72976
72977 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72978
72979         * lib/argp-help.c (validate_uparams): Fix typo
72980         * lib/argp-parse.c (argp_default_options): Consistently begin help
72981         messages with a lowercase letter.
72982
72983 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
72984
72985         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
72986         overrun buffers and shouldn't be used (much as gets shouldn't be
72987         used).
72988         * lib/time_r.c (asctime_r, ctime_r): Likewise.
72989
72990 2006-03-08  Simon Josefsson  <jas@extundo.com>
72991
72992         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
72993         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72994
72995 2006-03-08  Simon Josefsson  <jas@extundo.com>
72996
72997         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
72998         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72999
73000 2006-03-08  Simon Josefsson  <jas@extundo.com>
73001
73002         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
73003         signal that configure disabled the device.
73004
73005 2006-03-08  Simon Josefsson  <jas@extundo.com>
73006
73007         * build-aux/maint.mk: Fix refresh-po, to handle no translated
73008         languages.
73009
73010 2006-03-07  Simon Josefsson  <jas@extundo.com>
73011
73012         * modules/getopt (Depends-on): Add unistd.
73013
73014         * modules/unistd: New file.
73015
73016 2006-03-07  Simon Josefsson  <jas@extundo.com>
73017
73018         * modules/gc-random: New file.
73019
73020 2006-03-07  Simon Josefsson  <jas@extundo.com>
73021
73022         * m4/unistd_h.m4: New file.
73023
73024 2006-03-07  Simon Josefsson  <jas@extundo.com>
73025
73026         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
73027         test to be side-effect free by storing the result in the cache
73028         variable gl_cv_lib_readline, and moving the assignment of
73029         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
73030         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73031
73032 2006-03-07  Simon Josefsson  <jas@extundo.com>
73033
73034         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
73035         error on missing devices (the functions will return an error).
73036
73037         * m4/gc.m4: Move random stuff to gc-random.m4
73038
73039 2006-03-07  Simon Josefsson  <jas@extundo.com>
73040
73041         * lib/unistd_.h: New file.
73042
73043 2006-03-07  Simon Josefsson  <jas@extundo.com>
73044
73045         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
73046
73047 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73048
73049         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
73050         Problem reported by Juan Manuel Guerrero.
73051
73052 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73053
73054         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
73055         the unistd module.
73056         * lib/getlogin_r.c: Likewise.
73057         * lib/getlogin_r.h: Likewise.
73058         * lib/glob.c: Likewise.
73059         * lib/pagealign_alloc.c: Likewise.
73060         * lib/unistd_.h: Remove; no longer needed.
73061
73062 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73063
73064         * MODULES.html.sh (Support for systems lacking POSIX:2001):
73065         Add unistd.
73066         * modules/c-stack (Depends-on): Add unistd.
73067         * modules/getlogin_r: Likewise.
73068         * modules/glob: Likewise.
73069         * modules/pagealign_alloc: Likewise.
73070         * modules/unistd (Files): Remove lib/unistd_.h.
73071         (EXTRA_DIST): Remove.
73072         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
73073         need unistd_.h.
73074         (MOSTLYCLEANFILES): Remove unistd.h-t.
73075
73076 2006-03-03  Simon Josefsson  <jas@extundo.com>
73077
73078         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
73079
73080 2006-03-03  Simon Josefsson  <jas@extundo.com>
73081
73082         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
73083         libidn and bison.
73084
73085 2006-03-03  Simon Josefsson  <jas@extundo.com>
73086
73087         * build-aux/maint.mk: Add indent target.
73088
73089 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
73090
73091         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
73092         our replacement poll.h in any case, to avoid a differing
73093         declaration from a system header.  Seen on AIX.
73094
73095 2006-03-01  Simon Josefsson  <jas@extundo.com>
73096
73097         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
73098         <kasal@ucw.cz>.
73099
73100 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73101
73102         * modules/gettime (Depends-on): Add extensions module.
73103         * modules/nanosleep (Depends-on): Likewise.
73104         * modules/settime (Depends-on): Likewise.
73105
73106 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73107
73108         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
73109         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
73110         pedantically.
73111         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73112         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
73113
73114         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
73115         not "==".  Reported by Ralf Wildenhues.
73116
73117 2006-03-01  Karl Berry  <karl@gnu.org>
73118
73119         * doc/Copyright/request-*: new files, synced from gnuorg.
73120
73121 2006-03-01  Karl Berry  <karl@gnu.org>
73122
73123         * config/srclist.txt (Copyright/*): new entries.
73124
73125 2006-02-28  Simon Josefsson  <jas@extundo.com>
73126
73127         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
73128
73129 2006-02-27  Simon Josefsson  <jas@extundo.com>
73130
73131         * lib/base64.h: Indent #define's.  From Jim Meyering
73132         <jim@meyering.net>.
73133
73134 2006-02-27  Jim Meyering  <jim@meyering.net>
73135
73136         Revert the change of 2006-02-24, so these files can continue
73137         to be sync'd from gettext.
73138         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
73139         of `config.h'.
73140
73141 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
73142
73143         * modules/intprops: New file.
73144         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
73145         Add intprops.
73146         * modules/getloadavg (Files): Remove lib/intprops.h.
73147         (Depends-on): Add intprops.
73148         * modules/human: Likewise.
73149         * modules/inttostr: Likewise.
73150         * modules/openat: Likewise.
73151         * modules/sig2str: Likewise.
73152         * modules/userspec: Likewise.
73153         * modules/utimecmp: Likewise.
73154         * modules/xnanosleep: Likewise.
73155         * modules/xstrtol: Likewise.
73156
73157 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
73158
73159         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
73160         * modules/lock-tests (TESTS): Use $(EXEEXT).
73161         * modules/tls-tests: Likewise.
73162         * modules/argp-tests: Likewise.
73163         (check_PROGRAMS): New var, replacing...
73164         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
73165
73166 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73167
73168         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
73169         `config.h'.
73170
73171 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
73172
73173         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
73174
73175 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73176
73177         Sync from coreutils.
73178         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
73179         gl_CHDIR_SAFER.
73180
73181 2006-02-22  Jim Meyering  <jim@meyering.net>
73182
73183         Sync from coreutils.
73184         * m4/chdir-safer.m4: New file.
73185
73186 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
73187
73188         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
73189         AT_FDCWD exceeds INT_MAX.
73190         * lib/openat.h (AT_FDCWD): Likewise.
73191
73192 2006-02-17  Eric Blake  <address@hidden>
73193
73194         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
73195
73196 2006-02-16  Simon Josefsson  <jas@extundo.com>
73197
73198         * modules/getaddrinfo (Depends-on): Add sys_socket.
73199
73200 2006-02-15  Simon Josefsson  <jas@extundo.com>
73201
73202         * build-aux/maint.mk: Add dsyntax-check rule.
73203
73204 2006-02-15  Eric Blake  <ebb9@byu.net>
73205
73206         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
73207         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
73208         'present but cannot compile' warnings on cygwin.
73209         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
73210         use ws2tcpip.h if sys/socket.h works.
73211         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
73212         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
73213
73214 2006-02-14  Simon Josefsson  <jas@extundo.com>
73215
73216         * modules/maintainer-makefile (Files): Rename.
73217
73218         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
73219         and (the local) Makefile.cfg to maint-cfg.mk.
73220
73221         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
73222         to the latter.
73223
73224         * modules/maintainer-makefile: New module.
73225
73226         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
73227         severaly stripped to make it possible to build it up from scratch
73228         with reliable tests.
73229
73230         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
73231         fixes to permit overriding the default actions when configure and
73232         makefile are not available.
73233
73234 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
73235
73236         Sync from coreutils.
73237         * modules/lstat (Depends-on): Don't depend on xalloc.
73238         (License): Change from GPL to LGPL, since this is now simply a
73239         replacement for a libc function.
73240
73241 2006-02-14  Jim Meyering  <jim@meyering.net>
73242
73243         Sync from coreutils.
73244
73245         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
73246         failure on deficient systems, and simplify gnulib lgpl dependencies.
73247         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
73248         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
73249
73250         * lib/xalloc-die.c: Remove unused definition of N_.
73251
73252 2006-02-14  Jim Meyering  <jim@meyering.net>
73253
73254         Sync from coreutils.
73255         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
73256         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
73257         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
73258         double-quote uses of that variable, to accommodate the rare case in
73259         which getmntent is available in none of the libraries checked.  This
73260         happens at least on FreeBSD 5.0.
73261
73262 2006-02-13  Simon Josefsson  <jas@extundo.com>
73263
73264         * gnulib-tool (Usage): Fix --import, from
73265         karl@freefriends.org (Karl Berry).
73266
73267 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
73268
73269         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
73270
73271 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
73272
73273         * lib/argp-namefrob.h: Restore changes accidentally lost during the
73274         "autoupdate" on 2005-12-12.
73275
73276 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
73277
73278         * modules/closeout (Depends-on): Remove atexit.
73279
73280 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
73281
73282         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
73283         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
73284
73285 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
73286
73287         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
73288         __EXTENSIONS__ if this causes compilation to fail.  Problem
73289         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
73290         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
73291
73292 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
73293
73294         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
73295         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
73296         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
73297         All uses changed.
73298
73299 2006-01-26  Simon Josefsson  <jas@extundo.com>
73300
73301         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
73302         prototype is visible on mingw32.
73303
73304         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
73305         for mingw32.
73306
73307         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
73308         mingw32).
73309
73310 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
73311
73312         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
73313         attempt to open for write; this always fails, at least on POSIX
73314         hosts.  This reinstates the 2006-01-09 change, which was
73315         inadvertently removed.
73316
73317 2006-01-26  Bruno Haible  <bruno@clisp.org>
73318
73319         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
73320         Reported by Paul Eggert.
73321
73322 2006-01-26  Bruno Haible  <bruno@clisp.org>
73323             Paul Eggert  <eggert@cs.ucla.edu>
73324
73325         * lib/stdbool_.h (_Bool)
73326         [(! (defined __cplusplus || defined __BEOS__)
73327           && !defined __GNUC__
73328           && !(defined __HP_cc || defined __xlc__
73329                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
73330                || defined __sgi))]:
73331         #define to signed char in these cases too; this simplifies
73332         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
73333         etc., separately) and makes it more conservative.
73334
73335 2006-01-25  Simon Josefsson  <jas@extundo.com>
73336
73337         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
73338         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
73339         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
73340
73341 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
73342
73343         * lib/argp-namefrob.h: Bugfix. Remove stray #
73344
73345 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
73346
73347         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
73348         so that we test the test.
73349         Check for yet another HP-UX cc bug involving *bool |= bool.
73350
73351 2006-01-25  Karl Berry  <karl@gnu.org>
73352
73353         * config/srclist.txt (vasnprintf.c): sync lost.
73354
73355 2006-01-25  Jim Meyering  <jim@meyering.net>
73356
73357         Sync from the stable (b5) branch of coreutils:
73358
73359         * lib/fts.c (fts_children): Don't let close() clobber errno from
73360         failed fchdir().
73361
73362         * lib/fts.c (fts_stat): When following a symlink-to-directory,
73363         don't necessarily interpret stat-fails+lstat-succeeds as indicating
73364         a dangling symlink.  That can also happen at least for ELOOP.
73365         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
73366         FYI, this bug predates the inclusion of fts.c in coreutils.
73367
73368         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
73369         in their own block, so pre-c99 compilers don't object.
73370
73371         Avoid the double-free (first in fts_read, second in fts_close) that
73372         would occur when an `active' directory is made inaccessible (e.g.,
73373         via chmod a-x) during a traversal.
73374         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
73375         before returning.  Reproduce this failure by
73376         mkdir -p a/b; cd a; chmod a-x . b
73377         Reported by Stavros Passas.
73378
73379 2006-01-25  Jim Meyering  <jim@meyering.net>
73380
73381         * lib/fileblocks.c: Remove more useless parentheses.
73382         * lib/readutmp.h: Likewise.
73383
73384 2006-01-25  Bruno Haible  <bruno@clisp.org>
73385
73386         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
73387         warnings.
73388         Reported by Paul Eggert.
73389
73390 2006-01-25  Bruno Haible  <bruno@clisp.org>
73391
73392         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
73393         rid of a trap command. For Solaris sh.
73394         Reported by Mark D. Baushke <mdb@gnu.org>.
73395
73396 2006-01-24  Simon Josefsson  <jas@extundo.com>
73397
73398         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
73399         Bruno.
73400
73401 2006-01-24  Karl Berry  <karl@gnu.org>
73402
73403         * config/srclist.txt (argp-namefrob.h): sync lost.
73404
73405 2006-01-24  Jim Meyering  <jim@meyering.net>
73406
73407         * modules/openat (Files): Add lib/intprops.h.
73408         From Mark D. Baushke.
73409
73410 2006-01-24  Jim Meyering  <jim@meyering.net>
73411
73412         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
73413         Reported by Mark D. Baushke.
73414
73415 2006-01-24  Jim Meyering  <jim@meyering.net>
73416
73417         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
73418
73419 2006-01-24  Bruno Haible  <bruno@clisp.org>
73420
73421         * modules/strnlen (Maintainer): Change from glibc to all.
73422
73423 2006-01-24  Bruno Haible  <bruno@clisp.org>
73424
73425         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
73426         Patch by Paul Eggert.
73427
73428 2006-01-24  Bruno Haible  <bruno@clisp.org>
73429
73430         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
73431         already has it.
73432         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
73433         2005-11-26.
73434
73435         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
73436         'signed char' to avoid problems with the built-in _Bool type.
73437         Reported by Paul Eggert on 2005-11-26.
73438
73439 2006-01-24  Bruno Haible  <bruno@clisp.org>
73440
73441         * gnulib-tool (func_import): Avoid constructing complicated sed
73442         expressions inside backquote.
73443         Report and solution by Mark D. Baushke <mdb@gnu.org>.
73444
73445 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
73446
73447         These changes imported from libc.
73448         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
73449         test and two separate function calls.
73450         * lib/strndup.c (__strndup): Add libc_hidden_def.
73451
73452 2006-01-23  Simon Josefsson  <jas@extundo.com>
73453
73454         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
73455         Remove the test_*_SOURCES variable: automake infers it by default.
73456         * modules/tls-tests: Likewise.
73457
73458 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73459
73460         Work around porting bugs reported by Dieter in
73461         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
73462         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
73463         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
73464         Include "getopt.h" first, to check interface.
73465         (getenv): Declare only if defined HAVE_DECL_GETENV &&
73466         !HAVE_DECL_GETENV.
73467         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
73468         (__strndup): Revert to K&R-style function dfns, the glibc style.
73469         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
73470         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
73471         Include strnlen.h first, to get prototype properly.
73472         (strnlen): Renamed from __strnlen.
73473         Remove weak alias.
73474
73475 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73476
73477         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
73478
73479 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73480
73481         * config/srclist.txt: Adjust to reflect glibc reorganization.
73482         This affects only comments.
73483
73484 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73485
73486          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
73487          Reported by Bruce Korb <bkorb@gnu.org>.
73488
73489 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
73490
73491         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
73492         to pacify gcc -Wswitch-default.
73493
73494 2006-01-22  Bruno Haible  <bruno@clisp.org>
73495
73496         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
73497         temporary buffer for sprintf, take into account the precision also
73498         for 'd', 'i', 'u', 'o', 'x', 'X'.
73499
73500 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
73501
73502         * modules/argp-tests: New module
73503         * tests/test-argp.c: New file
73504         * tests/test-argp-2.sh: New file
73505
73506 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
73507
73508         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
73509         (__argp_base_name): Removed
73510         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
73511         typo.
73512         (__argp_base_name): Provide macro definition or extern declaration
73513         depending on the configuration
73514
73515 2006-01-20  Simon Josefsson  <jas@extundo.com>
73516
73517         * modules/inet_ntop (Depends-on): Depend on sys_socket.
73518
73519 2006-01-20  Simon Josefsson  <jas@extundo.com>
73520
73521         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
73522
73523 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
73524
73525         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
73526         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
73527         Suggested by Bruno Haible.
73528
73529 2006-01-20  Karl Berry  <karl@gnu.org>
73530
73531         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
73532         until changes propagate, I guess.
73533
73534 2006-01-19  Simon Josefsson  <jas@extundo.com>
73535
73536         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
73537
73538 2006-01-19  Simon Josefsson  <jas@extundo.com>
73539
73540         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
73541
73542 2006-01-19  Simon Josefsson  <jas@extundo.com>
73543
73544         * gnulib-tool: Set check_PROGRAMS.
73545
73546         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
73547         modules/des-tests, modules/gc-arcfour-tests,
73548         modules/gc-arctwo-tests, modules/gc-des-tests,
73549         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
73550         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
73551         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
73552         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
73553         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
73554         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
73555         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
73556         test_*_SOURCES.
73557
73558 2006-01-18  Simon Josefsson  <jas@extundo.com>
73559
73560         * modules/socklen (Depends-on): Depend on sys_socket.
73561
73562 2006-01-18  Simon Josefsson  <jas@extundo.com>
73563
73564         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
73565         modules/des-tests, modules/gc-arcfour-tests,
73566         modules/gc-arctwo-tests, modules/gc-des-tests,
73567         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
73568         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
73569         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
73570         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
73571         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
73572         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
73573         $(EXEEXT) to automake TESTS variable, for mingw32.
73574
73575 2006-01-17  Simon Josefsson  <jas@extundo.com>
73576
73577         * modules/socklen (Include): Need sys/socket.h.
73578
73579 2006-01-17  Bruno Haible  <bruno@clisp.org>
73580
73581         * modules/ssize_t (Include): Add <sys/types.h>.
73582
73583 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
73584
73585         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
73586         it's not portable and it doesn't work with cross-compiles.
73587         Problem reported by Bruno Haible.  Fix missing-$ typo in
73588         'test "gl_cv_ignore_unused_libraries" ...' that prevented
73589         -zignore from being used with Sun's C compiler.
73590
73591 2006-01-12  Simon Josefsson  <jas@extundo.com>
73592
73593         * lib/base64.c: Fix warning, reported by Bruno Haible
73594         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
73595
73596 2006-01-12  Bruno Haible  <bruno@clisp.org>
73597
73598         * modules/ldd: New file.
73599         * build-aux/ldd.sh.in: New file.
73600         * MODULES.html.sh (Support for building libraries and executables): Add
73601         ldd.
73602
73603 2006-01-12  Bruno Haible  <bruno@clisp.org>
73604
73605         * m4/ldd.m4: New file.
73606
73607 2006-01-12  Bruno Haible  <bruno@clisp.org>
73608
73609         * gnulib-tool (func_import, func_create_testdir): Don't go into an
73610         endless loop while replacing $auxdir with build-aux.
73611
73612 2006-01-11  Simon Josefsson  <jas@extundo.com>
73613
73614         * lib/stdint_.h (SIZE_MAX): Add missing (.
73615
73616 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
73617
73618         Sync from coreutils.
73619         * lib/md5.c: Fix commentary typos.
73620         (alignof, UNALIGNED_P): No need for a GCC-specific version.
73621         * lib/md5.h (__attribute__): Remove; unused.
73622         * lib/sha1.c: Fix commentary to match md5 better.
73623         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
73624         so that we don't need to worry about alignment.  All uses changed.
73625         This merges the 2005-10-28 md5 change into sha1.
73626
73627 2006-01-11  Jim Meyering  <jim@meyering.net>
73628
73629         Sync from coreutils.
73630         * lib/md5.c (OP): Fix spacing.
73631
73632 2006-01-11  Bruno Haible  <bruno@clisp.org>
73633
73634         Ensure automatic ordering between gl_LOCK and gl_ARGP.
73635         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
73636         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
73637
73638 2006-01-11  Bruno Haible  <bruno@clisp.org>
73639
73640         Ensure automatic ordering between gl_LOCK and gl_ARGP.
73641         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
73642         the "early" section as well.
73643
73644 2006-01-11  Bruno Haible  <bruno@clisp.org>
73645
73646         Avoid "ar: no archive members specified" error on MacOS X.
73647         * gnulib-tool (func_modules_add_dummy): New function.
73648         (func_import, func_create_testdir): Invoke it.
73649
73650 2006-01-11  Bruno Haible  <bruno@clisp.org>
73651
73652         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
73653         with $auxdir in AC_CONFIG_FILES statements.
73654
73655 2006-01-11  Bruno Haible  <bruno@clisp.org>
73656
73657         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73658         Initialize also noinst_HEADERS to empty.
73659
73660 2006-01-11  Bruno Haible  <bruno@clisp.org>
73661
73662         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
73663         variables.
73664         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
73665         autoreconf.
73666
73667 2006-01-11  Bruno Haible  <bruno@clisp.org>
73668
73669         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
73670         overridable by the user.
73671         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73672
73673 2006-01-10  Simon Josefsson  <jas@extundo.com>
73674
73675         * modules/sys_socket: New file.
73676
73677 2006-01-10  Simon Josefsson  <jas@extundo.com>
73678
73679         * m4/sys_socket_h.m4: New file.
73680
73681 2006-01-10  Simon Josefsson  <jas@extundo.com>
73682
73683         * lib/socket_.h: New file.
73684
73685 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73686
73687         * modules/readutmp (Maintainer): Add myself.
73688
73689 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73690
73691         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
73692         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
73693         People who are still concerned with buggy memcmp implementations
73694         can invoke gl_FUNC_MEMCMP themselves.
73695
73696 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73697
73698         * lib/regex_internal.h (BITSET_WORD_BITS):
73699         Work around a bug in 64-bit PGC (before version 6.1-2), where the
73700         preprocessor mishandles large unsigned values as if they were signed.
73701         Problem reported by Claudio Fontana in
73702         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
73703
73704 2006-01-10  Jim Meyering  <jim@meyering.net>
73705
73706         Avoid the double-free (first in fts_read, second in fts_close) that
73707         would occur when an `active' directory is made inaccessible (e.g.,
73708         via chmod a-x) during a traversal.
73709         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
73710         before returning.  Reproduce this failure by
73711         mkdir -p a/b; cd a; chmod a-x . b
73712         Reported by Stavros Passas.
73713
73714         Sync from coreutils.
73715         * lib/sha1.c: Tweak grammar in a comment.
73716
73717 2006-01-10  Jim Meyering  <jim@meyering.net>
73718
73719         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
73720         Patch by Joerg Sonnenberger.
73721
73722 2006-01-10  Bruno Haible  <bruno@clisp.org>
73723
73724         * modules/readutmp: Depend on module free.
73725         * modules/strtok_r: Depend on module restrict.
73726
73727 2006-01-10  Bruno Haible  <bruno@clisp.org>
73728
73729         * modules/gettext (configure.ac): Add an invocation of
73730         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
73731
73732 2006-01-10  Bruno Haible  <bruno@clisp.org>
73733
73734         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
73735         Reported by Werner Lemberg <wl@gnu.org>.
73736
73737 2006-01-10  Bruno Haible  <bruno@clisp.org>
73738
73739         * lib/localcharset.c: Update from GNU gettext.
73740
73741 2006-01-10  Bruno Haible  <bruno@clisp.org>
73742
73743         * lib/argp.h (__const): Remove macro. Use const instead.
73744         * lib/argp-fmtstream.h (__const): Likewise.
73745         * lib/glob_.h (__const): Remove macro.
73746         * lib/glob-libc.h: Use const instead of __const.
73747
73748 2006-01-10  Bruno Haible  <bruno@clisp.org>
73749
73750         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
73751         variable.
73752         Needed to avoid an automake error regarding the 'gettext' module.
73753
73754 2006-01-09  Simon Josefsson  <jas@extundo.com>
73755
73756         * modules/inet_ntop (Depends-on): Add restrict.
73757
73758 2006-01-09  Simon Josefsson  <jas@extundo.com>
73759
73760         * modules/gc-rijndael-tests (License): Put under LGPL.
73761
73762         * modules/gc-des-tests (License): Likewise.
73763
73764         * modules/gc-arcfour-tests (License): Likewise.
73765
73766         * modules/gc-arctwo-tests (License): Likewise.
73767
73768         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
73769
73770         * modules/gc-hmac-sha1-tests (Files): Likewise.
73771
73772         * modules/gc-hmac-md5-tests (License): Likewise.
73773
73774         * modules/gc-sha1-tests (License): Likewise.
73775
73776         * modules/gc-md5-tests (License): Likewise.
73777
73778         * modules/gc-md4-tests (License): Likewise.
73779
73780         * modules/gc-md2-tests (License): Likewise.
73781
73782         * modules/gc-tests (License): Likewise.
73783
73784         * modules/des-tests (License): Likewise.
73785
73786         * modules/md4-tests (License): Likewise.
73787
73788         * modules/md2-tests (License): Likewise.
73789
73790 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73791
73792         Sync from coreutils:
73793
73794         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
73795         * modules/lib-ignore: New file.
73796         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
73797         chdir-safer.m4, lchmod.m4.
73798         * modules/openat: Add mkdirat.c, openat-priv.h.
73799
73800 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73801
73802         Sync from coreutils.
73803         * m4/lib-ignore.m4: New file.
73804         * m4/lchmod.m4: New file.
73805
73806 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73807
73808         Sync from coreutils.
73809         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
73810         for write access: POSIX says that must fail.
73811         * lib/fts.c (diropen): Likewise.
73812         * lib/save-cwd.c (save_cwd): Likewise.
73813         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
73814         well, for minor improvements on hosts that lack O_DIRECTORY.
73815         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
73816         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
73817         Fall back on chown if open failed with EACCES.
73818
73819         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
73820         Report an error at compile-time if only a 1-second nominal clock
73821         resolution is found.
73822
73823         * lib/lchmod.h: New file.
73824         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
73825         (make_dir_parents): Use lchown rather than chown, and
73826         lchmod rather than chmod.
73827
73828         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
73829         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
73830         "proc" reported by n0dalus.
73831
73832         * lib/mountlist.c: Include <limits.h>.
73833         (dev_from_mount_options)
73834         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
73835         New function.  It no longer assumes "dev=" has the System V meaning
73836         on Linux (since it doesn't).  It also parses "dev=" more carefully.
73837         (read_file_system_list)
73838         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
73839         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
73840         dev= in that case.
73841
73842         * lib/posixtm.h (PDS_PRE_2000): New macro.
73843         * lib/posixtm.c (year): Arg is now syntax_bits rather than
73844         allow_century.  All usages changed.  Reject dates outside the range
73845         1969-1999 if PDS_PRE_2000 is used.
73846
73847 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73848
73849         Sync from coreutils.
73850         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
73851         (Time of day items): Mention the possibility of leap seconds.
73852         Problem reported by Dr. David Alan Gilbert.
73853
73854 2006-01-09  Jim Meyering  <jim@meyering.net>
73855
73856         Sync from coreutils.
73857
73858         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
73859
73860         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
73861
73862         * lib/modechange.c (mode_compile): Reject an invalid mode string
73863         that starts with an octal digit.  From Andreas Gruenbacher.
73864
73865         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
73866         and dup to open_safer and dup_safer, respectively.
73867         (openat_permissive): Fix typo in comment.
73868
73869         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
73870         "gettext.h"; either no longer needed or are guaranteed by openat.h.
73871         (_): Remove; no longer needed.
73872         (openat): Renamed from rpl_openat; no need for rpl_openat
73873         since openat.h renames openat for us.
73874         Replace most of the body with a call to openat_permissive,
73875         to avoid duplicate code.
73876         Port to (probably hypothetical) environments were mode_t is
73877         wider than int.
73878         (openat_permissive): Require mode arg, so that we can check
73879         types better.  Put it just after flags.  Change cwd failure
73880         indicator from pointer-to-bool to pointer-to-errno-value.
73881         All callers changed.
73882         Invoke openat_save_fail and/or openat_restore_fail if
73883         cwd_errno is null, so that openat can call us.
73884         (openat_permissive, fdopendir, fstatat, unlinkat):
73885         Simplify errno handling to avoid some duplicate code,
73886         as it's OK to set errno on success.
73887         * lib/openat.h: Revamp code so that function macros depend on
73888         __OPENAT_PREFIX only, not also on AT_FDCWD.
73889         (openat_ro): Remove.  Caller changed to use openat_permissive.
73890         (openat_permissive): Now a macro, if not a function.
73891         (openat_restore_fail, openat_save_fail): Now always functions,
73892         since mkdirat needs them even if __OPENAT_PREFIX is defined.
73893
73894         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
73895         and openat.c.
73896         * lib/mkdirat.c: Include openat-priv.h.
73897         Remove definitions of macros defined therein.
73898         * lib/openat.c: Likewise.
73899
73900         * lib/mkdirat.c (mkdirat): New file and function.
73901         * lib/openat.h (mkdirat): Declare.
73902
73903         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
73904
73905         * lib/openat.h (openat_permissive): Declare.
73906         (openat_ro): Define.
73907
73908         * lib/openat.c (EXPECTED_ERRNO): New macro.
73909         (openat_permissive): New function -- used in remove.c rewrite.
73910         (all functions): Set errno just before returning, only if there
73911         was an actual failure.
73912         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
73913
73914         Emulate openat-family functions using Linux's procfs, if possible.
73915         Idea and some code based on Ulrich Drepper's glibc changes.
73916
73917         * lib/openat.c: (BUILD_PROC_NAME): New macro.
73918         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
73919         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
73920         before falling back on save_cwd and restore_cwd.
73921         (fdopendir, fstatat, unlinkat): Likewise.
73922
73923         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
73924         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
73925
73926         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
73927         as second argument to va_arg.  Otherwise, some versions of gcc
73928         warn that `if this code is reached, the program will abort'.
73929
73930 2006-01-09  Jim Meyering  <jim@meyering.net>
73931
73932         Sync from coreutils.
73933         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
73934         Require openat-priv.h.
73935
73936 2006-01-09  Bruno Haible  <bruno@clisp.org>
73937
73938         * modules/strnlen (Include): Use strnlen.h.
73939
73940 2006-01-09  Bruno Haible  <bruno@clisp.org>
73941
73942         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
73943
73944 2006-01-09  Bruno Haible  <bruno@clisp.org>
73945
73946         * lib/sysexit_.h (EX_OK): New macro.
73947         Suggested by Martin Lambers <marlam@marlam.de>.
73948
73949 2006-01-09  Bruno Haible  <bruno@clisp.org>
73950
73951         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
73952         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
73953
73954 2006-01-09  Bruno Haible  <bruno@clisp.org>
73955
73956         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
73957         numbers.
73958
73959 2006-01-09  Bruno Haible  <bruno@clisp.org>
73960
73961         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
73962         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
73963         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
73964         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
73965
73966 2006-01-09  Bruno Haible  <bruno@clisp.org>
73967
73968         * build-aux/javacomp.sh.in: New file, moved from lib/.
73969         * modules/javacomp-script (Files): Update.
73970         (configure.ac): Add AC_CONFIG_FILES invocation.
73971         (EXTRA_DIST): Remove variable.
73972
73973         * build-aux/javaexec.sh.in: New file, moved from lib/.
73974         * modules/javaexec (Files): Update.
73975         (configure.ac): Add AC_CONFIG_FILES invocation.
73976         (EXTRA_DIST): Remove javaexec.sh.in.
73977
73978         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
73979         * modules/csharpcomp-script (Files): Update.
73980         (configure.ac): Add AC_CONFIG_FILES invocation.
73981         (EXTRA_DIST): Remove variable.
73982
73983         * build-aux/csharpexec.sh.in: New file, moved from lib/.
73984         * modules/csharpexec (Files): Update.
73985         (configure.ac): Add AC_CONFIG_FILES invocation.
73986         (EXTRA_DIST): Remove csharpexec.sh.in.
73987
73988 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73989
73990         Sync from coreutils.
73991
73992         Add POSIX ACL support
73993         * lib/acl.h (copy_acl, set_acl): Add declarations.
73994         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
73995         systems other than Linux.
73996         (chmod_or_fchmod): New function: use fchmod when possible,
73997         and chmod otherwise.
73998         (file_has_acl): Add a POSIX ACL implementation, with a
73999         Linux-specific subcase.
74000         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
74001         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
74002         acls are unsupported.
74003         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
74004         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
74005         are unsupported.
74006
74007 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
74008
74009         Sync from coreutils.
74010         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
74011
74012 2006-01-07  Bruno Haible  <bruno@clisp.org>
74013
74014         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
74015         gl_EARLY.
74016
74017 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74018
74019         * lib/strftime.c (tzname): Don't declare if it is already #defined.
74020         Problem reported for Mingw by Mark Junker.
74021
74022 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74023
74024         * README: Gnulib normally doesn't generate a tarball.
74025
74026 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
74027
74028         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
74029         long int, not int, for nanosecond counts, so that people who are
74030         used to POSIX struct timespec won't be surprised.  Reported by Jim
74031         Meyering.
74032
74033 2005-12-28  Bruno Haible  <bruno@clisp.org>
74034
74035         * build-aux/config.rpath: Update from GNU gettext.
74036
74037 2005-12-16  Jim Meyering  <jim@meyering.net>
74038
74039         * modules/fprintftime: New module.
74040         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
74041
74042 2005-12-16  Jim Meyering  <jim@meyering.net>
74043
74044         * m4/fprintftime.m4: New file.
74045
74046 2005-12-16  Jim Meyering  <jim@meyering.net>
74047
74048         * lib/fprintftime.c, lib/fprintftime.h: New files.
74049
74050 2005-12-15  Simon Josefsson  <jas@extundo.com>
74051
74052         * modules/socklen (configure.ac): Fix M4 macro name, to align with
74053         new m4/socklen.m4.
74054
74055 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74056
74057         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
74058         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
74059
74060 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74061
74062         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
74063         * lib/argp-help.c (fill_in_uparams): Check if the constructed
74064         struct uparams is valid. Fall back to the default values if it is
74065         not.
74066
74067 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74068
74069         * modules/argp (Files): Add argp-pin.c
74070         (Depends-on): dirname
74071         (lib_SOURCES): Add argp-pin.c
74072
74073 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74074
74075         * m4/argp.m4:  Check if program_invocation_name and
74076         program_invocation_short_name are declared and define appropriate
74077         macros if they are not.
74078
74079 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74080
74081         * lib/argp-help.c (__argp_base_name): New function
74082         (__argp_short_program_name): Rewrite using __argp_base_name
74083         * lib/argp-namefrob.h: Define program_invocation_name and
74084         program_invocation_short_name if requested
74085         (__argp_base_name): Add prototype
74086         * lib/argp-parse.c (argp_def): Use gettext wrappers
74087         (argp_default_parser): Use __argp_base_name
74088         * lib/argp-pin.c: New file. Defines program_invocation_name and
74089         program_invocation_short_name on systems that lack them.
74090
74091 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74092
74093         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
74094         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
74095         porting problem reported by Georg Schwarz in
74096         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
74097
74098 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74099
74100         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
74101         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
74102         porting problem reported by Georg Schwarz in
74103         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
74104
74105 2005-12-05  Bruno Haible  <bruno@clisp.org>
74106
74107         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
74108         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
74109         Reported by Mark Junker <mjscod@gmx.de>.
74110
74111 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
74112
74113         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
74114         Use implementation from Albert Chin, with some
74115         comments/corrections by Stepan Kasal and myself.
74116
74117 2005-12-02  Bruno Haible  <bruno@clisp.org>
74118
74119         * gnulib-tool (func_import): Accept GPLed build tool modules when
74120         --lgpl is given.
74121         * modules/csharpcomp-script: New file.
74122         * modules/csharpcomp: Depend on it.
74123         * modules/javacomp-script: New file.
74124         * modules/javacomp: Depend on it.
74125         Suggested by Simon Josefsson.
74126
74127 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
74128
74129         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
74130         statement, to work around an HP-UX 10.20 compiler bug reported by
74131         Peter O'Gorman.
74132
74133 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
74134
74135         * modules/savedir (Depends-on): Add openat.
74136
74137 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
74138
74139         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
74140         (uintmax_t) [defined uintmax_t]: Do not declare.
74141         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
74142         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
74143         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
74144         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
74145         sake of portability to weird hosts that C allows (though we don't
74146         know of any practical examples).
74147
74148         * lib/savedir.h (fdsavedir): New decl.
74149         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
74150         contains most of the former guts of savedir.
74151         (savedir): Use savedirstream.
74152         Include "openat.h".
74153
74154 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
74155
74156         * modules/obstack (Files): Add m4/ulonglong.m4.
74157         Problem reported by Davide Angelocola.
74158
74159 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
74160
74161         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
74162         coreutils no longer futzes with rounding modes.
74163
74164 2005-11-14  Jim Meyering  <jim@meyering.net>
74165
74166         * lib/mkstemp-safer.c: Include <config.h>, required for possible
74167         replacement of mkstemp.
74168
74169 2005-11-10  Simon Josefsson  <jas@extundo.com>
74170
74171         * lib/readline.c: Remove EOL.
74172
74173 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74174
74175         * modules/gethrxtime (Depends-on): Add gettime.
74176
74177 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74178
74179         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
74180         or gettimeofday; no longer needed.
74181
74182 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74183
74184         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
74185         time business.
74186         (gethrxtime) [! (HAVE_NANOUPTIME
74187         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
74188         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
74189         our own approximation.
74190
74191 2005-11-08  Eric Blake  <ebb9@byu.net>
74192
74193         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
74194
74195 2005-11-08  Eric Blake  <ebb9@byu.net>
74196
74197         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
74198
74199 2005-11-04  Bruno Haible  <bruno@clisp.org>
74200
74201         * gnulib-tool: Implement --update mode.
74202
74203 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
74204
74205         Fix porting problem reported by Theodoros V. Kalamatianos.
74206         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
74207         Don't assume that futimes failing means we must fail.
74208
74209 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
74210
74211         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
74212         variables to suggest the intended function of the PATH_MAX check.
74213
74214 2005-10-30  Kean Johnston  <jkj@sco.com>
74215
74216         Trivial changes to support SCO systems.
74217         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
74218         as PATH_MAX.
74219         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
74220         where __ptr is null when no I/O is pending.
74221
74222 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
74223
74224         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
74225         leave errno alone.  Problem reported by Dmitry V. Levin.
74226
74227 2005-10-28  Simon Josefsson  <jas@extundo.com>
74228
74229         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
74230         Test more.
74231
74232         * tests/test-gc-md2.c, tests/test-md2.c: New files.
74233
74234         * modules/md2, modules/md2-tests: New files.
74235
74236 2005-10-28  Simon Josefsson  <jas@extundo.com>
74237
74238         * m4/inet_ntop.m4: More tests.
74239
74240         * m4/gc-md2.m4, md2.m4: New file.
74241
74242 2005-10-28  Simon Josefsson  <jas@extundo.com>
74243
74244         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
74245         "restrict" keywords, as per POSIX.  Protect the function
74246         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
74247         Don't use K&R prototypes.  Check the sprintf return values.
74248         Re-define EAFNOSUPPORT if not present.  Indent.
74249
74250         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
74251         suggested by Bruno Haible <bruno@clisp.org>.
74252
74253         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
74254
74255         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
74256
74257         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
74258         libgcrypt).
74259
74260         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
74261
74262         * lib/md2.h, lib/md2.c: New files.
74263
74264 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
74265
74266         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
74267         errno alone.  Problem reported by Frederic Jolliton.
74268
74269 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
74270
74271         * modules/verify (License): Change from GPL to LGPL.  This is a
74272         tiny module and there are apparently near-equivalents that are
74273         under the BSD license.
74274
74275 2005-10-24  Simon Josefsson  <jas@extundo.com>
74276
74277         * modules/sha1: Relicense to LGPL.
74278
74279 2005-10-24  Simon Josefsson  <jas@extundo.com>
74280
74281         * lib/md4.h: Shrink buffer size, now that we changed the type.
74282
74283 2005-10-23  Simon Josefsson  <jas@extundo.com>
74284
74285         * gnulib-tool (func_import): Fix --tests-base.
74286
74287 2005-10-22  Simon Josefsson  <jas@extundo.com>
74288
74289         * modules/arcfour (Depends-on): Need stdint.
74290
74291 2005-10-22  Simon Josefsson  <jas@extundo.com>
74292
74293         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
74294         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
74295
74296 2005-10-22  Simon Josefsson  <jas@extundo.com>
74297
74298         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
74299         suggested by Bruno Haible <bruno@clisp.org>.
74300
74301 2005-10-22  Simon Josefsson  <jas@extundo.com>
74302
74303         * lib/crc.h: Include stddef.h, for size_t.
74304
74305 2005-10-22  Simon Josefsson  <jas@extundo.com>
74306
74307         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
74308         arcfour_context struct (simplify test vector testing in GNU
74309         Shishi).
74310
74311 2005-10-21  Simon Josefsson  <jas@extundo.com>
74312
74313         * modules/des, modules/des-tests: New files.
74314
74315         * modules/gc-des, modules/gc-des-tests: New files.
74316
74317         * tests/test-des.c, tests/test-gc-des.c: New file.
74318
74319 2005-10-21  Simon Josefsson  <jas@extundo.com>
74320
74321         * modules/arctwo, modules/arctwo-tests: New files.
74322
74323         * tests/test-arctwo.c: New file.
74324
74325         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
74326
74327         * tests/test-gc-arctwo.c: New file.
74328
74329 2005-10-21  Simon Josefsson  <jas@extundo.com>
74330
74331         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
74332         Bruno Haible <bruno@clisp.org>.
74333
74334         * m4/gc-des.m4: New file.
74335
74336 2005-10-21  Simon Josefsson  <jas@extundo.com>
74337
74338         * m4/arctwo.m4: New file.
74339
74340         * m4/gc-arctwo.m4: New file.
74341
74342 2005-10-21  Simon Josefsson  <jas@extundo.com>
74343
74344         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
74345         block.
74346
74347 2005-10-21  Simon Josefsson  <jas@extundo.com>
74348
74349         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
74350         <bruno@clisp.org>.
74351
74352         * lib/hmac-sha1.c (hmac_sha1): Likewise.
74353
74354         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
74355         Bruno Haible <bruno@clisp.org>.
74356
74357         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
74358         <bruno@clisp.org>.
74359
74360 2005-10-21  Simon Josefsson  <jas@extundo.com>
74361
74362         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
74363
74364 2005-10-21  Simon Josefsson  <jas@extundo.com>
74365
74366         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
74367
74368 2005-10-21  Simon Josefsson  <jas@extundo.com>
74369
74370         * lib/des.h, lib/des.c: New files.
74371
74372         * lib/gc-gnulib.c: Support DES.c
74373
74374 2005-10-21  Simon Josefsson  <jas@extundo.com>
74375
74376         * lib/arctwo.h, lib/arctwo.c: New files.
74377
74378         * lib/gc-gnulib.c: Support ARCTWO.
74379
74380 2005-10-21  Simon Josefsson  <jas@extundo.com>
74381
74382         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
74383         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74384
74385 2005-10-21  Simon Josefsson  <jas@extundo.com>
74386
74387         * gnulib-tool (func_import, func_create_testdir): Define automake
74388         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
74389         Makefile.am snippet),
74390         suggested by Bruno Haible <bruno@clisp.org>.
74391
74392         * modules/gc (Makefile.am): Use it.
74393
74394 2005-10-21  Bruno Haible  <bruno@clisp.org>
74395
74396         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
74397         patch.
74398
74399 2005-10-19  Simon Josefsson  <jas@extundo.com>
74400
74401         * tests/test-gc-rijndael.c: New file.
74402
74403         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
74404
74405 2005-10-19  Simon Josefsson  <jas@extundo.com>
74406
74407         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
74408         interface too.
74409
74410 2005-10-19  Simon Josefsson  <jas@extundo.com>
74411
74412         * tests/test-gc-arcfour.c: New file.
74413
74414         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
74415
74416 2005-10-19  Simon Josefsson  <jas@extundo.com>
74417
74418         * modules/gc-md4, modules/gc-md4-tests: New file.
74419
74420         * tests/test-gc-md4.c: New file.
74421
74422 2005-10-19  Simon Josefsson  <jas@extundo.com>
74423
74424         * m4/gc-md4.m4: New file.
74425
74426 2005-10-19  Simon Josefsson  <jas@extundo.com>
74427
74428         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
74429         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
74430         <kasal@ucw.cz>.
74431
74432 2005-10-19  Simon Josefsson  <jas@extundo.com>
74433
74434         * m4/gc-arcfour.m4: New file.
74435
74436         * m4/gc-rijndael.m4: New file.
74437
74438 2005-10-19  Simon Josefsson  <jas@extundo.com>
74439
74440         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
74441
74442 2005-10-19  Simon Josefsson  <jas@extundo.com>
74443
74444         * lib/gc-gnulib.c: Support ARCFOUR.
74445
74446 2005-10-19  Simon Josefsson  <jas@extundo.com>
74447
74448         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
74449         support.
74450
74451         * lib/gc.h: Add ECB enum type.
74452
74453         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
74454
74455 2005-10-18  Simon Josefsson  <jas@extundo.com>
74456
74457         * tests/test-md5.c: New file.
74458
74459         * modules/md5-tests: New file.
74460
74461 2005-10-18  Simon Josefsson  <jas@extundo.com>
74462
74463         * tests/test-md4.c: New file.
74464
74465         * modules/md4, modules/md4-tests: New files.
74466
74467 2005-10-18  Simon Josefsson  <jas@extundo.com>
74468
74469         * m4/md4.m4: New file.
74470
74471 2005-10-18  Simon Josefsson  <jas@extundo.com>
74472
74473         * lib/md4.h, lib/md4.c: New files, based on md5.?.
74474
74475 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
74476
74477         * gnulib-tool (func_create_testdir): Omit the second check whether
74478         BUILT_SOURCES in nonempty.
74479
74480 2005-10-17  Simon Josefsson  <jas@extundo.com>
74481
74482         * tests/test-rijndael.c: New file.
74483
74484 2005-10-17  Simon Josefsson  <jas@extundo.com>
74485
74486         * modules/sha1: Depend on stdint instead of md5.
74487
74488         * modules/md5: Depend on stdint, remove uint32_t.
74489
74490 2005-10-17  Simon Josefsson  <jas@extundo.com>
74491
74492         * modules/gc-sha1-tests: New file.
74493
74494         * tests/test-gc-sha1.c: New file.
74495
74496 2005-10-17  Simon Josefsson  <jas@extundo.com>
74497
74498         * m4/md5.m4: Remove call to uint32_t.m4.
74499
74500 2005-10-17  Simon Josefsson  <jas@extundo.com>
74501
74502         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
74503
74504         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
74505         md5.h.
74506
74507         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
74508
74509         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
74510
74511 2005-10-17  Simon Josefsson  <jas@extundo.com>
74512
74513         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
74514
74515 2005-10-17  Simon Josefsson  <jas@extundo.com>
74516
74517         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
74518
74519 2005-10-17  Simon Josefsson  <jas@extundo.com>
74520
74521         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
74522
74523         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
74524
74525 2005-10-17  Bruno Haible  <bruno@clisp.org>
74526
74527         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
74528         that it can also be used in a test.
74529
74530 2005-10-16  Bruno Haible  <bruno@clisp.org>
74531
74532         * gnulib-tool (func_emit_tests_Makefile_am): Also define
74533         TESTS_ENVIRONMENT, so that individual tests can augment it.
74534
74535         * gnulib-tool (func_create_testdir): Use an intermediate target for
74536         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
74537         macros, like $(ALLOCA_H), which cannot be passed through the command
74538         line.
74539
74540 2005-10-15  Simon Josefsson  <jas@extundo.com>
74541
74542         * modules/rijndael-tests: New file.
74543
74544         * modules/rijndael: New file.
74545
74546 2005-10-15  Simon Josefsson  <jas@extundo.com>
74547
74548         * m4/rijndael.m4: New file.
74549
74550 2005-10-15  Simon Josefsson  <jas@extundo.com>
74551
74552         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
74553
74554         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
74555
74556 2005-10-14  Simon Josefsson  <jas@extundo.com>
74557
74558         * tests/test-arcfour.c: New file.
74559
74560         * modules/arcfour, modules/arcfour-tests: New files.
74561
74562 2005-10-14  Simon Josefsson  <jas@extundo.com>
74563
74564         * m4/arcfour.m4: New file.
74565
74566 2005-10-14  Simon Josefsson  <jas@extundo.com>
74567
74568         * lib/arcfour.h, lib/arcfour.c: New files.
74569
74570 2005-10-14  Roland McGrath  <roland@redhat.com>
74571
74572         Import from libc.  [BZ #1331]
74573         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
74574         macro argument.
74575         Reported by Matej Vela <vela@debian.org>.
74576
74577 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74578
74579         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
74580         include <wchar.h>; no longer needed.
74581
74582 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74583
74584         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
74585
74586 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
74587         and  Ulrich Drepper  <drepper@redhat.com>
74588
74589         Import from libc.
74590         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
74591         instead of inline stream orientation test and two separate
74592         function calls.  Pay no attention to USE_IN_LIBIO.
74593
74594 2005-10-13  Simon Josefsson  <jas@extundo.com>
74595
74596         * modules/gc-hmac-md5-tests: New file.
74597
74598         * tests/test-gc-hmac-sha1.c: New file.
74599
74600         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
74601
74602         * modules/gc-hmac-md5-tests: New file.
74603
74604         * tests/test-gc-md5.c: New file.
74605
74606         * modules/gc-md5-tests: New file.
74607
74608 2005-10-13  Simon Josefsson  <jas@extundo.com>
74609
74610         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
74611         Move memory allocation outside of loop.
74612
74613 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
74614
74615         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
74616         intermediate directory is in a read-only file system.  Problem
74617         reported by Eric Blake.
74618
74619 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
74620
74621         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
74622
74623 2005-10-12  Simon Josefsson  <jas@extundo.com>
74624
74625         * tests/test-hmac-sha1.c: New file.
74626
74627         * modules/hmac-sha1-tests: New file.
74628
74629         * modules/hmac-sha1: New file.
74630
74631 2005-10-12  Simon Josefsson  <jas@extundo.com>
74632
74633         * modules/gc-sha1: New file.
74634
74635 2005-10-12  Simon Josefsson  <jas@extundo.com>
74636
74637         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
74638
74639         * tests/test-gc-pbkdf2-sha1.c: New file.
74640
74641 2005-10-12  Simon Josefsson  <jas@extundo.com>
74642
74643         * modules/gc-md5, modules/gc-hmac-md5: New files.
74644
74645         * modules/gc (Files): Remove md5, memxor and hmac files.
74646
74647 2005-10-12  Simon Josefsson  <jas@extundo.com>
74648
74649         * m4/gc-pbkdf2-sha1.m4: New file.
74650
74651         * m4/gc-hmac-sha1.m4: New file.
74652
74653         * m4/gc-sha1: New file.
74654
74655         * m4/hmac-sha1.m4: New file.
74656
74657 2005-10-12  Simon Josefsson  <jas@extundo.com>
74658
74659         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
74660
74661         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
74662
74663 2005-10-12  Simon Josefsson  <jas@extundo.com>
74664
74665         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
74666         suggested by Bruno Haible <bruno@clisp.org>.
74667
74668 2005-10-12  Simon Josefsson  <jas@extundo.com>
74669
74670         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
74671
74672 2005-10-12  Simon Josefsson  <jas@extundo.com>
74673
74674         * lib/gc-pbkdf2-sha1.c: New file.
74675
74676         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
74677
74678 2005-10-12  Simon Josefsson  <jas@extundo.com>
74679
74680         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
74681
74682         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
74683
74684 2005-10-12  Simon Josefsson  <jas@extundo.com>
74685
74686         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
74687         GC_USE_HMAC_MD5, respectively.
74688
74689         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
74690         (gc_md5): Fix typo.
74691
74692         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
74693
74694         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
74695
74696         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
74697
74698 2005-10-12  Bruno Haible  <bruno@clisp.org>
74699
74700         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
74701         Reported by Stepan Kasal <kasal@ucw.cz>.
74702
74703 2005-10-11  Simon Josefsson  <jas@extundo.com>
74704
74705         * tests/test-crc.c: New file.
74706
74707         * modules/crc, modules/crc-tests: New files.
74708
74709 2005-10-11  Simon Josefsson  <jas@extundo.com>
74710
74711         * m4/crc.m4: New file.
74712
74713 2005-10-11  Simon Josefsson  <jas@extundo.com>
74714
74715         * lib/gc.h: Add gc_hash and gc_hash_buffer.
74716
74717         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
74718
74719         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
74720
74721 2005-10-11  Simon Josefsson  <jas@extundo.com>
74722
74723         * lib/crc.h, lib/crc.c: New files.
74724
74725         * lib/gc.h (gc_hash_buffer): Add doc.
74726
74727 2005-10-11  Bruno Haible  <bruno@clisp.org>
74728
74729         * modules/c-strcasestr: New file.
74730         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
74731
74732 2005-10-11  Bruno Haible  <bruno@clisp.org>
74733
74734         * modules/c-strcase: New file.
74735         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
74736
74737 2005-10-11  Bruno Haible  <bruno@clisp.org>
74738
74739         * lib/strcasecmp.c: Include limits.h.
74740         (strcasecmp): Avoid integer overflow on exotic platforms.
74741         * lib/strncasecmp.c: Include limits.h.
74742         (strncasecmp): Avoid integer overflow on exotic platforms.
74743         Reported by Paul Eggert.
74744
74745 2005-10-11  Bruno Haible  <bruno@clisp.org>
74746
74747         * lib/c-strcasestr.h: New file, from GNU gettext.
74748         * lib/c-strcasestr.c: New file, from GNU gettext.
74749
74750 2005-10-11  Bruno Haible  <bruno@clisp.org>
74751
74752         * lib/c-strcase.h: New file, from GNU gettext.
74753         * lib/c-strcasecmp.c: New file, from GNU gettext.
74754         * lib/c-strncasecmp.c: New file, from GNU gettext.
74755
74756 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
74757
74758         * modules/mempcpy (License): GPL -> LGPL.
74759         * modules/strchrnul (License): Likewise.
74760         * modules/sysexits (License): Likewise.
74761
74762 2005-10-08  Simon Josefsson  <jas@extundo.com>
74763
74764         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
74765
74766 2005-10-07  Simon Josefsson  <jas@extundo.com>
74767
74768         * m4/memxor.m4: Remove gl_C_RESTRICT call.
74769
74770 2005-10-06  Simon Josefsson  <jas@extundo.com>
74771
74772         * tests/test-hmac-md5.c: New file.
74773
74774         * modules/hmac-md5-tests: New file.
74775
74776         * modules/hmac-md5: New file.
74777
74778 2005-10-06  Simon Josefsson  <jas@extundo.com>
74779
74780         * m4/hmac-md5.m4: New file.
74781
74782         * m4/memxor.m4: Require gl_C_RESTRICT.
74783
74784 2005-10-06  Simon Josefsson  <jas@extundo.com>
74785
74786         * lib/memxor.c (memxor): Avoid casts and warnings.
74787
74788 2005-10-06  Simon Josefsson  <jas@extundo.com>
74789
74790         * lib/hmac-md5.c: New file.
74791
74792         * lib/hmac.h: New file.
74793
74794 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
74795
74796         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
74797         promotes to int, not unsigned int, to catch the AIX 5.3
74798         compiler bug.
74799
74800 2005-10-05  Simon Josefsson  <jas@extundo.com>
74801
74802         * modules/memxor: New file.
74803
74804         * modules/iconv (Files): Move config.rpath to havelib, it is used
74805         there.
74806
74807         * modules/havelib (Files): Add config.rpath.
74808
74809 2005-10-05  Simon Josefsson  <jas@extundo.com>
74810
74811         * m4/memxor.m4: New file.
74812
74813 2005-10-05  Simon Josefsson  <jas@extundo.com>
74814
74815         * lib/memxor.c (memxor): Fix compiler error.
74816
74817         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
74818         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
74819
74820         * lib/memxor.h, lib/memxor.c: New files.
74821
74822         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
74823         we assume all systems have it, suggested by Jim Meyering
74824         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
74825         any systems lack sys/socket.h; mingw32 is known to lack it, but we
74826         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
74827         same reasons.
74828
74829 2005-10-05  Simon Josefsson  <jas@extundo.com>
74830
74831         * config/srclist.txt: Add glibc bug 1423 for md5.h.
74832
74833 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
74834
74835         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
74836         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
74837         needed, since the source code now assumes these .h files.
74838
74839 2005-10-05  Derek Price  <derek@ximbiot.com>
74840
74841         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
74842
74843 2005-10-05  Bruno Haible  <bruno@clisp.org>
74844
74845         * modules/stdint (License): Change to LGPL.
74846
74847 2005-10-04  Simon Josefsson  <jas@extundo.com>
74848
74849         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
74850         D. Baushke" <mdb@gnu.org>.
74851
74852 2005-10-04  Bruno Haible  <bruno@clisp.org>
74853
74854         * lib/verify.h (verify_true): Provide alternative definition for C++.
74855
74856 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
74857
74858         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
74859         (SSIZE_MAX): New macro, if not already defined.
74860         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
74861         than 2 GiB.
74862
74863 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74864
74865         Sync from coreutils.
74866         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
74867         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
74868         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
74869         ULLONG_MAX doesn't work with 2.7.2.1.
74870
74871 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74872
74873         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
74874         From Ben Pfaff.
74875
74876         * modules/exclude (Depends-on): Depend on verify.
74877         * modules/strtoimax (Depends-on): Likewise.
74878         * modules/utimecmp (Depends-on): Likewise.
74879
74880 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74881
74882         * lib/exclude.c: Include verify.h.
74883         (verify): Remove.  All callers changed to use verify.h's version.
74884         * lib/strtoimax.c: Likewise.
74885         * lib/utimecmp.c: Likewis.e
74886
74887         Sync from coreutils.
74888         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
74889         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
74890         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
74891         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
74892         bother returning ENOSYS if settimeofday or stime fails; just let
74893         them return whatever errno they want to return.
74894         * lib/utimens.c: Include unistd.h, for dup2.
74895         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
74896         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
74897
74898 2005-10-02  Jim Meyering  <jim@meyering.net>
74899
74900         Sync from coreutils.
74901         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
74902         from glibc-2.2.5 that fails for read-only files.
74903
74904 2005-10-02  Jim Meyering  <jim@meyering.net>
74905
74906         Sync from coreutils.
74907         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
74908         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
74909         `#if HAVE_CONFIG_H'.
74910         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
74911         Remove AT_FDCWD test.
74912         Do not consume the fd unless successful.
74913         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
74914         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
74915         block, so that we don't even try to compile it if settimeofday is
74916         available.  This works around a compilation failure on OSF1 V5.1,
74917         due to stime requiring a `long int*' while tv_sec is `int'.
74918
74919 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
74920
74921         Sync from coreutils.
74922         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
74923         against `yes', rather than just testing for nonempty.
74924
74925 2005-10-01  Simon Josefsson  <jas@extundo.com>
74926
74927         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
74928         and Darwin.
74929
74930         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
74931         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
74932         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
74933         freeaddrinfo and gai_strerror are declared by the POSIX headers.
74934         Check if struct addrinfo is declared.
74935
74936 2005-10-01  Simon Josefsson  <jas@extundo.com>
74937
74938         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
74939         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
74940         AI_* and EAI_* definitions.  Protect function declarations.
74941
74942 2005-10-01  Jim Meyering  <jim@meyering.net>
74943
74944         Sync from coreutils.
74945
74946         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
74947         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
74948         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
74949         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74950         in the inet and nsl libraries.  Required on Solaris 5.7.
74951
74952 2005-10-01  Jim Meyering  <jim@meyering.net>
74953
74954         Sync from coreutils.
74955         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74956         in the inet and nsl libraries.  Required on Solaris 5.7.
74957
74958 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
74959
74960         * lib/getdelim.c (getdelim): Remove unused variables.
74961
74962 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
74963
74964         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
74965         so that the code works even with ancient cpp.  Portability problem
74966         with GCC 2.7.2.1 reported by Thomas M.Ott.
74967
74968 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
74969
74970         * modules/regex (Depends-on): Add strcase.
74971
74972         * modules/gethostname (Licence): Change from GPL to LGPL, since
74973         gethostname.c is a trivial implementation of a standard library
74974         function.
74975         * modules/poll (License): Change from GPL to LGPL, since it's
74976         derived from LGPL code.
74977
74978 2005-09-27  Jim Meyering  <jim@meyering.net>
74979
74980         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
74981         HAVE_CONFIG_H.
74982
74983         * lib/intprops.h (signed_type_or_expr__): Define.
74984         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
74985         for unsigned types.
74986
74987 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
74988
74989         * lib/verify.h (verify_expr): Remove, replacing with:
74990         (verify_true): New macro that returns true instead of void.
74991         (verify_type__): Remove.
74992         (verify): Use verify_true rather than verify_type__.
74993
74994 2005-09-26  Bruno Haible  <bruno@clisp.org>
74995
74996         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
74997         is necessary.
74998         (lib_SOURCES): Remove mbchar.c.
74999         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
75000         (Files): Add m4/mbrtowc.m4.
75001         * modules/mbiter: Likewise.
75002         * modules/mbuiter: Likewise.
75003
75004 2005-09-26  Bruno Haible  <bruno@clisp.org>
75005
75006         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
75007         compile mbchar.c if they are not both present.
75008         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
75009         * m4/mbiter.m4 (gl_MBITER): Likewise.
75010         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
75011         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
75012         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
75013
75014 2005-09-25  Jim Meyering  <jim@meyering.net>
75015
75016         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
75017         also uses socklen_t.
75018
75019 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
75020
75021         * lib/utimens.c (ENOSYS): Define if not already defined.
75022         (futimens): Support having a null PATH if the file descriptor
75023         is nonnegative.
75024
75025         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
75026         Remove.
75027         (__attribute): Define to empty unless GCC 3.1 or later.
75028         This works around a core dump on OpenBSD 3.4, which has GCC
75029         2.95.3, which dumps core when given __attribute__(()).  It also
75030         simplifies other tests, since we really don't want to bother with
75031         worrying about which ancient version of GCC supported what.
75032         Original problem reported by Yoann Vandoorselaere, with part of
75033         the fix suggested by Derek Price.
75034
75035 2005-09-24  Jim Meyering  <jim@meyering.net>
75036
75037         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
75038         so we can once again use a positive bitfield width of 1 -- now we
75039         don't have to explain why we were using a bitfield width of 2.
75040
75041 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
75042
75043         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
75044         and similarly for the other external symbols.  Problem reported
75045         by James Gallager.
75046
75047         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
75048         bug reported by Jim Meyering.
75049
75050         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
75051         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
75052         not needed, since socklen is a prerequisite module.
75053
75054 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
75055
75056         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
75057         Problem reported by Eric Blake.
75058         (getaddrinfo): Initialize se so that it's not garbage.
75059         Redo internal storage allocation so that it doesn't make unportable
75060         assumptions about alignment.
75061         Fix a memory leak.
75062
75063         * lib/utimens.c (futimens): Use futimesat if available.
75064         Prefer it to futimes since it doesn't have the futimes bug.
75065
75066         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
75067         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
75068         Instead, declare a function that returns a pointer to an array,
75069         and use verify_type__ to declare the size of the array.
75070         Problem and germ of a solution reported by Bruno Haible.
75071         (verify_type__): Use 2, not 1, for bitfield size, to avoid
75072         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
75073
75074 2005-09-23  Jim Meyering  <jim@meyering.net>
75075
75076         Sync from coreutils.
75077         Correct build failure (socklen_t not defined) on at least
75078         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
75079         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
75080
75081 2005-09-23  Jim Meyering  <jim@meyering.net>
75082
75083         * modules/getaddrinfo (Depends-on): Add socklen.
75084
75085 2005-09-23  Bruno Haible  <bruno@clisp.org>
75086
75087         * tests/test-verify.c: New file.
75088
75089 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75090
75091         Sync from coreutils.
75092
75093         * modules/argmatch (Depends-on): Add verify.
75094         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
75095         unistd-safer.
75096         * modules/save-cwd (Depends-on): Likewise.
75097
75098         * modules/openat (Files): Add lib/openat-die.c.
75099         (Depends-on): Remove error, exitfail.
75100         Add dirname.
75101
75102         * modules/verify: New file.
75103         * MODULES.html.sh (Diagnostics <assert.h>): New section,
75104         with "verify" module.
75105
75106 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75107
75108         Sync from coreutils.
75109
75110         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
75111         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
75112         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
75113         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
75114         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
75115         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
75116         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
75117         Don't bother checking for string.h, stdlib.h, unistd.h.
75118         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
75119         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
75120         module's job.
75121         * m4/jm-macros.m4 (gl_MACROS): Likewise.
75122         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
75123
75124         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
75125         (gl_GETDATE): Use it.
75126
75127         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
75128
75129 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75130
75131         Sync from coreutils.
75132
75133         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
75134         stat-time.h.
75135         * lib/argmatch.h: Include verify.h
75136         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
75137         (ARGMATCH_ASSERT): Remove; unused.
75138         * lib/canonicalize.c: Assume STDC_HEADERS.
75139         * lib/exclude.c: Include "strcase.h".
75140         * lib/regex_internal.h [!defined _LIBC]: Likewise.
75141         * lib/getusershell.c: Include stdio--.h rather than stdio.h
75142         and stdio-safer.h.
75143         (getusershell): Call fopen, not fopen_safer.
75144         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
75145         Do not include unistd-safer.h.
75146         (save_cwd): Don't call fd_safer; no longer needed
75147         now that we include fcntl--.h.
75148
75149         * lib/getdate.y (relative_time): New type.
75150         (RELATIVE_TIME_0): New constant.
75151         (parser_control): Use relative_time instead of doing it ourselves.
75152         (%union): Add new relative_time rel member.
75153         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
75154         Now typeless.
75155         (relunit, relunit_snumber): Now of type rel.
75156         (zone, rel, relunit, get_date): Adjust to above changes.
75157
75158         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
75159         Do not include unistd-safer.h.
75160         (getloadavg): Don't call fd_safer; no longer needed
75161         now that we include fcntl--.h.
75162
75163         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
75164         (make_dir_parents): Treat ENOSYS like EEXIST.
75165
75166         Improve quality of diagnostics on restore_cwd failure.
75167         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
75168         (make_dir_parents): Last arg is now int * (for errno), not bool *.
75169         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
75170         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
75171         each time through the loop.  Do not diagnose restore_cwd failure;
75172         that is the caller's job (and perhaps the caller does not care).
75173
75174         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
75175         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
75176         If the file already exists but is not a directory, don't bother
75177         to try to make its parents.
75178         Close potential file descriptor leak if we can't chdir("/") (!).
75179         Don't always return true if chdir($PWD) fails; return true only
75180         if the requested action was done successfully (except for the
75181         chdir($PWD)).
75182         Don't log final directory unless we actually made it.
75183         Refactor to avoid duplicate code to fix up permissions.
75184         Don't attempt to fix up parent permissions if chdir($PWD) fails.
75185
75186         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
75187         to make it a bit faster and (I hope) clearer.
75188         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
75189         Fix bug in formats like %2N.
75190
75191         * lib/verify.h: New file.
75192
75193 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75194
75195         Sync from coreutils.
75196         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
75197
75198 2005-09-22  Jim Meyering  <jim@meyering.net>
75199
75200         Sync from coreutils.
75201
75202         * m4/lstat.m4 (gl_FUNC_LSTAT):
75203         Use AC_LIBSOURCES to require lstat.c and lstat.h.
75204         Remove obsolete comment.
75205         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
75206         * m4/xstrtod.m4: Likewise.
75207
75208         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
75209
75210 2005-09-22  Jim Meyering  <jim@meyering.net>
75211
75212         Sync from coreutils.
75213
75214         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
75215
75216         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
75217         the .tm_year member, since otherwise gcc-4.0 would now warn about
75218         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
75219
75220         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
75221         order to avoid an unsuppressible warning from gcc on 64-bit systems.
75222
75223         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
75224         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
75225         when run in a time zone for which daylight savings time is in effect
75226         for the starting date.
75227
75228         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
75229         stop us from restricting permissions of just-created absolute-named
75230         directories.
75231         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
75232         to restore initial working directory.
75233         * lib/mkdir-p.c (make_dir_parents): New parameter:
75234         different_working_dir, to tell caller if/when we change the working
75235         directory and are unable to return to the initial one.
75236         * lib/mkdir-p.h (make_dir_parents): Update prototype.
75237         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
75238         `return false'.  This fixes a bug introduced on 2004-07-30.
75239
75240         * lib/openat.c (fdopendir): Be sure to close the supplied
75241         file descriptor before returning.  This makes our replacement
75242         implementation a little closer to Solaris's, where fdopendir
75243         ties the file descriptor to the returned DIR* pointer.
75244         * lib/openat.c (unlinkat): New function.
75245         * lib/openat.h (unlinkat): Add prototype.
75246         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
75247         (openat_restore_fail): Rename from openat_restore_die.
75248         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
75249
75250         Provide an alternative to exiting immediately upon save_cwd or
75251         restore_cwd failure.  Now, an application can arrange e.g.,
75252         to perform a longjump in that case.
75253         * lib/openat.c: Include dirname.h.
75254         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
75255         (rpl_openat, fdopendir, fstatat): Call openat_save_die
75256         and openat_restore_die rather than calling error directly.
75257         Don't include "error.h" or "exitfail.h"; they're no longer needed.
75258
75259         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
75260         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
75261         define.
75262
75263         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
75264         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
75265                             int utc, int nanoseconds);
75266         Background:
75267         date should not have to allocate a megabyte of virtual memory to
75268         handle a format argument like +%1048575T.  When implemented with
75269         strftime, it must allocate such a buffer, use strftime to fill it
75270         in, print it, then free it.
75271         With fprintftime, it simply prints everything and exits.
75272         With no need for memory allocation, that's one fewer way to fail.
75273         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
75274         optional field width, not before, so we accept %9:z, not %:9z.
75275         (my_strftime): Be sure to use L_('x') for literals.
75276
75277         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
75278         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
75279         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
75280         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
75281         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
75282         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
75283         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
75284         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
75285         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
75286         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
75287         * lib/xgethostname.c, lib/xreadlink.c:
75288         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
75289
75290         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
75291         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
75292         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
75293         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
75294         and don't include <sys/file.h>).
75295
75296 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
75297
75298         Sync from coreutils.
75299
75300         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
75301         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
75302         [!LDAV_DONE]: Avoid unused variable warning.
75303
75304 2005-09-21  Bruno Haible  <bruno@clisp.org>
75305
75306         * lib/unicodeio.h (unicode_to_mb): New declaration.
75307
75308 2005-09-20  Derek Price  <derek@ximbiot.com>
75309
75310         * lib/getaddrinfo.c: Don't include <netdb.h> included from
75311         getaddrinfo.h.
75312
75313 2005-09-20  Bruno Haible  <bruno@clisp.org>
75314
75315         * gnulib-tool: Remove trailing slashes from the values specified for
75316         --source-base, --m4-base, --tests-base, --aux-dir.
75317         Suggested by Simon Josefsson <jas@extundo.com>.
75318
75319 2005-09-20  Bruno Haible  <bruno@clisp.org>
75320
75321         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
75322         func_modules_to_filelist, func_import, func_create_testdir): Make all
75323         sorting results locale-independent, so that gnulib-cache.m4 doesn't
75324         change when gnulib-tool is invoked in a different locale.
75325
75326 2005-09-19  Simon Josefsson  <jas@extundo.com>
75327
75328         * m4/socklen.m4: Fix typo.
75329
75330 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75331
75332         Use a consistent style for including <config.h>.
75333         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
75334         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
75335         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
75336         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
75337         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
75338         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
75339         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
75340         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
75341         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
75342         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
75343         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
75344         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
75345         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
75346         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
75347         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
75348         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
75349         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
75350         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
75351         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
75352         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
75353         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
75354         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
75355         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
75356         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
75357         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
75358         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
75359         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
75360         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
75361         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
75362         lib/xstrtoumax.c, lib/yesno.c:
75363         Standardize inclusion of config.h.
75364         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
75365         lib/inttostr.h:  Removed inclusion of config.h from header files.
75366         * lib/inttostr.c:  Adjusted in-tree users.
75367         * lib/timespec.h: Remove superfluous warning to include config.h.
75368         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
75369         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
75370         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
75371         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
75372         config.h with HAVE_CONFIG_H.
75373
75374 2005-09-19  Jim Meyering  <jim@meyering.net>
75375
75376         * modules/pathmax (License): Change to LGPL.
75377
75378 2005-09-19  Derek Price  <derek@ximbiot.com>
75379
75380         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
75381
75382 2005-09-19  Bruno Haible  <bruno@clisp.org>
75383
75384         * gnulib-tool (import): Provide default for --tests-base.
75385
75386 2005-09-19  Bruno Haible  <bruno@clisp.org>
75387
75388         * doc/quote.texi: New file, extracted from gnulib.texi.
75389         * doc/ctime.texi: New file, extracted from gnulib.texi.
75390         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
75391         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
75392         * doc/gnulib.texi: Include them.
75393
75394 2005-09-18  Bruno Haible  <bruno@clisp.org>
75395
75396         Portability fix.
75397         * gnulib-tool (func_readlink): New function.
75398         (func_ln_if_changed): Use it.
75399
75400 2005-09-18  Bruno Haible  <bruno@clisp.org>
75401
75402         * gnulib-tool: Support --with-tests also with --import.
75403         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
75404         (func_import): Use variables $testsbase and $inctests. Emit a
75405         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
75406         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
75407         SUBDIRS += $testsdir.
75408         (func_create_testdir): Update.
75409
75410 2005-09-18  Bruno Haible  <bruno@clisp.org>
75411
75412         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
75413         instead of $dry_run.
75414         (func_cp_if_changed, func_mv_if_changed): Remove functions.
75415         (func_ln_if_changed): Don't handle dry-run here.
75416         (func_import): In dry-run mode, detect more precisely which actions
75417         would be performed, and don't use "...ing" verbs.
75418
75419 2005-09-18  Bruno Haible  <bruno@clisp.org>
75420
75421         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
75422         (func_import): Use join on two temporary files instead of three nested
75423         loops, in order to determine which files are new or old.
75424
75425 2005-09-18  Bruno Haible  <bruno@clisp.org>
75426
75427         * gnulib-tool (func_import): Comment out code that spits out the
75428         new files with --dry-run.
75429
75430 2005-09-18  Bruno Haible  <bruno@clisp.org>
75431
75432         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
75433
75434 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75435
75436         * lib/stat-time.h: New file.
75437         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
75438         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
75439         in a different way.
75440         (timespec_cmp): New function.
75441         * lib/utimecmp.c: Include stat-time.h.
75442         (SYSCALL_RESOLUTION): Depend on whether various struct stat
75443         members exist, not on the obsolescent ST_MTIM_NSEC.
75444         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
75445
75446 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75447
75448         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
75449
75450 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75451
75452         * MODULES.html.sh (File system functions): Add stat-time.
75453         * modules/stat-time: New file.
75454         * modules/timespec (Files): Remove m4/st_mtim.m4; this
75455         is now done in a different way, by the stat-time module.
75456         * modules/utimecmp (Depends-on): Add stat-time.
75457
75458 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75459
75460         * m4/st_mtim.m4: Remove.  Superseded by...
75461         * m4/stat-time.m4: New file.
75462         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
75463         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
75464
75465 2005-09-15  Derek Price  <derek@ximbiot.com>
75466
75467         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
75468
75469 2005-09-15  Derek Price  <derek@ximbiot.com>
75470
75471         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
75472         * lib/regex_internal.c: Ditto, using this...
75473         (__GNUC_PREREQ): ...new macro.
75474         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
75475         using...
75476         (__GNUC_PREREQ): ...this new macro.
75477
75478         * lib/strstr.h: Include string.h. Define strstr as a macro here.
75479
75480 2005-09-15  Derek Price  <derek@ximbiot.com>
75481             Paul Eggert  <eggert@cs.ucla.edu>
75482
75483         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
75484         changes, consolidating in...
75485         * lib/regex_internal.h: ...this file.
75486
75487 2005-09-13  Jim Meyering  <jim@meyering.net>
75488
75489         * lib/canon-host.c: Filter through gnu indent and reword comments
75490         slightly.
75491         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
75492
75493 2005-09-13  Derek Price  <derek@ximbiot.com>
75494
75495         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
75496         failure.
75497         Reported by Jim Meyering  <jim@meyering.net>.
75498
75499 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75500
75501         * lib/base64.c: Typo.
75502         (base64_encode): Put b64str in initialized data section.
75503
75504 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
75505
75506         Merge glibc and coreutils changes into gnulib, plus a few
75507         extra fixes.
75508         * lib/md5.c: Use #error rather than a string.
75509         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
75510         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
75511         (__attribute__): Define to empty for non recent-GCC.
75512         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
75513         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
75514         Renamed from their non-__ counterparts, with new macros replacing
75515         them if not _LIBC.  Add __THROW attribute.
75516         (rol): Remove.
75517         (struct md5_ctx): Align buffer if using GCC.
75518         * lib/sha1.h (struct sha1_ctx): Likewise.
75519         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
75520         The old name was backwards.
75521         (NOTSWAP): Remove; not used.
75522         (rol): New macro, moved here from md5.h.
75523         (sha1_process_block): Remove a FIXME that doesn't make sense.
75524
75525 2005-09-12  Derek Price  <derek@ximbiot.com>
75526
75527         Return usable errors from canon-host.
75528         * lib/canon-host.h: New file.
75529         * lib/canon-host.c (canon_host): Wrap...
75530         (canon_host_r): ...this new function, which now relies exclusively on
75531         getaddrinfo.
75532         (ch_strerror): New function.
75533         (last_cherror): New global.
75534         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
75535         interface.
75536         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
75537         void *.
75538         (freeaddrinfo): Free ai->ai_canonname when set.
75539
75540 2005-09-12  Derek Price  <derek@ximbiot.com>
75541
75542         Make canon-host require getaddrinfo.
75543         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
75544         AC_LIBSOURCE canon-host.h.  Call...
75545         (gl_PREREQ_CANON_HOST): ...this new function, which requires
75546         gl_GETADDRINFO.
75547         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
75548
75549 2005-09-12  Derek Price  <derek@ximbiot.com>
75550
75551         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
75552         LGPL.
75553         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
75554
75555 2005-09-12  Derek Price  <derek@ximbiot.com>
75556
75557         * lib/gai_strerror.c: Include config.h when available.  Include
75558         getaddrinfo.h before other headers to test interface.
75559         Reported by Larry Jones <lawrence.jones@ugs.com>.
75560
75561 2005-09-12  Derek Price  <derek@ximbiot.com>
75562             Paul Eggert  <eggert@cs.ucla.edu>
75563
75564         * modules/glob (Files): Add glob-libc.h.
75565
75566 2005-09-12  Derek Price  <derek@ximbiot.com>
75567             Paul Eggert  <eggert@cs.ucla.edu>
75568
75569         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
75570         glob_.h, glob-libc.h.
75571         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
75572
75573 2005-09-12  Derek Price  <derek@ximbiot.com>
75574             Paul Eggert  <eggert@cs.ucla.edu>
75575
75576         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
75577         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
75578         protecting things that should be done only in gnulib contexts.
75579         * lib/glob_.h: New file, containing only the glob things needed for
75580         gnulib.
75581         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
75582         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
75583         (glob, globfree, glob_pattern_p): Now defined simply in terms of
75584         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
75585         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
75586         and to respect the namespace rules better.
75587
75588 2005-09-08  Simon Josefsson  <jas@extundo.com>
75589
75590         * modules/socklen: New file.
75591
75592 2005-09-08  Simon Josefsson  <jas@extundo.com>
75593
75594         * m4/socklen.m4: New file.
75595
75596 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75597
75598         * modules/utimens (Files): Add m4/utimbuf.m4, since
75599         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
75600         Reported by Sergey Poznyakoff.
75601
75602 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75603
75604         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
75605         definitions, since that's the preferred style in glibc.
75606         Fix a minor spacing issue, and update copyright notice to match
75607         glibc's.
75608
75609 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75610
75611         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
75612
75613 2005-09-06  Simon Josefsson  <jas@extundo.com>
75614
75615         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
75616         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
75617
75618 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75619
75620         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
75621         warning.
75622
75623 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75624
75625         * config/srclist.txt: Add glibc bug 1302.
75626
75627 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
75628
75629         Change bitset word type from unsigned int to unsigned long int,
75630         as this has better performance on typical 64-bit hosts.
75631         Port bitset code to hosts with unusual word sizes.
75632         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
75633         (build_collating_symbol):
75634         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
75635         argument is a bitset.  This is merely a style issue, but it makes
75636         it clearer that an entire array is expected.
75637         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
75638         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
75639         Port to the case where bitset_word is not the same as unsigned int.
75640         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75641         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
75642         Likewise.
75643         * lib/regexec.c (check_dst_limits_calc_pos_1,
75644         check_subexp_matching_top):
75645         (build_trtable, group_nodes_into_DFAstates):
75646         Likewise.
75647         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
75648         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
75649         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
75650         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
75651         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
75652         * lib/regcomp.c (optimize_subexps, lower_subexp):
75653         Work even if bitset_word has holes in its bitwise representation.
75654         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
75655         * lib/regexec.c (check_dst_limits_calc_pos_1,
75656         check_subexp_matching_top):
75657         Likewise.
75658         * lib/regex_internal.c (re_string_reconstruct):
75659         Don't assume UCHAR_MAX == 255.
75660         * lib/regex_internal.h (bitset_set_all): Likewise.
75661         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
75662         All uses changed.
75663         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
75664         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
75665         All uses changed.
75666         (BITSET_WORD_MAX): New macro.
75667         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
75668         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
75669         (bitset_empty, bitset_copy):
75670         Prefer sizeof (bitset) to multiplying it out ourselves.
75671         (bitset_not_merge): Remove; unused.
75672         (bitset_contain): Return bool, not unsigned int with one bit on.
75673         All callers changed.
75674         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
75675         alignment than re_node_set; do this by defining a new internal
75676         type struct dests_alloc and using it to allocate memory.
75677
75678 2005-09-05  Bruno Haible  <bruno@clisp.org>
75679
75680         * gnulib-tool (func_import): Fix comparison in handling of symbolic
75681         links.
75682
75683 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
75684
75685         * modules/size_max (Makefile.am): Add size_max.h
75686
75687 2005-09-04  Derek Price  <derek@ximbiot.com>
75688
75689         * gnulib-tool (func_import): Fix reversed $symbolic logic.
75690
75691 2005-09-03  Simon Josefsson  <jas@extundo.com>
75692
75693         * gnulib-tool: Fix typo.
75694
75695 2005-09-03  Simon Josefsson  <jas@extundo.com>
75696
75697         * config/srclist.txt: Add glibc bug 1293.
75698
75699 2005-09-03  Derek Price  <derek@ximbiot.com>
75700
75701         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
75702         From Larry Jones <lawrence.jones@ugs.com>.
75703
75704 2005-09-02  Simon Josefsson  <jas@extundo.com>
75705
75706         * modules/socklen: New file.
75707
75708 2005-09-02  Simon Josefsson  <jas@extundo.com>
75709
75710         * modules/havelib: New module.
75711
75712         * modules/gettext, modules/iconv, modules/lock, modules/readline:
75713         Use havelib.
75714
75715 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
75716
75717         Check for arithmetic overflow when calculating sizes, to prevent
75718         some buffer-overflow issues.  These patches are conservative, in the
75719         sense that when I couldn't determine whether an overflow was possible,
75720         I inserted a run-time check.
75721         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
75722         macros.
75723         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
75724         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
75725         (re_xnrealloc, re_x2nrealloc): New inline functions.
75726         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
75727         parse_bracket_exp):
75728         (build_equiv_class, build_charclass): Check for arithmetic overflow
75729         in size expression calculations.
75730         * lib/regex_internal.c (re_string_realloc_buffers):
75731         (build_wcs_upper_buffer, re_node_set_add_intersect):
75732         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
75733         (re_dfa_add_node, register_state): Likewise.
75734         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
75735         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
75736         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
75737         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
75738
75739 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
75740
75741         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
75742         m4/ulonglong.m4.  Problem reported by Martin Lambers.
75743
75744 2005-09-02  Bruno Haible  <bruno@clisp.org>
75745
75746         Support for lib vs. lib64 distinction on biarch platforms.
75747         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
75748         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
75749         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
75750
75751 2005-09-02  Bruno Haible  <bruno@clisp.org>
75752
75753         * gnulib-tool (import): In the other first-use case, provide defaults
75754         as well.
75755
75756 2005-09-02  Bruno Haible  <bruno@clisp.org>
75757
75758         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
75759         patches not yet found in the latest gettext release.
75760
75761 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75762
75763         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
75764         to avoid a collision with bits/local_lim.h in glibc.
75765         All uses changed.  Problem reported by Dmitry V. Levin in
75766         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
75767
75768         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
75769         bugs in int versus size_t comparisons.
75770         (re_string_context_at): Fix bug where the code assumed that
75771         Idx is signed.
75772
75773         Use bool where appropriate.
75774         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
75775         All callers changed.
75776         (calc_eclosure_iter): Likewise, for ROOT arg.
75777         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
75778         (build_charclass_op): Likewise, for NON_MATCH arg.
75779         * lib/regex_internal.c (re_string_allocate, re_string_construct):
75780         (re_string_construct_common): Likewise, for ICASE arg.
75781         * lib/regexec.c (re_search_2_stub, re_search_stub):
75782         Likewise, for RET_LEN arg.
75783         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
75784         (set_regs): Likewise, for FL_BACKTRACK arg.
75785         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
75786         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
75787         (calc_eclosure_iter, parse_bracket_exp):
75788         Use bool for internal variables that are booleans.
75789         * lib/regexec.c (re_search_internal, check_matching,
75790         proceed_next_node):
75791         (set_regs, build_sifted_states, sift_states_bkref):
75792         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
75793         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
75794         (find_collation_sequence_value):
75795         Likewise.
75796         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
75797         (re_node_set_compare):
75798         Return bool, not int. All callers changed.
75799         * lib/regexec.c (check_halt_node_context, check_dst_limits):
75800         (build_trtable, check_node_accept): Likewise.
75801         * lib/regex_internal.h: Include stdbool.h.
75802
75803         Fix bugs uncovered when converting to bool.
75804         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
75805         failure instead of charging ahead blindly.
75806         * lib/regex_internal.c (register_state): Likewise.
75807         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
75808         for freeing internal storage.
75809         (group_nodes_into_DFA_states): Use unsigned int, not int, for
75810         bitset pieces used as boolean, to avoid undefined behavior
75811         on hosts that do int overflow checking.
75812
75813 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75814
75815         * config/srclist.txt: Add glibc bugs 1285-1287.
75816
75817 2005-09-01  Jim Meyering  <jim@meyering.net>
75818
75819         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
75820         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
75821         Require gl_STAT_MACROS, too.
75822
75823 2005-09-01  Bruno Haible  <bruno@clisp.org>
75824
75825         * gnulib-tool (import): In the first-use case, provide defaults.
75826
75827 2005-09-01  Bruno Haible  <bruno@clisp.org>
75828
75829         * gnulib-tool (func_import): Remove the .tmp files.
75830
75831 2005-09-01  Bruno Haible  <bruno@clisp.org>
75832
75833         * gnulib-tool (func_import): Fix handling of symbolic links.
75834
75835 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75836
75837         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
75838         old glibc regex code mishandles strings longer than 2**31 bytes.
75839         This patch fixes this when the regex code is used in gnulib
75840         (i.e., outside glibc).
75841
75842         This patch should not affect the use of the regex code inside
75843         glibc.  No doubt this problem also needs to be handled for glibc
75844         as well, but the result will be an incompatible change to the
75845         glibc ABI, and the old ABI will have to be supported too.  That
75846         can be the the subject for another patch.
75847
75848         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
75849         governing whether the rest of this patch is active.  By default,
75850         the macro is disabled and the patch has no effect.
75851         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
75852         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
75853         (struct re_pattern_buffer, re_search, re_search_2, re_match):
75854         (re_match_2, re_set_registers): Use the new types.
75855         * lib/regex_internal.h (Idx, re_hashval_t): New types.
75856         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
75857         New macros.
75858         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
75859         (re_string_context_at, bin_tree_t, re_dfastate_t):
75860         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
75861         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
75862         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
75863         (re_string_char_size_at, re_string_wchar_at):
75864         (re_string_elem_size_at):
75865         Use the new types and macros to port to 64-bit hosts.
75866         Use unsigned types for internal values, so that the code
75867         mostly works even for arrays larger than SSIZE_MAX.
75868         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
75869         (search_duplicated_node, calc_eclosure_iter, fetch_number):
75870         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
75871         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
75872         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
75873         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
75874         (calc_inveclosure, parse_dup_op, build_range_exp):
75875         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
75876         (fetch_number, create_token_tree, mark_opt_subexp):
75877         Likewise.
75878         * lib/regex_internal.c (re_string_construct_common,
75879         create_ci_newstate):
75880         (create_cd_newstate, re_string_allocate, re_string_construct):
75881         (re_string_realloc_buffers, build_wcs_upper_buffer):
75882         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
75883         (re_string_reconstruct, re_string_peek_byte_case):
75884         (re_string_fetch_byte_case, re_string_context_at):
75885         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
75886         (re_node_set_init_copy, re_node_set_add_intersect):
75887         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75888         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75889         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
75890         (re_acquire_state, re_acquire_state_context, register_state):
75891         Likewise.
75892         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
75893         search_cur_bkref_entry):
75894         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
75895         (re_search_internal, re_search_2_stub, re_search_stub)
75896         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
75897         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
75898         (update_cur_sifted_state, check_dst_limits):
75899         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75900         (check_subexp_limits, sift_states_bkref, merge_state_array):
75901         (check_subexp_matching_top, get_subexp, get_subexp_sub):
75902         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
75903         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
75904         (expand_bkref_cache, check_node_accept_bytes):
75905         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
75906         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
75907         (acquire_init_state_context, check_halt_node_context):
75908         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
75909         (sift_states_backward, clean_state_log_if_needed):
75910         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
75911         (find_recover_state, transit_state_sb, transit_state_mb):
75912         (transit_state_bkref, build_trtable, match_ctx_clean):
75913         Likewise.
75914         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
75915         to work around an assumption that REG_MISSING is negative.
75916
75917         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
75918         (seek_collating_symbol_entry) [defined _LIBC]:
75919         (lookup_collation_sequence_value) [defined _LIBC]:
75920         (build_range_exp, build_collating_symbol) [defined _LIBC]:
75921         Use prototypes rather than old-style function definitions.
75922         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
75923         (transit_state_sb) [0]:
75924         (find_collation_sequence_value) [defined _LIBC]: Likewise.
75925
75926         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
75927         rm_eo.
75928
75929         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
75930         (optimize_subexps, lower_subexp):
75931         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
75932         since the signed shift might overflow.  Use 1u<<31 instead.
75933         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75934         Likewise.
75935         * lib/regexec.c (check_dst_limits_calc_pos_1,
75936         check_subexp_matching_top): Likewise.
75937
75938         * lib/regcomp.c (optimize_subexps, lower_subexp):
75939         Use CHAR_BIT rather than 8, for clarity.
75940         * lib/regexec.c (check_dst_limits_calc_pos_1):
75941         (check_subexp_matching_top): Likewise.
75942         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
75943         have to worry about portability issues when shifting it left.
75944         Remove no-longer-needed test for table_size > 0.
75945         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
75946         in a word, as the resulting behavior is undefined.
75947         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
75948         in one case, a <= should have been an <, and in another case the
75949         whole test was missing.
75950         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
75951         the standard name CHAR_BIT.
75952         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
75953         this is not true on one's complement and signed-magnitude hosts.
75954
75955         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
75956         next_last_offset.
75957         (struct re_dfa_t): Remove unused member states_alloc.
75958         * lib/regcomp.c (init_dfa): Don't initialize unused members.
75959
75960 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75961
75962         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
75963         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
75964         and large-file glibc and in 32-bit large-file Solaris.
75965
75966 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75967
75968         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
75969         lengths fit in regoff_t; this isn't true if regoff_t is the same
75970         width as size_t.
75971         * lib/regex.c (re_search_internal): 5th arg is LAST_START
75972         (= START + RANGE) instead of RANGE.  This avoids overflow
75973         problems when regoff_t is the same width as size_t.
75974         All callers changed.
75975         (re_search_2_stub): Check for overflow when adding the
75976         sizes of the two strings.
75977         (re_search_stub): Check for overflow when adding START
75978         to RANGE; if it occurs, substitute the extreme value.
75979
75980 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75981
75982         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
75983
75984 2005-08-31  Jim Meyering  <jim@meyering.net>
75985
75986         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
75987         a pointer-to-const.
75988         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
75989         (register_state): Likewise.
75990         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
75991         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75992         (group_nodes_into_DFAstates): Likewise.
75993
75994 2005-08-31  Jim Meyering  <jim@meyering.net>
75995
75996         * check-module: Add a FIXME comment.
75997
75998 2005-08-31  Eric Blake  <ebb9@byu.net>
75999
76000         * modules/unistd-safer (Files): Add unistd--.h.
76001         * modules/stdio-safer (Files): Add stdio--.h.
76002
76003 2005-08-31  Derek Price  <derek@ximbiot.com>
76004
76005         * lib/getdelim.c (getdelim): Return EOF on EOF.
76006         Reported by Larry Jones <lawrence.jones@ugs.com>.
76007
76008 2005-08-31  Bruno Haible  <bruno@clisp.org>
76009
76010         Avoid unnecessary diffs in the generated lib/Makefile.am.
76011         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
76012         the generated files.
76013         (func_import): Don't set cmd.
76014
76015 2005-08-31  Bruno Haible  <bruno@clisp.org>
76016
76017         * lib/strstr.c: Include <stddef.h>, for NULL.
76018         * lib/strcasestr.c: Likewise.
76019         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76020
76021 2005-08-31  Bruno Haible  <bruno@clisp.org>
76022
76023         * gnulib-tool: New option --macro-prefix.
76024         (func_import): Use macro_prefix.
76025         (import): Handle option --macro-prefix.
76026
76027 2005-08-31  Bruno Haible  <bruno@clisp.org>
76028
76029         * gnulib-tool (import): Rename most ac_* variables to cached_*.
76030         Also use new variables cached_lgpl, cached_libtool.
76031
76032 2005-08-31  Bruno Haible  <bruno@clisp.org>
76033
76034         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
76035         always instantiating them.
76036
76037 2005-08-31  Bruno Haible  <bruno@clisp.org>
76038
76039         * gnulib-tool (func_import): Read the previous cached settings
76040         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
76041         earlier added by gnulib but are now dropped. Warn when a gnulib file
76042         overwrites a non-gnulib file.
76043
76044 2005-08-31  Bruno Haible  <bruno@clisp.org>
76045
76046         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
76047         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
76048         projects that don't keep autogenerated files in CVS. Put into
76049         actioncmd only the specified modules, not the transitive closure.
76050
76051 2005-08-31  Bruno Haible  <bruno@clisp.org>
76052
76053         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
76054         Create directories that shall be filled.
76055         (import): Don't look for gl_* macros in configure.ac. Recurse across
76056         all directories containing a gnulib-cache.m4 files, if meaningful.
76057
76058 2005-08-31  Bruno Haible  <bruno@clisp.org>
76059
76060         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
76061         (import): Set seen_libtool when we see gl_LIBTOOL.
76062
76063 2005-08-31  Bruno Haible  <bruno@clisp.org>
76064
76065         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
76066         declaration macro definitions from generated gnulib.m4.
76067
76068 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
76069
76070         * lib/iconvme.h: Add prototype for iconv_alloc.
76071
76072 2005-08-29  Simon Josefsson  <jas@extundo.com>
76073
76074         * lib/iconvme.c: Fix errno.
76075
76076 2005-08-29  Bruno Haible  <bruno@clisp.org>
76077
76078         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
76079         that it works when the directory contains spaces.
76080
76081 2005-08-29  Bruno Haible  <bruno@clisp.org>
76082
76083         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
76084
76085 2005-08-29  Bruno Haible  <bruno@clisp.org>
76086
76087         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
76088         Emit more advice.
76089
76090 2005-08-29  Bruno Haible  <bruno@clisp.org>
76091         and Stepan Kasal  <kasal@ucw.cz>
76092
76093         * check-module: If more parameters are given, check each of them
76094         separately; add more exceptions, as noted by Jim Meyering.
76095         (check_module): New procedure.
76096         (%exempt_header): Now contains all exceptions.
76097
76098 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
76099
76100         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
76101
76102 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
76103
76104         * lib/iconvme.c: Split iconv_string into iconv_alloc.
76105
76106 2005-08-28  Bruno Haible  <bruno@clisp.org>
76107
76108         * m4/gnulib-tool.m4: New file.
76109
76110 2005-08-27  Jim Meyering  <jim@meyering.net>
76111
76112         * modules/unistd-safer (Files): Add pipe-safer.c.
76113         * modules/fcntl-safer (Files): Add creat-safer.c.
76114
76115 2005-08-27  Jim Meyering  <jim@meyering.net>
76116
76117         * m4/stdlib-safer.m4: New file.  From coreutils.
76118         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
76119         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
76120         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
76121         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
76122         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
76123
76124 2005-08-27  Jim Meyering  <jim@meyering.net>
76125
76126         * lib/fopen-safer.c: Merge minor changes from coreutils.
76127         * lib/dup-safer.c: Likewise.
76128         * lib/fd-safer.c: Likewise.
76129
76130         Merge from coreutils.
76131         * lib/stdio--.h: New file.
76132         * lib/stdlib--.h: New file.
76133         * lib/mkstemp-safer.c: New file.
76134
76135         GNU tar needs these.
76136         * lib/pipe-safer.c: New file.
76137         * lib/creat-safer.c: New file.
76138         * lib/fcntl--.h (creat): Define to creat_safer.
76139         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
76140         * lib/unistd--.h (pipe): Define to pipe_safer.
76141         * lib/unistd-safer.h: Declare pipe_safer.
76142
76143 2005-08-26  Simon Josefsson  <jas@extundo.com>
76144
76145         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
76146         Haible <bruno@clisp.org>.
76147
76148 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
76149
76150         * lib/regex_internal.h: Remove all references to
76151         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
76152         or better.
76153         (bitset_not, bitset_merge, bitset_not_merge):
76154         (bitset_mask, re_string_allocate, re_string_construct):
76155         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
76156         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
76157         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
76158         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
76159         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76160         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76161         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
76162         (re_acquire_state_context):
76163         Remove unnecessary forward decls.
76164         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
76165         Put __attribute at function definition,
76166         now that the function decl has been removed.
76167         * lib/regex_internal.c (re_string_peek_byte_case):
76168         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
76169         Likewise.
76170
76171 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
76172
76173         * m4/regex.m4: Add AC_PREREQ(2.50).
76174         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
76175
76176 2005-08-25  Simon Josefsson  <jas@extundo.com>
76177
76178         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
76179         __fsetlocking.
76180
76181 2005-08-25  Simon Josefsson  <jas@extundo.com>
76182
76183         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
76184         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
76185         GLIBC specific code.
76186
76187 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76188
76189         Make regex safe for g++.  This fixes one real bug (an "err"
76190         that should have been "*err").  g++ problem reported by
76191         Sam Steingold.
76192         * lib/regex_internal.h (re_calloc): New macro, consistent with
76193         re_malloc etc.  All callers of calloc changed to use re_calloc.
76194         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
76195         not int.  All callers changed.
76196         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
76197         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
76198         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
76199         (find_recover_state): Change "err" to "*err"; this fixes what
76200         appears to be a real bug.
76201         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
76202         versus int.
76203
76204 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76205
76206         * modules/regex (Depends-on): Add malloc, since the code
76207         assumes that !malloc(0) means failure.
76208
76209 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76210
76211         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
76212
76213         alloca modernization/simplification for regex.
76214         * lib/regex.c: Remove portability cruft for alloca.  This no longer
76215         needs to be at the start of the file, and can be moved into
76216         regex_internal.h and simplified.
76217         * lib/regex_internal.h: Include <alloca.h>.
76218         (__libc_use_alloca) [!defined _LIBC]: New macro.
76219         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
76220         now works outside glibc.
76221
76222 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76223
76224         * config/srclist.txt: Add glibc bugs 1241, 1245.
76225
76226 2005-08-25  Jim Meyering  <jim@meyering.net>
76227
76228         * lib/open-safer.c: Include <config.h>.
76229         Otherwise, we'd lose LARGEFILE support in any file using
76230         e.g. "fcntl--.h"
76231
76232 2005-08-25  Bruno Haible  <bruno@clisp.org>
76233
76234         * m4/minmax.m4: Require autoconf 2.52.
76235         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
76236         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
76237         alternatives of translit over the alphabet.
76238         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
76239
76240 2005-08-24  Simon Josefsson  <jas@extundo.com>
76241
76242         * tests/test-getpass.c: New file.
76243
76244 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76245
76246         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
76247         for GNU regex features.
76248
76249 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76250
76251         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
76252         * lib/regex.h (regerror): Likewise.
76253
76254         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
76255         requires this.  (The code never needed it.)
76256
76257         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
76258         All uses of recently-renamed identifiers changed to use the new,
76259         POSIX-compliant names.  The code will build and run just fine
76260         without these changes, but it's better to eat our own dog food
76261         and use the standard-conforming names.
76262
76263         * lib/regex.h: Fix a multitude of POSIX name space violations.
76264         These changes have an effect only for programs that define
76265         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
76266         do not change anything for programs compiled in the normal way.
76267         Also, there is no effect on the ABI.
76268
76269         (_REGEX_SOURCE): New macro.
76270         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
76271         defined and _GNU_SOURCE is not; this fixes a name space violation.
76272
76273         Rename the following macros to obey POSIX requirements.
76274         The old names are still visible as macros if _REGEX_SOURCE is defined.
76275         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
76276         RE_BACKSLASH_ESCAPE_IN_LISTS.
76277         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
76278         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
76279         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
76280         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
76281         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
76282         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
76283         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
76284         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
76285         (REG_INTERVALS): renamed from RE_INTERVALS.
76286         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
76287         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
76288         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
76289         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
76290         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
76291         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
76292         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
76293         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
76294         RE_UNMATCHED_RIGHT_PAREN_ORD.
76295         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
76296         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
76297         (REG_DEBUG): renamed from RE_DEBUG.
76298         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
76299         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
76300         unusual, since we can't clash with the POSIX REG_ICASE.
76301         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
76302         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
76303         (REG_NO_SUB): renamed from RE_NO_SUB.
76304         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
76305         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
76306         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
76307         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
76308         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
76309         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
76310         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
76311         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
76312         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
76313         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
76314         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
76315         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
76316         RE_SYNTAX_POSIX_MINIMAL_BASIC.
76317         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
76318         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
76319         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
76320         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
76321         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
76322         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
76323         (REG_FIXED): Renamed from REGS_FIXED.
76324         (REG_NREGS): Renamed from RE_NREGS.
76325
76326         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
76327         of other REG_* macros, since POSIX says the user is allowed to
76328         #undef these macros selectively.
76329
76330         (reg_errcode_t): Update comment stating what other tables need
76331         to be consistent.
76332
76333         Rename the following enum values to obey POSIX requirements.
76334         The old names are still visible as macros.
76335         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
76336         is not defined, since GNU is supposed to be a superset of POSIX as
76337         much as possible, and since we want reg_errcode_t to be a signed
76338         type for implementation consistency.
76339         (_REG_NOERROR): Renamed from REG_NOERROR.
76340         (_REG_NOMATCH): Renamed from REG_NOMATCH.
76341         (_REG_BADPAT): Renamed from REG_BADPAT.
76342         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
76343         (_REG_ECTYPE): Renamed from REG_ECTYPE.
76344         (_REG_EESCAPE): Renamed from REG_EESCAPE.
76345         (_REG_ESUBREG): Renamed from REG_ESUBREG.
76346         (_REG_EBRACK): Renamed from REG_EBRACK.
76347         (_REG_EPAREN): Renamed from REG_EPAREN.
76348         (_REG_EBRACE): Renamed from REG_EBRACE.
76349         (_REG_BADBR): Renamed from REG_BADBR.
76350         (_REG_ERANGE): Renamed from REG_ERANGE.
76351         (_REG_ESPACE): Renamed from REG_ESPACE.
76352         (_REG_BADRPT): Renamed from REG_BADRPT.
76353         (_REG_EEND): Renamed from REG_EEND.
76354         (_REG_ESIZE): Renamed from REG_ESIZE.
76355         (_REG_ERPAREN): Renamed from REG_ERPAREN.
76356         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
76357         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
76358         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
76359         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
76360
76361         (_REG_RE_NAME, _REG_RM_NAME): New macros.
76362         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
76363         changed.  But support the old name if the new one is not defined
76364         and if _REGEX_SOURCE.
76365
76366         Change the following member names in struct re_pattern_buffer.
76367         The old names are still supported if !_REGEX_SOURCE.
76368         The new names are always supported, regardless of _REGEX_SOURCE.
76369         (re_buffer): Renamed from buffer.
76370         (re_allocated): Renamed from allocated.
76371         (re_used): Renamed from used.
76372         (re_syntax): Renamed from syntax.
76373         (re_fastmap): Renamed from fastmap.
76374         (re_translate): Renamed from translate.
76375         (re_can_be_null): Renamed from can_be_null.
76376         (re_regs_allocated): Renamed from regs_allocated.
76377         (re_fastmap_accurate): Renamed from fastmap_accurate.
76378         (re_no_sub): Renamed from no_sub.
76379         (re_not_bol): Renamed from not_bol.
76380         (re_not_eol): Renamed from not_eol.
76381         (re_newline_anchor): Renamed from newline_anchor.
76382
76383         Change the following member names in struct re_registers.
76384         The old names are still supported if !_REGEX_SOURCE.
76385         The new names are always supported, regardless of _REGEX_SOURCE.
76386         (rm_num_regs): Renamed from num_regs.
76387         (rm_start): Renamed from start.
76388         (rm_end): Renamed from end.
76389
76390         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
76391         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
76392         Prepend __ to parameter names.
76393
76394         Undo yesterday's changes.
76395
76396 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76397
76398         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
76399         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
76400         lib/regex.c.
76401
76402 2005-08-24  Jim Meyering  <jim@meyering.net>
76403
76404         Sync from coreutils.
76405         * m4/fcntl-safer.m4: New file.
76406
76407         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
76408         and object files for this module.
76409
76410 2005-08-24  Jim Meyering  <jim@meyering.net>
76411
76412         Sync from coreutils.
76413         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
76414
76415 2005-08-24  Jim Meyering  <jim@meyering.net>
76416
76417         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
76418         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
76419
76420 2005-08-24  Jim Meyering  <jim@meyering.net>
76421
76422         * modules/fcntl-safer: New module.
76423         * modules/fts (Depends-on): Add fcntl-safer.
76424         * MODULES.html.sh (File descriptor based Input/Output):
76425         Add fcntl-safer.
76426
76427 2005-08-24  Bruno Haible  <bruno@clisp.org>
76428
76429         Support for unit test modules.
76430         * modules/README: Mention tests modules.
76431         * modules/TEMPLATE-TESTS: New file.
76432         * gnulib-tool: New options --extract-tests-module, --with-tests and
76433         --tests-base (unused for the moment).
76434         (testsbase, inctests): New variables.
76435         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
76436         (func_verify_module): Exclude TEMPLATE-TESTS.
76437         (func_verify_nontests_module, func_verify_tests_module): New functions.
76438         (func_get_dependencies): Add implicit dependency for tests modules.
76439         (func_get_tests_module): New function.
76440         (func_modules_transitive_closure): When --with-tests was specified,
76441         include the unit tests as well, unless explicitly avoided.
76442         (func_emit_lib_Makefile_am): Ignore the tests modules here.
76443         (func_emit_tests_Makefile_am): New function.
76444         (func_create_testdir): When --with-tests was specified, emit a
76445         tests/ directory.
76446         * MODULES.html.sh (Future developments): Update.
76447
76448 2005-08-24  Bruno Haible  <bruno@clisp.org>
76449
76450         * modules/tls-tests: New file.
76451         * tests/test-tls.c: New file, from GNU gettext.
76452
76453 2005-08-24  Bruno Haible  <bruno@clisp.org>
76454
76455         * modules/lock-tests: New file.
76456         * tests/test-lock.c: New file, from GNU gettext.
76457
76458 2005-08-24  Bruno Haible  <bruno@clisp.org>
76459
76460         * lib/lock.h: Add multiple inclusion guard.
76461         * lib/tls.h: Add multiple inclusion guard.
76462
76463 2005-08-24  Bruno Haible  <bruno@clisp.org>
76464
76465         * gnulib-tool: Add support for the --aux-dir option to
76466         --create-testdir, --create-megatestdir, --test, --megatest.
76467         (func_create_testdir, func_create_megatestdir): Optionally emit a
76468         AC_CONFIG_AUX_DIR directive.
76469         (create-testdir, create-megatestdir, test, megatest): Provide a
76470         default value for $auxdir.
76471
76472 2005-08-24  Bruno Haible  <bruno@clisp.org>
76473
76474         * gnulib-tool (import): Use compound statement instead of subshell
76475         where possible.
76476
76477 2005-08-24  Bruno Haible  <bruno@clisp.org>
76478
76479         * gnulib-tool (import): Change --aux-dir default to "build-aux".
76480
76481 2005-08-24  Bruno Haible  <bruno@clisp.org>
76482
76483         * gnulib-tool (func_version): Update.
76484
76485 2005-08-24  Bruno Haible  <bruno@clisp.org>
76486
76487         * gnulib-tool (func_import, func_create_testdir,
76488         func_create_megatestdir): Quote all autoconf macro arguments.
76489
76490 2005-08-24  Bruno Haible  <bruno@clisp.org>
76491
76492         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
76493         option --force, because --force causes the aclocal.m4 of each
76494         subdirectory to be newer than the corresponding config.h.in.
76495
76496 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76497
76498         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
76499         All contents moved to gl_REGEX.
76500         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
76501         assume that it does.
76502
76503 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76504
76505         * lib/regex.h (REG_NOSYS)
76506         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
76507         Define, since POSIX requires it as of 2001.
76508         (_REG_ENOSYS)
76509         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
76510         New private symbol, used to keep the enum signed in all cases.
76511         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
76512         Youngman in
76513         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
76514
76515         * lib/regex_internal.c (re_string_skip_chars, register_state):
76516         (calc_state_hash):
76517         Remove forward decls; no longer needed now that we use prototypes.
76518         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
76519         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
76520         (clean_state_log_if_needed): Likewise.
76521
76522 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76523
76524         * config/srclist.txt: Add glibc bugs 1231-1233.
76525
76526 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76527
76528         Fix problems reported by Sam Steingold in
76529         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
76530         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
76531         assumed that reg_errcode_t is a signed type, which is not
76532         necessarily true if _XOPEN_SOURCE is not defined.
76533         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
76534         since some compilers warn about it otherwise.
76535
76536 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76537
76538         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
76539         (init_word_char, create_initial_state, duplicate_node_closure):
76540         (fetch_token, peek_token_bracket, build_range_exp):
76541         (build_collating_symbol): Remove forward decls; no longer needed
76542         now that we use prototypes.
76543
76544         * lib/regcomp.c:
76545         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
76546         (re_compile_fastmap_iter, regcomp, regerror, regfree):
76547         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
76548         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
76549         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
76550         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
76551         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
76552         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
76553         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
76554         (build_range_exp, build_collating_symbol, parse_bracket_exp):
76555         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
76556         (build_charclass, build_charclass_op, fetch_number, create_tree):
76557         (create_token_tree, mark_opt_subexp, duplicate_tree):
76558         Use prototypes rather than old-style definitions.
76559
76560         * lib/regex_internal.c:
76561         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
76562         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
76563         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
76564         (re_string_reconstruct, re_string_peek_byte_case):
76565         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
76566         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
76567         (re_node_set_init_copy, re_node_set_add_intersect):
76568         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76569         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76570         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
76571         (re_acquire_state, re_acquire_state_context, register_state):
76572         (create_ci_newstate, create_cd_newstate, free_state):
76573         Likewise.
76574         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
76575         re_search_2):
76576         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
76577         (re_search_internal, prune_impossible_nodes):
76578         (acquire_init_state_context, check_matching, static):
76579         (check_halt_node_context, check_halt_state_context, proceed_next_node):
76580         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
76581         (update_regs, sift_states_backward, build_sifted_states):
76582         (clean_state_log_if_needed, merge_state_array):
76583         (update_cur_sifted_state, add_epsilon_src_nodes):
76584         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
76585         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
76586         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
76587         (find_recover_state, check_subexp_matching_top, transit_state_mb):
76588         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
76589         (check_arrival, check_arrival_add_next_nodes):
76590         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
76591         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
76592         (check_node_accept_bytes, check_node_accept, extend_buffers):
76593         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
76594         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
76595         (sift_ctx_init):
76596         Likewise.
76597
76598         * lib/regex_internal.h:
76599         (re_string_allocate, re_string_construct, re_string_reconstruct):
76600         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
76601         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
76602         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
76603         (re_string_context_at, re_string_peek_byte_case):
76604         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
76605         is defined, since we now use prototypes always.
76606
76607         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
76608         C89 or better.  All uses removed.
76609
76610 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76611
76612         * config/srclist.txt: Add glibc bugs 1220-1227.
76613
76614 2005-08-20  Jim Meyering  <jim@meyering.net>
76615
76616         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
76617         of unused local, dfa.
76618
76619 2005-08-20  Bruno Haible  <bruno@clisp.org>
76620
76621         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
76622
76623 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76624
76625         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
76626         (re_node_set_insert_last, re_dfa_add_node):
76627         Rename local variables to avoid GCC shadowing warnings.
76628
76629 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76630
76631         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
76632         [defined lint]: Suppress bogus uninitialized-variable warnings.
76633
76634         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
76635         and let the caller return REG_ESPACE if out of space.  This
76636         removes an uninitialied-variable warning with GCC 4.0.1, and also
76637         avoids taking the address of a local variable.  All callers
76638         changed.
76639
76640 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76641
76642         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
76643         $LIBCSRC/posix/regexec.c.
76644         Add glibc bug 1217 for regcomp.c.
76645
76646 2005-08-19  Jim Meyering  <jim@meyering.net>
76647
76648         * lib/regexec.c (proceed_next_node): Redo local variables to
76649         avoid GCC shadowing warnings.
76650
76651 2005-08-18  Bruno Haible  <bruno@clisp.org>
76652
76653         * lib/strstr.c (strstr): Fix return value in multibyte case.
76654         * lib/strcasestr.c (strcasestr): Likewise.
76655
76656 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76657
76658         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
76659
76660 2005-08-17  Jim Meyering  <jim@meyering.net>
76661
76662         Make the %s format (seconds since the epoch) work for a negative
76663         number and when used with a zero-padded field width, e.g. %015s.
76664
76665         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
76666         label so that it precedes the code to set `digits'.  Otherwise,
76667         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
76668         print `00-22'.  Now, it prints `-0022', as it should.
76669
76670 2005-08-17  Bruno Haible  <bruno@clisp.org>
76671
76672         * modules/strstr (Files): Add m4/mbrtowc.m4.
76673         (Depends-on): Add mbuiter.
76674
76675 2005-08-17  Bruno Haible  <bruno@clisp.org>
76676
76677         * modules/strcasestr: New file.
76678         * MODULES.html.sh (String handling, based on ANSI C 89): Add
76679         strcasestr.
76680
76681 2005-08-17  Bruno Haible  <bruno@clisp.org>
76682
76683         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
76684
76685 2005-08-17  Bruno Haible  <bruno@clisp.org>
76686
76687         * modules/mbuiter: New file.
76688         * MODULES.html.sh (Extended multibyte and wide character utilities):
76689         Add mbuiter.
76690
76691 2005-08-17  Bruno Haible  <bruno@clisp.org>
76692
76693         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
76694         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
76695
76696 2005-08-17  Bruno Haible  <bruno@clisp.org>
76697
76698         * m4/strcasestr.m4: New file.
76699
76700 2005-08-17  Bruno Haible  <bruno@clisp.org>
76701
76702         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
76703         * lib/strstr.c: Completely rewritten, with multibyte locale support.
76704
76705 2005-08-17  Bruno Haible  <bruno@clisp.org>
76706
76707         * lib/strcasestr.h: New file.
76708         * lib/strcasestr.c: New file.
76709
76710 2005-08-17  Bruno Haible  <bruno@clisp.org>
76711
76712         * lib/strcasecmp.c: Use mbuiter.h.
76713
76714 2005-08-17  Bruno Haible  <bruno@clisp.org>
76715
76716         * lib/mbuiter.h: New file.
76717
76718 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
76719
76720         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
76721         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
76722         and gl_GETOPT are both invoked via different paths (as happens
76723         with GNU tar CVS because it uses both argp and getopt), the former
76724         wins.
76725
76726 2005-08-16  Bruno Haible  <bruno@clisp.org>
76727
76728         * modules/tls: New file.
76729         * MODULES.html.sh (Multithreading): Add tls.
76730
76731 2005-08-16  Bruno Haible  <bruno@clisp.org>
76732
76733         * modules/strnlen1: New file.
76734         * MODULES.html.sh (String handling): Add strnlen1.
76735
76736 2005-08-16  Bruno Haible  <bruno@clisp.org>
76737
76738         * modules/strcase (Files): Add m4/mbrtowc.m4.
76739         (Depends-on): Add strnlen1, mbchar.
76740
76741 2005-08-16  Bruno Haible  <bruno@clisp.org>
76742
76743         * modules/mbiter: New file.
76744         * MODULES.html.sh (Extended multibyte and wide character utilities):
76745         Add mbiter.
76746
76747 2005-08-16  Bruno Haible  <bruno@clisp.org>
76748
76749         * modules/mbfile: New file.
76750         * MODULES.html.sh (Extended multibyte and wide character utilities):
76751         Add mbfile.
76752
76753 2005-08-16  Bruno Haible  <bruno@clisp.org>
76754
76755         * modules/mbchar: New file.
76756         * MODULES.html.sh (Extended multibyte and wide character utilities):
76757         New section.
76758
76759 2005-08-16  Bruno Haible  <bruno@clisp.org>
76760
76761         * m4/tls.m4: New file, from GNU gettext.
76762
76763 2005-08-16  Bruno Haible  <bruno@clisp.org>
76764
76765         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
76766         always.
76767         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
76768
76769 2005-08-16  Bruno Haible  <bruno@clisp.org>
76770
76771         * m4/mbiter.m4: New file.
76772
76773 2005-08-16  Bruno Haible  <bruno@clisp.org>
76774
76775         * m4/mbfile.m4: New file.
76776
76777 2005-08-16  Bruno Haible  <bruno@clisp.org>
76778
76779         * m4/mbchar.m4: New file.
76780
76781 2005-08-16  Bruno Haible  <bruno@clisp.org>
76782
76783         * lib/tls.h: New file, from GNU gettext.
76784         * lib/tls.c: New file, from GNU gettext.
76785
76786 2005-08-16  Bruno Haible  <bruno@clisp.org>
76787
76788         * lib/strnlen1.h: New file.
76789         * lib/strnlen1.c: New file.
76790
76791 2005-08-16  Bruno Haible  <bruno@clisp.org>
76792
76793         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
76794         (mbi_init): Update.
76795         (mbi_avail, mbi_advance): Let the iteration end before the terminating
76796         NUL byte, not after it.
76797
76798 2005-08-16  Bruno Haible  <bruno@clisp.org>
76799
76800         * lib/strcase.h (strcasecmp): Add note in comments.
76801         * lib/strncasecmp.c: Use code from strcasecmp.c.
76802         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
76803         (strcasecmp): Work correctly in multibyte locales.
76804
76805 2005-08-16  Bruno Haible  <bruno@clisp.org>
76806
76807         * lib/mbiter.h: New file.
76808
76809 2005-08-16  Bruno Haible  <bruno@clisp.org>
76810
76811         * lib/mbfile.h: New file.
76812
76813 2005-08-16  Bruno Haible  <bruno@clisp.org>
76814
76815         * lib/mbchar.h: New file.
76816         * lib/mbchar.c: New file.
76817
76818 2005-08-16  Bruno Haible  <bruno@clisp.org>
76819
76820         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
76821         the valid ones. Makes the comparison operations transitive:
76822         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
76823         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
76824
76825 2005-08-15  Simon Josefsson  <jas@extundo.com>
76826
76827         * modules/ssize_t (License): Change to 'unlimited'.
76828
76829         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
76830
76831 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76832
76833         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
76834         Add comments for each pending glibc patch.
76835
76836 2005-08-15  Bruno Haible  <bruno@clisp.org>
76837
76838         * lib/regex.h (__restrict_arr): Don't define to __restrict if
76839         __cplusplus is defined.
76840
76841 2005-08-14  Jim Meyering  <jim@meyering.net>
76842
76843         Sync from coreutils.
76844
76845         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
76846         Use the hash-table-based cycle-detection code not just when
76847         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
76848         Reported by James Youngman in
76849         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
76850         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
76851         FTS_TIGHT_CYCLE_CHECK.
76852         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
76853         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
76854         once again.
76855         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
76856         * lib/fts.c (fd_safer): Remove decl.
76857         Include fcntl--.h rather than unistd-safer.h
76858         (fts_safe_changedir): Don't call fd_safer; no longer needed
76859         now that we include fcntl--.h.
76860
76861 2005-08-12  Simon Josefsson  <jas@extundo.com>
76862
76863         * modules/getndelim2: Use ssize_t module.
76864         * modules/getnline: Likewise.
76865         * modules/safe-read: Likewise.
76866         * modules/xreadlink: Likewise.
76867
76868         * modules/ssize_t: New file.
76869
76870 2005-08-12  Simon Josefsson  <jas@extundo.com>
76871
76872         * m4/readline.m4: Look for termcap, curses or ncurses if required.
76873
76874 2005-08-12  Simon Josefsson  <jas@extundo.com>
76875
76876         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76877         ssize_t.
76878
76879 2005-08-12  Simon Josefsson  <jas@extundo.com>
76880
76881         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
76882         readline, getdelim and check_version.
76883         (Support for systems lacking ISO C 99: Sizes of integer types):
76884         Add size_max.
76885
76886 2005-08-12  Bruno Haible  <bruno@clisp.org>
76887
76888         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
76889
76890 2005-08-11  Simon Josefsson  <jas@extundo.com>
76891
76892         * modules/readline: New file.
76893
76894         * modules/strnlen (Files): Add strnlen.h.
76895
76896 2005-08-11  Simon Josefsson  <jas@extundo.com>
76897
76898         * m4/readline.m4: New file.
76899
76900 2005-08-11  Simon Josefsson  <jas@extundo.com>
76901
76902         * lib/readline.h, readline.c: New file.
76903
76904 2005-08-11  Simon Josefsson  <jas@extundo.com>
76905
76906         * doc/gnulib.texi (Initial import, Finishing touches): Mention
76907         gl_AVOID.
76908
76909 2005-08-11  Bruno Haible  <bruno@clisp.org>
76910
76911         * lib/strnlen.h (strnlen): Change parameter name to match comment.
76912
76913 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
76914
76915         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
76916
76917 2005-08-10  Simon Josefsson  <jas@extundo.com>
76918
76919         * tests/test-iconvme.c: New file.
76920
76921 2005-08-10  Simon Josefsson  <jas@extundo.com>
76922
76923         * m4/strnlen.m4: New file.
76924
76925         * m4/strndup.m4: Don't check for strnlen declaration, done in
76926         strnlen.m4.
76927
76928 2005-08-10  Simon Josefsson  <jas@extundo.com>
76929
76930         * lib/strndup.c: Use strnlen.h.
76931
76932         * lib/strnlen.h: New file.
76933
76934 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76935
76936         * README: Typos.
76937
76938 2005-08-02  Simon Josefsson  <jas@extundo.com>
76939
76940         * modules/readline: New file.
76941
76942 2005-08-02  Simon Josefsson  <jas@extundo.com>
76943
76944         * modules/getdelim: New file.
76945
76946         * modules/getline: Rewrite, don't use getndelim2.
76947
76948 2005-08-02  Simon Josefsson  <jas@extundo.com>
76949
76950         * m4/getline.m4: Separate out getdelim stuff into separate module.
76951
76952         * m4/getdelim.m4: New file.
76953
76954 2005-08-02  Simon Josefsson  <jas@extundo.com>
76955
76956         * lib/getline.h, getline.c: Rewrite.
76957
76958         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
76959
76960 2005-07-31  Bruno Haible  <bruno@clisp.org>
76961
76962         * lib/lock.h (gl_lock_initializer): New macro.
76963         (gl_lock_define_initialized): Use it.
76964         (gl_rwlock_initializer): New macro.
76965         (gl_rwlock_define_initialized): Use it.
76966         (gl_recursive_lock_initializer): New macro.
76967         (gl_recursive_lock_define_initialized): Use it.
76968
76969 2005-07-30  Karl Berry  <karl@gnu.org>
76970
76971         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
76972         Report from Ben Pfaff, regarding getopt.
76973
76974 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
76975
76976         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
76977         normal way.
76978         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
76979         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
76980         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
76981         (gl_GETOPT): Use the new macros.  Most of the implementation
76982         is moved to the new macros.  This is for programs like Emacs
76983         that don't want all the functionality of gl_GETOPT.
76984
76985 2005-07-26  Bruno Haible  <bruno@clisp.org>
76986
76987         * m4/lock.m4: Update from GNU gettext.
76988
76989 2005-07-26  Bruno Haible  <bruno@clisp.org>
76990
76991         * lib/lock.h: Update from GNU gettext.
76992         * lib/lock.c: Update from GNU gettext.
76993
76994 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
76995
76996         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
76997         obsolescent AC_TRY_RUN.  Include the default includes files, for
76998         'exit'.
76999
77000 2005-07-24  Bruno Haible  <bruno@clisp.org>
77001
77002         * modules/visibility: New file.
77003         * MODULES.html.sh (Misc): Add visibility.
77004
77005 2005-07-24  Bruno Haible  <bruno@clisp.org>
77006
77007         * m4/visibility.m4: New file.
77008
77009 2005-07-24  Bruno Haible  <bruno@clisp.org>
77010
77011         * doc/visibility.texi: New file.
77012
77013 2005-07-22  Bruno Haible  <bruno@clisp.org>
77014
77015         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
77016         $(ALLOCA_H), redundant through BUILT_SOURCES.
77017         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
77018         redundant through BUILT_SOURCES.
77019         * modules/byteswap (Makefile.am): Remove explicit dependency on
77020         $(BYTESWAP_H), redundant through BUILT_SOURCES.
77021         * modules/fnmatch (Makefile.am): Remove explicit dependency on
77022         $(FNMATCH_H), redundant through BUILT_SOURCES.
77023         * modules/getopt (Makefile.am): Remove explicit dependency on
77024         $(GETOPT_H), redundant through BUILT_SOURCES.
77025         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
77026         redundant through BUILT_SOURCES.
77027         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
77028         redundant through BUILT_SOURCES.
77029         * modules/stdbool (Makefile.am): Remove explicit dependency on
77030         $(STDBOOL_H), redundant through BUILT_SOURCES.
77031         * modules/stdint (Makefile.am): Remove explicit dependency on
77032         $(STDINT_H), redundant through BUILT_SOURCES.
77033         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
77034         Remove explicit dependency on $(SYSEXITS_H).
77035         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
77036
77037 2005-07-18  Simon Josefsson  <jas@extundo.com>
77038
77039         * lib/check-version.c (check_version): Accept identical versions too.
77040
77041 2005-07-18  Bruno Haible  <bruno@clisp.org>
77042
77043         * modules/lock: New file.
77044         * MODULES.html.sh (Multithreading): New section.
77045
77046 2005-07-18  Bruno Haible  <bruno@clisp.org>
77047
77048         * m4/lock.m4: New file, from GNU gettext.
77049
77050 2005-07-18  Bruno Haible  <bruno@clisp.org>
77051
77052         * lib/lock.h: New file, from GNU gettext.
77053         * lib/lock.c: New file, from GNU gettext.
77054
77055 2005-07-18  Bruno Haible  <bruno@clisp.org>
77056
77057         * lib/lock.h (gl_once_t): New type.
77058         (gl_once_define, gl_once): New macros.
77059         * lib/lock.c (fresh_once): New variable.
77060         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
77061         functions.
77062
77063 2005-07-16  Simon Josefsson  <jas@extundo.com>
77064
77065         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
77066         workaround, suggested by Bruno.
77067
77068 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
77069
77070         * modules/xalloc (Depends-on): Add xalloc-die.
77071         * modules/xvasprintf (Depends-on): Add xalloc-die.
77072
77073 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
77074
77075         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
77076         with a minor change.
77077
77078 2005-07-15  Bruno Haible  <bruno@clisp.org>
77079
77080         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
77081         When using lib/poll.c, define poll as rpl_poll.
77082
77083 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
77084
77085         * modules/argp (Depends-on): Remove unlocked-io.
77086
77087 2005-07-14  Derek Price  <derek@ximbiot.com>
77088
77089         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
77090         for glob symlink bug.
77091
77092 2005-07-14  Bruno Haible  <bruno@clisp.org>
77093
77094         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
77095         Instead, test for *_unlocked function declarations directly.
77096
77097 2005-07-11  Simon Josefsson  <jas@extundo.com>
77098
77099         * modules/size_max: New file.
77100
77101         * modules/xsize: Depend on size_max module for size_max.m4.
77102
77103 2005-07-11  Simon Josefsson  <jas@extundo.com>
77104
77105         * lib/size_max.h: New file.
77106
77107 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
77108
77109         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
77110         copyright symbol and the year.
77111         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
77112         (version_etc_va): Use parameterized copyright notice.
77113         Reword to conform to the current GNU coding standards.
77114
77115 2005-07-11  Karl Berry  <karl@gnu.org>
77116
77117         * doc/gnulib.texi (Quoting): new node.
77118         (Initial import): more info, from Patrice.
77119
77120 2005-07-11  Bruno Haible  <bruno@clisp.org>
77121
77122         * gnulib-tool (func_usage): Document option --avoid.
77123         (Command line options): Handle --avoid.
77124         (func_acceptable): New function.
77125         (func_modules_transitive_closure): Use it.
77126
77127 2005-07-11  Bruno Haible  <bruno@clisp.org>
77128
77129         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
77130         Reported by Jim Meyering.
77131
77132 2005-07-10  Bruno Haible  <bruno@clisp.org>
77133
77134         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
77135         Needed when size_t is smaller than 'unsigned int'.
77136         Reported by Paul Eggert.
77137
77138 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77139
77140         * modules/argp (Depends-on): Add unlocked-io
77141
77142 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77143
77144         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
77145         block of defines.
77146
77147 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
77148
77149         * config/srclist.txt: Comment out regcomp.c, since we have a porting
77150         fix now.
77151
77152 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
77153         and Paul Eggert  <eggert@cs.ucla.edu>
77154
77155         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
77156         in wint_t, not wchar_t.  Remove now-unnecessary cast.
77157
77158 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77159
77160         * modules/regex (Files): Add lib/regex_internal.c,
77161         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
77162         (Depends-on): Add extensions.
77163         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
77164
77165 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77166
77167         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
77168         pathconf.
77169         * m4/same.m4 (gl_SAME): Likewise.
77170         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
77171
77172         * m4/regex.m4: Adjust to new libc regex implementation.
77173         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
77174         all the .c and .h parts of (the new) regex.
77175         Quote the m4 stuff better.
77176         Check for RE_ICASE bug of old gnulib.
77177         Check for REG_STARTEND of recent libc.
77178         Rename local variables from jm_* to gl_*.
77179         Quote operand of "test -f".
77180         Say "recent enough" version of libc, not "version 2".
77181         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
77182         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
77183         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
77184         Remove check for btowc, isascii.
77185         Require AM_LANGINFO_CODESET.
77186
77187 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77188
77189         * lib/regex.c, regex.h: Sync from libc.
77190         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
77191         * lib/regexec.c:
77192         New files, synced from libc, except that regex_internal.h
77193         currently has a small porting fix.
77194
77195 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77196
77197         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
77198         regex_internal.c, regexec.c.
77199         Add regex_internal.h too, but as a comment, since the libc version
77200         is currently broken in gnulib mode.
77201
77202 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77203
77204         Support programs like Emacs that use gnulib but not gettext.
77205         * MODULES.html.sh (Internationalization functions): Add gettext-h.
77206         * modules/gettext-h: New file.
77207         * modules/gettext (Files): Remove lib/gettext.h.
77208         (Depends-on): Add gettext-h.
77209         (Makefile.am): Remove lib_SOURCES.
77210         * modules/argmatch, modules/c-stack, modules/closeout:
77211         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
77212         * modules/execute, modules/file-type, modules/getaddrinfo:
77213         * modules/getopt, modules/human, modules/javacomp:
77214         * modules/javaexec, modules/mkdir-p, modules/obstack:
77215         * modules/openat, modules/pagealign_alloc, modules/pipe:
77216         * modules/quotearg, modules/regex, modules/rpmatch:
77217         * modules/unicodeio, modules/userspec, modules/version-etc:
77218         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
77219         * modules/xsetenv:
77220         Depend on gettext-h, not gettext.
77221
77222 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
77223
77224         * gnulib-tool (func_import): Add support for 'public domain' license.
77225         * modules/alloca, modules/atexit, modules/memmove:
77226         Now public domain, not GPL.
77227         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
77228         * modules/realloc, modules/strerror, modules/strtod:
77229         Now LGPL, not GPL.
77230
77231 2005-07-05  Bruno Haible  <bruno@clisp.org>
77232
77233         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
77234         autoconf CVS. Needed for mingw.
77235
77236 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77237
77238         Remove the dependency of the strftime module on the tzset module.
77239         * modules/strftime (Depends-on): Remove dependency on tzset.
77240
77241 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77242
77243         Remove the dependency of the strftime module on the tzset module.
77244         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
77245         gl_FUNC_TZSET_CLOBBER.
77246
77247 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77248
77249         Remove the dependency of the strftime module on the tzset module.
77250         * lib/strftime.c (my_strftime)
77251         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
77252         Copy the input structure, to work around some of the bug with
77253         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
77254         Solaris releases, you should also use the tzset module, but we won't
77255         require it as a dependency any more since we don't want LGPLed code
77256         to depend on GPLed code.
77257
77258 2005-07-02  Jim Meyering  <jim@meyering.net>
77259
77260         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
77261         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
77262         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
77263         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
77264
77265 2005-07-02  Jim Meyering  <jim@meyering.net>
77266
77267         * lib/backupfile.c (backup_args): Change a `0' to NULL.
77268
77269 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77270
77271         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
77272         declares only 'struct timespec;' (!).
77273
77274 2005-07-01  Jim Meyering  <jim@meyering.net>
77275
77276         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
77277         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
77278         * lib/save-cwd.c, tempname.c:
77279         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
77280         and don't include <sys/file.h>).
77281
77282 2005-06-29  Jim Meyering  <jim@meyering.net>
77283
77284         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
77285         type name.  Use the variable name instead.
77286         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
77287         Likewise.
77288
77289 2005-06-28  Simon Josefsson  <jas@extundo.com>
77290
77291         * modules/check-version (Files): Add check-version.m4.
77292
77293 2005-06-28  Simon Josefsson  <jas@extundo.com>
77294
77295         * m4/check-version.m4: New file, suggested by Jim Meyering
77296         <jim@meyering.net>.
77297
77298 2005-06-28  Simon Josefsson  <jas@extundo.com>
77299
77300         * lib/check-version.h, lib/check-version.c: New files.
77301
77302 2005-06-28  Simon Josefsson  <jas@extundo.com>
77303
77304         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
77305         collision with global variable.  Better indentation.  Don't
77306         increment buffer pointer beyond buffer end.  Based on comments
77307         from Paul Eggert <eggert@cs.ucla.edu>.
77308
77309         * lib/base64.h: Indent.
77310
77311 2005-06-28  Simon Josefsson  <jas@extundo.com>
77312
77313         * doc/gnulib.texi (Library version handling): New section.
77314
77315 2005-06-28  Jim Meyering  <jim@meyering.net>
77316
77317         * check-module (find_included_lib_files): Hard-code another
77318         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
77319         but modules/fts-lgpl (correctly) does not list those files.
77320
77321         * modules/canonicalize (Files): Add lib/pathmax.h.
77322
77323 2005-06-25  Simon Josefsson  <jas@extundo.com>
77324
77325         * modules/check-version: New file.
77326
77327 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
77328
77329         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
77330         initializer of struct addrinfo, as an indication that we don't
77331         care how many members the structure has.
77332
77333 2005-06-24  Derek Price  <derek@ximbiot.com>
77334         and Bruno Haible  <bruno@clisp.org>
77335
77336         Remove stat module & update lstat.
77337         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
77338         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
77339         * m4/stat.m4: Remove this file.
77340
77341 2005-06-24  Derek Price  <derek@ximbiot.com>
77342         and Bruno Haible  <bruno@clisp.org>
77343
77344         Remove stat module & update lstat.
77345         * lib/stat.c: Remove this file...
77346         (slash_aware_lstat): ...moving this content and its support...
77347         * lib/lstat.c (rpl_lstat): ...into here.
77348         * lib/lstat.h: New file.
77349
77350 2005-06-24  Derek Price  <derek@ximbiot.com>
77351         and Bruno Haible  <bruno@clisp.org>
77352
77353         Remove stat module & update lstat.
77354         * config/srclist.txt (libc sources): Remove stat.
77355
77356 2005-06-24  Derek Price  <derek@ximbiot.com>
77357         and Bruno Haible  <bruno@clisp.org>
77358
77359         Remove stat module & update lstat.
77360         * MODULES.html.sh (stat): Remove.
77361         * MODULES.html: Regenerated.
77362         * modules/lstat (Description): Correct function name.
77363         (Files): Add "lstat.h".
77364         (Depends-on): Remove stat, add xalloc, stat-macros.
77365         * modules/stat: Remove this file.
77366         (Include): Add "lstat.h", remove <sys/stat.h>.
77367
77368 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
77369
77370         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
77371         (ranged_convert): Don't save conversion in a temporary struct.
77372         This causes a warning with GCC 4.0.0, and anyway in the typical
77373         case it's not worth the extra 100 bytes or so of code.
77374         (ranged_convert, __mktime_internal): When calling a function via a
77375         pointer P, use P () rather than (*P) (), as we now assume C89 or
77376         better.
77377
77378 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77379
77380         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
77381         "who -r" failed to give output.  Problem reported by Tim Waugh.
77382
77383         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
77384         (xcalloc): Use it to avoid needless tests.
77385         Problem reported by Jim Meyering.
77386
77387 2005-06-20  Derek Price  <derek@ximbiot.com>
77388
77389         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
77390         unnecessary for Autoconfs > 2.59c.
77391
77392 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77393
77394         * lib/argp.h (__option_is_short): Check upper limit of
77395         __key. Isprint() requires its argument to have the value
77396         of an unsigned char or EOF.
77397
77398 2005-06-16  Jim Meyering  <jim@meyering.net>
77399
77400         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
77401         when either N or S is zero.
77402
77403 2005-06-16  Derek Price  <derek@ximbiot.com>
77404
77405         * m4/bison.m4: Declare YACC & YFLAGS precious.
77406
77407 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
77408
77409         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
77410         multibyte string or pattern, fall back on unibyte matching.
77411         Problem reported by James Youngman.
77412
77413 2005-06-08  Bruno Haible  <bruno@clisp.org>
77414
77415         * modules/csharpcomp: New file.
77416         * MODULES.html.sh (C#): Add csharpcomp.
77417
77418 2005-06-08  Bruno Haible  <bruno@clisp.org>
77419
77420         * m4/csharpcomp.m4: New file, from GNU gettext.
77421
77422 2005-06-08  Bruno Haible  <bruno@clisp.org>
77423
77424         * lib/csharpcomp.h: New file, from GNU gettext.
77425         * lib/csharpcomp.c: New file, from GNU gettext.
77426         * lib/csharpcomp.sh.in: New file, from GNU gettext.
77427
77428 2005-06-08  Bruno Haible  <bruno@clisp.org>
77429
77430         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
77431         warning on mingw.
77432
77433 2005-06-07  Derek Price  <derek@ximbiot.com>
77434
77435         Sync from CVS.
77436         * lib/glob_.h: Indent nested #ifdef.
77437
77438 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77439
77440         Sync from coreutils.
77441         Use "file name" when talking about file names, instead of "filename"
77442         or "path", as per the GNU coding standards.
77443         * lib/mkdir-p.c: Renamed from makepath.c.
77444         (make_dir_parents): Renamed from make_path.  All callers changed.
77445         * lib/mkdir-p.h: Likewise.  All includers changed.
77446         * lib/filenamecat.c: Renamed from path-concat.c.
77447         (file_name_concat): Renamed from path_concat.  All callers changed.
77448         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
77449         * lib/filenamecat.h: Likewise.  All includers changed.
77450         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
77451         in comments or local variable names.
77452         * lib/basename.c: Likewise.
77453         * lib/canonicalize.c, canonicalize.h: Likewise.
77454         * lib/dirname.c, dirname.h: Likewise.
77455         * lib/euidaccess.c: Likewise.
77456         * lib/exclude.c: Likewise
77457         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
77458         * lib/fsusage.c, fsuage.h: Likewise.
77459         * lib/fts.c, fts_.h: Likewise.
77460         * lib/getcwd.c: Likewise.
77461         * lib/getloadavg.c: Likewise.
77462         * lib/mkstemp.c: Likewise.
77463         * lib/mountlist.c, mountlist.h: Likewise.
77464         * lib/openat.c, openat.h: Likewise.
77465         * lib/readlink-stub.c: Likewise.
77466         * lib/readutmp.c, readutmp.h: Likewise.
77467         * lib/rename.c: Likewise.
77468         * lib/rmdir.c: Likewise.
77469         * lib/same.c: Likewise.
77470         * lib/savedir.c: Likewise.
77471         * lib/stripslash.c: Likewise.
77472         * lib/tempname.c: Likewise.
77473         * lib/xreadlink.c: Likewise.
77474         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
77475         All uses changed.
77476         * lib/exclude.h: Likewise.
77477
77478         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
77479         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77480         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
77481         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77482         * lib/pathmax.h: Include <limits.h> unconditionally, since other
77483         files have been getting away with it for years (MORE/BSD 4.3
77484         is extinct now).
77485         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
77486         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77487
77488         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
77489         Define to 256, not 255, as per modern POSIX.
77490
77491 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77492
77493         Sync from coreutils.
77494         Use "file name" when talking about file names, instead of "filename"
77495         or "path", as per the GNU coding standards.
77496         * MODULES.html.sh: mkdir-p renamed from makepath.
77497         filenamecat renamed from path-concat.
77498         * modules/filenamecat: Renamed from modules/path-concat.
77499         (Files): filenamecat.h and filenamecat.c renamed from
77500         path-concat.h and path-concat.c.
77501         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
77502         (Include): filenamecat.h, not path-concat.h.
77503         * modules/mkdir-p: Renamed from modules/makepath.
77504         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
77505         makepath.c.
77506         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
77507         (Include): mkdir-p.h, not makepath.h.
77508
77509 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77510
77511         Sync from coreutils.
77512         * m4/mkdir-p.m4: Renamed from makepath.m4.
77513         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
77514         Rename files from makepath.c to mkdir-p.c, and from
77515         makepath.h to mkdir-p.h.
77516         * m4/filenamecat.m4: Renamed from path-concat.m4.
77517         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
77518         Rename files from path-concat.c to filenamecat.c,
77519         and from path-concat.h to filenamecat.h.
77520         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
77521         "file name" in local variables or comments.
77522         * m4/rename.m4: Likewise.
77523
77524 2005-06-01  Bruno Haible  <bruno@clisp.org>
77525
77526         * modules/csharpexec: New file.
77527         * MODULES.html.sh (C#): New section.
77528
77529 2005-06-01  Bruno Haible  <bruno@clisp.org>
77530
77531         * m4/csharp.m4: New file, from GNU gettext.
77532         * m4/csharpexec.m4: New file, from GNU gettext.
77533
77534 2005-06-01  Bruno Haible  <bruno@clisp.org>
77535
77536         * lib/csharpexec.h: New file, from GNU gettext.
77537         * lib/csharpexec.c: New file, from GNU gettext.
77538         * lib/csharpexec.sh.in: New file, from GNU gettext.
77539
77540 2005-05-31  Derek Price  <derek@ximbiot.com>
77541             Paul Eggert  <eggert@cs.ucla.edu>
77542
77543         Sync from cvs.
77544         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
77545
77546 2005-05-31  Derek Price  <derek@ximbiot.com>
77547             Paul Eggert  <eggert@cs.ucla.edu>
77548
77549         Sync from cvs.
77550         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
77551
77552 2005-05-29  Derek Price  <derek@ximbiot.com>
77553
77554         * config/srclist.txt (glob_.h, glob.c): Add these files.
77555
77556 2005-05-29  Derek Price  <derek@ximbiot.com>
77557
77558         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
77559         * modules/glob: New file.
77560         * modules/getlogin_r: Add link to POSIX spec in description.
77561
77562 2005-05-29  Derek Price  <derek@ximbiot.com>
77563             Paul Eggert  <eggert@cs.ucla.edu>
77564
77565         * m4/glob.m4: New file.
77566
77567 2005-05-29  Derek Price  <derek@ximbiot.com>
77568             Paul Eggert  <eggert@cs.ucla.edu>
77569
77570         * lib/glob_.h, lib/glob.c: New files.
77571
77572 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77573
77574         * modules/fts (Files): Remove m4/inttypes-pri.m4.
77575         * modules/fts-lgpl (Depends-on): Remove gettext.
77576
77577 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77578
77579         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
77580         and don't require gt_INTTYPES_PRI.
77581
77582 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77583
77584         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
77585
77586         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
77587         the configuration hassle isn't worth it.
77588         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
77589         (LONGEST_MODIFIER, PRIuMAX): Remove.
77590
77591 2005-05-27  Bruno Haible  <bruno@clisp.org>
77592
77593         * lib/getlogin_r.h: Remove second include of <stddef.h>.
77594
77595 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
77596
77597         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
77598         _POSIX_PTHREAD_SEMANTICS for Solaris.
77599
77600 2005-05-25  Derek Price  <derek@ximbiot.com>
77601
77602         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
77603
77604 2005-05-25  Derek Price  <derek@ximbiot.com>
77605             Paul Eggert  <eggert@cs.ucla.edu>
77606
77607         * modules/getlogin_r, m4/getlogin_r.m4: New files.
77608         * lib/getlogin_r.c, getlogin_r.h: New files.
77609
77610 2005-05-25  Bruno Haible  <bruno@clisp.org>
77611             Derek Price  <derek@ximbiot.com>
77612
77613         * lib/getlogin_r.h: Simplify API documentation.
77614
77615 2005-05-23  Derek Price  <derek@ximbiot.com>
77616
77617         * modules/minmax (Files): Add m4/minmax.m4.
77618         (configure.ac): Add gl_MINMAX.
77619
77620 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
77621
77622         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
77623         so that unistd-safer.h (GPL'ed code) need not be included.
77624
77625 2005-05-22  Bruno Haible  <bruno@clisp.org>
77626
77627         * m4/minmax.m4: New file.
77628         Based on a patch by Derek Price <derek@ximbiot.com>.
77629
77630 2005-05-22  Bruno Haible  <bruno@clisp.org>
77631
77632         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
77633         (INT64_MIN): Fix definition.
77634         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
77635
77636         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
77637         NEED_SIGNED_INT_TYPES.
77638
77639         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
77640         HAVE_SYSTEM_INTTYPES.
77641
77642 2005-05-22  Bruno Haible  <bruno@clisp.org>
77643
77644         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
77645         Also include <sys/param.h> if it defines MIN, MAX.
77646         Based on a patch by Derek Price <derek@ximbiot.com>.
77647
77648 2005-05-21  Jim Meyering  <jim@meyering.net>
77649
77650         * modules/fts (Files): Add m4/inttypes-pri.m4.
77651         (Depends-on): Add lstat and remove gettext.  Alphabetize.
77652
77653 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77654
77655         New fts module.
77656         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
77657         (setup_dir, free_dir): New functions.
77658         (enter_dir, leave_dir): Define trivial
77659         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
77660         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
77661         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
77662         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
77663         Move to fts-cycle.c.
77664         (fts_open): Use setup_dir.
77665         (fts_close): Use free_dir.
77666         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
77667         This adds a label and some gotos, but the alternatives were messier.
77668         Check for memory allocation failure when entering a dir.
77669         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
77670         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
77671         (FTS): New member fts_cycle, that is a union that contains the
77672         old active_dir_ht and cycle_state.  All uses changed to mention
77673         fts_cycle.ht and fts_cycle.state.
77674         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
77675         fts.c, with the following changes:
77676         (setup_dir, free_dir): New functions.
77677         (enter_dir): Now returns bool.  Return true if successful, false
77678         if memory exhausted.  All callers changed.
77679         Do not bother partly cleaning up on
77680         memory allocation failure; that is free_dir's job.
77681         However, free ad if hash_insert fails, to avoid memory leak.
77682         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
77683         fts->fts_options to see which union member to use.
77684
77685 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77686
77687         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
77688         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
77689
77690 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77691
77692         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
77693
77694 2005-05-20  Jim Meyering  <jim@meyering.net>
77695
77696         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
77697         Now a macro, to pacify GCC.
77698
77699 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
77700
77701         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
77702         of -1.
77703
77704 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
77705
77706         * lib/chown.c (rpl_chown): Return -1 on failure.
77707
77708 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
77709
77710         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
77711         Don't check for stddef.h.
77712         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
77713         don't use its results.
77714         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
77715         since we include them unconditionally.  Don't require
77716         AM_STDBOOL_H, since stdbool is a prerequisite.
77717         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
77718         since we assume C89 or better.
77719         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
77720         as we don't use their results.
77721         Don't check for fchdir, memmove, memset, strrchr, as we use
77722         them unconditionally.
77723         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
77724         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
77725
77726 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
77727
77728         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
77729         Include <stddef.h> unconditionally, since we assume C89 now.
77730         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
77731         * lib/fts.c: Include fts_.h first, to check interface.
77732         Do not include intprops.h; no longer needed.
77733         Include cycle-check.h and hash.h, since fts_.h no longer does.
77734         Remove unnecessary casts of closedir to void.
77735         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
77736         decide whether to decrement nlinks.
77737         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
77738         (FTS): Use struct hash_table * instead of Hash_table, so that
77739         we no longer need to include hash.h here.
77740
77741 2005-05-18  Jim Meyering  <jim@meyering.net>
77742
77743         * modules/dirfd (License): Change to LGPL.  Most of the code
77744         is already in the public domain.
77745
77746 2005-05-18  Jim Meyering  <jim@meyering.net>
77747
77748         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
77749         Reported by Yoann Vandoorselaere.
77750
77751 2005-05-17  Jim Meyering  <jim@meyering.net>
77752
77753         * m4/fts.m4: New file, from coreutils.
77754
77755 2005-05-17  Jim Meyering  <jim@meyering.net>
77756
77757         * lib/fts.c, lib/fts_.h: New files, from coreutils.
77758
77759 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77760
77761         Sync from coreutils.
77762         * m4/unlinkdir.m4: New file.
77763
77764 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77765
77766         Sync from coreutils.
77767         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
77768         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
77769         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
77770         White space changes only.
77771         * lib/makepath.c (make_path): Port to hosts where leading "//" is
77772         special.
77773         * lib/yesno.c: Include getline.h, not ctype.h.
77774         (yesno): Don't remove leading white space; POSIX doesn't allow it.
77775         Use getline to remove arbitrary restriction on response length.
77776
77777 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77778
77779         * config/srclist-update: Spell out "Street" in FSF postal
77780         mail address; this is the style the FSF seems to prefer.
77781
77782         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
77783         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
77784         this updates FSF postal mail address.
77785
77786         Sync from coreutils.
77787         * modules/unlinkdir: New file.
77788         * modules/yesno (Depends-on): Add getline.
77789         * MODULES.html.sh (File system functions): Add unlinkdir.
77790
77791 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77792
77793         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
77794         lib/strsep.h:
77795         Change the initial comment to refer to GPL, not LGPL.
77796         gnulib-tool will change it to LGPL as needed.
77797
77798         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
77799         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
77800         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
77801         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
77802         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
77803         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
77804         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
77805         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
77806         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
77807         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
77808         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
77809         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
77810         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
77811         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
77812         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
77813         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
77814         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
77815         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
77816         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
77817         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
77818         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
77819         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
77820         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
77821         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
77822         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
77823         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
77824         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
77825         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
77826         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
77827         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
77828         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
77829         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
77830         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
77831         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
77832         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
77833         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
77834         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
77835         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
77836         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
77837         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
77838         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
77839         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
77840         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
77841         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
77842         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
77843         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
77844         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
77845         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
77846         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
77847         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
77848         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
77849         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
77850         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
77851         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
77852         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
77853         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
77854         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
77855         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
77856         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
77857         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
77858         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
77859         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
77860         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
77861         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
77862         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
77863         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
77864         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
77865         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
77866         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
77867         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
77868         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
77869         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
77870         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
77871         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
77872         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
77873         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
77874         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
77875         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
77876         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
77877         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
77878         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
77879         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
77880         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
77881         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
77882         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
77883         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
77884         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
77885         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
77886         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
77887         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
77888         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
77889         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
77890         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
77891         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
77892         lib/yesno.c, lib/yesno.h:
77893         Update FSF postal mail address.
77894
77895 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77896
77897         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
77898         tests/test-memmem.c, tests/test-stpncpy.c:
77899         Update FSF postal mail address.
77900
77901 2005-05-13  Bruno Haible  <bruno@clisp.org>
77902
77903         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
77904         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
77905         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
77906         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
77907         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
77908         Add support for 64-bit integers in the MSVC compiler.
77909
77910 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77911
77912         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
77913
77914 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
77915
77916         * gnulib-tool (func_import): Sort and uniquify recommended includes.
77917
77918 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
77919
77920         * doc/getdate.texi (General date syntax): Don't say that date
77921         date --iso-8601=ns generates acceptable dates; it doesn't yet.
77922         Problem reported by Nic Ferrier.
77923
77924 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77925
77926         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
77927         specified in ai_socktype. Fix invalid ai_protocol
77928         check. ai_protocol is usually set to 0 or depending on
77929         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
77930         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
77931         ai_socktype / ai_protocol in the returned addrinfo structure.
77932
77933 2005-05-10  Simon Josefsson  <jas@extundo.com>
77934
77935         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
77936         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77937
77938 2005-05-10  Karl Berry  <karl@gnu.org>
77939
77940         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
77941         (from http://www.gnu.org/licenses).
77942         * doc/COPYING.LIB: also rename to COPYING.LESSER.
77943         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
77944         fdl.texi suffices.
77945
77946 2005-05-10  Karl Berry  <karl@gnu.org>
77947
77948         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
77949         (COPYING.DOC): remove.
77950
77951         * config/srclist-update: new FSF address.
77952
77953 2005-05-10  Derek Price  <derek@ximbiot.com>
77954
77955         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
77956         possible.
77957
77958 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77959             Bruno Haible  <bruno@clisp.org>
77960
77961         * modules/inet_ntop: New file.
77962         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77963         inet_ntop.
77964
77965 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77966             Bruno Haible  <bruno@clisp.org>
77967
77968         * m4/inet_ntop.m4: New file.
77969
77970 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77971             Bruno Haible  <bruno@clisp.org>
77972
77973         * lib/inet_ntop.h: New file.
77974         * lib/inet_ntop.c: New file, from glibc with modifications.
77975
77976 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
77977
77978         * modules/time_r (License): Change to LGPL.
77979         * modules/extensions (License): Change to LGPL.  Actually,
77980         the license is more permissive than that, but currently gnulib-tool
77981         doesn't know how to handle more-permissive licenses.
77982
77983         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
77984         Problem reported by Dave Love.
77985
77986 2005-05-08  Jim Meyering  <jim@meyering.net>
77987
77988         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
77989         blank.
77990
77991 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
77992
77993         * modules/argmatch (Depends-on): Add stdbool.
77994         * modules/backupfile (Depends-on): Likewise.
77995         * modules/chdir-long (Depends-on): Likewise.
77996         * modules/closeout (Depends-on): Likewise.
77997         * modules/cycle-check (Depends-on): Likewise.
77998         * modules/dirname (Depends-on): Likewise.
77999         * modules/fnmatch (Depends-on): Likewise.
78000         * modules/fsusage (Depends-on): Likewise.
78001         * modules/fwriteerror (Depends-on): Likewise.
78002         * modules/getcwd (Depends-on): Likewise.
78003         * modules/getloadavg (Depends-on): Likewise.
78004         * modules/hard-locale (Depends-on): Likewise.
78005         * modules/makepath (Depends-on): Likewise.
78006         * modules/mountlist (Depends-on): Likewise.
78007         * modules/nanosleep (Depends-on): Likewise.
78008         * modules/posixtm (Depends-on): Likewise.
78009         * modules/quotearg (Depends-on): Likewise.
78010         * modules/readtokens (Depends-on): Likewise.
78011         * modules/readtokens0 (Depends-on): Likewise.
78012         * modules/readutmp (Depends-on): Likewise.
78013         * modules/save-cwd (Depends-on): Likewise.
78014         * modules/strftime (Depends-on): Likewise.
78015         * modules/userspec (Depends-on): Likewise.
78016         * modules/utimecmp (Depends-on): Likewise.
78017         * modules/xgetcwd (Depends-on): Likewise.
78018         * modules/xnanosleep (Depends-on): Likewise.
78019         * modules/xstrtod (Depends-on): Likewise.
78020         * modules/yesno (Depends-on): Likewise.
78021
78022 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
78023
78024         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
78025         needless checks.
78026
78027 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78028
78029         Merge from coreutils.  Among other things,
78030         add bulletproofing for cases where stdin, stdout, or stderr are closed.
78031         * lib/fd-safer.c: New file.
78032         * lib/fcntl-safer.h, open-safer.c: Remove.
78033         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
78034         * lib/dup-safer.c: Include unistd-safer.h first.
78035         Don't include errno.h.
78036         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
78037         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
78038         * lib/file-type.c: Rely on file-type.h change.
78039         * lib/getloadavg.c: Include unistd-safer.h.
78040         (getloadavg): Use safer open.
78041         * lib/getusershell.c: Include "stdio-safer.h".
78042         (getusershell): Use safer fopen.
78043         * lib/long-options.c (long_options): Use NULL rather than 0.
78044         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
78045         'free'.
78046         * lib/modechange.c: Likewise.
78047         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
78048         (MODE_DONE): New constant.
78049         (struct mode_change): Remove 'next' member.
78050         (make_node_op_equals): New function; like the old one of the
78051         same name, except it allocates an array.
78052         (mode_compile, mode_create_from_ref): Use it.
78053         (mode_compile): Allocate result as an array, not a linked list.
78054         Parse octal string ourself, so that we catch mistakes like "+0".
78055         (mode_adjust): Arg is an array, not a linked list.
78056         * lib/modechange.c: Include stat-macros.h, xalloc.h.
78057         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
78058         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
78059         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
78060         Remove.  This is now stat-macros.h's job.
78061         (talloc): Remove.  All callers replaced by xalloc, so that
78062         our invokers don't have to worry about reporting memory failures.
78063         (make_node_op_equals): Remove.
78064         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
78065         New constants.
78066         (struct mode_change): Moved here from modechange.h.
78067         (mode_append_entry): Remove.
78068         (mode_compile): Remove MASKED_OPS arg, since it encouraged
78069         apps to have incorrect behavior.  Use simpler algorithm for head
78070         and tail.  Don't futz with umask; that's now the job of mode_adjust.
78071         Detect more invalid usages rather than having somewhat-random behavior.
78072         Don't insert an "a=" action, as that leads to incorrect behavior.
78073         (mode_compile, mode_create_from_ref): Return NULL on error instead
78074         of an enum, since now there's only one way to have an error.  All
78075         callers changed.
78076         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
78077         at the correct time.  Simplify calculation of "+u" and its ilk.
78078         Don't mishandle "+X".
78079         (mode_free): Remove "register" and localize decls.
78080         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
78081         (struct mode_change): Move to modechange.c; callers don't
78082         need to see this stuff.
78083         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
78084         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
78085         (mode_change, mode_adjust): Reflect the new signatures noted above.
78086         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
78087         that might redefine system include files.
78088         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
78089         (my_usleep): Use NULL rather than (void *) 0.
78090         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
78091         Use siginterrupt to specify that system calls should be interrupted.
78092         (rpl_nanosleep): Move initialization of suspended closer to call of
78093         my_usleep.
78094         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
78095         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
78096         (desirable_utmp_entry): New function.
78097         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
78098         using x2nrealloc, to simplify logic.
78099         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
78100         size calculation.  Do not assume utmp file is a regular file.
78101         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
78102         (READ_UTMP_CHECK_PIDS): New constant.
78103         * lib/save-cwd.c: Include unistd-safer.h.
78104         (save_cwd): Use fd_safer.
78105         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
78106         [!_LIBC] Include "stat-macros.h" instead.
78107         * lib/unistd-safer.h (fd_safer): New decl.
78108
78109 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78110
78111         * modules/getloadavg (Depends-on): Add unistd-safer.
78112         * modules/getusershell (Depends-on): Add stdio-safer.
78113         * modules/lstat (Depends-on): Remove xalloc.
78114         * modules/mkstemp (Depends-on): Add stat-macros.
78115         * modules/modechange (Depends-on): Remove xstrtol.
78116         Add stat-macros, xalloc.
78117         * modules/save-cwd (Depends-on): Add unistd-safer.
78118         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
78119         * modules/unistd-safer (Files): Add lib/fd-safer.c
78120         (Makefile.am): Remove lib_SOURCES.
78121
78122         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
78123         Remove fcntl-safer; unistd-safer supersedes it.
78124
78125 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78126
78127         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
78128         AC_HEADER_STAT.
78129         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
78130         (gl_PREREQ_CHOWN): Remove.
78131         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
78132         it.  Don't require AC_HEADER_STAT.
78133         (gl_PREREQ_LSTAT): Remove.
78134         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
78135         Don't require AC_HEADER_STAT.
78136         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
78137         (gl_PREREQ_RMDIR): Remove.
78138         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
78139         mention stat-macros.h or AC_HEADER_STAT, since we'll make
78140         the stat-macros module a prerequisite.
78141         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
78142         * m4/filemode.m4 (gl_FILEMODE): Likewise.
78143         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
78144         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
78145         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
78146         variable names.
78147         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
78148         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
78149         variable prefixes.
78150         * m4/fcntl-safer.m4: Remove.
78151         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
78152         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
78153         Invoke gl_PREREQ_FD_SAFER.
78154         (gl_PREREQ_FD_SAFER): New macro.
78155         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
78156         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
78157         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
78158         Remove duplicate call to AC_LIBOBJ(readutmp).
78159         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
78160
78161         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
78162         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
78163
78164 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78165
78166         * MODULES.html.sh (Misc): Add byteswap.
78167
78168 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78169
78170         * modules/getcwd (Depends-on): Add extensions.
78171         * modules/openat (Depends-on): Likewise.
78172
78173 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78174
78175         * modules/byteswap: New file.
78176
78177 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78178
78179         * m4/byteswap.m4: New file.
78180
78181 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78182
78183         * lib/byteswap_.h: New file.
78184
78185 2005-04-25  Karl Berry  <karl@gnu.org>
78186
78187         * m4/gettext.m4: Update from GNU gettext 0.14.4.
78188
78189 2005-04-25  Albert Chin  <china@thewrittenword.com>
78190
78191         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
78192         Toolkit C bug.
78193
78194 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
78195
78196         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
78197         (func_ln_if_changed): Remove forcibly for no error message
78198         in case file does not exist.
78199
78200 2005-04-19  Simon Josefsson  <jas@extundo.com>
78201
78202         * gnulib-tool (Options): Make --symlink mean --symbolic.
78203
78204 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
78205
78206         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
78207
78208 2005-04-16  Simon Josefsson  <jas@extundo.com>
78209
78210         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
78211
78212 2005-04-15  Simon Josefsson  <jas@extundo.com>
78213
78214         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
78215
78216 2005-04-15  Simon Josefsson  <jas@extundo.com>
78217
78218         * gnulib-tool: Rename --symlink to --symbolic.
78219
78220 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
78221
78222         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
78223         symbolic links to files instead of copying/moving.  Add --aux-dir,
78224         specifying directory relative --dir where auxiliary build tools
78225         are placed.
78226
78227 2005-04-14  Bruno Haible  <bruno@clisp.org>
78228
78229         * modules/allocsa (License): Change to LGPL.
78230         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
78231
78232 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
78233
78234         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
78235         that "UTC +1 second" continues to work.  Problem reported
78236         by Dmitry V. Levin.
78237         (relunit_snumber): New rule.
78238         (relunit): Use it.
78239
78240 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
78241
78242         * lib/getdate.y (universal_time_zone_table): New constant.
78243         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
78244         universal_time_zone_table.
78245         (lookup_zone): Prefer universal_time_zone_table to
78246         local_time_zone_table, so that "GMT" time stamps are allowed in
78247         London during the summer.  Problem reported by Ian Abbott.
78248
78249 2005-04-12  Jim Meyering  <jim@meyering.net>
78250
78251         * lib/human.c (humblock): Set *options even when returning due to
78252         xstrtoumax conversion failure.  Thanks to a used-uninitialized
78253         warning from gcc-4.
78254
78255 2005-04-09  Jim Meyering  <jim@meyering.net>
78256
78257         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
78258         -Wuninitialized: initialize tm0.tm_year.
78259
78260 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
78261
78262         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
78263         count, since there's no maximum.  All uses changed.
78264         Add member dsts_seen.
78265         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
78266         not being INT_MAX.
78267         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
78268         Use pc_rels_seen to decide whther a date is absolute.
78269
78270         * lib/getdate.y (number): Don't overwrite year.
78271         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
78272         check.
78273
78274 2005-04-02  Simon Josefsson  <jas@extundo.com>
78275
78276         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
78277         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
78278
78279 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
78280
78281         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
78282         where no absolute path name can be longer than PATH_MAX.
78283
78284 2005-03-27  Jim Meyering  <jim@meyering.net>
78285
78286         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
78287
78288 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
78289
78290         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
78291         "one's complement" -> "ones' complement" in comment, as per Knuth.
78292         "value of type" -> "type or expression" in comment.
78293         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
78294
78295 2005-03-26  Jim Meyering  <jim@meyering.net>
78296
78297         Comment nits.
78298         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
78299         Correct typos: s/or/of/.
78300
78301 2005-03-26  Jim Meyering  <jim@meyering.net>
78302
78303         * modules/check-include-files: Move to ../ and rename to...
78304         * check-module: ...this.
78305
78306 2005-03-25  Jim Meyering  <jim@meyering.net>
78307
78308         * modules/xvasprintf (Files): Add xalloc.h.
78309
78310 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
78311
78312         * modules/gettext (Files): config/config.rpath ->
78313         build-aux/config.rpath
78314         * modules/iconv (Files): Likewise.
78315         Problem reported by Oskar Liljeblad.
78316
78317 2005-03-23  Jim Meyering  <jim@meyering.net>
78318
78319         * modules/check-include-files: New script to check for
78320         missing dependencies, multiple includes, etc.
78321
78322         * modules/c-strtold (Depends-on): Add xalloc.
78323         * modules/c-strtod (Depends-on): Add xalloc.
78324         * modules/hash (Depends-on): Add xalloc.
78325         (Files): Remove lib/xalloc.h.
78326
78327         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
78328         * modules/userspec (Files): Add lib/inttostr.h.
78329
78330 2005-03-23  Jim Meyering  <jim@meyering.net>
78331
78332         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
78333
78334 2005-03-22  Jim Meyering  <jim@meyering.net>
78335
78336         * modules/stat-macros: New module.
78337         * modules/canonicalize, modules/euidaccess, modules/file-type,
78338         * modules/filemode, modules/lchown, modules/makepath,
78339         * modules/rmdir, modules/stat: Depend on new stat-macros module
78340         rather than listing lib/stat-macros.h manually.
78341         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
78342
78343 2005-03-22  Jim Meyering  <jim@meyering.net>
78344
78345         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
78346
78347 2005-03-22  Bruno Haible  <bruno@clisp.org>
78348
78349         * config/srclist.txt: Replace target directory 'config' with
78350         'build-aux'.
78351         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
78352         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
78353         ../build-aux/.
78354
78355 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
78356
78357         * modules/chdir-long (Depends-on): Add mempcpy.
78358
78359         * modules/acl, modules/backupfile, modules/c-strtod,
78360         modules/c-strtold, modules/canon-host, modules/canonicalize,
78361         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
78362         modules/exclude, modules/exitfail, modules/file-type,
78363         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
78364         modules/getdate, modules/getline, modules/getpagesize,
78365         modules/getpass, modules/getugroups, modules/group-member,
78366         modules/hard-locale, modules/hash, modules/human, modules/idcache,
78367         modules/inttostr, modules/long-options, modules/makepath,
78368         modules/md5, modules/memcasecmp, modules/memcoll,
78369         modules/modechange, modules/mountlist, modules/path-concat,
78370         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
78371         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
78372         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
78373         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
78374         modules/strftime, modules/strndup, modules/strverscmp,
78375         modules/timespec, modules/unlocked-io, modules/userspec,
78376         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
78377         modules/yesno:
78378         Remove lib_SOURCES line from Makefile.am section, as this is now
78379         done automatically by the corresponding Autoconf macro.
78380
78381 2005-03-21  Jim Meyering  <jim@meyering.net>
78382
78383         Changes imported from coreutils.
78384
78385         * lib/cycle-check.c: Don't include xalloc.h.
78386
78387         * lib/path-concat.c: Don't include assert.h.
78388         (path_concat): Remove assertion that would have triggered
78389         for ABASE starting with more than one slash.
78390         Reported by Andreas Schwab.
78391
78392         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
78393         properly when ABASE is an absolute file name.
78394         Correct the description of this function.
78395         Include <assert.h>.
78396         Add an assertion and a test driver.
78397         This fixes a bug introduced on 2004-07-02.
78398         Andreas Schwab reported the resulting failure of cp --parents:
78399         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
78400
78401 2005-03-21  Jim Meyering  <jim@meyering.net>
78402
78403         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
78404         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
78405
78406 2005-03-21  Jim Meyering  <jim@meyering.net>
78407         and  Paul Eggert  <eggert@cs.ucla.edu>
78408
78409         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
78410         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
78411         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
78412         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
78413         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
78414         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
78415         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
78416         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
78417         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
78418         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
78419         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
78420         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
78421         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
78422         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
78423         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
78424         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
78425         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
78426         for these modules.
78427
78428 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
78429
78430         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
78431         (which shouldn't happen), generate nothing instead of returning 0
78432         immediately, so that nstrftime (NULL, ...) doesn't return 0.
78433
78434 2005-03-16  Bruno Haible  <bruno@clisp.org>
78435
78436         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
78437         HAVE_LONGLONG_64BIT.
78438
78439 2005-03-16  Bruno Haible  <bruno@clisp.org>
78440
78441         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
78442         HAVE_LONGLONG_64BIT.
78443
78444 2005-03-16  Bruno Haible  <bruno@clisp.org>
78445
78446         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
78447         HAVE_LONGLONG_64BIT.
78448
78449 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
78450
78451         * lib/strftime.c (my_strftime): Prepend space to format so that we can
78452         reliably distinguish strftime failure from empty output on POSIX
78453         hosts.
78454
78455 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
78456
78457         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
78458         (iconv_string): Don't guess a size-zero buffer, as that might cause
78459         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
78460         result would be 'too large', where 'too large' is (heuristically)
78461         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
78462         overflow concerns.  This will prevent some unwanted malloc failures
78463         when the inputs are very large.
78464
78465 2005-03-15  Karl Berry  <karl@gnu.org>
78466
78467         * config/srclist.txt (config.rpath): from gettext.
78468         * config/config.rpath: update.
78469
78470 2005-03-15  Bruno Haible  <bruno@clisp.org>
78471
78472         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
78473         to 'negate'.
78474
78475         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
78476         variable.
78477
78478         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
78479         results.
78480
78481 2005-03-14  Simon Josefsson  <jas@extundo.com>
78482
78483         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
78484         <fx@gnu.org>.
78485
78486 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
78487
78488         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
78489         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
78490         intprops.h.
78491         * lib/strtol.c: Likewise.
78492
78493 2005-03-14  Jim Meyering  <jim@meyering.net>
78494
78495         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
78496         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
78497         to be nonzero so that we (and caller) can detect the difference
78498         between a valid zero-length expansion and an error return, even
78499         when the underlying strftime fails before writing anything into
78500         that location.
78501
78502 2005-03-14  Bruno Haible  <bruno@clisp.org>
78503
78504         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
78505         Update from GNU gettext 0.14.3.
78506
78507 2005-03-10  Jim Meyering  <jim@meyering.net>
78508
78509         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
78510
78511 2005-03-10  Jim Meyering  <jim@meyering.net>
78512
78513         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
78514         so that this module works on systems without fchdir.
78515
78516 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
78517
78518         Factor int-properties macros into a single file, except for
78519         glibc-related files.
78520         * lib/intprops.h: New file.
78521         * lib/getloadavg.c: Include it instead of limits.h.
78522         (INT_STRLEN_BOUND): Remove.
78523         * lib/human.c: Include intprops.h.
78524         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
78525         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
78526         302/1000.
78527         * lib/inttostr.h: Include intprops.h instead of limits.h.
78528         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
78529         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
78530         for consistency with intprops.h.
78531         (time_t_is_integer, twos_complement_arithmetic): Use them.
78532         * lib/sig2str.h: Include <signal.h>, intprops.h.
78533         (INT_STRLEN_BOUND): Remove.
78534         * lib/strftime.c (TYPE_SIGNED): Remove.
78535         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
78536         * lib/strtol.c: Adjust comments to match intprops.h.
78537         * lib/userspec.c: Include intprops.h.
78538         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
78539         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
78540         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
78541         instead of rolling our own expressions.
78542         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
78543
78544         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
78545         instead of int.
78546         (my_strftime): Do not mishandle years close to INT_MAX, by doing
78547         the right thing even if adding 1900 would overflow.  Similarly
78548         for tm_mon + 1 and tm_yday + 1.
78549         Make %Y always equivalent to %C%y, and similarly for %G and %g.
78550         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
78551         (DO_SIGNED_NUMBER): New macro.
78552         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
78553
78554 2005-03-07  Bruno Haible  <bruno@clisp.org>
78555
78556         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
78557
78558 2005-03-07  Bruno Haible  <bruno@clisp.org>
78559
78560         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
78561
78562 2005-03-04  Derek R. Price  <derek@ximbiot.com>
78563
78564         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
78565         (func_import): Only replace files via --import when they have actually
78566         changed.
78567
78568 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78569
78570         * m4/mmap-anon.m4: New file.
78571         * m4/pagealign_alloc.m4: New file.
78572
78573 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78574             Bruno Haible  <bruno@clisp.org>
78575
78576         * modules/pagealign_alloc: New file.
78577         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
78578
78579 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78580             Bruno Haible  <bruno@clisp.org>
78581
78582         * lib/pagealign_alloc.h: New file.
78583         * lib/pagealign_alloc.c: New file.
78584
78585 2005-03-03  Bruno Haible  <bruno@clisp.org>
78586
78587         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
78588         Use an all-permissive copyright notice, recommended by RMS.
78589
78590 2005-03-02  Bruno Haible  <bruno@clisp.org>
78591
78592         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
78593         of AIX, the replacement has to be done only after <string.h> is
78594         included, therefore not in config.h. stpncpy.h does the replacement,
78595         and stpncpy.c uses it.
78596
78597 2005-03-02  Bruno Haible  <bruno@clisp.org>
78598
78599         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
78600         stpncpy.c uses it.
78601
78602 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78603
78604         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
78605         The workaround isn't strictly needed for POSIX conformance, and
78606         it's too much of a pain to configure and maintain.  We'll ask
78607         people to fix their kernels instead.
78608         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
78609         (NANOSLEEP_BUG_WORKAROUND): Remove.
78610         (xnanosleep): Remove the workaround.
78611
78612 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78613
78614         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
78615         Reported by Derek Price.
78616         (Include): Add "timespec.h".
78617
78618         * modules/xnanosleep (Depends-on): Remove gethrxtime.
78619
78620 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78621
78622         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
78623         to detect nanosleep bug.
78624
78625 2005-03-01  Bruno Haible  <bruno@clisp.org>
78626
78627         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
78628
78629 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
78630
78631         * modules/gethrxtime: New file.
78632         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
78633         (Depends-on): Add gethrxtime.
78634         (configure.ac): Add gl_XNANOSLEEP.
78635         (Makefile.am): Remove lib_SOURCES line.
78636
78637 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
78638
78639         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
78640         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
78641
78642 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
78643
78644         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
78645         * lib/timespec.h (gettime): Return void, since it always
78646         succeeds now.  All uses changed.
78647         * lib/gettime.c (gettime): Likewise.
78648         [HAVE_NANOTIME]: Prefer nanotime.
78649         Assume gettimeofday succeeds, as POSIX requires.
78650         Assime time () succeeds, since other code already does.
78651         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
78652         (timespec_subtract): Remove.
78653         (NANOSLEEP_BUG_WORKAROUND): New constant.
78654         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
78655         things considerably.  Use it only on GNU/Linux hosts, since the
78656         workaround shouldn't be needed elsewhere.
78657
78658 2005-02-24  Bruno Haible  <bruno@clisp.org>
78659
78660         * modules/gettext (Files): Add m4/glibc2.m4.
78661
78662 2005-02-24  Bruno Haible  <bruno@clisp.org>
78663
78664         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
78665         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
78666         * m4/progtest.m4:
78667         Update from GNU gettext 0.14.2.
78668         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
78669
78670 2005-02-24  Bruno Haible  <bruno@clisp.org>
78671
78672         * lib/localcharset.c: Update from GNU gettext 0.14.2.
78673         * lib/config.charset: Update from GNU gettext 0.14.2.
78674
78675 2005-02-24  Bruno Haible  <bruno@clisp.org>
78676
78677         * lib/gettext.h: Update from GNU gettext 0.14.2.
78678
78679 2005-02-23  Simon Josefsson  <jas@extundo.com>
78680
78681         * m4/iconvme.m4: New file.
78682
78683 2005-02-23  Jim Meyering  <jim@meyering.net>
78684
78685         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
78686         change.
78687         Thanks to Bruno Haible for catching it.
78688
78689 2005-02-22  Simon Josefsson  <jas@extundo.com>
78690
78691         * modules/iconvme: New file.
78692
78693         * MODULES.html.sh: Add iconvme.
78694
78695 2005-02-22  Simon Josefsson  <jas@extundo.com>
78696
78697         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
78698
78699 2005-02-22  Simon Josefsson  <jas@extundo.com>
78700
78701         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
78702
78703 2005-02-22  Jim Meyering  <jim@meyering.net>
78704
78705         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
78706         s/ifndef/ifdef/.
78707
78708 2005-02-20  Neil Conway  <neilc@samurai.com>
78709
78710         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
78711         returned by OSX/Darwin if the specified buffer is not large
78712         enough for the hostname.
78713
78714 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78715
78716         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
78717         pass it to _help, otherwise the latter coredumps trying to
78718         dereference state.root_argp.
78719
78720 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78721
78722         * modules/chdir-long (Depends-on): Add memrchr.
78723         * modules/memrchr (Files): Add lib/memrchr.h.
78724         (Include): "memrchr.h".
78725
78726 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78727
78728         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
78729
78730 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78731
78732         * lib/memrchr.h: New file.
78733         * lib/chdir-long.c: Include it.
78734         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
78735         Don't bother including stddef.h.
78736
78737 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
78738
78739         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
78740         inclusion.
78741         Include <sys/types.h>, for dev_t.
78742         (ME_DUMMY, ME_REMOTE): Move from here....
78743         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
78744         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
78745         Dmitry V. Levin.
78746         Include mountlist.h first, to test the interface.
78747
78748 2005-01-29  Bruno Haible  <bruno@clisp.org>
78749
78750         * lib/progname.c (program_name): Initialize.
78751         Needed when linking statically on MacOS X.
78752
78753 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78754
78755         Sync from coreutils.
78756         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
78757         (Depends-on): Add c-strtod.
78758         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
78759
78760 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78761
78762         Sync from coreutils.
78763         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
78764
78765         Remove files that are specific to coreutils.
78766         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
78767
78768 2005-01-28  Bruno Haible  <bruno@clisp.org>
78769
78770         * modules/javacomp: New file.
78771         * MODULES.html.sh (Java): Add javacomp.
78772
78773 2005-01-28  Bruno Haible  <bruno@clisp.org>
78774
78775         * m4/javacomp.m4: New file, from GNU gettext.
78776
78777 2005-01-28  Bruno Haible  <bruno@clisp.org>
78778
78779         * lib/javacomp.sh.in: New file, from GNU gettext.
78780         * lib/javacomp.h: New file, from GNU gettext.
78781         * lib/javacomp.c: New file, from GNU gettext.
78782
78783 2005-01-26  Simon Josefsson  <jas@extundo.com>
78784
78785         * lib/gai_strerror.c: Use GPL in header.
78786
78787 2005-01-26  Bruno Haible  <bruno@clisp.org>
78788
78789         * modules/javaexec: New file.
78790         * MODULES.html.sh (Java): Add javaexec.
78791
78792 2005-01-26  Bruno Haible  <bruno@clisp.org>
78793
78794         * m4/javaexec.m4: New file, from GNU gettext.
78795
78796 2005-01-26  Bruno Haible  <bruno@clisp.org>
78797
78798         * lib/javaexec.sh.in: New file, from GNU gettext.
78799         * lib/javaexec.h: New file, from GNU gettext.
78800         * lib/javaexec.c: New file, from GNU gettext.
78801
78802 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78803
78804         * modules/lchown (Depends-on): Remove lchown.h
78805
78806 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78807
78808         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
78809         must be defined if the header file was not found, in order
78810         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
78811
78812 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78813
78814         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
78815         initializers for struct pentry_state.
78816         (__argp_error): Check return value of __asprintf
78817         (__argp_failure): Translate error message
78818
78819         * lib/argp-parse.c: Removed braces around the expansion of N_()
78820
78821 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78822
78823         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
78824         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
78825         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
78826         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
78827         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
78828         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
78829         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
78830         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
78831         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
78832         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
78833         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
78834         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
78835         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
78836         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
78837         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
78838         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
78839         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
78840         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
78841         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
78842         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
78843         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
78844         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
78845         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
78846         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
78847         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
78848         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
78849         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
78850         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
78851         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
78852         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
78853         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
78854         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
78855         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
78856         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
78857         xstrtol.m4, xstrtoumax.m4, yesno.m4:
78858         Use an all-permissive copyright notice, recommended by RMS.
78859
78860 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
78861
78862         * modules/chdir-long (Depends-on): Remove mempcpy.
78863
78864 2005-01-21  Jim Meyering  <jim@meyering.net>
78865
78866         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
78867         same value as for Solaris 9.
78868
78869         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
78870         component length.  This included changing the parameter to be
78871         of type `char *' rather than `char const *'.
78872         * lib/chdir-long.h (chdir_long): Update prototype.
78873
78874         * lib/openat.c (fdopendir, fstatat): New functions.
78875         * lib/openat.h: Include headers required for use of DIR and struct
78876         stat.
78877         [AT_SYMLINK_NOFOLLOW]: Define.
78878         (fdopendir, fstatat): Add prototypes.
78879
78880 2005-01-21  Bruno Haible  <bruno@clisp.org>
78881
78882         * modules/classpath: New file.
78883         * MODULES.html.sh (Java): Add classpath.
78884
78885 2005-01-21  Bruno Haible  <bruno@clisp.org>
78886
78887         * lib/classpath.h: New file, from GNU gettext.
78888         * lib/classpath.c: New file, from GNU gettext.
78889
78890 2005-01-20  Simon Josefsson  <jas@extundo.com>
78891
78892         * modules/version-etc-fsf: New file.
78893
78894 2005-01-20  Simon Josefsson  <jas@extundo.com>
78895
78896         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
78897         * lib/version-etc.c: Remove version_etc_copyright.
78898         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
78899         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
78900
78901 2005-01-20  Simon Josefsson  <jas@extundo.com>
78902
78903         * lib/base64.h (isbase64): Add.
78904
78905         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
78906         using a unsigned prototype, don't inline.
78907         (base64_decode): Use it.
78908
78909 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78910
78911         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
78912         it.
78913
78914 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78915
78916         * lib/save-cwd.c (save_cwd): Remove code to support the case
78917         where fchdir is missing or flaky.
78918
78919 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78920
78921         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
78922
78923 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
78924
78925         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
78926         AC_LIBSOURCES now does this.
78927         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
78928         with new ullong_max module.
78929
78930 2005-01-19  Bruno Haible  <bruno@clisp.org>
78931
78932         * modules/sh-quote: New file.
78933         * MODULES.html.sh (Executing programs): Add sh-quote.
78934
78935 2005-01-19  Bruno Haible  <bruno@clisp.org>
78936
78937         * lib/sh-quote.h: New file, from GNU gettext.
78938         * lib/sh-quote.c: New file, from GNU gettext.
78939
78940 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78941
78942         Merge from coreutils.
78943         * m4/ullong_max.m4: New file.
78944         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
78945         (gl_MACROS): Assume localeconv exists.
78946
78947 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78948
78949         Merge changes from coreutils, as described below in several
78950         changelogs dated today.
78951
78952         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
78953         (O_DIRECTORY): Remove; not needed here, since "." must be
78954         a directory.  All uses removed.
78955         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
78956         universal on Suns, and we also need to test for IRIX.
78957         Revamp code to use 'if' rather than '#if'.
78958         Avoid unnecessary comparison of cwd->desc to 0.
78959
78960         * lib/utimens.c (futimens): Robustify the previous patch, by checking
78961         for known valid error numbers rather than observed invalid ones.
78962
78963 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78964
78965         * modules/ullong_max: New file.
78966
78967         * modules/chdir-long, modules/openat: New files.
78968         * modules/save-cwd (Depends-on): Depend on chdir-long.
78969         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
78970
78971 2005-01-18  Jim Meyering  <jim@meyering.net>
78972
78973         Merge from coreutils.
78974         * m4/chdir-long.m4, m4/openat.m4: New files.
78975         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
78976         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
78977         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
78978         is sane and DOES follow symlinks.  Besides, testing 20 different
78979         systems found no broken chown implementations.
78980         Prompted by a change in rsync's copy of this macro.
78981         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
78982
78983         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
78984
78985         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
78986         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
78987         NULL-means-set-to-current-time semantics.
78988         Remove temporary file immediately, rather than waiting
78989         for configure's at-exit trap code to do it.
78990
78991 2005-01-18  Jim Meyering  <jim@meyering.net>
78992
78993         * lib/version-etc.c (version_etc_copyright): Update copyright date.
78994
78995         * lib/utimens.c (futimens): Account for the fact that futimes
78996         can also fail with errno == ENOSYS or errno == ENOENT.
78997         Patch from Dmitry V. Levin.
78998
78999         Change the name of the robust chdir function from chdir to chdir_long.
79000         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
79001         (restore_cwd): Use chdir_long, not chdir.
79002         * lib/chdir-long.c: Renamed from chdir.c.
79003         * lib/chdir-long.h: Renamed from chdir.h.
79004         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
79005         Hurd.
79006
79007 2005-01-18  Bruno Haible  <bruno@clisp.org>
79008
79009         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
79010         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
79011         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
79012         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
79013         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
79014         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
79015         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
79016         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
79017         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
79018         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
79019         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
79020         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
79021         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
79022         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
79023         Use an all-permissive copyright notice, recommended by RMS.
79024
79025 2005-01-18  Bob Proulx  <bob@proulx.com>
79026
79027         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
79028         simplify offsetof() macro construct to avoid compile failure with
79029         native HP-UX 11.0 ANSI C compiler.
79030
79031 2005-01-17  Bruno Haible  <bruno@clisp.org>
79032
79033         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
79034         redundant because stpncpy.m4 takes care of it.
79035
79036 2005-01-17  Bruno Haible  <bruno@clisp.org>
79037
79038         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
79039
79040 2005-01-17  Bruno Haible  <bruno@clisp.org>
79041
79042         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
79043         used.
79044
79045 2005-01-17  Bruno Haible  <bruno@clisp.org>
79046
79047         * lib/fwriteerror.h (fwriteerror): Change specification to include
79048         fclose.
79049         * lib/fwriteerror.c: Include <stdbool.h>.
79050         (fwriteerror): At the end, close the file stream. Record whether
79051         stdout was already closed.
79052
79053 2005-01-17  Bruno Haible  <bruno@clisp.org>
79054
79055         * lib/execute.c (environ): Declare if needed.
79056         * lib/pipe.c (environ): Likewise.
79057         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
79058
79059 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79060
79061         * modules/argp: Depend on vsnprintf
79062
79063 2005-01-10  Jim Meyering  <jim@meyering.net>
79064
79065         * modules/closeout (Depends-on): Add atexit.
79066
79067 2005-01-06  Bruno Haible  <bruno@clisp.org>
79068
79069         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
79070
79071 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79072
79073         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
79074         definitions to be after all include files, to avoid collisions.
79075         Problem reported by Bob Proulx.
79076
79077 2005-01-04  Jim Meyering  <jim@meyering.net>
79078
79079         Changes imported from coreutils.
79080         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
79081         as the mkstemp template, use a temporary directory and an
79082         8.3-friendly template to avoid trouble on systems like DJGPP.
79083         Reported by Juan M. Guerrero via Stepan Kasal.
79084         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
79085         close. Remove the temporary directory right away, rather than waiting
79086         for configure's at-exit trap code to do it.
79087         Suggestion from Stepan Kasal.
79088
79089 2005-01-01  Simon Josefsson  <jas@extundo.com>
79090
79091         * gnulib-tool: Print #include directives when --import'ing.
79092
79093 2004-12-28  Simon Josefsson  <jas@extundo.com>
79094
79095         * tests/test-base64.c: Include required header files.  Remove
79096         unused variables.
79097
79098 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
79099
79100         * modules/error (Depends-on): Remove gettext.
79101
79102 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
79103
79104         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
79105         not needed.  This removes a dependency on the gettext module.
79106         [defined _LIBC]: Do not include <libintl.h>; not needed.
79107
79108 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
79109
79110         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
79111         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
79112
79113 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
79114
79115         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
79116         HAVE_DECL_STRTOLD.
79117
79118 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79119
79120         * modules/getdate (Depends-on): Remove alloca-opt.
79121
79122 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79123
79124         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
79125
79126 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79127
79128         * lib/argp-parse.c: Include <stddef.h>.
79129         (alignof, alignto): New macros.
79130         (parser_init): Don't assume that void * is aligned sufficiently
79131         for struct option.
79132
79133         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
79134         need to extend the stack.
79135         (YYINITDEPTH): New macro, so that the initial stack isn't overly
79136         large.
79137
79138 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79139
79140         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
79141
79142 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
79143
79144         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
79145         (2004-10-24) change.  Apparently this was a false alarm.
79146
79147         * modules/getdate: Depend on alloca-opt, not alloca.
79148
79149 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
79150
79151         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
79152         Remove now-obsolete comment about AIX.
79153         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
79154         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
79155         (YYMAXDEPTH): New macro.
79156
79157 2004-12-18  Simon Josefsson  <jas@extundo.com>
79158
79159         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
79160
79161 2004-12-18  Bruno Haible  <bruno@clisp.org>
79162
79163         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
79164
79165 2004-12-18  Bruno Haible  <bruno@clisp.org>
79166
79167         * lib/fatal-signal.c (fatal_signals): Make non-const.
79168         (init_fatal_signals): New function.
79169         (uninstall_handlers, install_handlers): Ignore signals that were set to
79170         SIG_IGN.
79171         (at_fatal_signal): Call init_fatal_signals.
79172         (init_fatal_signal_set): Likewise. Ignore signals that were set to
79173         SIG_IGN.
79174         Reported by Paul Eggert.
79175
79176 2004-12-18  Bruno Haible  <bruno@clisp.org>
79177
79178         * doc/alloca.texi: New file.
79179         * doc/alloca-opt.texi: New file.
79180
79181 2004-12-17  Jim Meyering  <jim@meyering.net>
79182
79183         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
79184         Otherwise, install-sh could exit with improper exit status when
79185         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
79186
79187 2004-12-16  Simon Josefsson  <jas@extundo.com>
79188
79189         * tests/test-base64.c: Add license.
79190
79191 2004-12-15  Stepan Kasal  <address@hidden>
79192
79193         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
79194
79195 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
79196
79197         * modules/getcwd (Files): Add m4/d-ino.m4.
79198         Suggested by Mark D. Baushke.
79199
79200 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
79201
79202         * lib/getdate.y (textint): New member "negative".
79203         (time_zone_hhmm): New function.
79204         Expect 14 shift-reduce conflicts, not 13.
79205         (o_colon_minutes): New rule.
79206         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
79207         (yylex): Set the "negative" member of signed numbers.
79208
79209 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
79210
79211         * doc/getdate.texi (Time of day items, Time zone items):
79212         Describe new formats +00:00, UTC+00:00.
79213
79214 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79215
79216         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
79217         spurious "-l"s.  Problem reported by Stepan Kasal.
79218
79219 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
79220
79221         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
79222         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
79223
79224 2004-12-04  Simon Josefsson  <jas@extundo.com>
79225
79226         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
79227         Vandoorselaere <yoann@prelude-ids.org>.
79228
79229 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79230
79231         Changes imported from coreutils.
79232         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
79233         exist.
79234         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
79235
79236 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79237
79238         Changes imported from coreutils.
79239         * lib/hard-locale.c: Assume <locale.h> exists.
79240         Include "strdup.h".
79241         (GLIBC_VERSION): New macro.
79242         (hard_locale): Assume setlocale exists.
79243         Rewrite to avoid #ifdef.
79244         Use strdup rather than malloc + strcpy.
79245         * lib/human.c: Assume <locale.h> exists.
79246         (human_readable): Assume localeconv exists.
79247
79248 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79249
79250         * modules/hard-locale (Depends-on): Add strdup.
79251
79252 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
79253
79254         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
79255         convert T2, not T.  (Imported from libc.)
79256
79257 2004-11-30  Simon Josefsson  <jas@extundo.com>
79258
79259         * modules/restrict (License): Change to LGPL.
79260
79261 2004-11-30  Simon Josefsson  <jas@extundo.com>
79262
79263         * m4/restrict.m4: Add copyright and copying conditions.
79264
79265 2004-11-30  Simon Josefsson  <jas@extundo.com>
79266
79267         * m4/base64.m4: New file.
79268
79269 2004-11-30  Simon Josefsson  <jas@extundo.com>
79270
79271         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
79272         base64.
79273
79274         * tests/test-base64.c: New file.
79275
79276         * modules/base64: New file.
79277
79278 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
79279
79280         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
79281         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
79282
79283         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
79284
79285 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
79286
79287         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
79288         (__getcwd.c): Don't restore errno; glibc doesn't.
79289         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
79290         first, falling back to our code only if its results look suspicious.
79291         Ensure that the resulting buffer is only as large as necessary.
79292
79293         * lib/readutmp.c: Include readutmp.h first.
79294         Include <errno.h>, since readutmp.h no longer does that.
79295         * lib/readutmp.h: Don't include <errno.h>,
79296         <sys/param.h>, <time.h>; not needed to establish interface.
79297         (errno): Remove decl.
79298         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
79299         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
79300         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
79301
79302 2004-11-28  Simon Josefsson  <jas@extundo.com>
79303
79304         * lib/base64.h, base64.c: New file.
79305
79306 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
79307
79308         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
79309
79310 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
79311
79312         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
79313         (Depends-on): Remove pathmax, same.  Add mempcpy.
79314         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
79315         (Makefile.am): Append getcwd.h to lib_SOURCES.
79316         (Include): Add getcwd.h.
79317         (Maintainer): Change from Jim Meyering to "all, glibc",
79318         since getdate now uses intended-for-glibc code.
79319         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
79320         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
79321
79322 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79323
79324         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
79325         HP's ANSI C compiler.
79326         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
79327         Declaring int functions causes warnings on some modern systems and
79328         shouldn't be needed to compile on ancient ones.
79329         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
79330         defined.
79331
79332         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
79333         with the following changes.
79334         (__set_errno): Parenthesize properly.
79335         Include <stdbool.h>.
79336         (MIN, MAX, MATCHING_INO): New macros.
79337         (__getcwd): Define with prototype, not K&R form.
79338         Use heuristics to allocate default buffer on stack if possible.
79339         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
79340         behavior, and to avoid the PATH_MAX limit when computing
79341         ../../../../...
79342         Use MATCHING_INO to compare inode number to file.
79343         Check for arithmetic overflow in size calculations.
79344         Fix bug in reallocation of dot array that caused getcwd to fail
79345         on directories nested deeper than 75.
79346         Be more careful about saving errno on error.
79347         Do not use realloc; use only free+malloc, as this is a bit
79348         more flexible and avoids a needless copy operation.
79349         Do not inspect st_dev and st_ino for symbolic links; POSIX
79350         doesn't specify the latter.
79351         Check for closedir errors.
79352         Avoid needless casts.
79353         Use "#ifdef weak_alias" around weak_alias, to be like other
79354         glibc code.
79355         The following changes to getcwd.c have effect only when used in
79356         gnulib; they have no effect inside glibc proper.
79357         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
79358         as alloca isn't used.
79359         (alloca, __alloca): Likewise.
79360         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
79361         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
79362         unconditionally, as gnulib assumes C89 or better.
79363         Do not include <sys/param.h>.
79364         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
79365         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
79366         better.
79367         (NULL) [!defined NULL]: Remove; we assume C89 or better.
79368         Include <dirent.h> in a way that is compatible with modern Autoconf.
79369         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
79370         New macros, if not already defined.
79371         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
79372         Use "_LIBC", not "defined _LIBC", for consistency.
79373         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
79374         a mempcpy module.
79375         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
79376         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
79377         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
79378         credit only to Jim Meyering and adjust the copyright dates.
79379         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
79380         <stdlib.h>, <unistd.h>, "pathmax.h".
79381         Instead, include "xgetcwd.h" (first) and "getcwd.h".
79382         (INITIAL_BUFFER_SIZE): Remove.
79383         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
79384
79385 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79386
79387         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
79388         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
79389         Use the _ONCE methods, for efficiency.
79390         Check for fcntl.h.  In test program, include <errno.h>
79391         and <fcntl.h> if available.  Remove old K&R cruft from
79392         test program.  Check for common errors in GNU/Linux,
79393         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
79394         don't do AC_LIBOBJ, as that's getcwd.m4's job.
79395         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
79396         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
79397         name accordingly.
79398         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
79399         accommodate new getcwd.c.
79400         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
79401         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
79402         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
79403         that's all we need now.
79404
79405 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79406
79407         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
79408         argp-parse.c depends on getopt internals, that means we should
79409         always use our getopt, to be on the safe side.
79410         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
79411         order not to spoil the result of an eventual previous invocation
79412         of gl_GETOPT_SUBSTITUTE.
79413
79414 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79415
79416         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
79417         redefinition warnings. To avoid them, include the defines
79418         in `#if !defined __need_getopt ... #endif'. The only place
79419         where __getopt_argv_const is used is in definitions
79420         of getopt_long and getopt_long_only below, which are as well
79421         protected by `#ifndef __need_getopt'.
79422         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
79423         __need_getopt after including <stdio.h> and <unistd.h> These
79424         headers might have defined it.
79425
79426 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
79427
79428         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
79429
79430 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
79431
79432         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
79433         (futimens): New function, which uses futimes if available.
79434         (futimens, utimens): Support timespec==NULL, with same semantics
79435         as utime and utimens.
79436         * lib/utimens.h (futimens): New decl.
79437
79438 2004-11-23  Jim Meyering  <jim@meyering.net>
79439
79440         * lib/getopt_.h: Remove trailing blanks.
79441
79442 2004-11-23  Jim Meyering  <jim@meyering.net>
79443
79444         * lib/__fpending.c: Add comment.
79445
79446 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
79447
79448         * modules/canonicalize (Depends-on): Add xreadlink.
79449         Problem reported by James Youngman.
79450
79451 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
79452
79453         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
79454         New macros.
79455         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
79456         optopt): Use them instead of invoking ## directly; otherwise, the
79457         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
79458
79459 2004-11-19  Bruno Haible  <bruno@clisp.org>
79460
79461         * lib/strtok_r.c: Move comments from here...
79462         * lib/strtok_r.h: ... to here.
79463
79464 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
79465
79466         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
79467         implementations that mishandle size_t overflow.
79468
79469 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
79470
79471         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
79472         might fail.  Problem reported by Yoann Vandoorselaere.
79473         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
79474         implementations that mishandle size_t overflow.
79475
79476 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79477
79478         * modules/canon-host (Depends-on): Add strdup.
79479
79480 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79481
79482         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
79483
79484 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79485
79486         * lib/canon-host.c: Include "strdup.h".
79487         (canon_host): Use getaddrinfo if available, so that IPv6 works.
79488         Use strdup instead of malloc/strcpy to duplicate strings.
79489
79490         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
79491         (human_space_before_unit): New constant.
79492         * lib/human.c (human_readable): Support it.
79493
79494         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
79495         (xgetcwd): Set errno correctly when failing.
79496         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
79497         the failure is actually due to a PATH_MAX problem.
79498
79499         Further getopt changes to make it more likely that glibc will
79500         buy the changes back.
79501         * lib/getopt.c (POSIXLY_CORRECT): New constant.
79502         (getopt): Use it, so to preserve glibc semantic
79503         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
79504         when compiling for libc.
79505         * lib/getopt_.h (__getopt_argv_const): Bring it back.
79506         (getopt_long, getopt_long_only): Use it.
79507
79508         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
79509         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
79510         (getopt): Argv is now char * const *, as per standard.
79511         (_getopt_internal_r, _getopt_internal): Argv is now char **,
79512         not char *__getopt_argv_const *.
79513         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
79514         _getopt_long_only_r): Likewise.
79515         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
79516         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
79517         _getopt_long_r, _getopt_long_only_r): Likewise.
79518         * lib/getopt_.h (__getopt_argv_const): Remove.
79519         (getopt): Argv is now char * const *, as per standard.
79520
79521         * lib/getdate.y (tORDINAL): New token.
79522         (day, relunit): Allow it for relative times.
79523         (relative_time_table): Use tORDINAL for ordinals.
79524
79525 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79526
79527         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
79528         Document that "second" isn't allowed as an ordinal number.
79529
79530 2004-11-16  Jim Meyering  <jim@meyering.net>
79531
79532         * modules/closeout (Depends-on): Add fpending.
79533
79534 2004-11-15  Jim Meyering  <jim@meyering.net>
79535
79536         * lib/closeout.c: Include "__fpending.h" once again.
79537         Include <stdbool.h>.
79538         (close_stdout): Don't fail just because stdout was closed initially,
79539         since some programs don't write to stdout in the normal course of
79540         operation (other than --version and --help), and we don't want this
79541         function to make e.g. `touch file >&-' fail.
79542         But do fail if it was closed and someone has tried to write to it.
79543         E.g., `printf foo >&-' must fail.
79544
79545 2004-11-13  Jim Meyering  <jim@meyering.net>
79546
79547         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
79548
79549 2004-11-12  Simon Josefsson  <jas@extundo.com>
79550
79551         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
79552         small doc fix is still pending.
79553
79554 2004-11-11  Simon Josefsson  <jas@extundo.com>
79555
79556         * modules/strtok_r: New file.
79557
79558         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79559         strtok_r.
79560
79561 2004-11-11  Simon Josefsson  <jas@extundo.com>
79562
79563         * m4/strtok_r.m4: New file.
79564
79565         * m4/getopt.m4: Replace opterr.
79566
79567 2004-11-11  Simon Josefsson  <jas@extundo.com>
79568
79569         * lib/strtok_r.h, strtok_r.c: New file.
79570
79571 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
79572
79573         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
79574         of replacing opterr, getopt, etc.  This should handle the
79575         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
79576
79577 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
79578
79579         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
79580         we can stop lying to compilers about the constness of argv when we
79581         are compiled outside glibc.
79582         (getopt, getopt_long, getopt_long_only): Use it.
79583         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
79584         _getopt_internal, getopt): Likewise.
79585         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
79586         _getopt_long_only_r): Likewise.
79587         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
79588         _getopt_long_r, _getopt_long_only_r): Likewise.
79589
79590         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
79591         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
79592         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
79593         the other external symbols.
79594         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
79595         declaration, since the above renaming now works around collisions.
79596
79597 2004-11-11  Jim Meyering  <jim@meyering.net>
79598
79599         * lib/linebreak.c: Remove trailing blanks.
79600         * lib/alloca_.h: Likewise.
79601         * lib/acosl.c: Likewise.
79602         * lib/euidaccess.c: Likewise.
79603         * lib/allocsa.h: Likewise.
79604
79605 2004-11-10  Simon Josefsson  <jas@extundo.com>
79606
79607         * m4/getaddrinfo.m4: New file.
79608
79609 2004-11-10  Simon Josefsson  <jas@extundo.com>
79610
79611         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
79612
79613 2004-11-10  Simon Josefsson  <jas@extundo.com>
79614
79615         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79616         getaddrinfo.
79617
79618         * modules/getaddrinfo: New file.
79619
79620 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79621
79622         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
79623
79624 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79625
79626         * lib/mktime.c (SHR): New macro, which is a portable
79627         substitute for >> that should work even on Crays.
79628         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
79629         Problem reported by Mark D. Baushke in
79630         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
79631         * lib/getdate.y (SHR): Likewise.
79632         (tm_diff): Use it.
79633         * lib/strftime.c (SHR): Likewise.
79634         (tm_diff): Use it.
79635         * lib/quotearg.c (struct quoting_options): Use unsigned int for
79636         quote_these_too, so that right shifts are well defined.  All uses
79637         changed.
79638
79639 2004-11-10  Jim Meyering  <jim@meyering.net>
79640
79641         Ensure that no close failure goes unreported.
79642         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
79643         return early when it seems there's nothing to flush.
79644         Don't include __fpending.h.
79645
79646 2004-11-10  Jim Meyering  <jim@meyering.net>
79647
79648         * modules/closeout (Depends-on): Remove fpending.
79649
79650 2004-11-10  Jim Meyering  <jim@meyering.net>
79651
79652         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
79653
79654 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
79655
79656         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
79657         gl_FUNC_STRFTIME.
79658         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
79659         and AC_REQUIRE when possible, to avoid duplicate checks.
79660         Check for <wchar.h>.
79661
79662 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
79663
79664         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
79665
79666 2004-11-09  Bruno Haible  <bruno@clisp.org>
79667
79668         * m4/sockpfaf.m4: New file.
79669
79670 2004-11-05  Bruno Haible  <bruno@clisp.org>
79671
79672         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
79673         Reported by Mark D. Baushke <mdb@cvshome.org>.
79674
79675 2004-11-04  Bruno Haible  <bruno@clisp.org>
79676
79677         2004-09-11  Bruno Haible  <bruno@clisp.org>
79678                 * allocsa.valgrind: New file.
79679         2004-02-06  Bruno Haible  <bruno@clisp.org>
79680                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
79681                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
79682                 Reported by Christopher Seip <chris.seip@hp.com>.
79683
79684 2004-11-04  Bruno Haible  <bruno@clisp.org>
79685
79686         * modules/allocsa (Files): Add lib/allocsa.valgrind.
79687         (Makefile.am): Distribute it.
79688
79689 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
79690
79691         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
79692         with errno == ERANGE if the buffer is too small.
79693         Problem reported by Mark D. Baushke.
79694
79695 2004-11-03  Albert Chin  <china@thewrittenword.com>
79696             Paul Eggert  <eggert@cs.ucla.edu>
79697
79698         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
79699         equivalent, substitute $ac_type for equivalent type rather than
79700         blindly using uint32_t *always* which won't work if uint32_t is not
79701         available.  Define _UINT32_T to work around typedef of uint32_t if
79702         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
79703         2.5.1.
79704
79705 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79706
79707         * m4/jm-macros.m4: Sync from coreutils.
79708         (gl_MACROS): Check for mbrlen, for pathchk.
79709         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
79710
79711 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79712
79713         * lib/xreadlink.c (MAXSIZE): New macro.
79714         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
79715         size does not exceed MAXSIZE.  Avoid cast.
79716         As suggested by Mark D. Baushke in
79717         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
79718         if readlink fails with buffer size just under MAXSIZE, try again
79719         with MAXSIZE.
79720
79721 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79722
79723         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
79724
79725 2004-11-02  Derek R. Price  <derek@ximbiot.com>
79726         and  Paul Eggert  <eggert@cs.ucla.edu>
79727
79728         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
79729         (get_date): Overparenthesize to avoid GCC warning.
79730
79731 2004-11-02  Bruno Haible  <bruno@clisp.org>
79732
79733         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
79734         returns void.
79735
79736 2004-11-02  Bruno Haible  <bruno@clisp.org>
79737
79738         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
79739         function returns void.
79740
79741 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79742
79743         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
79744         fflush_unlocked, flockfile, funlockfile, funlockfile,
79745         fputs_unlocked, putc_unlocked.
79746
79747 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79748
79749         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79750         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
79751         already declared.
79752
79753 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79754
79755         * modules/getdate (Files): Add doc/getdate.texi.
79756         (Depends-on): Add setenv, xalloc.
79757
79758 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79759
79760         * lib/getdate.y: Add support for TZ="foo" within a date string.
79761         Fix some bugs near time_t boundaries.  Reject dates with
79762         out-of-range components, e.g., "Sept 31".
79763         Include <stdlib.h>, "setenv.h", "xalloc.h".
79764         (ISDIGIT_LOCALE): Remove; unused.
79765         Note that the TZ and time functions used here are not reentrant.
79766         (mktime_ok, get_tz): New functions.
79767         (TZBUFSIZE): New constant.
79768         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
79769         This requires that we sometimes generate our own TZ="XXX..." setting.
79770
79771 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79772
79773         * doc/getdate.texi: New file, from coreutils with modifications for
79774         the new TZ parsing.
79775
79776 2004-10-27  Derek R. Price  <derek@ximbiot.com>
79777
79778         * lib/mktime.c (not_equal_tm): Remove redundant check.
79779
79780 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79781
79782         * modules/regex (lib_SOURCES): Add regex.c.
79783         Reported by James Youngman in
79784         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
79785
79786 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79787
79788         * lib/getdate.y: Use Bison 1.875 features, and some minor
79789         code cleanups.  This change does not affect semantics.
79790         Don't include <stdlib.h>; no longer needed.
79791         Don't include unlocked-io.h; only the "#if TEST" code uses
79792         stdio, and performance isn't crucial there.
79793         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
79794         Bison 1.875 features as described below.
79795         All uses of "PC." replaced by "pc->".
79796         (YYSTYPE): Add a forward declaration.
79797         (yylex, yyerror): Use full prototypes in forward decls.
79798         Use "%pure-parser" rather than obsolescent "%pure_parser".
79799         Use %parse-param and %lex-param instead of obsolescent
79800         YYPARSE_PARAM and YYLEX_PARAM.
79801         (meridian_table, month_and_day_table, time_units_table,
79802         relative_time_table, time_zone_table, military_table,
79803         lookup_zone, lookup_word, get_date):
79804         Use NULL instead of 0 where appropriate.
79805         (to_hour): Avoid abort (), to avoid a dependency on
79806         stdlib.h.
79807         (yyerror, yylex): Now accepts parser_control * arg.
79808         (main) [TEST]: Use '\0' rather than 0 for char.
79809
79810 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79811
79812         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
79813
79814 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79815
79816         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
79817         It's now the caller's responsibility to handle the case where
79818         !HAVE_GETPAGESIZE && !defined getpagesize.
79819
79820         * lib/mktime.c (leapyear): Arg is long int, not int.
79821
79822 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
79823
79824         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
79825
79826 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
79827
79828         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
79829         missing.  Problem reported by James Youngman.
79830
79831 2004-10-16  Simon Josefsson  <jas@extundo.com>
79832
79833         * gnulib-tool: Fix comments.  Fix parse problem.
79834         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
79835
79836 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
79837
79838         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
79839         implementation of getopt_long.  Problem reported by Alexander Taler in:
79840         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
79841
79842 2004-10-15  Bruno Haible  <bruno@clisp.org>
79843
79844         * gnulib-tool: Untabify. Initialize supplied_libname.
79845         (func_usage): More homogenous output.
79846         (func_modules_transitive_closure, func_modules_to_filelist,
79847         func_emit_lib_Makefile_am): New functions.
79848         (func_import): New function, extracted from big case statement. Use
79849         func_get_license, func_modules_transitive_closure,
79850         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
79851         opt_lgpl. Don't use test -a, as it's not portable.
79852         (func_create_testdir): Use func_modules_transitive_closure,
79853         func_modules_to_filelist, func_emit_lib_Makefile_am.
79854
79855 2004-10-15  Bruno Haible  <bruno@clisp.org>
79856
79857         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
79858
79859 2004-10-15  Bruno Haible  <bruno@clisp.org>
79860
79861         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
79862         the portions belonging to each module.
79863         Suggested by Derek Robert Price <derek@ximbiot.com>.
79864
79865 2004-10-12  Simon Josefsson  <jas@extundo.com>
79866
79867         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79868         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
79869         to real functions.
79870
79871 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79872
79873         * modules/vsnprintf: New file.
79874
79875 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79876
79877         * m4/vsnprintf.m4: New file.
79878
79879 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79880
79881         * lib/vsnprintf.h: New file.
79882         * lib/vsnprintf.c: New file.
79883
79884 2004-10-11  Bruno Haible  <bruno@clisp.org>
79885
79886         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
79887         vsnprintf.
79888
79889 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79890
79891         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
79892
79893 2004-10-07  Bruno Haible  <bruno@clisp.org>
79894
79895         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
79896         fits into the provided buffer.
79897
79898 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79899
79900         * lib/diacrit.c, diacrit.h: Add GPL notice.
79901
79902         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
79903         notice.
79904         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
79905         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
79906         This avoids a potential constant-folding bug.
79907
79908 2004-10-05  Bruno Haible  <bruno@clisp.org>
79909
79910         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
79911         for the declaration of strsep.
79912
79913 2004-10-05  Bruno Haible  <bruno@clisp.org>
79914
79915         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
79916
79917 2004-10-04  Simon Josefsson  <jas@extundo.com>
79918
79919         * modules/memmem: New file.
79920         * tests/test-memmem.c: New file.
79921         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
79922
79923 2004-10-04  Simon Josefsson  <jas@extundo.com>
79924
79925         * m4/memmem.m4: New file.
79926
79927 2004-10-04  Simon Josefsson  <jas@extundo.com>
79928
79929         * lib/memmem.h: New file.
79930         * lib/memmem.c: New file, taken from glibc.
79931
79932 2004-10-04  Simon Josefsson  <jas@extundo.com>
79933
79934         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
79935         '#ifdef USE_UNLOCKED_IO'.
79936
79937 2004-10-04  Simon Josefsson  <jas@extundo.com>
79938
79939         * config/srclist.txt: Add memmem from glibc.
79940
79941 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79942
79943         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
79944
79945         * modules/argmatch, modules/argp, modules/closeout, modules/error,
79946         modules/exclude, modules/getdate, modules/getline,
79947         modules/getndelim2, modules/getpass, modules/getpass-gnu,
79948         modules/getusershell, modules/linebuffer, modules/md5,
79949         modules/mountlist, modules/posixtm, modules/readtokens,
79950         modules/readutmp, modules/regex, modules/sha1,
79951         modules/version-etc, modules/yesno:
79952         Remove dependency on unlocked-io.
79953
79954 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79955
79956         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
79957
79958         * m4/unlocked-io.m4: Add copyright notice.
79959         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
79960
79961 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79962
79963         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
79964         * lib/xmalloc.c (xmemdup): Likewise.
79965         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
79966         XFREE): Remove these long-obsolescent macros.
79967         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
79968         * lib/xstrdup.c: Remove.
79969
79970         * lib/regex.c (re_comp): Cast gettext return value to char *,
79971         Problem reported by Martin Neitzel via Mark D. Baushke.
79972
79973 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79974
79975         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
79976         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
79977         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
79978         regex.c, sha1.c, version-etc.c, yesno.c:
79979         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
79980         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
79981         the includer's responsibility.
79982
79983         Sync from coreutils.
79984
79985         * lib/modechange.c (mode_compile): Don't decrement a pointer that
79986         points to the start of a string, as the C Standard says the
79987         resulting behavior is undefined.
79988
79989         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
79990         simple -> simple_backups, numbered_existing ->
79991         numbered_existing_backups, numbered -> numbered_backups
79992         to avoid shadowing problems.  All uses changed.
79993         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
79994         * lib/backupfile.c (check_extension, numbered_backup):
79995         Rename locals to avoid shadowing 'basename'.
79996         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
79997         once.
79998
79999         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
80000         * lib/.cvsignore: Add getopt.h.
80001
80002 2004-10-04  Bruno Haible  <bruno@clisp.org>
80003
80004         * modules/README: New file.
80005         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
80006         not a module.
80007
80008 2004-10-02  Jim Meyering  <jim@meyering.net>
80009
80010         * lib/dirfd.h, getpagesize.h: Add copyright notice.
80011
80012 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80013
80014         * modules/strsep: New file.
80015
80016 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80017
80018         * m4/strsep.m4: New file.
80019
80020 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80021
80022         * lib/strsep.h: New file.
80023         * lib/strsep.c: New file.
80024
80025 2004-10-01  Simon Josefsson  <jas@extundo.com>
80026
80027         * lib/snprintf.c (snprintf): Handle size==0.
80028
80029 2004-10-01  Simon Josefsson  <jas@extundo.com>
80030             Bruno Haible  <bruno@clisp.org>
80031
80032         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
80033         (snprintf): Declare 'args'.
80034
80035 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
80036
80037         * lib/snprintf.c: Remove comments as to why each header is needed.
80038
80039 2004-10-01  Bruno Haible  <bruno@clisp.org>
80040
80041         * MODULES.html.sh: Add strsep.
80042
80043 2004-09-30  Simon Josefsson  <jas@extundo.com>
80044
80045         * modules/snprintf: New file.
80046
80047 2004-09-30  Simon Josefsson  <jas@extundo.com>
80048
80049         * m4/snprintf.m4: New file.
80050
80051 2004-09-30  Simon Josefsson  <jas@extundo.com>
80052
80053         * lib/snprintf.h, lib/snprintf.c: New files.
80054
80055 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80056
80057         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
80058         (hol_entry_help): Never translate an empty string.
80059         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
80060         * lib/argp.h (OPTION_NO_TRANS): New option.
80061
80062 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80063
80064         * modules/argp (Maintainer): Replace Simon Josefsson
80065         by Sergey Poznyakoff.
80066
80067 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80068
80069         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
80070         changes merged back into glibc.
80071
80072 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80073
80074         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
80075
80076 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
80077
80078         * lib/xvasprintf.c: Include xalloc.h.
80079         (xvasprintf): Use xalloc_die, not xmalloc_die.
80080
80081 2004-09-29  Bruno Haible  <bruno@clisp.org>
80082
80083         * modules/alloca-opt: New file, derived from modules/alloca.
80084         * modules/allocsa: Depend on alloca-opt instead of alloca.
80085         * modules/setenv: Likewise.
80086         * modules/vasnprintf: Likewise.
80087         * MODULES.html.sh: Add alloca-opt.
80088
80089 2004-09-28  Simon Josefsson  <jas@extundo.com>
80090
80091         * gnulib-tool: New parameter --lgpl, to asseert that modules are
80092         LGPL, and to replace license template from GPL to LGPL.
80093
80094 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
80095
80096         * modules/dummy: Change license to LGPL.
80097
80098 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
80099
80100         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
80101
80102 2004-09-24  Simon Josefsson  <jas@extundo.com>
80103
80104         * modules/minmax (License): Change from GPL to LGPL.
80105
80106 2004-09-23  Simon Josefsson  <jas@extundo.com>
80107
80108         * gnulib-tool (--import): Typo.
80109
80110 2004-09-23  Simon Josefsson  <jas@extundo.com>
80111
80112         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
80113
80114 2004-09-22  Bruno Haible  <bruno@clisp.org>
80115
80116         * modules/*: Add 'License' field.
80117         * gnulib-tool: Accept --extract-license option.
80118         (func_get_license): New function.
80119
80120 2004-09-21  Bruno Haible  <bruno@clisp.org>
80121
80122         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
80123         Reported by Simon Josefsson.
80124
80125 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
80126
80127         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
80128         gl_AC_TYPE_LONG_LONG.
80129
80130 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
80131
80132         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
80133
80134 2004-09-18  Simon Josefsson  <jas@extundo.com>
80135         and  Paul Eggert  <eggert@cs.ucla.edu>
80136
80137         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
80138         calls with autoreconf.  Define GL_LIB.
80139
80140 2004-09-14  Karl Berry  <karl@gnu.org>
80141
80142         * config/srclist.txt: unsync setenv.c, sigh.
80143
80144 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
80145
80146         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
80147         Problem reported by Bruno Haible in:
80148         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
80149
80150 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
80151
80152         * config/srclist.txt: Comment out argp-pvh.c.
80153
80154 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
80155
80156         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
80157         in case some system header has #define'd it.  Problem reported by
80158         Soeren D. Schulze in
80159         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
80160
80161 2004-09-09  Karl Berry  <karl@gnu.org>
80162
80163         * regex.[ch]: delete from the root.  These were supposed to be
80164                 synced with emacs cvs, but this has not happened for about
80165                 a year, and anyway nothing else uses emacs regex.[ch].
80166                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
80167                 lib/regex[.ch] is untouched.
80168
80169 2004-09-09  Bruno Haible  <bruno@clisp.org>
80170
80171         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
80172
80173 2004-09-09  Bruno Haible  <bruno@clisp.org>
80174
80175         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
80176         modifications.
80177         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
80178
80179 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
80180
80181         * modules/xvasprintf: New file.
80182         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
80183
80184 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
80185
80186         * lib/xvasprintf.h: New file.
80187         * lib/xvasprintf.c: New file.
80188         * lib/xasprintf.c: New file.
80189
80190 2004-09-08  Bruno Haible  <bruno@clisp.org>
80191
80192         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
80193
80194 2004-09-08  Bruno Haible  <bruno@clisp.org>
80195
80196         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
80197         length is > INT_MAX.
80198         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
80199         more.
80200
80201 2004-09-08  Bruno Haible  <bruno@clisp.org>
80202
80203         * lib/stdint_.h: New file, taken from GNU clisp.
80204
80205 2004-09-08  Bruno Haible  <bruno@clisp.org>
80206             Oskar Liljeblad  <oskar@osk.mine.nu>
80207
80208         * modules/stdint: New file.
80209         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
80210
80211 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80212
80213         Import from coreutils.
80214         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
80215         strings on unbounded length.  alloca's performance benefits aren't
80216         that important here.
80217         (V_STRDUP): Remove.
80218         (parse_with_separator): New function, with most of the internals
80219         of the old parse_user_spec.  Allow user to omit both user and group,
80220         for compatibility with FreeBSD.
80221         Clone only the user name, not the entire spec.
80222         Do not set *uid, *gid unless entirely successful.
80223         Avoid memory leak in some failing cases.
80224         Fix regression for USER.GROUP reported by Dmitry V. Levin in
80225         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
80226         (parse_user_spec): Rewrite to use parse_with_separator.
80227
80228 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80229
80230         * modules/userspec: Don't depend on alloca.
80231
80232 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80233
80234         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
80235
80236 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80237
80238         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
80239         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
80240         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
80241
80242 2004-08-16  Simon Josefsson  <jas@extundo.com>
80243
80244         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
80245         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
80246         Add --dry-run for --import.
80247         Let user provided command line parameters override configure.ac
80248         settings.
80249
80250 2004-08-12  Simon Josefsson  <jas@extundo.com>
80251
80252         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
80253         as discussed with Paul Eggert in threads rooted at
80254         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
80255         and
80256         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
80257         Before, the test was empty, and relied on ELIDE_CODE in source
80258         code.)
80259         (gl_PREREQ_GETOPT): New macro.
80260         (gl_GETOPT): Use them.
80261
80262 2004-08-12  Simon Josefsson  <jas@extundo.com>
80263
80264         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
80265         * lib/getopt_.h: Renamed from getopt.h.
80266
80267 2004-08-12  Simon Josefsson  <jas@extundo.com>
80268
80269         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
80270         Change default library name from libfoo to libgnu.
80271         Now, if you have a configure.ac that says:
80272                 gl_SOURCE_BASE(gl)
80273                 gl_M4_BASE(gl/m4)
80274                 gl_MODULES(error getopt etcetera)
80275                 gl_INIT
80276         you can import all you need by running:
80277                 ../gnulib/gnulib-tool --import
80278
80279         * modules/getopt (Files): Rename getopt.h to getopt_.h.
80280         (Makefile.am): Rewrite, use logic from argz.
80281         (Include): Use <getopt.h> instead of "getopt.h".
80282
80283 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80284
80285         * modules/argp (Files): Add m4/unlocked-io.m4.
80286         (Depends-on): Add extensions.
80287
80288 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80289
80290         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
80291         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
80292         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
80293         Check for program_invocation_name, program_invocation_short_name,
80294         flockfile, funlockfile, features.h, _getopt_long_only_r.
80295
80296 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80297
80298         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
80299         its complicated substitute.
80300         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
80301         and program_invocation_name.
80302         (__argp_basename) [!_LIBC]: Remove; the only use was
80303         replaced by its body.
80304         (__argp_short_program_name): Change condition from
80305         !defined __argp_short_program_name to
80306         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
80307         to match argp-namefrob.h.
80308         (__argp_failure): Don't assume strerror_r returns char *.
80309         * lib/argp-parse.c (N_): Define unconditionally.
80310         (argp_default_options): Fill out initializers with 0 to avoid
80311         gcc warnings.
80312
80313 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80314
80315         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
80316         getopt1.c.
80317
80318 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80319
80320         Merge from coreutils.
80321
80322         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
80323
80324         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
80325         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
80326
80327 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80328
80329         Merge from coreutils.
80330
80331         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
80332         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
80333         for Reliant Unix 5.43.
80334
80335         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
80336         (union fooround): Use uintmax_t, not long int.
80337         The rest is a merge from libc:
80338         [defined _LIBC]: Include <shlib-compat.h>.
80339         (_obstack) [defined _LIBC]: Remove after 2.3.4.
80340
80341         * lib/settime.c (settime): Recode to avoid warning with
80342         Sun Forte C 6U2.
80343
80344         * lib/strverscmp.c: Convert to UTF-8.
80345
80346 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80347
80348         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
80349         m4/uintmax_t.m4.
80350
80351 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80352
80353         * modules/xalloc-die: New file.
80354         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
80355
80356         * modules/md5 (Files): Add m4/uint32_t.m4.
80357         * modules/sha1: Renamed from modules/sha.
80358         (Files):
80359         Rename lib/sha.h to lib/sha1.h.
80360         Rename lib/sha.c to lib/sha1.c.
80361         Rename m4/sha.m4 to m4/sha1.m4.
80362         (lib_SOURCES): Likewise.
80363         (configure.ac): Rename gl_SHA to gl_SHA1.
80364         (Include): sha.h -> sha1.h.
80365
80366 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80367
80368         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
80369         * m4/sha1.m4: Renamed from sha.m4.
80370         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
80371
80372 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80373
80374         * lib/obstack.h (obstack_empty_p):
80375         Don't assume that chunk->contents is suitably aligned.
80376         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
80377         Likewise. Problem reported by Benno in
80378         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
80379
80380         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
80381         readable.  This could be improved further but it'd take some work.
80382
80383 2004-08-08  Simon Josefsson  <jas@extundo.com>
80384
80385         * modules/xgethostname (Depends-on): Remove exit and error (not
80386         used).
80387
80388         * modules/getpass-gnu: Add getpass.h.
80389         (Depends-on): Add stdbool.
80390         * modules/getpass: Add getpass.h.
80391
80392 2004-08-08  Simon Josefsson  <jas@extundo.com>
80393
80394         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
80395         Check getpass declaration.
80396
80397 2004-08-08  Simon Josefsson  <jas@extundo.com>
80398
80399         * lib/xgethostname.c: Don't include error.h (not used).
80400
80401         * lib/getpass.h: Add.
80402         * lib/getpass.c: Include getpass.h first.
80403
80404 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
80405
80406         * lib/xalloc-die.c: New file.
80407         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
80408         All uses removed.
80409         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
80410         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
80411         xalloc-die.c.
80412         (_, N_, xalloc_die): Move to xalloc-die.c.
80413         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
80414         so that we needn't mess with xalloc_msg_memory_exhausted.
80415
80416         * lib/sha1.h: Renamed from sha.h.
80417         (SHA1_H): Renamed from _SHA_H.
80418         (sha1_ctx): Renamed from sha_ctx.
80419         (sha1_init_ctx): Renamed from sha_init_ctx.
80420         (sha1_process_block): Renamed from sha_process_block.
80421         (sha1_process_bytes): Renamed from sha_process_bytes.
80422         (sha1_finish_ctx): Renamed from sha_finish_ctx.
80423         (sha1_read_ctx): Renamed from sha_read_ctx.
80424         (sha1_stream): Renamed from sha_stream.
80425         (sha1_buffer): Renamed from sha_buffer.
80426         * lib/sha1.c: Likewise; renamed from sha.c.
80427         Do not include <sys/types.h>.
80428         Include <stddef.h> rather than <stdlib.h>.
80429
80430 2004-08-08  Bruno Haible  <bruno@clisp.org>
80431
80432         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
80433         FILESYSTEM_PREFIX_LEN.
80434         * lib/progreloc.c: Likewise.
80435         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
80436
80437 2004-08-06  Simon Josefsson  <jas@extundo.com>
80438
80439         * modules/progname (Depends-on): Don't depend on stdbool.
80440
80441 2004-08-06  Simon Josefsson  <jas@extundo.com>
80442
80443         * modules/getsubopt: New file.
80444         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80445         getsubopt.
80446
80447 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80448
80449         More merge from coreutils.
80450
80451         * m4/utimens.m4, m4/utimecmp.m4: New files.
80452         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
80453         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
80454         prereq.m4, sha.m4: Import changes from coreutils.
80455
80456 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80457
80458         More merge from coreutils.
80459         * modules/raise, modules/readtokens0, modules/utimens:
80460         * modules/utimecmp, module/xnanosleep: New files.
80461         * modules/strftime: Add lib/strftime.h.
80462         Change include from <time.h> to "strftime.h".
80463         * modules/yesno: Add lib/yesno.h.
80464         * modules/backupfile: Remove lib/addext.c.
80465         * modules/euidaccess: Add stat-macros.h.
80466         * modules/canonicalize, modules/euidaccess,
80467         modules/filemode, modules/lchown, modules/makepath,
80468         modules/rmdir, modules/stat: Likewise.
80469
80470 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80471
80472         Merge from tar.
80473         * lib/argp-help.c (make_hol, hol_append): Don't assume that
80474         SIZE_MAX is a valid preprocessor constant.
80475         (__argp_basename): Change from "#ifndef _LIBC"
80476         to "#ifndef __argp_short_program_name", so that
80477         we don't compile these functions for tar.
80478
80479         More merges from coreutils.
80480         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
80481         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
80482         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
80483         * lib/addext.c: Remove; no longer needed.
80484         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
80485         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
80486         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
80487         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
80488         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
80489         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
80490         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
80491         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
80492         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
80493         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
80494         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
80495         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
80496         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
80497         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
80498         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
80499         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
80500         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
80501         Import changes from coreutils.
80502
80503 2004-08-05  Simon Josefsson  <jas@extundo.com>
80504
80505         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
80506
80507 2004-08-05  Simon Josefsson  <jas@extundo.com>
80508
80509         * m4/getsubopt.m4: New file.
80510
80511 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80512
80513         Merge from coreutils.
80514
80515         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
80516         * m4/getcwd-path-max.m4: New files.
80517
80518         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
80519         FILESYSTEM_PREFIX_LEN ->
80520         FILE_SYSTEM_PREFIX_LEN.
80521         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
80522         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
80523         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
80524         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
80525
80526         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
80527         prerequisite modules now handle the DOS stuff.
80528         Don't check for unistd.h.
80529
80530 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80531
80532         Merge from coreutils.
80533
80534         * lib/.gdb-history: Remove; this doesn't belong here.
80535
80536         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
80537         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
80538         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
80539         * lib/getcwd.c: New files.
80540
80541         * lib/dirname.h: Include <stdbool.h>.
80542         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
80543         for consistency with POSIX terminology.  All uses changed.
80544         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
80545         (strip_trailing_slashes): Use bool for booleans.
80546         * lib/stripslash.c (strip_trailing_slashes): Likewise.
80547
80548         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
80549         sometimes returns a positive errno value even when it succeeds.
80550         (print_errno_message) [!LIBC]: Fall back on strerror if
80551         __strerror_r fails.
80552
80553         * lib/path-concat.c (mempcpy): Don't define if a system header defines
80554         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
80555         (longest_relative_suffix): New function.
80556         (path_concat): Use it.  Assume first argument is not NULL.
80557         Port to DOS.  Omit redundant separators.
80558         Report an error instead of returning NULL.
80559         Use mempcpy instead of memcpy.
80560         (xpath_concat): Remove: not declared or used.
80561
80562         * lib/same.h: Include <stdbool.h>
80563         (same_name): Return bool, not int.
80564         * lib/same.c (same_name): Likewise.
80565         (errno): Don't declare; we assume C89 or better now.
80566
80567         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
80568         if not already defined.
80569
80570         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
80571         * lib/dup-safer.c (errno): Likewise.
80572
80573 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80574
80575         Merge from coreutils.
80576         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
80577         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
80578         * modules/path-concat: Don't depend on strdup.
80579
80580 2004-08-03  Simon Josefsson  <jas@extundo.com>
80581
80582         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
80583         * lib/progname.h: Don't include stdbool.h.
80584
80585 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80586
80587         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
80588         * MODULES.html.sh (func_all_modules): Remove fatal.
80589
80590 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80591
80592         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
80593
80594 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80595
80596         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
80597         working.
80598
80599 2004-08-02  Simon Josefsson  <jas@extundo.com>
80600
80601         * lib/getsubopt.h: New file, with comments from Bruno Haible.
80602         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
80603         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
80604
80605 2004-08-01  Simon Josefsson  <jas@extundo.com>
80606
80607         * lib/xgetdomainname.c: Include stdlib.h, for free().
80608
80609 2004-07-19  Bruno Haible  <bruno@clisp.org>
80610
80611         * MODULES.html.sh (func_all_modules): Add dummy.
80612
80613 2004-07-16  Simon Josefsson  <jas@extundo.com>
80614
80615         * modules/dummy: New file.
80616
80617 2004-07-16  Simon Josefsson  <jas@extundo.com>
80618
80619         * lib/dummy.c: New file.
80620
80621 2004-07-16  Bruno Haible  <bruno@clisp.org>
80622
80623         * lib/backupfile.h: Add extern "C" for C++.
80624         * lib/closeout.h: Likewise.
80625         * lib/copy-file.h: Likewise.
80626         * lib/findprog.h: Likewise.
80627         * lib/full-write.h: Likewise.
80628         * lib/pathname.h: Likewise.
80629         * lib/progname.h: Likewise.
80630         * lib/stpcpy.h: Likewise.
80631         * lib/stpncpy.h: Likewise.
80632         * lib/strcase.h: Likewise.
80633         * lib/strstr.h: Likewise.
80634         * lib/xalloc.h: Likewise.
80635
80636         * lib/mbswidth.h: Add extern "C" for C++.
80637         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
80638
80639 2004-07-13  Robert Millan  <robertmh@gnu.org>
80640
80641         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
80642
80643 2004-07-09  Simon Josefsson  <jas@extundo.com>
80644
80645         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
80646         failed without this.)
80647
80648 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80649
80650         * modules/chown (Files): Add lib/fchown-stub.c, since
80651         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
80652
80653 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80654
80655         * lib/fchown-stub.c: New file.
80656
80657 2004-06-24  Jim Meyering  <jim@meyering.net>
80658
80659         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
80660
80661 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80662
80663         * modules/argz: Omit "#include".
80664
80665         * MODULES.html.sh (func_all_modules): Add calloc, to match
80666         2004-06-01 addition of calloc module.
80667
80668 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80669
80670         * m4/argz.m4: New file, which is autoupdated from libtool.
80671
80672 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80673
80674         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
80675         libtool.
80676
80677 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80678
80679         * config/srclist-update: Don't insist on "USA." before the
80680         close-comment, as libtool omits the period and puts the */ on a
80681         separate line.
80682         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
80683         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
80684
80685 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
80686
80687         * modules/argz: New file.
80688         * MODULES.html.sh (func_all_modules): Add argz.
80689
80690 2004-06-12  Jim Meyering  <jim@meyering.net>
80691         and  Paul Eggert  <eggert@cs.ucla.edu>
80692
80693         * modules/hash (Files): Add lib/xalloc.h.
80694         * modules/pipe (Depends-on): Add wait-process.
80695         * modules/stat (Depends-on): Add xalloc.
80696         * modules/userspec (Files): Add lib/userspec.h.
80697         * modules/xstrto
80698
80699         Upgrade from gettext-0.13.
80700         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
80701         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
80702         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
80703
80704 2004-06-10  Jim Meyering  <jim@meyering.net>
80705
80706         * lib/calloc.c: New file.
80707
80708 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
80709
80710         * lib/getdate.y (yylex): Allow space between sign and number.
80711         Problem reported by Dan Jacobson.
80712
80713 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
80714
80715         Merge from coreutils CVS.
80716
80717         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
80718         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
80719         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
80720         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
80721         xstrtol.m4: Fix copyright date and/or serial number.
80722
80723         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
80724         See if we need an fchown replacement.
80725         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
80726         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
80727         and use the replacement function if we detect either defect.
80728
80729         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
80730         gl_UTIMECMP.
80731
80732 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
80733         and  Jim Meyering  <jim@meyering.net>
80734
80735         Merge from coreutils CVS.
80736
80737         * lib/stat-macros.h: New file, with contents from file-type.h
80738         and coreutils' system.h.
80739         * lib/file-type.c: Include "stat-macros.h".
80740         * lib/file-type.h (file_type): Move all macro definitions to new file,
80741         stat-macros.h.
80742
80743         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
80744         Wrap old code with this conditional.
80745         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
80746         function that does not dereference symlinks.
80747         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
80748
80749         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
80750         dependency problems.
80751         (xreadlink): Accept new arg SIZE, for efficiency.
80752         All decls and uses changed.
80753         * lib/xreadlink.h: Include <stddef.h>, for size_t.
80754
80755         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
80756         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
80757
80758         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
80759         sysexits.h.
80760
80761 2004-06-01  Jim Meyering  <jim@meyering.net>
80762
80763         * m4/calloc.m4: New file.
80764
80765 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
80766
80767         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
80768         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
80769         Also, fix a typo in a diagnostic.
80770
80771 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80772
80773         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
80774         or AC_FUNC_REALLOC.
80775
80776 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80777
80778         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
80779         macros to be defined.
80780         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
80781         the allocator returns NULL because the requested size is zero.
80782
80783 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
80784
80785         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
80786         var.  Add comment explaining why libc still defines it.  This
80787         merges the following patch from glibc:
80788         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
80789
80790 2004-05-20  Andreas Schwab  <schwab@suse.de>
80791
80792         * m4/free.m4: Replace free if it not known to work, not the other
80793         way round.
80794
80795 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80796
80797         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
80798         present in glibc since revision 1.1 of this file.
80799         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
80800         obstack_alignment_mask, obstack_alloc, obstack_base,
80801         obstack_blank, obstack_blank_fast, obstack_chunk_size,
80802         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
80803         obstack_grow0, obstack_init, obstack_int_grow,
80804         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
80805         obstack_next_free, obstack_object_size, obstack_ptr_grow,
80806         obstack_ptr_grow_fast, obstack_room): Remove declarations of
80807         nonexistent functions.
80808
80809 2004-05-18  Karl Berry  <karl@gnu.org>
80810
80811         * config/srclist.txt: break link for vasnprintf.c.
80812
80813 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80814
80815         Port obstack to the AS/400, where pointers are 16 bytes wide and
80816         you cannot cast an integer to a valid pointer.  This patch is
80817         currently waiting to be integrated into glibc; see
80818         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
80819
80820         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
80821         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
80822         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
80823         (struct obstack): temp member is now a union of a pointer and
80824         an integer, instead of an integer.  All integer uses changed.
80825         This does not affect the physical layout of struct obstack,
80826         except on hosts (like the AS/400) where the size or alignment of
80827         void * is greater than that of ptrdiff_t.
80828         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
80829         __STDC__)]: Store temporary in pointer member of union, not
80830         integer member.
80831         * lib/obstack.c: Include <stddef.h>, for offsetof.
80832         (struct fooalign): Remove; it doesn't need a name.
80833         (union fooround): Change double to long double, and add void *.
80834         (DEFAULT_ALIGNMENT): Use offsetof to compute.
80835         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
80836         not a macro.  Hence the values are always int; so remove all
80837         casts-to-int in uses.
80838
80839 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80840
80841         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
80842         we can get this patch merged into glibc.
80843
80844 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80845             Paul Eggert  <eggert@cs.ucla.edu>
80846
80847         * m4/argp: Depend on alloca.
80848
80849 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80850             Paul Eggert  <eggert@cs.ucla.edu>
80851
80852         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
80853         freecoding.
80854
80855 2004-05-17  Bruno Haible  <bruno@clisp.org>
80856
80857         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
80858         precision that consists of a '.' followed by an empty digit string.
80859         Patch by Tor Lillqvist <tml@iki.fi>.
80860
80861 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80862
80863         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
80864         for backward compatibility with older code.  We need our own
80865         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
80866         it under some other name, and our alloca.h will define it.
80867
80868 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80869             Derek Price  <derek@ximbiot.com>
80870
80871         * lib/alloca.c: Include <alloca.h>, to get our interface.
80872         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
80873         include <alloca.h> first.  Use C89 prototype for alloca; this
80874         requires including <stddef.h> for size_t.  Use extern "C" if C++.
80875         Use #elif for simplicity, since we can assume C89 now.
80876         Don't try to source the system alloca.h since it will not be found
80877         and to prevent recursively including its replacement.
80878         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
80879         * lib/regex.c: Likewise.
80880
80881 2004-05-16  Derek Price  <derek@ximbiot.com>
80882             Paul Eggert  <eggert@cs.ucla.edu>
80883
80884         getline cleanup.  This changes the getndelim2 API: both order of
80885         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
80886         no delimiter).
80887
80888         * lib/getline.c: Don't include stddef.h or stdio.h, since our
80889         interface does that.
80890         (getline): Always use getdelim, so that we don't have two
80891         copies of this code.
80892         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
80893         if available.
80894         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
80895         (GETNDELIM2_MAXIMUM): New macro.
80896         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
80897         instead of the old practice of delim2==0.  All callers changed.
80898         Return -1 on overflow, instead of returning junk.
80899         Do not set *linesize unless allocation succeeds.
80900         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
80901         that we include sys/types.h.
80902         * lib/getnline.h: Likewise.
80903         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
80904         (getndelim2): Reorder arguments.
80905         * lib/getnline.c (getnline, getndelim):
80906         Don't discard the NMAX argument.
80907         (getnline): Invoke getndelim, to avoid code duplication.
80908         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
80909         of (size_t) -1 by callers of the getnline family.
80910
80911 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80912
80913         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
80914         Check for gettimeofday.
80915         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
80916         Check for settimeofday, stime.
80917
80918 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80919
80920         * lib/nanosleep.c (suspended): Change its type from int to
80921         sig_atomic_t volatile.
80922         (first_call): Make it private to rpl_nanosleep, and have it
80923         be zero initially as that's a bit faster.
80924         (my_usleep): Round up fractional times instead of truncating them,
80925         as this is the usual meaning for 'sleep'.
80926
80927         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
80928         doesn't work.
80929         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
80930         (ENOSYS): Define if not defined.
80931         (settime): Fall back on stime if it exists and settimeofday fails.
80932         But don't bother with fallbacks if a method fails with errno == EPERM.
80933
80934 2004-05-11  Jim Meyering  <jim@meyering.net>
80935
80936         Prior to this change, the save_cwd caller required read access to the
80937         current directory on most systems (ones with the fchdir function).
80938
80939         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
80940         fails, try write-only, and finally, resort to using xgetcwd.
80941
80942 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
80943
80944         * lib/obstack.c, obstack.h: Import changes from libc.
80945
80946 2004-04-28  Bruno Haible  <bruno@clisp.org>
80947
80948         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
80949         also implicitly appends .exe to executables.
80950         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
80951         accepts Windows pathnames.
80952         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80953         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80954         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80955         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80956         Reported by Derek Robert Price <derek@ximbiot.com>.
80957
80958 2004-04-21  Karl Berry  <karl@gnu.org>
80959
80960         * config/srclist.txt (localcharset.c): break sync.
80961
80962 2004-04-20  Paul Eggert  <eggert@twinsun.com>
80963
80964         * m4/host-os.m4: Add a copyright notice.
80965
80966 2004-04-20  Jim Meyering  <jim@meyering.net>
80967
80968         Change UTILS_ to gl_ in AC_DEFINE'd names.
80969         Change utils_- and jm_-prefixed variables, too.
80970         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
80971         UTILS_FUNC_MKDIR_TRAILING_SLASH.
80972         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
80973
80974         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
80975         Don't emit trailing blanks.
80976         Also rename jm_-prefixed variables to have gl_ prefix.
80977
80978         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
80979         Also rename jm_-prefixed variables to have gl_ prefix.
80980
80981         * m4/jm-macros.m4: Reflect the renamings.
80982         * m4/prereq.m4: Likewise.
80983
80984 2004-04-20  Jim Meyering  <jim@meyering.net>
80985
80986         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
80987         memory.
80988
80989 2004-04-20  Jim Meyering  <jim@meyering.net>
80990             Bruno Haible  <bruno@clisp.org>
80991
80992         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
80993         memory when realloc fails.
80994
80995 2004-04-19  Jim Meyering  <jim@meyering.net>
80996
80997         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
80998         now that readutmp.c may call `free (0)'.
80999
81000 2004-04-19  Bruno Haible  <bruno@clisp.org>
81001
81002         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
81003         * m4/inttypes_h.m4: Likewise.
81004         * m4/stdint_h.m4: Likewise.
81005         * m4/intmax_t.m4: Likewise.
81006         * m4/uintmax_t.m4: Likewise.
81007
81008 2004-04-18  Jim Meyering  <jim@meyering.net>
81009
81010         * m4/prereq.m4: Don't forbid jm_ prefix.
81011
81012         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
81013         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
81014         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
81015         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
81016         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
81017         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
81018         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
81019         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
81020         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
81021         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
81022         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
81023         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
81024         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
81025         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
81026         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
81027         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
81028         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
81029         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
81030         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
81031
81032 2004-04-18  Jim Meyering  <jim@meyering.net>
81033
81034         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
81035         failure, don't leak memory and do call END_UTMP_ENT.
81036
81037 2004-04-16  Jim Meyering  <jim@meyering.net>
81038
81039         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
81040         coreutils' stat program.
81041         (gl_PREREQ): Don't require jm_PREREQ_STAT.
81042
81043 2004-04-11  Paul Eggert  <eggert@twinsun.com>
81044
81045         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
81046         C89.
81047         (CHAR_BIT): Remove, since we assume C89.
81048         Include <stdint.h> if available, as per current Autoconf CVS advice.
81049
81050 2004-03-31  Jim Meyering  <jim@meyering.net>
81051
81052         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
81053         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
81054         * m4/xalloc.m4: Likewise.
81055
81056 2004-03-30  Paul Eggert  <eggert@twinsun.com>
81057
81058         Merge from coreutils.
81059
81060         * m4/inttostr.m4: New file.
81061         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
81062         Require AM_STDBOOL_H and gl_TIMESPEC instead.
81063         Require gl_CLOCK_TIME.
81064         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
81065
81066 2004-03-30  Paul Eggert  <eggert@twinsun.com>
81067
81068         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
81069         not bool, to be more consistent with Unix conventions.
81070         Suggested by Bruno Haible.
81071
81072         Merge from coreutils.
81073
81074         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
81075         * lib/umaxtostr.c: New files.
81076
81077         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
81078         the usual <time.h> dance.
81079         (get_date): Change signature to support fractional time stamps.
81080         All callers changed.
81081         * lib/getdate.y: Include "getdate.h" first, as we can now
81082         assume C89 and don't need to worry about 'const'.
81083         Similarly, include "unlocked-io.h" near start, not in middle.
81084         Include <limits.h>.
81085         (textint.value): Use long int rather than int.
81086         (textint.digits): Use size_t rather than int.
81087         (BILLION, LOG10_BILLION): New constants.
81088         (parser_control): New member rel_ns.  Members day_ordinal,
81089         time_zone, month, day, hour, minutes, rel_year, rel_month,
81090         rel_day, rel_hour, rel_minutes, rel_seconds
81091         are now long int, not int.  Member seconds is now struct timespec,
81092         not int.  New member timespec_seen.  Members dates_seen, days_seen,
81093         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
81094         not int.
81095         (%union.intval): Now long int, not int.
81096         New member timespec.
81097         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
81098         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
81099         (spec): Now is a timespec or an item list.
81100         (timespec, items): New nonterminals.
81101         (time, rel, relunit, number, get_date):
81102         Add support for fractional seconds.
81103         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
81104         (gmtime, localtime, mktime): Remove decls; not needed with C89.
81105         (to_hour): First arg is now long int, not int.
81106         (to_year): Returns long int, not int.
81107         Don't treat year -70 like 70.
81108         (tm_diff): Returns long int, not int.
81109         (lookup_word): Use bool instead of int when appropriate.
81110         (yylex): Use size_t for count, not int.
81111         Detect overflow when parsing large integer constants.
81112         Add support for fractions.
81113         (get_date): Make pointers 'const' if possible.
81114         Use more-portable code to detect integer overflow.
81115         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
81116         Don't use ctime; it's not reliable if the year has >4 digits.
81117
81118         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
81119         This is for compatibility with BSD.
81120
81121         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
81122         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
81123         From coreutils' system.h.
81124
81125         * lib/userspec.c: Don't include "posixver.h".
81126         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
81127         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
81128         compatible extension.  Simplify code by removing a boolean int
81129         that was always nonzero if a string was nonnull.
81130
81131 2004-03-30  Jim Meyering  <jim@meyering.net>
81132
81133         Merge from coreutils.
81134
81135         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
81136         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
81137         on some systems one must include <grp.h> before it.
81138         Reported by Christian Krackowizer.
81139
81140 2004-03-30  Jim Meyering  <jim@meyering.net>
81141
81142         Merge from coreutils.
81143
81144         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
81145
81146         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
81147         an empty input stream.
81148
81149         * lib/readtokens.c: Include <stdbool.h>.
81150         (readtoken): Use `size_t' rather than int/long.
81151         All callers adjusted.
81152         Use `bool' rather than `int' where appropriate.
81153         Use memset rather than an explicit loop.
81154         Use x2nrealloc rather than xrealloc.
81155         Allow the use of `\0' as a delimiter.
81156         (readtokens): Likewise.
81157         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
81158
81159 2004-03-30  Jim Meyering  <jim@meyering.net>
81160
81161         * m4/realloc.m4: Remove file, since now it does no more than
81162         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
81163         the `configure.ac' section of module/realloc.
81164         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
81165
81166 2004-03-30  Bruno Haible  <bruno@clisp.org>
81167
81168         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
81169         nonnull.
81170
81171 2004-03-29  Paul Eggert  <eggert@twinsun.com>
81172
81173         Merge changes to getloadavg.c from coreutils and Emacs.
81174
81175         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
81176         Define to an expression, not to the empty string.
81177         Include cloexec.h and xalloc.h.
81178         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
81179         Use set_cloexec_flag rather than rolling our own.
81180         * lib/cloexec.c, lib/cloexec.h: New files.
81181
81182 2004-03-29  Paul Eggert  <eggert@twinsun.com>
81183
81184         * m4/cloexec.m4: New file.
81185
81186 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81187
81188         * lib/getopt.h: Sync with libc CVS.
81189
81190 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81191             Bruno Haible  <bruno@clisp.org>
81192
81193         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
81194         mbswidth.
81195
81196 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81197             Bruno Haible  <bruno@clisp.org>
81198
81199         * lib/mbswidth.h: Include <wchar.h> only if
81200         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
81201         <wchar.h>.
81202         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
81203
81204 2004-03-09  Paul Eggert  <eggert@twinsun.com>
81205
81206         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
81207         Sync with libc CVS.
81208         * lib/getopt_int.h: New file, also synced from libc.
81209
81210 2004-03-09  Paul Eggert  <eggert@twinsun.com>
81211
81212         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
81213         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
81214         Bring back getopt.c, getopt.h, getopt1.c.
81215
81216 2004-03-07  Paul Eggert  <eggert@twinsun.com>
81217
81218         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
81219         All uses changed.  Check for sa_sigaction member; this fixes
81220         a bug first reported by Jason Andrade in
81221         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
81222
81223 2004-03-07  Paul Eggert  <eggert@twinsun.com>
81224
81225         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
81226         '#if' expressions.  Unlike the code it replaces, it does not
81227         depend on (defined _SC_PAGESIZE).  However, it does depend on
81228         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
81229         first reported by Jason Andrade in
81230         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
81231
81232 2004-02-25  Simon Josefsson  <jas@extundo.com>
81233
81234         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
81235
81236 2004-02-25  Simon Josefsson  <jas@extundo.com>
81237
81238         * lib/strdup.h: New file.
81239         * lib/strdup.c: Include it.
81240         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
81241         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
81242
81243 2004-02-23  Karl Berry  <karl@gnu.org>
81244
81245         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
81246         (from fencepost.gnu.org:/gd/gnuorg).
81247
81248 2004-02-23  Karl Berry  <karl@gnu.org>
81249
81250         * config/srclistvars.sh (GNUORG) [karl]: redefine.
81251         * config/srclist.txt: add maintain/standards documents.
81252
81253 2004-02-18  Bruno Haible  <bruno@clisp.org>
81254
81255         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
81256         Reported by Derek Robert Price <derek@ximbiot.com>.
81257
81258 2004-02-16  Karl Berry  <karl@gnu.org>
81259
81260         * config/mkinstalldirs, install-sh: update from automake.
81261
81262 2004-02-06  Karl Berry  <karl@gnu.org>
81263
81264         * m4/po.m4: update from gettext 0.14.1.
81265
81266 2004-02-06  Karl Berry  <karl@gnu.org>
81267
81268         * lib/config.charset: update from gettext 0.14.1.
81269
81270 2004-02-05  Paul Eggert  <eggert@twinsun.com>
81271
81272         Add comments and code, prompted by suggestions from Bruno Haible
81273         for sh-quote.
81274         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
81275         describing the enum quoting_style values.
81276         * lib/quotearg.c (quotearg_alloc): New function.
81277         (quotearg_buffer_restyled): Treat lone { and } as special.
81278         Treat = as special.  Work around bug with older shells
81279         that "see" a '\' that is really the 2nd byte of a multibyte char.
81280         Quote empty string with shell_quoting_style.
81281
81282 2004-02-03  Bruno Haible  <bruno@clisp.org>
81283
81284         * m4/pipe.m4: New file, from GNU gettext.
81285
81286 2004-02-03  Bruno Haible  <bruno@clisp.org>
81287
81288         * lib/pipe.h: New file, from GNU gettext.
81289         * lib/pipe.c: New file, from GNU gettext.
81290
81291 2004-01-27  Bruno Haible  <bruno@clisp.org>
81292
81293         * m4/execute.m4: New file, from GNU gettext.
81294
81295 2004-01-27  Bruno Haible  <bruno@clisp.org>
81296
81297         * lib/execute.h: New file, from GNU gettext.
81298         * lib/execute.c: New file, from GNU gettext.
81299         * lib/w32spawn.h: New file, from GNU gettext.
81300
81301 2004-01-24  Paul Eggert  <eggert@twinsun.com>
81302
81303         Merge from diffutils.
81304
81305         * lib/file-type.c (file_type): Add typed memory objects.
81306         * lib/file-type.h (S_TYPEISTMO): New macro.
81307
81308         * lib/c-stack.h (c_stack_action): Remove argv argument.
81309         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
81310         (die): Don't calculate message unless segv_action returns.
81311         (get_stack_location, min_address_from_argv, max_address_from_argv,
81312         volatile stack_base, volatile_stack_size): Remove.
81313         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
81314         that every segmentation violation is a stack overflow.  (Ouch!)
81315         See Debian bug 136249 (still outstanding) for more info about why
81316         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
81317
81318 2004-01-24  Paul Eggert  <eggert@twinsun.com>
81319
81320         Exit-status fix from coreutils.
81321
81322         Use exit_failure consistently in place of EXIT_FAILURE,
81323         so that program exit statuses are consistent on failure.
81324
81325         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
81326         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
81327         * lib/argmatch.h: Comment fix to match the above.
81328         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
81329         Now a macro referring to exit_failure, instead of a separate
81330         variable.  Include "exitfail.h" to get it.
81331         * lib/xstrtol.h: Include "exitfail.h".
81332         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
81333
81334         * lib/long-options.c (parse_long_options): Use prototype
81335         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
81336         for clarity.
81337
81338 2004-01-21  Jim Meyering  <jim@meyering.net>
81339
81340         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
81341         so as not to conflict with a different-sized __mktime_internal
81342         function in GNU libc.
81343         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
81344         Problem building statically-linked `ls' reported by Michael Brunnbauer.
81345
81346 2004-01-20  Karl Berry  <karl@gnu.org>
81347
81348         * config/config.guess: update from config.
81349
81350         * config/srclistvars.sh: GNUWWWLICENSES for karl.
81351
81352 2004-01-20  Bruno Haible  <bruno@clisp.org>
81353
81354         Safer stack allocation.
81355         * lib/setenv.c: Include allocsa.h.
81356         (alloca): Remove fallback definition.
81357         (freea): Remove macro.
81358         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
81359         instead of freea.
81360
81361 2004-01-20  Bruno Haible  <bruno@clisp.org>
81362
81363         * m4/eealloc.m4: New file, from GNU gettext.
81364
81365 2004-01-20  Bruno Haible  <bruno@clisp.org>
81366
81367         * m4/allocsa.m4: New file, from GNU gettext.
81368
81369 2004-01-20  Bruno Haible  <bruno@clisp.org>
81370
81371         * lib/xallocsa.h: New file, from GNU gettext.
81372         * lib/xallocsa.c: New file, from GNU gettext.
81373
81374 2004-01-20  Bruno Haible  <bruno@clisp.org>
81375
81376         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
81377
81378 2004-01-20  Bruno Haible  <bruno@clisp.org>
81379
81380         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
81381         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
81382         specially.
81383
81384 2004-01-20  Bruno Haible  <bruno@clisp.org>
81385
81386         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
81387         patch.
81388
81389 2004-01-20  Bruno Haible  <bruno@clisp.org>
81390
81391         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
81392
81393 2004-01-20  Bruno Haible  <bruno@clisp.org>
81394
81395         * lib/eealloc.h: New file.
81396
81397 2004-01-20  Bruno Haible  <bruno@clisp.org>
81398
81399         * lib/binary-io.h: Avoid warnings on Cygwin.
81400
81401 2004-01-20  Bruno Haible  <bruno@clisp.org>
81402
81403         * lib/allocsa.h: New file, from GNU gettext.
81404         * lib/allocsa.c: New file, from GNU gettext.
81405
81406 2004-01-18  Karl Berry  <karl@gnu.org>
81407
81408         * doc/gpl.texi, doc/lgpl.texi: new files.
81409
81410 2004-01-18  Karl Berry  <karl@gnu.org>
81411
81412         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
81413         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
81414
81415 2004-01-15  Paul Eggert  <eggert@twinsun.com>
81416
81417         Merge from coreutils.
81418
81419         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
81420         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
81421         (gl_DEFAULT_POSIX2_VERSION): Move
81422         the documentation from 'configure' into 'config.hin',
81423         so that 'configure --help' isn't burdened by it and
81424         we don't have to worry about its formatting there.
81425         Reword the documentation so that it's more succinct
81426         and can be run together into a single paragraph.
81427         * m4/same.m4 (gl_SAME): Check for pathconf.
81428
81429 2004-01-15  Paul Eggert  <eggert@twinsun.com>
81430
81431         Merge from coreutils.
81432
81433         * lib/posixver.c: Include posixver.h.
81434
81435         * lib/same.c: Include <stdbool.h>, <limits.h>.
81436         (_POSIX_NAME_MAX): Define if not defined.
81437         (MIN): New macro.
81438         (same_name): If file names are silently truncated, report
81439         that the file names are the same if they are the same after
81440         the silent truncation.
81441
81442         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
81443         conversion function.
81444         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
81445         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
81446         longer needed.
81447
81448 2004-01-15  Jim Meyering  <jim@meyering.net>
81449
81450         Merge from coreutils.
81451
81452         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
81453         if no library is required.
81454         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
81455         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
81456         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
81457         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
81458         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
81459         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
81460         value, $ac_cv_search_crypt, if it's "none required".
81461         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
81462         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
81463         not gl_FUNC_GETLOADAVG.
81464         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
81465         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
81466
81467 2004-01-15  Jim Meyering  <jim@meyering.net>
81468
81469         Merge from coreutils.
81470
81471         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
81472         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
81473         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
81474
81475         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
81476         optional configure-time default.
81477
81478         * lib/version-etc.c (version_etc_copyright): Update copyright date.
81479
81480         * lib/xreadlink.c (xreadlink): Correct outdated comment.
81481
81482 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
81483
81484         Merge from coreutils.
81485
81486         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
81487         value, $ac_cv_search_nanosleep, if it's "none required".
81488
81489 2004-01-14  Paul Eggert  <eggert@twinsun.com>
81490
81491         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
81492         with like-named macro in fnmatch.c.
81493         (EXT): Use an internal constant instead.
81494
81495         Merge fnmatch patches from glibc.
81496         * lib/fnmatch.c (mbsinit): Remove define.
81497         Add libc_hidden_ver (__fnmatch, fnmatch).
81498         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
81499         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
81500
81501 2004-01-14  Karl Berry  <karl@gnu.org>
81502
81503         * config/install-sh: update from automake.
81504
81505 2004-01-13  Karl Berry  <karl@gnu.org>
81506
81507         * config/install-sh: update from automake.
81508
81509 2004-01-09  Karl Berry  <karl@gnu.org>
81510
81511         * config/install-sh: update from automake.
81512
81513 2004-01-05  Karl Berry  <karl@gnu.org>
81514
81515         * config/config.{sub,guess}: update from config.
81516
81517 2003-12-31  Karl Berry  <karl@gnu.org>
81518
81519         * config/depcomp: update from automake.
81520
81521 2003-12-14  Karl Berry  <karl@gnu.org>
81522
81523         * lib/config.charset: update from gettext-runtime.
81524
81525 2003-12-03  Paul Eggert  <eggert@twinsun.com>
81526
81527         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
81528         Bug reported by Alfred M. Szmidt.
81529
81530 2003-12-03  Bruno Haible  <bruno@clisp.org>
81531
81532         * m4/gettext.m4: Upgrade from gettext-0.13.
81533         * m4/po.m4: Upgrade from gettext-0.13.
81534         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
81535         * m4/intmax.m4: New file, from gettext-0.13.
81536         * m4/printf-posix.m4: New file, from gettext-0.13.
81537
81538 2003-11-29  Karl Berry  <karl@gnu.org>
81539
81540         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
81541
81542 2003-11-25  Paul Eggert  <eggert@twinsun.com>
81543             Bruno Haible  <bruno@clisp.org>
81544
81545         * lib/printf-parse.h: Don't include sys/types.h.
81546         (ARG_NONE): New macro.
81547         (char_directive): Change type of *arg_index fields to size_t.
81548         * lib/printf-parse.c: Don't include sys/types.h.
81549         (SSIZE_MAX): Remove macro.
81550         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
81551         Remove unnecessary overflow check.
81552         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
81553         fields.
81554
81555 2003-11-25  Bruno Haible  <bruno@clisp.org>
81556
81557         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
81558
81559 2003-11-25  Bruno Haible  <bruno@clisp.org>
81560
81561         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
81562         gt_TYPE_SSIZE_T.
81563
81564 2003-11-24  Paul Eggert  <eggert@twinsun.com>
81565
81566         * modules/alloca: Remove dependency on xalloc.
81567
81568 2003-11-24  Paul Eggert  <eggert@twinsun.com>
81569
81570         * lib/alloca.c: Remove dependency on xalloc module.
81571         (xalloc_die): Remove.
81572         (memory_full) [!defined emacs]: New macro.
81573         [!defined emacs]: Don't include xalloc.h.
81574         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
81575         address arithmetic overflows.  Change datatypes a bit to avoid
81576         unnecessary casts.
81577
81578 2003-11-22  Jim Meyering  <jim@meyering.net>
81579
81580         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
81581         s/size/size_t/.
81582
81583 2003-11-21  Karl Berry  <karl@gnu.org>
81584
81585         * config/config.{sub,guess}: update from config.
81586
81587 2003-11-18  Karl Berry  <karl@gnu.org>
81588
81589         * config/config.{sub,guess}: update from config.
81590
81591         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
81592
81593 2003-11-17  Paul Eggert  <eggert@twinsun.com>
81594
81595         * README: Mention that S+T cannot overflow if S is the size of
81596         an existing object and T is sufficiently small.
81597
81598 2003-11-17  Jim Meyering  <jim@meyering.net>
81599
81600         On systems without utime and without a utimes function capable of
81601         dealing with a NULL struct utimbuf* argument, this utime replacement
81602         could -- in unusual circumstances -- leak a file descriptor.
81603         * lib/utime.c: Include <unistd.h> and <errno.h>.
81604         (utime_null): Be sure to close `fd' and to preserve errno.
81605         Reported by Geoff Collyer via Arnold Robbins.
81606
81607 2003-11-17  Bruno Haible  <bruno@clisp.org>
81608
81609         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
81610         (Depends-on): Add xsize.
81611
81612 2003-11-17  Bruno Haible  <bruno@clisp.org>
81613
81614         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
81615
81616 2003-11-17  Bruno Haible  <bruno@clisp.org>
81617
81618         * lib/vasnprintf.c (alloca): Remove fallback definition.
81619         (freea): Remove definition.
81620         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
81621         Reported by Paul Eggert.
81622
81623 2003-11-16  Paul Eggert  <eggert@twinsun.com>
81624             Bruno Haible  <bruno@clisp.org>
81625
81626         Protect against address arithmetic overflow.
81627         * lib/printf-args.h: Include stddef.h.
81628         (arguments): Change type of field 'count' to size_t.
81629         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
81630         'unsigned int' where appropriate.
81631         * lib/printf-parse.h: Include sys/types.h.
81632         (char_directive): Change type of *arg_index fields to ssize_t.
81633         (char_directives): Change type of fields 'count', max_*_length to
81634         size_t.
81635         * lib/printf-parse.c: Include sys/types.h and xsize.h.
81636         (SSIZE_MAX): Define fallback value.
81637         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
81638         instead of 'int' where appropriate. Check a_allocated, d_allocated
81639         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
81640         * lib/vasnprintf.c: Include xsize.h.
81641         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
81642         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
81643         overflow. Avoid wraparound when converting a width or precision from
81644         decimal to binary.
81645
81646 2003-11-16  Bruno Haible  <bruno@clisp.org>
81647
81648         Update from GNU gettext.
81649         * lib/printf-parse.c: Generalize to it can be compiled for wide
81650         strings.
81651         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
81652         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
81653         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
81654         SNPRINTF): New macros.
81655         Don't include <alloca.h> if the file is used inside libintl.
81656         (local_wcslen): New function, for Solaris 2.5.1.
81657         (VASNPRINTF): Use it instead of wcslen.
81658
81659 2003-11-16  Bruno Haible  <bruno@clisp.org>
81660
81661         * lib/xsize.h (xmax): New function.
81662         (xsum, xsum3, xsum4): Declare as "pure" functions.
81663
81664 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81665
81666         * modules/xalloc (Files): Undo latest change, since xalloc.h
81667         no longer needs SIZE_MAX or PTRDIFF_MAX.
81668
81669 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81670
81671         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
81672         gl_PTRDIFF_MAX.
81673
81674 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81675
81676         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
81677         "return", to pacify some unknown compiler.  Problem reported
81678         by Joerg Schilling.
81679
81680 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81681
81682         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
81683         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
81684         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
81685         heuristic is just as accurate as far as we know, and it removes a
81686         dependency on size_max.m4 and ptrdiff_max.m4.
81687
81688 2003-11-11  Bruno Haible  <bruno@clisp.org>
81689
81690         * modules/xsize (Files): Add m4/size_max.m4.
81691         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
81692
81693 2003-11-11  Bruno Haible  <bruno@clisp.org>
81694
81695         * m4/size_max.m4: New file.
81696         * m4/ptrdiff_max.m4: New file.
81697         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
81698         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
81699         (gl_XALLOC): Invoke it.
81700
81701 2003-11-11  Bruno Haible  <bruno@clisp.org>
81702
81703         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
81704         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
81705         defined.
81706
81707 2003-11-10  Paul Eggert  <eggert@twinsun.com>
81708
81709         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
81710         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
81711         rejected some allocations of exactly SIZE_MAX - 2 bytes.
81712         From Bruno Haible.
81713         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
81714         not (size_t) -1, since it's defined here.
81715
81716 2003-11-09  Karl Berry  <karl@gnu.org>
81717
81718         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
81719
81720 2003-11-06  Paul Eggert  <eggert@twinsun.com>
81721
81722         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
81723         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
81724         Reject sizes of exactly SIZE_MAX bytes.
81725         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
81726         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
81727
81728 2003-11-05  Bruno Haible  <bruno@clisp.org>
81729
81730         * lib/xsize.h: Include limits.h, to avoid a possible collision with
81731         SIZE_MAX defined in <limits.h> on Solaris.
81732
81733 2003-11-04  Jim Meyering  <jim@meyering.net>
81734
81735         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
81736         variable names, rather than @VAR@.
81737         * modules/poll: Likewise.
81738
81739 2003-11-04  Bruno Haible  <bruno@clisp.org>
81740
81741         * modules/xsize: New file.
81742         * modules/linebreak: Depend on xsize.
81743         * MODULES.html.sh (func_all_modules): Add xsize.
81744
81745 2003-11-04  Bruno Haible  <bruno@clisp.org>
81746
81747         * m4/xsize.m4: New file.
81748
81749 2003-11-04  Bruno Haible  <bruno@clisp.org>
81750
81751         * lib/xsize.h: New file.
81752         * lib/linebreak.c: Include xsize.h.
81753         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
81754         argument for overflow.
81755         Suggested by Paul Eggert.
81756
81757 2003-11-03  Karl Berry  <karl@gnu.org>
81758
81759         * config/config.{guess,sub}: update from config.
81760
81761 2003-11-03  Jim Meyering  <jim@meyering.net>
81762
81763         * modules/userspec (lib_SOURCES): Add userspec.h.
81764         (Include): Add "userspec.h".
81765         Improve description.
81766
81767 2003-11-03  Jim Meyering  <jim@meyering.net>
81768
81769         * lib/userspec.c: Include "userspec.h".
81770         * lib/userspec.h: New file.
81771
81772 2003-11-03  Bruno Haible  <bruno@clisp.org>
81773
81774         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
81775
81776 2003-11-03  Bruno Haible  <bruno@clisp.org>
81777
81778         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
81779         available, to avoid (extremely rare) race condition.
81780         Suggested by Paul Eggert.
81781
81782 2003-11-02  Karl Berry  <karl@gnu.org>
81783
81784         * config/srclist.txt (vasprintf.c): sync broken, sigh.
81785
81786 2003-10-31  Paul Eggert  <eggert@twinsun.com>
81787
81788         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
81789         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
81790         (read_filesystem_list): Set and use me_type_malloced.
81791         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
81792         whatever the type happens to be), for brevity and consistency.
81793         Check for size calculation overflow on Alphas running OSF/1.
81794
81795 2003-10-31  Jim Meyering  <jim@meyering.net>
81796
81797         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
81798
81799         * lib/linebuffer.c: Include <string.h> for declaration of memset.
81800
81801 2003-10-30  Paul Eggert  <eggert@twinsun.com>
81802             Bruno Haible  <bruno@clisp.org>
81803
81804         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
81805         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
81806
81807 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
81808
81809         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
81810         netbsd*-gnu*.  Suggested by Robert Millan.
81811
81812 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81813
81814         * modules/group-member: Depend on stdbool.
81815
81816 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81817
81818         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
81819
81820 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81821
81822         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
81823         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
81824         after the 'gnu' in these cases.  This fixes some bugs in the
81825         previous change, and is based on suggestions by Robert Millan.
81826
81827 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81828
81829         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
81830         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
81831         no longer needed.
81832         * lib/quotearg.c (quotearg_n_options): Use it.
81833         * lib/group-member.c: Include <stdbool.h>.
81834         (free_group_info): Arg is now const *; don't free arg.
81835         (get_group_info): Now returns bool and accepts struct group_info *,
81836         rather than returning a malloc'ed struct group_info *.
81837         All uses changed.  Check for overflow in internal size calculation.
81838
81839         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
81840         rather than xmalloc/xrealloc.
81841         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
81842         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
81843         conformance bug: the old code used a pointer after freeing the
81844         storage that it addressed.
81845         * lib/hash.c (hash_initialize): Simplify the code by using
81846         xalloc_oversized rather than doing it by hand.
81847         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
81848         the buffer preserved.  Use free and xmalloc instead.
81849         * lib/quotearg.c (quotearg_n_options): Likewise.
81850         Use a simpler test for size overflow.  Don't use xalloc_oversized
81851         because unsigned int might be wider than size_t (!); this suggests
81852         that we should switch from unsigned int to size_t for slot numbers.
81853
81854 2003-10-28  Paul Eggert  <eggert@twinsun.com>
81855
81856         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
81857         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
81858         NetBSD kernels.  Requested by Richard Stallman.
81859
81860 2003-10-27  Paul Eggert  <eggert@twinsun.com>
81861
81862         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
81863         to allocate the returned structure.  Do not allocate a subarray,
81864         as x2nrealloc will do that.
81865         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
81866         instead of xnrealloc.
81867         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
81868
81869 2003-10-27  Bruno Haible  <bruno@clisp.org>
81870
81871         * lib/stdbool_.h: Better support for BeOS.
81872
81873 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81874
81875         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
81876         now uses inline.
81877
81878 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81879
81880         * lib/xalloc.h (xalloc_oversized): New static inline function, for
81881         callers that want to do their own size-overflow checking.  Include
81882         <stdbool.h>, since xalloc_oversized returns bool.
81883         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
81884         to use xalloc_oversized.
81885
81886         Add two functions x2realloc, x2nrealloc, for programs that grow
81887         arrays dynamically by doubling their sizes.
81888         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
81889         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
81890         New functions.
81891
81892         Port to C99 semantics for 'inline' of external functions.
81893         Bug reported by Bruno Haible.
81894         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
81895         with the old contents of xnmalloc.
81896         (xnmalloc, xmalloc): Use it.
81897         (xnrealloc_inline): New static inline function,
81898         with the old contents of xnrealloc.
81899         (xnrealloc, xrealloc): Use it.
81900
81901         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
81902         that.
81903
81904 2003-10-26  Karl Berry  <karl@gnu.org>
81905
81906         * config/srclist.txt (COPYING.DOC): no longer available from
81907         /gd/gnuorg; don't know where the ultimate source is.
81908
81909 2003-10-25  Paul Eggert  <eggert@twinsun.com>
81910
81911         Fix several address-calculation bugs in the hash modules,
81912         plus some minor code cleanup.
81913
81914         * lib/hash.h: Include <stdbool.h>, for bool.
81915         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
81916         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
81917         hash_get_n_entries, hash_get_max_bucket_length,
81918         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
81919         hash_rehash): Use size_t rather than unsigned.
81920         * lib/hash.c (struct hash_table, hash_get_n_buckets,
81921         hash_get_n_buckets_used, hash_get_n_entries,
81922         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
81923         hash_get_entries, hash_do_for_each, hash_string, is_prime,
81924         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
81925         Likewise.
81926         (SIZE_MAX): Define if not defined.
81927         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
81928         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
81929         hash_print):
81930         Use const * when possible.
81931         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
81932         (check_tuning): Fix bug: if tuning parameters were very close to
81933         0 or 1, rounding errors could have caused subscript violations.
81934         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
81935         (hash_initialize): Add 'fail:' label
81936         to free table and return NULL, and use it to simplify code.
81937         Use calloc rather than clearing the storage ourself.
81938         (hash_initialize, hash_rehash): Check for arithmetic overflow in
81939         buffer size calculations.
81940         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
81941         Include <stddef.h>, for size_t.
81942         * lib/hash-pjw.c (hash_pjw): Likewise.
81943         Switch to method described by Bruno Haible.
81944         Include <limits.h>, for CHAR_BIT.
81945         (SIZE_BITS): New macro.
81946
81947 2003-10-23  Paul Eggert  <eggert@twinsun.com>
81948
81949         * m4/getline.m4 (AM_FUNC_GETLINE):
81950         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
81951         hosts.  Problem reported by Derek Robert Price in
81952         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
81953         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
81954         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
81955
81956 2003-10-21  Paul Eggert  <eggert@twinsun.com>
81957
81958         * lib/getndelim2.c (getndelim2): When size calculation overflows,
81959         ceiling the allocation at NMAX bytes rather than silently
81960         discarding input bytes before NMAX is reached.  This makes
81961         a difference only if NMAX exceeds SIZE_MAX / 2.
81962
81963         * lib/obstack.c: Merge from glibc.
81964         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
81965         Add libc_hidden_def (_obstack_newchunk).
81966         (_obstack_free) [! defined _LIBC]: Remove.
81967         [defined _LIBC]: Make a strong alias from obstack_free, rather than
81968         a clone of the function body.
81969         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
81970         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
81971
81972         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
81973         glibc.
81974         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
81975         arg to memcpy.
81976
81977         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
81978         (obstack_ptr_grow_fast, obstack_int_grow_fast):
81979         Don't use lvalue casts, as GCC plans to remove support for them
81980         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
81981         was also present in the non-GCC version, indicating that this
81982         code had always been buggy and had never been widely used.
81983         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
81984         Use the fast variant of each macro, rather than copying the
81985         definiens of the fast variant; that way, we'll be more likely to
81986         catch future bugs in the fast variants.
81987
81988 2003-10-20  Bruno Haible  <bruno@clisp.org>
81989
81990         * modules/wait-process: New file.
81991         * MODULES.html.sh (func_all_modules): Add wait-process.
81992
81993 2003-10-20  Bruno Haible  <bruno@clisp.org>
81994
81995         * m4/wait-process.m4: New file.
81996
81997 2003-10-20  Bruno Haible  <bruno@clisp.org>
81998
81999         * lib/wait-process.h: New file, from GNU gettext.
82000         * lib/wait-process.c: New file, from GNU gettext.
82001
82002 2003-10-19  Jim Meyering  <jim@meyering.net>
82003
82004         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
82005         HPUX 10.20.
82006
82007 2003-10-18  Karl Berry  <karl@gnu.org>
82008
82009         * config/config.guess: update from config.
82010
82011 2003-10-16  Paul Eggert  <eggert@twinsun.com>
82012
82013         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
82014         (getgroups): First arg is int, not size_t.
82015         Don't let 'free' mangle errno.
82016
82017 2003-10-16  Paul Eggert  <eggert@twinsun.com>
82018
82019         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
82020
82021 2003-10-16  Karl Berry  <karl@gnu.org>
82022
82023         * config/config.{guess,sub}: update from config.
82024
82025 2003-10-16  Jim Meyering  <jim@meyering.net>
82026
82027         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
82028         memcpy.
82029
82030 2003-10-15  Paul Eggert  <eggert@twinsun.com>
82031
82032         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
82033         (SIZE_MAX): Remove.
82034         (new_exclude, add_exclude_file): Initial size no longer needs to
82035         be a power of 2.
82036         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
82037         our own address arithmetic overflow checking.
82038
82039         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
82040         (fnmatch): Do not alloca more than 2000 wide characters;
82041         instead, use malloc for large buffers.
82042         Check for address arithmetic overflow, and return -1
82043         with errno set to ENOMEM in that case.
82044         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
82045         (NEW_PATTERN): Do not alloca more than 8000 bytes;
82046         instead, return -1.  Check for address arithmetic overflow.
82047
82048 2003-10-14  Paul Eggert  <eggert@twinsun.com>
82049
82050         Handle invalid suffixes and overflow independently, so that
82051         callers can treat them independently as needed.  Fix some bugs in
82052         suffix handling, e.g., "100k@" was not diagnosed as an invalid
82053         suffix for a human-readable blocksize.  The major caller-visible
82054         change is the addition of a new
82055         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
82056         that both overflow and suffix chars were found.
82057
82058         * lib/human.c (humblock): Don't check separately for invalid suffix
82059         char; that is xstrtoumax's job (now that its bug is fixed).
82060         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
82061         INTMAX_MAX]: New macros.
82062         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
82063         TYPE_MAXIMUM): New macros.
82064         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
82065         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
82066         if overflow occurs, as it's what __strtol does and it's more useful
82067         in practice.
82068         (__xstrtol): If __strtol reports some error other than ERANGE,
82069         reflect it to the caller as LONGINT_INVALID.  If it reports
82070         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
82071         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
82072         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
82073         value.
82074         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
82075         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
82076         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
82077         [defined UINTMAX_MAX]: New macros.
82078
82079 2003-10-14  Bruno Haible  <bruno@clisp.org>
82080
82081         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
82082
82083 2003-10-14  Bruno Haible  <bruno@clisp.org>
82084
82085         * m4/sig_atomic_t: New file, from GNU gettext.
82086         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
82087
82088 2003-10-14  Bruno Haible  <bruno@clisp.org>
82089
82090         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
82091         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
82092         Also use volatile where needed.
82093
82094 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82095
82096         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
82097         Change maintainer from Bruno Haible to 'all'.
82098
82099 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82100
82101         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
82102
82103 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82104
82105         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
82106         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
82107         and define in terms of the other primitives.
82108         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
82109         (SIZE_MAX): Define if not already defined.
82110         (array_size_overflow): New function.
82111         (xalloc_die): Abort instead of exiting if 'error' returns.
82112         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
82113         (xmalloc, xrealloc): Use them.
82114         (xcalloc): Check for address arithmetic overflow.
82115         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
82116         a bit faster than strcpy.
82117
82118 2003-10-10  Simon Josefsson  <jas@extundo.com>
82119
82120         * modules/argp (Depends-on): Add restrict and strcase.
82121
82122 2003-10-10  Simon Josefsson  <jas@extundo.com>
82123
82124         * m4/argp.m4: Add AC_C_INLINE.
82125
82126 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82127
82128         Merge getpass from libc, plus a few fixes.
82129
82130         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
82131         Include <stdbool.h>.
82132         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
82133         __fsetlocking to empty.
82134         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
82135         do include <bits/libc-lock.h>.
82136         Do not include <fcntl.h>; not needed.
82137         [_LIBC]: Include <wchar.h>.
82138         (NOTCANCEL_MODE): New macro.
82139         (flockfile, funlockfile) [_LIBC]: New macros.
82140         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
82141         [!_LIBC]: New macros.
82142         (call_fclose): New function.
82143         (getpass): Use it.  Save tty stream separately; this simplifies the
82144         code and makes it more reliable if stdin happens to equal stdout.
82145         Invoke __fsetlocking on tty.
82146         Handle thread cancellation if needed.
82147         Namespace cleanup (use __tcgetattr, __getline).
82148         Use bool for Booleans.
82149         [USE_IN_LIBIO]: Handle wide streams.
82150         [!_LIBC]: Unconditionally do the fseek, since we don't know what
82151         stream might go where.
82152
82153         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
82154         doesn't have to include <stdio.h> before us.
82155         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
82156         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
82157         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
82158         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
82159         if not declared, so that we can use getpass.c code from libc without
82160         rewriting it.
82161         (flockfile, ftrylockfile, funlockfile): New macros.
82162
82163 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82164
82165         * modules/getpass: Depend on stdbool.
82166
82167 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82168
82169         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
82170
82171 2003-10-07  Karl Berry  <karl@gnu.org>
82172
82173         * config/config.{guess,sub}: update from config.
82174
82175 2003-10-06  Jim Meyering  <jim@meyering.net>
82176             Bruno Haible  <bruno@clisp.org>
82177
82178         This lets translators provide better translations for the
82179         "Written by ..." part of --version output.
82180         * lib/version-etc.h: Include stdarg.h.
82181         (version_etc_copyright): Declare as readonly.
82182         (version_etc): Make this function variadic with a NULL-terminated list
82183         of author name strings.
82184         (version_etc_va): New declaration.
82185         * lib/version-etc.c: Include stdarg.h, stdlib.h.
82186         (version_etc_copyright): Declare as readonly.
82187         (version_etc_va): New function. Provide a different translatable string
82188         for each possible number of authors < 10. Abbreviate when there are 10
82189         authors or more.
82190         (version_etc): Make this function variadic. Call version_etc_va.
82191         Suggestion from Gary V. Vaughan.
82192
82193         * lib/long-options.h (parse_long_options): Change prototype: the
82194         authors string is moved to the end and becomes variadic.
82195         * lib/long-options.c: Include stdarg.h.
82196         (parse_long_options): Make this function variadic, too.
82197         Call version_etc_va, not version_etc.
82198
82199 2003-10-06  Bruno Haible  <bruno@clisp.org>
82200
82201         * modules/version-etc-2: Remove file.
82202         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
82203
82204 2003-10-06  Bruno Haible  <bruno@clisp.org>
82205
82206         * modules/fatal-signal: New file.
82207         * MODULES.html.sh (func_all_modules): Add fatal-signal.
82208
82209 2003-10-06  Bruno Haible  <bruno@clisp.org>
82210
82211         * m4/fatal-signal.m4: New file.
82212         * m4/signalblocking.m4: New file, from GNU gettext.
82213
82214 2003-10-06  Bruno Haible  <bruno@clisp.org>
82215
82216         * lib/version-etc-2.h: Remove file.
82217         * lib/version-etc-2.c: Remove file.
82218
82219 2003-10-06  Bruno Haible  <bruno@clisp.org>
82220
82221         * lib/fatal-signal.h: New file, from GNU gettext.
82222         * lib/fatal-signal.c: New file, from GNU gettext.
82223
82224 2003-10-05  Paul Eggert  <eggert@twinsun.com>
82225
82226         * README: Rework advice for preventing empty .o files.
82227         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
82228         not <sys/types.h>.
82229
82230 2003-10-04  Karl Berry  <karl@gnu.org>
82231
82232         * lib/argp*: update from libc.
82233
82234 2003-10-04  Karl Berry  <karl@gnu.org>
82235
82236         * config/config.{guess,sub}: update from config.
82237
82238 2003-10-02  Bruno Haible  <bruno@clisp.org>
82239
82240         * modules/lchown (Include): Add lchown.h.
82241         * modules/time_r (Include): Use "..." syntax.
82242         * modules/xgetdomainname (Include): Add xgetdomainname.h.
82243
82244 2003-10-01  Simon Josefsson  <jas@extundo.com>
82245
82246         * MODULES.html.sh (func_all_modules): Move gethostname from section
82247         'based on' to section 'lacking' POSIX:2001.
82248
82249 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
82250
82251         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
82252         to output mode on the same stream.
82253
82254 2003-09-29  Paul Eggert  <eggert@twinsun.com>
82255
82256         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
82257         Fix arg typo in previous patch.
82258
82259 2003-09-28  Jim Meyering  <jim@meyering.net>
82260
82261         * lib/error.c: Correct cpp indentation.
82262
82263 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82264
82265         * modules/free: New file.
82266
82267 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82268
82269         * m4/free.m4: New file.
82270
82271 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82272
82273         * lib/minmax.h (MIN, MAX)
82274         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
82275         Omit the special code that used __typeof__, since we worry that
82276         it could be more trouble than it's worth.  See:
82277         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
82278         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
82279
82280         * lib/free.c: New file.
82281
82282 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
82283
82284         Trivial fixes to Makefile.am parts of module listings.
82285         * modules/strstr: Append strstr.h to lib_SOURCES.
82286         * modules/strcase: Likewise, for strcase.h.
82287
82288 2003-09-27  Karl Berry  <karl@gnu.org>
82289
82290         * config/mkinstalldirs: update from automake.
82291
82292 2003-09-26  Paul Eggert  <eggert@twinsun.com>
82293
82294         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
82295         (error_tail): Do not loop, reallocating temporary buffer, since
82296         the output cannot contain more wide characters than the input
82297         contains bytes, the size must be big enough already.  This avoids
82298         one potential size overflow calculation.  Check for size overflow
82299         when calculating temporary buffer size.  Free temporary buffer
82300         when done, if it was allocated with malloc; this plugs a memory
82301         leak.  Remove casts from void * to pointers, that are no longer
82302         needed now that we're assuming C89 or better.
82303
82304         Merge error changes from glibc.
82305
82306         * lib/error.c, error.h: Update copyright notice header to match glibc.
82307         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
82308         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
82309         Disable cancellation while printing error.
82310         * lib/error.h: Prepend __ to parameter names.
82311
82312 2003-09-26  Jim Meyering  <jim@meyering.net>
82313
82314         * lib/error.c (error_tail): Move some declarations
82315         into inner scope where the local variables are used.
82316
82317 2003-09-26  Bruno Haible  <bruno@clisp.org>
82318
82319         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
82320         stpncpy().
82321         Don't define stpncpy through config.h; it's now done through stpncpy.h.
82322
82323 2003-09-26  Bruno Haible  <bruno@clisp.org>
82324
82325         * lib/stpncpy.h (gnu_stpncpy): New declaration.
82326         (stpncpy): Define as alias for gnu_stpncpy.
82327         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
82328
82329 2003-09-25  Simon Josefsson  <jas@extundo.com>
82330
82331         * lib/xgetdomainname.h: New file.
82332         * lib/xgetdomainname.c: New file.
82333
82334 2003-09-25  Simon Josefsson  <jas@extundo.com>
82335             Bruno Haible  <bruno@clisp.org>
82336
82337         * modules/getdomainname: New file.
82338         * modules/xgetdomainname: New file.
82339         * MODULES.html.sh (func_all_modules): Add getdomainname,
82340         xgetdomainname.
82341
82342 2003-09-25  Simon Josefsson  <jas@extundo.com>
82343             Bruno Haible  <bruno@clisp.org>
82344
82345         * m4/getdomainname.m4: New file.
82346
82347 2003-09-25  Simon Josefsson  <jas@extundo.com>
82348             Bruno Haible  <bruno@clisp.org>
82349
82350         * lib/getdomainname.h: New file.
82351         * lib/getdomainname.c: New file.
82352
82353 2003-09-25  Karl Berry  <karl@gnu.org>
82354
82355         * lib/argp-fmtstream.c, argp-help.c: update from libc.
82356
82357 2003-09-25  Karl Berry  <karl@gnu.org>
82358
82359         * config/install-sh: update from automake.
82360
82361 2003-09-25  Bruno Haible  <bruno@clisp.org>
82362
82363         * modules/version-etc-2: New file, from modules/version-etc with
82364         modifications.
82365         * MODULES.html.sh (func_all_modules): Add version-etc-2.
82366
82367 2003-09-25  Bruno Haible  <bruno@clisp.org>
82368
82369         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
82370         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
82371
82372 2003-09-24  Simon Josefsson  <jas@extundo.com>
82373
82374         * modules/xgethostname: Add xgethostname.h.
82375
82376 2003-09-24  Paul Eggert  <eggert@twinsun.com>
82377
82378         * lib/linebuffer.c (freebuffer): Don't free the argument, just
82379         the buffer associated with the argument.  Bug reported by
82380         Simon Josefsson.
82381
82382 2003-09-24  Paul Eggert  <eggert@twinsun.com>
82383
82384         * README: Document assumptions that 'int' is at least 32 bits
82385         wide, that integer arithmetic is 2's complement without overflow,
82386         that there are no holes in integer values, that adding sizes of
82387         two nonoverlapping objects can't overflow, and that all-bits-zero
82388         yields scalar zero.  Fix spelling and capitalization typos.
82389
82390 2003-09-19  Karl Berry  <karl@gnu.org>
82391
82392         * lib/argp.h: update from libc.
82393
82394 2003-09-17  Paul Eggert  <eggert@twinsun.com>
82395
82396         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
82397         to avoid spurious warnings like "AC_RUN_IFELSE was called before
82398         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
82399
82400 2003-09-17  Paul Eggert  <eggert@twinsun.com>
82401
82402         * gnulib-tool: Use "test -h", not "test -L", for portability
82403         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
82404         (tags_regexp): Remove, since \| doesn't conform to POSIX.
82405         (sed_extract_prog): Issue s commands one-by-one, rather than
82406         using \| in one s command.
82407
82408 2003-09-16  Paul Eggert  <eggert@twinsun.com>
82409
82410         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
82411         input error, instead of returning NULL the next time we are called
82412         (and therefore losing track of errno).
82413
82414 2003-09-16  Bruno Haible  <bruno@clisp.org>
82415
82416         * gnulib-tool (func_create_testdir): Warn about duplicated
82417         dependencies.
82418
82419 2003-09-15  Paul Eggert  <eggert@twinsun.com>
82420
82421         * modules/argmatch, modules/fatal, modules/obstack,
82422         modules/xalloc, modules/xgethostname: Sort dependencies by
82423         importance, not alphabetically.
82424
82425 2003-09-15  Paul Eggert  <eggert@twinsun.com>
82426
82427         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
82428         fails, so that the caller gets the proper errno.
82429
82430         * lib/readutmp.c (read_utmp): Likewise.
82431         Check for fstat error.  Close stream and free storage
82432         when failing.
82433
82434 2003-09-14  Karl Berry  <karl@gnu.org>
82435
82436         * config/srclist.txt (strdup.c): disable for c89 changes.
82437
82438 2003-09-14  Jim Meyering  <jim@meyering.net>
82439
82440         * lib/getloadavg.c: Correct cpp indentation.
82441         * lib/strdup.c: Likewise.
82442         * lib/vasnprintf.c: Likewise.
82443
82444 2003-09-14  Bruno Haible  <bruno@clisp.org>
82445
82446         * modules/fwriteerror: New file.
82447         * MODULES.html.sh (func_all_modules): Add fwriteerror.
82448
82449 2003-09-14  Bruno Haible  <bruno@clisp.org>
82450
82451         * lib/fwriteerror.h: New file.
82452         * lib/fwriteerror.c: New file.
82453
82454 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82455
82456         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
82457         modules/xgethostname, modules/xalloc: Depend on exit.
82458
82459 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82460
82461         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
82462
82463         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
82464         and AC_MINIX, too, so that their extensions are available.
82465
82466         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
82467         This macro has been superseded by gl_BACKUPFILE.
82468
82469         More patches to assume C89 or better.
82470
82471         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
82472
82473         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
82474         unconditionally.
82475         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
82476         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
82477         Include <string.h>, <stdlib.h> unconditionally.
82478         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
82479         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
82480         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
82481         headers or for string.h.
82482         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
82483         or strtoul.
82484
82485         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
82486         headers.
82487         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
82488         * m4/userspec.m4 (gl_USERSPEC): Likewise.
82489         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
82490         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
82491         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
82492         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
82493         memcpy, memset.
82494         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
82495         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
82496         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
82497         strtol.
82498         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
82499         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
82500         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
82501         strtoul.
82502
82503 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82504
82505         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
82506         * lib/obstack.c [!defined _LIBC]: Likewise.
82507         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
82508         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
82509         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
82510
82511         More changes to assume C89 or better.
82512
82513         * lib/error.c (error_tail): Assume vprintf.
82514
82515         * lib/argmatch.c (getenv): Remove decl.
82516         * lib/progreloc.c (get_full_program_name): Define via prototype.
82517         * lib/setenv.c (clearenv): Likewise.
82518         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
82519         needed.
82520         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
82521         (malloc, memcpy): Remove decls.
82522         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
82523         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
82524         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
82525         (memcpy): Remove macro.
82526         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
82527         (__P): Remove.  All uses removed.
82528         (PTR): Remove.  All uses changed to void *.
82529         (CHAR_BIT, NULL): Remove.
82530         (spaces, zeros, memset_space, memset_zero)
82531         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
82532         Remove.
82533         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
82534         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
82535         Define with prototype.
82536         Remove now-unnecessary prototype decl.
82537         (extra_args_spec): Assume ANSI C.  All uses changed.
82538         (extra_args_spec_iso): Remove.
82539         (my_strftime, emacs_strftimeu): Define via prototype.
82540         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
82541         unconditionally.
82542         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
82543         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
82544         (strtoul, strtol): Remove decls.
82545         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
82546         LONG_MAX): Remove.
82547         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
82548         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
82549         (LOCALE_PARAM_PROTO): New macro.
82550         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
82551         (INTERNAL (strtol), strtol): Define with a prototype.
82552         (PARAMS): Remove.  All uses removed.
82553         * lib/tempname.c: Include <string.h> unconditionally.
82554         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
82555         * lib/xgethostname.c (main): Define with a prototype.
82556         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
82557         Include <stdlib.h> unconditionally.
82558         (calloc, malloc, realloc, free): Remove decls.
82559         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
82560         Include <stdlib.h> unconditionally.  Sort include file names.
82561         (strtod): Remove.
82562         (xstrtod): Define with a prototype.
82563         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
82564         (strtol, strtoul): Remove decls.
82565
82566 2003-09-11  Paul Eggert  <eggert@twinsun.com>
82567
82568         More patches to assume C89 or better.
82569         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
82570         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
82571         string.h, memchr, STDC_HEADERS.
82572
82573 2003-09-11  Paul Eggert  <eggert@twinsun.com>
82574
82575         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
82576         Include <stdlib.h>, <string.h> unconditionally.
82577         Remove now-unnecessary cast to char *.
82578         * lib/strnlen.c: Include <string.h> unconditionally.
82579         * lib/yesno.c (yesno): Define with a prototype.
82580
82581 2003-09-11  Bruno Haible  <bruno@clisp.org>
82582
82583         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
82584
82585 2003-09-10  Jim Meyering  <jim@meyering.net>
82586
82587         * lib/error.c: Correct indentation of cpp directives.
82588
82589 2003-09-10  Bruno Haible  <bruno@clisp.org>
82590
82591         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
82592         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
82593         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
82594         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
82595         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
82596         <stdlib.h> and <string.h> checks.
82597         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
82598         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
82599
82600 2003-09-10  Bruno Haible  <bruno@clisp.org>
82601
82602         * lib/strcspn.c: Include <string.h> unconditionally.
82603         * lib/strpbrk.c: Include <string.h> unconditionally.
82604         * lib/strstr.c: Include <string.h> unconditionally.
82605         * lib/unicodeio.c: Include <string.h> unconditionally.
82606         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
82607         * lib/unsetenv.c: Likewise.
82608         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
82609         * lib/yesno.c: Include <stdlib.h> unconditionally.
82610         (rpmatch): Add prototype.
82611
82612 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82613
82614         More patches to assume C89 or better.
82615         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
82616         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
82617         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
82618         or for string.h.
82619         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
82620         stdlib.h.
82621         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
82622         C headers.
82623         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
82624         string.h.
82625         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
82626         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
82627         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
82628         or for string.h.
82629         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
82630         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
82631         C headers.
82632         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
82633         memcpy.
82634         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
82635         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
82636         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
82637         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
82638         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
82639         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
82640         string.h, free.
82641         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
82642         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
82643         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
82644         C headers, or for string.h.
82645         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
82646         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
82647         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
82648         headers, memory.h, stdlib.h, string.h, strings.h.
82649         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
82650         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
82651         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
82652         strchr.
82653         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
82654         headers, memory.h, string.h.
82655         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
82656         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
82657         free.
82658         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
82659         headers.
82660         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
82661         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
82662         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
82663         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
82664         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
82665
82666 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82667
82668         More K&R removal.
82669
82670         * lib/acosl.c (main): Use a prototype.
82671         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
82672         tanl.c: Likewise.
82673
82674         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
82675
82676         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
82677         (getopt, etopt_long, getopt_long_only, _getopt_internal)
82678         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
82679         with a prototype.
82680         * lib/getopt.c (const): Remove macro.
82681         Include <string.h> unconditionally.
82682         (my_index): Remove; all uses changed to strchr.
82683         (strlen): Remove decl.
82684         (exchange): Remove forward decl; no longer needed.
82685         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
82686         Define with prototype.
82687         * lib/getopt1.c (const): Remove macro.
82688         (getopt_long, getopt_long_only, main): Define with prototype.
82689
82690         * lib/getugroups.c: Include <string.h> unconditionally.
82691
82692         * lib/getusershell.c: Include <stdlib.h> unconditionally.
82693         (getusershell, setusershell, endusershell, readname, main):
82694         Define with prototypes.
82695
82696         * lib/group-member.c: Include group-member.h first.
82697         Include <stdlib.h> unconditionally.
82698
82699         * lib/hard-locale.c: Include hard-locale.h first.
82700         Include <stdlib.h>, <string.h> unconditionally.
82701
82702         * lib/hash.c (free, malloc): Remove decls.
82703         Include <stdlib.h> unconditionally.
82704
82705         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
82706         (getenv): Do not declare.
82707
82708         * lib/idcache.c: Include <string.h> unconditionally.
82709
82710         * lib/long-options.c: Include long-options.h first, to test interface.
82711         Include <stdlib.h> unconditionally.
82712
82713         * lib/makepath.c: Include makepath.h first, to test interface.
82714         Include <stdlib.h> and <string.h> unconditionally.
82715
82716         * lib/linebuffer.c: Include <stdlib.h>.
82717         (free): Remove decl.
82718
82719         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
82720         stddef.h. rpl_malloc returns void *, not char *.
82721         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
82722         prototype.
82723
82724         * lib/md5.h: Include <limits.h> unconditionally.
82725         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
82726         (__P): Remove; all uses removed.
82727         * lib/md5.c: Include "md5.h" first.
82728         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
82729         md5_buffer, md5_process_bytes, md5_process_block):
82730         Define with prototypes.
82731         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
82732         * lib/sha.c: Include "sha.h" first.
82733         Include <stdlib.h>, <string.h> unconditionally.
82734
82735         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
82736         * lib/memcmp.c (__ptr_t): Likewise.
82737         * lib/memrchr.c (__ptr_t): Likewise.
82738         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
82739         Include <string.h> unconditionally.
82740         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
82741         * lib/memchr.c: Include <stdlib.h> unconditionally.
82742         * lib/memchr.c (LONG_MAX): Remove.
82743         * lib/memrchr.c (LONG_MAX): Likewise.
82744         * lib/memchr.c (__memchr): Define via a prototype.
82745         * lib/memrchr.c (__memrchr): Likewise.
82746         * lib/memcmp.c (__P): Remove, and remove all uses.
82747         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
82748         Remove forward decls; no longer needed.
82749         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
82750         Use types required by C89 in prototype.
82751
82752         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
82753         * lib/savedir.c: Likewise.
82754         * lib/mkdir.c (free): Remove decl.
82755         * lib/rmdir.c (rmdir): Define with a prototype.
82756         * lib/savedir.c: Include savedir.h first, to test interface.
82757
82758         * lib/mktime.c (STDC_HEADERS): Remove.
82759         Include <stdlib.h>, <string.h> unconditionally.
82760
82761         * lib/modechange.c: Include <stdlib.h> unconditionally.
82762         (malloc): Remove decl.
82763
82764         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
82765         (free): Remove decl.
82766
82767         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
82768         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
82769         (This type really should be intptr_t, but that's a C99ism.)
82770         (_obstack_memcpy): Remove: all uses changed to memcpy.
82771         Include <string.h> unconditionally.
82772         (struct obstack): Assume __STDC__ for types of members
82773         chunkfun, freefun, extra_arg.
82774         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
82775         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
82776         obstack_begin, obstack_specify_allocation,
82777         obstack_specify_allocation_with_arg, obstack_chunkfun,
82778         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
82779         Remove unprototyped decls and the macros that use them.
82780         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
82781         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
82782         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
82783         (defined __STDC__ && __STDC__)]:
82784         Remove nonprototyped code.
82785         Include <stdlib.h> unconditionally.
82786         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
82787         _obstack_allocated_p, _obstack_free, obstack_free,
82788         _obstack_memory_used, print_and_abort):
82789         Define using prototypes.
82790         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
82791         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
82792         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
82793         obstack_next_free, obstack_object_size, obstack_room) [0]:
82794         Remove unused, unprototyped code.
82795
82796         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
82797
82798         * lib/physmem.c (physmem_total, physmem_available, main): Define
82799         with prototypes.
82800
82801         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
82802         (main): Define with a prototype.
82803
82804         * lib/posixver.c (getenv): Remove decl.
82805
82806         * lib/putenv.c (malloc): Returns void *, not char *.
82807         Include <string.h> unconditionally.
82808         (strchr, memcpy, NULL): Do not define.
82809
82810         * lib/readtokens.c: Include readtokens.h first, to test interface.
82811         Include <stdlib.h>, <string.h> unconditionally.
82812         (init_tokenbuffer): Define with a prototype.
82813
82814         * lib/regex.c (PARAMS): Remove.  All uses removed.
82815         All uses of _RE_ARGS removed, too.
82816         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
82817         unconditionally.
82818         (bzero): Assume memset exists.
82819         (memcmp, memcpy, NULL): Remove.
82820         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
82821         char, or assignments to local vars of type signed char.
82822         (init_syntax_once, PREFIX(extract_number_and_incr),
82823         PREFIX(print_partial_compiled_pattern),
82824         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
82825         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
82826         PREFIX(regex_grow_registers), PREFIX(regex_compile),
82827         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
82828         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
82829         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
82830         wcs_compile_range, byte_compile_range, truncate_wchar,
82831         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
82832         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
82833         count_mbs_length, wcs_re_match_2_internal,
82834         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
82835         PREFIX(alt_match_null_string_p),
82836         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
82837         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
82838         regfree, PREFIX(extract_number)): Define with prototype.  Remove
82839         now-unnecessary declaration, if any.
82840         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
82841         regcomp, regexec):
82842         Remove now-unnecessary casts among pointer types.
82843         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
82844
82845         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
82846         (free): Remove decl.
82847
82848         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
82849
82850         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
82851         (free): Remove decl.
82852
82853         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
82854         * lib/xgetcwd.c: Likewise.
82855
82856         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
82857         (free): Remove decl.
82858
82859         * lib/strchrnul.c (strchrnul): Define with a prototype.
82860         Fix bug: c_in was not converted to char before searching.
82861
82862         The following changes are not K&R related:
82863
82864         * lib/group-member.h: Include <sys/types.h>, so that this file is
82865         self-contained.
82866         * lib/makepath.h: Likewise.
82867
82868         * lib/getusershell.c (readname, default_index, line_size, readname):
82869         Use size_t, not int, for sizes.
82870         (readname): If the size overflows, report an error instead of
82871         looping forever.
82872
82873 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82874
82875         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
82876         libc.
82877
82878 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82879
82880         * README: New section: portability guidelines.
82881
82882 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82883
82884         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
82885         C89 spec.
82886
82887 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82888
82889         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
82890
82891 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82892
82893         Assume C89 or better; remove K&R cruft.
82894         A few of these changes were first proposed by Derek Robert Price
82895         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
82896
82897         * lib/addext.c: Include <string.h> unconditionally.
82898         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
82899         Don't declare getenv or malloc.
82900
82901         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
82902         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
82903         (NULL): Remove.
82904         (find_stack_direction, alloca): Use prototypes.
82905
82906         * lib/atexit.c (atexit): Define using a prototype.
82907
82908         * lib/basename.c, dirname.c, stripslash.c:
82909         Include <string.h> unconditionally.
82910
82911         * lib/bcopy.c: Include <stddef.h>.
82912         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
82913
82914         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
82915
82916         * lib/error.h (error, error_at_line, error_print_progname)
82917         [! (defined (__STDC__) && __STDC__)]: Remove decls.
82918         * lib/error.c: Include error.h first, to check interface.
82919         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82920         (VA_START): Remove; all uses changeed to va_start.
82921         (exit, strerror): Remove decls.
82922         (error_print_progname): Prototype uncondionally.
82923         Don't include <errno.h>; no longer needed.
82924         (private_strerror): Remove.
82925         (error_tail): Always define.
82926         (error, error_at_line): Assume C89 or better; always use prototypes.
82927         * lib/fatal.c: Include "fatal.h" first, to test interface.
82928         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82929         (VA_START): Remove; all uses changed to va_start.
82930         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
82931         this case.
82932         (exit): Remove decl.
82933         (fatal): Prototype unconditionally.  Assume va_start works.
82934         Abort at end, to pacify gcc.
82935
82936         * lib/euidaccess.c (main): Define with a prototype.
82937
82938         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
82939
82940         * lib/exitfail.c: Include <stdlib.h> unconditionally.
82941
82942         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
82943         prototypes.
82944         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
82945         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
82946         (getenv): Remove decl.
82947         (fnmatch): Define using a prototype.
82948         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
82949         (FCT): Define using a prototype.
82950
82951         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
82952
82953         * lib/gethostname.c: Include <stddef.h>.
82954         (gethostname): Define with prototype.  Length is size_t, not int.
82955
82956 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82957
82958         Assume C89 or better; remove K&R cruft.
82959         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
82960         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
82961         string.h, getenv, malloc.
82962         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
82963         headers.
82964         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
82965         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
82966         do not check for strerror.
82967         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
82968         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
82969         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
82970         do not check for doprnt or vprintf.
82971         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
82972         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
82973
82974 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82975
82976         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
82977         getversion.c should have been removed then, but was accidentally
82978         preserved.
82979
82980         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
82981         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
82982
82983 2003-09-08  Karl Berry  <karl@gnu.org>
82984
82985         * config/config.sub, config.guess, srclistvars.sh: update from savannah
82986                 config, forget about prep.
82987
82988         * config/depcomp, missing: update from automake.
82989
82990 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82991
82992         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
82993         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82994
82995 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82996
82997         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
82998         copy_tm_result.  Bug reported by Simon Josefsson in
82999         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
83000
83001 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83002
83003         * m4/time_r.m4: New file.
83004         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
83005         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
83006         is. Check for timegm declaration.
83007         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
83008         Do not check for gmtime_r.
83009         Replace mktime if __mktime_internal does not exist and if mktime
83010         hasn't been replaced already.
83011
83012 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83013
83014         * lib/time_r.c, lib/time_r.h: New files.
83015
83016         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
83017         __localtime_r.
83018         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
83019         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
83020
83021         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
83022         __gmtime_r.
83023         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
83024         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
83025         Include <time_r.h>.
83026
83027         * lib/timegm.c: Switch to glibc implementation, with the following
83028         changes:
83029         [defined HAVE_CONFIG_H]: Include <config.h>.
83030         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
83031         (__mktime_internal) [!defined _LIBC]: New decl.
83032         (__gmtime_r) [!defined _LIBC]: New macro and function.
83033         (timegm): Use a prototype, since gnulib assumes C89.
83034         Do not bother declaring tmp to be const, as it's not really usefu.
83035         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
83036         (timegm): Declare only if HAVE_DECL_TIMEGM.
83037
83038 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83039
83040         * MODULES.html.sh (func_all_modules): Add time_r.
83041         * modules/time_r: New file.
83042         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
83043         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
83044
83045 2003-09-03  Paul Eggert  <eggert@twinsun.com>
83046
83047         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
83048         Bug reported by Lute Kamstra in
83049         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
83050
83051         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
83052         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
83053         course with correspondingly smaller numbers for tomorrow and
83054         yesterday.  From Tadayoshi Funaba.  Originally installed into
83055         sh-utils on 1999-08-07, but the patch got lost (I guess during the
83056         coreutils merge?).
83057
83058 2003-08-31  Simon Josefsson  <jas@extundo.com>
83059
83060         * modules/timegm: New file.
83061         * MODULES.html.sh (func_all_modules): Add timegm.
83062
83063 2003-08-31  Simon Josefsson  <jas@extundo.com>
83064
83065         * m4/timegm.m4: New file.
83066
83067 2003-08-31  Simon Josefsson  <jas@extundo.com>
83068
83069         * lib/timegm.h: New file.
83070         * lib/timegm.c: New file.  Based on
83071         wget-1.8.2/src/http.c:mktime_from_utc.
83072
83073 2003-08-31  Karl Berry  <karl@gnu.org>
83074
83075         * lib/argp.h: update from libc.
83076
83077 2003-08-28  Bruno Haible  <bruno@clisp.org>
83078
83079         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
83080         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
83081         followed by '#define fnmatch fnmatch_posix' gives an error.
83082
83083 2003-08-28  Bruno Haible  <bruno@clisp.org>
83084
83085         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
83086         warning on QNX, which defines O_BINARY to 000000.
83087
83088 2003-08-27  Jim Meyering  <jim@meyering.net>
83089
83090         * m4/mkstemp.m4: Require that the system mkstemp be able to create
83091         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
83092         would fail after 32.  Reported by Danny Levinson.  Details here:
83093         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
83094
83095 2003-08-24  Bruno Haible  <bruno@clisp.org>
83096
83097         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
83098         MSVC7 <stdio.h> is included later.
83099
83100 2003-08-22  Simon Josefsson  <jas@extundo.com>
83101
83102         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
83103
83104 2003-08-20  Karl Berry  <karl@gnu.org>
83105
83106         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
83107
83108 2003-08-20  Bruno Haible  <bruno@clisp.org>
83109
83110         * modules/progname: New file.
83111         * MODULES.html.sh (func_all_modules): Add progname.
83112
83113 2003-08-20  Bruno Haible  <bruno@clisp.org>
83114
83115         * lib/progname.h: New file, from GNU gettext.
83116         * lib/progname.c: New file, from GNU gettext.
83117         * lib/progreloc.c: New file, from GNU gettext.
83118
83119 2003-08-19  Jim Meyering  <jim@meyering.net>
83120
83121         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
83122         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
83123
83124 2003-08-19  Bruno Haible  <bruno@clisp.org>
83125
83126         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
83127         more.
83128
83129 2003-08-19  Bruno Haible  <bruno@clisp.org>
83130
83131         * lib/xstrdup.c: Assume <string.h> exists.
83132
83133 2003-08-18  Paul Eggert  <eggert@twinsun.com>
83134
83135         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
83136         in makefile rules.
83137
83138 2003-08-18  Jim Meyering  <jim@meyering.net>
83139
83140         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
83141         * m4/lib-ld.m4: Likewise.
83142
83143 2003-08-18  Jim Meyering  <jim@meyering.net>
83144
83145         * lib/setenv.h: Indent nested cpp directive.
83146         * lib/vasnprintf.c: Remove trailing blanks.
83147
83148 2003-08-17  Simon Josefsson  <jas@extundo.com>
83149
83150         * modules/xstrndup: New file.
83151         * MODULES.html.sh (func_all_modules): Add xstrndup.
83152
83153 2003-08-17  Simon Josefsson  <jas@extundo.com>
83154
83155         * modules/argp: Fix autoconf macro name. Add more dependencies.
83156
83157 2003-08-17  Simon Josefsson  <jas@extundo.com>
83158
83159         * m4/xstrndup.m4: New file.
83160
83161 2003-08-17  Simon Josefsson  <jas@extundo.com>
83162
83163         * m4/argp.m4: New file.
83164
83165 2003-08-17  Simon Josefsson  <jas@extundo.com>
83166             Bruno Haible  <bruno@clisp.org>
83167
83168         * lib/xstrndup.h: New file.
83169         * lib/xstrndup.c: New file.
83170
83171 2003-08-17  Bruno Haible  <bruno@clisp.org>
83172
83173         * modules/strndup (Files, Include): Add lib/strndup.h.
83174
83175 2003-08-17  Bruno Haible  <bruno@clisp.org>
83176
83177         * modules/euidaccess (Files): Add lib/euidaccess.h.
83178
83179 2003-08-17  Bruno Haible  <bruno@clisp.org>
83180
83181         * lib/strndup.h: New file.
83182
83183 2003-08-17  Bruno Haible  <bruno@clisp.org>
83184
83185         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
83186         like AC_GNU_SOURCE.
83187         * modules/extensions (configure.ac): Comment out the invocation of
83188         gl_USE_SYSTEM_EXTENSIONS.
83189
83190 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83191
83192         Merges from coreutils, etc.
83193         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
83194         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
83195         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
83196         fixing a typo.
83197         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
83198         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
83199
83200 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83201
83202         Document merge from coreutils.
83203         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
83204         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
83205         * modules/utime: Add m4/utimes-null.m4.
83206
83207 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83208
83209         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
83210         space, undoing this 2003-08-12 change:
83211         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
83212
83213 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83214
83215         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
83216         strtoul.c from libc, undoing this 2003-08-12 change:
83217         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
83218
83219 2003-08-16  Jim Meyering  <jim@meyering.net>
83220
83221         Merges from coreutils.
83222         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
83223         prefix.  Adjust cache variables similarly.  Create 500 rather than
83224         just 300 files, to exercise bug on Darwin6.5, too.
83225         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
83226         $missing_dir.
83227         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
83228         AM_SYS_POSIX_TERMIOS.
83229         Reported by mkc@mathdogs.com.
83230         Also change use of $am_cv_sys_posix_termios
83231         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
83232         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
83233         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
83234         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
83235         in /proc/mounts until it finds one with matching device number.  This
83236         is unnecessary when the FILE argument *is* a mount point.  No stat call
83237         is necessary in that case.  So, disable the statvfs-testing code on
83238         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
83239         as RedHat bug# 84846.
83240         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
83241         to 1MB, so as not to render systems with no stack size limit (e.g.,
83242         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
83243         Include <unistd.h>.  On some systems,
83244         it is required for the definition of _SC_PAGESIZE.
83245
83246 2003-08-16  Jim Meyering  <jim@meyering.net>
83247
83248         Merge from coreutils.
83249         * lib/xstrtoimax.c: #else #if -> #elif.
83250         * lib/xstrtoumax.c: Likewise.
83251
83252 2003-08-16  Jim Meyering  <jim@meyering.net>
83253
83254         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
83255         * m4/utimes.m4: Removed.
83256         * m4/utimes-null.m4: Renamed from utimes.m4.
83257
83258         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
83259         to 1MB, so as not to render systems with no stack size limit (e.g.,
83260         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
83261         Include <unistd.h>.  On some systems,
83262         it is required for the definition of _SC_PAGESIZE.
83263
83264 2003-08-16  Jim Meyering  <jim@meyering.net>
83265         and Paul Eggert  <eggert@cs.ucla.edu>
83266
83267         Merges from coreutils, etc.
83268
83269         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
83270         using the latest version from cvs.  This avoids problems with #line
83271         directives using a vendor (Sun) compiler.
83272         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
83273         Don't set GETGROUPS_LIB here; now it's
83274         done via getgroups.m4's wrapper function.
83275         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
83276         rather than just in sh-util/configure.in, so that the
83277         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
83278         same.
83279         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
83280         AC_FUNC_GETLOADAVG where to find getloadavg.c.
83281         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
83282         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
83283         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
83284         Remove code that is now done by the newly-required macros.
83285         Append $(EXEEXT) to DF_PROG.
83286         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
83287         Do not invoke or require the following here,
83288         since prereq.m4 or some gnulib .m4 now does this for us:
83289         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
83290         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
83291         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
83292         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
83293         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
83294         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
83295         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
83296         AC_FUNC_OBSTACK.
83297         Do not replace the following functions, as this is now the job
83298         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
83299         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
83300         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
83301         atexit getpass, strdup, getpagesize.
83302         Replace 'raise'.
83303         Do not check for the following functions, as this is now the job
83304         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
83305         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
83306         setregid.
83307         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
83308         Check for sys/sysctl.h.
83309         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
83310         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
83311         of checking for ssize_t ourselves.
83312
83313         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
83314         Require every macro that gnulib/modules/* suggests for us.
83315         (jm_PREREQ_ADDEXT): New macro.
83316         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
83317         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
83318
83319         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
83320         (gl_PHYSMEM): Use it.
83321         Also check for `table' function.
83322         Check for new headers and functions.
83323         Add check for sys/sysmp.h.
83324         With suggestions from Kaveh Ghazi.
83325         Ignore headers that are present but cannot be compiled.  This
83326         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
83327         C 5.4.
83328
83329 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83330
83331         Document merge from coreutils.
83332         * modules/userspec: Depend on posixver.
83333         * modules/strftime: Depend on tzset.
83334
83335 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83336
83337         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
83338         rather than tab, after '#' in shell-script copyright notices.
83339         Suggested by Bruno Haible.
83340
83341 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83342
83343         * config/srclist-update: Use three spaces, rather than tab, after '#'
83344         in shell-script copyright notices.  Suggested by Bruno Haible.
83345         Remove unnecessary parenthesization in regular expression.
83346
83347 2003-08-15  Jim Meyering  <jim@meyering.net>
83348
83349         Merge from coreutils.
83350         * lib/xgethostname.c: Include <stdlib.h>.
83351         (xghostname): Don't exit for anything other than memory-related
83352         failure; just return NULL.
83353         * lib/userspec.c: Include "posixver.h".
83354         (parse_user_spec): Accept `.' as a separator only
83355         in pre-POSIX-200112 mode.
83356         * lib/strtoimax.c: Use #elif rather than #else #if.
83357         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
83358         Remove function, now that we can rely on a working tzset function.
83359         [!_LIBC]: Ensure that the required autoconf test has been run.
83360         [!defined _NL_CURRENT && HAVE_STRFTIME]:
83361         Use underlying_strftime for %r.
83362         * lib/sha.c: Merge in some clean-up and optimization changes from
83363         glibc.
83364         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
83365         Ensure that it is a multiple of 64.
83366         Rearrange loop exit tests so as to avoid performing an
83367         additional fread after encountering an error or EOF.
83368         * lib/realloc.c: Update copyright date.
83369
83370 2003-08-15  Jim Meyering  <jim@meyering.net>
83371         and Paul Eggert  <eggert@twinsun.com>
83372
83373         Merge from coreutils.
83374         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
83375         member but strut utmpx does not.  Needed for AIX 4.3.3.
83376         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
83377
83378 2003-08-15  Jim Meyering  <jim@meyering.net>
83379         and Paul Eggert  <eggert@cs.ucla.edu>
83380
83381         Merges from coreutils, etc.
83382         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
83383         Require gl_FUNC_TZSET_CLOBBER.
83384         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
83385         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
83386         members.
83387
83388 2003-08-14  Paul Eggert  <eggert@twinsun.com>
83389
83390         Help the merge from coreutils.
83391         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
83392         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
83393         * m4/tzset.m4: Use it too.
83394
83395 2003-08-14  Paul Eggert  <eggert@twinsun.com>
83396
83397         * modules/tzset: New file.
83398
83399 2003-08-14  Jim Meyering  <jim@meyering.net>
83400
83401         Merges from coreutils.
83402         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
83403         variable names, rather than @FNMATCH_H@.
83404         * modules/alloca: Likewise for $(ALLOCA_H).
83405
83406         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
83407         the three copies of the literal target, `fnmatch.h'.
83408         * modules/alloca (alloca.h): Likewise.
83409
83410 2003-08-14  Jim Meyering  <jim@meyering.net>
83411
83412         Merge from coreutils.
83413         * m4/tzset.m4: New file.
83414         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
83415         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
83416         otherwise, AIX 5.1 systems would end up using the latter.
83417         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
83418         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
83419         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
83420         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
83421
83422 2003-08-14  Jim Meyering  <jim@meyering.net>
83423
83424         Merge from coreutils.
83425         * lib/obstack.h: Whitespace changes.
83426         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
83427         and xcalloc return values.
83428         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
83429         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
83430         hang on OSF/1 5.1 for DIR on both local and remote file systems.
83431         Reported by (and fix confirmed by) Nelson H. F. Beebe.
83432         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
83433         error from mntctl.
83434         Use mntctl's return value to drive the entry-processing loop, since
83435         we can't rely on the value of the vmt_length member in the last
83436         entry.  On some systems doing so could result in exhausting
83437         virtual memory.  Based in part on a patch from Mike Jetzer.
83438
83439 2003-08-14  Jim Meyering  <jim@meyering.net>
83440         and Paul Eggert  <eggert@twinsun.com>
83441
83442         Merges from coreutils, plus other fixes.
83443         * lib/physmem.c: Merge in portability changes from gcc/libiberty
83444         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
83445         for credits and details.  Thanks to Kaveh Ghazi for helping
83446         to keep these files in sync.
83447         (ARRAY_SIZE): Define it.
83448         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
83449         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
83450         (memcasecmp): Don't assume size_t fits in unsigned int.
83451         Remove casts and duplicate code.
83452         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
83453         (memcpy): Remove definition.
83454         Merge in some clean-up and optimization changes from glibc.
83455         [BLOCKSIZE]: Move definition to top of file.
83456         Ensure that it is a multiple of 64.
83457         Rearrange loop exit tests so as to avoid performing an
83458         additional fread after encountering an error or EOF.
83459         * lib/md5.h (md5_uintptr): Define.
83460         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
83461         return to the initial working directory.  Preserve errno
83462         for caller.
83463         * lib/idcache.c: Include "xalloc.h".
83464         (xmalloc, xrealloc): Remove decls.
83465         (getuser): Remove casts no longer required in C89.
83466         * lib/human.c: Include stdio.h, for sprintf.
83467         * lib/group-member.c: Include "xalloc.h".
83468         (xmalloc, xrealloc): Remove decls.
83469         (get_group_info): Remove casts no longer required in C89.
83470         * lib/getusershell.c (readname): Remove casts no longer required in
83471         C89.
83472         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
83473         * lib/getline.c: Whitespace fix, from coreutils.
83474
83475 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83476
83477         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
83478         Check for isascii.
83479
83480         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
83481         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
83482         Undo previous (whitespace-only) change.
83483
83484 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83485
83486         * lib/exclude.c: Include <ctype.h>
83487         (IN_CTYPE_DOMAIN): New macro.
83488         (is_space): New fn.
83489         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
83490         and empty lines.
83491
83492         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
83493         Undo previous (whitespace-only) change.
83494
83495 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83496
83497         * config/srclist-update: Change update back to the old behavior,
83498         leaving whitespace alone.  Use one 'sed' command rather than a
83499         pipeline.
83500         (fixlicense): Now a variable, not a function.
83501         (remove_trailing_blanks): Remove.
83502         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
83503         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
83504         Undo previous (whitespace-only) change.
83505
83506 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83507
83508         Merge from coreutils.
83509         * modules/euidaccess: Add lib_SOURCES, include for new
83510         file euidaccess.h
83511
83512 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83513
83514         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
83515         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
83516         Normalize leading white space and remove trailing white space.
83517
83518         Merge from coreutils
83519         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
83520
83521         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
83522         0.12.1.  These files are now being upgraded automatically by
83523         ../config/srclist-update.
83524
83525 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83526
83527         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
83528         Normalize leading white space and remove trailing white space.
83529         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
83530         notice, as per ../config/srclist-update.
83531
83532         Merge from coreutils.
83533         * lib/euidaccess.h: New file.
83534         * lib/euidaccess.c: Include it.
83535         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
83536         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
83537         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
83538
83539 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83540
83541         * config/srclist-update: Add copyright notice.
83542         (remove_id_lines, remove_trailing_blanks): New constants.
83543         (fixfile): Use them to normalize spacing a bit in copied files.
83544         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
83545         Normalize leading white space and remove trailing white space.
83546
83547         * config/texinfo.tex: Sync with texinfo.
83548
83549         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
83550         strtoul.c from libc, to merge coreutils whitespace changes.
83551
83552         * config/srclist.txt: Get the following m4 files from gettext:
83553         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
83554         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
83555         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
83556         wint_t.m4.
83557
83558 2003-08-12  Karl Berry  <karl@gnu.org>
83559
83560         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
83561         been made.
83562
83563 2003-08-11  Paul Eggert  <eggert@twinsun.com>
83564
83565         * modules/gnu-source, m4/gnu-source.m4:
83566         Remove; we're assuming Autoconf 2.54 or later now.
83567         Suggested by Bruno Haible.
83568         * MODULES.html.sh (func_all_modules): Remove gnu-source.
83569
83570 2003-08-11  Bruno Haible  <bruno@clisp.org>
83571
83572         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
83573
83574 2003-08-11  Bruno Haible  <bruno@clisp.org>
83575
83576         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
83577         (vasnprintf): Use it instead of wcslen.
83578
83579 2003-08-11  Bruno Haible  <bruno@clisp.org>
83580
83581         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
83582         value to ensure that _Bool promotes to int. Use #define for _Bool when
83583         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
83584
83585 2003-08-10  Karl Berry  <karl@gnu.org>
83586
83587         * lib/regex.h: update from libc (whitespace fix).
83588
83589 2003-08-09  Paul Eggert  <eggert@twinsun.com>
83590
83591         Merge some files from coreutils.  These changes were
83592         originally made by Jim Meyering.
83593         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
83594         many older Unixes require this.
83595         * lib/alloca.c (alloca): Remove cast to argument of free;
83596         no longer needed in C89.
83597         * lib/alloca_.h, regex.h: Fix white space to match
83598         what GNU indent does.
83599
83600 2003-08-09  Paul Eggert  <eggert@twinsun.com>
83601
83602         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
83603         apparently Emacs's Unicode mode got confused before my 2003-08-05
83604         checkin.
83605
83606 2003-08-08  Paul Eggert  <eggert@twinsun.com>
83607
83608         * m4/extensions.m4: New file.
83609         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
83610         Require gl_USE_SYSTEM_EXTENSIONS.
83611         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
83612         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
83613
83614 2003-08-08  Paul Eggert  <eggert@twinsun.com>
83615
83616         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
83617         * modules/extensions, modules/gnu-source: New files.
83618         * modules/timespec, modules/unlocked-io: Depend on extensions.
83619
83620 2003-08-07  Paul Eggert  <eggert@twinsun.com>
83621
83622         * modules/restrict: New file.
83623         * MODULES.html.sh (func_all_modules): Add restrict.
83624         * modules/regex: Depend on restrict.
83625
83626 2003-08-07  Paul Eggert  <eggert@twinsun.com>
83627
83628         * m4/restrict.m4: New file.
83629         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
83630
83631 2003-08-07  Bruno Haible  <bruno@clisp.org>
83632
83633         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
83634         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
83635
83636 2003-08-07  Bruno Haible  <bruno@clisp.org>
83637
83638         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
83639         makes the module 'getndelim2' compatible with the module 'getline'.
83640
83641 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83642
83643         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
83644         byte with "\201" to avoid glitches when editing that source file
83645         with multi-gnome-terminal.
83646
83647 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83648
83649         * lib/bumpalloc.h: Remove.
83650
83651 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83652
83653         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
83654         * modules/bumpalloc: Remove.
83655
83656 2003-08-04  Paul Eggert  <eggert@twinsun.com>
83657
83658         * lib/getloadavg.c: Change copyright notice and spacing to conform to
83659         GNU coding style.
83660
83661         Merge from coreutils.
83662         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
83663         1. From glibc.
83664         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
83665         from Karl Berry, implemented by Jim Meyering.
83666         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
83667         from Dmitry V. Levin.
83668         Remove anachronistic cast of xrealloc.
83669         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
83670         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
83671         type. Otherwise, it wouldn't compile with at least /bin/cc on
83672         ymp-cray-unicos9.0.2.X.
83673         Combine two mostly-identical uses of alloca into one.
83674         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
83675
83676 2003-08-04  Dave Love  <d.love@dl.ac.uk>
83677
83678         [From Emacs.]
83679
83680         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
83681         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
83682         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
83683         obsolete NLIST_NAME_UNION.
83684         [__GNU__]: Undef BSD and FSCALE.
83685         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
83686
83687 2003-08-03  Paul Eggert  <eggert@twinsun.com>
83688
83689         * lib/stdbool_.h (_Bool): Make it signed char, instead of
83690         an enum type, so that it's guaranteed to promote to int.  See:
83691         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
83692
83693 2003-08-03  Karl Berry  <karl@gnu.org>
83694
83695         * config/depcomp: update from automake.
83696
83697 2003-07-31  Paul Eggert  <eggert@twinsun.com>
83698
83699         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
83700         (strerror): Don't assume that a printable int fits in 14 bytes.
83701
83702 2003-07-31  Bruno Haible  <bruno@clisp.org>
83703
83704         * modules/getpass-gnu: New file.
83705         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
83706
83707 2003-07-31  Bruno Haible  <bruno@clisp.org>
83708
83709         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
83710
83711 2003-07-24  Karl Berry  <karl@gnu.org>
83712
83713         * config/missing: update from automake.
83714
83715 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
83716             Bruno Haible  <bruno@clisp.org>
83717
83718         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
83719         * lib/getline.c (getline, getdelim): Likewise.
83720         Remove _GNU_SOURCE define; now it's defined in config.h through
83721         m4/getline.m4.
83722
83723 2003-07-23  Karl Berry  <karl@gnu.org>
83724
83725         * config/config.sub: update from prep.
83726
83727 2003-07-22  Paul Eggert  <eggert@twinsun.com>
83728
83729         * modules/xalloc (Depends-on): Add exitfail.
83730         * modules/xmemcoll: Likewise.
83731
83732 2003-07-22  Paul Eggert  <eggert@twinsun.com>
83733
83734         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
83735         over-parenthesization in macros.
83736
83737         Sync with coreutils.
83738
83739         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
83740         required by C99.
83741
83742         Use `exit_failure' for xalloc and xmemcoll instead of their own
83743         private exit-failure variables.
83744         * lib/xalloc.h (xalloc_exit_failure): Remove.
83745         * lib/xmalloc.c: Likewise.  Include exitfail.h.
83746         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
83747         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
83748         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
83749         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
83750
83751 2003-07-20  Jim Meyering  <jim@meyering.net>
83752
83753         * modules/closeout (Depends-on): Add exitfail.
83754         Suggestion from Bruno Haible.
83755
83756 2003-07-19  Karl Berry  <karl@gnu.org>
83757
83758         * config/config.sub: update from prep.
83759
83760 2003-07-18  Paul Eggert  <eggert@twinsun.com>
83761
83762         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
83763         Remove.
83764         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
83765         to test that it can stand by itself.  Include "exitfail.h".
83766         Clients should set exit_failure instead.
83767         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
83768
83769 2003-07-18  Bruno Haible  <bruno@clisp.org>
83770
83771         * modules/getndelim2: New file.
83772         * modules/getline: Share files with module getndelim2.
83773         * modules/getnline: Depend on getndelim2 instead of sharing files with
83774         it. Add getnline.c to lib_SOURCES.
83775         * MODULES.html.sh (func_all_modules): Add getndelim2.
83776
83777 2003-07-18  Bruno Haible  <bruno@clisp.org>
83778
83779         * m4/getndelim2.m4: New file.
83780         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
83781         invoke gl_PREREQ_GETNDELIM2.
83782         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
83783         gl_PREREQ_GETNDELIM2.
83784         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
83785         gl_GETNDELIM2.
83786
83787 2003-07-18  Bruno Haible  <bruno@clisp.org>
83788
83789         * lib/getndelim2.h: New file.
83790         * lib/getndelim2.c: Make into a module of its own. Include config.h,
83791         getndelim2.h.
83792         (getndelim2): Make non-static. Change return type to ssize_t.
83793         * lib/getline.h: Change argument names.
83794         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
83795         * lib/getnline.c: Include getndelim2.h.
83796
83797 2003-07-18  Andreas Schwab  <schwab@suse.de>
83798
83799         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
83800
83801 2003-07-17  Karl Berry  <karl@gnu.org>
83802
83803         * config/config.sub: update from prep.
83804
83805 2003-07-17  Bruno Haible  <bruno@clisp.org>
83806
83807         * modules/getnline: New file.
83808         * modules/getline: Add lib/getndelim2.c to source file list.
83809         * MODULES.html.sh (func_all_modules): Add getnline.
83810
83811 2003-07-17  Bruno Haible  <bruno@clisp.org>
83812
83813         * m4/getnline.m4: New file.
83814
83815 2003-07-17  Bruno Haible  <bruno@clisp.org>
83816
83817         * m4/Makefile.am.in: Remove file.
83818         * m4/Makefile.am: Remove file.
83819         * m4/Makefile.in: Remove file.
83820
83821 2003-07-17  Bruno Haible  <bruno@clisp.org>
83822
83823         * lib/getnline.h: New file.
83824         * lib/getnline.c: New file.
83825         * lib/getndelim2.c: New file, extracted from getline.c.
83826         (getndelim2): Renamed from getdelim2, with added nmax argument.
83827         * lib/getline.c: Include getndelim2.c.
83828         (getdelim2): Moved out to getndelim2.c.
83829         (getline, getdelim): Update.
83830
83831 2003-07-17  Bruno Haible  <bruno@clisp.org>
83832
83833         * lib/Makefile.am: Remove file.
83834         * lib/Makefile.in: Remove file.
83835
83836 2003-07-17  Bruno Haible  <bruno@clisp.org>
83837
83838         * configure.in: Remove file.
83839         * Makefile.in: Remove file.
83840
83841 2003-07-17  Bruno Haible  <bruno@clisp.org>
83842
83843         * MODULES.html.sh: Put the </BODY> right before </HTML>.
83844
83845 2003-07-16  Karl Berry  <karl@gnu.org>
83846
83847         * config/srclist-update: was running fixlicense twice, which caused
83848                 texinfo.tex to be nullified for some reason.  Simplify,
83849                 $gplsrc is no longer needed as far as I can see?
83850
83851 2003-07-16  Jim Meyering  <jim@meyering.net>
83852
83853         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
83854
83855 2003-07-15  Paul Eggert  <eggert@twinsun.com>
83856
83857         * config/srclist.txt: Get the following files from gettext-runtime/intl
83858         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
83859         ref-del.sin.  From Bruno Haible.
83860         * config/srclist-update (fixfile): Change grep pattern again, since the
83861         previous fix didn't work (there was another trailing $).  Use
83862         '[$]' to escape the $s.
83863
83864 2003-07-15  Karl Berry  <karl@gnu.org>
83865
83866         * lib/vasnprintf.c: update from gettext.
83867
83868 2003-07-15  Karl Berry  <karl@gnu.org>
83869
83870         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
83871         gets expanded when surrounded by '$'.
83872
83873 2003-07-15  Jim Meyering  <jim@meyering.net>
83874
83875         * modules/save-cwd: Don't depend on error.  From Derek Price.
83876
83877 2003-07-15  Jim Meyering  <jim@meyering.net>
83878
83879         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
83880
83881 2003-07-14  Simon Josefsson  <jas@extundo.com>
83882
83883         * modules/mempcpy: New file.
83884         * MODULES.html.sh (func_all_modules): Add mempcpy.
83885
83886 2003-07-14  Simon Josefsson  <jas@extundo.com>
83887
83888         * m4/mempcpy.m4: New file.
83889
83890 2003-07-14  Simon Josefsson  <jas@extundo.com>
83891
83892         * lib/mempcpy.h: New file.
83893         * lib/mempcpy.c: New file.
83894
83895 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83896
83897         * modules/getdate, modules/posixtm: Depend on mktime.
83898
83899 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83900
83901         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
83902         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
83903         unicodeio.c, unicodeio.h, unlocked-io.h:
83904         Switch from LGPL to GPL.
83905
83906 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83907
83908         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
83909         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
83910         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
83911         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
83912         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
83913         updated automatically by ../config/srclist-update.  This changes
83914         their license from LPGL to GPL.
83915
83916 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83917
83918         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
83919         assumed to refer to the root of the most recent stable gettext version.
83920         * config/srclistvars.sh: Add defaults for eggert.
83921         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
83922         Match "This program" as well as "The program".  This is needed
83923         for gettext.
83924
83925 2003-07-14  Jim Meyering  <jim@meyering.net>
83926
83927         Don't emit diagnostics.  Let callers do that.
83928         * lib/save-cwd.c: Don't include "error.h".
83929         (save_cwd): Don't call error.  Ensure that errno is valid
83930         when returning nonzero.
83931
83932         * lib/save-cwd.h (restore_cwd): Update prototype.
83933         * lib/save-cwd.c (restore_cwd): Remove two parameters.
83934         Simplify.  Don't call error upon failure.  Let callers do that.
83935         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
83936         when auditing is enabled.  But don't bother updating the #if.
83937
83938 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
83939
83940         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
83941         it breaks C++ compilation.
83942         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
83943
83944 2003-07-10  Simon Josefsson  <jas@extundo.com>
83945
83946         * modules/strchrnul (Makefile.am): Add strchrnul.h.
83947
83948 2003-07-10  Jim Meyering  <jim@meyering.net>
83949
83950         * m4/clock_time.m4: Remove trailing blank.
83951         * m4/intmax_t.m4: Likewise.
83952
83953 2003-07-10  Jim Meyering  <jim@meyering.net>
83954
83955         * lib/vasnprintf.c: Remove trailing blanks.
83956         Make cpp indentation consistent.
83957
83958 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83959
83960         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
83961         posixver.c, strftime.c, strnlen.c, strverscmp.c:
83962         Switch from LGPL to GPL.
83963
83964 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83965
83966         * config/srclist.txt: Sort sublists.  Add
83967         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
83968         that differ from gnulib for one reason or another; we'd like this list
83969         to be smaller but for now let's document what we have.
83970
83971 2003-07-08  Paul Eggert  <eggert@twinsun.com>
83972
83973         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
83974         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
83975         and sweeter "eval x=$x".
83976         * config/srclist.txt: Get lib/argp* from glibc.
83977
83978 2003-07-07  Paul Eggert  <eggert@twinsun.com>
83979
83980         * lib/mktime.c: Fix some boundary cases and remove need for floating
83981         point.
83982
83983         Issue a compile-time diagnostic if time_t is floating point, or if
83984         two's complement arithmetic is not in effect, or if arithmetic
83985         right shift does not propagate the sign.  These assumptions were
83986         all in the original code but they weren't checked.
83987
83988         (TIME_T_MIDPOINT, verify): New macros.
83989         (__isleap): Remove; it has integer overflow problems.
83990         (leapyear): New function, without those problems.
83991         (ydhms_tm_diff): Remove; splitting into two parts.
83992         (ydhms_diff): New function, containing the arithmetic part of
83993         the old ydhms_tm_diff function.  Issue a compile-time
83994         diagnostic if we are not using C99 integer division.
83995         Avoid casts when possible.
83996         (guess_time_tm): New function, containing the checking part of
83997         the old ydhms_tm_diff function.  Return the new value, rather than
83998         the difference between it and the old.  Accept a new argument T
83999         so that *T specifies the old value.  Check for overflow in the result.
84000
84001         (__mktime_internal): Use a time_t offset, not a long int offset.
84002         This undoes the 2003-06-04 change, which is no longer needed now
84003         that we have better overflow checking.
84004         (localtime_offset): Likewise.
84005
84006         (__mktime_internal): Avoid harmful overflow on hosts where time_t
84007         and long are 64-bit but int is only 32-bit.
84008         (ydhms_diff): Use long int to store year1 and yday1.
84009         Issue a compile-time diagnostic if long int is not wide enough.
84010
84011         (__mktime_internal): Use long int to store adjusted year and yday.
84012         Use plain C rather than preprocessor commands, if that doesn't
84013         affect efficiency.
84014         Check for overflow (and try to repair) after each probe
84015         rather than checking only at the very end.  This avoids some bugs
84016         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
84017         does not equal GMT offset at maximum time).
84018         Use integer to check for overflow rather than floating point; this
84019         is more portable to non-IEEE hosts, and is a tad faster.
84020         When we detect that we are oscillating between two values,
84021         don't check whether tm_isdst has the requested value, since
84022         we already know the answer.  When tm_isdst has the wrong value,
84023         use a different heuristic to find the right one, based on the
84024         extreme values actually observed in practice in tz2003a,
84025         rather than the (overly optimistic) "previous 3 calendar quarters".
84026
84027         (not_equal_tm, print_tm, check_result): Use "const T" rather than
84028         "T const" to accommodate glibc style.
84029         (check_result): Use less-confusing report format.  "long" -> "long int.
84030         (main): Likewise.
84031         Don't loop if the iteration overflows time_t.
84032         Allow a negative step in the iteration.
84033
84034 2003-07-06  Karl Berry  <karl@gnu.org>
84035
84036         * config/depcomp: update from automake.
84037         * config/config.sub: update from prep.
84038
84039 2003-07-03  Karl Berry  <karl@gnu.org>
84040
84041         * config/config.guess: update from prep.
84042
84043 2003-07-01  Paul Eggert  <eggert@twinsun.com>
84044
84045         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
84046         xreadlink.c now includes it unconditionally.
84047
84048 2003-07-01  Paul Eggert  <eggert@twinsun.com>
84049
84050         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
84051         having it depend on HAVE_SYS_TYPES_H.
84052
84053 2003-07-01  Bruno Haible  <bruno@clisp.org>
84054
84055         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
84056         <sys/types.h> should be sufficient.
84057         Reported by Paul Eggert.
84058
84059 2003-06-26  Karl Berry  <karl@gnu.org>
84060
84061         * config/depcomp: update from automake.
84062
84063 2003-06-26  Bruno Haible  <bruno@clisp.org>
84064
84065         * modules/human: Depend on module stdbool.
84066
84067 2003-06-25  Bruno Haible  <bruno@clisp.org>
84068
84069         * modules/readlink: New file.
84070         * modules/xreadlink: Depend on it.
84071         * MODULES.html.sh (func_all_modules): Add readlink.
84072
84073 2003-06-25  Bruno Haible  <bruno@clisp.org>
84074
84075         * m4/readlink.m4: New file.
84076
84077 2003-06-25  Bruno Haible  <bruno@clisp.org>
84078
84079         * lib/readlink.c: New file.
84080
84081 2003-06-22  Karl Berry  <karl@gnu.org>
84082
84083         * config/srclist.txt: update mkinstalldirs from automake.
84084         * config/mkinstalldirs: update.
84085
84086 2003-06-22  Bruno Haible  <bruno@clisp.org>
84087
84088         Portability to mingw32.
84089         * m4/ssize_t.m4: New file, from GNU gettext.
84090         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
84091         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
84092
84093 2003-06-22  Bruno Haible  <bruno@clisp.org>
84094
84095         * modules/safe-read: Add m4/ssize_t.m4.
84096         * modules/xreadlink: Add m4/ssize_t.m4.
84097
84098 2003-06-20  Bruno Haible  <bruno@clisp.org>
84099
84100         Assume C89, so PARAMS isn't needed.
84101         * lib/unicodeio.h (PARAMS): Remove.
84102         * lib/unicodeio.c: Don't use PARAMS.
84103
84104 2003-06-18  Karl Berry  <karl@gnu.org>
84105
84106         * config/config.{guess,sub}: update from prep.
84107
84108 2003-06-18  Jim Meyering  <jim@meyering.net>
84109
84110         Merge changes from coreutils.
84111         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
84112         Remove explicit declarations of xmalloc and realloc.
84113         Include xalloc.h.
84114         (read_utmp): Remove anachronistic cast of xmalloc.
84115
84116 2003-06-17  Paul Eggert  <eggert@twinsun.com>
84117
84118         Assume C89, so PARAMS isn't needed.
84119         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
84120         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
84121         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
84122         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
84123         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
84124         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
84125         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
84126         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
84127         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
84128         lib/xstrtod.h, lib/xstrtol.h: Likewise.
84129         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
84130         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
84131         no longer needed. Anyway, config.h should always be included before any
84132         other file.
84133
84134 2003-06-11  Simon Josefsson  <jas@extundo.com>
84135
84136         * modules/sysexits: New file.
84137         * MODULES.html.sh (func_all_modules): Add sysexits.
84138
84139 2003-06-11  Simon Josefsson  <jas@extundo.com>
84140
84141         * lib/sysexit_.h: New file.
84142
84143 2003-06-11  Derek Price  <derek@ximbiot.com>
84144
84145         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
84146         necessary.
84147
84148 2003-06-11  Bruno Haible  <bruno@clisp.org>
84149
84150         * m4/sysexits.m4: New file.
84151
84152 2003-06-10  Simon Josefsson  <jas@extundo.com>
84153
84154         * lib/argp.h: New file, from glibc.
84155         * lib/argp-ba.c: New file, from glibc.
84156         * lib/argp-eexst.c: New file, from glibc.
84157         * lib/argp-fmtstream.c: New file, from glibc.
84158         * lib/argp-fmtstream.h: New file, from glibc.
84159         * lib/argp-fs-xinl.c: New file, from glibc.
84160         * lib/argp-help.c: New file, from glibc.
84161         * lib/argp-namefrob.h: New file, from glibc.
84162         * lib/argp-parse.c: New file, from glibc.
84163         * lib/argp-pv.c: New file, from glibc.
84164         * lib/argp-pvh.c: New file, from glibc.
84165         * lib/argp-xinl.c: New file, from glibc.
84166
84167 2003-06-10  Simon Josefsson  <jas@extundo.com>
84168
84169         * modules/strchrnul: New file.
84170
84171 2003-06-10  Simon Josefsson  <jas@extundo.com>
84172
84173         * modules/argp: New file.
84174
84175 2003-06-10  Simon Josefsson  <jas@extundo.com>
84176
84177         * m4/strchrnul.m4: New file.
84178
84179 2003-06-10  Simon Josefsson  <jas@extundo.com>
84180
84181         * lib/strchrnul.h: New file.
84182         * lib/strchrnul.c: New file.
84183
84184 2003-06-10  Bruno Haible  <bruno@clisp.org>
84185
84186         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
84187
84188 2003-06-07  Karl Berry  <karl@gnu.org>
84189
84190         * config/config.{guess,sub}: update from prep.
84191
84192 2003-06-07  Jim Meyering  <jim@meyering.net>
84193
84194         * modules/strtod: Use $(...) notation, not @...@ for
84195         AC_REPLACE'd variables.
84196         * modules/localcharset: Likewise.
84197
84198 2003-06-07  Jim Meyering  <jim@meyering.net>
84199
84200         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
84201         in place of my name in the copyright comment.
84202         Remove definition and uses of __P.
84203
84204         From coreutils.
84205         * lib/stat.c: Don't declare xmalloc explicitly.
84206         Instead, include "xalloc.h".
84207         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
84208         xrealloc, and xcalloc return values.
84209         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
84210         Improve comment.
84211         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
84212
84213 2003-06-07  Bruno Haible  <bruno@clisp.org>
84214
84215         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
84216         avoid AC_CONFIG_LINKS.
84217         * modules/fnmatch (Makefile.am): Use explicit creation rule for
84218         fnmatch.h, to avoid AC_CONFIG_LINKS.
84219         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
84220
84221 2003-06-07  Bruno Haible  <bruno@clisp.org>
84222
84223         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
84224         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
84225         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
84226         directory.
84227         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
84228         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
84229         directory.
84230
84231 2003-06-06  Jim Meyering  <jim@meyering.net>
84232
84233         Merge from coreutils.
84234         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
84235         Consolidate declarations and initializations of *_base* locals.
84236
84237         Merge from coreutils.
84238         This avoids a core dump on systems without GNU putenv,
84239         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
84240         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
84241         (unsetenv): New static function, from GNU libc.
84242         (rpl_putenv): Use it.
84243
84244         * lib/modechange.c: Remove trailing blanks.
84245
84246         Merge from coreutils.
84247         * lib/fsusage.c: Remove declaration of statfs.
84248         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
84249
84250         * lib/posixtm.c: Include <stdbool.h> unconditionally.
84251
84252 2003-06-06  Jim Meyering  <jim@meyering.net>
84253
84254         * lib/stdbool_.h: Renamed from stdbool.h.in.
84255
84256 2003-06-06  Jim Meyering  <jim@meyering.net>
84257             Bruno Haible  <bruno@clisp.org>
84258
84259         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
84260         Adjust Makefile.am snippet not to redirect directly to target.
84261         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
84262
84263 2003-06-05  Paul Eggert  <eggert@twinsun.com>
84264
84265         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
84266         mismatch, look in future quarters as well as past.  This fixes a
84267         bug when processing fall-backwards gaps immediately after a long
84268         period of daylight-saving time.
84269
84270         * lib/mktime.c: Assume freestanding C89 or better.
84271         (HAVE_LIMITS_H): Remove.  Assume it's 1.
84272         (__P): Remove; not used.
84273         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
84274         (mktime, not_equal_tm, print_tm, check_result,
84275         main): Use prototypes.  Use const * where appropriate.
84276         (main): Fix typo in testing code that uncovered by above changes.
84277         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
84278
84279 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84280
84281         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
84282         locale.h, localeconv.  This merges changes from coreutils.
84283
84284         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
84285         It can be removed after the next Autoconf is released.
84286         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
84287         needed.
84288
84289 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84290
84291         * lib/mktime.c: Fix Debian bug 177940
84292         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
84293         (localtime_offset): Now long int, not time_t, because we want it
84294         to be guaranteed to be signed.  All uses changed.
84295         (__mktime_internal): If overflow would occur when adding offset,
84296         don't add it.
84297
84298         Merge 'human' changes from coreutils.  Rewrite to support
84299         locale-specific notations like thousands separators.
84300         * lib/human.c: Simplify authorship notice.
84301         Include human.h immediately after config.h.
84302         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
84303         <limits.h>: Do not include, since human.h does.
84304         (SIZE_MAX, UINTMAX_MAX): New macros.
84305         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
84306         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
84307         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
84308         (power_letter): Renamed from suffixes.
84309         (generate_suffix_backwards): Remove.
84310         (adjust_value): Now takes int style (because of human.h changes)
84311         and long double value (for greater precision on some platforms).
84312         (group_number): New function.
84313         (human_readable): Use it.  Use integer options, not enum.
84314         Put the options before the sizes in the arg list.
84315         Support all the new options.
84316         The old human_readable function has been removed;
84317         use inttostr.h instead.
84318         (human_readable, default_block_size, humblock):
84319         Use uintmax_t, not int, for block sizes.
84320         (human_readable_inexact, block_size_types): Remove.
84321         (block_size_opts): New constant.
84322         (human_options): Renamed from human_block_size, with new signature
84323         that allows block sizes up to UINTMAX_MAX.  All callers changed.
84324         * lib/human.h: Add copyright and authorship notice.
84325         Include <limits.h> and <stdbool.h> unconditionally.
84326         (PARAMS): Remove.  All uses removed.
84327         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
84328         (enum human_inexact_style): Remove tag; now a nameless enum.
84329         (human_floor, human_ceiling, human_round_to_even): Now have
84330         values 2, 0, 1 rather than -1, 1, 0.
84331         (human_group_digits, human_suppress_point_zero, human_autoscale,
84332         human_base_1024, human_SI, human_B): New constants.
84333         (human_readable_inexact, human_block_size): Remove.
84334         (human_readable): Size args are now uintmax_t, not int.
84335         (human_options): New decl.
84336
84337         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
84338         unnecessary now that we assume C89 or better.  This change
84339         imported from coreutils.
84340
84341         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
84342         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
84343         in the 2003-05-30 sync from glibc.
84344
84345         .h files should stand alone, but we shouldn't include <sys/types.h>
84346         if we can get away with just <stddef.h>.
84347
84348         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
84349         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
84350         rather than <sys/types.h>, as we merely need size_t.
84351         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
84352         to get size_t.
84353         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
84354         Include <stdio.h>, to get FILE.
84355         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
84356         memcasecmp.h has included <stddef.h> and all we need is size_t.
84357         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
84358         our interface, instead of including <sys/types.h>
84359
84360 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84361
84362         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
84363         now, as glibc mktime is buggy on non-glibc systems.
84364
84365 2003-06-03  Karl Berry  <karl@gnu.org>
84366
84367         * config/config.sub: update from prep.
84368
84369 2003-06-02  Paul Eggert  <eggert@twinsun.com>
84370
84371         [from coreutils]
84372         Fix some minor time-related bugs with POSIX time arguments.
84373         Some valid time stamps were being rejected (notably -1, and
84374         time stamps before 1900 on 64-bit hosts).  And some invalid
84375         time stamps were being accepted, e.g. September 31.
84376
84377         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
84378         that we can return (time_t) -1 successfully.
84379         * lib/posixtm.c: Likewise.
84380         [HAVE_STDBOOL_H]: Include <stdbool.h>.
84381         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
84382         (t): Remove static var.
84383         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
84384         of static var.  All uses changed.
84385         (year): Do not reject years before 1900; they can occur with
84386         64-bit time_t.
84387         (posix_time_parse): Do not check for out-of-range components;
84388         that is now the caller's responsibility, since our checks were
84389         only approximations.
84390         (posixtime): Use mktime to check for out-of-range components,
84391         since it knows them exactly.
84392         If mktime returns (time_t) -1, check whether an error actually occurred
84393         by invoking localtime on -1.
84394         (main) [TEST_POSIXTIME]: Check for input data errors, and report
84395         posixtime failures better.
84396         Improve the test data (in comments only).
84397
84398 2003-06-02  Karl Berry  <karl@gnu.org>
84399
84400         * config/mkinstalldirs (version): new variable.
84401         (--version): new option.
84402         (usage): improve message.
84403
84404 2003-05-30  Karl Berry  <karl@gnu.org>
84405
84406         * lib/mktime.c: update from libc.
84407
84408 2003-05-30  Bruno Haible  <bruno@clisp.org>
84409
84410         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
84411         * config/config.rpath: Upgrade to gettext-0.12.1.
84412
84413 2003-05-30  Bruno Haible  <bruno@clisp.org>
84414
84415         * m4/gettext.m4: Upgrade to gettext-0.12.1.
84416         * m4/nls.m4: New file, from gettext-0.12.1.
84417         * m4/po.m4: New file, from gettext-0.12.1.
84418         * m4/progtest.m4: Upgrade to gettext-0.12.1.
84419
84420 2003-05-30  Bruno Haible  <bruno@clisp.org>
84421
84422         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
84423         * lib/localcharset.h: Likewise.
84424         * lib/localcharset.c: Likewise.
84425
84426 2003-05-29  Karl Berry  <karl@gnu.org>
84427
84428         * config/config.rpath: update from gettext.
84429
84430 2003-05-28  Paul Eggert  <eggert@twinsun.com>
84431
84432         Assume the headers required for C89 freestanding compilers.
84433         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
84434         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
84435         * m4/human.m4 (gl_HUMAN): Likewise.
84436         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
84437         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
84438         * m4/userspec.m4 (gl_USERSPEC): Likewise.
84439         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
84440         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
84441         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
84442
84443 2003-05-28  Paul Eggert  <eggert@twinsun.com>
84444
84445         Assume the headers required for C89 freestanding compilers.
84446         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
84447         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
84448         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
84449         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
84450         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
84451         define, since <limits.h> is guaranteed to do that.
84452         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
84453         * lib/exclude.c: Include <stdbool.h> unconditionally.
84454         * lib/tempname.c: Include <stddef.h> unconditionally.
84455         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
84456         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
84457         <stddef.h> does that.
84458         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
84459         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
84460         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
84461         needed.
84462         * lib/xstrtol.c: Likewise.
84463         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
84464         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
84465
84466         * lib/addext.c (addext): Use assignment rather than cast, to avoid
84467         warnings on some platforms.
84468
84469         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
84470         arbitrarily.
84471
84472 2003-05-26  Jim Meyering  <jim@meyering.net>
84473
84474         Merge in a change from coreutils:
84475         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
84476         that is guaranteed to be `no'.  Use `no_such_member' to indicate
84477         that condition, rather than `-1' which is slightly misleading.
84478         Change the name of the cache variable to have the gl_ prefix.
84479         Prompted by a patch from Richard Dawe for DJGPP.
84480
84481 2003-05-24  Karl Berry  <karl@gnu.org>
84482
84483         * config/config.guess: update from prep.
84484
84485 2003-05-22  Karl Berry  <karl@gnu.org>
84486
84487         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
84488
84489 2003-05-20  Karl Berry  <karl@gnu.org>
84490
84491         * config/config.guess: update from prep.
84492
84493 2003-05-18  Karl Berry  <karl@gnu.org>
84494
84495         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
84496         might actually be set by the user.
84497
84498         * config/depcomp, install-sh, mdate-sh: update from automake.
84499
84500 2003-05-17  Bruno Haible  <bruno@clisp.org>
84501
84502         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
84503         invalid expansion for AC_EGREP_CPP.
84504         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
84505         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
84506         Suggested by Akim Demaille <akim@epita.fr> in
84507         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
84508
84509 2003-05-12  Jim Meyering  <jim@meyering.net>
84510
84511         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
84512         the space-padded-by-default conversion specifiers, %e, %k, %l.
84513
84514 2003-05-12  Bruno Haible  <bruno@clisp.org>
84515
84516         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
84517         the string is longer than 4 KB.
84518
84519 2003-05-11  Karl Berry  <karl@gnu.org>
84520
84521         * config/config.{guess,sub}: update from prep.
84522
84523 2003-05-09  Bruno Haible  <bruno@clisp.org>
84524
84525         * modules/error: Add m4/strerror_r.m4 to file list.
84526
84527 2003-05-03  Bruno Haible  <bruno@clisp.org>
84528
84529         Upgrade to Unicode-4.0.
84530         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
84531         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
84532         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
84533         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
84534         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
84535         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
84536         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
84537         Change width of U+E0100..U+E01EF from 1 to 0.
84538
84539 2003-04-25  Jim Meyering  <jim@meyering.net>
84540
84541         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
84542         of type size_t, not int.
84543
84544 2003-04-25  Bruno Haible  <bruno@clisp.org>
84545
84546         * lib/copy-file.c: Include <stddef.h>, for size_t.
84547
84548 2003-04-21  Paul Eggert  <eggert@twinsun.com>
84549
84550         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
84551         code which expansion is under static control.  Patch imported from
84552         Akim Demaille's patch to Bison; see
84553         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
84554
84555 2003-04-14  Bruno Haible  <bruno@clisp.org>
84556
84557         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
84558
84559 2003-04-11  Jim Meyering  <jim@meyering.net>
84560
84561         Merge changes from Coreutils.
84562
84563         2003-03-22  Jim Meyering  <jim@meyering.net>
84564
84565         * lib/strftime.c (widen): Cast alloca return value to proper type.
84566
84567         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
84568
84569         From GNU libc.
84570         * lib/strftime.c (my_strftime): Handle very large width
84571         specifications for numeric values correctly.  Improve checks for
84572         overflow.
84573
84574         2003-01-19  Jim Meyering  <jim@meyering.net>
84575
84576         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
84577         definitions.
84578         (nl_get_alt_digit) [! defined my_strftime]: Define.
84579         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
84580         _nl_get_alt_digit and _nl_get_walt_digit.
84581
84582         * lib/strftime.c (my_strftime): Merge in locale-related changes from
84583         libc. These changes have no effect outside of _LIBC.
84584
84585 2003-04-10  Bruno Haible  <bruno@clisp.org>
84586
84587         * modules/findprog: New file.
84588         * MODULES.html.sh (func_all_modules): Add it.
84589
84590 2003-04-10  Bruno Haible  <bruno@clisp.org>
84591
84592         * m4/findprog.m4: New file.
84593         * m4/eaccess.m4: New file.
84594
84595 2003-04-10  Bruno Haible  <bruno@clisp.org>
84596
84597         * lib/findprog.h: New file, from GNU gettext.
84598         * lib/findprog.c: New file, from GNU gettext.
84599
84600 2003-04-05  Jim Meyering  <jim@meyering.net>
84601
84602         Merge changes from Coreutils.
84603
84604         * lib/exclude.h (PARAMS): Remove definition and uses.
84605         * lib/exclude.c: Remove uses of `PARAMS'.
84606
84607         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
84608         Add test-cases for DOS filenames. Declare program_name.
84609         (main): Set up program_name.  Patch by Rich Dawe.
84610
84611         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
84612         error from mntctl.
84613         Use mntctl's return value to drive the entry-processing loop, since
84614         we can't rely on the value of the vmt_length member in the last
84615         entry.  On some systems doing so could result in exhausting
84616         virtual memory.  Based in part on a patch from Mike Jetzer.
84617
84618 2003-04-04  Bruno Haible  <bruno@clisp.org>
84619
84620         * modules/linebreak: New file.
84621         * MODULES.html.sh (func_all_modules): Add it.
84622
84623 2003-04-04  Bruno Haible  <bruno@clisp.org>
84624
84625         * m4/linebreak.m4: New file.
84626
84627 2003-04-04  Bruno Haible  <bruno@clisp.org>
84628
84629         * lib/linebreak.h: New file, from GNU gettext.
84630         * lib/linebreak.c: New file, from GNU gettext with slight
84631         modifications.
84632         * lib/lbrkprop.h: New file, from GNU gettext.
84633
84634 2003-04-03  Bruno Haible  <bruno@clisp.org>
84635
84636         * modules/utf8-ucs4: New file.
84637         * modules/utf16-ucs4: New file.
84638         * modules/ucs4-utf8: New file.
84639         * modules/ucs4-utf16: New file.
84640         * MODULES.html.sh (func_all_modules): Add them.
84641
84642 2003-04-03  Bruno Haible  <bruno@clisp.org>
84643
84644         * m4/utf-ucs4.m4: New file.
84645         * m4/ucs4-utf.m4: New file.
84646
84647 2003-04-03  Bruno Haible  <bruno@clisp.org>
84648
84649         * lib/utf8-ucs4.h: New file, from GNU gettext.
84650         * lib/utf16-ucs4.h: New file, from GNU gettext.
84651         * lib/ucs4-utf8.h: New file, from GNU gettext.
84652         * lib/ucs4-utf16.h: New file, from GNU gettext.
84653
84654 2003-04-02  Bruno Haible  <bruno@clisp.org>
84655
84656         * modules/binary-io: New file.
84657         * MODULES.html.sh (func_all_modules): Add it.
84658
84659 2003-04-02  Bruno Haible  <bruno@clisp.org>
84660
84661         * lib/binary-io.h: New file, from GNU gettext.
84662
84663 2003-04-01  Bruno Haible  <bruno@clisp.org>
84664
84665         * modules/pathname: New file.
84666         * MODULES.html.sh (func_all_modules): Add it.
84667
84668 2003-04-01  Bruno Haible  <bruno@clisp.org>
84669
84670         * lib/pathname.h: New file, from GNU gettext.
84671         * lib/concatpath.c: New file, from GNU gettext.
84672
84673 2003-03-30  Bruno Haible  <bruno@clisp.org>
84674
84675         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
84676
84677 2003-03-30  Bruno Haible  <bruno@clisp.org>
84678
84679         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
84680         function chown() doesn't exist.
84681
84682 2003-03-28  Bruno Haible  <bruno@clisp.org>
84683
84684         * modules/copy-file: New file.
84685         * MODULES.html.sh (func_all_modules): Add it.
84686
84687 2003-03-28  Bruno Haible  <bruno@clisp.org>
84688
84689         * m4/copy-file.m4: New file.
84690
84691 2003-03-28  Bruno Haible  <bruno@clisp.org>
84692
84693         * lib/copy-file.h: New file, from GNU gettext.
84694         * lib/copy-file.c: New file, from GNU gettext.
84695
84696 2003-03-18  Jim Meyering  <jim@meyering.net>
84697
84698         * lib/quote.c (quote_n): Fix typo in comment.
84699
84700 2003-03-18  Bruno Haible  <bruno@clisp.org>
84701
84702         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
84703         checking.
84704         * m4/onceonly_2_57.m4: Likewise.
84705
84706 2003-03-17  Bruno Haible  <bruno@clisp.org>
84707
84708         * m4/onceonly.m4: Require autoconf 2.54 or newer.
84709         (m4_quote): Remove macro.
84710         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
84711
84712 2003-03-14  Jim Meyering  <jim@meyering.net>
84713
84714         Merge changes from Coreutils.
84715         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
84716         to be const, in order to avoid warnings.
84717         (obstack_room): Likewise.
84718         (obstack_empty_p): Likewise.
84719
84720 2003-03-14  Bruno Haible  <bruno@clisp.org>
84721
84722         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
84723         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
84724
84725 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84726
84727         Merge changes from Bison.
84728         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
84729         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
84730         when compiling Bison 1.875's `bitset bset = obstack_alloc
84731         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
84732         * lib/hash.c: Include <stdbool.h> unconditionally.
84733
84734 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84735
84736         * m4/onceonly.m4 (m4_quote): New macro.
84737         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
84738         Quote AC_FOREACH variable-expansions properly.
84739
84740 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84741
84742         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
84743
84744 2003-03-09  Paul Eggert  <eggert@twinsun.com>
84745
84746         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
84747         Reported by Bruce Becker; see:
84748         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
84749
84750 2003-03-03  Paul Eggert  <eggert@twinsun.com>
84751             Bruno Haible  <bruno@clisp.org>
84752
84753         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
84754         Reported by John Hughes, see
84755         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
84756
84757 2003-02-20  Bruno Haible  <bruno@clisp.org>
84758
84759         * MODULES.html.sh (func_all_modules): Add poll.
84760
84761 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84762
84763         * modules/poll: New file.
84764
84765 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84766
84767         * lib/poll_.h: New file.
84768         * lib/poll.c: New file.
84769
84770 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84771
84772         * m4/poll.m4: New file.
84773
84774 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84775
84776         * modules/mathl: New file.
84777
84778 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84779
84780         * lib/mathl.h: New file.
84781         * lib/acosl.c: New file.
84782         * lib/asinl.c: New file.
84783         * lib/atanl.c: New file.
84784         * lib/ceill.c: New file.
84785         * lib/cosl.c: New file.
84786         * lib/expl.c: New file.
84787         * lib/floorl.c: New file.
84788         * lib/frexpl.c: New file.
84789         * lib/ldexpl.c: New file.
84790         * lib/logl.c: New file.
84791         * lib/sincosl.c: New file.
84792         * lib/sinl.c: New file.
84793         * lib/sqrtl.c: New file.
84794         * lib/tanl.c: New file.
84795         * lib/trigl.c: New file.
84796         * lib/trigl.h: New file.
84797
84798 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84799
84800         * m4/mathl.m4: New file.
84801
84802 2003-02-18  Bruno Haible  <bruno@clisp.org>
84803
84804         * MODULES.html.sh (func_all_modules): Add mathl.
84805
84806 2003-02-17  Bruno Haible  <bruno@clisp.org>
84807
84808         * modules/mkdtemp: New module.
84809         * MODULES.html.sh (func_all_modules): Add it.
84810
84811 2003-02-17  Bruno Haible  <bruno@clisp.org>
84812
84813         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
84814
84815 2003-02-17  Bruno Haible  <bruno@clisp.org>
84816
84817         * lib/mkdtemp.h: New file, from GNU gettext.
84818         * lib/mkdtemp.c: New file, from GNU gettext.
84819
84820 2003-02-02  Jim Meyering  <jim@meyering.net>
84821
84822         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
84823         e.g. glibc-2.2.93.
84824
84825 2003-01-31  Bruno Haible  <bruno@clisp.org>
84826
84827         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
84828         'rpl_rename'.
84829         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
84830         'rpl_strnlen'.
84831         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
84832         'rpl_strtod'.
84833         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
84834         'rpl_utime'.
84835
84836 2003-01-31  Bruno Haible  <bruno@clisp.org>
84837
84838         * lib/rename.c: #undef rename before defining rpl_rename.
84839         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
84840
84841 2003-01-30  Bruno Haible  <bruno@clisp.org>
84842
84843         * modules/vasnprintf, modules/vasprintf: New modules.
84844         * MODULES.html.sh (func_all_modules): Add them.
84845
84846 2003-01-30  Bruno Haible  <bruno@clisp.org>
84847
84848         * m4/signed.m4: New file, from GNU gettext.
84849         * m4/longdouble.m4: New file, from GNU gettext.
84850         * m4/wchar_t.m4: New file, from GNU gettext.
84851         * m4/wint_t.m4: New file, from GNU gettext.
84852         * m4/vasnprintf.m4: New file.
84853         * m4/vasprintf.m4: New file.
84854
84855 2003-01-30  Bruno Haible  <bruno@clisp.org>
84856
84857         * lib/printf-args.h: New file, from GNU gettext.
84858         * lib/printf-args.c: New file, from GNU gettext.
84859         * lib/printf-parse.h: New file, from GNU gettext.
84860         * lib/printf-parse.c: New file, from GNU gettext.
84861         * lib/vasnprintf.h: New file, from GNU gettext.
84862         * lib/vasnprintf.c: New file, from GNU gettext.
84863         * lib/asnprintf.c: New file, from GNU gettext.
84864         * lib/vasprintf.h: New file, from GNU gettext with modifications.
84865         * lib/vasprintf.c: New file, from GNU gettext.
84866         * lib/asprintf.c: New file, from GNU gettext.
84867
84868 2003-01-29  Bruno Haible  <bruno@clisp.org>
84869
84870         * modules/stpncpy: New module.
84871         * MODULES.html.sh (func_all_modules): Add it.
84872
84873 2003-01-29  Bruno Haible  <bruno@clisp.org>
84874
84875         * m4/stpncpy.m4: New file.
84876
84877 2003-01-29  Bruno Haible  <bruno@clisp.org>
84878
84879         * lib/stpncpy.h: New file, from GNU gettext with modifications.
84880         * lib/stpncpy.c: New file, from GNU gettext with modifications.
84881
84882 2003-01-28  Bruno Haible  <bruno@clisp.org>
84883
84884         * modules/c-ctype: New module.
84885         * MODULES.html.sh (func_all_modules): Add it.
84886
84887 2003-01-28  Bruno Haible  <bruno@clisp.org>
84888
84889         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
84890         Paul Eggert.
84891         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
84892         Paul Eggert.
84893
84894 2003-01-27  Bruno Haible  <bruno@clisp.org>
84895
84896         * modules/xsetenv: New module.
84897         * MODULES.html.sh (func_all_modules): Add it.
84898
84899 2003-01-27  Bruno Haible  <bruno@clisp.org>
84900
84901         * lib/xsetenv.h: New file, from GNU gettext.
84902         * lib/xsetenv.c: New file, from GNU gettext.
84903
84904 2003-01-23  Jim Meyering  <jim@meyering.net>
84905
84906         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
84907         from working on systems without dirfd (at least Irix and OSF1/Tru64).
84908
84909 2003-01-23  Bruno Haible  <bruno@clisp.org>
84910
84911         * modules/minmax: New module.
84912         * MODULES.html.sh (func_all_modules): Add it.
84913
84914 2003-01-23  Bruno Haible  <bruno@clisp.org>
84915
84916         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
84917         Eggert.
84918
84919 2003-01-22  Bruno Haible  <bruno@clisp.org>
84920
84921         * modules/exit: New module.
84922         * MODULES.html.sh (func_all_modules): Add it.
84923
84924 2003-01-22  Bruno Haible  <bruno@clisp.org>
84925
84926         * lib/exit.h: New file, from GNU gettext.
84927
84928 2003-01-19  Bruno Haible  <bruno@clisp.org>
84929
84930         * gnulib-tool: Recognize option --extract-maintainer.
84931         (func_get_maintainer): New function.
84932         * modules/*: Add Maintainer entry.
84933
84934 2003-01-16  Jim Meyering  <jim@meyering.net>
84935
84936         * m4/regex.m4: The `regex' struct is both input and output.
84937         Initialize it before each use.  Patch by Tim Waugh.
84938
84939 2003-01-16  Bruno Haible  <bruno@clisp.org>
84940
84941         * MODULES.html.sh: Add a table of contents. Add the module name as
84942         leftmost column. Add hyperlinks.
84943
84944 2003-01-15  Bruno Haible  <bruno@clisp.org>
84945
84946         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
84947
84948 2003-01-15  Bruno Haible  <bruno@clisp.org>
84949
84950         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
84951         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
84952         suffix.
84953
84954 2003-01-15  Bruno Haible  <bruno@clisp.org>
84955
84956         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
84957
84958 2003-01-15  Bruno Haible  <bruno@clisp.org>
84959
84960         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
84961         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
84962
84963 2003-01-14  Jim Meyering  <jim@meyering.net>
84964
84965         * lib/same.c (same_name): Tweak a comment.
84966
84967 2003-01-14  Bruno Haible  <bruno@clisp.org>
84968
84969         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
84970         when a string comparison is sufficient.
84971
84972 2003-01-14  Bruno Haible  <bruno@clisp.org>
84973
84974         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
84975         'unsigned int'.
84976
84977 2003-01-14  Bruno Haible  <bruno@clisp.org>
84978
84979         * lib/hash-pjw.c: Add comment about low quality of this function.
84980
84981 2003-01-13  Bruno Haible  <bruno@clisp.org>
84982
84983         * modules/stpcpy: Distribute lib/stpcpy.h.
84984         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
84985
84986 2003-01-13  Bruno Haible  <bruno@clisp.org>
84987
84988         * modules/*: Add a description.
84989         * modules/strpbrk: Fix Makefile.am snippet.
84990         * modules/strtoimax: Fix dependencies.
84991         * modules/strtoumax: Likewise.
84992
84993 2003-01-13  Bruno Haible  <bruno@clisp.org>
84994
84995         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
84996         * modules/alloca (Makefile.am): All object files depend on alloca.h.
84997         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
84998
84999 2003-01-13  Bruno Haible  <bruno@clisp.org>
85000
85001         * gnulib-tool (func_create_testdir): Store config/* files in the main
85002         directory.
85003         * config.rpath: Move to ...
85004         * config/config.rpath: ... here.
85005         * modules/gettext: Contains config/config.rpath, not config.rpath.
85006         * modules/iconv: Likewise.
85007
85008 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85009
85010         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85011         to avoid collisions with libcurses and libreadline.
85012
85013         * m4/getstr.m4: Remove.
85014         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
85015
85016 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85017
85018         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85019         to avoid collisions with libcurses and libreadline.
85020
85021         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
85022         * lib/getstr.h, getstr.c: Remove.
85023         * lib/getline.c: Include "getline.h", to check interface.
85024         Move body of old getstr.c here: this defines MIN_CHUNK and
85025         declares getdelim2, which is renamed from getstr.
85026         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
85027
85028         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
85029         All uses changed.
85030         * lib/linebuffer.h: Likewise.
85031         (readline): Remove backward-compatibility macro.
85032
85033 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85034
85035         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85036         to avoid collisions with libcurses and libreadline.
85037         * getstr: Remove.
85038         * MODULES.html.sh: Remove getstr.
85039         * modules/getline: Depend on unlocked-io, not getstr.
85040
85041 2003-01-12  Jim Meyering  <jim@meyering.net>
85042
85043         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
85044
85045 2003-01-10  Bruno Haible  <bruno@clisp.org>
85046
85047         * modules/alloca: Change Makefile.am requirements. Simplify Include
85048         requirements. Add lib/alloca_.h to file list.
85049
85050 2003-01-10  Bruno Haible  <bruno@clisp.org>
85051
85052         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
85053
85054 2003-01-10  Bruno Haible  <bruno@clisp.org>
85055
85056         * lib/alloca_.h: New file.
85057         * lib/getdate.y: Unconditionally include alloca.h.
85058         * lib/makepath.c: Likewise.
85059         * lib/setenv.c: Likewise.
85060         * lib/userspec.c: Likewise.
85061
85062 2003-01-09  Karl Berry  <karl@gnu.org>
85063
85064         * MODULES.html.sh: include `dirname $0` in PATH, to find
85065         gnulib-tool.
85066
85067 2003-01-09  Bruno Haible  <bruno@clisp.org>
85068
85069         * modules/stdbool: Change configure.ac, Makefile.am requirements.
85070         Simplify Include requirements. Add lib/stdbool.h.in to file list.
85071
85072 2003-01-09  Bruno Haible  <bruno@clisp.org>
85073
85074         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
85075
85076 2003-01-09  Bruno Haible  <bruno@clisp.org>
85077
85078         * lib/stdbool.h.in: New file.
85079
85080 2003-01-09  Bruno Haible  <bruno@clisp.org>
85081
85082         * gnulib-tool (func_all_modules): Ignore files ending in ~.
85083         * MODULES.html.sh: Likewise.
85084
85085 2003-01-08  Jim Meyering  <jim@meyering.net>
85086
85087         * lib/full-write.c: Undefine and define-away `const' after inclusion
85088         of errno.h, not before.  Suggestion from Bruno Haible.
85089
85090 2003-01-08  Bruno Haible  <bruno@clisp.org>
85091
85092         * modules/full-read: Depend on full-write.
85093
85094 2003-01-08  Bruno Haible  <bruno@clisp.org>
85095
85096         * lib/safe-read.c: Include specification header first, to ensure its
85097         selfcontainedness.
85098         * lib/full-write.c: Likewise.
85099
85100 2003-01-07  Jim Meyering  <jim@meyering.net>
85101
85102         * lib/full-write.c: Rework so that it may serve to define full_read,
85103         too.
85104         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
85105
85106 2003-01-07  Bruno Haible  <bruno@clisp.org>
85107
85108         * lib/strtoimax.c: Include <stdint.h> as an alternative to
85109         <inttypes.h>.
85110         * lib/xstrtol.h: Likewise.
85111         * lib/xstrtoimax.c: Likewise.
85112         * lib/xstrtoumax.c: Likewise.
85113         * lib/human.h: Likewise.
85114
85115         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
85116         on systems that have <inttypes.h> but not <stdint.h>.
85117
85118 2003-01-07  Bruno Haible  <bruno@clisp.org>
85119
85120         * MODULES.html.sh: Add copyright notice.
85121         (missed_files): Omit CVS directory entries.
85122         (func_module): Make it work with sed-3.02.
85123         * MODULES.txt: Remove file.
85124
85125 2003-01-06  Jim Meyering  <jim@meyering.net>
85126
85127         * lib/version-etc.c: Update year in translatable copyright string.
85128
85129 2003-01-03  Karl Berry  <karl@gnu.org>
85130
85131         * config/config.{guess,sub}: update from prep.
85132
85133 2003-01-02  Karl Berry  <karl@gnu.org>
85134
85135         * doc/COPYING.DOC: belatedly updated to 1.2.
85136
85137 2003-01-01  Karl Berry  <karl@gnu.org>
85138
85139         * gnulib-tool (func_verify_module): report module name $module in
85140         error message, not $1.
85141         * gnulib-tool (create-testdir): don't complain if destdir couldn't
85142         be created, only if it doesn't exist.
85143         * gnulib-tool (last_checkin_date): don't expand the $Date here.
85144
85145 2002-12-31  Paul Eggert  <eggert@twinsun.com>
85146
85147         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
85148
85149 2002-12-31  Paul Eggert  <eggert@twinsun.com>
85150
85151         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
85152         memcmp if strcoll doesn't work.
85153
85154 2002-12-31  Bruno Haible  <bruno@clisp.org>
85155
85156         * lib/utime.c (utime_null): No need to call ftruncate if the file was
85157         nonempty.
85158
85159 2002-12-31  Bruno Haible  <bruno@clisp.org>
85160
85161         * lib/memcoll.c (STRCOLL): New macro.
85162         (memcoll): Use it.
85163
85164 2002-12-31  Bruno Haible  <bruno@clisp.org>
85165
85166         * lib/localcharset.h: New file.
85167         * lib/localcharset.c: Include it.
85168         * lib/unicodeio.c: Likewise.
85169
85170 2002-12-31  Bruno Haible  <bruno@clisp.org>
85171
85172         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
85173         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
85174
85175 2002-12-31  Bruno Haible  <bruno@clisp.org>
85176
85177         * lib/getline.h: Include <stddef.h>, for size_t.
85178
85179         * lib/unicodeio.h: Include <stddef.h>, for size_t.
85180         * lib/unicodeio.c: Don't include <stddef.h>.
85181
85182 2002-12-31  Bruno Haible  <bruno@clisp.org>
85183
85184         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
85185         HAVE_TM_ZONE.
85186
85187 2002-12-24  Karl Berry  <karl@gnu.org>
85188
85189         * config/config.guess: update from prep.
85190
85191 2002-12-24  Bruno Haible  <bruno@clisp.org>
85192
85193         General infrasructure.
85194         * m4/README: Rewritten.
85195         * m4/onceonly.m4: New file.
85196         * m4/onceonly_2_57.m4: New file.
85197
85198         Module atexit.
85199         * m4/atexit.m4: New file.
85200
85201         Module strtod.
85202         * m4/strtod.m4: New file.
85203
85204         Module strtol.
85205         * m4/strtol.m4: New file.
85206
85207         Module strtoul.
85208         * m4/strtoul.m4: New file.
85209
85210         Module memchr.
85211         * m4/memchr.m4: New file.
85212
85213         Module memcmp.
85214         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
85215         (jm_FUNC_MEMCMP): Invoke it.
85216
85217         Module memcpy.
85218         * m4/memcpy.m4: New file.
85219
85220         Module memmove.
85221         * m4/memmove.m4: New file.
85222
85223         Module memset.
85224         * m4/memset.m4: New file.
85225
85226         Module strcspn.
85227         * m4/strcspn.m4: New file.
85228
85229         Module strpbrk.
85230         * m4/strpbrk.m4: New file.
85231
85232         Module strstr.
85233         * m4/strstr.m4: New file.
85234
85235         Module strerror.
85236         * m4/strerror.m4: New file.
85237
85238         Module mktime.
85239         * m4/mktime.m4: Renamed from jm-mktime.m4.
85240         (gl_PREREQ_MKTIME): New macro.
85241         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
85242
85243         Module malloc.
85244         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
85245         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
85246         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
85247
85248         Module realloc.
85249         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
85250         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
85251         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
85252
85253         Module strftime.
85254         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
85255         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
85256         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
85257         gl_TM_GMTOFF.
85258         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
85259
85260         Module xalloc.
85261         * m4/xalloc.m4: New file.
85262
85263         Module alloca.
85264         * m4/alloca.m4: New file.
85265
85266         Module putenv.
85267         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
85268         (jm_FUNC_PUTENV): Invoke it.
85269
85270         Module setenv.
85271         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
85272         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
85273         when invoked twice.
85274         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
85275         gt_FUNC_SETENV.
85276
85277         Module memrchr.
85278         * m4/memrchr.m4: New file.
85279
85280         Module stpcpy.
85281         * m4/stpcpy.m4: New file.
85282
85283         Module strcase.
85284         * m4/strcase.m4: New file.
85285
85286         Module strdup.
85287         * m4/strdup.m4: New file.
85288
85289         Module strnlen.
85290         * m4/strnlen.m4: New file.
85291
85292         Module strndup.
85293         * m4/strndup.m4: New file.
85294
85295         Module xstrtod.
85296         * m4/xstrtod.m4: New file.
85297
85298         Module xstrtol.
85299         * m4/xstrtol.m4: New file.
85300
85301         Module getdate.
85302         * m4/getdate.m4: New file.
85303
85304         Module unlocked-io.
85305         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
85306         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
85307         * m4/jm-glibc-io.m4n: Remove file.
85308
85309         Module long-options.
85310         * m4/long-options.m4: New file.
85311
85312         Module md5.
85313         * m4/md5.m4: New file.
85314
85315         Module sha.
85316         * m4/sha.m4: New file.
85317
85318         Module getstr.
85319         * m4/getstr.m4: New file.
85320
85321         Module getline.
85322         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
85323         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
85324         <sys/types.h>, for size_t. Use the function name gnu_getline, not
85325         simply getline. Infoke gl_PREREQ_GETLINE.
85326
85327         Module obstack.
85328         * m4/obstack.m4: New file.
85329
85330         Module hash.
85331         * m4/hash.m4: New file.
85332
85333         Module readtokens.
85334         * m4/readtokens.m4: New file.
85335
85336         Module strverscmp.
85337         * m4/strverscmp.m4: New file.
85338
85339         Module stdbool.
85340         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
85341         OSF/1.
85342
85343         Module strtoll.
85344         * m4/strtoll.m4: New file.
85345
85346         Module strtoull.
85347         * m4/strtoull.m4: New file.
85348
85349         Module strtoimax.
85350         * m4/strtoimax.m4: New file.
85351
85352         Module strtoumax.
85353         * m4/strtoumax.m4: New file.
85354
85355         Module xstrtoimax.
85356         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
85357         jm_AC_PREREQ_XSTRTOIMAX.
85358         Moved the strtol prerequisites to strtol.m4.
85359         Moved the strtoll prerequisites to strtoll.m4.
85360         Moved the strtoimax prerequisites to strtoimax.m4.
85361
85362         Module xstrtoumax.
85363         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
85364         jm_AC_PREREQ_XSTRTOUMAX.
85365         Moved the strtoul prerequisites to strtoul.m4.
85366         Moved the strtoull prerequisites to strtoull.m4.
85367         Moved the strtoumax prerequisites to strtoumax.m4.
85368
85369         Module chown.
85370         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
85371         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
85372
85373         Module dup2.
85374         * m4/dup2.m4: New file.
85375
85376         Module ftruncate.
85377         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
85378         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
85379
85380         Module getgroups.
85381         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
85382         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
85383
85384         Module gettimeofday.
85385         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
85386         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
85387         gl_PREREQ_GETTIMEOFDAY.
85388
85389         Module mkdir.
85390         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
85391         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
85392
85393         Module mkstemp.
85394         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
85395         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
85396         jm_AC_TYPE_UINTMAX_T.
85397         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
85398
85399         Module stat.
85400         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
85401         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
85402
85403         Module lstat.
85404         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
85405         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
85406
85407         Module timespec.
85408         * m4/timespec.m4 (gl_TIMESPEC): New macro.
85409         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
85410         * m4/st_mtim.m4: Indentation.
85411
85412         Module nanosleep.
85413         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
85414         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
85415         gl_PREREQ_NANOSLEEP.
85416
85417         Module regex.
85418         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
85419         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
85420         (gl_REGEX): New macro.
85421
85422         Module rename.
85423         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
85424         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
85425
85426         Module rmdir.
85427         * m4/rmdir.m4: New file.
85428
85429         Module utime.
85430         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
85431         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
85432         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
85433
85434         Module dirname.
85435         * m4/dirname.m4: New file.
85436
85437         Module getopt.
85438         * m4/getopt.m4: New file.
85439
85440         Module unistd-safer.
85441         * m4/unistd-safer.m4: New file.
85442
85443         Module fnmatch.
85444         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
85445         declaration.
85446         (gl_PREREQ_FNMATCH_EXTRA): New macro.
85447         (gl_FUNC_FNMATCH_POSIX): New macro.
85448         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
85449         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
85450         simply fnmatch.
85451
85452         Module exclude.
85453         * m4/exclude.m4: New file.
85454
85455         Module human.
85456         * m4/human.m4: New file.
85457
85458         Module acl.
85459         * m4/acl.m4: Nop.
85460
85461         Module backupfile.
85462         * m4/backupfile.m4: New file.
85463         * m4/d-ino.m4: Indentation.
85464
85465         Module fsusage.
85466         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
85467         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
85468         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
85469
85470         Module dirfd.
85471         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
85472         requirements.
85473
85474         Module euidaccess.
85475         * m4/euidaccess.m4: New file.
85476
85477         Module file-type.
85478         * m4/file-type.m4: New file.
85479
85480         Module fileblocks.
85481         * m4/fileblocks.m4: New file.
85482
85483         Module filemode.
85484         * m4/filemode.m4: New file.
85485
85486         Module isdir.
85487         * m4/isdir.m4: New file.
85488
85489         Module lchown.
85490         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
85491         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
85492
85493         Module makepath.
85494         * m4/makepath.m4: New file.
85495
85496         Module modechange.
85497         * m4/modechange.m4: New file.
85498
85499         Module mountlist.
85500         * m4/mountlist.m4: New file.
85501         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
85502         Indentation.
85503
85504         Module path-concat.
85505         * m4/path-concat.m4: New file.
85506
85507         Module pathmax.
85508         * m4/pathmax.m4: New file.
85509
85510         Module same.
85511         * m4/same.m4: New file.
85512
85513         Module save-cwd.
85514         * m4/save-cwd.m4: New file.
85515
85516         Module savedir.
85517         * m4/savedir.m4: New file.
85518
85519         Module xgetcwd.
85520         * m4/xgetcwd.m4: New file.
85521         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
85522
85523         Module xreadlink.
85524         * m4/xreadlink.m4: New file.
85525
85526         Module safe-read.
85527         * m4/safe-read.m4: New file.
85528
85529         Module safe-write.
85530         * m4/safe-write.m4: New file.
85531
85532         Module closeout.
85533         * m4/closeout.m4: New file.
85534
85535         Module stdio-safer.
85536         * m4/stdio-safer.m4: New file.
85537
85538         Module getpass.
85539         * m4/getpass.m4: New file.
85540
85541         Module getugroups.
85542         * m4/getugroups.m4: New file.
85543
85544         Module group-member.
85545         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
85546         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
85547
85548         Module idcache.
85549         * m4/idcache.m4: New file.
85550
85551         Module userspec.
85552         * m4/userspec.m4: New file.
85553
85554         Module gettime.
85555         * m4/clock_time.m4: New file.
85556         * m4/gettime.m4: New file.
85557
85558         Module settime.
85559         * m4/settime.m4: New file.
85560
85561         Module posixtm.
85562         * m4/posixtm.m4: New file.
85563
85564         Module gethostname.
85565         * m4/gethostname.m4: New file.
85566
85567         Module canon-host.
85568         * m4/canon-host.m4: New file.
85569
85570         Module gettext.
85571         * m4/codeset.m4: New file, from gettext-0.11.5.
85572         * m4/gettext.m4: New file, from gettext-0.11.5.
85573         * m4/glibc21.m4: New file, from gettext-0.11.5.
85574         * m4/iconv.m4: New file, from gettext-0.11.5.
85575         * m4/intdiv0.m4: New file, from gettext-0.11.5.
85576         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
85577         * m4/inttypes.m4: New file, from gettext-0.11.5.
85578         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
85579         * m4/isc-posix.m4: New file, from gettext-0.11.5.
85580         * m4/lcmessage.m4: New file, from gettext-0.11.5.
85581         * m4/lib-ld.m4: New file, from gettext-0.11.5.
85582         * m4/lib-link.m4: New file, from gettext-0.11.5.
85583         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
85584         * m4/progtest.m4: New file, from gettext-0.11.5.
85585         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
85586         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
85587         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
85588
85589         Module localcharset.
85590         * m4/localcharset.m4: New file.
85591
85592         Module hard-locale.
85593         * m4/hard-locale.m4: New file.
85594
85595         Module mbswidth.
85596         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
85597         onceonly macros.
85598         * m4/mbrtowc.m4: Add comment.
85599
85600         Module memcasecmp.
85601         * m4/memcasecmp.m4: New file.
85602
85603         Module memcoll.
85604         * m4/memcoll.m4: New file.
85605
85606         Module unicodeio.
85607         * m4/unicodeio.m4: New file.
85608
85609         Module rpmatch.
85610         * m4/rpmatch.m4: New file.
85611
85612         Module yesno.
85613         * m4/yesno.m4: New file.
85614
85615         Module exitfail.
85616         * m4/exitfail.m4: New file.
85617
85618         Module c-stack.
85619         * m4/c-stack.m4 (gl_C_STACK): New macro.
85620         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
85621
85622         Module error.
85623         * m4/error.m4 (gl_ERROR): New macro.
85624         (jm_PREREQ_ERROR): Use onceonly macros.
85625
85626         Module fatal.
85627         * m4/fatal.m4: New file.
85628
85629         Module getloadavg.
85630         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
85631         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
85632
85633         Module getpagesize.
85634         * m4/getpagesize.m4: New file.
85635
85636         Module getusershell.
85637         * m4/getusershell.m4: New file.
85638
85639         Module physmem.
85640         * m4/physmem.m4: New file.
85641
85642         Module posixver.
85643         * m4/posixver.m4: New file.
85644
85645         Module quotearg.
85646         * m4/quotearg.m4: New file.
85647
85648         Module quote.
85649         * m4/quote.m4: New file.
85650
85651         Module readutmp.
85652         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
85653
85654         Module sig2str.
85655         * m4/sig2str.m4: New file.
85656
85657         Other.
85658         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
85659         ulonglong.m4.
85660         * m4/intmax_t.m4: New file.
85661         * m4/d-type.m4: Indentation.
85662         * m4/jm-macros.m4: Update.
85663         * m4/prereq.m4 (jm_PREREQ): Update.
85664         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
85665         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
85666         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
85667         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
85668         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
85669         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
85670         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
85671         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
85672         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
85673         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
85674         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
85675         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
85676         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
85677         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
85678         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
85679         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
85680         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
85681         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
85682         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
85683
85684 2002-12-24  Bruno Haible  <bruno@clisp.org>
85685
85686         * MODULES.txt: Update according to m4/ changes.
85687
85688         Module gettext.
85689         * config.rpath: New file, from gettext-0.11.5.
85690
85691         * modules/*: New module descriptions.
85692         * gnulib-tool: New file.
85693         * MODULES.html.sh: New file.
85694
85695 2002-12-21  Karl Berry  <karl@gnu.org>
85696
85697         * doc/fdl.texi: update to version 1.2.
85698
85699 2002-12-19  Karl Berry  <karl@gnu.org>
85700
85701         * config/config.guess: update from prep.
85702
85703 2002-12-18  Bruno Haible  <bruno@clisp.org>
85704
85705         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
85706         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
85707
85708 2002-12-17  Bruno Haible  <bruno@clisp.org>
85709
85710         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
85711         stdlib.h, string.h.
85712
85713 2002-12-17  Bruno Haible  <bruno@clisp.org>
85714
85715         * lib/canon-host.c (strdup): Remove unused declaration.
85716
85717         * lib/fsusage.c: Include full_read.h.
85718         (get_fs_usage): Use full_read instead of safe_read.
85719
85720         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
85721
85722 2002-12-12  Karl Berry  <karl@gnu.org>
85723
85724         * config/config.guess: update from prep.
85725
85726 2002-12-11  Bruno Haible  <bruno@clisp.org>
85727
85728         * m4/setenv.m4: New file, from gettext-0.11.5.
85729
85730 2002-12-11  Bruno Haible  <bruno@clisp.org>
85731
85732         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
85733         not unsetenv().
85734         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
85735         modifications:
85736
85737         2002-12-11  Bruno Haible  <bruno@clisp.org>
85738
85739                 * setenv.c (alloca): Fall back to malloc.
85740                 (freea): New macro.
85741                 (setenv): Use freea() to free memory allocated with alloca().
85742
85743         2002-11-13  Bruno Haible  <bruno@clisp.org>
85744
85745                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
85746                 function declarations.
85747                 * unsetenv.c (unsetenv): Likewise.
85748
85749         2002-03-04  Bruno Haible  <bruno@clisp.org>
85750
85751                 Portability to AIX 4.3.3.
85752                 * unsetenv.c: New file, extracted from setenv.c.
85753                 * setenv.c: Move the unsetenv() function to unsetenv.c.
85754
85755         2001-12-20  Bruno Haible  <bruno@clisp.org>
85756
85757                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
85758                 use malloc instead. For SunOS 4.
85759
85760         2001-12-11  Bruno Haible  <bruno@clisp.org>
85761
85762                 * setenv.c: Declare alloca.
85763                 (compar_fn_t): New typedef.
85764                 (KNOWN_VALUE, STORE_VALUE): Use it.
85765
85766         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
85767         setenv.h.
85768
85769 2002-12-10  Paul Eggert  <eggert@twinsun.com>
85770
85771         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
85772         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
85773         Choose values that are less likely to collide with system fnmatch
85774         options.
85775         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
85776         defined (e.g., a pure POSIX system).
85777         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
85778         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
85779
85780 2002-12-06  Paul Eggert  <eggert@twinsun.com>
85781
85782         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
85783         a pain in practice to deal with generated m4 files.  This change
85784         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
85785
85786         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
85787         and jm-glibc-io.m4, as they are no longer a special case.
85788         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
85789         kludge and the auto-generation stuff.  Check only whether the
85790         functions are declared, not whether they exist, since older hosts
85791         that don't declare the functions can't use the optimization anyway.
85792
85793 2002-12-06  Jim Meyering  <jim@meyering.net>
85794
85795         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
85796
85797         Merge in changes from libc's misc/error.c, in preparation
85798         for the merge of gnulib's changes back into libc.
85799
85800         * lib/error.c (_): Define only if not already defined.
85801         Move definition to follow all #include directives.
85802         Include unlocked-io.h only if !_LIBC.
85803         [_LIBC]: Include <libio/libioP.h>.
85804         [USE_IN_LIBIO]: Include <libio/iolibio.h>
85805         (fflush): Tweak definition to use INTUSE.
85806         (putc): Define.
85807
85808 2002-12-05  Paul Eggert  <eggert@twinsun.com>
85809
85810         * lib/alloca.c [defined emacs]: Include "lisp.h".
85811         (xalloc_die) [defined emacs]: New macro.
85812         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
85813         [! defined emacs]: Include <xalloc.h>.
85814         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
85815         (pointer): Typedef to POINTER_TYPE *.
85816         (malloc): Remove decl; we now always use xmalloc.
85817         (alloca): Use old-style definition, since Emacs needs this.
85818         Check for arithmetic overflow when computing combined size.
85819
85820 2002-12-04  Paul Eggert  <eggert@twinsun.com>
85821
85822         Do not generate unlocked-io.h automatically, since it's easier to
85823         maintain it by hand.
85824
85825         * lib/unlocked-io.h: New file, from GNU diffutils,
85826         but with proper copyright notice and attribution.
85827         * lib/gen-uio: Remove.
85828         * lib/Makefile.am: Add copyright notice.
85829         (libfetish_a_SOURCES): Add unlocked-io.h.
85830         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
85831         (DISTCLEANFILES, io_functions): Remove macros.
85832         (EXTRA_DIST): Remove gen_uio.
85833         (unlocked-io.h): Remove rule.
85834
85835 2002-12-04  Jim Meyering  <jim@meyering.net>
85836
85837         Reflect the fact that stat.c and lstat.c are no longer generated.
85838         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
85839         (DISTCLEANFILES): Likewise.
85840         (EXTRA_DIST): Likewise.
85841         (all_local): Don't depend on stat.c or lstat.c.
85842         (stat.c, lstat.c): Remove rules.
85843         (EXTRA_DIST): Remove xstat.in.
85844
85845         * lib/xstat.in: Remove file.  Contents moved into stat.c.
85846         * lib/stat.c: New file.  Contents mostly from xstat.in.
85847         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
85848         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
85849
85850         * lib/safe-read.c: Rework so that it may serve to define safe_write,
85851         too.
85852         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
85853
85854 2002-12-03  Jim Meyering  <jim@meyering.net>
85855
85856         * lib/safe-read.c, safe-write.c: Change variable names and comments,
85857         but not semantics, to minimize the differences between these two files.
85858         (safe_read): Change comment to mention SAFE_READ_ERROR.
85859
85860         * lib/safe-read.c (IS_EINTR): Define.
85861         (safe_read): Use IS_EINTR in place of in-function cpp directives.
85862
85863 2002-12-02  Jim Meyering  <jim@meyering.net>
85864
85865         * lib/safe-read.c (EINTR): Define.
85866         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
85867         (INT_MAX): Provide fallback.
85868         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
85869
85870         * lib/safe-read.h (SAFE_READ_ERROR): Define.
85871
85872 2002-12-02  Bruno Haible  <bruno@clisp.org>
85873
85874         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
85875         Define, taken from safe-read.c.
85876         (INT_MAX): Provide fallback.
85877         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
85878         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
85879
85880         * lib/safe-read.c (EINTR): Remove definition.
85881         (safe_read): Don't use EINTR if it is absent.
85882
85883 2002-12-01  Jim Meyering  <jim@meyering.net>
85884
85885         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
85886         zero.
85887         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
85888
85889 2002-11-27  Paul Eggert  <eggert@twinsun.com>
85890
85891         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
85892         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
85893         with `if (! (value < limit)) abort ();', for readability.
85894
85895 2002-11-26  Karl Berry  <karl@gnu.org>
85896
85897         * lib/strdup.c: copy from libc again, with jim's ok.
85898         * lib/.cppi-disable: re-add strdup.c
85899
85900 2002-11-25  Karl Berry  <karl@gnu.org>
85901
85902         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
85903         instead of "strtol.c".
85904
85905 2002-11-25  Karl Berry  <karl@gnu.org>
85906
85907         * config/install-sh: update from automake for variable quoting, $0 in
85908         error msgs, etc.
85909
85910         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
85911         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
85912         entry.
85913
85914 2002-11-25  Jim Meyering  <jim@meyering.net>
85915
85916         * lib/mktime.c: Sync from libc, now that it has the latest fix.
85917
85918 2002-11-24  Karl Berry  <karl@gnu.org>
85919
85920         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
85921         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
85922
85923 2002-11-24  Jim Meyering  <jim@meyering.net>
85924
85925         Update from coreutils:
85926
85927         * lib/mktime.c: Merge in changes from libc.
85928
85929         Avoid a link-time failure on some Linux systems.
85930         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
85931         (otherwise).
85932         (__mon_yday): Declare with the STATIC attribute.
85933         (__mktime_internal): Likewise.
85934         Based on a report from Greg Schafer.
85935
85936 2002-11-23  Jim Meyering  <jim@meyering.net>
85937
85938         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
85939         Use `unsigned', not `int', as type of index.
85940
85941         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
85942
85943         * lib/fsusage.c: Remove unneeded parentheses around operands of
85944         `defined'.
85945
85946 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85947
85948         * lib/quotearg.h: Allow multiple inclusion by surrounding with
85949         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
85950         so that we can be included first.
85951         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
85952         * lib/quotearg.c: Include quotearg.h immediately after config.h.
85953         No need to include stddef.h or sys/types.h any more.
85954         Surround local include files with "", not "<>".
85955         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
85956         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
85957         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
85958         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
85959         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
85960         (ISPRINT): Remove; no longer needed now that we assume C89.
85961
85962         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
85963         Preserve errno.
85964
85965         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
85966         quotearg_char): Use SIZE_MAX rather than
85967         (size_t) -1 when we are talking about "infinity".
85968
85969         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
85970
85971 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85972
85973         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
85974         hint that one should use `if (! x) abort ();' rather than `assert
85975         (x);', and anyway it's one less thing to worry about configuring.
85976         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
85977         hash_rehash, hash_insert): Use abort rather than assert.
85978
85979 2002-11-22  Bruno Haible  <bruno@clisp.org>
85980
85981         * lib/safe-read.h: Assume C89. Add comments.
85982         (safe_read): Change return type to size_t.
85983         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
85984         byte counts > SSIZE_MAX correctly.
85985         * lib/safe-write.h: New file.
85986         * lib/safe-write.c: New file.
85987         * lib/full-read.h: New file.
85988         * lib/full-read.c: New file.
85989         * lib/full-write.h: Assume C89. Add comments.
85990         * lib/full-write.c: Include safe-write.h.
85991         (full_write): Rewritten to use safe_write.
85992         Suggested by Jim Meyering and Paul Eggert.
85993
85994 2002-11-21  Jim Meyering  <jim@meyering.net>
85995
85996         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
85997
85998         Merge in changes from the coreutils.
85999
86000         2002-09-25  Paul Eggert  <eggert@twinsun.com>
86001         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
86002         <stdint.h>.
86003         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
86004         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
86005         int.  Work more efficiently if X is the same width as uintmax_t.
86006         Do not compare X to -1, to avoid bogus compiler warning.
86007         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
86008         Don't assume that f_frsize and f_bsize are the same type.
86009
86010         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
86011         warning on FreeBSD.
86012
86013         * lib/makepath.c (make_path): Restore umask *before* creating the final
86014         component.
86015         (make_path): Minor reformatting.
86016
86017         * lib/xmalloc.c: Adjust to work with new autoconf macros,
86018         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
86019         HAVE_MALLOC/HAVE_REALLOC.
86020
86021         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
86022         dummy ones.  At least on GNU/Linux systems, `auto' means something
86023         else.
86024         From Michael Stone.
86025
86026 2002-11-21  Bruno Haible  <bruno@clisp.org>
86027
86028         Remove case insensitive option matching.
86029         * lib/argmatch.h (argcasematch): Remove declaration.
86030         (ARGCASEMATCH): Remove macro.
86031         (__xargmatch_internal): Remove case_sensitive argument.
86032         (XARGMATCH): Update.
86033         (XARGCASEMATCH): Remove macro.
86034         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
86035         case_sensitive argument.
86036         (argcasematch): Remove function.
86037         (__xargmatch_internal): Remove case_sensitive argument.
86038         (main): Use XARGMATCH instead of XARGCASEMATCH.
86039
86040         * lib/xmalloc.c: Change compile-time error message. Add comment about
86041         required autoconf version.
86042
86043 2002-11-20  Paul Eggert  <eggert@twinsun.com>
86044
86045         Merge argmatch cleanups from Bison.  Assume C89.
86046
86047         * lib/argmatch.c: Include config.h here, not in argmatch.h.
86048         Include stdlib.h, for EXIT_FAILURE.
86049         Always include <string.h>, since we assume C89.
86050         (EXIT_FAILURE): Remove pre-C89 bug workaround.
86051         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
86052         Include <stddef.h> instead, since it's all we need for size_t.
86053         (PARAMS): Remove.  All uses removed.
86054         (ARRAY_CARDINALITY): Do not bother to #undef.
86055         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
86056         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
86057         Remove unnecessary parentheses.
86058         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
86059         Insert necessary parentheses.
86060         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
86061         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
86062
86063 2002-11-19  Bruno Haible  <bruno@clisp.org>
86064
86065         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
86066         * lib/mbswidth.h: Include <stddef.h>, for size_t.
86067
86068         * lib/mbswidth.h (PARAMS): Remove macro.
86069         (mbswidth, mbsnwidth): Use ANSI C function declarations.
86070         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
86071
86072         * lib/gcd.h (PARAMS): Remove macro.
86073         (gcd): Use ANSI C function declarations.
86074         * lib/gcd.c (gcd): Likewise.
86075
86076 2002-11-15  Bruno Haible  <bruno@clisp.org>
86077
86078         * lib/strcspn.c: Include <stddef.h>.
86079         (strcspn): Use ANSI C function declaration. Change return type to
86080         size_t. Use NULL.
86081         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
86082         (strpbrk): Use NULL.
86083         * lib/strpbrk.h (PARAMS): Remove macro.
86084         (strpbrk): Use ANSI C function declaration.
86085         * lib/strstr.c: Don't include <sys/types.h>.
86086         * lib/strstr.h (PARAMS): Remove macro.
86087         (strstr): Use ANSI C function declarations.
86088
86089 2002-11-14  Karl Berry  <karl@gnu.org>
86090
86091         * config/mkinstalldirs: `do' on separate line, instead of
86092         `for var; do'.
86093
86094 2002-11-06  Bruno Haible  <bruno@clisp.org>
86095
86096         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
86097         * lib/gcd.c (gcd): Likewise.
86098
86099 2002-11-05  Bruno Haible  <bruno@clisp.org>
86100
86101         * lib/gcd.h: New file, from gettext-0.11.5.
86102         * lib/gcd.c: New file, from gettext-0.11.5.
86103
86104 2002-11-05  Bruno Haible  <bruno@clisp.org>
86105
86106         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86107         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86108         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86109         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86110
86111         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
86112         <libintl.h>.
86113         * lib/makepath.c: Include gettext.h instead of <locale.h> and
86114         <libintl.h>.
86115
86116         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
86117         * lib/human.c: Include gettext.h instead of <libintl.h>.
86118         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
86119         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
86120         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
86121         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
86122         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
86123         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
86124         (textdomain): Remove definition.
86125         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
86126
86127         * lib/long-options.c: Remove include of <libintl.h> and definition of
86128         _.
86129         * lib/same.c: Remove include of <libintl.h> and definition of _.
86130
86131 2002-11-04  Owen Taylor  <otaylor@redhat.com>
86132
86133         * lib/config.charset: A few additions for Solaris.
86134
86135 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
86136
86137         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
86138         * lib/localcharset.c (locale_charset): Declare as extern "C".
86139
86140 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
86141
86142         * lib/config.charset: msdos in uk_UA uses CP1125.
86143
86144 2002-11-04  Bruno Haible  <bruno@clisp.org>
86145
86146         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
86147         * lib/strcase.h: New file, from GNU gettext-0.11.5.
86148         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
86149         * lib/strstr.h: New file, from GNU gettext-0.11.5.
86150         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
86151
86152 2002-11-04  Bruno Haible  <bruno@clisp.org>
86153
86154         * lib/localcharset.c (locale_charset): Don't return an empty string.
86155
86156 2002-11-04  Bruno Haible  <bruno@clisp.org>
86157
86158         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
86159         aliases.
86160
86161 2002-11-04  Bruno Haible  <bruno@clisp.org>
86162
86163         * lib/config.charset: Update for newest glibc. Add canonical names
86164         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
86165
86166 2002-11-04  Bruno Haible  <bruno@clisp.org>
86167
86168         * lib/config.charset: Add support for NetBSD.
86169
86170 2002-11-04  Bruno Haible  <bruno@clisp.org>
86171
86172         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
86173
86174 2002-11-01  Bruno Haible  <bruno@clisp.org>
86175
86176         * configure.in: Add AC_CONFIG_AUX_DIR call.
86177         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
86178         test/Makefile.
86179         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
86180
86181 2002-09-28  Karl Berry  <karl@gnu.org>
86182
86183         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
86184         installed automake until the next release, since changes have been
86185         made.
86186
86187 2002-09-25  Karl Berry  <karl@gnu.org>
86188
86189         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
86190         * lib/getopt*: copy from libc/posix.
86191         * lib/gettext.h: copy from gettext.
86192         * lib/.cppi-disable: add strdup.c, gettext.h.
86193
86194 2002-09-25  Karl Berry  <karl@gnu.org>
86195
86196         * config/srclist.txt: enable gettext.h check.
86197         * config/config.{guess,sub}: update from prep.
86198         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
86199                 from automake 1.6.3.
86200         See srclist*.
86201
86202 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
86203
86204         * regex.c (PATFETCH): Remove the translating fetch.
86205         (PATFETCH_RAW): Rename to PATFETCH.
86206         (set_image_of_range): New fun.
86207         (SET_RANGE_TABLE_WORK_AREA): Use it.
86208         (regex_compile): Don't translate the pattern chars so eagerly.
86209         Only do it when inserting an `exactn' bytecode or when handling
86210         a char-range.
86211         (mutually_exclusive_p): Avoid empty statement.
86212
86213 2002-07-06  Jim Meyering  <meyering@lucent.com>
86214
86215         * m4/README: Don't mention Makefile.am.in.
86216         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
86217
86218 2002-07-01  Jim Meyering  <meyering@lucent.com>
86219
86220         * lib/c-stack.c: Include sys/time.h.
86221         From Volker Borchert.
86222
86223 2002-06-26  Paul Eggert  <eggert@twinsun.com>
86224
86225         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
86226
86227 2002-06-26  Paul Eggert  <eggert@twinsun.com>
86228
86229         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
86230         New macro.  Use it uniformly instead of
86231         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
86232         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
86233         reported by Vin Shelton.
86234
86235 2002-06-22  Paul Eggert  <eggert@twinsun.com>
86236
86237         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
86238         Do not assume SA_SIGINFO behavior.
86239         Bug reported by Jim Meyering on NetBSD 1.5.2.
86240
86241 2002-06-22  Jim Meyering  <meyering@lucent.com>
86242
86243         * m4/c-stack.m4: New file, from diffutils-2.8.2.
86244         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
86245
86246         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
86247         now that configure.ac uses AC_GNU_SOURCE.
86248         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
86249         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
86250
86251         Update to latest tools.  Suggestions from Paul Eggert.
86252         * m4/stdbool.m4: New file, from diffutils-2.8.2.
86253         * m4/gnu-source.m4: Update from diffutils-2.8.2.
86254         * m4/fnmatch.m4: Likewise.
86255         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
86256         to AC_HEADER_STDBOOL
86257
86258 2002-06-22  Jim Meyering  <meyering@lucent.com>
86259
86260         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
86261         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
86262
86263 2002-06-22  Jim Meyering  <meyering@lucent.com>
86264
86265         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
86266
86267         * lib/exitfail.c, exitfail.h: Likewise.
86268         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
86269
86270         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
86271         of fnmatch.h.
86272         (EXTRA_DIST): Add fnmatch_loop.c.
86273         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
86274
86275         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
86276         * lib/fnmatch.c: Update from diffutils-2.8.2.
86277         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
86278         * lib/fnmatch.h: Remove file.
86279
86280 2002-06-21  Jim Meyering  <meyering@lucent.com>
86281
86282         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
86283         * m4/mbrtowc.m4: Likewise.
86284
86285         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
86286         * m4/mbswidth.m4: Reflect name change:
86287         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
86288         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
86289
86290         * m4/lib-link.m4: Update from gettext-0.11.2.
86291         * m4/gettext.m4: Likewise.
86292
86293         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
86294         From Alfred M. Szmidt.
86295
86296 2002-06-18  Paul Eggert  <eggert@twinsun.com>
86297
86298         * lib/file-type.h: Report an error if neither S_ISREG nor
86299         S_IFREG is defined, instead of using a test specific to glibc
86300         2.2.  This should be safe, since POSIX requires S_ISREG and
86301         Unix Version 7 had S_IFREG.  We don't need to check for
86302         <sys/types.h> since we don't use any symbols that it defines.
86303
86304 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
86305
86306         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
86307         $@-t, so that each temporary file name is unique and valid in the first
86308         8 characters, for operation under DOS.
86309
86310 2002-06-15  Paul Eggert  <eggert@twinsun.com>
86311
86312         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
86313
86314 2002-06-15  Jim Meyering  <meyering@lucent.com>
86315
86316         Work even with DJGPP 2.03, which lacks support for symlinks.
86317         From Richard Dawe.
86318         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
86319         is defined.
86320         * lib/lchown.c (S_ISLNK): Likewise.
86321
86322 2002-06-15  Jim Meyering  <meyering@lucent.com>
86323
86324         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
86325         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
86326         have been included before this file.
86327
86328 2002-06-14  Jim Meyering  <meyering@lucent.com>
86329
86330         * lib/file-type.h: Use the version from diffutils-2.8.2.
86331         * lib/file-type.c: Likewise.
86332
86333 2002-06-07  Jim Meyering  <meyering@lucent.com>
86334
86335         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
86336         They're needed at least for NetBSD 1.5.2.
86337         ($statxfs_includes): Include those same headers.
86338         ($statxfs_includes): Include sys/vfs.h if available.
86339         ($statxfs_includes): Likewise for sys/statvfs.h.
86340         Check for the following members in both structs statfs and statvfs:
86341         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
86342
86343 2002-06-01  Jim Meyering  <meyering@lucent.com>
86344
86345         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
86346         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
86347
86348 2002-05-28  Jim Meyering  <meyering@lucent.com>
86349
86350         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
86351         Reported by Volker Borchert.
86352
86353 2002-05-27  Jim Meyering  <meyering@lucent.com>
86354
86355         Fix a problem seen only on nonconforming systems whereby ls.c's
86356         use of localtime, and then of gettimeofday would cause trouble:
86357         the localtime call used to initialize rpl_gettimeofday's save
86358         mechanism would clobber ls's current local time information so
86359         that in any long listing the first file would always be listed
86360         with date 1970-01-01.  Analysis by Volker Borchert.
86361
86362         * lib/gettimeofday.c (localtime): Undefine.
86363         (rpl_localtime): New function.
86364
86365 2002-05-27  Jim Meyering  <meyering@lucent.com>
86366
86367         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
86368         localtime.
86369
86370         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
86371         use the replacement function; it wouldn't resolve at link time.
86372         Reported by Volker Borchert.
86373
86374 2002-05-22  Jim Meyering  <meyering@lucent.com>
86375
86376         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
86377         file-type.h.
86378         * lib/file-type.h: New file.
86379         * lib/file-type.c (file_type): New file/function.  Extracted from
86380         diffutils.
86381
86382 2002-04-30  Jim Meyering  <meyering@lucent.com>
86383
86384         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
86385
86386 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86387
86388         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
86389
86390 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86391
86392         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
86393         Do not check for alloca.h (no longer used) or stdbool.h (was never
86394         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
86395
86396 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86397
86398         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
86399
86400 2002-04-29  Jim Meyering  <meyering@lucent.com>
86401
86402         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
86403         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
86404         Use AC_FUNC_STRNLEN here instead.
86405
86406         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
86407         With autoconf-2.53a, it's part of AC_PROG_CC.
86408
86409 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86410
86411         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
86412         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
86413
86414 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86415
86416         * lib/sig2str.h, lib/sig2str.c: New files.
86417         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
86418
86419 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86420
86421         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
86422         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
86423         of 127, since 64 is the largest conceivable number for ancient
86424         nonstandard hosts.
86425         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
86426
86427 2002-04-28  Jim Meyering  <meyering@lucent.com>
86428
86429         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
86430
86431 2002-04-24  Jim Meyering  <meyering@lucent.com>
86432
86433         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
86434         (jm_PREREQ): Use it.
86435
86436         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
86437         mach/mach.h fcntl.h.
86438         Check for this function: setlocale.
86439
86440 2002-04-24  Jim Meyering  <meyering@lucent.com>
86441
86442         * lib/gettext.h: New file, from Gettext.
86443         * lib/Makefile.am (INCLUDES): Remove -I../intl.
86444         (libfetish_a_SOURCES): Add gettext.h.
86445
86446 2002-04-16  Jim Meyering  <meyering@lucent.com>
86447
86448         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
86449         ut_pid, ut_id, ut_exit.
86450
86451 2002-04-16  Jim Meyering  <meyering@lucent.com>
86452
86453         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
86454         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
86455         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
86456
86457 2002-04-12  Jim Meyering  <meyering@lucent.com>
86458
86459         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
86460         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
86461         existence of the getmntinfo function.  Needed for Darwin 5.3.
86462
86463         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
86464         This is necessary at least on Darwin 5.3.
86465
86466         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
86467         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
86468         strnlen.o in the library, and that makes some versions of ranlib
86469         object.
86470
86471 2002-04-12  Jim Meyering  <meyering@lucent.com>
86472
86473         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
86474
86475 2002-04-09  Jim Meyering  <meyering@lucent.com>
86476
86477         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
86478         to be more precise.  Rather than saying we're checking whether the
86479         function `works', say what we're testing.
86480         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
86481         Reported by Bruno Haible.
86482
86483 2002-03-10  Jim Meyering  <meyering@lucent.com>
86484
86485         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
86486         Suggestion from Santiago Vila.
86487
86488 2002-03-08  Jim Meyering  <meyering@lucent.com>
86489
86490         * lib/rename.c: Mention that this wrapper is needed also on
86491         mips-dec-ultrix4.4 systems.
86492
86493 2002-03-02  Jim Meyering  <meyering@lucent.com>
86494
86495         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
86496         not HAVE_CLOCK_SETTIME.
86497
86498 2002-02-27  Paul Eggert  <eggert@twinsun.com>
86499
86500         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
86501         Check for clock_settime.
86502
86503 2002-02-27  Paul Eggert  <eggert@twinsun.com>
86504
86505         * lib/nanosleep.h: Rename to....
86506         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
86507
86508         * lib/gettime.c: New file.
86509         * lib/settime.c: New file.
86510         * lib/stime.c: Remove.
86511
86512         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
86513         timespec.h.  Remove nanosleep.h.
86514
86515 2002-02-25  Paul Eggert  <eggert@twinsun.com>
86516
86517         * m4/acl.m4: New file.
86518         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
86519         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
86520
86521 2002-02-25  Paul Eggert  <eggert@twinsun.com>
86522
86523         * lib/acl.c, lib/acl.h: New files.
86524         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
86525
86526 2002-02-24  Jim Meyering  <meyering@lucent.com>
86527
86528         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
86529         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
86530         cause trouble.  Reported by Nelson Beebe.
86531
86532 2002-02-23  Paul Eggert  <eggert@twinsun.com>
86533
86534         * lib/path-concat.c (xpath_concat): Reorder code to pacify
86535         compilers that don't know that xalloc_die never returns.
86536
86537 2002-02-20  Jim Meyering  <meyering@lucent.com>
86538
86539         * lib/getdate.c: Regenerate using bison-1.33.
86540
86541 2002-02-17  Jim Meyering  <meyering@lucent.com>
86542
86543         * config/config.guess (main): Don't use `head -1'; it's no longer
86544         portable. Use `sed 1q' instead.
86545
86546 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
86547
86548         * m4/codeset.m4: Upgrade to gettext-0.11.
86549         * m4/gettext.m4: Upgrade to gettext-0.11.
86550         * m4/glibc21.m4: Upgrade to gettext-0.11.
86551         * m4/iconv.m4: Upgrade to gettext-0.11.
86552         * m4/isc-posix.m4: Upgrade to gettext-0.11.
86553         * m4/lcmessage.m4: Upgrade to gettext-0.11.
86554         * m4/lib-ld.m4: New file, from gettext-0.11.
86555         * m4/lib-link.m4: New file, from gettext-0.11.
86556         * m4/lib-prefix.m4: New file, from gettext-0.11.
86557         * m4/progtest.m4: Upgrade to gettext-0.11.
86558
86559 2002-02-15  Paul Eggert  <eggert@twinsun.com>
86560
86561         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
86562         (jm_PREREQ): Use it.
86563
86564 2002-02-15  Paul Eggert  <eggert@twinsun.com>
86565
86566         * lib/posixver.c, lib/posixver.h: New files.
86567         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
86568
86569 2002-02-02  Paul Eggert  <eggert@twinsun.com>
86570             Bruno Haible  <bruno@clisp.org>
86571
86572         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
86573         (fwrite_success_callback): New declaration.
86574         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
86575         print_unicode_char. Call failure callback instead of error.
86576         (fwrite_success_callback): New function.
86577         (exit_failure_callback): New function.
86578         (fallback_failure_callback): New function.
86579         (print_unicode_char): Call unicode_to_mb.
86580
86581 2002-01-26  Jim Meyering  <meyering@lucent.com>
86582
86583         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
86584         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
86585
86586 2002-01-26  Jim Meyering  <meyering@lucent.com>
86587
86588         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
86589
86590 2002-01-22  Paul Eggert  <eggert@twinsun.com>
86591
86592         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
86593
86594 2002-01-22  Jim Meyering  <meyering@lucent.com>
86595
86596         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
86597         Otherwise, some versions of automake would omit the rule that makes
86598         Makefile from Makefile.in.
86599
86600 2002-01-21  Paul Eggert  <eggert@twinsun.com>
86601
86602         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
86603         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
86604         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
86605         (memcoll): Set errno to zero if there is no error.
86606
86607         * lib/quotearg.c (quotearg_buffer_restyled):
86608         Fix bug with quoting buffers containing NUL when backslashing escapes.
86609         This bug was exposed by the other changes in this patch.
86610         (quotearg_n_options): New arg ARGSIZE.
86611         All callers changed.
86612         (quoting_options_from_style): New function.
86613         (quotearg_n_style): Use it.
86614         (quotearg_n_style_mem): New function.
86615
86616         * lib/quotearg.h (quotearg_n_style_mem): New function.
86617
86618 2002-01-19  Jim Meyering  <meyering@lucent.com>
86619
86620         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
86621         Remove useless quotes: DF_PROG="df".
86622         * m4/strnlen.m4: New file.
86623
86624 2002-01-16  Paul Eggert  <eggert@twinsun.com>
86625
86626         * lib/backupfile.c (ISDIGIT): Comment fix.
86627         * lib/getdate.y (ISDIGIT): Likewise.
86628         * lib/posixtm.c (ISDIGIT, year): Likewise.
86629         * lib/strverscmp.c (ISDIGIT): Likewise.
86630         * lib/userspec.c (ISDIGIT): Likewise.
86631
86632 2002-01-16  Jim Meyering  <meyering@lucent.com>
86633
86634         * lib/getdate.y: Add three semicolons, each just before a closing
86635         brace. Bison (as of version 1.31) no longer papers over that mistake.
86636
86637 2002-01-05  Jim Meyering  <meyering@lucent.com>
86638
86639         * lib/version-etc.c (version_etc_copyright): Update copyright year.
86640
86641 2001-12-19  Paul Eggert  <eggert@twinsun.com>
86642
86643         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
86644         not silently exit merely because the output buffer happens to
86645         have nothing pending.
86646
86647 2001-12-18  Paul Eggert  <eggert@twinsun.com>
86648
86649         See the big note in ../ChangeLog.
86650         * lib/human.c (suffixes): Prefer K to k for 1024.
86651         (generate_suffix_backwards): New function.
86652         (human_readable_inexact): Use it.
86653         * lib/xstrtol.c (__xstrtol): If there is no number but there
86654         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
86655         Accept 'K' as well as 'k'.
86656
86657 2001-12-15  Jim Meyering  <meyering@lucent.com>
86658
86659         * lib/regex.h (__restrict_arr): Update from libc.
86660
86661         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
86662         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
86663         (STREQ): Define.
86664
86665 2001-12-14  Jim Meyering  <meyering@lucent.com>
86666
86667         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
86668         Suggestion from Bruno Haible.
86669
86670 2001-12-10  Jim Meyering  <meyering@lucent.com>
86671
86672         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
86673         xrealloc, Instead, include "xalloc.h".
86674         (initbuffer): Don't cast xmalloc return value to char*.
86675         (readline): Reword comment.
86676         Don't cast xrealloc return value to char*
86677         Return NULL, not 0.
86678
86679 2001-12-09  Jim Meyering  <meyering@lucent.com>
86680
86681         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
86682         about `signed and unsigned type in conditional expression'.
86683         * lib/posixtm.c (posix_time_parse): Likewise.
86684
86685         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
86686
86687         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
86688         to avoid a pedantic warning.
86689
86690         * lib/getstr.c: Don't include assert.h.
86691         (getstr): Remove warning-evoking assertions.
86692         Return -1 if offset parameter is out of bounds.
86693         Change the type of a local from int to size_t.
86694
86695         * lib/strftime.c (my_strftime_localtime_r): Include this function
86696         definition in the `#if ! HAVE_TM_GMTOFF' block.
86697
86698         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
86699         Include xalloc.h instead.
86700
86701 2001-12-02  Jim Meyering  <meyering@lucent.com>
86702
86703         * lib/tempname.c: Don't declare getenv, thus reverting the change of
86704         2001-11-18.  It's no longer necessary, now that stdlib.h is always
86705         included.
86706
86707         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
86708         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
86709
86710 2001-11-30  Akim Demaille  <akim@epita.fr>
86711
86712         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
86713         before being defined.
86714
86715 2001-11-27  Paul Eggert  <eggert@twinsun.com>
86716
86717         * lib/quotearg.h (quotearg_n, quotearg_n_style):
86718         First arg is int, not unsigned.
86719         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
86720         (SIZE_MAX, UINT_MAX): New macros.
86721         (quotearg_n_options): Abort if N is negative.
86722         Avoid overflow check on hosts where size_t is 64 bits and int
86723         is 32 bits, as overflow is impossible there.
86724         Fix off-by-one typo that caused unnecessary reallocation.
86725
86726 2001-11-27  Jim Meyering  <meyering@lucent.com>
86727
86728         * lib/tempname.c: Merge with version from libc.
86729         * lib/regex.c: Likewise.
86730
86731         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
86732         systems for which STDC_HEADERS is 0, it was not included, resulting in
86733         a warning about an integer-to-pointer conversion problem with getenv.
86734         Reported by Volker Borchert.
86735
86736 2001-11-26  Jim Meyering  <meyering@lucent.com>
86737
86738         * lib/gtod.h: Remove file.
86739         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
86740         * lib/gettimeofday.c: Don't include gtod.h.
86741         (GTOD_init): Remove function.
86742         (rpl_gettimeofday): Do its job here instead, rather than aborting.
86743         Suggestion from Volker Borchert.
86744
86745 2001-11-23  Jim Meyering  <meyering@lucent.com>
86746
86747         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
86748         it.
86749         * lib/hash.c (struct hash_table): Define it here instead.
86750
86751 2001-11-22  Jim Meyering  <meyering@lucent.com>
86752
86753         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
86754
86755 2001-11-20  Jim Meyering  <meyering@lucent.com>
86756
86757         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
86758         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
86759
86760 2001-11-19  Jim Meyering  <meyering@lucent.com>
86761
86762         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
86763         directory.  Use "conftestXXXXXX" as the template.
86764         Suggestion from Paul Eggert.
86765
86766         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
86767         immediately, so the test doesn't mistakenly hit the max-open-files
86768         limit.
86769
86770 2001-11-18  Paul Eggert  <eggert@twinsun.com>
86771
86772         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
86773         (TEMPORARIES): New macro.
86774         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
86775         removes an artificial limitation (e.g. HP-UX 10.20, where
86776         TMP_MAX is 17576).
86777
86778 2001-11-18  Jim Meyering  <meyering@lucent.com>
86779
86780         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
86781
86782 2001-11-18  Jim Meyering  <meyering@lucent.com>
86783
86784         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
86785         on SunOS 4.
86786
86787         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
86788         files will be created before anything else.
86789
86790 2001-11-17  Paul Eggert  <eggert@twinsun.com>
86791
86792         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
86793         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
86794
86795 2001-11-17  Jim Meyering  <meyering@lucent.com>
86796
86797         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
86798         Prompted by a report from Bob Proulx.
86799
86800         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
86801         Instead, require UTILS_FUNC_MKSTEMP.
86802
86803 2001-11-17  Jim Meyering  <meyering@lucent.com>
86804
86805         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
86806         Now, that's done as part of AC_FUNC_STRTOD.
86807
86808 2001-11-17  Jim Meyering  <meyering@lucent.com>
86809
86810         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
86811         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
86812         rather than group writable.  Patch by Juan F. Codagnone.
86813
86814         * lib/readtokens.c: Remove explicit declarations of xmalloc and
86815         xrealloc, Instead, include "xalloc.h".
86816
86817         * lib/mountlist.c: Include unlocked-io.h after all system headers.
86818         Remove explicit declarations of xmalloc, xrealloc,
86819         and xstrdup.  Instead, include "xalloc.h".
86820
86821         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
86822         unlocked-io.h.
86823         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
86824         Likewise.
86825         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
86826
86827         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
86828         Reported by Padraig Brady.
86829
86830         * lib/mkstemp.c: #undef mkstemp.
86831         Include config.h.
86832         (rpl_mkstemp): Rename from mkstemp.
86833         Protoize.
86834
86835 2001-11-16  Jim Meyering  <meyering@lucent.com>
86836
86837         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
86838         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
86839         determine the amount of total physical memory, use pstat_getstatic.
86840         HPUX-11 doesn't define _SC_PHYS_PAGES.
86841         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
86842         If sysconf couldn't be used to determine the amount of available
86843         physical memory, use both pstat_getstatic and pstat_getdynamic.
86844         Based on a patch from Bob Proulx.
86845
86846 2001-11-10  Jim Meyering  <meyering@lucent.com>
86847
86848         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
86849         (jm_PREREQ): Use it.
86850
86851 2001-11-09  Jim Meyering  <meyering@lucent.com>
86852
86853         * m4/jm-macros.m4: Require autoconf-2.52f.
86854         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
86855         Use these AC_-prefixed names, not the AM_-prefixed ones.
86856
86857         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
86858
86859 2001-11-05  Jim Meyering  <meyering@lucent.com>
86860
86861         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
86862
86863 2001-11-04  Jim Meyering  <meyering@lucent.com>
86864
86865         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
86866         $DEFS.
86867
86868 2001-11-03  Jim Meyering  <meyering@lucent.com>
86869
86870         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
86871         of AC_DEFUN.
86872
86873         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
86874         know the name of the variable in the macro definition.
86875
86876 2001-11-03  Jim Meyering  <meyering@lucent.com>
86877
86878         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
86879         in argmatch_to_argument call.
86880
86881         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
86882         argument.
86883
86884         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
86885         e.g., a fault due to an attempt to free a NULL pointer.
86886
86887 2001-11-01  Jim Meyering  <meyering@lucent.com>
86888
86889         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
86890         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
86891
86892 2001-11-01  Jim Meyering  <meyering@lucent.com>
86893
86894         * lib/dirfd.c, lib/dirfd.h: New files.
86895         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
86896
86897         * lib/hash.c (hash_print) [TESTING]: Clean up.
86898
86899 2001-10-22  Paul Eggert  <eggert@twinsun.com>
86900
86901         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
86902         to avoid a warning if -Wall.
86903
86904 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
86905
86906         * README: New file
86907         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
86908         (per RMS's instructions, this is now the canonical source)
86909         * lgpl/, gpl/: New directories.
86910
86911 2001-10-21  Paul Eggert  <eggert@twinsun.com>
86912
86913         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
86914
86915 2001-10-21  Jim Meyering  <meyering@lucent.com>
86916
86917         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
86918         this code would end up calling gettext even in packages built
86919         with --disable-nls.
86920         * lib/getopt.c (_): Likewise.
86921         * lib/regex.c (_): Likewise.
86922
86923 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86924
86925         * m4/error.m4 (jm_PREREQ_ERROR):
86926         Do not invoke AC_CHECK_FUNCS with strerror_r, as
86927         AC_FUNC_STRERROR_R does that.
86928         Check for strerror declaration.
86929
86930         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
86931         are supposed to have them these days.
86932         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
86933         Merge changes from latest Autoconf CVS.
86934         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
86935         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
86936         POSIX decided to standardize on the int flavor of strerror_r.
86937
86938 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86939
86940         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
86941         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
86942         Use strerror_r that is only a macro, even if it is not a function.
86943         (strerror): Check for HAVE_DECL_STRERROR before declaring.
86944         (private_strerror): Use prototypes, not old-style function definition.
86945         (print_errno_message): New function.
86946         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
86947         char*-flavored one.
86948         (error_tail, error, error_at_line): Use it.
86949
86950 2001-10-11  Jim Meyering  <meyering@lucent.com>
86951
86952         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
86953         and quote_n (1, ... to avoid clobbering a buffer.
86954
86955 2001-10-05  Jim Meyering  <meyering@lucent.com>
86956
86957         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
86958         hash-pjw.h.
86959         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
86960         * lib/hash-pjw.h: New file.
86961
86962 2001-09-30  Jim Meyering  <meyering@lucent.com>
86963
86964         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
86965         `struct fsstat' has the `f_fstypename' member.
86966         Use that to define FS_TYPE, which is now used to make
86967         the getfsstat link test tighter.
86968
86969 2001-09-30  Jim Meyering  <meyering@lucent.com>
86970
86971         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
86972         Include <sys/ucred.h>, for Apple Darwin.
86973         Include sys/mount.h and sys/fs_types.h only if available.
86974         (FS_TYPE): Define.
86975         (read_filesystem_list): Use FS_TYPE.
86976
86977 2001-09-29  Paul Eggert  <eggert@twinsun.com>
86978
86979         * lib/exclude.c (excluded_filename): 0 -> false, since it's
86980         a boolean context.
86981
86982 2001-09-29  Jim Meyering  <meyering@lucent.com>
86983
86984         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86985         [one-argument getmntent function]): Include stdio.h before mntent.h.
86986         SunOS 4.1.x needs it for the declaration of `FILE'.
86987         Patch by Volker Borchert.
86988
86989         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86990         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
86991         sys/fs_types.h, and make the link-test for getfsstat guard #include
86992         directives with appropriate #if HAVE_*_H tests so that we can
86993         detect getfsstat on Apple Darwin1.3.7 systems.
86994         Reported by Nelson Beebe.
86995         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
86996
86997 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86998
86999         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
87000         #defines strtoimax.  Also treat the other strto* functions
87001         like strtoimax.
87002
87003         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
87004         Check for strtoul and strtoumax,
87005         as those declarations are made even in the signed case.
87006         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
87007         Likewise, for strtol and strtoimax.
87008
87009 2001-09-28  Paul Eggert  <eggert@twinsun.com>
87010
87011         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
87012         #defines strtoimax.  Also treat the other strto* functions
87013         like strtoimax.
87014
87015         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
87016         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
87017         (strtoimax, strtoumax): Do not declare if already defined as a macro.
87018
87019 2001-09-26  Jim Meyering  <meyering@lucent.com>
87020
87021         Most macros in unlocked-io.h had the wrong number of arguments.
87022         * lib/gen-uio: New script.
87023         (USE_UNLOCKED_IO): Define to 1 if not already defined.
87024         * lib/unlocked-io.hin: Remove file.
87025         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
87026         rather than trying to embed it here.
87027         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
87028         Reported by Padraig Brady.
87029
87030 2001-09-25  Volker Borchert  <bt@teknon.de>
87031
87032         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
87033         `result'.
87034
87035 2001-09-24  Jim Meyering  <meyering@lucent.com>
87036
87037         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
87038
87039 2001-09-23  Jim Meyering  <meyering@lucent.com>
87040
87041         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
87042         instead of the mere test for existence of mntent.h.  The latter
87043         would get a false-positive on AIX 3.4 systems.
87044         In the outer getmntent if-block, don't die if neither of the getmntent
87045         tests succeeds.  Instead, just fall through and continue with the
87046         remaining tests.
87047
87048 2001-09-23  Jim Meyering  <meyering@lucent.com>
87049
87050         * lib/mountlist.c: Remove useless parentheses in #if directives.
87051         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
87052         the deprecated MOUNTED symbol is no longer defined in mntent.h.
87053
87054 2001-09-22  Jim Meyering  <meyering@lucent.com>
87055
87056         * m4/gettext.m4: New file.  From gettext.
87057         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
87058         * m4/progtest.m4: Likewise
87059         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
87060         * m4/glibc21.m4: Likewise.
87061
87062         * m4/libintl.m4: Remove.  No longer used.
87063
87064 2001-09-22  Jim Meyering  <meyering@lucent.com>
87065
87066         * lib/localcharset.c: Update from latest gettext.
87067         * lib/config.charset: Likewise.
87068
87069 2001-09-20  Jim Meyering  <meyering@lucent.com>
87070
87071         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
87072         strtoimax.
87073         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
87074         strtoumax.
87075
87076 2001-09-20  Jim Meyering  <meyering@lucent.com>
87077
87078         * lib/xstrtol.c (strtoimax): Guard declaration with
87079         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
87080         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
87081         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
87082         (strtoumax): Likewise, for completeness (it wasn't necessary).
87083
87084 2001-09-17  Paul Eggert  <eggert@twinsun.com>
87085
87086         * lib/strtoimax.c (HAVE_LONG_LONG):
87087         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
87088         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
87089         to work around bug in IBM C compiler.
87090
87091 2001-09-17  Jim Meyering  <meyering@lucent.com>
87092
87093         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
87094         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
87095         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
87096         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
87097         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
87098         whenever the right hand side need not be expanded by the shell.
87099
87100 2001-09-16  Paul Eggert  <eggert@twinsun.com>
87101
87102         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
87103         library.  It's not correct, as some older glibcs are buggy.
87104         fnmatch wasn't fixed until glibc 2.2.
87105
87106         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
87107         special shell magic here.
87108
87109 2001-09-16  Jim Meyering  <meyering@lucent.com>
87110
87111         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
87112         * m4/jm-macros.m4: Require it.
87113
87114 2001-09-16  Jim Meyering  <meyering@lucent.com>
87115
87116         * lib/mkdir.c: New file.
87117
87118 2001-09-15  Jim Meyering  <meyering@lucent.com>
87119
87120         * m4/jm-macros.m4: Check for help2man.
87121
87122 2001-09-11  Jim Meyering  <meyering@lucent.com>
87123
87124         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
87125         The body, by Paul Eggert, was moved here from configure.in.
87126         * m4/jm-macros.m4: Require UTILS_HOST_OS.
87127
87128 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87129
87130         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
87131         (jm_PREREQ): Use it.
87132
87133 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87134
87135         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
87136         Use ssize_t, not int, to store result of readlink.
87137         Check for ssize_t overflow as well as size_t overflow,
87138         as POSIX says the result of readlink is implementation-defined
87139         when ssize_t overflows.
87140         Remove unnecessary cast to char*.
87141         Use free+malloc instead of realloc, as the storage doesn't need
87142         to be preserved and it's clearer and can be more efficient that way.
87143         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
87144         * lib/xreadlink.h (xreadlink): Update prototype.
87145
87146 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87147
87148         * lib/xgetcwd.c: Revert some of the previous change; intead,
87149         fix the HAVE_GETCWD_NULL code to behave more like the
87150         !HAVE_GETCWD_NULL code used to.
87151
87152         Include "xalloc.h".
87153         (xgetcwd): Do not return NULL when memory is exhausted; instead,
87154         invoke xalloc_die.
87155
87156 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87157
87158         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
87159         sys/param.h, as pathmax.h includes them.
87160
87161 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87162
87163         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
87164         (jm_PREREQ_XGETCWD): New macro.
87165
87166         * m4/getcwd.m4: New file.
87167
87168 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87169
87170         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
87171         like the HAVE_GETCWD_NULL code.
87172         Include pathmax.h if not HAVE_GETCWD.
87173         Do not include xalloc.h.
87174         (INITIAL_BUFFER_SIZE): New symbol.
87175         Do not use xmalloc / xrealloc, since the caller is responsible for
87176         handling errors.  Preserve errno around `free' during failure.
87177         Do not overrun buffer when using getwd.
87178
87179 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87180
87181         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
87182         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
87183         getcwd (NULL, 0).
87184
87185 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87186
87187         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
87188         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
87189         spotted by Jim Meyering.
87190
87191 2001-09-03  Jim Meyering  <meyering@lucent.com>
87192
87193         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
87194         failure.
87195
87196 2001-09-02  Jim Meyering  <meyering@lucent.com>
87197
87198         * lib/error.c: Update from GNU libc.
87199
87200 2001-09-01  Jim Meyering  <meyering@lucent.com>
87201
87202         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
87203         Used by df.
87204
87205 2001-09-01  Jim Meyering  <meyering@lucent.com>
87206
87207         * lib/xreadlink.c: New file.
87208         * lib/xreadlink.h: New file.
87209         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
87210         xreadlink.h.
87211
87212         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
87213         doesn't conflict with sparc Solaris 7's definition in
87214         /usr/include/sys/int_types.h.
87215
87216         * lib/exclude.c: Use `""', not `<>' to #include non-system header
87217         files.
87218         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
87219         and strncasecmp as r-values.  Unixware didn't have declarations.
87220
87221 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87222
87223         * lib/xstrtol.h: Add copyright notice.
87224         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
87225         LONGINT_INVALID_SUFFIX_CHAR.
87226
87227 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87228
87229         * lib/xstrtol.c (strtoimax): New decl.
87230
87231 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87232
87233         * lib/xgetcwd.c: Don't include pathmax.h.
87234         Include stdlib.h and unistd.h if available.
87235         Include xalloc.h.
87236         (xmalloc, xstrdup, free): Remove decls.
87237         (xgetcwd): Don't assume sizes fit in unsigned.
87238         Check for overflow when computing sizes.
87239         Simplify reallocation code.
87240
87241 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87242
87243         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
87244         a directory's st_size can have an arbitrary value, so the old
87245         usage could waste an arbitrary amount of memory.  All uses
87246         changed.
87247         * lib/savedir.h: Update prototype.
87248
87249 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87250
87251         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
87252
87253         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
87254         old strtoimax.c.
87255
87256         Also, make the following further changes to make this file's
87257         configuration more similar to that of strtol.c:
87258         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
87259         (strtoumax, uintmax_t, strtoull, strtol): Remove.
87260         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
87261         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
87262         changed to signed values.
87263
87264         And make the following changes as well:
87265         Fix copyright notice, as 1999 was missing.
87266         (verify): New macro.
87267         (strtoimax): Check sizes at compile-time, not run-time.
87268         Prefer strtol to strtoll if both work.
87269         (main): Remove; it was not that useful and was a pain to maintain.
87270
87271         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
87272
87273 2001-08-31  Jim Meyering  <meyering@lucent.com>
87274
87275         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
87276         Use an initial, malloc'd, buffer of length 128 rather than
87277         a statically allocated one of length 1024.
87278
87279 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87280
87281         Simplify code, partly by assuming autoconf 2.52 semantics.
87282
87283         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
87284
87285         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
87286         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
87287         All uses removed.
87288         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
87289         Move AC_REQUIRE to next-to-top level, to avoid confusion.
87290         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
87291         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
87292         jm_AC_HEADER_INTTYPES_H.
87293         * m4/jm-macros.m4 (jm_MACROS): Likewise.
87294
87295         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
87296
87297         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
87298         Quote first arg of AC_DEFUN.
87299         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
87300         since they are needed to parse the include file even if we need
87301         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
87302         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
87303         but with opposite signedness.
87304
87305 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87306
87307         Merge 'exclude' changes from tar 1.13.22.
87308         This fixes one or two unlikely storage allocation overflow bugs,
87309         but doesn't change user-visible behavior otherwise.
87310
87311 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87312
87313         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
87314         (jm_PREREQ_EXCLUDE): New macro.
87315
87316 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87317
87318         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
87319         tm to be declared.
87320
87321 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87322
87323         * lib/hash.c: Remove '2001' from copyright notice.
87324
87325 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87326
87327         * lib/full-write.h: New file.
87328         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
87329         * lib/full-write.c: Correct credits, as cccp.c no longer
87330         exists and anyway it was so heavily changed from the old cccp
87331         code as to be unrecognizable.  Include full-write.h.
87332         (full_write): Return size_t, with short writes meaning failure.
87333         All callers changed.  This fixes a bug with large buffers
87334         on 64-bit hosts.
87335         * lib/utime.c: Include full-write.h.
87336
87337 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87338
87339         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
87340         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
87341         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
87342         Include if available.
87343         (<xalloc.h>): Include
87344         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
87345         (verify): New macro.  Use it to verify that EXCLUDE macros do not
87346         collide with FNM macros.
87347         (struct patopts): New struct.
87348         (struct exclude): Use it, as exclude patterns now come with options.
87349         (new_exclude): Support above changes.
87350         (new_exclude, add_exclude_file):
87351         Initial size must now be a power of two to simplify overflow checking.
87352         (free_exclude, fnmatch_no_wildcards): New function.
87353         (excluded_filename): No longer requires options arg, as the options
87354         are determined by add_exclude.  Now returns bool, not int.
87355         (excluded_filename, add_exclude):
87356         Add support for the fancy new exclusion options.
87357         (add_exclude, add_exclude_file): Now takes int options arg.
87358         Check for arithmetic overflow when computing sizes.
87359         (add_exclude_file): xrealloc might modify errno, so don't
87360         realloc until after errno might be used.
87361
87362         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
87363         New macros.
87364         (free_exclude): New decl.
87365         (add_exclude, add_exclude_file): Now takes int options arg.
87366         (excluded_filename): No longer requires options arg, as the options
87367         are determined by add_exclude.  Now returns bool, not int.
87368
87369 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87370
87371         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
87372
87373 2001-08-27  Jim Meyering  <meyering@lucent.com>
87374
87375         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
87376
87377         * lib/version-etc.c (N_): Remove definition.
87378         Revert most of last change.
87379         Instead, simply don't mark the `Copyright...' string for translation.
87380         Based on advice from Paul Eggert.
87381
87382         * lib/strtoxmax.c: Tweak comment.
87383
87384 2001-08-26  Jim Meyering  <meyering@lucent.com>
87385
87386         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
87387
87388         * m4/xstrtoimax.m4: New file.
87389         * m4/xstrtoumax.m4: Add comments explaining why we
87390         AC_REPLACE_FUNCS(strtol).
87391
87392 2001-08-26  Jim Meyering  <meyering@lucent.com>
87393
87394         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
87395         of copyright with `%s' so translators don't get an untranslated
87396         message in 2002.
87397         (COPYRIGHT_YEAR): Define.
87398         (version_etc): Use fprintf rather than fputs.
87399         Suggestion from Ulrich Drepper.
87400
87401         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
87402
87403         * lib/strtoll.c: New file, from GNU libc.
87404         * lib/xstrtoimax.c: New file.
87405
87406         * lib/xstrtol.h: Add xstrtoimax.
87407         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
87408         * lib/strtoimax.c: New file.  Likewise, but first define
87409         STRTOUXMAX_SIGNED.
87410
87411         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
87412         ...
87413         * lib/strtoxmax.c: ... then renamed to this.
87414
87415 2001-08-18  Paul Eggert  <eggert@twinsun.com>
87416
87417         * m4/inttypes.m4: Add AC_PREREQ(2.13).
87418         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
87419         (jm_AC_TYPE_INTMAX_T): New macro.
87420         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
87421
87422         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
87423
87424         * m4/longlong.m4: Renamed from ulonglong.m4.
87425         * m4/inttypes.m4: Renamed from inttypes_h.m4.
87426         * m4/uintmax_t.m4: Removed.
87427
87428 2001-08-13  Paul Eggert  <eggert@twinsun.com>
87429
87430         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
87431         Port to Solaris 8, where 'sed' requires a space after the 'r'
87432         command, and where sh dislikes "$/".  Clean up the spacing a bit.
87433         Redirect output to $tmp just once.
87434
87435 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
87436
87437         * lib/addext.c (<errno.h>): Include.
87438         (errno): Declare if not defined.
87439         (addext): Work correctly when pathconf returns -1 and leaves
87440         errno alone because there is no limit.  Also, work even if
87441         pathconf returns a value greater than SIZE_MAX.
87442
87443 2001-08-12  Jim Meyering  <meyering@lucent.com>
87444
87445         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
87446         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
87447         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
87448         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
87449         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
87450         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
87451         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
87452         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
87453         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
87454         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
87455         utime.m4, utimes.m4, xstrtoumax.m4:
87456         Quote the first argument in each use of AC_DEFUN.
87457
87458 2001-08-12  Jim Meyering  <meyering@lucent.com>
87459
87460         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
87461         Simply `return getcwd (NULL, 0);'.
87462         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
87463         Use 1300 as initial value for length, not PATH_MAX.
87464
87465         * lib/pathmax.h: Clean up cpp syntax.
87466
87467 2001-08-12  Jim Meyering  <meyering@lucent.com>
87468
87469         * lib/gettimeofday.c: New file.
87470         * lib/gtod.h: New file.
87471         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
87472
87473 2001-08-05  Jim Meyering  <meyering@lucent.com>
87474
87475         * m4/jm-macros.m4: Require autoconf-2.52.
87476
87477 2001-08-04  Jim Meyering  <meyering@lucent.com>
87478
87479         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
87480         stmt, to get in sync with glibc.
87481
87482 2001-08-03  Paul Eggert  <eggert@twinsun.com>
87483
87484         The following changes are from gettext 0.10.39 as maintained by
87485         Bruno Haible.
87486
87487         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
87488         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
87489         with inverted sense.  All uses changed.
87490
87491         * lib/mbswidth.c: Don't include <limits.h>.
87492         Include <stdlib.h> and <string.h> unconditionally.
87493         (iswcntrl, mbsinit, ISCNTRL): New macros.
87494         (mbsnwidth): Use K&R style function declarations.
87495         Don't bother checking for MB_LEN_MAX == 1, since the compiler
87496         can optimize it when MB_CUR_MAX == 1.
87497         The width of control characters is zero, not 1.
87498
87499 2001-08-03  Paul Eggert  <eggert@twinsun.com>
87500
87501         The following changes are from gettext 0.10.39 as maintained by
87502         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
87503
87504         * m4/codeset.m4: Upgrade to serial AM1.
87505         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
87506         all uses changed.  Quote first arg of AC_DEFUN.
87507         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
87508
87509         * m4/iconv.m4: Upgrade to serial AM2.
87510         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
87511         Add --with-libconv-prefix.
87512         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
87513         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
87514         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
87515         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
87516         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
87517
87518         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
87519         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
87520         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
87521         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
87522         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
87523         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
87524         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
87525         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
87526         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
87527
87528         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
87529         string.h any more.
87530
87531         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
87532         not the default value.
87533
87534         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
87535         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
87536         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
87537         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
87538         Also check for iswcntrl, used for wcwidth fallback.
87539         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
87540         to Autoconf 2.13.
87541
87542 2001-08-03  Jim Meyering  <meyering@lucent.com>
87543
87544         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
87545         as it was in the original.  Reported by Paul Eggert.
87546
87547 2001-07-16  Jim Meyering  <meyering@lucent.com>
87548
87549         * m4/gettimeofday.m4: New file.
87550         Prompted by a report from Bernhard Baehr.
87551
87552 2001-07-15  Jim Meyering  <meyering@lucent.com>
87553
87554         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
87555         stuff. Now it's in ../Makefile.cfg.
87556
87557 2001-07-15  Jim Meyering  <meyering@lucent.com>
87558
87559         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
87560         (BUILT_SOURCES): Add unlocked-io.h.
87561         (io_functions): Define.
87562         (unlocked-io.h): New rule.
87563         (DISTCLEANFILES): Add unlocked-io.h.
87564         (all-local): Depend on unlocked-io.h, to ensure it is created.
87565
87566         * lib/unlocked-io.hin: New file
87567
87568         * lib/regex.c: Update from glibc.
87569
87570 2001-07-05  Jim Meyering  <meyering@lucent.com>
87571
87572         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
87573         recommendation.
87574         (libfetish_a_SOURCES): Put all .h files here instead.
87575         Remove a thus-exposed (better checks in automake) duplicate and
87576         two unnecessary .h files.
87577
87578 2001-07-04  Jim Meyering  <meyering@lucent.com>
87579
87580         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
87581         that generates jm-glibc-io.m4 so that it doesn't trigger any make
87582         distcheck failure.
87583
87584 2001-07-02  Jim Meyering  <meyering@lucent.com>
87585
87586         The following changes were prompted by suggestions from Bruno Haible.
87587
87588         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
87589         is now generated.
87590         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
87591         definition of EXTRA_DIST.
87592         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
87593         ensure that the generated file is created/updated whenever the list
87594         of $(unlocked_functions) is changed.
87595         (jm-glibc-io.m4): New rule.
87596         (unlocked-io.h): New rule -- currently unused.
87597
87598 2001-06-24  Jim Meyering  <meyering@lucent.com>
87599
87600         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
87601         unmatched right bracket, rather than kludging it with an extra,
87602         falsely-matching quote in a comment.  Patch by Akim Demaille.
87603
87604 2001-06-11  Jim Meyering  <meyering@lucent.com>
87605
87606         * lib/regex.c: Update from GNU libc.
87607
87608 2001-05-27  Jim Meyering  <meyering@lucent.com>
87609
87610         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
87611         Check for ut_type in struct utmp.
87612
87613 2001-05-27  Jim Meyering  <meyering@lucent.com>
87614
87615         * lib/readutmp.h (UT_TYPE): Define.
87616
87617 2001-05-24  Jim Meyering  <meyering@lucent.com>
87618
87619         * lib/argmatch.c: Include "quote.h".
87620         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
87621         quote function.  Reported by Göran Uddeborg.
87622
87623 2001-05-22  Jim Meyering  <meyering@lucent.com>
87624
87625         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
87626         now that we use the package-supplied version unconditionally.
87627         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
87628
87629 2001-05-21  Jim Meyering  <meyering@lucent.com>
87630
87631         * m4/regex.m4: Change a couple backticks to single quotes to avoid
87632         shell syntax errors.
87633
87634 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
87635
87636         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
87637
87638 2001-05-20  Paul Eggert  <eggert@twinsun.com>
87639
87640         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
87641         Don't bother to check library strftime, since
87642         we'll be using our own my_strftime function anyway.
87643         Define my_strftime instead of strftime.
87644
87645 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
87646
87647         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
87648         which is not yet declared.
87649
87650 2001-05-15  Jim Meyering  <meyering@lucent.com>
87651
87652         * m4/regex.m4: Use proper quoting so brackets appear in the test
87653         program.
87654         Reported by, and with help from, Bruno Haible.
87655
87656 2001-05-13  Jim Meyering  <meyering@lucent.com>
87657
87658         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
87659         undefined.
87660
87661 2001-05-11  Paul Eggert  <eggert@twinsun.com>
87662
87663         dirname code cleanup.  base_name now behaves more compatibly
87664         with POSIX basename when given file names that have trailing
87665         slashes, and similarly for dir_name.  Add new primitives
87666         base_len and dir_len.  Put the directory-name-related decls
87667         into dirname.h.
87668
87669         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
87670         * lib/backupfile.c (base_name): Likewise.
87671         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
87672         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
87673         * lib/makepath.c (strip_trailing_slashes): Likewise.
87674         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
87675         ISSLASH): Likewise.
87676         * lib/rename.c (strip_trailing_slashes): Likewise.
87677         * lib/same.c (base_name): Likewise.
87678         * lib/stripslash.c (ISSLASH): Likewise.
87679
87680         * lib/addext.c: Include <dirname.h> after size_t is defined.
87681         * lib/backupfile.c: Likewise.
87682
87683         * lib/addext.c (addext): Use base_len to trim redundant
87684         trailing slashes instead of doing it ourselves.
87685         But do not trim the last slash if it is not redundant.
87686
87687         * lib/backupfile.c (find_backup_file_name,
87688         max_backup_version): Use base_len instead of rolling it ourselves.
87689         Handle the case of "" and (on DOS) "C:" correctly.
87690
87691         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
87692         needed. Include <string.h>, <dirname.h>.
87693         (base_name): Allow file names ending in slashes, other than names
87694         that are all slashes.  In this case, return the basename followed
87695         by the slashes.  This is more general, and can be used in places
87696         where the original base_name purposely had an assertion failure.
87697         (base_len): New function.
87698
87699         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
87700         Do not include <assert.h>; no longer needed.
87701         Include xalloc.h.
87702         (memrchr): Remove decl.
87703         (dir_name_r): Remove.
87704         (dir_len): Renamed from dirlen.  All callers changed.
87705         Rewrite in terms of base_name, for simplicity and consistency.
87706         (dir_name): Never return NULL.  All callers changed.
87707         Do not include <stdlib.h> in test program; no longer needed.
87708         return 0; is fine for test program.
87709
87710         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
87711         New macros.
87712         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
87713
87714         * lib/path-concat.c (path_concat): Use base_len to compute
87715         base length, not strlen; this means we cannot rely on memcpy
87716         to null-terminate.
87717
87718         * lib/same.c (STREQ): Remove.
87719         (same_name): Handle the case where the basename ends in trailing '/'.
87720
87721         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
87722         a slash was stripped.  Do not strip the last slash after a
87723         file system prefix.
87724
87725 2001-05-11  Paul Eggert  <eggert@twinsun.com>
87726
87727         * lib/Makefile.am (libfetish_a_SOURCES):
87728         Add strftime.c, since we now compile it on all hosts.
87729
87730         * lib/strftime.c (my_strftime):
87731         Define to nstrftime if emacs, but only if my_strftime is not defined.
87732         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
87733         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
87734         Add one more extra argument: a nanoseconds value.
87735         All uses changed.
87736         (ns): New macro.
87737         (my_strftime function): Add %N format.
87738         (emacs_strftimeu): Renamed from emacs_strftime,
87739         with extra ut argument.
87740
87741 2001-05-09  Paul Eggert  <eggert@twinsun.com>
87742
87743         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
87744
87745 2001-04-21  Jim Meyering  <meyering@lucent.com>
87746
87747         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
87748         doesn't interfere.
87749
87750 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
87751
87752         * m4/ftruncate.m4: Check for chsize.
87753         Link with ftruncate.o unconditionally if ftruncate is missing.
87754         This was required when cross-compiling to i586-mingw32msvc.
87755
87756 2001-04-08  Jim Meyering  <meyering@lucent.com>
87757
87758         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
87759         recomputed; that's necessary when the offset spans a DST transition.
87760         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
87761
87762 2001-04-02  Jim Meyering  <meyering@lucent.com>
87763
87764         * lib/regex.h, regex.c: Update from GNU libc.
87765
87766 2001-03-24  Jim Meyering  <meyering@lucent.com>
87767
87768         * m4/jm-macros.m4: Require autoconf-2.49d.
87769
87770 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
87771
87772         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
87773
87774 2001-03-19  Paul Eggert  <eggert@twinsun.com>
87775
87776         * lib/version-etc.c (version_etc_copyright): Update to 2001.
87777
87778 2001-03-17  Jim Meyering  <meyering@lucent.com>
87779
87780         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
87781         now that the version in autoconf is equivalent.
87782         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
87783
87784         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
87785         Suggestion from Akim Demaille.
87786
87787         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
87788         (jm_PREREQ_TEMPNAME): New function.
87789
87790 2001-03-16  Paul Eggert  <eggert@twinsun.com>
87791
87792         * lib/tempname.c (uint64_t): Define to uintmax_t if
87793         not defined, and if UINT64_MAX is not defined.
87794         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
87795         Reported by John David Anglin.
87796
87797 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
87798
87799         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
87800         resolve alias if codeset is empty.
87801         * lib/config.charset (BeOS): Use wildcard syntax.
87802
87803 2001-03-13  Jim Meyering  <meyering@lucent.com>
87804
87805         * lib/path-concat.c (path_concat)
87806         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
87807         concatenating e.g., `C:' and `foo'.
87808         From Bruno Haible.
87809
87810 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87811
87812         * lib/localcharset.c (locale_charset): Don't use
87813         setlocale(LC_CTYPE,NULL). Don't return NULL.
87814         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
87815
87816 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87817
87818         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
87819         support for DOS/DJGPP.
87820
87821 2001-03-01  Paul Eggert  <eggert@twinsun.com>
87822
87823         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
87824         lacks mkstemp.  Compile our own tempname.c if we compile our own
87825         mkstemp.c, as mkstemp relies on tempname.
87826
87827 2001-03-01  Jim Meyering  <meyering@lucent.com>
87828
87829         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
87830         AH_VERBATIM really does output its argument verbatim.
87831
87832 2001-02-28  Paul Eggert  <eggert@twinsun.com>
87833
87834         * lib/Makefile.am (libfetish_a_SOURCES):
87835         Add dup-safer.c, fopen-safer.c.
87836         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
87837
87838         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
87839         * lib/unistd-safer.h: New files.
87840
87841 2001-02-25  Paul Eggert  <eggert@twinsun.com>
87842
87843         The mkstemp replacement is taken from glibc 2.2.2, with some
87844         portability fixes for use outside glibc, as follows:
87845
87846         * lib/tempname.c (struct_stat64): New macro.
87847         (direxists, __gen_tempname): Use it.
87848         This avoids a portability problem with Solaris 8.
87849
87850         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
87851         (<stddef.h>, <stdint.h>, <string.h>):
87852         Include only if STDC_HEADERS || _LIBC.
87853         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
87854         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
87855         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
87856         (__set_errno): Define this macro if <errno.h> doesn't.
87857         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
87858         Define these macros if <stdio.h> doesn't.
87859         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
87860         Define these macros if <sys/stat.h>
87861         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
87862         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
87863         __xstat64): Define if not _LIBC.
87864         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
87865         (__gen_tempname): Invoke gettimeofday only if
87866         HAVE_GETTIMEOFDAY || _LIBC;
87867         otherwise, fall back on plain "time".
87868         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
87869
87870         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
87871
87872         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
87873
87874 2001-02-18  Paul Eggert  <eggert@twinsun.com>
87875
87876         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
87877
87878 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87879
87880         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
87881         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
87882         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
87883         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
87884
87885 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87886
87887         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
87888         Remove workaround macros for hosts that have mbrtowc but not
87889         mbstate_t, as we now insist on proper declarations for both
87890         before using mbrtowc.
87891
87892 2001-02-17  Jim Meyering  <meyering@lucent.com>
87893
87894         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
87895         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
87896         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
87897         UnixWare 7.1.1.
87898
87899         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
87900         rather than AC_CACHE_VAL.
87901
87902 2001-02-17  Jim Meyering  <meyering@lucent.com>
87903
87904         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
87905         around included file name.
87906
87907         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
87908
87909         * lib/strftime.c: Update from GNU libc (the only changes were to
87910         comments).
87911
87912 2001-02-17  Jim Meyering  <meyering@lucent.com>
87913
87914         * lib/regex.c: Update from libc.
87915
87916 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
87917
87918         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
87919         clash.
87920
87921 2001-02-16  Paul Eggert  <eggert@twinsun.com>
87922
87923         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
87924         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
87925         Reported by Mark Hounschell via Paul Eggert.
87926
87927 2001-02-07  Jim Meyering  <meyering@lucent.com>
87928
87929         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
87930
87931 2001-02-05  Jim Meyering  <meyering@lucent.com>
87932
87933         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
87934         it includes the patch required for `large file' support with at least
87935         HP-UX's 10.20 /bin/cc.
87936
87937 2001-02-03  Jim Meyering  <meyering@lucent.com>
87938
87939         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
87940         AS_IF, now that it works once again (mysteriously).
87941         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87942
87943 2001-01-30  Jim Meyering  <meyering@lucent.com>
87944
87945         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
87946         * m4/chown.m4: Rename conftestchown to conftest.chown.
87947         * m4/rename.m4: s/conftestdir/conftest.d1/ and
87948         s/conftestdir2/conftest.d2/.
87949         * m4/utimes.m4: s/conftestdata/conftest.data/
87950         Inspired by Pavel Roskin's change in autoconf.
87951
87952 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
87953
87954         * lib/config.charset: Update for FreeBSD 4.2.
87955
87956 2001-01-27  Jim Meyering  <meyering@lucent.com>
87957
87958         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
87959         a use of AS_IF.
87960         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87961
87962 2001-01-26  Jim Meyering  <meyering@lucent.com>
87963
87964         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
87965         quotearg.c includes it.
87966
87967 2001-01-26  Jim Meyering  <meyering@lucent.com>
87968
87969         * lib/quotearg.c: Include stddef.h.
87970         * lib/quote.c: Include stddef.h.
87971         Reported by Axel Kittenberger.
87972
87973         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
87974         line in double quotes so that it evokes a better diagnostic.
87975         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
87976         Reported by Axel Kittenberger.
87977
87978 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
87979
87980         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
87981         as if it was a `charset'.
87982
87983 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87984
87985         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
87986         has const.
87987
87988 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87989
87990         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
87991         to avoid a warning.  Add back 'const' to inptr.
87992
87993 2001-01-20  Jim Meyering  <meyering@lucent.com>
87994
87995         Be sure that headers are checked before used in code compiled
87996         for the type checks.
87997         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
87998         In place of that, invoke jm_CHECK_ALL_TYPES.
87999         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
88000         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
88001         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
88002         The check for ssize_t was mistakenly run before the test for unistd.h.
88003
88004         The configure-time check for stdbool.h was missing.
88005         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
88006         (jm_PREREQ_HASH): New function.
88007
88008 2001-01-17  Jim Meyering  <meyering@lucent.com>
88009
88010         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
88011         for autoconf-2.49c.
88012         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
88013
88014 2001-01-16  Jim Meyering  <meyering@lucent.com>
88015
88016         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
88017         From Bruno Haible.
88018
88019 2001-01-14  Jim Meyering  <meyering@lucent.com>
88020
88021         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
88022         foo and bar.  Create conftestdir/ in the script, not in the C code.
88023         Remove directories in the script, not in the C code.
88024         Remove conftestdir{,2} before trying to create the directory.
88025         Make the entire configure script fail if the mkdir fails.
88026
88027 2001-01-14  Jim Meyering  <meyering@lucent.com>
88028
88029         * lib/rename.c: New file.  From Volker Borchert.
88030         Include stdlib.h, string.h or strings.h, and xalloc.h.
88031         Use strip_trailing_slashes rather than open-coding it.
88032
88033 2001-01-03  Paul Eggert  <eggert@twinsun.com>
88034
88035         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
88036
88037 2001-01-03  Jim Meyering  <meyering@lucent.com>
88038
88039         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
88040         of local `inptr' to avoid warning with some system declarations of
88041         iconv.
88042
88043 2001-01-02  Volker Borchert  <bt@teknon.de>
88044
88045         * m4/rename.m4: New file.
88046         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
88047
88048 2001-01-01  Jim Meyering  <meyering@lucent.com>
88049
88050         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
88051         even on systems with utmpx.h.  It's necessary for the declaration of
88052         utmp's ut_user member.  Reported by Andreas Jaeger.
88053
88054         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
88055         available. They are required for the declarations of getgrgid and
88056         getpwuid resp.
88057         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
88058         Reported by Andreas Jaeger.
88059
88060 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
88061
88062         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
88063         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
88064         so `make install' also works in VPATH builds.
88065
88066 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
88067
88068         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
88069         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
88070         can be used in subdirectories.
88071
88072 2000-12-29  Paul Eggert  <eggert@twinsun.com>
88073
88074         * lib/modechange.c: Do not assume that mode_t uses the
88075         traditional octal encoding.  E.g. "chmod 1 FOO" should set
88076         the other-execute bit of FOO even if S_IXOTH != 1.
88077
88078         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
88079         WOTH, XOTH, ALLM): New macros.
88080         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
88081          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
88082         Use them.
88083         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
88084         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
88085         (mode_compile):
88086         No need to use uintmax_t; unsigned long is long enough.
88087         Don't bother to get suffix since we don't use it.
88088
88089 2000-12-26  Jim Meyering  <meyering@lucent.com>
88090
88091         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
88092         better with autoheader.
88093
88094 2000-12-24  Jim Meyering  <meyering@lucent.com>
88095
88096         * lib/hash.c (is_prime): Return explicit boolean values.
88097         (hash_get_first): Return NULL to appease Irix5.6's 89.
88098         Reported by Nelson Beebe.
88099
88100 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
88101
88102         * lib/localcharset.c (locale_charset): Add support for Win32.
88103
88104 2000-12-18  Paul Eggert  <eggert@twinsun.com>
88105
88106         * lib/physmem.h, lib/physmem.c: New files.
88107
88108         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
88109         (noinst_HEADERS): Add physmem.h.
88110
88111         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
88112         't' for compatibility with Solaris 8 sort.
88113
88114 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
88115
88116         * lib/config.charset: Add support for BeOS.
88117
88118 2000-12-17  Jim Meyering  <meyering@lucent.com>
88119
88120         * m4/dos.m4 (jm_AC_DOS): New file and macro.
88121         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
88122
88123 2000-12-16  Jim Meyering  <meyering@lucent.com>
88124
88125         This bug had a serious impact on chown: `chown N:M FILE' (for integer
88126         N and M) would have treated it like `chown N:N FILE'.
88127
88128         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
88129
88130 2000-12-16  Jim Meyering  <meyering@lucent.com>
88131
88132         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
88133         SHELLS_FILE to a file name that's useful on djgpp systems.
88134         Include stdlib.h.
88135         (ADDITIONAL_DEFAULT_SHELLS): Define.
88136         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
88137         Based mostly on a patch from Prashant TR.
88138
88139 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
88140
88141         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
88142         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
88143         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
88144
88145 2000-12-08  Andreas Schwab  <schwab@suse.de>
88146
88147         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
88148         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
88149
88150 2000-12-07  Jim Meyering  <meyering@lucent.com>
88151
88152         * lib/stripslash.c (ISSLASH): Define.
88153         (strip_trailing_slashes): Use ISSLASH rather than comparing against
88154         `/'.
88155         From Prashant TR.
88156
88157         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
88158         (dir_name_r): Declare this function as static.
88159         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
88160         manifest itself on a name containing a mix of slashes and
88161         backslashes.
88162         Make this function work with names starting with a DOS-style
88163         drive letter and colon prefix.
88164         (dir_name): Append `.' if necessary.
88165         Based mostly on patches from Prashant TR and Eli Zaretskii.
88166
88167         * lib/dirname.h (dir_name_r): Remove prototype.
88168
88169 2000-12-06  Paul Eggert  <eggert@twinsun.com>
88170
88171         * m4/off_t-format.m4: Remove this file.
88172         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
88173
88174 2000-12-06  Jim Meyering  <meyering@lucent.com>
88175
88176         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
88177         replacement strtoull, we may well need the replacement strtoul, too.
88178         Check for declarations of strtoul and strtoull.
88179         Check for strtol.  Mainly as a cue to cause automake to include
88180         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
88181         Check for limits.h -- strtol.c needs it.
88182
88183 2000-12-05  Jim Meyering  <meyering@lucent.com>
88184
88185         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
88186
88187 2000-12-04  Jim Meyering  <meyering@lucent.com>
88188
88189         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
88190         Also include memory.h, stdlib.h, unistd.h if appropriate.
88191         Reported by Andreas Jaeger (conflicting declaration of malloc).
88192
88193 2000-12-02  Jim Meyering  <meyering@lucent.com>
88194
88195         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
88196         * m4/jm-macros.m4 (jm_MACROS): require it.
88197
88198 2000-12-02  Jim Meyering  <meyering@lucent.com>
88199
88200         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
88201
88202 2000-12-01  Paul Eggert  <eggert@twinsun.com>
88203
88204         * lib/memrchr.c: Include <config.h> before any system include file.
88205
88206 2000-11-30  Jim Meyering  <meyering@lucent.com>
88207
88208         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
88209
88210 2000-11-30  Jim Meyering  <meyering@lucent.com>
88211
88212         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
88213
88214 2000-11-29  Paul Eggert  <eggert@twinsun.com>
88215
88216         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
88217
88218 2000-11-26  Jim Meyering  <meyering@lucent.com>
88219
88220         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
88221
88222 2000-11-22  Paul Eggert  <eggert@twinsun.com>
88223
88224         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
88225         size of (size_t) -1; it's not portable.
88226
88227 2000-11-17  Jim Meyering  <meyering@lucent.com>
88228
88229         * lib/strstr.c: Update from GNU libc.
88230
88231 2000-11-17  Akim Demaille  <akim@epita.fr>
88232
88233         * lib/obstack.h: Formatting changes.
88234         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
88235         prevent type checking.
88236         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
88237         cast the value to (void *): assigning a `foo *' to a `void *'
88238         variable is valid.
88239         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
88240
88241 2000-11-16  Jim Meyering  <meyering@lucent.com>
88242
88243         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
88244
88245 2000-11-11  Jim Meyering  <meyering@lucent.com>
88246
88247         * lib/error.c: Add a couple #includes, merging from GNU libc version.
88248
88249 2000-11-10  Jim Meyering  <meyering@lucent.com>
88250
88251         * lib/obstack.h: Update from GNU libc.
88252         * lib/obstack.c: Likewise.
88253
88254 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
88255
88256         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
88257
88258 2000-11-06  Paul Eggert  <eggert@twinsun.com>
88259
88260         * lib/getusershell.c (setusershell): Use rewind rather than
88261         fseek/fseeko, to avoid configuration hassles with fseeko.
88262         Don't bother opening SHELLS_FILE if shellstream is NULL;
88263         it's not necessary.
88264
88265 2000-11-05  Jim Meyering  <meyering@lucent.com>
88266
88267         * lib/makepath.h (make_dir): Declare.
88268         * lib/makepath.c (make_dir): Remove `static' attribute.
88269         Tweak a comment.
88270
88271 2000-11-04  Jim Meyering  <meyering@lucent.com>
88272
88273         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
88274
88275 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
88276
88277         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
88278         last one in a bucket, advance to the next bucket.
88279
88280 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
88281
88282         * lib/fnmatch.c: Do not comment out all the code if we are using
88283         the GNU C library, because in some cases we are replacing buggy
88284         code in the GNU C library itself.
88285
88286 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
88287
88288         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
88289         (regex_compile): Catch bogus \(\1\).
88290
88291 2000-10-30  Paul Eggert  <eggert@twinsun.com>
88292
88293         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
88294         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
88295         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
88296
88297 2000-10-30  Paul Eggert  <eggert@twinsun.com>
88298
88299         * lib/error.h, getline.h, modechange.h:
88300         Remove "2000" from Copyright line, as the file hasn't been
88301         changed this year other than in the copyright notice.
88302
88303         * lib/xalloc.h: Add "2000" to Copyright line, as this file
88304         was changed this year.
88305
88306 2000-10-29  Jim Meyering  <meyering@lucent.com>
88307
88308         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
88309         renaming.
88310         * m4/ls-mntd-fs.m4: Likewise
88311
88312 2000-10-29  Jim Meyering  <meyering@lucent.com>
88313
88314         * lib/xstat.in: Fix grammar in comment.
88315
88316 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
88317
88318         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
88319         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
88320         doesn't define __restrict_arr.
88321
88322 2000-10-28  Jim Meyering  <meyering@lucent.com>
88323
88324         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
88325         (jm_PREREQ_MEMCHR): New function.
88326
88327 2000-10-28  Jim Meyering  <meyering@lucent.com>
88328
88329         * lib/memchr.c: Update from libc.
88330         Adjust for portability:
88331         [HAVE_STDLIB_H]: Include stdlib.h.
88332         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
88333         Undef __memchr, too.
88334         [!weak_alias]: Define __memchr to memchr.
88335
88336         * lib/regex.c: Update from libc.
88337         * lib/regex.h: Likewise.
88338         * lib/getopt1.c: Likewise.
88339         * lib/memcmp.c: Likewise.
88340
88341         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
88342         Avoid using fseek, when possible -- it's broken by design.
88343         Patch by Ulrich Drepper.
88344
88345 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
88346
88347         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
88348         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
88349         Giving in to popular pressure to shut up the compiler with casts.
88350
88351 2000-10-26  Jim Meyering  <meyering@lucent.com>
88352
88353         * lib/strftime.c: Update from libc.
88354
88355 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
88356
88357         * regex.c: More `unsigned char' -> `re_char' changes.
88358         Also change several `int' into `re_wchar_t'.
88359         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
88360         (PUSH_FAILURE_POINTER): Don't cast any more.
88361         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
88362         We want GCC to complain, since this piece of code makes
88363         re_match non-reentrant, which *should* be fixed.
88364         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
88365         (EXTEND_BUFFER): Use RETALLOC.
88366         (SET_LIST_BIT): Don't cast.
88367         (re_wchar_t): New type.
88368         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
88369         that those two functions will always properly return.
88370         (IMMEDIATE_QUIT_CHECK): Cast to void.
88371         (analyse_first): Use recursion rather than an explicit stack.
88372         (re_compile_fastmap): Can't fail anymore.
88373         (re_search_2): Don't check re_compile_fastmap for failure.
88374         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
88375         Now also sets the new value (passed in a new argument).
88376         (re_match_2_internal): Use it.
88377         Also, use a new var `reg' of type size_t when looping through regs
88378         rather than reuse the inappropriate `mcnt'.
88379
88380 2000-10-25  Jim Meyering  <meyering@lucent.com>
88381
88382         * lib/obstack.c: Update from libc.
88383
88384 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
88385
88386         * regex.c (regex_compile): Change the way of handling a range from
88387         a char less than 256 to a char not less than 256.
88388
88389 2000-10-24  Andrew Innes  <andrewi@gnu.org>
88390
88391         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
88392         NT-Emacs only.
88393         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
88394         so that re_search functions only quit when callers expect them to.
88395
88396 2000-10-23  Jim Meyering  <meyering@lucent.com>
88397
88398         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
88399         wrong.  That set_locale call must not have any side effects.
88400         From Paul Eggert.
88401
88402 2000-10-22  Jim Meyering  <meyering@lucent.com>
88403
88404         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
88405         [CYCLIC]: Remove now-unused definition.
88406
88407         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
88408         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
88409         Suggestion from Ulrich Drepper.
88410
88411 2000-10-21  Jim Meyering  <meyering@lucent.com>
88412
88413         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
88414         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
88415         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
88416
88417 2000-10-21  Jim Meyering  <meyering@lucent.com>
88418
88419         * lib/dirname.c (memrchr): Declare if necessary.
88420         (dir_name): Remove the restriction that there be no
88421         trailing slashes.  Now, this code skips past them, effectively
88422         ignoring them.
88423         [TEST_DIRNAME] (main): New unit tests.
88424
88425         * lib/memrchr.c: New file from GNU libc.
88426         Undef __memrchr, too.
88427         [!weak_alias]: Define __memrchr to memrchr.
88428         Guard weak_alias use with `#ifdef weak_alias'.
88429
88430 2000-10-21  Jim Meyering  <meyering@lucent.com>
88431
88432         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
88433         (dir_name): Use dir_name_r.
88434         * lib/dirname.h (dir_name_r): Declare it.
88435
88436 2000-10-17  Jim Meyering  <meyering@lucent.com>
88437
88438         * lib/quote.h (PARAMS): Define and use.
88439         Reported by Akim Demaille.
88440
88441         * lib/getopt.c: Update from libc.
88442
88443 2000-10-16  Jim Meyering  <meyering@lucent.com>
88444
88445         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
88446         setlocale.
88447         From Jan Fedak.
88448
88449 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
88450
88451         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
88452
88453 2000-09-25  Jim Meyering  <meyering@lucent.com>
88454
88455         * lib/md5.h (rol): Define (from GnuPG).
88456
88457         * lib/sha.c: Give credit (GnuPG) where due.
88458         (M): Use rol rather than open-coding it.
88459         Add a FIXME comment.
88460
88461 2000-09-21  Jim Meyering  <meyering@lucent.com>
88462
88463         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
88464         Reported by Michael Stone.
88465
88466 2000-09-20  Jim Meyering  <meyering@lucent.com>
88467
88468         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
88469         (noinst_HEADERS): Add sha.h.
88470         Based on code from Scott G. Miller and from GnuPG.
88471
88472 2000-09-18  Jim Meyering  <meyering@lucent.com>
88473
88474         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
88475         LIBS. Otherwise, everyone ends up linking with -lelf for some
88476         configurations.
88477         Reported by Mike Stone.
88478
88479 2000-09-15  Jim Meyering  <meyering@lucent.com>
88480
88481         * lib/regex.c: Update from libc.
88482
88483 2000-09-10  Jim Meyering  <meyering@lucent.com>
88484
88485         * lib/getopt.c (_getopt_internal): Update from glibc.
88486
88487 2000-09-09  Jim Meyering  <meyering@lucent.com>
88488
88489         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
88490         think it should be used as a general replacement for isascii.
88491         * lib/fnmatch.c: Likewise.
88492         * lib/mbswidth.c: Likewise
88493         * lib/regex.c: Likewise.
88494
88495         Don't use atoi.
88496         * lib/userspec.c: Include sys/param.h and limits.h.
88497         Include xstrtol.h.
88498         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
88499         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
88500         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
88501         UID, GID.  Check range.
88502
88503 2000-09-06  Jim Meyering  <meyering@lucent.com>
88504
88505         * lib/getopt.c (_getopt_internal): Update from glibc.
88506
88507 2000-08-30  Jim Meyering  <meyering@lucent.com>
88508
88509         * lib/strftime.c: Merge in changes from GNU libc.
88510
88511 2000-08-26  Jim Meyering  <meyering@lucent.com>
88512
88513         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
88514         * m4/fpending.m4: New file.
88515
88516 2000-08-26  Jim Meyering  <meyering@lucent.com>
88517
88518         * lib/closeout.c: Include "__fpending.h".
88519         (close_stdout_status): Return right away if there's nothing to flush.
88520
88521         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
88522         * lib/__fpending.c: New file.
88523         * lib/__fpending.h: New file.
88524
88525 2000-08-20  Jim Meyering  <meyering@lucent.com>
88526
88527         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
88528         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
88529         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
88530
88531 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
88532
88533         Improve fileutils installation on systems where running
88534         programs (like install) can't be unlinked.
88535         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
88536         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
88537
88538 2000-08-07  Paul Eggert  <eggert@twinsun.com>
88539
88540         Standardize on "memory exhausted" instead of "Memory exhausted"
88541         or "virtual memory exhausted".
88542         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
88543         "virtual memory exhausted".
88544         * lib/same.c (same_name): Invoke xalloc_die instead of printing
88545         our own message.
88546         * lib/userspec.c (parse_user_spec): Likewise.
88547         * lib/bumpalloc.h: comment fix
88548         * lib/same.c, userspec.c: Include xalloc.h.
88549
88550         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
88551         not char *const and pointing to a constant array.
88552         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
88553         (xrealloc): Comment fix.
88554
88555         * lib/userspec.c (parse_user_spec):
88556         Don't translate a message until just before returning,
88557         to avoid unnecessary translation.
88558
88559 2000-08-07  Jim Meyering  <meyering@lucent.com>
88560
88561         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
88562         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
88563         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
88564         getgroups.c, gethostname.c, getopt.h, group-member.c,
88565         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
88566         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
88567         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
88568         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
88569         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
88570         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
88571         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
88572         yesno.c: Back out Copyright date changes for each file with no change
88573         this year.  This eases coordination with other programs using the same
88574         source code modules.  From Paul Eggert.
88575
88576 2000-08-06  Paul Eggert  <eggert@twinsun.com>
88577
88578         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
88579         not char, for compatibility with glibc 2.1.3 strftime.c.
88580
88581 2000-08-03  Greg McGary  <greg@mcgary.org>
88582
88583         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
88584         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
88585         (EXTEND_BUFFER): Use them.
88586
88587 2000-08-01  Jim Meyering  <meyering@lucent.com>
88588
88589         * lib/dirname.c (ISSLASH): Define.
88590         (BACKSLASH_IS_PATH_SEPARATOR): Define.
88591         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
88592         both `\' and `/' may be use as path separators.
88593         Based on a patch from Prashant TR.
88594
88595 2000-07-31  Paul Eggert  <eggert@twinsun.com>
88596
88597         * lib/quotearg.c (quotearg_n_options): Don't make the initial
88598         slot vector a constant, since it might get modified.
88599
88600 2000-07-31  Jim Meyering  <meyering@lucent.com>
88601
88602         * lib/xmalloc.c: Use `virtual memory exhausted', not
88603         `Memory exhausted'.
88604         * lib/obstack.c (print_and_abort): Likewise.
88605
88606 2000-07-30  Paul Eggert  <eggert@twinsun.com>
88607
88608         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
88609         buffer, so that the caller can always quote one small
88610         component of a "memory exhausted" message in slot 0.
88611         From a suggestion by Jim Meyering.
88612
88613 2000-07-30  Jim Meyering  <meyering@lucent.com>
88614
88615         * lib/makepath.c (make_path): Quote the other instance, too.
88616
88617         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
88618         (STATIC_BUF_SIZE): Define.
88619         (quotearg_n_options): Use only statically allocated storage when
88620         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
88621         than STATIC_BUF_SIZE.
88622
88623 2000-07-29  Jim Meyering  <meyering@lucent.com>
88624
88625         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
88626         * lib/dirname.c (dir_name): Likewise.
88627
88628         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
88629         `/'.
88630
88631         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
88632         (dir_name): Assert that there are no trailing slashes.
88633
88634 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
88635
88636         * lib/mbswidth.h (mbswidth): Add a flags argument.
88637         (mbswidth): New declaration.
88638         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
88639         * lib/mbswidth.c (mbswidth): Add a flags argument.
88640         (mbsnwidth): New function.
88641
88642 2000-07-24  Jim Meyering  <meyering@lucent.com>
88643
88644         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
88645
88646 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88647
88648         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
88649
88650 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88651
88652         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
88653         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
88654         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
88655         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
88656         invoke multibyte primitives.
88657
88658 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88659
88660         * lib/quotearg.c:
88661         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
88662         so that mbstate_t is always defined.
88663
88664         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
88665         be 1 in at least one GCC installation, and this configuration
88666         error is likely to be common.  Ignoring MB_LEN_MAX hurts
88667         performance on hosts that have mbrtowc but have only unibyte
88668         locales, but I assume these hosts are rare.
88669
88670 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88671
88672         * lib/mbswidth.c (_XOPEN_SOURCE):
88673         Don't define; this causes problems on Solaris 7.
88674         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
88675
88676 2000-07-23  Jim Meyering  <meyering@lucent.com>
88677
88678         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
88679         too: getgrgid, getpwuid, getuid.
88680
88681 2000-07-23  Jim Meyering  <meyering@lucent.com>
88682
88683         * lib/basename.c (base_name): Add an assertion.
88684
88685 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
88686
88687         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
88688         shadow its mbsinit function.
88689
88690 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
88691
88692         * lib/mbswidth.h: New file.
88693         * lib/mbswidth.c: New file.
88694         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
88695         (noinst_HEADERS): Add mbswidth.h.
88696
88697 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
88698
88699         * lib/config.charset: Add support for FreeBSD. Improve support for
88700         HP-UX and IRIX 6.
88701
88702 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
88703
88704         * m4/mbswidth.m4: New file.
88705         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
88706
88707 2000-07-15  Jim Meyering  <meyering@lucent.com>
88708
88709         * lib/makepath.c: Include quote.h.
88710         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
88711         corresponding argument in a `quote (...)' call.
88712         Give better diagnostics.
88713
88714         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
88715         (noinst_HEADERS): Add quote.h.
88716
88717         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
88718         from tar's src/misc.c.
88719         * lib/quote.h: New file.  Prototypes for same.
88720
88721 2000-07-14  Paul Eggert  <eggert@twinsun.com>
88722
88723         From a suggestion by Bruno Haible.
88724         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
88725         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
88726         to decide whether to define the BeOS workaround macro;
88727         this adjusts to the change to AC_MBSTATE_T.
88728
88729 2000-07-14  Jim Meyering  <meyering@lucent.com>
88730
88731         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
88732         jm_AC_TYPE_UINTMAX_T.
88733
88734 2000-07-13  Paul Eggert  <eggert@twinsun.com>
88735
88736         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
88737
88738         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
88739         quotearg_buffer_restyled): Add support for
88740         clocale_quoting_style.  Undo previous change to
88741         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
88742         and "{RIGHT QUOTATION MARK}" msgids.
88743
88744 2000-07-10  Paul Eggert  <eggert@twinsun.com>
88745
88746         From a suggestion by Bruno Haible.
88747         * m4/mbstate_t.m4 (AC_MBSTATE_T):
88748         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
88749         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
88750         and mbstate_t, to a single-part test that simply defines mbstate_t.
88751         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
88752         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
88753
88754 2000-07-10  Jim Meyering  <meyering@lucent.com>
88755
88756         * m4/strerror_r.m4: Mirror the correction made in autoconf.
88757
88758         * m4/gnu-source.m4: Output to confdefs.h directly.
88759         Suggestion from Akim Demaille.
88760
88761 2000-07-09  Paul Eggert  <eggert@twinsun.com>
88762
88763         The old behavior of quoting `like this' doesn't look good with
88764         newer, ISO-style fonts.  See:
88765         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
88766
88767         Instead, quote "like this" by default.  Let the translator
88768         tailor the locale-specific quoting behavior by providing
88769         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
88770
88771         * lib/quotearg.c (N_): New macro.
88772         (gettext_default): New function.
88773         (quotearg_buffer_restyled): Use
88774         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
88775         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
88776
88777 2000-07-09  Jim Meyering  <meyering@lucent.com>
88778
88779         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
88780         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
88781
88782         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
88783         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
88784
88785 2000-07-09  Jim Meyering  <meyering@lucent.com>
88786
88787         * lib/Most files: Update copyright dates to include 2000.
88788
88789 2000-07-08  Jim Meyering  <meyering@lucent.com>
88790
88791         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
88792         if not defined.
88793         (xgethostname): Remove now-unnecessary #ifdef.
88794         Move declaration of `err' into loop where it's used.
88795
88796 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88797         and Bruno Haible  <haible@clisp.cons.org>
88798
88799         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
88800         only if the test for an object-type mbstate_t fails.  This
88801         prevents us from mistakenly reporting that mbstate_t is a
88802         system object type after we "#define mbstate_t int" to work
88803         around its lack.
88804
88805 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88806         and Bruno Haible  <haible@clisp.cons.org>
88807
88808         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
88809
88810 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88811
88812         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
88813         to strerror_r.
88814         Include <ctype.h> for use of isalpha.
88815
88816 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88817
88818         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
88819         by allocating a larger buffer. Test the gethostname return value for
88820         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
88821         returns an error and ENAMETOOLONG isn't defined.
88822
88823 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88824
88825         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
88826         dimension.
88827
88828 2000-07-04  Jim Meyering  <meyering@lucent.com>
88829
88830         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
88831         of the deprecated AC_CHECKING.
88832
88833 2000-07-04  Jim Meyering  <meyering@lucent.com>
88834
88835         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
88836         Reported by Bruno Haible.
88837
88838 2000-07-04  Jim Meyering  <meyering@lucent.com>
88839
88840         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
88841         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
88842         lacks mbrtowc.
88843
88844 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88845
88846         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
88847         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
88848
88849 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88850         and Bruno Haible  <haible@clisp.cons.org>
88851
88852         * lib/quotearg.c (mbrtowc):
88853         Assign to *pwc, and return 1 only if result is nonzero.
88854         (iswprint): Use ISPRINT when substituting our own mbrtowc.
88855
88856 2000-07-03  Jim Meyering  <meyering@lucent.com>
88857
88858         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
88859
88860 2000-07-03  Jim Meyering  <meyering@lucent.com>
88861
88862         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
88863         This is necessary to get a definition of e.g., UTMP_FILE on
88864         HP-UX 10.20.
88865         From Bob Proulx.
88866
88867 2000-07-02  Jim Meyering  <meyering@lucent.com>
88868
88869         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
88870
88871         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
88872         AC_LIBOBJ(function_name).
88873         * m4/chown.m4: Likewise.
88874         * m4/fnmatch.m4: Likewise.
88875         * m4/ftruncate.m4: Likewise.
88876         * m4/getgroups.m4: Likewise.
88877         * m4/getline.m4: Likewise.
88878         * m4/group-member.m4: Likewise.
88879         * m4/jm-macros.m4: Likewise.
88880         * m4/lstat.m4: Likewise.
88881         * m4/malloc.m4: Likewise.
88882         * m4/memcmp.m4: Likewise.
88883         * m4/nanosleep.m4: Likewise.
88884         * m4/putenv.m4: Likewise.
88885         * m4/realloc.m4: Likewise.
88886         * m4/regex.m4: Likewise.
88887         * m4/stat.m4: Likewise.
88888         * m4/strftime.m4: Likewise.
88889
88890 2000-07-02  Jim Meyering  <meyering@lucent.com>
88891
88892         * lib/quotearg.c (mbstate_t): Don't define here.
88893
88894 2000-07-02  Jim Meyering  <meyering@lucent.com>
88895
88896         * lib/nanosleep.c (SIGCONT): Define if not already defined.
88897
88898 2000-07-01  Jim Meyering  <meyering@lucent.com>
88899
88900         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
88901
88902 2000-07-01  Jim Meyering  <meyering@lucent.com>
88903
88904         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
88905         problem.
88906
88907 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88908
88909         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
88910         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
88911
88912 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88913
88914         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
88915         per change in ../m4/ls-mntd-fs.m4.
88916         (read_filesystem_list): Ignore symbolic links.
88917
88918 2000-06-29  Jim Meyering  <meyering@lucent.com>
88919
88920         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
88921         for declaration of strcmp.
88922
88923         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
88924
88925         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
88926         Avoid warning by casting result to `char *' to remove `const'.
88927
88928 2000-06-28  Jim Meyering  <meyering@lucent.com>
88929
88930         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
88931         included by quotearg.c, for which we perform this test.  From
88932         Bruno Haible.
88933
88934 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88935
88936         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
88937         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
88938         <utmpx.h> exists, put readutmp.o into LIBOBJS.
88939
88940 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88941
88942         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
88943
88944 2000-06-26  Paul Eggert  <eggert@twinsun.com>
88945
88946         savedir now sets errno on failure and invokes xmalloc to get memory.
88947         Fix a couple of other minor bugs while we're at it.
88948
88949         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
88950         (NAMLEN): Remove macro.
88951         (malloc, realloc): Remove decls.
88952         (stpcpy): Likewise.
88953         ("xalloc.h"): Include.
88954         (NAME_SIZE_DEFAULT): New macro.
88955         (savedir): Use xmalloc / xrealloc to allocate memory.
88956         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
88957         Skip "" directory entries.
88958         Use strlen to calculate directory entry length, since the old method
88959         is rarely used these days and isn't worth supporting.
88960         Don't use a pointer after freeing it.
88961         Check for integer overflow when calculating allocation size.
88962         Use memcpy to copy entries, instead of stpcpy.
88963         Set errno properly when returning NULL.
88964         Check for readdir error.
88965
88966 2000-06-26  Jim Meyering  <meyering@lucent.com>
88967
88968         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
88969
88970 2000-06-25  Jim Meyering  <meyering@lucent.com>
88971
88972         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
88973         Linux header bug when _XOPEN_SOURCE is defined to 500.
88974
88975 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88976
88977         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
88978         deficiency.
88979
88980 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88981
88982         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
88983         Include xalloc.h.
88984         Don't include <stdlib.h>.  Don't declare malloc, realloc.
88985
88986 2000-06-24  Jim Meyering  <meyering@lucent.com>
88987
88988         * m4/strerror_r.m4: Revive this file -- to try out an experimental
88989         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
88990         for which strerror does return char*, but which lacks a conveniently
88991         accessible declaration of the function.  If the compile-test says
88992         strerror_r doesn't work, then resort to a `run'-test that works on
88993         BeOS and segfaults on DEC Unix.
88994
88995 2000-06-24  Jim Meyering  <meyering@lucent.com>
88996
88997         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
88998
88999 2000-06-23  Paul Eggert  <eggert@twinsun.com>
89000
89001         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
89002         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
89003
89004 2000-06-23  Paul Eggert  <eggert@twinsun.com>
89005
89006         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
89007         (mbrtowc, mbstate_t): Define substitutes if
89008         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
89009         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
89010         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
89011
89012 2000-06-23  Jim Meyering  <meyering@lucent.com>
89013
89014         * m4/afs.m4: Add missing AC_MSG_RESULT.
89015         Reported by Bruno Haible.
89016
89017         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
89018         Suggestion from Bruno Haible.
89019
89020 2000-06-23  Jim Meyering  <meyering@lucent.com>
89021
89022         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
89023
89024 2000-06-21  Jim Meyering  <meyering@lucent.com>
89025
89026         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
89027
89028 2000-06-21  Jim Meyering  <meyering@lucent.com>
89029
89030         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
89031         (noinst_HEADERS): Add getstr.h.
89032
89033         * lib/getline.c (getstr): Move into a separate file.
89034         * lib/getstr.c (getstr): New file, extracted from getline.c, with
89035         the following changes: new parameter, delim2; both delim[12]
89036         parameters have type `int', not `char'.  The latter would lose
89037         with 8-bit delimiters.
89038         * lib/getstr.h: New file.
89039
89040 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89041
89042         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
89043         than 1024, return a memory chunk of least possible size, instead
89044         of size PATH_MAX + 2. In the loop, increment the size proportionally.
89045         Use free/xmalloc instead of xrealloc to avoid copying for very long
89046         paths.
89047
89048 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89049
89050         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
89051         the empty string.
89052
89053 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89054
89055         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
89056         address, not strdup.  Include <stdlib.h> and don't declare free().
89057
89058 2000-06-19  Jim Meyering  <meyering@lucent.com>
89059
89060         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
89061
89062 2000-06-18  Jim Meyering  <meyering@lucent.com>
89063
89064         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
89065
89066         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
89067         `checking whether...' message to be consistent with that of the
89068         lstat test.
89069
89070 2000-06-18  Jim Meyering  <meyering@lucent.com>
89071
89072         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
89073         Besides, these days every porting target provides a mkdir function.
89074
89075         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
89076         needed. (this snippet comes from src/system.h).
89077
89078 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
89079
89080         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
89081
89082 2000-06-15  Paul Eggert  <eggert@twinsun.com>
89083
89084         * lib/human.c (adjust_value): New function.
89085         (human_readable_inexact): Apply rounding style even when
89086         printing approximate values.
89087
89088 2000-06-14  Paul Eggert  <eggert@twinsun.com>
89089
89090         * lib/human.c (human_readable_inexact): Allow an input block
89091         size that is not a multiple of the output block size, and vice versa.
89092         Reported by Piergiorgio Sartor.
89093
89094 2000-06-14  Paul Eggert  <eggert@twinsun.com>
89095
89096         * lib/getdate.y (get_date): Apply relative times after time
89097         zone indicator, not before.  Reported by Todd A. Jacobs.
89098
89099 2000-06-13  Jim Meyering  <meyering@lucent.com>
89100
89101         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
89102
89103         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
89104
89105 2000-06-12  Paul Eggert  <eggert@twinsun.com>
89106
89107         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
89108
89109 2000-06-12  Jim Meyering  <meyering@lucent.com>
89110
89111         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
89112         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
89113         optional argument.
89114         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
89115         the optional argument, `lib'.
89116
89117 2000-06-08  Jim Meyering  <meyering@lucent.com>
89118
89119         * m4/largefile.m4: Remove file (now that it's part of autoconf).
89120
89121 2000-06-04  Paul Eggert  <eggert@twinsun.com>
89122
89123         Rewrite largefile configuration so that we don't need to run
89124         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
89125         AC_CANONICAL_HOST in configure.in -- jmm]
89126
89127         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
89128         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
89129         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
89130         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
89131         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
89132         All uses changed.
89133         Instead of inspecting the output of getconf, try to compile the
89134         test program without and with the macro definition.
89135         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
89136         for getconf.  Instead, check for the needed flags by compiling
89137         test programs.
89138
89139 2000-06-04  Paul Eggert  <eggert@twinsun.com>
89140
89141         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
89142
89143 2000-06-04  Jim Meyering  <meyering@lucent.com>
89144
89145         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
89146         SunOS 4.1.4 for which gid_t is an unsigned type.
89147
89148 2000-06-03  Jim Meyering  <meyering@lucent.com>
89149
89150         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
89151         now that autoconf requires that.
89152
89153         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
89154         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
89155         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
89156
89157 2000-06-03  Jim Meyering  <meyering@lucent.com>
89158
89159         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
89160
89161 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
89162
89163         * m4/glibc21.m4: New file.
89164         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
89165
89166 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
89167
89168         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
89169         newer, don't install charset.alias.
89170         * lib/config.charset: Change the Linux/glibc rules so they become empty
89171         on glibc-2.1 or newer.
89172
89173 2000-06-02  Jim Meyering  <meyering@lucent.com>
89174
89175         * lib/mountlist.c: Back out last change.  Instead, do this...
89176         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
89177         me_dummy member using the same `ignore'-testing code.
89178         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
89179         fs_type strings.
89180         From Mark D. Roth.
89181
89182 2000-05-29  Jim Meyering  <meyering@lucent.com>
89183
89184         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
89185         mounts with the `ignore' attribute.  Based on a patch from
89186         Mark D. Roth.
89187
89188 2000-05-28  Jim Meyering  <meyering@lucent.com>
89189
89190         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
89191         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89192         * m4/stat.m4: Likewise.
89193         * m4/lstat.m4: Likewise.
89194         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
89195
89196         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
89197         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
89198
89199 2000-05-26  Jim Meyering  <meyering@lucent.com>
89200
89201         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
89202
89203 2000-05-24  Jim Meyering  <meyering@lucent.com>
89204
89205         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
89206         autoconf requires that.
89207         * m4/lib-check.m4: Likewise.
89208         * m4/jm-macros.m4: Likewise.
89209         * m4/strftime.m4: Likewise.
89210
89211         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
89212         AC_CHECK_DECLS, now that autoconf requires that.
89213
89214 2000-05-22  Jim Meyering  <meyering@lucent.com>
89215
89216         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89217         * m4/lstat.m4: Likewise.
89218
89219 2000-05-22  Jim Meyering  <meyering@lucent.com>
89220
89221         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
89222
89223 2000-05-20  Jim Meyering  <meyering@lucent.com>
89224
89225         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
89226         (jm_PREREQ): Use it.
89227
89228 2000-05-18  Jim Meyering  <meyering@lucent.com>
89229
89230         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
89231         back, too, since it may have been modified by allocate_entry.
89232         (hash_delete): Rewrite to use neither the assignment operator
89233         nor the comma operator in an if-expression.
89234
89235 2000-05-15  Paul Eggert  <eggert@twinsun.com>
89236
89237         * lib/closeout.c:
89238         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
89239         Remove; no longer needed.
89240         "quotearg.h": Add include.
89241         (file_name): Do not bother to explicitly initialize to NULL; it's less
89242         efficient on some hosts.
89243         (close_stdout_status): Remove test as to whether stdout was already
89244         closed; it breaks for the case "echo x | sort >&-".
89245         Quote file name colons.
89246         Do not assume that _("write error") lacks format strings.
89247
89248 2000-05-15  Jim Meyering  <meyering@lucent.com>
89249
89250         * lib/version-etc.c (version_etc_copyright): Update the copyright
89251         string used in all --version output.
89252
89253 2000-05-14  Jim Meyering  <meyering@lucent.com>
89254
89255         * lib/closeout.c (close_stdout_set_file_name): New function.
89256         (close_stdout_status): Use new file-scoped global.
89257         Return right away if fstat says the stdout file descriptor is invalid.
89258         * lib/closeout.h (close_stdout_set_file_name): Declare.
89259
89260 2000-05-10  Jim Meyering  <meyering@lucent.com>
89261
89262         * lib/closeout.c [default_exit_status]: New file-scoped variable.
89263         (close_stdout_set_status): New function.
89264         * lib/closeout.h (close_stdout_set_status): Declare.
89265
89266 2000-05-09  Jim Meyering  <meyering@lucent.com>
89267
89268         * m4/gettext.m4: Rename this...
89269         * m4/libintl.m4: ...to this.
89270
89271 2000-05-08  Jim Meyering  <meyering@lucent.com>
89272
89273         * lib/long-options.c: Don't include closeout.h.
89274         (parse_long_options): Don't call close_stdout for --version.
89275
89276 2000-05-06  Paul Eggert  <eggert@twinsun.com>
89277
89278         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
89279         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
89280         2.1.3 bug.  This avoids a clash when files like regex.c define
89281         _GNU_SOURCE.
89282
89283 2000-05-06  Jim Meyering  <meyering@lucent.com>
89284
89285         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
89286         (AC_REPLACE_FUNCS): Add strnlen.
89287
89288         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
89289         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
89290
89291         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
89292         AC_SEARCH_LIBS call for nanosleep.
89293         (LIB_NANOSLEEP): Set and AC_SUBST.
89294
89295 2000-05-06  Jim Meyering  <meyering@lucent.com>
89296
89297         * lib/strnlen.c: Undefine __strnlen and strnlen.
89298         [!weak_alias]: Define __strnlen to strnlen.
89299
89300         * lib/atexit.c: New file, from libiberty.
89301
89302 2000-05-06  Jim Meyering  <meyering@lucent.com>
89303
89304         * lib/closeout.c (close_stdout_status): Also check for errors on the
89305         stderr stream.
89306
89307 2000-05-05  Jim Meyering  <meyering@lucent.com>
89308
89309         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
89310         AC_SEARCH_LIBS call for clock_gettime.
89311         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
89312
89313         * m4/search-libs.m4: Update from autoconf.
89314
89315         su doesn't work on Solaris 2.6.
89316         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
89317         <shadow.h>.  Reported by Dragos Harabor.
89318
89319 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
89320
89321         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
89322         memcpy instead of xmalloc, xrealloc, path_concat.
89323         (locale_charset): Treat empty environment variables as absent.
89324         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
89325
89326 2000-05-04  Jim Meyering  <meyering@lucent.com>
89327
89328         * lib/getopt.c: Update from glibc.
89329         * lib/obstack.c: Likewise.
89330         * lib/obstack.h: Likewise.
89331         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
89332         file
89333
89334         * lib/regex.h: Likewise.
89335         * lib/strndup.c: Likewise.
89336         * lib/strnlen.c: New file, from glibc.
89337
89338 2000-05-03  Jim Meyering  <meyering@lucent.com>
89339
89340         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
89341
89342 2000-05-02  Paul Eggert  <eggert@twinsun.com>
89343
89344         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
89345         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
89346         compile-time test, rather than inspecting host and OS, to
89347         decide whether to define _LARGEFILE_SOURCE.
89348
89349 2000-05-01  Jim Meyering  <meyering@lucent.com>
89350
89351         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
89352
89353         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
89354         Based on a patch from Bruno Haible.
89355
89356 2000-05-01  Jim Meyering  <meyering@lucent.com>
89357
89358         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
89359
89360 2000-04-29  Jim Meyering  <meyering@lucent.com>
89361
89362         * lib/path-concat.c: Declare strdup only if it's not defined.
89363         * lib/canon-host.c: Likewise.
89364
89365 2000-04-28  Jim Meyering  <meyering@lucent.com>
89366
89367         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
89368         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
89369         is included first, then limits.h is included by locale.h by libintl.h.
89370         From John David Anglin.
89371
89372 2000-04-25  Jim Meyering  <meyering@lucent.com>
89373
89374         * lib/makepath.c (S_IRWXUGO): Define.
89375         (make_path): Always perform explicit chmod if MODE specifies any
89376         of the `special' permission bits.  Prompted by a bug report against
89377         install from Mate Wierdl and Joost van Baal.
89378
89379 2000-04-18  Jim Meyering  <meyering@lucent.com>
89380
89381         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
89382         (jm_PREREQ): Use it.
89383
89384 2000-04-18  Jim Meyering  <meyering@lucent.com>
89385
89386         * lib/README: New file.
89387
89388         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
89389         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
89390
89391 2000-04-17  Jim Meyering  <meyering@lucent.com>
89392
89393         Get it right :-)
89394         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
89395         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
89396         Suggestion from Akim Demaille.
89397
89398 2000-04-17  Jim Meyering  <meyering@lucent.com>
89399
89400         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
89401         the definition of it to rpl_strftime also defined-away the system's
89402         declaration.
89403
89404 2000-04-15  Jim Meyering  <meyering@lucent.com>
89405
89406         Use `C' to denote so-called `contiguous' files, the same way
89407         that tar does.
89408         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
89409         (ftypelet): Use S_ISCTG.
89410         From Michael Deutschmann.
89411
89412 2000-04-14  Jim Meyering  <meyering@lucent.com>
89413
89414         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
89415         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
89416         clobbered.
89417
89418 2000-04-14  Jim Meyering  <meyering@lucent.com>
89419
89420         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
89421
89422 2000-04-13  Jim Meyering  <meyering@lucent.com>
89423
89424         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
89425         AH_VERBATIM to insert required #ifndef into config.h.in.
89426         Suggestion from Akim Demaille.
89427
89428 2000-04-12  Jim Meyering  <meyering@lucent.com>
89429
89430         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
89431         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
89432         Christian Krackowizer.
89433
89434         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
89435         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
89436         (AC_SYS_LARGEFILE): Require.
89437         (AM_C_PROTOTYPES): Require.
89438
89439 2000-04-08  Jim Meyering  <meyering@lucent.com>
89440
89441         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
89442         names don't conflict.  Reported by Eli Zaretskii.
89443
89444 2000-04-07  Jim Meyering  <meyering@lucent.com>
89445
89446         * lib/putenv.c: Move inclusion of errno.h so it follows that of
89447         sys/types.h, to work around system header problems on AIX 3.2.5.
89448         From Bruno Haible.
89449
89450 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
89451
89452         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
89453         bug.  Deal with the different error behavior of Irix iconv.
89454
89455 2000-04-05  Paul Eggert  <eggert@twinsun.com>
89456
89457         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
89458         IRIX if the installer said otherwise.
89459
89460 2000-04-05  Jim Meyering  <meyering@lucent.com>
89461
89462         Portability tweaks required for ultrix4.3.
89463         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
89464         (jm_CHECK_DECLS): Add getutent to the list of functions.
89465         (_jm_DECL_HEADERS): Add utmpx.h.
89466         From John David Anglin.
89467
89468         * m4/strftime.m4: Back out the 2000-04-02 change.
89469         Instead of that change, simply undefine putenv in the test program.
89470
89471 2000-04-05  Jim Meyering  <meyering@lucent.com>
89472
89473         Portability tweaks required for ultrix4.3.
89474         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
89475         getutent.
89476         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
89477         * lib/canon-host.c: Declare strdup.
89478         * lib/path-concat.c: Likewise.
89479         From John David Anglin.
89480
89481 2000-04-04  Jim Meyering  <meyering@lucent.com>
89482
89483         Be more DOS 8.3-friendly.
89484         * lib/ref-add.sin: Renamed from ref-add.sed.in.
89485         * lib/ref-del.sin: Renamed from ref-del.sed.in.
89486         * lib/Makefile.am: Reflect renaming.
89487         Reported by Eli Zaretskii.
89488
89489         Use a temporary file name that won't clash with `charset.alias'
89490         in the DOS 8.3 name space.
89491         * lib/Makefile.am (charset_tmp): Define.
89492         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
89493         (uninstall-local): Likewise.
89494         Reported by Eli Zaretskii.
89495
89496 2000-04-03  Jim Meyering  <meyering@lucent.com>
89497
89498         * m4/gettext.m4: Fix typo in comment.
89499
89500         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
89501         textutils/configure.in).  Suggestion from Paul Eggert.
89502         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
89503
89504 2000-04-02  Paul Eggert  <eggert@twinsun.com>
89505
89506         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
89507         variable in the shell rather than using putenv, which isn't
89508         portable.  This avoids the configure-time inter-test dependency
89509         on the potentially-renamed putenv function.
89510
89511 2000-03-30  Paul Eggert  <eggert@twinsun.com>
89512
89513         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
89514         before checking struct stat.st_blksize, so that
89515         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
89516
89517 2000-03-29  Paul Eggert  <eggert@twinsun.com>
89518
89519         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
89520         since strftime.c uses HAVE_STRFTIME to decide whether to use
89521         the underlying strftime.
89522
89523 2000-03-29  Paul Eggert  <eggert@twinsun.com>
89524
89525         * lib/time/strftime.c (my_strftime): Make sure we call the system
89526         strftime, not ourselves, when invoking the underlying strftime.
89527
89528 2000-03-24  Jim Meyering  <meyering@lucent.com>
89529
89530         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
89531         (charset_alias): Define.
89532         (install-exec-local): Factor out common code.
89533         (uninstall-local): Split lines longer than 80.
89534         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
89535         (SUFFIXES): Define.
89536         (.sed.in.sed): New rule.  Don't redirect directly to $@.
89537         (CLEANFILES): Add ref-add.sed and ref-del.sed.
89538
89539 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
89540
89541         * lib/config.charset: Output a line containing "Packages using this
89542         file".
89543         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
89544         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
89545         ref-del.sed): New rules.
89546
89547 2000-03-17  Jim Meyering  <meyering@lucent.com>
89548
89549         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
89550         Otherwise, include <strings.h>
89551
89552 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
89553
89554         * lib/unicodeio.c (utf8_wctomb): New function.
89555         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
89556         format instead of in UCS-4 with platform dependent endianness.
89557
89558 2000-03-10  Jim Meyering  <meyering@lucent.com>
89559
89560         * m4/lib-check.m4: Look for getspnam in -lgen, too.
89561         From Marco Franzen.
89562
89563 2000-03-07  Paul Eggert  <eggert@twinsun.com>
89564
89565         * lib/savedir.c (savedir): Work even if directory size is
89566         negative; this can happen with some screwy NFS configurations.
89567
89568 2000-03-06  Jim Meyering  <meyering@lucent.com>
89569
89570         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
89571         if it's NULL (because we ran out of memory).  From Bruno Haible.
89572
89573 2000-03-05  Jim Meyering  <meyering@lucent.com>
89574
89575         * lib/localcharset.c ("path-concat.h"): Include.
89576         (get_charset_aliases): Use path_concat instead of ANSI string
89577         concatenation.
89578
89579         * lib/unicodeio.h (PARAMS): Define.
89580         Use it to guard prototype.
89581
89582 2000-03-04  Jim Meyering  <meyering@lucent.com>
89583
89584         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
89585         for lib/localcharset.c.
89586
89587 2000-03-04  Jim Meyering  <meyering@lucent.com>
89588
89589         * lib/Makefile.am (install-exec-local): Create $(libdir) before
89590         installing into it.
89591         (uninstall-local): Uncomment this rule so `make distcheck' works
89592         once again.
89593
89594         * lib/unicodeio.c (<errno.h>): Include it.
89595         (errno): Declare if not defined.
89596
89597         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
89598
89599         * lib/config.charset: New version, incorporating remarks from a linux
89600         i18n mailing list.  From Bruno Haible.
89601
89602 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
89603
89604         * m4/codeset.m4: New file.
89605         * m4/iconv.m4: New file.
89606         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
89607
89608 2000-03-03  Jim Meyering  <meyering@lucent.com>
89609
89610         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
89611
89612 2000-03-02  Jim Meyering  <meyering@lucent.com>
89613
89614         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
89615         the messages come out on separate lines.
89616
89617         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
89618         rather than jm_CHECK_DECLARATIONS.
89619         * m4/decl.m4: Remove now-unused file.
89620
89621         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
89622         geteuid.
89623
89624 2000-03-02  Jim Meyering  <meyering@lucent.com>
89625
89626         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
89627
89628 2000-03-01  Jim Meyering  <meyering@lucent.com>
89629
89630         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
89631         * lib/unicodeio.c: Likewise.
89632
89633 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
89634
89635         * lib/config.charset: New file.
89636         * lib/localcharset.c: New file.
89637         * lib/unicodeio.h, lib/unicodeio.c: New files.
89638         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
89639         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
89640         (noinst_HEADERS): Add unicodeio.h.
89641         (all-local, install-exec-local, charset.alias): New targets.
89642
89643 2000-02-28  Paul Eggert  <eggert@twinsun.com>
89644
89645         * lib/quotearg.c (ALERT_CHAR): New macro.
89646         (quotearg_buffer_restyled): Use it.
89647
89648 2000-02-27  Jim Meyering  <meyering@lucent.com>
89649
89650         * m4/check-decl.m4: Add getenv to the list.
89651
89652 2000-02-27  Jim Meyering  <meyering@lucent.com>
89653
89654         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
89655         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
89656
89657         * lib/backupfile.c: Guard inclusion of stdlib.h with
89658         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
89659         Declare malloc if needed.
89660
89661         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
89662         `#ifndef HAVE_DECL..'
89663         now that autoconf always defines the HAVE_DECL_ symbols.
89664         * lib/human.c: Likewise.
89665         * lib/same.c: Likewise.
89666         * lib/strtoumax.c: Likewise.
89667
89668         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
89669         declaration check was not run.
89670         * lib/hash.c: Likewise.
89671         * lib/human.c: Likewise.
89672         * lib/same.c: Likewise.
89673         * lib/strtoumax.c: Likewise.
89674
89675         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
89676         `.', then first look up the entire `.'-containing string as a login
89677         name.
89678
89679 2000-02-23  Jim Meyering  <meyering@lucent.com>
89680
89681         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
89682         in place of my hack.
89683
89684 2000-02-18  Paul Eggert  <eggert@twinsun.com>
89685
89686         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
89687         (textint): New typedef.
89688         (parser_control): Member year changed from int to textint.
89689         All uses changed.
89690         (YYSTYPE): Removed; replaced by %union with int and textint members.
89691         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
89692         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
89693         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
89694         (tSNUMBER, tUNUMBER): Now of type <textintval>.
89695         (date, number, to_year): Use width of number in digits, not its value,
89696         to determine whether it's a 2-digit year, or a 2-digit time.
89697         (yylex): Store number of digits of numeric tokens.
89698         Reported by John Kendall.
89699
89700         (parser_control): Changed from struct parser_control to typedef (for
89701         consistency).  All uses changed.
89702
89703         (tID): Removed; not used.
89704         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
89705
89706 2000-02-14  Paul Eggert  <eggert@twinsun.com>
89707
89708         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
89709         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
89710
89711 2000-02-12  Jim Meyering  <meyering@lucent.com>
89712
89713         * lib/userspec.c (ISDIGIT): Define it.
89714         (isdigit): Remove definition.
89715         (is_number): Use ISDIGIT, not isdigit.
89716         <libintl.h>: Include.
89717         (_ and N_): Define.
89718         (parse_user_spec): Mark translatable strings.
89719
89720 2000-02-10  Jim Meyering  <meyering@lucent.com>
89721
89722         With these changes, nanosleep.[ch] are finally enough like the other
89723         lib/* replacement files to compile on a few more losing systems.
89724
89725         * lib/nanosleep.h: Don't include config.h.
89726         Remove prototype from declaration of nanosleep.
89727         (PARAMS): Remove now-unneeded definition.
89728         * lib/nanosleep.c: #undef nanosleep.
89729         (rpl_nanosleep): Rename from nanosleep.
89730
89731 2000-02-10  Jim Meyering  <meyering@lucent.com>
89732
89733         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
89734         gnu_nanosleep to rpl_nanosleep.
89735
89736 2000-02-09  Jim Meyering  <meyering@lucent.com>
89737
89738         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
89739         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
89740
89741 2000-02-08  Akim Demaille  <akim@epita.fr>
89742
89743         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
89744         `[' and `]' and remove uses of `changequote'.
89745         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
89746         (AC_SYS_LARGEFILE): Likewise.
89747         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
89748         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
89749         of changequote.
89750         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
89751         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
89752         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
89753         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
89754
89755 2000-02-05  Jim Meyering  <meyering@lucent.com>
89756
89757         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
89758         Remove explicit use of AC_HEADER_TIME.  It is required by
89759         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
89760         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
89761         in autoconf whereby the expansion of the latter ended up preceding
89762         the expansion of its prerequisite, AC_HEADER_TIME.
89763         Reported by Volker Borchert.
89764
89765 2000-02-03  Jim Meyering  <meyering@lucent.com>
89766
89767         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
89768
89769 2000-02-03  Jim Meyering  <meyering@lucent.com>
89770
89771         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
89772         rather than with `#if HAVE_UTMPNAME'.
89773
89774 2000-02-02  Jim Meyering  <meyering@lucent.com>
89775
89776         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
89777         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
89778         Reported by Eli Zaretskii.
89779
89780 2000-02-01  Jim Meyering  <meyering@lucent.com>
89781
89782         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
89783
89784 2000-01-31  Jim Meyering  <meyering@lucent.com>
89785
89786         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
89787         functions.  Add the time.h and sys/time.h headers along with the
89788         AC_REQUIRE'ment of AC_HEADER_TIME.
89789
89790 2000-01-31  Jim Meyering  <meyering@lucent.com>
89791
89792         * lib/nanosleep.h (nanosleep): Guard declaration with
89793         `#if ! HAVE_DECL_NANOSLEEP'.
89794         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
89795         the declaration in that vendor's sys/timers.h.
89796         Reported by Christian Krackowizer.
89797
89798         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
89799         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
89800         (ISPRINT): Likewise.
89801         Reported by Tom Tromey.
89802
89803 2000-01-30  Jim Meyering  <meyering@lucent.com>
89804
89805         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
89806
89807         * m4/prereq.m4 (utmp_includes): Define.
89808         Check for ut_user and ut_name members in both struct utmpx
89809         and struct utmp.
89810
89811 2000-01-30  Jim Meyering  <meyering@lucent.com>
89812
89813         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
89814         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
89815         header files where only utmpx.ut_user is declared.
89816
89817         * lib/readutmp.h (UT_USER): Define.
89818
89819 2000-01-29  Jim Meyering  <meyering@lucent.com>
89820
89821         * m4/lib-check.m4: New file containing library-related checks from
89822         fileutils and sh-utils (textutils had none).
89823
89824 2000-01-28  Jim Meyering  <meyering@lucent.com>
89825
89826         * m4/perl.m4: Change format of warning message to look more like that
89827         from the missing script.  Suggestion from François Pinard.
89828
89829 2000-01-25  Jim Meyering  <meyering@lucent.com>
89830
89831         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
89832         well as time.h in the compile check.
89833         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
89834         Fix typo in cross-compiling case: s/yes/no/.
89835
89836 2000-01-23  Jim Meyering  <meyering@lucent.com>
89837
89838         * m4/jm-macros.m4: Move df-related tests here from
89839         fileutils/configure.in
89840
89841         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
89842         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
89843
89844         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
89845         s/space/ac_fsusage_space/.
89846         (jm_FILE_SYSTEM_USAGE): Take two parameters.
89847
89848         * m4/ftruncate.m4: New file (derived from part of
89849         fileutils/configure.in).
89850         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
89851         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
89852
89853         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
89854         AC_SUBST these here, rather than just in sh-util/configure.in, so
89855         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
89856         all the same.
89857         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
89858         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
89859         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
89860         (AC_SUBST(POW_LIBM)): Likewise.
89861         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
89862
89863 2000-01-23  Jim Meyering  <meyering@lucent.com>
89864
89865         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
89866         obstack.c.
89867
89868 2000-01-22  Jim Meyering  <meyering@lucent.com>
89869
89870         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
89871
89872         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
89873
89874         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
89875         configure.in
89876         (AC_CHECK_HEADERS): Likewise for sh-utils.
89877         (AC_CHECK_HEADERS): Likewise for textutils.
89878         Merge the three lists of headers.
89879
89880         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
89881         from fileutils' configure.in.
89882
89883         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
89884         code. Moved tests into their own function (_jm_DECL_HEADERS) in
89885         check-decl.m4.
89886
89887         * m4/check-decl.m4: Use #if rather than #ifdef.
89888         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
89889         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
89890         (_jm_DECL_HEADERS): Define new function.
89891         (jm_CHECK_DECLARATIONS): Require it.
89892
89893 2000-01-22  Jim Meyering  <meyering@lucent.com>
89894
89895         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
89896         [! HAVE_DECL_STRTOULL]: Declare strtoull.
89897         Required for some AIX systems.  Reported by Christian Krackowizer.
89898         [TESTING] (main): New function.
89899
89900         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
89901         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
89902         letters.
89903
89904         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
89905         iswprint.
89906
89907         * lib/strverscmp.c (ISDIGIT): Define.
89908         (strverscmp): Use ISDIGIT, not isdigit.
89909
89910 2000-01-19  Jim Meyering  <meyering@lucent.com>
89911
89912         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
89913         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
89914         defines `struct timespec' in <sys/time.h>
89915
89916         * m4/c-bs-a.m4: Remove uses of changequote altogether.
89917         Thanks to Akim for explaining.
89918
89919 2000-01-17  Paul Eggert  <eggert@twinsun.com>
89920
89921         * lib/nanosleep.c (nanosleep):
89922         Don't use SA_INTERRUPT to decide whether to call sigaction, as
89923         POSIX.1 doesn't require SA_INTERRUPT and some systems
89924         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
89925         it's been part of POSIX.1 since day 1 (in 1988).
89926
89927 2000-01-17  Jim Meyering  <meyering@lucent.com>
89928
89929         * lib/interlock: Remove unused file.  Reported by François Pinard.
89930
89931 2000-01-16  Paul Eggert  <eggert@twinsun.com>
89932
89933         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
89934         alert, backslash, formfeed, and vertical tab unnecessarily in
89935         shell quoting style.
89936
89937 2000-01-16  Jim Meyering  <meyering@lucent.com>
89938
89939         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
89940         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
89941         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
89942         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
89943
89944 2000-01-16  Jim Meyering  <meyering@lucent.com>
89945
89946         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
89947         because the latter didn't work.
89948
89949 2000-01-15  Jim Meyering  <meyering@lucent.com>
89950
89951         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
89952         (AC_REPLACE_FUNCS): Add memcpy and memset.
89953         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
89954         Add strpbrk.
89955         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
89956
89957 2000-01-12  Jim Meyering  <meyering@lucent.com>
89958
89959         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
89960         (jm_PREREQ): Use it.
89961         (jm_PREREQ_READUTMP): New macro.
89962         (jm_PREREQ): Use it.
89963
89964 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89965
89966         Quote multibyte characters correctly.
89967         * m4/c-bs-a.m4: New file.
89968         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
89969         (jm_PREREQ): Use it.
89970
89971 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89972
89973         * m4/uintmax_t.m4: Port to autoconf 2.13.
89974
89975 2000-01-08  Jim Meyering  <meyering@ascend.com>
89976
89977         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
89978         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
89979
89980 2000-01-04  Jim Meyering  <meyering@ascend.com>
89981
89982         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
89983         jm_STRUCT_DIRENT_D_TYPE.
89984         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
89985         jm_STRUCT_DIRENT_D_INO.
89986         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
89987         jm_STRUCT_UTIMBUF.
89988         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
89989         renamings.
89990         * m4/utime.m4: Likewise.
89991
89992         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
89993         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
89994
89995 2000-01-03  Paul Eggert  <eggert@twinsun.com>
89996
89997         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
89998         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
89999
90000 2000-01-02  Jim Meyering  <meyering@ascend.com>
90001
90002         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
90003         remember if this is necessary.
90004
90005 1999-12-26  Jim Meyering  <meyering@ascend.com>
90006
90007         * m4/jm-macros.m4: Use it here.
90008         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
90009
90010 1999-12-23  Jim Meyering  <meyering@ascend.com>
90011
90012         * m4/jm-macros.m4: Check for clock_gettime (moved from
90013         fileutils/configure.in)
90014         Check for gettimeofday.
90015
90016 1999-12-20  Jim Meyering  <meyering@ascend.com>
90017
90018         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
90019         autoconf-2.14a-1999-12-20.
90020
90021 1999-12-19  Jim Meyering  <meyering@ascend.com>
90022
90023         * m4/lstat-slash.m4: New file.
90024         * m4/jm-macros.m4: Use the new macro:
90025         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
90026
90027 1999-12-07  Jim Meyering  <meyering@ascend.com>
90028
90029         * m4/perl.m4: Require that File::Compare be available, too.
90030         Too many systems seem to lack it.
90031
90032         * m4/strftime.m4: Add checks for most of the cpp macros tested in
90033         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
90034
90035 1999-11-18  Paul Eggert  <eggert@twinsun.com>
90036
90037         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
90038         problem with the QNX 4.25 shell, which doesn't propagate exit
90039         status of failed commands inside shell assignments.
90040
90041 1999-11-17  Jim Meyering  <meyering@ascend.com>
90042
90043         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
90044
90045 1999-11-07  Jim Meyering  <meyering@ascend.com>
90046
90047         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
90048
90049 1999-11-06  Jim Meyering  <meyering@ascend.com>
90050
90051         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
90052         * m4/jm-macros.m4 (jm_MACROS): Use it here.
90053
90054 1999-11-05  Jim Meyering  <meyering@ascend.com>
90055
90056         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
90057         configure.in of textutils, fileutils, and sh-utils into this one
90058         (shared between those packages) file.
90059         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
90060         AC_STRUCT_ST_BLKSIZE.
90061
90062 1999-11-03  Jim Meyering  <meyering@ascend.com>
90063
90064         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
90065         of AC_CHECK_TYPE checks includes unistd.h.
90066         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
90067         Suggestion from Akim Demaille.
90068
90069 1999-10-30  Jim Meyering  <meyering@ascend.com>
90070
90071         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
90072         m4-quoted string.
90073         * m4/ls-mntd-fs.m4: Likewise.
90074         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
90075         * m4/jm-winsz1.m4: Likewise.
90076
90077         * m4/const.m4: Remove file, since the fix made it into the experimental
90078         version of autoconf.
90079         * m4/mktime.m4: Likewise.
90080
90081         * m4/check-type.m4: Remove file, now that the latest version of
90082         AC_CHECK_TYPE takes a third arg to specify additional #includes.
90083
90084         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
90085         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
90086         AC_CHECK_TYPE.
90087
90088 1999-10-04  Jim Meyering  <meyering@ascend.com>
90089
90090         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
90091
90092 1999-09-22  Paul Eggert  <eggert@twinsun.com>
90093
90094         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
90095         2.95.1 bug with HP-UX 10.20.
90096
90097 1999-09-17  Jim Meyering  <meyering@ascend.com>
90098
90099         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
90100         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
90101         due to missing strdup (against sh-utils-2.0).
90102
90103 1999-08-29  Jim Meyering  <meyering@ascend.com>
90104
90105         * m4/jm-macros.m4: Require jm_BISON.
90106         * m4/bison.m4: New file.
90107
90108 1999-08-17  Paul Eggert  <eggert@twinsun.com>
90109
90110         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
90111         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
90112
90113 1999-08-05  Jim Meyering  <meyering@ascend.com>
90114
90115         * m4/getline.m4: Rename test file from conftestdata to conftest.data
90116         to avoid conflicts with `conftest' on 8+3 filesystems.
90117         Suggestion from Eli Zaretskii.
90118
90119 1999-08-04  Jim Meyering  <meyering@ascend.com>
90120
90121         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
90122         fileutils and sh-utils (textutils's getline test was inadequate).
90123         (AM_FUNC_GETLINE): Run this test.
90124         (AC_CHECK_FUNCS): Check for getdelim.
90125         Reported by Bob Proulx.
90126
90127 1999-08-02  Jim Meyering  <meyering@ascend.com>
90128
90129         * m4/jm-macros.m4: Add a comment.
90130
90131 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90132
90133         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
90134         <inttypes.h> defines strtoumax as a macro (and not as a
90135         function).
90136
90137 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90138
90139         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
90140         that we can shift, multiply and divide unsigned long long
90141         values; Ultrix cc can't do it.
90142
90143 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90144
90145         * m4/mktime.m4: New file, which is a preview of what should appear
90146         in the next public autoconf release.
90147
90148 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90149
90150         * m4/lfs.m4: Remove this file.
90151         * m4/largefile.m4: New file.  It contains the old contents of
90152         lfs.m4, except that all names with prefix AC_LFS have been
90153         changed to use the prefix AC_SYS_LARGEFILE instead, to be
90154         compatible with future autoconf versions.  Also, some minor m4
90155         quoting problems have been fixed.
90156
90157 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90158
90159         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
90160         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
90161         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
90162         and simplify the shell code.
90163
90164 1999-08-01  Jim Meyering  <meyering@ascend.com>
90165
90166         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
90167         m4.
90168
90169 1999-07-20  Jim Meyering  <meyering@ascend.com>
90170
90171         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
90172
90173 1999-07-15  Jim Meyering  <meyering@ascend.com>
90174
90175         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
90176
90177 1999-05-22  Jim Meyering  <meyering@ascend.com>
90178
90179         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
90180
90181 1999-05-20  Jim Meyering  <meyering@ascend.com>
90182
90183         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
90184         Add a colon after each `then' in case $4 is empty.
90185
90186 1999-05-16  Jim Meyering  <meyering@ascend.com>
90187
90188         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
90189
90190 1999-05-10  Jim Meyering  <meyering@ascend.com>
90191
90192         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
90193
90194         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
90195         AC_FUNC_MKTIME.
90196
90197 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
90198
90199         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
90200
90201 1999-05-04  Paul Eggert  <eggert@twinsun.com>
90202
90203         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
90204         not CPPFLAGS, so that linking works correctly in IRIX.
90205
90206 1999-04-30  Paul Eggert  <eggert@twinsun.com>
90207
90208         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
90209
90210 1999-04-20  Paul Eggert  <eggert@twinsun.com>
90211
90212         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
90213         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
90214         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
90215         jm_AC_TYPE_UNSIGNED_LONG_LONG.
90216         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
90217
90218         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
90219
90220 1999-04-20  Jim Meyering  <meyering@ascend.com>
90221
90222         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
90223         AC_REPLACE xstroull if necessary.  From Paul Eggert.
90224         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
90225
90226 1999-04-18  Jim Meyering  <meyering@ascend.com>
90227
90228         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
90229         * m4/jm-macros.m4: Use it.
90230
90231 1999-04-06  Jim Meyering  <meyering@ascend.com>
90232
90233         * m4/strftime.m4: Remove test for %f.
90234
90235 1999-03-29  Jim Meyering  <meyering@ascend.com>
90236
90237         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
90238         superset of the AC_TYPE_* checks in the textutils, fileutils,
90239         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
90240         AC_TYPE_PID_T.
90241
90242 1999-03-28  Jim Meyering  <meyering@ascend.com>
90243
90244         * m4/jm-macros.m4: Define GNU_PACKAGE here.
90245         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
90246         replaced e.g., in the *.sh files of the sh-utils.
90247
90248 1999-03-20  Jim Meyering  <meyering@ascend.com>
90249
90250         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
90251         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
90252         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
90253
90254 1999-03-19  Jim Meyering  <meyering@ascend.com>
90255
90256         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
90257
90258 1999-03-12  Jim Meyering  <meyering@ascend.com>
90259
90260         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
90261
90262 1999-03-07  Jim Meyering  <meyering@ascend.com>
90263
90264         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
90265         declared.
90266
90267 1999-02-17  Jim Meyering  <meyering@ascend.com>
90268
90269         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
90270         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
90271
90272 1999-02-07  Jim Meyering  <meyering@ascend.com>
90273
90274         * m4/group-member.m4: New file -- extracted from sh-utils'
90275         configure.in.
90276
90277         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
90278         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
90279
90280 1999-02-06  Jim Meyering  <meyering@ascend.com>
90281
90282         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
90283         * m4/fnmatch.m4: Likewise.
90284         * m4/getgroups.m4: Likewise.
90285         * m4/lstat.m4: Likewise.
90286         * m4/malloc.m4: Likewise.
90287         * m4/putenv.m4: Likewise.
90288         * m4/realloc.m4: Likewise.
90289         * m4/regex.m4: Likewise.
90290         * m4/stat.m4: Likewise.
90291         * m4/strftime.m4: Likewise.
90292         Suggestion from Alain Magloire.
90293
90294         * m4/chown.m4: Use `.$ac_objext', not `.o'.
90295         * m4/fnmatch.m4: Likewise.
90296         * m4/getgroups.m4: Likewise.
90297         * m4/getline.m4: Likewise.
90298         * m4/lstat.m4: Likewise.
90299         * m4/malloc.m4: Likewise.
90300         * m4/memcmp.m4: Likewise.
90301         * m4/putenv.m4: Likewise.
90302         * m4/realloc.m4: Likewise.
90303         * m4/regex.m4: Likewise.
90304         * m4/stat.m4: Likewise.
90305         * m4/strftime.m4: Likewise.
90306         Suggestion from Alain Magloire.
90307
90308         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
90309         an argument.
90310
90311         * m4/regex.m4: Add a run-time Test for proper operation of
90312         re_compile_pattern.
90313
90314 1999-01-31  Jim Meyering  <meyering@ascend.com>
90315
90316         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
90317
90318 1999-01-30  Jim Meyering  <meyering@ascend.com>
90319
90320         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
90321
90322         * m4/jm-mktime.m4: Make this a wrapper around the official
90323         AM_FUNC_MKTIME rather than my private copy, now that the official one
90324         is up to date.
90325         * m4/mktime.m4: Remove file.
90326
90327         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
90328         * m4/uptime.m4: Likewise.
90329         * m4/uintmax_t.m4: Likewise.
90330
90331 1999-01-28  Jim Meyering  <meyering@ascend.com>
90332
90333         * m4/jm-macros.m4: Use jm_AFS.
90334         * m4/afs.m4: New file (from fileutils' configure.in).
90335
90336         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
90337         * m4/chown.m4: Likewise.
90338         * m4/d-ino.m4: Likewise.
90339         * m4/d-type.m4: Likewise.
90340         * m4/fnmatch.m4: Likewise.
90341         * m4/getgroups.m4: Likewise.
90342         * m4/gettext.m4: Likewise.
90343         * m4/jm-mktime.m4: Likewise.
90344         * m4/jm-winsz2.m4: Likewise.
90345         * m4/lcmessage.m4: Likewise.
90346         * m4/ls-mntd-fs.m4: Likewise.
90347         * m4/malloc.m4: Likewise.
90348         * m4/memcmp.m4: Likewise.
90349         * m4/putenv.m4: Likewise.
90350         * m4/realloc.m4: Likewise.
90351         * m4/st_mtim.m4: Likewise.
90352         * m4/strftime.m4: Likewise.
90353
90354 1999-01-16  Jim Meyering  <meyering@ascend.com>
90355
90356         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
90357         (ARGMATCH_DIE_DECL): Define.
90358
90359 1999-01-12  Jim Meyering  <meyering@ascend.com>
90360
90361         * m4/Makefile.am.in: Rewrite to avoid using fmt.
90362         Reported by Lars Hecking.
90363
90364 1999-01-10  Jim Meyering  <meyering@ascend.com>
90365
90366         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
90367         gross kludge.
90368         * m4/inttypes_h.m4: Likewise.
90369         * m4/lstat.m4: Likewise.
90370         * m4/malloc.m4: Likewise.
90371         * m4/readdir.m4: Likewise.
90372         * m4/realloc.m4: Likewise.
90373         * m4/st_dm_mode.m4: Likewise.
90374         * m4/stat.m4: Likewise.
90375         * m4/utimbuf.m4: Likewise.
90376         * m4/utimes.m4: Likewise.
90377
90378         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
90379         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
90380         comments in config.h.in are meaningful.
90381
90382         * m4/jm-macros.m4: Require autoconf-2.13 here.
90383
90384         * m4/regex.m4: By default, don't use the included regex.c on systems
90385         with glibc 2.  Suggestion from Uli Drepper.
90386
90387 1999-01-02  Jim Meyering  <meyering@ascend.com>
90388
90389         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
90390
90391 1998-12-18  Jim Meyering  <meyering@ascend.com>
90392
90393         * m4/Makefile.am.in (Makefile.am): Simplify rule.
90394         Based on a suggestion from Lars Hecking.
90395
90396 1998-11-16  Paul Eggert  <eggert@twinsun.com>
90397
90398         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
90399
90400 1998-11-16  Jim Meyering  <meyering@ascend.com>
90401
90402         * m4/lfs.m4: Double-quote the `uname...` expression.
90403
90404 1998-11-14  Jim Meyering  <meyering@ascend.com>
90405
90406         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
90407         * m4/stat.m4: Likewise.
90408
90409 1998-11-03  Jim Meyering  <meyering@ascend.com>
90410
90411         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
90412         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
90413
90414 1998-10-18  Jim Meyering  <meyering@ascend.com>
90415
90416         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
90417
90418 1998-10-17  Jim Meyering  <meyering@ascend.com>
90419
90420         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
90421         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
90422         calls for those previously hard-coded headers.  Instead, take a new
90423         parameter.
90424         (jm_CHECK_DECLARATIONS): Reflect interface change.
90425         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
90426         (jm_CHECK_DECL_LOCALTIME_R): New macro.
90427
90428         * m4/mktime.m4: Test for spring-forward gap before long-running test.
90429
90430 1998-10-14  Jim Meyering  <meyering@ascend.com>
90431
90432         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
90433         instead of "TZ=America/Vancouver".  From Paul Eggert.
90434
90435 1998-10-11  Jim Meyering  <meyering@ascend.com>
90436
90437         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
90438         This adds a test for a recently added compatibility fix for mktime.c.
90439         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
90440
90441 1998-09-27  Jim Meyering  <meyering@ascend.com>
90442
90443         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
90444
90445         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
90446         ../configure.in, including a change from Gordon Matzigkeit to allow
90447         cross-compiling for the Hurd.
90448
90449         * m4/glibc.m4: New file/macro to test for the GNU C Library
90450         versions 1 and 2.  From Gordon Matzigkeit.
90451         Indent.
90452
90453 1998-09-21  Jim Meyering  <meyering@ascend.com>
90454
90455         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
90456
90457 1998-08-18  Paul Eggert  <eggert@twinsun.com>
90458
90459         Port nanosecond-resolution times to UnixWare 2.1.2 and
90460         pedantic Solaris 2.6.
90461
90462         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
90463         AC_STRUCT_ST_MTIM.
90464         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
90465         Generate name of ns member, instead of just 1 or undef.
90466         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
90467
90468 1998-08-15  Jim Meyering  <meyering@ascend.com>
90469
90470         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
90471         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
90472         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
90473         instead of jm_TYPE_SSIZE_T.
90474
90475 1998-08-12  Jim Meyering  <meyering@ascend.com>
90476
90477         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
90478
90479 1998-08-02  Jim Meyering  <meyering@ascend.com>
90480
90481         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
90482         in acconfig.h manually.
90483
90484 1998-07-31  Paul Eggert  <eggert@twinsun.com>
90485
90486         * m4/st_mtim.m4: New file.
90487
90488 1998-07-28  Jim Meyering  <meyering@ascend.com>
90489
90490         * m4/utimes.m4: Undef stat.
90491
90492 1998-07-25  Jim Meyering  <meyering@ascend.com>
90493
90494         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
90495         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
90496
90497 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
90498
90499         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
90500         uid and gid actually remain unchanged.
90501
90502 1998-07-07  Jim Meyering  <meyering@ascend.com>
90503
90504         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
90505
90506 1998-07-04  Jim Meyering  <meyering@ascend.com>
90507
90508         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
90509         to prove that this macro can be used in packages without regex.c.
90510
90511 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
90512
90513         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
90514         is to be used.
90515
90516 1998-07-03  Jim Meyering  <meyering@ascend.com>
90517
90518         * m4/gettext.m4: Add -lintl if it's found to be necessary.
90519
90520         * m4/gettext.m4: New file -- from gettext-0.10.35.
90521         * m4/lcmessage.m4: Likewise.
90522         * m4/progtest.m4: Likewise.
90523
90524         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
90525         * m4/jm-macros.m4: Require the new macro.
90526
90527 1998-06-29  Jim Meyering  <meyering@ascend.com>
90528
90529         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
90530         for the definition of NGROUPS (used in a system header included
90531         by sys/mount.h).
90532
90533 1998-06-28  Jim Meyering  <meyering@ascend.com>
90534
90535         * m4/ls-mntd-fs.m4: New file.
90536         * m4/fstypename.m4: New file.
90537
90538         * m4/jm-macros.m4: Require the new macro.
90539         * m4/jm-glibc-io.m4: New file.
90540
90541 1998-05-19  Jim Meyering  <meyering@ascend.com>
90542
90543         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
90544         * m4/lchown.m4: New file.
90545
90546         * m4/Makefile.am.in: New file.
90547         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
90548
90549 1998-05-14  Jim Meyering  <meyering@ascend.com>
90550
90551         * m4/Makefile.am (EXTRA_DIST): Add them.
90552         * m4/jm-macros.m4: New file.
90553         * m4/utimbuf.m4: New file.
90554
90555 1998-05-12  Jim Meyering  <meyering@ascend.com>
90556
90557         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
90558
90559 1998-05-11  Jim Meyering  <meyering@ascend.com>
90560
90561         * m4/isc-posix.m4: New file.
90562
90563 1998-05-10  Jim Meyering  <meyering@ascend.com>
90564
90565         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
90566
90567 1998-05-09  Jim Meyering  <meyering@ascend.com>
90568
90569         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
90570         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
90571         with automake.
90572
90573         * m4/ssize_t.m4: New file.
90574         * m4/mktime.m4: Remove file -- the new automake has this now.
90575
90576 1998-04-26  Jim Meyering  <meyering@ascend.com>
90577
90578         * m4/assert.m4: New file.
90579         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
90580
90581 1998-04-05  Jim Meyering  <meyering@ascend.com>
90582
90583         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
90584         (jm_PREREQ): Use it here.
90585
90586 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
90587
90588         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
90589         in acconfig.h.
90590
90591 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
90592
90593         * m4/prereq.m4: New file.
90594         * m4/error.m4: New file.
90595         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
90596
90597 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
90598
90599         * m4/getline.m4: Don't set am_cv_func_working_getline before the
90600         cache-check for the same variable -- that defeated the purpose of
90601         the test; the test program was never run.  This was a problem only
90602         on systems with losing getline functions -- HP-UX 10.20 is one.
90603         Reported by Bjorn Helgaas.
90604
90605 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
90606
90607         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
90608
90609 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
90610
90611         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
90612
90613         * m4/const.m4: New file.  Use an initializer in this declaration
90614         typedef int charset[2]; const charset x;
90615         Reported by Bob Glickstein.
90616
90617 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
90618
90619         * m4/chown.m4: Fix reversed types on -1 args to chown.
90620         From Kaveh Ghazi.
90621
90622 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
90623
90624         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
90625         Add lseek and memchr.
90626
90627         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
90628         T.E.Dickey <dickey@clark.net> said that some older preprocessors
90629         have a 20-character limit on names.
90630
90631 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
90632
90633         * m4/inttypes_h.m4: New file.
90634         * m4/uintmax_t.m4: New file.
90635         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
90636
90637
90638         -----
90639
90640         Local Variables:
90641         coding: utf-8
90642         End:
90643
90644         Copyright (C) 1997-2012 Free Software Foundation, Inc.
90645
90646         Copying and distribution of this file, with or without
90647         modification, are permitted provided the copyright notice
90648         and this notice are preserved.