efa62c0edc6c200809c134baa6a0806d069c0797
[gnulib.git] / ChangeLog
1 2012-01-02  Jim Meyering  <meyering@redhat.com>
2
3         gitlog-to-changelog: fix typo in --help: show backslash before email @
4         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
5         in sources, but not in actual output.
6
7 2011-12-30  Jim Meyering  <meyering@redhat.com>
8
9         gitlog-to-changelog: don't malfunction when name contains %-directive
10         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
11         in a name string cause trouble.  E.g., with a user name of "%s",
12         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
13
14 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
15
16         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
17         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
18         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
19         the "  (tiny change)" notation that is appended to the standard
20         ChangeLog "date  name  email" header line.
21
22 2012-01-01  Jim Meyering  <meyering@redhat.com>
23
24         test-framework-sh: init.sh: fix "make dist" failure
25         When using gnulib-tool's --with-tests option and any module that
26         depends on test-framework-sh, "make dist" would fail due to the
27         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
28         in the gltests directory, and not in the gllib/ directory.
29         One way to work around that is to move the EXTRA_DIST += init.sh
30         from the primary module to the -tests one:
31         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
32         * modules/test-framework-sh (Makefile.am): ...not here.
33         Reported by Tom G. Christensen in
34         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
35
36         version-etc: update copyright year reported by --version
37         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
38
39 2011-12-31  Pádraig Brady  <P@draigBrady.com>
40
41         canonicalize: only stat() if required
42         * lib/canonicalize.c (canonicalize_filename_mode):
43         Avoid calling l?stat() when both CAN_MISSING,
44         and CAN_NOLINKS are set, as we neither need
45         to resolve symlinks or test component existence.
46
47 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
48
49         doc: cover st_ino issues once; add OpenVMS etc.
50         * doc/posix-functions/stat.texi (stat):
51         * doc/posix-functions/lstat.texi (lstat):
52         * doc/posix-functions/fstatat.texi (fstatat):
53         * doc/posix-functions/fstat.texi (fstat):
54         Move general 'struct stat' stuff to sys_stat.texi,
55         leaving behind a pointer.
56         * doc/posix-headers/sys_stat.texi (sys/stat.h):
57         Merge duplicate info about 'struct stat' problems into here.
58         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
59         and suggest partial workarounds.
60
61         same-inode: port to OpenVMS
62         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
63         three st_ino values.
64
65 2011-12-30  Pádraig Brady  <P@draigBrady.com>
66
67         canonicalize: fix references to stat() and lstat()
68         * lib/canonicalize.c (canonicalize_filename_mode):
69         Ensure references always resolve to a replacement
70         function if required (even via a macro).
71
72 2011-12-30  Jim Meyering  <meyering@redhat.com>
73
74         gitlog-to-changelog: remove a little duplication
75         * build-aux/gitlog-to-changelog (main): Grep @lines once,
76         rather than twice.
77
78 2011-12-29  Pádraig Brady  <P@draigBrady.com>
79
80         canonicalize: add support for not resolving symlinks
81         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
82         indicate we don't want to follow symlinks.  Also
83         provide CAN_MODE_MASK to aid setting these existing
84         mutually exclusive values.
85         * lib/canonicalize.c (canonicalize_filename_mode):
86         Extract the flags from can_mode parameter, which
87         are currently just used to select between stat()
88         and lstat().  Also ensure that mutually exclusive
89         values are flagged immediately as invalid.
90         * tests/test-canonicalize.c: Verify symlinks are
91         not followed, and that invalid flag combinations
92         are diagnosed.
93
94 2011-12-25  Jim Meyering  <meyering@redhat.com>
95
96         gitlog-to-changelog: do not clump multi-paragraph entries
97         Identical header lines (date,name,email+coauthors) are suppressed,
98         thus putting all entries with those same characteristics under
99         a single header.  However, when a log entry consists of two or
100         more paragraphs, it may not be clear where it starts and ends.
101         This change makes it so that such an entry is always separated
102         from others by a header line, even when that header would
103         otherwise be suppressed.
104         * build-aux/gitlog-to-changelog: Implement the above.
105         Inspired by a related request from Stefano Lattarini in
106         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
107
108 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
109
110         announce-gen: fix `cmd' typo in diagnostic
111         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
112         diagnostic: a missing '$' meant that the command was not output.
113
114 2011-12-23  Jim Meyering  <meyering@redhat.com>
115
116         test-framework-sh: distribute init.sh
117         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
118         Otherwise, "make -C gnulib-tests check" (at least in grep) would
119         fail due to the lack of init.sh.
120
121         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
122         * modules/atexit-tests: Rather than listing tests/init.sh,
123         now that there's a module for it, simply depend on that new module.
124         * modules/closein-tests: Likewise.
125         * modules/exclude-tests: Likewise.
126         * modules/getcwd-tests: Likewise.
127         * modules/perror-tests: Likewise.
128         * modules/pread-tests: Likewise.
129         * modules/pwrite-tests: Likewise.
130         * modules/vc-list-files-tests: Likewise.
131         * modules/verify-tests: Likewise.
132         * modules/xalloc-die-tests: Likewise.
133         * modules/xstrtoimax-tests: Likewise.
134         * modules/xstrtol-tests: Likewise.
135         * modules/xstrtoll-tests: Likewise.
136         * modules/xstrtoumax-tests: Likewise.
137         * modules/yesno-tests: Likewise.
138
139 2011-12-22  Jim Meyering  <meyering@redhat.com>
140
141         test-framework-sh: add minimal tests of init.sh's compare function
142         * modules/test-framework-sh-tests: New file.
143         * tests/test-init.sh: New file.
144
145         test-framework-sh: new module
146         * modules/test-framework-sh: New file.
147         * MODULES.html.sh (Support for maintaining and releasing projects):
148         List it.
149
150         init.sh: do not emit simulated diff output to stderr
151         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
152
153 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
154
155         .gitignore: ignore gnulib.dvi and regex.info
156         * doc/.gitignore:add gnulib.dvi and regex.info
157
158 2011-12-22  Jim Meyering  <meyering@redhat.com>
159
160         init.sh: correct previous change
161         * tests/init.sh (compare): My previous change was wrong.
162         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
163
164         init.sh: avoid unwarranted test failure when using "set -e"
165         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
166         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
167         a use like "compare exp out" would get evoke an unconditional failure.
168
169 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
170
171         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
172         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
173         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
174         autoreconf that did not.
175         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
176         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
177
178 2011-12-17  Jim Meyering  <meyering@redhat.com>
179
180         bootstrap: remove some now-unneeded code
181         This script arose back when gnulib-tool was young.
182         Since then, it has seen improvements that render much of this
183         script unnecessary.  In particular, it can now make symlinks
184         to the files it uses.  Also, I no longer see as much value in
185         marking files as read-only via comments.
186         If you relied on the symlink-creation feature of the preceding
187         version of this script, you can get most of that functionality
188         by adding the --symlink option to the definition of
189         gnulib_tool_option_extras in your bootstrap.conf file.
190         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
191         Run autopoint and libtoolize *before* gnulib-tool.
192         After it, run an abbreviated autoreconf, rather than a loop around
193         all tools.
194         (slirp, bt_mark_as_generated): Remove functions.
195
196 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
197
198         ftoastr: fix typo
199         * lib/ftoastr.h: Fix misspelling in comment.
200
201 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
202
203         * top/README-release: fix punctuation.
204
205 2011-12-17  Jim Meyering  <meyering@redhat.com>
206
207         bootstrap: correct the recent buildreq change
208         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
209         had no effect.
210         * build-aux/bootstrap (buildreq): Bracket each search term with
211         "*...*", so that the shell "case" statement works as intended.
212         Add comments.
213
214 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
215
216         build: let bootstrap resort to wget when downloading .po files
217         * build-aux/bootstrap (download_po_files): Fallback to wget when
218         downloading the .po files via rsync fails.  This is necessary to
219         bootstrap from behind a strict firewall.
220
221 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
222
223         stdint: don't assume C++11 when compiling with g++
224         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
225         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
226         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
227         work also in C++ before C++11, as that improperly inhibits
228         generating a substitute stdint.h for that case.
229
230 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
231
232         alloca: protect comment from gnulib-tool
233         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
234         that gnulib-tool doesn't think it's a license, and munge it to
235         say "GCC version 3".
236
237 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
238
239         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
240         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
241         $(abs_top_builddir) instead of $(top_builddir).
242
243 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
244
245         strftime-tests: also test nanoseconds
246         * tests/test-strftime.c (T): Add a test of %N.
247
248 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
249
250         inttypes, stdint: add C++11 support
251         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
252         when including inttypes.h and stdint.h.  Support this change to
253         the standard.
254         * doc/posix-headers/inttypes.texi (inttypes.h):
255         * doc/posix-headers/stdint.texi (stdint.h): Document this.
256         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
257         Define if not defined already, for the benefit of pre-C++11 hosts.
258         Define the standard format macros (e.g., PRId8) always.
259         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
260         Likewise, if __cpluspus.  Define the standard constant and limit
261         macros (e.g., INT8_C, INT8_MAX) always.
262         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
263         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
264         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
265         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
266         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
267         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
268         Likewise.
269
270 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
271
272         nonblocking tests: Fix test failure on Linux/PPC.
273         Suggested by Prerna Saxena in
274         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
275         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
276         Set to 1100000.
277
278 2011-12-12  Jim Meyering  <meyering@redhat.com>
279
280         argmatch: don't hard-code `' when listing valid option arguments
281         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
282         use the quote function to add quotes.  Use fputs rather than
283         fprintf for the format string with no format directive.
284
285 2011-12-07  Eric Blake  <eblake@redhat.com>
286
287         bootstrap: detect tools required by gnulib-tool
288         * build-aux/bootstrap (buildreq): Provide minimum implicit
289         dependencies.
290         * DEPENDENCIES: Mention patch as a prereq.
291
292 2011-12-04  Bruno Haible  <bruno@clisp.org>
293
294         sethostname: Port to Windows platforms.
295         * lib/sethostname.c: Provide an alternate implementation for Windows
296         platforms.
297         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
298         (main): Skip the test if sethostname() fails with EPERM. On Windows
299         platforms, don't check the result of gethostname().
300
301 2011-12-04  Bruno Haible  <bruno@clisp.org>
302             Jim Meyering  <meyering@redhat.com>
303
304         tests: Avoid spurious error message on platforms without mktemp program.
305         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
306
307 2011-12-04  Bruno Haible  <bruno@clisp.org>
308
309         sethostname: Fix documentation.
310         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
311         "not fixed" section.
312
313 2011-12-03  Bruno Haible  <bruno@clisp.org>
314
315         gnulib-tool: Verify that the License field is present and non-empty.
316         * gnulib-tool (func_get_license_raw): New function, extracted from
317         func_get_license.
318         (func_get_license): Use it. Warn if the module is not a test module and
319         has no license.
320         Suggested by Jim Meyering.
321
322 2011-12-03  Bruno Haible  <bruno@clisp.org>
323
324         sethostname tests: Fix link error on mingw.
325         * tests/test-sethostname1.c: New file, extracted from
326         tests/test-sethostname.c.
327         * tests/test-sethostname2.c: New file, extracted from
328         tests/test-sethostname.c.
329         * tests/test-sethostname.c: Remove file.
330         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
331         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
332         (Depends-on): Add gethostname.
333         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
334         Link the latter with $(GETHOSTNAME_LIB).
335
336         sethostname tests: Fix compilation error on mingw.
337         * tests/test-sethostname.c: Don't include <sys/types.h>.
338         (geteuid): Use a dummy value without uid_t.
339         * modules/sethostname-tests (Depends-on): Remove sys_types.
340
341         sethostname tests: Avoid a gcc warning.
342         * tests/test-sethostname.c (main): Remove an unused variable.
343
344         Tweak last commit.
345         * modules/sethostname-tests (Files): Sort by decreasing importance.
346         (configure.ac): Check for geteuid.
347         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
348         the test when there's nothing to test. Drop an unnecessary cast.
349         Improve an error message. Verify that the final sethostname() call
350         succeeds.
351
352 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
353
354         Add a test suite for the sethostname module.
355         * modules/sethostname-tests: New file.  A test program
356         for the sethostname module.
357         * tests/test-sethostname.c: Likewise.
358
359 2011-12-03  Bruno Haible  <bruno@clisp.org>
360
361         Tweak last commit.
362         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
363         Fix preprocessor directives indentation. Fix typos.
364         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
365         * modules/unistd (Makefile): Likewise.
366
367 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
368
369         Integrate the sethostname module into unistd.
370         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
371         into the unistd.h header.
372         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
373         preprocessor directives.
374         * modules/unistd: Setup the Makefile substitutions of the
375         SETHOSTNAME preprocessor directives.
376
377 2011-12-03  Bruno Haible  <bruno@clisp.org>
378
379         Tweak last commit.
380         * lib/sethostname.c: Don't include <string.h>.
381         (sethostname): No need to copy the argument string to the stack. Don't
382         call clearerr. Preserve errno when fprintf failed.
383         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
384         Don't invoke AC_REPLACE_FUNCS.
385         * modules/sethostname (Link): Remove empty section.
386         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
387         failure problem.
388
389 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
390
391         New module 'sethostname'.
392         * lib/sethostname.c (sethostname): New file.  Provide sethostname
393         for systems that lack it.
394         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
395         sethostname declaration and function.
396         * modules/sethostname: New file.  Define the sethostname module.
397
398 2011-12-03  Bruno Haible  <bruno@clisp.org>
399
400         Tweak last commit.
401         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
402
403 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
404
405         Split the HOST_NAME_MAX detection into a separate m4 macro.
406         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
407         macro so it can be used by the pending sethostname module.
408
409 2011-12-03  Bruno Haible  <bruno@clisp.org>
410
411         Fix module descriptions syntax.
412         * modules/argv-iter (License): Fix syntax.
413         * modules/di-set (License): Likewise.
414         * modules/ino-map (License): Likewise.
415         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
416
417 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
418
419         stdalign: port to Clang 3.0
420         Problem reported by Simon Josefsson in
421         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
422         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
423         which has <stdalign.h> but which does not define alignof.
424         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
425
426 2011-12-01  Eric Blake  <eblake@redhat.com>
427
428         mktempd: silence dd usage
429         * build-aux/mktempd (rand_bytes): Silence dd.
430
431 2011-11-30  Simon Josefsson  <simon@josefsson.org>
432
433         manywarnings: Don't mention gcc version in docstring.
434         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
435         Jim Meyering <meyering@redhat.com>.
436
437 2011-11-30  Jim Meyering  <meyering@redhat.com>
438
439         hash: mark a few floating point constants with "f" suffix
440         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
441         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
442         floating point constants with "f", since they're destined to be
443         saved/used as "float"s.
444
445 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
446
447         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
448         * tests/test-float.c (test_long_double): Correct and re-enable the
449         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
450
451 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
452
453         Avoid subtracting two pointers that don't point into the same block.
454         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
455         only pointers into the same memory block are subtracted. We cannot
456         assume that sizeof (ptrdiff_t) == sizeof (void *).
457
458 2011-11-29  Eric Blake  <eblake@redhat.com>
459
460         maint.mk: add syntax check for use of compare from init.sh
461         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
462         moved here from coreutils.
463
464         manywarnings: drop -Wunsuffixed-float-constants
465         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
466         '1.0D', which is the only way to silence this warning for 'double'.
467
468 2011-11-29  Jim Meyering  <meyering@redhat.com>
469
470         hash: mark compute_bucket_size with the pure attribute
471         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
472
473         quotearg, propername: correct pragma guard expression
474         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
475         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
476
477 2011-11-28  Jim Meyering  <meyering@redhat.com>
478
479         propername: do not mark proper_name with the const attribute
480         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
481         since it examines data pointed to by its parameter.
482         * lib/propername.c (proper_name): Instead, add a pragma to suppress
483         the suggestion from -Wsuggest-attribute=const.
484
485         propername: mark one more function as const
486         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
487
488 2011-11-27  Jim Meyering  <meyering@redhat.com>
489
490         mark functions with const and pure attributes
491
492         Mark functions per suggestions from gcc-4.6 when using these options:
493         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
494         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
495         Follow these guidelines: when possible, apply the attribute to
496         an extern declaration, not to its definition.  Apply it to the
497         definition only when the definition is static.
498         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
499         * lib/argv-iter.h (argv_iter_n_args): Likewise.
500         * lib/base64.h (isbase64): Likewise.
501         * lib/basename-lgpl.c (last_component, base_len): Likewise.
502         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
503         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
504         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
505         (c_tolower, c_toupper): Likewise.
506         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
507         * lib/chdir-long.c (find_non_slash): Likewise.
508         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
509         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
510         * lib/file-type.h (file_type): Likewise.
511         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
512         * lib/filevercmp.c (verrevcmp): Likewise.
513         * lib/freadahead.h (freadahead): Likewise.
514         * lib/fts.c (fts_maxarglen): Likewise.
515         * lib/hash-pjw.h (hash_pjw): Likewise.
516         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
517         * lib/hash.c (is_prime, next_prime): Likewise.
518         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
519         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
520         (hash_table_ok, hash_get_first, hash_string): Likewise.
521         (compute_bucket_size): Likewise.
522         * lib/i-ring.h (i_ring_empty): Likewise.
523         * lib/isnan.c (isnanl): Likewise.
524         * lib/math.h (isnanl, rpl_isnanl): Likewise.
525         * lib/memcasecmp.h (memcasecmp): Likewise.
526         * lib/memchr2.h (memchr2): Likewise.
527         * lib/memcmp2.h (memcmp2): Likewise.
528         * lib/parse-datetime.y (lookup_zone): Likewise.
529         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
530         [!WINDOWS_SOCKETS]: Likewise.
531         * lib/strnlen1.h (strnlen1): Likewise.
532         * lib/uniwidth.in.h (uc_width): Likewise.
533         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
534         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
535         (quoting_options_from_style): Add a comment.
536         * lib/propername.h (proper_name): Add a comment.
537
538 2011-11-27  Bruno Haible  <bruno@clisp.org>
539
540         Remove unused macros from !_LIBC code in glibc-borrowed files.
541         * lib/fnmatch.c (STRCOLL): Remove macro.
542         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
543         * lib/glob.c (__stat, __readdir64): Remove macros.
544         * lib/tempname.c (__open64, __xstat64): Remove macros.
545         Suggested by Paul Eggert.
546
547 2011-11-27  Bruno Haible  <bruno@clisp.org>
548
549         getcwd: Fix link error on MSVC 9.
550         * modules/getcwd (Depends-on): Add readdir, rewinddir.
551
552 2011-11-27  Bruno Haible  <bruno@clisp.org>
553
554         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
555         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
556         HAVE_OPENDIR is 0.
557         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
558         HAVE_CLOSEDIR is 0.
559         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
560         is 0.
561         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
562
563 2011-11-27  Bruno Haible  <bruno@clisp.org>
564
565         getcwd: Fix bug from 2011-08-17.
566         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
567         platforms that need it.
568         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
569         code of 4 to be a failure, not a success. This ensures that
570         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
571
572 2011-11-27  Bruno Haible  <bruno@clisp.org>
573
574         binary-io tests: Avoid test failure on mingw when libtool is used.
575         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
576         Don't verify the size of t-bin-out1.tmp here.
577         * tests/test-binary-io.sh: Verify it here.
578         Reported by Simon Josefsson.
579
580 2011-11-26  Bruno Haible  <bruno@clisp.org>
581
582         Fix conflict between two instantiations of module 'unistd'.
583         * gnulib-tool (func_emit_autoconf_snippet): Substitute
584         ${include_guard_prefix} also in the autoconf snippet.
585         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
586         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
587         GNULIB_UNISTD_H_GETOPT.
588         * modules/getopt-posix (configure.ac): Set the
589         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
590         * modules/getopt-gnu (configure.ac): Likewise.
591         * modules/unistd (Makefile.am): Change the substitution value of
592         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
593         Reported by Simon Josefsson.
594
595 2011-11-25  Bruno Haible  <bruno@clisp.org>
596
597         pagealign_alloc: Doc and comments.
598         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
599         module.
600         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
601
602 2011-11-25  Jim Meyering  <meyering@redhat.com>
603
604         test-update-copyright.sh: avoid false-positive failure
605         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
606         around false positive failure on Cygwin/Windows.  The latter was
607         matching erroneously-created files with names like
608         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
609
610 2011-11-25  Simon Josefsson  <simon@josefsson.org>
611
612         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
613         * m4/valgrind-tests.m4: Check that the parameters that will be
614         used works, not just a subset of them.  Reported by Bruno Haible
615         <bruno@clisp.org>.
616
617 2011-11-24  Jim Meyering  <meyering@redhat.com>
618
619         test-stdalign.c: comment out long double tests
620         * tests/test-stdalign.c: Don't try to reduce alignment of long double
621         variables.  That provokes errors like this from gcc-4.7.0 20111124:
622         error: '_Alignas' specifiers cannot reduce alignment of \
623         'static_longdouble_alignas'.
624
625 2011-11-22  Jim Meyering  <meyering@redhat.com>
626
627         init.sh: make "compare /dev/null FILE" output more readable
628         * tests/init.sh (compare_): Document the preferred order of arguments.
629         (emit_diff_u_header_): New function.
630         (compare_dev_null_): Emit a simulated diff, rather than just the
631         contents of the unexpected file.  Suggestion from Bruno Haible.
632
633 2011-11-21  Jim Meyering  <meyering@redhat.com>
634             Eric Blake  <eblake@redhat.com>
635
636         init.sh: work around OSF/1 5.1's mishandling of /dev/null
637         * tests/init.sh: Make our compare function slightly more portable.
638         Reported by Bruno Haible in
639         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
640
641 2011-11-21  Simon Josefsson  <simon@josefsson.org>
642
643         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
644         before using it, in code that ends up in config.h.
645
646 2011-11-20  Bruno Haible  <bruno@clisp.org>
647
648         getcwd: Work around getcwd bug on AIX 5..7.
649         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
650         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
651         Use a different value for gl_cv_func_getcwd_path_max. Move the
652         definition of HAVE_PARTLY_WORKING_GETCWD from here...
653         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
654         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
655         Define HAVE_MINIMALLY_WORKING_GETCWD.
656         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
657         where it is not even minimally working, that is, on AIX.
658         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
659         m4/getcwd-path-max.m4.
660         (main): Update exit code computation.
661         * doc/posix-functions/getcwd.texi: Mention list of platforms where
662         getcwd does not handle long file names.
663
664 2011-11-20  Bruno Haible  <bruno@clisp.org>
665
666         getcwd: Fix bug from 2009-09-10.
667         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
668         like "no".
669
670 2011-11-20  Simon Josefsson  <simon@josefsson.org>
671
672         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
673
674 2011-11-20  Bruno Haible  <bruno@clisp.org>
675
676         fma tests: Avoid shadowing local variables.
677         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
678         expected.
679
680 2011-11-20  Bruno Haible  <bruno@clisp.org>
681
682         copysignf tests: Fix.
683         * tests/test-copysignf.c: Fix signature check.
684
685 2011-11-20  Bruno Haible  <bruno@clisp.org>
686
687         fma: Remove unused code.
688         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
689         unused macros.
690
691 2011-11-20  Bruno Haible  <bruno@clisp.org>
692
693         sethostname: Fix doc about AIX.
694         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
695         sethostname; it has it.
696
697         sethostname: Mention more portability problems.
698         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
699         problem.
700         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
701
702 2011-11-19  Bruno Haible  <bruno@clisp.org>
703
704         Depend on module fcntl-h when AT_FDCWD is used.
705         * modules/utimens (Depends-on): Add fcntl-h.
706         * modules/areadlinkat (Depends-on): Likewise.
707         * modules/areadlinkat-with-size (Depends-on): Likewise.
708         * modules/faccessat (Depends-on): Likewise.
709         * modules/fchmodat (Depends-on): Likewise.
710         * modules/fchownat (Depends-on): Likewise.
711         * modules/getcwd (Depends-on): Likewise.
712         * modules/mkdirat (Depends-on): Likewise.
713         * modules/mkfifoat (Depends-on): Likewise.
714         * modules/readlinkat (Depends-on): Likewise.
715         * modules/symlinkat (Depends-on): Likewise.
716         * modules/dup2-tests (Depends-on): Likewise.
717         * modules/fdutimensat-tests (Depends-on): Likewise.
718         * modules/futimens-tests (Depends-on): Likewise.
719
720 2011-11-19  Bruno Haible  <bruno@clisp.org>
721
722         euidaccess: Update a comment.
723         * lib/euidaccess.c: Update comment about platforms with faccessat.
724
725 2011-11-19  Bruno Haible  <bruno@clisp.org>
726
727         openat: Fix file list.
728         * modules/openat (Files): Remove lib/at-func.c.
729
730 2011-11-19  Bruno Haible  <bruno@clisp.org>
731
732         fstatat: Simplify.
733         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
734         gnulib should define rpl_fstatat, there is a
735         "#define fstatat rpl_fstatat" in <sys/stat.h>.
736
737 2011-11-19  Bruno Haible  <bruno@clisp.org>
738
739         Ensure 'inline' can be used in tests/test-utimens-common.h.
740         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
741         * modules/futimens-tests (configure.ac): Likewise.
742         * modules/utimens-tests (configure.ac): Likewise.
743         * modules/utimensat-tests (configure.ac): Likewise.
744
745 2011-11-19  Simon Josefsson  <simon@josefsson.org>
746
747         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
748         not hash_insert0.
749         (hash_insert_if_absent): Doc fix.
750
751 2011-11-19  Simon Josefsson  <simon@josefsson.org>
752
753         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
754
755 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
756
757         test-getcwd: disambiguate exit status
758         * tests/test-getcwd.c (test_long_name): Return 0..7.
759         (main): Exit with an unambiguous exit status.  The old
760         code yielded a mysterious mixture of two failure codes.
761
762         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
763         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
764         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
765         rpl_fstatat or fstatat.  This should fix the other problem
766         reported by Kai Habel in
767         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
768         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
769         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
770         and I reproduced it on a Solaris 8 host we still have in production.
771
772 2011-11-18  Jim Meyering  <meyering@redhat.com>
773
774         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
775         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
776         Add a sentence to the comment.
777         (hash_insert0): New function that simply calls hash_insert_if_absent.
778         * lib/hash.h (hash_insert_if_absent): Declare it.
779         (hash_insert0): Add deprecation attribute.
780         (_GL_ATTRIBUTE_DEPRECATED): Define.
781         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
782         not hash_insert0.
783         * NEWS: Mention it, even though it's not really an incompatible change.
784
785 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
786
787         openat: avoid compilation failure due to lack of <errno.h> inclusion
788         * lib/openat.c: Include <errno.h>.
789
790 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
791
792         * modules/getcwd (Depends-on): Add fdopendir.
793         This fixes one of the two problems reported by Kai Habel in
794         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
795
796         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
797         stdalign problem reported by Ian Beckwith in
798         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
799         * modules/crypto/gc-arcfour (Depends-on):
800         Depend conditionally on crypto/arcfour.
801         * modules/crypto/gc-arctwo (Depends-on):
802         Depend conditionally on crypto/arctwo.
803         * modules/crypto/gc-des (Depends-on):
804         Depend conditionally on crypto/des.
805         * modules/crypto/gc-hmac-md5 (Depends-on):
806         Depend conditionally on crypto/hmac-md5.
807         * modules/crypto/gc-hmac-sha1 (Depends-on):
808         Depend conditionally on crypto/hmac-sha1.
809         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
810         * modules/crypto/gc-md4 (Depends-on):
811         Depend conditionally on crypto/md4.
812         * modules/crypto/gc-md5 (Depends-on):
813         Depend conditionally on crypto/md5.
814         * modules/crypto/gc-rijndael (Depends-on):
815         Depend conditionally on crypto/rijndael.
816         * modules/crypto/gc-sha1 (Depends-on):
817         Depend conditionally on crypto/sha1.
818         * modules/crypto/gc-arcfour:
819         * modules/crypto/gc-arctwo:
820         * modules/crypto/gc-des:
821         * modules/crypto/gc-hmac-md5:
822         * modules/crypto/gc-hmac-sha1:
823         * modules/crypto/gc-md2:
824         * modules/crypto/gc-md4:
825         * modules/crypto/gc-md5:
826         * modules/crypto/gc-rijndael:
827         * modules/crypto/gc-sha1:
828         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
829         now that the conditional dependencies do the work for us.
830
831 2011-11-17  Jim Meyering  <meyering@redhat.com>
832
833         tests: factor st_ctime-comparison out of two headers
834         * tests/test-utimens-common.h (ctime_compare): Define.
835         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
836         * tests/test-lutimens.h (test_lutimens): Likewise.
837         * tests/test-utimens.h (test_utimens): Likewise.
838
839         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
840         Invoke the test program via an init.sh-using wrapper.
841         * tests/test-getcwd.sh: New file.
842         * modules/getcwd-tests (Files): Add it.
843         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
844
845 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
846
847         gitlog-to-changelog: support multi-author commits.
848         The FSF cares about keeping track of all authors of patches to its
849         projects, but Git doesn't provide obvious support for multi-author
850         changesets. Consensus seems to be forming around the use of extra
851         Signed-off-by inspired lines in the log message formatted as
852         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
853         multi-author commits between version control systems.
854         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
855         log message and output in standard ChangeLog multi-author format.
856         Reported by Peter Rosin <peda@lysator.liu.se>
857
858 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
859             Bruno Haible  <bruno@clisp.org>
860
861         Fix some modules' file list.
862         * modules/fstatat (Files): Add m4/lstat.m4.
863         * modules/openat (Files): Likewise.
864         * modules/unlinkat (Files): Likewise.
865
866 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
867
868         maint.mk: fix tight-scope.mk generation in VPATH builds.
869         * top/maint.mk (tight-scope.mk): Make sure to prefix file
870         reference with $(srcdir) so that the file is found correctly even
871         when running `make syntax-check' in a VPATH build.
872
873 2011-11-13  Bruno Haible  <bruno@clisp.org>
874             Jim Meyering  <meyering@redhat.com>
875
876         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
877         * tests/init.sh (compare): Remove "No differences encountered" or
878         synonymous output from the 'diff' program.
879
880 2011-11-13  Bruno Haible  <bruno@clisp.org>
881
882         Makefile: Tweak indentation.
883         * Makefile: Use tab as first character in every line that contains rule
884         commands.
885
886 2011-11-13  Bruno Haible  <bruno@clisp.org>
887
888         Syntax check for copyright statements.
889         * check-copyright: New file.
890         * Makefile (sc_check_copyright): New rule.
891
892 2011-11-13  Simon Josefsson  <simon@josefsson.org>
893
894         * build-aux/git-version-gen: Add --prefix to configure the tag
895         match string.
896
897 2011-11-13  Simon Josefsson  <simon@josefsson.org>
898
899         * build-aux/git-version-gen: Add --help and --version.
900
901 2011-11-12  Jim Meyering  <meyering@redhat.com>
902
903         revamp the other test-exclude?.sh scripts to use init.sh, too
904         * tests/test-exclude1.sh: Use init.sh.
905         * tests/test-exclude2.sh: Likewise.
906         * tests/test-exclude3.sh: Likewise.
907         * tests/test-exclude4.sh: Likewise.
908         * tests/test-exclude5.sh: Likewise.
909         * tests/test-exclude6.sh: Likewise.
910         * tests/test-exclude7.sh: Likewise.
911         * tests/test-exclude8.sh: Likewise.
912         * modules/exclude-tests (Files): List init.sh.
913
914         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
915         These shell scripts ignored failure of the binary test-exclude,
916         so making the latter return 77 didn't cause them to be skipped.
917         * tests/test-exclude5.sh: Exit with test-exclude's error status
918         when that program fails.  Revamp to use init.sh.
919         * tests/test-exclude2.sh: Likewise.
920
921         test-exclude: fix a typo
922         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
923
924 2011-11-11  Bruno Haible  <bruno@clisp.org>
925
926         obstack: Fix compilation error on MSVC 9.
927         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
928
929 2011-11-11  Jim Meyering  <meyering@redhat.com>
930
931         test-exclude: skip tests rather than failing on deficient systems
932         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
933         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
934         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
935         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
936
937 2011-11-10  Bruno Haible  <bruno@clisp.org>
938
939         ptsname_r test: Avoid gcc warning on glibc systems.
940         * tests/test-ptsname_r.c (null_ptr): New function.
941         (test_errors): Use it.
942
943 2011-11-10  Bruno Haible  <bruno@clisp.org>
944
945         ptsname_r: Avoid compilation error on OSF/1 5.1.
946         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
947         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
948         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
949         function is not declared or incompatibly declared.
950         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
951         * modules/ptsname_r (Depends-on, configure.ac): Update.
952         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
953
954 2011-11-10  Bruno Haible  <bruno@clisp.org>
955
956         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
957         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
958         When cross-compiling, guess yes on all platforms except AIX.
959         Reported by Ludovic Courtès <ludo@gnu.org>.
960
961 2011-11-09  Bruno Haible  <bruno@clisp.org>
962
963         ptsname_r tests: Fix bugs.
964         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
965         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
966
967 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
968
969         fstatat: work with cross-compilation
970         Problem reported by Ludovic Courtès in
971         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
972         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
973         "cross-compiling" and assume the bug is present.  Replace
974         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
975         an inverted sense, to be more conservative about our assumptions.
976         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
977
978 2011-11-09  Bruno Haible  <bruno@clisp.org>
979
980         Improve MODULES.html output.
981         * modules/mkfifoat (Description): Use the word "function".
982         * modules/readlinkat (Description): Likewise.
983         * modules/symlinkat (Description): Likewise.
984
985 2011-11-09  Eric Blake  <eblake@redhat.com>
986
987         ptsname_r-tests: new test module
988         * modules/ptsname_r-tests: New module.
989         * tests/test-ptsname_r.c: New file.
990
991         ptsname_r: new module
992         * modules/ptsname_r: New module.
993         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
994         * lib/ptsname.c (__ptsname_r): Split...
995         * lib/ptsname_r.c: ...into new file.
996         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
997         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
998         * modules/stdlib (Makefile.am): Substitute witnesses.
999         * lib/stdlib.in.h (ptsname_r): Declare it.
1000         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
1001         * MODULES.html.sh (Misc): Likewise.
1002         * modules/ptsname (Depends-on): Alter dependency.
1003         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
1004
1005 2011-11-09  Jim Meyering  <meyering@redhat.com>
1006
1007         announce-gen: be more concise when there's only one URL+tarball
1008         * build-aux/announce-gen (get_tool_versions): When you distribute
1009         only one type of tarball, combine the first two "Here are..."
1010         sections and make the key-checking grammar independent of
1011         how many tarballs there are.
1012
1013 2011-11-09  Eric Blake  <eblake@redhat.com>
1014
1015         openpty: provide a stub on mingw
1016         * lib/pty.in.h (includes): Provide forward declarations.
1017         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
1018
1019         raise: fix mingw handling of SIGPIPE
1020         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
1021
1022 2011-11-08  Bruno Haible  <bruno@clisp.org>
1023
1024         More conditional dependencies.
1025         * modules/faccessat (Depends-on): Add conditions.
1026         * modules/fchmodat (Depends-on): Likewise.
1027         * modules/fchownat (Depends-on): Likewise.
1028         * modules/fstatat (Depends-on): Likewise.
1029         * modules/mkfifoat (Depends-on): Likewise.
1030         * modules/readlinkat (Depends-on): Likewise.
1031         * modules/symlinkat (Depends-on): Likewise.
1032         * modules/unlinkat (Depends-on): Likewise.
1033         * modules/utimensat (Depends-on): Likewise.
1034         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
1035         * modules/linkat (Depends-on): Refine the conditions.
1036         * modules/renameat (Depends-on): Likewise.
1037
1038 2011-11-08  Bruno Haible  <bruno@clisp.org>
1039
1040         faccessat: Move AC_LIBOBJ invocation to module description.
1041         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
1042         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
1043         invocation from here...
1044         * modules/faccessat (configure.ac): ... to here. Invoke
1045         gl_PREREQ_FACCESSAT.
1046
1047 2011-11-08  Bruno Haible  <bruno@clisp.org>
1048
1049         faccessat: Simplify autoconf macro.
1050         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
1051         gl_FUNC_EUIDACCESS.
1052
1053 2011-11-08  Bruno Haible  <bruno@clisp.org>
1054
1055         renameat: Fix dependencies.
1056         * modules/renameat (Depends-on): Add stdbool.
1057
1058 2011-11-08  Bruno Haible  <bruno@clisp.org>
1059
1060         mkfifoat: Fix module description.
1061         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
1062         not gl_UNISTD_MODULE_INDICATOR.
1063
1064 2011-11-08  Bruno Haible  <bruno@clisp.org>
1065
1066         fstatat: Remove unused dependency.
1067         * modules/fstatat (Depends-on): Remove fstat.
1068
1069 2011-11-08  Simon Josefsson  <simon@josefsson.org>
1070
1071         GNUmakefile: behave when Makefile is missing.
1072         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
1073
1074 2011-11-08  Bruno Haible  <bruno@clisp.org>
1075
1076         openat: Conditionalize dependencies.
1077         * lib/openat.c: Reduce the scope of some #includes.
1078         * modules/openat (Depends-on): Add conditions.
1079
1080 2011-11-07  Jim Meyering  <meyering@redhat.com>
1081
1082         maint.mk: extract GPG key ID without using a temporary file
1083         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
1084         without using a temporary file.  Based on a suggestion from Werner Koch
1085         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
1086
1087 2011-11-07  Eric Blake  <eblake@redhat.com>
1088
1089         grantpt: fix typo
1090         * lib/stdlib.in.h (grantpt): Check correct function.
1091
1092         maint.mk: silence new syntax check
1093         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
1094
1095 2011-11-06  Bruno Haible  <bruno@clisp.org>
1096
1097         Doc about floating-point and math API.
1098         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
1099         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
1100
1101 2011-11-06  Bruno Haible  <bruno@clisp.org>
1102
1103         stdalign tests: Skip the test when compiled by Sun C.
1104         * tests/test-stdalign.c (main): Skip the test on Sun C.
1105
1106 2011-11-06  Bruno Haible  <bruno@clisp.org>
1107
1108         ansi-c++-opt: Complete the 2011-06-05 change.
1109         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
1110         does not support namespaces, set the variable to "no", not to ":".
1111
1112 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
1113
1114         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
1115
1116 2011-11-06  Bruno Haible  <bruno@clisp.org>
1117
1118         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
1119         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
1120         (minus_zerol) [HP-UX]: New macro.
1121         (unary_minus) [HP-UX]: New function.
1122         (copysignl) [HP-UX]: Use unary_minus function.
1123
1124 2011-11-06  Bruno Haible  <bruno@clisp.org>
1125
1126         ldexp, ldexpf, ldexpl: Enhance tests.
1127         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
1128         and tests/test-ldexpl.c.
1129         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
1130         LDEXP, MIN_EXP, MAX_EXP): New macros.
1131         Include test-ldexp.h.
1132         (main): Just call test_function.
1133         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
1134         infinity.h, nan.h.
1135         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
1136         MAX_EXP): New macros.
1137         Include test-ldexp.h.
1138         (x, y): Remove variables.
1139         (main): Just call test_function.
1140         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
1141         infinity.h, nan.h.
1142         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
1143         MAX_EXP): New macros.
1144         Include test-ldexp.h.
1145         (x, y): Remove variables.
1146         (main): Just call test_function.
1147         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
1148         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
1149         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
1150         (Depends-on): Add isnand-nolibm, signbit, float.
1151         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
1152         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
1153         (Depends-on): Add isnanf-nolibm, signbit, float.
1154
1155 2011-11-06  Bruno Haible  <bruno@clisp.org>
1156
1157         math tests: Cosmetics.
1158         * tests/test-math-c++.cc: Reorder declarations.
1159
1160 2011-11-05  Bruno Haible  <bruno@clisp.org>
1161
1162         fma*: Simplify test.
1163         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
1164         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
1165
1166         Tests for module 'fmal'.
1167         * modules/fmal-tests: New file.
1168         * tests/test-fmal1.c: New file.
1169         * tests/test-fmal2.c: New file.
1170
1171         New module 'fmal'.
1172         * lib/math.in.h (fmal): New declaration.
1173         * lib/fmal.c: New file.
1174         * m4/fmal.m4: New file.
1175         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
1176         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
1177         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
1178         REPLACE_FMAL.
1179         * modules/fmal: New file.
1180         * doc/posix-functions/fmal.texi: Mention the new module and the various
1181         bugs.
1182
1183         Tests for module 'fmaf'.
1184         * modules/fmaf-tests: New file.
1185         * tests/test-fmaf1.c: New file.
1186         * tests/test-fmaf2.c: New file.
1187
1188         New module 'fmaf'.
1189         * lib/math.in.h (fmaf): New declaration.
1190         * lib/fmaf.c: New file.
1191         * m4/fmaf.m4: New file.
1192         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
1193         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
1194         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
1195         REPLACE_FMAF.
1196         * modules/fmaf: New file.
1197         * doc/posix-functions/fmaf.texi: Mention the new module and the various
1198         bugs.
1199
1200         Tests for module 'fma'.
1201         * modules/fma-tests: New file.
1202         * tests/test-fma1.c: New file.
1203         * tests/test-fma1.h: New file.
1204         * tests/test-fma2.c: New file.
1205         * tests/test-fma2.h: New file.
1206
1207         New module 'fma'.
1208         * lib/math.in.h (fma): New declaration.
1209         * lib/fma.c: New file.
1210         * m4/fma.m4: New file.
1211         * m4/fegetround.m4: New file.
1212         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
1213         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
1214         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
1215         REPLACE_FMA.
1216         * modules/fma: New file.
1217         * doc/posix-functions/fma.texi: Mention the new module and the various
1218         bugs.
1219
1220         Extend gl_MATHFUNC.
1221         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
1222         Support 'void' as argument type.
1223         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
1224
1225 2011-11-05  Jim Meyering  <meyering@redhat.com>
1226
1227         maint.mk: also prohibit inclusion of dirent.h without use
1228         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
1229
1230 2011-11-05  Bruno Haible  <bruno@clisp.org>
1231
1232         ldexpl tests: Avoid test failure on MSVC 9.
1233         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
1234         value. Needed in order to enforce the conversion from a value greater
1235         than LDBL_MAX to Infinity.
1236
1237 2011-11-05  Bruno Haible  <bruno@clisp.org>
1238
1239         New modules 'at-internal', 'openat-h', split off from module 'openat'.
1240         * modules/at-internal: New file, extracted from modules/openat.
1241         * modules/openat-h: New file.
1242         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
1243         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
1244         * modules/openat (Description): Add reference to POSIX function.
1245         (Files): Remove lib/openat.h, lib/openat-proc.c.
1246         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
1247         intprops, unistd.
1248         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
1249         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
1250         gl_FCNTL_MODULE_INDICATOR.
1251         (Include): Remove unistd.h, openat.h.
1252         * modules/areadlinkat (Files): Add lib/at-func.c.
1253         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1254         openat-die, openat-h, save-cwd.
1255         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
1256         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1257         openat-die, openat-h, save-cwd, unistd.
1258         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
1259         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1260         openat-h, save-cwd. Remove fcntl-h, openat.
1261         * modules/fchmodat (Files): Remove lib/openat.h.
1262         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1263         openat, stdbool, unistd.
1264         * modules/fchownat (Files): Remove lib/openat.h.
1265         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1266         openat, stdbool, sys_stat.
1267         * modules/fdopendir (Files): Remove lib/openat-priv.h,
1268         lib/openat-proc.c.
1269         (Depends-on): Add at-internal.
1270         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
1271         * modules/fstatat (Files): Remove lib/openat.h.
1272         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
1273         stdbool, unistd.
1274         * modules/fts (Depends-on): Add openat-h.
1275         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
1276         openat.
1277         * modules/mkdirat (Files): Remove lib/openat.h.
1278         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1279         openat, stdbool, sys_stat.
1280         * modules/mkfifoat (Files): Add lib/at-func.c.
1281         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1282         openat-h, save-cwd. Remove fcntl-h, openat.
1283         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
1284         * modules/readlinkat (Files): Add lib/at-func.c.
1285         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1286         openat-h, save-cwd. Remove fcntl-h, openat.
1287         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
1288         openat.
1289         * modules/selinux-at (Files): Add lib/at-func.c.
1290         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1291         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
1292         * modules/symlinkat (Files): Add lib/at-func.c.
1293         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1294         openat-h, save-cwd. Remove fcntl-h, openat.
1295         * modules/unlinkat (Files): Remove lib/openat.h.
1296         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
1297         stdbool.
1298         * modules/utimensat (Files): Add lib/at-func.c.
1299         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
1300         openat-die, openat-h, save-cwd.
1301         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
1302         * modules/fdutimensat-tests (Depends-on): Add openat.
1303         * modules/fstatat-tests (Depends-on): Add openat-h.
1304         * modules/readlinkat-tests (Depends-on): Add openat.
1305         * modules/symlinkat-tests (Depends-on): Add openat.
1306
1307 2011-11-05  Bruno Haible  <bruno@clisp.org>
1308
1309         openat: Include <stdbool.h>.
1310         * lib/openat.c: Include <stdbool.h>.
1311
1312 2011-11-04  Bruno Haible  <bruno@clisp.org>
1313
1314         fchownat, renameat, unlinkat: Fix dependencies.
1315         * modules/fchownat (Depends-on): Add fstatat.
1316         * modules/renameat (Depends-on): Likewise.
1317         * modules/unlinkat (Depends-on): Likewise.
1318
1319 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
1320
1321         openat: remove direct dependency on dirent
1322         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
1323         and hasn't been needed ever since fdopendir was split into its own
1324         module on 2009-08-31.
1325         * modules/openat (Depends-on): Remove dirent.
1326
1327 2011-11-04  Bruno Haible  <bruno@clisp.org>
1328
1329         renameat: Optimize code size.
1330         * modules/renameat (configure.ac): Don't compile at-func2.c if
1331         REPLACE_RENAMEAT is 1.
1332
1333 2011-11-04  Bruno Haible  <bruno@clisp.org>
1334
1335         openat tests: Fix file list.
1336         * modules/openat-tests (Files): Add tests/test-open.h.
1337
1338 2011-11-04  Bruno Haible  <bruno@clisp.org>
1339
1340         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
1341         * modules/fchmodat (Depends-on): Add openat-die.
1342         * modules/fchownat (Depends-on): Likewise.
1343         * modules/linkat (Depends-on): Likewise.
1344         * modules/renameat (Depends-on): Likewise.
1345         * modules/openat (Depends-on): Add dirent.
1346
1347 2011-11-04  Jim Meyering  <meyering@redhat.com>
1348
1349         at-func*.c: fix comments
1350         * lib/at-func2.c: Correct/improve first-line comment.
1351         * lib/at-func.c: Correct grammar in first-line comment.
1352
1353 2011-11-04  Bruno Haible  <bruno@clisp.org>
1354
1355         New module 'mkdirat', split off from module 'openat'.
1356         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
1357         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
1358         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
1359         * modules/mkdirat: New file, extracted from modules/openat.
1360         * modules/openat (Files): Remove lib/mkdirat.c.
1361         (Depends-on): Remove mkdir.
1362         (configure.ac): Remove AC_LIBOBJ of mkdirat.
1363         (Include): Remove <sys/stat.h>.
1364         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
1365         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
1366         tests/test-mkdir.h.
1367         (Depends-on): Remove ignore-value.
1368         (Makefile.am): Remove rules for test-mkdirat.
1369         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
1370         of module 'openat'.
1371         * NEWS: Mention the change.
1372
1373 2011-11-04  Bruno Haible  <bruno@clisp.org>
1374
1375         closedir: Avoid warning on mingw.
1376         * lib/closedir.c: Include <unistd.h>.
1377
1378 2011-11-04  Bruno Haible  <bruno@clisp.org>
1379
1380         New module 'fstatat', split off from module 'openat'.
1381         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
1382         defined.
1383         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
1384         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
1385         gl_FUNC_FSTATAT.
1386         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
1387         * modules/fstatat: New file, extracted from modules/openat.
1388         * modules/openat (Files): Remove lib/fstatat.c.
1389         (Depends-on): Remove lstat.
1390         (configure.ac): Remove AC_LIBOBJ of fstatat.
1391         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
1392         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
1393         tests/test-lstat.h, tests/test-stat.h.
1394         (Depends-on): Remove getcwd-lgpl.
1395         (Makefile.am): Remove rules for test-fstatat.
1396         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
1397         of module 'openat'.
1398         * NEWS: Mention the change.
1399         * modules/getcwd (Depends-on): Add fstatat.
1400         * modules/linkat (Depends-on): Likewise.
1401         * modules/mkfifoat-tests (Depends-on): Likewise.
1402         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
1403
1404 2011-11-03  Bruno Haible  <bruno@clisp.org>
1405
1406         New module 'unlinkat', split off from module 'openat'.
1407         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
1408         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
1409         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
1410         * modules/unlinkat: New file, extracted from modules/openat. Correct
1411         the dependency conditions.
1412         * modules/openat (Files): Remove lib/unlinkat.c.
1413         (Depends-on): Remove rmdir, unlink.
1414         (configure.ac): Remove AC_LIBOBJ of unlinkat.
1415         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
1416         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
1417         tests/test-rmdir.h, tests/test-unlink.h.
1418         (Depends-on): Remove unlinkdir.
1419         (Makefile.am): Remove rules for test-unlinkat.
1420         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
1421         of module 'openat'.
1422         * NEWS: Mention the change.
1423         * modules/linkat-tests (Depends-on): Add unlinkat.
1424         * modules/mkfifoat-tests (Depends-on): Likewise.
1425         * modules/readlinkat-tests (Depends-on): Likewise.
1426
1427 2011-11-02  Bruno Haible  <bruno@clisp.org>
1428
1429         New module 'fchmodat', split off from module 'openat'.
1430         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
1431         defined.
1432         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
1433         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
1434         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
1435         * modules/fchmodat: New file, extracted from modules/openat.
1436         * modules/openat (Files): Remove lib/fchmodat.c.
1437         (configure.ac): Remove AC_LIBOBJ of fchmodat.
1438         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
1439         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
1440         (Makefile.am): Remove rules for test-fchmodat.
1441         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
1442         of module 'openat'.
1443         * NEWS: Mention the change.
1444
1445 2011-11-02  Jim Meyering  <meyering@redhat.com>
1446
1447         putenv: indent #definition of "environ" to placate cppi
1448         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
1449
1450         gitlog-to-changelog: provide a ChangeLog-repair mechanism
1451         Git logs are often treated as immutable, because editing them
1452         changes the SHA1 checksums of all descendants.  Thus, errors in
1453         git logs tend to stay there forever.  However, when we generate
1454         a ChangeLog file -- typically for distribution -- from that git log,
1455         we can actually make corrections in the generated file.  The key
1456         lies in recording in machine-readable/applicable form the desired
1457         corrections.  See --help for description and an example.
1458         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
1459         (usage): Describe it; alphabetize option descriptions.
1460         (main): Honor the new option, carefully.
1461
1462 2011-11-01  Jim Meyering  <meyering@redhat.com>
1463
1464         gitlog-to-changelog: avoid an infloop
1465         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
1466         that ends up being empty.
1467
1468 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1469
1470         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
1471         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
1472         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
1473         contains (possibly-quoted) backslashes.  This should avoid
1474         all-too-common shell bugs if COMPLICATED contains backslashes in
1475         the "wrong" places.  Reported by David Evans in
1476         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
1477         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
1478         because we want ASCII ranges.  Is there some reason we don't use
1479         the C locale everywhere in this script?
1480         (func_module, top level): Avoid unwanted pathname expansion when
1481         $repo_url_prefix or $repo_url_suffix_repl contain shell
1482         metacharacters like '?' and '*'.
1483
1484 2011-11-01  Bruno Haible  <bruno@clisp.org>
1485
1486         fchownat: Improve description.
1487         * modules/fchownat (Description): Add link to function.
1488
1489 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1490
1491         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
1492         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
1493         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
1494         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
1495
1496 2011-11-01  Bruno Haible  <bruno@clisp.org>
1497
1498         alignof: Avoid collision with stdalign module.
1499         * lib/alignof.h (alignof): Remove macro.
1500         * NEWS: Mention the change.
1501         Reported by Paul Eggert.
1502
1503 2011-11-01  Bruno Haible  <bruno@clisp.org>
1504
1505         New module 'fchownat', split off from module 'openat'.
1506         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
1507         defined.
1508         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
1509         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
1510         invoke gl_FUNC_FCHOWNAT.
1511         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
1512         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
1513         * modules/fchownat: New file, extracted from modules/openat.
1514         * modules/openat (Files): Remove lib/fchownat.c.
1515         (Depends-on): Remove lchown.
1516         (configure.ac): Remove AC_LIBOBJ of fchownat.
1517         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
1518         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
1519         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
1520         (Depends-on): Remove mgetgroups, usleep, stat-time.
1521         (configure.ac): Remove test for getegid.
1522         (Makefile.am): Remove rules for test-fchownat.
1523         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
1524         of module 'openat'.
1525         * NEWS: Mention the change.
1526
1527 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
1528
1529         stdalign: port better to MSVC and to Sun C 5.11
1530         This fixes some of the problems reported by Bruno Haible in
1531         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
1532         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
1533         shortcomings of MSVC and of Sun C 5.11.
1534         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
1535         around __declspec arg.
1536         * modules/stdalign-tests (Files): Add tests/macros.h.
1537         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
1538         Include macros.h, for ASSERT.
1539         (DECLARE_ALIGNED): Remove.
1540         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
1541         to catch bug), and to 1 if not (simplifies the rest of the code).
1542         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
1543         (CHECK_AUTO): Remove.
1544         (CHECK_ALIGNED): Check only the alignment of the static vars,
1545         since auto var alignment isn't supported by Sun C 5.11.
1546         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
1547         ASSERT failures are easier to diagnose.
1548
1549 2011-10-31  Bruno Haible  <bruno@clisp.org>
1550
1551         doc about some IRIX 5.3 problems.
1552         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
1553         on IRIX 5.3.
1554         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
1555         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
1556         5.3.
1557         * doc/posix-functions/grantpt.texi: Likewise.
1558         * doc/posix-functions/unlockpt.texi: Likewise.
1559         * doc/posix-functions/lgamma.texi: Likewise.
1560         * doc/posix-functions/nextafter.texi: Likewise.
1561         * doc/posix-functions/remainder.texi: Likewise.
1562         * doc/posix-functions/select.texi: Mention misplaced declaration on
1563         IRIX 5.3.
1564         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1565
1566 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
1567
1568         gitlog-to-changelog: fix git-log invocation.
1569         git-log mishandles date strings before 1970-01-01 UTC, and there is
1570         no use to specify --since=1970-01-01 by default anyway.
1571         * build-aux/gitlog-to-changelog: By default, when no --since option
1572         was given, do not specify explicit --since option to git-log.
1573
1574 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
1575
1576         gitlog-to-changelog: new option --append-dot.
1577         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
1578         first non-blank line of each commit message terminated with a dot.
1579
1580 2011-10-30  Bruno Haible  <bruno@clisp.org>
1581
1582         ffsl, ffsll: Avoid compilation error due to 'restrict'.
1583         * lib/ffsl.h: Include <config.h>.
1584         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
1585
1586 2011-10-30  Jim Meyering  <meyering@redhat.com>
1587
1588         GNUmakefile: reenable "make syntax-check" for most projects
1589         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
1590         build-aux variable", "syntax-check" would do nothing but succeed with
1591         the "No version control files detected..." diagnostic (unless you
1592         happened to override _build-aux via cfg.mk).
1593         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
1594         to precede inclusion of maint.mk.  Otherwise, these variables would
1595         be used undefined in any project that does not override the default.
1596
1597 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
1598
1599         gitlog-to-changelog: treat a message with only blank lines as empty.
1600         * build-aux/gitlog-to-changelog: Move the code that removes leading and
1601         trailing blank lines before the code that issues a warning about an
1602         empty commit message.
1603
1604 2011-10-30  Jim Meyering  <meyering@redhat.com>
1605
1606         test-parse-datetime.c: avoid new DST-related false positive test failure
1607         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
1608         based on the time/date we'll convert, not the current time.
1609         Otherwise, the moment we cross a DST boundary like today's in
1610         Europe, (CEST to CET), that offset ends up being one hour off.
1611
1612 2011-10-27  Bruno Haible  <bruno@clisp.org>
1613
1614         fstat: Tweak documentation.
1615         * modules/fstat (Description): More precise description.
1616
1617 2011-10-27  Bruno Haible  <bruno@clisp.org>
1618
1619         Update documentation regarding 'largefile' module.
1620         * doc/posix-functions/fstat.texi: Tweak wording.
1621         * doc/posix-functions/opendir.texi: Mention that the module fixes the
1622         problems with huge directories and/or small ino_t types.
1623         * doc/posix-functions/readdir.texi: Likewise.
1624         * doc/posix-functions/rewinddir.texi: Likewise.
1625
1626 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
1627
1628         maint.mk: don't maintain a second build-aux variable.
1629         * maint.mk (build_aux): Removed.  The maintainer-makefile module
1630         depends on GNUmakefile, which already maintains a cfg.mk
1631         overridable $(_build-aux) for projects with a non-standard
1632         build-aux directory location, although without the $(srcdir)
1633         prefix.  Use that variable consistently instead of introducing a
1634         second one.  Adjust all call sites.
1635
1636 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
1637
1638         Add stdalign module and use it in other modules.
1639         This is based on a previous proposal by Bruno Haible
1640         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
1641
1642         stdalign: new module
1643         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
1644         * modules/stdalign: New files.
1645         * MODULES.html.sh (c1x_core_properties): Add stdalign.
1646         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
1647
1648         stdalign-tests: new module
1649         * modules/stdalign-tests, tests/test-stdalign.c: New files.
1650
1651         argp: use stdalign
1652         * lib/argp-parse.c: Include <stdalign.h>.
1653         (alignof): Remove.
1654         * modules/argp (Depends-on): Add stdalign.
1655
1656         crypto libraries: use stdalign
1657         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
1658         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
1659         Do not include <stdlib.h> twice, in md4.c.
1660         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
1661         because we are accessing a pointer's bit-pattern, not a size.
1662         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
1663         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
1664         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
1665         * modules/crypto/sha512: Likewise.
1666
1667         sys_socket: use stdalign, not alignof
1668         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
1669         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
1670
1671 2011-10-27  Bruno Haible  <bruno@clisp.org>
1672
1673         raise test: Avoid a test failure on Linux/MIPS.
1674         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
1675         because 99 is a valid signal on Linux/MIPS.
1676
1677 2011-10-27  Bruno Haible  <bruno@clisp.org>
1678
1679         nonblocking tests: Fix test failure on Linux/MIPS.
1680         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
1681         Set to 270000.
1682
1683 2011-10-27  Bruno Haible  <bruno@clisp.org>
1684
1685         utimensat: Work around problem on Linux/hppa.
1686         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
1687         values.
1688         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
1689
1690 2011-10-25  Jim Meyering  <meyering@redhat.com>
1691
1692         maint.mk: fix a bug in sc_prohibit_stddef_without_use
1693         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
1694         after symbols like NULL, size_t, etc.
1695         Reported by Alfred M. Szmidt.
1696
1697         maint.mk: exempt ENODATA from a syntax-check rule
1698         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
1699         from the sc_prohibit_always-defined_macros syntax-check rule.
1700         Add a comment.  See this for more details:
1701         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
1702
1703 2011-10-23  Jim Meyering  <meyering@redhat.com>
1704
1705         fts: close parent dir FD before returning from post-traversal fts_read
1706         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
1707         unlink A, even though an FD open on A remained.  This is suboptimal
1708         (holding a file descriptor open longer than needed), but otherwise not
1709         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
1710         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
1711         that represents a real problem: it causes the removal of A to fail
1712         with e.g., "rm: cannot remove `A': Device or resource busy"
1713
1714         fts visits each directory twice and keeps a cache (fts_fd_ring) of
1715         directory file descriptors.  After completing the final, FTS_DP,
1716         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
1717         cache, but then proceeded to add a new FD to it via the subsequent
1718         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
1719         final file descriptor would be closed only via fts_close's call to
1720         fd_ring_clear.  Now, it is usually closed earlier, via the final
1721         FTS_DP-returning fts_read call.
1722         * lib/fts.c (restore_initial_cwd): New function, converted from
1723         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
1724         Update callers.
1725         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
1726         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
1727
1728 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
1729             Bruno Haible  <bruno@clisp.org>
1730             Jim Meyering  <jim@meyering.net>
1731
1732         readme-release: improve safety of release prep instructions.
1733         * README-release: Don't git pull all branches when only master
1734         is needed for the release process.
1735         Run make maintainer-clean before changing trees and merging.
1736         Don't try to run ./configure right after git pull in case files
1737         that influence the bootstrap process have changed, move the
1738         ./configure step to after running ./bootstrap.
1739         Don't bootstrap "one last time"... it's the first time!
1740
1741 2011-10-22  Bruno Haible  <bruno@clisp.org>
1742
1743         errno, strerror-override: Support for MSVC 10.
1744         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
1745         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
1746         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
1747         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
1748         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
1749         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
1750         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
1751         Assign values compatible with MSVC 10.
1752         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
1753         New macros.
1754         (GNULIB_defined_EWINSOCK): New macro.
1755         * lib/strerror-override.c (strerror_override): Update accordingly.
1756         * lib/strerror-override.h: Likewise.
1757         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
1758         longer equal to the corresponding errno value.
1759         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1760
1761 2011-10-22  Bruno Haible  <bruno@clisp.org>
1762
1763         perror: Recognize when test program crashes.
1764         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
1765         strerror, set gl_cv_func_perror_works to no.
1766         Reported by Daniel Richard G. <skunk@iskunk.org>.
1767
1768         perror: Fix indentation.
1769         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
1770
1771 2011-10-22  Bruno Haible  <bruno@clisp.org>
1772
1773         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
1774         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
1775         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
1776         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
1777         functions, not as a macro.
1778         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
1779         macros.
1780         (isfinite, isinf, isnan, signbit): Check overloaded functions and
1781         absence of macro.
1782         Suggested by Eric Blake.
1783         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1784
1785 2011-10-21  Bruno Haible  <bruno@clisp.org>
1786
1787         relocatable-prog-wrapper: Don't leave object files behind.
1788         * build-aux/install-reloc: Re-synchronize list of .o files to be
1789         removed with list of compilation units.
1790
1791 2011-10-20  Bruno Haible  <bruno@clisp.org>
1792
1793         openpty, posix_openpt: Remove code duplication.
1794         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
1795         * lib/openpty.c: Include <stdlib.h>.
1796         (openpty): Use posix_openpt on all platforms except IRIX.
1797         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
1798
1799 2011-10-20  Bruno Haible  <bruno@clisp.org>
1800
1801         unlockpt: Detect invalid argument.
1802         * lib/unlockpt.c: Include <fcntl.h>.
1803         (unlockpt): Check whether fd is valid, using fcntl().
1804         * modules/unlockpt (Depends-on): Add fcntl-h.
1805
1806 2011-10-20  Bruno Haible  <bruno@clisp.org>
1807
1808         openpty: Avoid compilation error on AIX 6.1.
1809         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
1810
1811 2011-10-20  Bruno Haible  <bruno@clisp.org>
1812
1813         posix_openpt: Support for OpenBSD.
1814         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
1815         (posix_openpt) [OpenBSD]: New code.
1816         * lib/grantpt.c: Include <fcntl.h>.
1817         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
1818         * modules/grantpt (Depends-on): Add fcntl-h.
1819
1820 2011-10-20  Bruno Haible  <bruno@clisp.org>
1821
1822         posix_openpt test: Coding style.
1823         * tests/test-posix_openpt.c: Use GNU coding style.
1824
1825 2011-10-20  Bruno Haible  <bruno@clisp.org>
1826
1827         grantpt: Support --avoid=pt_chown.
1828         * modules/grantpt (Files): Add lib/pty-private.h.
1829
1830 2011-10-20  Bruno Haible  <bruno@clisp.org>
1831
1832         posix_openpt: Fix autoconf macro.
1833         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
1834         unneeded check for _getpty.
1835
1836 2011-10-20  Bruno Haible  <bruno@clisp.org>
1837
1838         openpty: Update comments.
1839         * lib/openpty.c: Add comments about Minix.
1840
1841 2011-10-19  Eric Blake  <eblake@redhat.com>
1842
1843         openpty: relax license
1844         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
1845
1846         pt_chown: use configmake to simplify build
1847         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
1848
1849         ptsname and others: relax license
1850         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
1851         * modules/unlockpt (License): Likewise.
1852         * modules/pt_chown (License): Likewise.
1853         * modules/ptsname (License): Likewise.
1854         * modules/ttyname_r (License): Likewise.
1855
1856 2011-10-19  Jim Meyering  <meyering@redhat.com>
1857
1858         posix_openpt: remove spurious #endif
1859         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
1860
1861 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
1862
1863         maint.mk: Respect $(build_aux) in web-manual rule.
1864         * top/maint.mk (web-manual): Find gen-announce script in user's
1865         $(build_aux) directory instead of hard-coding 'build-aux'.
1866
1867 2011-10-19  Bruno Haible  <bruno@clisp.org>
1868
1869         posix_openpt: Fix compilation error.
1870         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
1871         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
1872         Mention the openpty module as an alternative.
1873
1874 2011-10-19  Bruno Haible  <bruno@clisp.org>
1875
1876         Support for old NeXTstep 3.3 frexp().
1877         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
1878         execution time of the test to 5 seconds.
1879         Reported by Daniel Richard G. <skunk@iskunk.org>.
1880
1881 2011-10-19  Bruno Haible  <bruno@clisp.org>
1882
1883         Support for old NeXTstep 3.3 sed.
1884         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
1885         part, use /.../, not \|...|. Escape periods in the header file name.
1886         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
1887         Reported by Daniel Richard G. <skunk@iskunk.org>.
1888
1889 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1890
1891         Support for old NeXTstep 3.3 gcc.
1892         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
1893         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
1894         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
1895         * lib/spawn.in.h (_Restrict_arr_): Likewise.
1896         * lib/regex.h (_Restrict_arr_): Likewise.
1897         * lib/regex_internal.h (re_token_t): Likewise.
1898         * lib/regexec.c (check_node_accept_bytes): Likewise.
1899         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
1900
1901 2011-10-18  Eric Blake  <eblake@redhat.com>
1902
1903         posix_openpt: new module
1904         * modules/posix_openpt: New module.
1905         * m4/posix_openpt.m4: New file.
1906         * lib/posix_openpt.c: Likewise.
1907         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
1908         (gl_STDLIB_H_DEFAULTS): Set defaults.
1909         * modules/stdlib (Makefile.am): Substitute macros.
1910         * lib/stdlib.in.h (posix_openpt): Declare.
1911         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
1912         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
1913         * modules/posix_openpt-tests: New test module.
1914         * tests/test-posix_openpt.c: New test.
1915
1916 2011-10-15  Bruno Haible  <bruno@clisp.org>
1917
1918         xstrtoll: Fix compilation failure.
1919         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
1920         from lib/strtol.c.
1921         * doc/posix-headers/limits.texi: Mention missing numerical limits on
1922         some platforms.
1923         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1924
1925 2011-10-15  Bruno Haible  <bruno@clisp.org>
1926
1927         vasnprintf: Optimize bit search operation.
1928         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
1929         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
1930         gl_DOUBLE_EXPONENT_LOCATION.
1931         * modules/vasnprintf (Files): Add m4/exponentd.m4.
1932         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1933         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1934         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1935         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1936         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1937         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1938         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1939         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
1940
1941 2011-10-15  Bruno Haible  <bruno@clisp.org>
1942
1943         vasnprintf: Fix comments.
1944         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
1945
1946 2011-10-14  Bruno Haible  <bruno@clisp.org>
1947
1948         Tests for module 'integer_length_ll'.
1949         * modules/integer_length_ll-tests: New file.
1950         * tests/test-integer_length_ll.c: New file.
1951
1952         New module 'integer_length_ll'.
1953         * lib/integer_length_ll.c: New file.
1954         * modules/integer_length_ll: New file.
1955
1956 2011-10-14  Bruno Haible  <bruno@clisp.org>
1957
1958         Tests for module 'integer_length_l'.
1959         * modules/integer_length_l-tests: New file.
1960         * tests/test-integer_length_l.c: New file.
1961
1962         New module 'integer_length_l'.
1963         * lib/integer_length_l.c: New file.
1964         * modules/integer_length_l: New file.
1965
1966 2011-10-14  Bruno Haible  <bruno@clisp.org>
1967
1968         Tests for module 'integer_length'.
1969         * modules/integer_length-tests: New file.
1970         * tests/test-integer_length.c: New file.
1971
1972         New module 'integer_length'.
1973         * lib/integer_length.h: New file.
1974         * lib/integer_length.c: New file.
1975         * modules/integer_length: New file.
1976
1977 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1978
1979         popen: Fix dependency conditions.
1980         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
1981
1982 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1983
1984         perror: Fix autoconf test.
1985         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
1986         <stdlib.h> and <string.h>.
1987
1988 2011-10-14  Bruno Haible  <bruno@clisp.org>
1989
1990         ffsl: Optimize on 64-bit platforms.
1991         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
1992         unrolling.
1993
1994 2011-10-13  Bruno Haible  <bruno@clisp.org>
1995
1996         ffsl: Optimize on 32-bit platforms.
1997         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
1998         use ffs() without a loop.
1999
2000         ffsl, ffsll: Optimize for GCC.
2001         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
2002         * lib/ffsl.c (GCC_BUILTIN): New macro.
2003         * lib/ffsll.c (GCC_BUILTIN): Likewise.
2004
2005 2011-10-13  Bruno Haible  <bruno@clisp.org>
2006
2007         ffs, bcopy, memset: Support symbol renaming via config.h.
2008         * lib/ffs.c: Include <config.h>.
2009         * lib/bcopy.c: Likewise.
2010         * lib/memset.c: Likewise.
2011
2012 2011-10-10  Bruno Haible  <bruno@clisp.org>
2013
2014         atanl: Simplify for platforms where 'long double' == 'double'.
2015         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2016         alternative implementation.
2017         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2018         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2019         * modules/atanl (Depends-on): Add atan. Update conditions.
2020
2021 2011-10-10  Bruno Haible  <bruno@clisp.org>
2022
2023         acosl: Simplify for platforms where 'long double' == 'double'.
2024         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2025         alternative implementation.
2026         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2027         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2028         * modules/acosl (Depends-on): Add acos. Update conditions.
2029
2030 2011-10-10  Bruno Haible  <bruno@clisp.org>
2031
2032         asinl: Simplify for platforms where 'long double' == 'double'.
2033         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2034         alternative implementation.
2035         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2036         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2037         * modules/asinl (Depends-on): Add asin. Update conditions.
2038
2039 2011-10-10  Bruno Haible  <bruno@clisp.org>
2040
2041         tanl: Simplify for platforms where 'long double' == 'double'.
2042         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2043         implementation.
2044         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2045         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2046         * modules/tanl (Depends-on): Add tan. Update conditions.
2047         (configure.ac): Don't compile trigl.c if
2048         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2049
2050 2011-10-10  Bruno Haible  <bruno@clisp.org>
2051
2052         cosl: Simplify for platforms where 'long double' == 'double'.
2053         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2054         implementation.
2055         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2056         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2057         * modules/cosl (Depends-on): Add cos. Update conditions.
2058         (configure.ac): Don't compile sincosl.c and trigl.c if
2059         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2060
2061 2011-10-10  Bruno Haible  <bruno@clisp.org>
2062
2063         sinl: Simplify for platforms where 'long double' == 'double'.
2064         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2065         implementation.
2066         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2067         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2068         * modules/sinl (Depends-on): Add sin. Update conditions.
2069         (configure.ac): Don't compile sincosl.c and trigl.c if
2070         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2071
2072 2011-10-10  Bruno Haible  <bruno@clisp.org>
2073
2074         logl: Simplify for platforms where 'long double' == 'double'.
2075         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2076         implementation.
2077         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2078         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2079         * modules/logl (Depends-on): Add log. Update conditions.
2080
2081 2011-10-10  Bruno Haible  <bruno@clisp.org>
2082
2083         expl: Simplify for platforms where 'long double' == 'double'.
2084         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2085         implementation.
2086         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2087         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2088         * modules/expl (Depends-on): Add exp. Update conditions.
2089
2090 2011-10-10  Bruno Haible  <bruno@clisp.org>
2091
2092         sqrtl: Simplify for platforms where 'long double' == 'double'.
2093         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2094         alternative implementation.
2095         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2096         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2097         * modules/sqrtl (Depends-on): Update conditions.
2098
2099 2011-10-10  Bruno Haible  <bruno@clisp.org>
2100
2101         ldexpl: Simplify for platforms where 'long double' == 'double'.
2102         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2103         alternative implementation.
2104         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2105         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2106         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
2107
2108 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
2109
2110         ffsll: set correct witness
2111         * modules/ffsll (configure.ac): Fix typo.
2112
2113 2011-10-10  Bruno Haible  <bruno@clisp.org>
2114
2115         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
2116         * lib/printf-frexpl.c: Include <config.h>.
2117         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2118         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
2119         second time.
2120         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
2121         gl_LONG_DOUBLE_VS_DOUBLE.
2122         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
2123         conditions.
2124
2125 2011-10-10  Bruno Haible  <bruno@clisp.org>
2126
2127         frexpl: Simplify for platforms where 'long double' == 'double'.
2128         * lib/frexpl.c: Include <config.h>.
2129         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2130         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2131         time.
2132         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2133         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2134         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
2135         * modules/frexpl (Depends-on): Add frexp. Update conditions.
2136         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
2137         conditions.
2138
2139 2011-10-10  Jim Meyering  <meyering@redhat.com>
2140
2141         test-renameat: don't leave behind a temporary file
2142         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
2143           ERROR: files left in build directory after distclean:
2144           ./gltests/test-renameat.too
2145           make[1]: *** [distcleancheck] Error 1
2146         Reported by Tom G. Christensen.
2147
2148 2011-10-09  Bruno Haible  <bruno@clisp.org>
2149
2150         rint: Determine RINT_LIBM correctly on AIX 7.
2151         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
2152         directly, not only through a function pointer. Also accept an optional
2153         4th argument with extra code.
2154         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
2155         rintf() call by gcc when optimizing.
2156
2157         mathfunc.m4: Refactor.
2158         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
2159         m4 variable.
2160
2161 2011-10-09  Bruno Haible  <bruno@clisp.org>
2162
2163         rintl: Simplify for platforms where 'long double' == 'double'.
2164         * lib/rintl.c: Include <config.h>.
2165         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2166         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2167         time.
2168         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2169         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2170         * modules/rintl (Depends-on): Add rint. Update conditions.
2171
2172 2011-10-09  Bruno Haible  <bruno@clisp.org>
2173
2174         roundl: Simplify for platforms where 'long double' == 'double'.
2175         * lib/roundl.c: Include <config.h>.
2176         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2177         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2178         time.
2179         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2180         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2181         * modules/roundl (Depends-on): Add round. Update conditions.
2182
2183 2011-10-09  Bruno Haible  <bruno@clisp.org>
2184
2185         truncl: Simplify for platforms where 'long double' == 'double'.
2186         * lib/truncl.c: Include <config.h>.
2187         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2188         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2189         time.
2190         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2191         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2192         * modules/truncl (Depends-on): Add trunc. Update conditions.
2193
2194 2011-10-09  Bruno Haible  <bruno@clisp.org>
2195
2196         ceill: Simplify for platforms where 'long double' == 'double'.
2197         * lib/ceill.c: Include <config.h>.
2198         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2199         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2200         time.
2201         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2202         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2203         * modules/ceill (Depends-on): Add ceil. Update conditions.
2204
2205 2011-10-09  Bruno Haible  <bruno@clisp.org>
2206
2207         floorl: Simplify for platforms where 'long double' == 'double'.
2208         * lib/floorl.c: Include <config.h>.
2209         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2210         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2211         time.
2212         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2213         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2214         * modules/floorl (Depends-on): Add floor. Update conditions.
2215
2216 2011-10-09  Bruno Haible  <bruno@clisp.org>
2217
2218         rint: Fix ordering constraints.
2219         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
2220         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
2221         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
2222
2223 2011-10-09  Bruno Haible  <bruno@clisp.org>
2224
2225         copysignl: Simplify for platforms where 'long double' == 'double'.
2226         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2227         alternative.
2228         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2229         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2230         * modules/copysignl (Depends-on): Add copysign. Update conditions.
2231
2232 2011-10-09  Bruno Haible  <bruno@clisp.org>
2233
2234         Tests for module 'rintl'.
2235         * modules/rintl-tests: New file.
2236         * tests/test-rintl.c: New file.
2237
2238         New module 'rintl'.
2239         * lib/math.in.h (rintl): New declaration.
2240         * lib/rintl.c: New file.
2241         * m4/rintl.m4: New file.
2242         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
2243         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
2244         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
2245         * modules/rintl: New file.
2246         * tests/test-math-c++.cc: Check the declaration of rintl.
2247         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2248         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
2249         * doc/posix-functions/rintl.texi: Mention the new module.
2250
2251 2011-10-09  Bruno Haible  <bruno@clisp.org>
2252
2253         Tests for module 'rintf'.
2254         * modules/rintf-tests: New file.
2255         * tests/test-rintf.c: New file.
2256
2257         New module 'rintf'.
2258         * lib/math.in.h (rintf): New declaration.
2259         * lib/rintf.c: New file.
2260         * m4/rintf.m4: New file.
2261         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
2262         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
2263         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
2264         * modules/rintf: New file.
2265         * tests/test-math-c++.cc: Check the declaration of rintf.
2266         * doc/posix-functions/rintf.texi: Mention the new module.
2267
2268 2011-10-09  Bruno Haible  <bruno@clisp.org>
2269
2270         rint: Support for MSVC.
2271         * lib/math.in.h (rint): New declaration.
2272         * lib/rint.c: New file.
2273         * m4/rint.m4: New file.
2274         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
2275         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
2276         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
2277         * modules/rint (Description): Fix.
2278         (Files): Add lib/rint.c, m4/rint.m4.
2279         (Depends-on): Add math.
2280         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
2281         gl_MATH_MODULE_INDICATOR.
2282         * tests/test-math-c++.cc: Check the declaration of rint.
2283         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2284         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
2285         * doc/posix-functions/rint.texi: Mention the replacement provided by
2286         the module.
2287
2288         rint tests: More tests.
2289         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
2290         minus-zero.h, infinity.h, nan.h.
2291         (main): Skip the test if the current rounding mode is not standard. Add
2292         tests for negative numbers, minus zero, infinity, NaN.
2293         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
2294         tests/nan.h.
2295         (Depends-on): Add isnand-nolibm.
2296
2297 2011-10-09  Bruno Haible  <bruno@clisp.org>
2298
2299         Tests for module 'copysignl'.
2300         * modules/copysignl-tests: New file.
2301         * tests/test-copysignl.c: New file.
2302
2303         New module 'copysignl'.
2304         * lib/math.in.h (copysignl): New declaration.
2305         * lib/copysignl.c: New file.
2306         * m4/copysignl.m4: New file.
2307         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
2308         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
2309         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
2310         HAVE_COPYSIGNL.
2311         * modules/copysignl: New file.
2312         * tests/test-math-c++.cc: Check the declaration of copysignl.
2313         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2314         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
2315         * doc/posix-functions/copysignl.texi: Mention the new module.
2316
2317 2011-10-09  Bruno Haible  <bruno@clisp.org>
2318
2319         Tests for module 'copysignf'.
2320         * modules/copysignf-tests: New file.
2321         * tests/test-copysignf.c: New file.
2322
2323         New module 'copysignf'.
2324         * lib/math.in.h (copysignf): New declaration.
2325         * lib/copysignf.c: New file.
2326         * m4/copysignf.m4: New file.
2327         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
2328         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
2329         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
2330         HAVE_COPYSIGNF.
2331         * modules/copysignf: New file.
2332         * tests/test-math-c++.cc: Check the declaration of copysignf.
2333         * doc/posix-functions/copysignf.texi: Mention the new module.
2334
2335 2011-10-09  Bruno Haible  <bruno@clisp.org>
2336
2337         Ensure that HAVE_* variables are set to 1 before they are set to 0.
2338         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
2339         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
2340         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
2341         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
2342         gl_SIGNAL_H_DEFAULTS.
2343
2344 2011-10-09  Bruno Haible  <bruno@clisp.org>
2345
2346         poll: Make macro safer.
2347         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
2348         ac_cv_header_poll_h is not set.
2349
2350 2011-10-09  Bruno Haible  <bruno@clisp.org>
2351
2352         copysign: Provide replacement.
2353         * lib/math.in.h (copysign): New declaration.
2354         * lib/copysign.c: New file.
2355         * m4/copysign.m4: New file.
2356         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
2357         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
2358         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
2359         HAVE_COPYSIGN.
2360         * modules/copysign (Description): Clarify.
2361         (Files): Add lib/copysign.c, m4/copysign.m4.
2362         (Depends-on): Add math, signbit.
2363         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
2364         gl_MATH_MODULE_INDICATOR.
2365         * tests/test-math-c++.cc: Check the declaration of copysign.
2366         * doc/posix-functions/copysign.texi: Mention the effects of the module
2367         on Minix and MSVC.
2368
2369 2011-10-09  Bruno Haible  <bruno@clisp.org>
2370
2371         isinf: Ensure macro on AIX 5.1.
2372         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
2373         macro.
2374         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
2375
2376 2011-10-09  Bruno Haible  <bruno@clisp.org>
2377
2378         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
2379         * modules/snprintf-posix-tests (configure.ac): Require
2380         gl_LONG_DOUBLE_VS_DOUBLE.
2381         * modules/sprintf-posix-tests (configure.ac): Likewise.
2382         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
2383         * modules/vasprintf-posix-tests (configure.ac): Likewise.
2384         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
2385         * modules/vsprintf-posix-tests (configure.ac): Likewise.
2386         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
2387         tests on platforms where 'long double' is the same as 'double'.
2388         * tests/test-sprintf-posix.h (test_function): Likewise.
2389         * tests/test-vasnprintf-posix.c (test_function): Likewise.
2390         * tests/test-vasprintf-posix.c (test_function): Likewise.
2391
2392         *printf: Fix for platforms where 'long double' == 'double'.
2393         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
2394         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
2395         * modules/dprintf-posix (Files): Add m4/math_h.m4.
2396         * modules/fprintf-posix (Files): Likewise.
2397         * modules/obstack-printf-posix (Files): Likewise.
2398         * modules/snprintf-posix (Files): Likewise.
2399         * modules/sprintf-posix (Files): Likewise.
2400         * modules/vasnprintf (Files): Likewise.
2401         * modules/vasnprintf-posix (Files): Likewise.
2402         * modules/vasprintf-posix (Files): Likewise.
2403         * modules/vdprintf-posix (Files): Likewise.
2404         * modules/vfprintf-posix (Files): Likewise.
2405         * modules/vsnprintf-posix (Files): Likewise.
2406         * modules/vsprintf-posix (Files): Likewise.
2407         * modules/unistdio/u8-vasnprintf (Files): Likewise.
2408         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
2409         * modules/unistdio/u16-vasnprintf (Files): Likewise.
2410         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
2411         * modules/unistdio/u32-vasnprintf (Files): Likewise.
2412         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
2413         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
2414
2415         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
2416         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
2417         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2418         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
2419         'long double'.
2420         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
2421
2422         isinf: Fix for platforms where 'long double' == 'double'.
2423         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
2424         Don't blindly assume 80-bit 'long double'.
2425
2426         isfinite: Fix for platforms where 'long double' == 'double'.
2427         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
2428         Don't blindly assume 80-bit 'long double'.
2429
2430         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
2431         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
2432         * modules/isfinite-tests (configure.ac): Require
2433         gl_LONG_DOUBLE_VS_DOUBLE.
2434         * modules/isinf-tests (configure.ac): Likewise.
2435         * modules/isnan-tests (configure.ac): Likewise.
2436         * modules/isnanl-tests (configure.ac): Likewise.
2437         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
2438         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
2439         tests on platforms where 'long double' is the same as 'double'.
2440         * tests/test-isinf.c (test_isinfl): Likewise.
2441         * tests/test-isnan.c (test_long_double): Likewise.
2442         * tests/test-isnanl.h (main): Likewise.
2443
2444 2011-10-08  Bruno Haible  <bruno@clisp.org>
2445
2446         Tests for module 'tanhf'.
2447         * modules/tanhf-tests: New file.
2448         * tests/test-tanhf.c: New file.
2449
2450         New module 'tanhf'.
2451         * lib/math.in.h (tanhf): New declaration.
2452         * lib/tanhf.c: New file.
2453         * m4/tanhf.m4: New file.
2454         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
2455         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
2456         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
2457         * modules/tanhf: New file.
2458         * tests/test-math-c++.cc: Check the declaration of tanhf.
2459         * doc/posix-functions/tanhf.texi: Mention the new module.
2460
2461         tanh: Use a .m4 file.
2462         * m4/tanh.m4: New file.
2463         * modules/tanh (Files): Add it.
2464         (configure.ac): Just invoke gl_FUNC_TANH.
2465
2466 2011-10-08  Bruno Haible  <bruno@clisp.org>
2467
2468         Tests for module 'coshf'.
2469         * modules/coshf-tests: New file.
2470         * tests/test-coshf.c: New file.
2471
2472         New module 'coshf'.
2473         * lib/math.in.h (coshf): New declaration.
2474         * lib/coshf.c: New file.
2475         * m4/coshf.m4: New file.
2476         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
2477         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
2478         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
2479         * modules/coshf: New file.
2480         * tests/test-math-c++.cc: Check the declaration of coshf.
2481         * doc/posix-functions/coshf.texi: Mention the new module.
2482
2483         cosh: Use a .m4 file.
2484         * m4/cosh.m4: New file.
2485         * modules/cosh (Files): Add it.
2486         (configure.ac): Just invoke gl_FUNC_COSH.
2487
2488 2011-10-08  Bruno Haible  <bruno@clisp.org>
2489
2490         Tests for module 'sinhf'.
2491         * modules/sinhf-tests: New file.
2492         * tests/test-sinhf.c: New file.
2493
2494         New module 'sinhf'.
2495         * lib/math.in.h (sinhf): New declaration.
2496         * lib/sinhf.c: New file.
2497         * m4/sinhf.m4: New file.
2498         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
2499         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
2500         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
2501         * modules/sinhf: New file.
2502         * tests/test-math-c++.cc: Check the declaration of sinhf.
2503         * doc/posix-functions/sinhf.texi: Mention the new module.
2504
2505         sinh: Use a .m4 file.
2506         * m4/sinh.m4: New file.
2507         * modules/sinh (Files): Add it.
2508         (configure.ac): Just invoke gl_FUNC_SINH.
2509
2510 2011-10-08  Bruno Haible  <bruno@clisp.org>
2511
2512         Tests for module 'atan2f'.
2513         * modules/atan2f-tests: New file.
2514         * tests/test-atan2f.c: New file.
2515
2516         New module 'atan2f'.
2517         * lib/math.in.h (atan2f): New declaration.
2518         * lib/atan2f.c: New file.
2519         * m4/atan2f.m4: New file.
2520         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
2521         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
2522         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
2523         * modules/atan2f: New file.
2524         * tests/test-math-c++.cc: Check the declaration of atan2f.
2525         * doc/posix-functions/atan2f.texi: Mention the new module.
2526
2527         atan2: Use a .m4 file.
2528         * m4/atan2.m4: New file.
2529         * modules/atan2 (Files): Add it.
2530         (configure.ac): Just invoke gl_FUNC_ATAN2.
2531
2532 2011-10-08  Bruno Haible  <bruno@clisp.org>
2533
2534         Tests for module 'atanf'.
2535         * modules/atanf-tests: New file.
2536         * tests/test-atanf.c: New file.
2537
2538         New module 'atanf'.
2539         * lib/math.in.h (atanf): New declaration.
2540         * lib/atanf.c: New file.
2541         * m4/atanf.m4: New file.
2542         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
2543         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
2544         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
2545         * modules/atanf: New file.
2546         * tests/test-math-c++.cc: Check the declaration of atanf.
2547         * doc/posix-functions/atanf.texi: Mention the new module.
2548
2549         atan: Use a .m4 file.
2550         * m4/atan.m4: New file.
2551         * modules/atan (Files): Add it.
2552         (configure.ac): Just invoke gl_FUNC_ATAN.
2553
2554 2011-10-08  Bruno Haible  <bruno@clisp.org>
2555
2556         Tests for module 'acosf'.
2557         * modules/acosf-tests: New file.
2558         * tests/test-acosf.c: New file.
2559
2560         New module 'acosf'.
2561         * lib/math.in.h (acosf): New declaration.
2562         * lib/acosf.c: New file.
2563         * m4/acosf.m4: New file.
2564         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
2565         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
2566         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
2567         * modules/acosf: New file.
2568         * tests/test-math-c++.cc: Check the declaration of acosf.
2569         * doc/posix-functions/acosf.texi: Mention the new module.
2570
2571         acos: Use a .m4 file.
2572         * m4/acos.m4: New file.
2573         * modules/acos (Files): Add it.
2574         (configure.ac): Just invoke gl_FUNC_ACOS.
2575
2576 2011-10-08  Bruno Haible  <bruno@clisp.org>
2577
2578         Tests for module 'asinf'.
2579         * modules/asinf-tests: New file.
2580         * tests/test-asinf.c: New file.
2581
2582         New module 'asinf'.
2583         * lib/math.in.h (asinf): New declaration.
2584         * lib/asinf.c: New file.
2585         * m4/asinf.m4: New file.
2586         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
2587         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
2588         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
2589         * modules/asinf: New file.
2590         * tests/test-math-c++.cc: Check the declaration of asinf.
2591         * doc/posix-functions/asinf.texi: Mention the new module.
2592
2593         asin: Use a .m4 file.
2594         * m4/asin.m4: New file.
2595         * modules/asin (Files): Add it.
2596         (configure.ac): Just invoke gl_FUNC_ASIN.
2597
2598 2011-10-08  Bruno Haible  <bruno@clisp.org>
2599
2600         Tests for module 'tanf'.
2601         * modules/tanf-tests: New file.
2602         * tests/test-tanf.c: New file.
2603
2604         New module 'tanf'.
2605         * lib/math.in.h (tanf): New declaration.
2606         * lib/tanf.c: New file.
2607         * m4/tanf.m4: New file.
2608         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
2609         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
2610         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
2611         * modules/tanf: New file.
2612         * tests/test-math-c++.cc: Check the declaration of tanf.
2613         * doc/posix-functions/tanf.texi: Mention the new module.
2614
2615         tan: Use a .m4 file.
2616         * m4/tan.m4: New file.
2617         * modules/tan (Files): Add it.
2618         (configure.ac): Just invoke gl_FUNC_TAN.
2619
2620 2011-10-08  Bruno Haible  <bruno@clisp.org>
2621
2622         Tests for module 'cosf'.
2623         * modules/cosf-tests: New file.
2624         * tests/test-cosf.c: New file.
2625
2626         New module 'cosf'.
2627         * lib/math.in.h (cosf): New declaration.
2628         * lib/cosf.c: New file.
2629         * m4/cosf.m4: New file.
2630         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
2631         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
2632         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
2633         * modules/cosf: New file.
2634         * tests/test-math-c++.cc: Check the declaration of cosf.
2635         * doc/posix-functions/cosf.texi: Mention the new module.
2636
2637         cos: Use a .m4 file.
2638         * m4/cos.m4: New file.
2639         * modules/cos (Files): Add it.
2640         (configure.ac): Just invoke gl_FUNC_COS.
2641
2642 2011-10-08  Bruno Haible  <bruno@clisp.org>
2643
2644         Tests for module 'sinf'.
2645         * modules/sinf-tests: New file.
2646         * tests/test-sinf.c: New file.
2647
2648         New module 'sinf'.
2649         * lib/math.in.h (sinf): New declaration.
2650         * lib/sinf.c: New file.
2651         * m4/sinf.m4: New file.
2652         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
2653         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
2654         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
2655         * modules/sinf: New file.
2656         * tests/test-math-c++.cc: Check the declaration of sinf.
2657         * doc/posix-functions/sinf.texi: Mention the new module.
2658
2659         sin: Use a .m4 file.
2660         * m4/sin.m4: New file.
2661         * modules/sin (Files): Add it.
2662         (configure.ac): Just invoke gl_FUNC_SIN.
2663
2664 2011-10-08  Bruno Haible  <bruno@clisp.org>
2665
2666         Tests for module 'powf'.
2667         * modules/powf-tests: New file.
2668         * tests/test-powf.c: New file.
2669
2670         New module 'powf'.
2671         * lib/math.in.h (powf): New declaration.
2672         * lib/powf.c: New file.
2673         * m4/powf.m4: New file.
2674         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
2675         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
2676         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
2677         * modules/powf: New file.
2678         * tests/test-math-c++.cc: Check the declaration of powf.
2679         * doc/posix-functions/powf.texi: Mention the new module.
2680
2681         pow: Use a .m4 file.
2682         * m4/pow.m4: New file.
2683         * modules/pow (Files): Add it.
2684         (configure.ac): Just invoke gl_FUNC_POW.
2685
2686 2011-10-08  Bruno Haible  <bruno@clisp.org>
2687
2688         Tests for module 'log10f'.
2689         * modules/log10f-tests: New file.
2690         * tests/test-log10f.c: New file.
2691
2692         New module 'log10f'.
2693         * lib/math.in.h (log10f): New declaration.
2694         * lib/log10f.c: New file.
2695         * m4/log10f.m4: New file.
2696         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
2697         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
2698         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
2699         * modules/log10f: New file.
2700         * tests/test-math-c++.cc: Check the declaration of log10f.
2701         * doc/posix-functions/log10f.texi: Mention the new module.
2702
2703         log10: Use a .m4 file.
2704         * m4/log10.m4: New file.
2705         * modules/log10 (Files): Add it.
2706         (configure.ac): Just invoke gl_FUNC_LOG10.
2707
2708 2011-10-08  Bruno Haible  <bruno@clisp.org>
2709
2710         Tests for module 'logf'.
2711         * modules/logf-tests: New file.
2712         * tests/test-logf.c: New file.
2713
2714         New module 'logf'.
2715         * lib/math.in.h (logf): New declaration.
2716         * lib/logf.c: New file.
2717         * m4/logf.m4: New file.
2718         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
2719         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
2720         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
2721         * modules/logf: New file.
2722         * tests/test-math-c++.cc: Check the declaration of logf.
2723         * doc/posix-functions/logf.texi: Mention the new module.
2724
2725         log: Use a .m4 file.
2726         * m4/log.m4: New file.
2727         * modules/log (Files): Add it.
2728         (configure.ac): Just invoke gl_FUNC_LOG.
2729
2730 2011-10-08  Bruno Haible  <bruno@clisp.org>
2731
2732         Tests for module 'expf'.
2733         * modules/expf-tests: New file.
2734         * tests/test-expf.c: New file.
2735
2736         New module 'expf'.
2737         * lib/math.in.h (expf): New declaration.
2738         * lib/expf.c: New file.
2739         * m4/expf.m4: New file.
2740         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
2741         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
2742         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
2743         * modules/expf: New file.
2744         * tests/test-math-c++.cc: Check the declaration of expf.
2745         * doc/posix-functions/expf.texi: Mention the new module.
2746
2747         exp: Use a .m4 file.
2748         * m4/exp.m4: New file.
2749         * modules/exp (Files): Add it.
2750         (configure.ac): Just invoke gl_FUNC_EXP.
2751
2752 2011-10-08  Bruno Haible  <bruno@clisp.org>
2753
2754         Tests for module 'sqrtf'.
2755         * modules/sqrtf-tests: New file.
2756         * tests/test-sqrtf.c: New file.
2757
2758         New module 'sqrtf'.
2759         * lib/math.in.h (sqrtf): New declaration.
2760         * lib/sqrtf.c: New file.
2761         * m4/sqrtf.m4: New file.
2762         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
2763         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
2764         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
2765         * modules/sqrtf: New file.
2766         * tests/test-math-c++.cc: Check the declaration of sqrtf.
2767         * doc/posix-functions/sqrtf.texi: Mention the new module.
2768
2769 2011-10-08  Bruno Haible  <bruno@clisp.org>
2770
2771         Tests: Avoid link failures w.r.t. libintl.
2772         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
2773         $(LIBINTL).
2774         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
2775         $(LIBINTL).
2776         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
2777         against $(LIBINTL).
2778         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
2779         $(LIBINTL).
2780         * modules/openat-tests (Makefile.am): Link test-fchmodat against
2781         $(LIBINTL).
2782         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
2783
2784 2011-10-08  Bruno Haible  <bruno@clisp.org>
2785
2786         pow tests: Defeat compiler optimizations.
2787         * tests/test-pow.c (main): Assign arguments to x and y before use.
2788
2789 2011-10-08  Bruno Haible  <bruno@clisp.org>
2790
2791         gnulib-tool: Improve last commit.
2792         * gnulib-tool (func_modules_transitive_closure): Simplify code.
2793         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
2794         ignore dependencies that are not among the modules list.
2795
2796 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
2797
2798         gnulib-tool: don't follow dependencies to avoided modules
2799         This fixes a bug that is related to the previous one.
2800         * gnulib-tool (func_modules_transitive_closure)
2801         (func_emit_autoconf_snippets):
2802         Check whether a dependency is acceptable before using it.
2803         (--extract-dependencies): Report an error if --avoid is also used,
2804         since this combination of options is not yet supported.
2805
2806         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
2807         Problem reported by Peter Dyballa in
2808         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
2809         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
2810         when echoing "$condition".
2811
2812 2011-10-07  Bruno Haible  <bruno@clisp.org>
2813
2814         Fix documentation about math functions on MacOS X.
2815         * doc/posix-functions/exp2.texi: Don't say the function is missing on
2816         MacOS X 10.5.
2817         * doc/posix-functions/fdim.texi: Likewise.
2818         * doc/posix-functions/feclearexcept.texi: Likewise.
2819         * doc/posix-functions/fegetenv.texi: Likewise.
2820         * doc/posix-functions/fegetround.texi: Likewise.
2821         * doc/posix-functions/feholdexcept.texi: Likewise.
2822         * doc/posix-functions/feraiseexcept.texi: Likewise.
2823         * doc/posix-functions/fesetenv.texi: Likewise.
2824         * doc/posix-functions/fesetround.texi: Likewise.
2825         * doc/posix-functions/fetestexcept.texi: Likewise.
2826         * doc/posix-functions/feupdateenv.texi: Likewise.
2827         * doc/posix-functions/fmax.texi: Likewise.
2828         * doc/posix-functions/fmin.texi: Likewise.
2829         * doc/posix-functions/log2.texi: Likewise.
2830         * doc/posix-functions/modff.texi: Likewise.
2831         * doc/posix-functions/nan.texi: Likewise.
2832         * doc/posix-functions/nanf.texi: Likewise.
2833         * doc/posix-functions/nextafterf.texi: Likewise.
2834         * doc/posix-functions/remquo.texi: Likewise.
2835
2836 2011-10-07  Bruno Haible  <bruno@clisp.org>
2837
2838         modff: Drop assumption about library that defines modff.
2839         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
2840         AC_CHECK_FUNCS.
2841         * modules/modff (Files): Add m4/mathfunc.m4.
2842
2843 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
2844
2845         raise tests: Avoid a GCC warning.
2846         * tests/test-raise.c (handler): Use _Noreturn.
2847
2848 2011-10-07  Bruno Haible  <bruno@clisp.org>
2849
2850         Tests for module 'ldexpf'.
2851         * modules/ldexpf-tests: New file.
2852         * tests/test-ldexpf.c: New file.
2853
2854         New module 'ldexpf'.
2855         * lib/math.in.h (ldexpf): New declaration.
2856         * lib/ldexpf.c: New file.
2857         * m4/ldexpf.m4: New file.
2858         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
2859         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
2860         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
2861         * modules/ldexpf: New file.
2862         * tests/test-math-c++.cc: Check the declaration of ldexpf.
2863         * doc/posix-functions/ldexpf.texi: Mention the new module.
2864
2865 2011-10-06  Bruno Haible  <bruno@clisp.org>
2866
2867         frexpf: Work around problems on IRIX and mingw.
2868         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
2869         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
2870         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
2871         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
2872         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
2873         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
2874         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
2875
2876 2011-10-06  Bruno Haible  <bruno@clisp.org>
2877
2878         fabsf: Drop assumption about library that defines fabsf.
2879         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
2880         AC_CHECK_FUNCS.
2881         * modules/fabsf (Files): Add m4/mathfunc.m4.
2882
2883 2011-10-06  Bruno Haible  <bruno@clisp.org>
2884
2885         frexpf: Drop assumption about library that defines frexpf.
2886         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
2887         'int *', 'float *', 'long double *', 'float', 'long double'.
2888         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
2889         AC_CHECK_FUNCS.
2890         * modules/frexpf (Files): Add m4/mathfunc.m4.
2891
2892         Tests for module 'frexpf'.
2893         * modules/frexpf-tests: New file.
2894         * tests/test-frexpf.c: New file.
2895
2896         New module 'frexpf'.
2897         * lib/math.in.h (frexpf): New declaration.
2898         * lib/frexpf.c: New file.
2899         * m4/frexpf.m4: New file.
2900         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
2901         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
2902         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
2903         * modules/frexpf: New file.
2904         * tests/test-math-c++.cc: Check the declaration of frexpf.
2905         * doc/posix-functions/frexpf.texi: Mention the new module.
2906
2907 2011-10-06  Bruno Haible  <bruno@clisp.org>
2908
2909         math: Sort function declarations of math.in.h.
2910         * lib/math.in.h (frexp, logb): Move declarations.
2911
2912 2011-10-05  Bruno Haible  <bruno@clisp.org>
2913
2914         Tests for module 'modff'.
2915         * modules/modff-tests: New file.
2916         * tests/test-modff.c: New file.
2917
2918         New module 'modff'.
2919         * lib/math.in.h (modff): New declaration.
2920         * lib/modff.c: New file.
2921         * m4/modff.m4: New file.
2922         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
2923         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
2924         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
2925         * modules/modff: New file.
2926         * tests/test-math-c++.cc: Check the declaration of modff.
2927         * doc/posix-functions/modff.texi: Mention the new module.
2928
2929         modf tests: Make test sharper.
2930         * tests/test-modf.c (main): Strengthen upper bound.
2931
2932         modf: Use a .m4 file.
2933         * m4/modf.m4: New file.
2934         * modules/modf (Files): Add it.
2935         (configure.ac): Just invoke gl_FUNC_MODF.
2936
2937 2011-10-05  Bruno Haible  <bruno@clisp.org>
2938
2939         Tests for module 'fmodf'.
2940         * modules/fmodf-tests: New file.
2941         * tests/test-fmodf.c: New file.
2942
2943         New module 'fmodf'.
2944         * lib/math.in.h (fmodf): New declaration.
2945         * lib/fmodf.c: New file.
2946         * m4/fmodf.m4: New file.
2947         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
2948         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
2949         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
2950         * modules/fmodf: New file.
2951         * tests/test-math-c++.cc: Check the declaration of fmodf.
2952         * doc/posix-functions/fmodf.texi: Mention the new module.
2953
2954         fmod: Use a .m4 file.
2955         * m4/fmod.m4: New file.
2956         * modules/fmod (Files): Add it.
2957         (configure.ac): Just invoke gl_FUNC_FMOD.
2958
2959 2011-10-05  Bruno Haible  <bruno@clisp.org>
2960
2961         Tests for module 'fabsf'.
2962         * modules/fabsf-tests: New file.
2963         * tests/test-fabsf.c: New file.
2964
2965         New module 'fabsf'.
2966         * lib/math.in.h (fabsf): New declaration.
2967         * lib/fabsf.c: New file.
2968         * m4/fabsf.m4: New file.
2969         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
2970         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
2971         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
2972         * modules/fabsf: New file.
2973         * tests/test-math-c++.cc: Check the declaration of fabsf.
2974         * doc/posix-functions/fabsf.texi: Mention the new module.
2975
2976         fabs: Use a .m4 file.
2977         * m4/fabs.m4: New file.
2978         * modules/fabs (Files): Add it.
2979         (configure.ac): Just invoke gl_FUNC_FABS.
2980
2981 2011-10-05  Jim Meyering  <meyering@redhat.com>
2982
2983         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
2984         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
2985         ls -lL regression introduced in coreutils-8.12, it does so at the
2986         cost of an additional stat call in the common case.  Besides, now
2987         that the kernel change that prompted commit 95f7c57f has been reverted
2988         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
2989         we have no use for commit 95f7c57f, "file-has-acl: use
2990         acl_extended_file_nofollow if available".
2991
2992 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
2993
2994         file-has-acl: revert unintended change in behavior of ls -L
2995         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
2996         derived from...
2997         (file_has_acl): ...code here.  Call it.
2998         This problem was introduced with 2011-07-22 commit 95f7c57f,
2999         "file-has-acl: use acl_extended_file_nofollow if available".
3000         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
3001
3002 2011-10-03  Bruno Haible  <bruno@clisp.org>
3003
3004         poll: Avoid link errors on MSVC.
3005         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
3006         * modules/poll (Depends-on): Add sockets.
3007         (Link): New section.
3008         * NEWS: Mention the change.
3009         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
3010         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
3011         $(LIB_POLL) instead of $(LIBSOCKET).
3012
3013 2011-10-03  Bruno Haible  <bruno@clisp.org>
3014
3015         sys_select tests: Fix link error on MSVC 9.
3016         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
3017         with $(LIB_SELECT) instead of $(LIBSOCKET).
3018
3019 2011-10-03  Bruno Haible  <bruno@clisp.org>
3020
3021         sys_select: Fix compilation error on mingw.
3022         * lib/sys_select.in.h: On native Windows, include <io.h>.
3023
3024 2011-10-03  Bruno Haible  <bruno@clisp.org>
3025
3026         wmemset: Support for MSVC.
3027         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
3028         whether wmemset() exists.
3029
3030 2011-10-03  Bruno Haible  <bruno@clisp.org>
3031
3032         wmemmove: Support for MSVC.
3033         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
3034         whether wmemmove() exists.
3035
3036 2011-10-03  Bruno Haible  <bruno@clisp.org>
3037
3038         wmemcpy: Support for MSVC.
3039         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
3040         whether wmemcpy() exists.
3041
3042 2011-10-03  Bruno Haible  <bruno@clisp.org>
3043
3044         wmemcmp: Support for MSVC.
3045         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
3046         whether wmemcmp() exists.
3047
3048 2011-10-03  Bruno Haible  <bruno@clisp.org>
3049
3050         wmemchr: Support for MSVC.
3051         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
3052         whether wmemchr() exists.
3053
3054 2011-10-03  Bruno Haible  <bruno@clisp.org>
3055
3056         glthread/*, strsignal: Support for MSVC.
3057         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
3058         including <winsock.h> on MSVC 9.
3059         * lib/glthread/lock.h: Likewise.
3060         * lib/glthread/thread.h: Likewise.
3061         * lib/glthread/tls.h: Likewise.
3062         * lib/glthread/yield.h: Likewise.
3063         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
3064         if HAVE_UNISTD_H is false.
3065         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
3066
3067 2011-10-03  Bruno Haible  <bruno@clisp.org>
3068
3069         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
3070         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
3071         Set to 100000.
3072
3073 2011-10-03  Bruno Haible  <bruno@clisp.org>
3074
3075         acl: Fix specification.
3076         * lib/file-has-acl.c (file_has_acl): Fix specification.
3077
3078 2011-10-03  Bruno Haible  <bruno@clisp.org>
3079
3080         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
3081         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
3082         (compute_curr_prefix, shared_library_fullname,
3083         find_shared_library_fullname, get_shared_library_fullname, relocate):
3084         Use it together with PIC && INSTALLDIR.
3085         Reported by <jojelino@gmail.com>
3086         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
3087
3088 2011-10-01  Jim Meyering  <meyering@redhat.com>
3089
3090         maint.mk: adjust a release-related rule not to require use of gzip
3091         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
3092         Instead, check each file in $(DIST_ARCHIVES).  This is better for
3093         projects that build only .tar.xz files.  Also fix an erroneous test.
3094
3095         test-linkat: don't leave behind a temporary file
3096         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
3097         Otherwise, coreutils' "make distcheck" would fail with this:
3098           Only in /c/cu/tests/torture/coreutils/test/\
3099             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
3100           make[2]: *** [my-distcheck] Error 1
3101
3102         float, math: add omitted file
3103         * lib/itold.c: Add file, required for yesterday's float change.
3104
3105 2011-10-01  Bruno Haible  <bruno@clisp.org>
3106
3107         isinf: Fix for OpenBSD/x86.
3108         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
3109         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
3110         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
3111
3112 2011-10-01  Bruno Haible  <bruno@clisp.org>
3113
3114         isfinite: Fix syntax error in configure test.
3115         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
3116
3117         isfinite: Fix typo.
3118         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
3119         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
3120
3121 2011-10-01  Bruno Haible  <bruno@clisp.org>
3122
3123         nonblocking tests: Fix test failure on Linux/IA-64.
3124         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
3125         Set to 270000.
3126
3127 2011-10-01  Bruno Haible  <bruno@clisp.org>
3128
3129         mkfifoat tests: Fix a test failure on mingw.
3130         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
3131         with error ENOSYS.
3132
3133 2011-09-30  Bruno Haible  <bruno@clisp.org>
3134
3135         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
3136         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
3137         'long double'. Set REPLACE_ITOLD.
3138         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
3139         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
3140         * lib/itold.c: New file.
3141         * modules/float (Files): Add lib/itold.c.
3142         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
3143         (Makefile.am): Substitute REPLACE_ITOLD.
3144         * modules/math (Depends-on): Add float.
3145         (Makefile.am): Substitute REPLACE_ITOLD.
3146         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
3147         * doc/posix-headers/math.texi: Likewise.
3148         * doc/posix-functions/logl.texi: Likewise.
3149
3150 2011-09-30  Bruno Haible  <bruno@clisp.org>
3151
3152         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
3153         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
3154         Set to 140000.
3155
3156 2011-09-30  Bruno Haible  <bruno@clisp.org>
3157
3158         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
3159         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
3160         invocation, say "right after AC_PROG_CC_STDC", not "right after
3161         AC_PROG_CC".
3162         Reported by Gary V. Vaughan <gary@gnu.org>.
3163
3164 2011-09-30  Bruno Haible  <bruno@clisp.org>
3165
3166         Centralize C99 requirement.
3167         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
3168         * modules/stdarg (configure.ac-early): Invoke it instead of
3169         AC_PROG_CC_STDC.
3170         Reported by Gary V. Vaughan and Paul Eggert.
3171
3172 2011-09-29  Bruno Haible  <bruno@clisp.org>
3173
3174         float: Fix LDBL_MAX value on Linux/PowerPC.
3175         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
3176         on Linux/PowerPC.
3177         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
3178         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
3179         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
3180         platform.
3181         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
3182
3183 2011-09-29  Bruno Haible  <bruno@clisp.org>
3184
3185         doc: Improve doc about gl_EARLY.
3186         * doc/gnulib-tool.texi (Initial import): Mention where to place an
3187         AC_PROG_CC_STDC invocation.
3188         Reported by Gary V. Vaughan <gary@gnu.org>.
3189
3190 2011-09-28  Bruno Haible  <bruno@clisp.org>
3191
3192         fgetc, fputc, fread, fwrite tests: Fix link error.
3193         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
3194         on non-MSVC platforms.
3195         * tests/test-fputc.c (main): Likewise.
3196         * tests/test-fread.c (main): Likewise.
3197         * tests/test-fwrite.c (main): Likewise.
3198         Reported by Jim Meyering.
3199
3200 2011-09-27  Bruno Haible  <bruno@clisp.org>
3201
3202         fputc, fwrite tests: Avoid test failure on MSVC.
3203         * tests/test-fgetc.c: Include msvc-inval.h.
3204         (main): Invoke gl_msvc_inval_ensure_handler.
3205         * tests/test-fputc.c: Include msvc-inval.h.
3206         (main): Invoke gl_msvc_inval_ensure_handler.
3207         * tests/test-fread.c: Include msvc-inval.h.
3208         (main): Invoke gl_msvc_inval_ensure_handler.
3209         * tests/test-fwrite.c: Include msvc-inval.h.
3210         (main): Invoke gl_msvc_inval_ensure_handler.
3211         * modules/fgetc-tests (Depends-on): Add msvc-inval.
3212         * modules/fputc-tests (Depends-on): Likewise.
3213         * modules/fread-tests (Depends-on): Likewise.
3214         * modules/fwrite-tests (Depends-on): Likewise.
3215
3216 2011-09-27  Bruno Haible  <bruno@clisp.org>
3217
3218         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
3219         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
3220         (raise): Remove older, duplicated declaration.
3221         (_gl_raise_SIGPIPE): New declaration.
3222         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
3223         (rpl_raise): Remove function.
3224         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
3225         a gnulib-defined SIGPIPE here.
3226         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
3227         'sigprocmask' has detected missing signal-blocking and the module
3228         'sigpipe' is enabled.
3229         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
3230
3231 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
3232
3233         base64-tests: avoid memory leak
3234         * tests/test-base64.c (main): Plug memory leak.
3235
3236         base32: new module
3237         * modules/base32: New module.
3238         * lib/base32.c: New file.
3239         * lib/base32.h: Likewise.
3240         * m4/base32.m4: Likewise.
3241         * modules/base32-tests: New test.
3242         * tests/test-base32.c: Likewise.
3243         * MODULES.html.sh (Misc): Mention it.
3244
3245 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3246
3247         gnulib: use more-standard license notice wording
3248         * gnulib-tool (func_emit_copyright_notice): When emitting a
3249         license notice into a file, use the standard wording as suggested
3250         by the current information for GNU maintainers, except say "file"
3251         rather than "program".  The new wording gives a license version
3252         number, which addresses an issue raised by Glenn Morris in
3253         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
3254         * m4/onceonly.m4: Use that same wording here, too.
3255
3256         dup2: minor simplification
3257         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
3258         as lib/dup2.c no longer uses 'inline'.
3259
3260 2011-09-25  Bruno Haible  <bruno@clisp.org>
3261
3262         strings: Fix compilation error on MSVC.
3263         * lib/strings.in.h: Include <stddef.h> for size_t.
3264
3265 2011-09-25  Bruno Haible  <bruno@clisp.org>
3266
3267         fflush et al.: Document limitation on MSVC.
3268         * doc/posix-functions/fflush.texi: Document possible crash in handling
3269         mode other than DEFAULT_HANDLING.
3270         * doc/posix-functions/fgetc.texi: Likewise.
3271         * doc/posix-functions/fputc.texi: Likewise.
3272         * doc/posix-functions/fread.texi: Likewise.
3273         * doc/posix-functions/fwrite.texi: Likewise.
3274
3275 2011-09-25  Bruno Haible  <bruno@clisp.org>
3276
3277         msvc-inval: Allow three invalid parameter handling modes.
3278         * lib/msvc-inval.h: Don't include <stdlib.h> here.
3279         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
3280         macros.
3281         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
3282         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
3283         SANE_LIBRARY_HANDLING as a no-op.
3284         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
3285         <stdlib.h>.
3286         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
3287
3288 2011-09-25  Bruno Haible  <bruno@clisp.org>
3289
3290         msvc-inval: Make handler multithread-safe.
3291         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
3292         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
3293         declarations.
3294         (gl_msvc_inval_current): New declaration.
3295         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
3296         Operate on the structure returned by gl_msvc_inval_current().
3297         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
3298         Remove varaiables.
3299         (tls_index, tls_initialized): New variables.
3300         (not_per_thread): New variable.
3301         (gl_msvc_inval_current): New function.
3302         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
3303         returned by gl_msvc_inval_current().
3304
3305 2011-09-25  Bruno Haible  <bruno@clisp.org>
3306
3307         msvc-inval: Install handler globally.
3308         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
3309         !_MSC_VER.
3310         (gl_msvc_invalid_parameter_handler): Remove declaration.
3311         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
3312         declarations.
3313         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
3314         Install the handler globally, don't uninstall it.
3315         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
3316         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
3317         currently valid, call RaiseException instead.
3318         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
3319         for !_MSC_VER.
3320
3321 2011-09-25  Bruno Haible  <bruno@clisp.org>
3322
3323         strerror_r-posix: Fix for MSVC 9.
3324         * lib/strerror_r.c (local_snprintf): New function.
3325         (snprintf): Define to local_snprintf, not to _snprintf.
3326
3327 2011-09-25  Bruno Haible  <bruno@clisp.org>
3328
3329         ftruncate: Support for MSVC 9.
3330         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
3331         (chsize_nothrow): New function.
3332         (chsize): Redefine as a macro.
3333         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
3334         * modules/ftruncate (Depends-on): Add msvc-inval.
3335
3336 2011-09-25  Bruno Haible  <bruno@clisp.org>
3337
3338         New module 'fstat'.
3339         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
3340         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
3341         * lib/fchdir.c (rpl_fstat): Remove function.
3342         * m4/fstat.m4: New file.
3343         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
3344         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
3345         declared.
3346         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
3347         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
3348         * modules/fstat: New file.
3349         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
3350         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
3351         is set.
3352         * doc/posix-functions/fstat.texi: Mention the new module and the
3353         problem on MSVC.
3354         * NEWS: Mention the change.
3355         * modules/acl (Depends-on): Add fstat.
3356         * modules/chdir-safer (Depends-on): Likewise.
3357         * modules/chown (Depends-on): Likewise.
3358         * modules/copy-file (Depends-on): Likewise.
3359         * modules/fchdir (Depends-on): Likewise.
3360         * modules/fdopendir (Depends-on): Likewise.
3361         * modules/fopen (Depends-on): Likewise.
3362         * modules/fts (Depends-on): Likewise.
3363         * modules/getcwd (Depends-on): Likewise.
3364         * modules/isapipe (Depends-on): Likewise.
3365         * modules/linkat (Depends-on): Likewise.
3366         * modules/lseek (Depends-on): Likewise.
3367         * modules/mkdir-p (Depends-on): Likewise.
3368         * modules/open (Depends-on): Likewise.
3369         * modules/openat (Depends-on): Likewise.
3370         * modules/read-file (Depends-on): Likewise.
3371         * modules/renameat (Depends-on): Likewise.
3372         * modules/utimens (Depends-on): Likewise.
3373
3374 2011-09-25  Bruno Haible  <bruno@clisp.org>
3375
3376         linkat: Fix compilation on MSVC 9.
3377         * lib/linkat.c: Don't include <stdint.h>.
3378
3379 2011-09-25  Bruno Haible  <bruno@clisp.org>
3380
3381         fclose: Support for MSVC 9.
3382         * lib/fclose.c: Include msvc-inval.h.
3383         (fclose_nothrow): New function.
3384         (rpl_fclose): Use it.
3385         * modules/fclose (Depends-on): Add msvc-inval.
3386         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
3387
3388 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
3389
3390         dup2: minor simplifications
3391         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
3392         that it's a performance win.
3393         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
3394         ! defined __CYGWIN__)" to "ifdef F_GETFL".
3395
3396 2011-09-24  Jim Meyering  <meyering@redhat.com>
3397
3398         test-futimens: avoid a warning from gcc -Wshadow
3399         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
3400         to avoid a shadowing warning.
3401
3402 2011-09-24  Bruno Haible  <bruno@clisp.org>
3403
3404         fdopen: Support for MSVC 9.
3405         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
3406         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
3407         * lib/fdopen.c: Include msvc-inval.h.
3408         (fdopen_nothrow): New function.
3409         (rpl_fdopen): Use it.
3410         * modules/fdopen (Depends-on): Add msvc-inval.
3411         * modules/fclose-tests (Depends-on): Add fdopen.
3412         * modules/fflush-tests (Depends-on): Likewise.
3413         * modules/fgetc-tests (Depends-on): Likewise.
3414         * modules/fputc-tests (Depends-on): Likewise.
3415         * modules/fread-tests (Depends-on): Likewise.
3416         * modules/freopen-tests (Depends-on): Likewise.
3417         * modules/fseeko-tests (Depends-on): Likewise.
3418         * modules/ftello-tests (Depends-on): Likewise.
3419         * modules/fwrite-tests  (Depends-on): Likewise.
3420         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
3421
3422 2011-09-24  Bruno Haible  <bruno@clisp.org>
3423
3424         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
3425         * modules/fgetc-tests (Depends-on): Add unistd.
3426         * modules/fputc-tests (Depends-on): Likewise.
3427         * modules/fread-tests (Depends-on): Likewise.
3428         * modules/fwrite-tests (Depends-on): Likewise.
3429
3430 2011-09-24  Bruno Haible  <bruno@clisp.org>
3431
3432         dup: Simplify autoconf test.
3433         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
3434         on gl_MSVC_INVAL's result.
3435
3436 2011-09-24  Bruno Haible  <bruno@clisp.org>
3437
3438         Tests for function fwrite().
3439         * modules/fwrite-tests: New file.
3440         * tests/test-fwrite.c: New file.
3441         * modules/stdio-tests (Depends-on): Add fwrite-tests.
3442
3443         Tests for function fread().
3444         * modules/fread-tests: New file.
3445         * tests/test-fread.c: New file.
3446         * modules/stdio-tests (Depends-on): Add fread-tests.
3447
3448         Activate fputc tests.
3449         * modules/stdio-tests (Depends-on): Add fputc-tests.
3450
3451         Enhance fgetc, fputc tests.
3452         * tests/test-fgetc.c (main): Also test the stream's error indicator.
3453         * tests/test-fputc.c (main): Likewise.
3454
3455 2011-09-24  Bruno Haible  <bruno@clisp.org>
3456
3457         write: Support for MSVC 9.
3458         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
3459         is not 1.
3460         * lib/write.c (write_nothrow): New function.
3461         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
3462         not 1. Use write_nothrow.
3463         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
3464         invalid parameter handler.
3465         (gl_PREREQ_WRITE): New macro.
3466         * modules/write (Depends-on): Add msvc-inval.
3467         (configure.ac): Invoke gl_PREREQ_WRITE.
3468         * doc/posix-functions/write.texi: Mention the problem on MSVC.
3469
3470 2011-09-24  Bruno Haible  <bruno@clisp.org>
3471
3472         read: Fix last commit.
3473         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
3474
3475 2011-09-24  Bruno Haible  <bruno@clisp.org>
3476
3477         dup2: Fix last commit.
3478         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
3479         (rpl_dup2): Disable fcntl workaround on native Windows.
3480
3481         sigprocmask: Make code safer.
3482         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
3483         section that changes macro definitions for this compilation unit.
3484
3485 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
3486
3487         dup2: clarify by coalescing Windows-specific material
3488         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
3489         "msvc-nothrow.h"' to the Windows-specific section, so that the
3490         Emacs source need not contain these include files.
3491         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
3492         Windows-specific fixes into this function rather than just the
3493         nothrow fix, as this shortens and clarifies the code.  Always
3494         define as a function, as that's a bit cleaner than having it be
3495         sometimes a function and sometimes a macro.
3496         (rpl_dup2): Move the Windows-specific stuff out of here and into
3497         ms_windows_dup2.  Don't protect the Haiku-related fix with
3498         "#if !defined __linux__", as the same code also works around
3499         a Linux kernel bug, and it doesn't add any system calls on any
3500         platform.  Add comment about FreeBSD 6.1.
3501
3502         sigprocmask: move #include directive
3503         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
3504         Windows-specific section, so that the Emacs source need not
3505         contain msvc-inval.h.
3506
3507 2011-09-23  Bruno Haible  <bruno@clisp.org>
3508
3509         read: Support for MSVC 9.
3510         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
3511         is not 1.
3512         * lib/read.c (read_nothrow): New function.
3513         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
3514         read_nothrow.
3515         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
3516         invalid parameter handler.
3517         (gl_PREREQ_READ): New macro.
3518         * modules/read (Depends-on): Add msvc-inval.
3519         (configure.ac): Invoke gl_PREREQ_READ.
3520         * doc/posix-functions/read.texi: Mention the problem on MSVC.
3521
3522 2011-09-23  Bruno Haible  <bruno@clisp.org>
3523
3524         close: Support for MSVC 9.
3525         * lib/close.c: Include <errno.h>, msvc-inval.h.
3526         (close_nothrow): New function.
3527         (rpl_close): Use it.
3528         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
3529         invalid parameter handler.
3530         * modules/close (Depends-on): Add msvc-inval.
3531         * modules/dup2-tests (Depends-on): Add close.
3532         * modules/dup3-tests (Depends-on): Likewise.
3533         * modules/fcntl-tests (Depends-on): Likewise.
3534         * modules/spawn-pipe-tests (Depends-on): Likewise.
3535         * modules/unistd-safer-tests (Depends-on): Likewise.
3536         * doc/posix-functions/close.texi: Mention the problem on MSVC.
3537
3538 2011-09-23  Bruno Haible  <bruno@clisp.org>
3539
3540         New module 'dup'.
3541         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
3542         Allow replacement.
3543         * lib/dup.c: New file.
3544         * lib/fchdir.c (rpl_dup): Remove function.
3545         * m4/dup.m4: New file.
3546         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
3547         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
3548         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
3549         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
3550         * modules/dup: New file.
3551         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
3552         'dup' module is in use.
3553         * modules/fdopendir (Depends-on): Add dup.
3554         * modules/fdutimensat-tests (Depends-on): Likewise.
3555         * modules/fts (Depends-on): Likewise.
3556         * modules/futimens-tests (Depends-on): Likewise.
3557         * modules/posix_spawnp-tests (Depends-on): Likewise.
3558         * modules/unistd-safer-tests (Depends-on): Likewise.
3559         * modules/utimens-tests (Depends-on): Likewise.
3560         * doc/posix-functions/dup.texi: Mention the new module and the problem
3561         on MSVC.
3562
3563 2011-09-23  Bruno Haible  <bruno@clisp.org>
3564
3565         getdtablesize: Support for MSVC 9.
3566         * lib/getdtablesize.c: Include msvc-inval.h.
3567         (_setmaxstdio_nothrow): New function.
3568         (_setmaxstdio): Redefine it.
3569         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
3570         * modules/getdtablesize (Depends-on): Add msvc-inval.
3571         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
3572
3573 2011-09-23  Bruno Haible  <bruno@clisp.org>
3574
3575         signal-h: Rename from signal.
3576         * modules/signal-h: Renamed from modules/signal.
3577         * modules/pthread_sigmask (Depends-on): Update.
3578         * modules/raise (Depends-on): Likewise.
3579         * modules/sigaction (Depends-on): Likewise.
3580         * modules/sigpipe (Depends-on): Likewise.
3581         * modules/sigprocmask (Depends-on): Likewise.
3582         * modules/sys_select (Depends-on): Likewise.
3583         * modules/signal-h-tests: Renamed from modules/signal-tests.
3584         (Files, Depends-on, Makefile.am): Update.
3585         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
3586         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
3587         (Files, Makefile.am): Update.
3588         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
3589         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
3590         * modules/signal: New placeholder file.
3591         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
3592         * doc/posix-headers/signal.texi: Update.
3593         * NEWS: Mention the change.
3594
3595 2011-09-23  Bruno Haible  <bruno@clisp.org>
3596
3597         sigprocmask: Avoid crashes through signal() on MSVC 9.
3598         * lib/sigprocmask.c: Include msvc-inval.h.
3599         (signal_nothrow): New function.
3600         (signal): Redefine it.
3601         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
3602         * modules/sigprocmask (Depends-on): Add msvc-inval.
3603         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
3604
3605 2011-09-23  Bruno Haible  <bruno@clisp.org>
3606
3607         Tests for module 'raise'.
3608         * modules/raise-tests: New file.
3609         * tests/test-raise.c: New file.
3610
3611         raise: Support for MSVC.
3612         * lib/signal.in.h (raise): New declaration.
3613         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
3614         for native Windows platforms.
3615         * m4/raise.m4: New file.
3616         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
3617         HAVE_RAISE, REPLACE_RAISE.
3618         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
3619         REPLACE_RAISE.
3620         * modules/raise (Status, Notice): Remove fields.
3621         (Files): Add m4/raise.m4.
3622         (Depends-on): Add signal, msvc-inval.
3623         (configure.ac): Use the common idioms.
3624         (Maintainer): Add me.
3625         * tests/test-signal-c++.cc: Check the signature of raise.
3626         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
3627
3628 2011-09-23  Bruno Haible  <bruno@clisp.org>
3629
3630         pipe2: Fix compilation on pre-C99 compilers.
3631         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
3632
3633 2011-09-23  Bruno Haible  <bruno@clisp.org>
3634
3635         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
3636         * lib/msvc-nothrow.h: New file.
3637         * lib/msvc-nothrow.c: New file.
3638         * m4/msvc-nothrow.m4: New file.
3639         * modules/msvc-nothrow: New file.
3640         * lib/dup2.c: Include msvc-nothrow.h.
3641         (rpl_dup2): No need to protect _get_osfhandle call here.
3642         * lib/accept4.c: Include msvc-nothrow.h.
3643         * lib/error.c: Likewise.
3644         * lib/fcntl.c: Likewise.
3645         * lib/lseek.c: Likewise.
3646         * lib/nonblocking.c: Likewise.
3647         * lib/poll.c: Likewise.
3648         * lib/read.c: Likewise.
3649         * lib/select.c: Likewise.
3650         * lib/sockets.h: Likewise.
3651         * lib/sockets.c: Likewise.
3652         * lib/stdio-read.c: Likewise.
3653         * lib/stdio-write.c: Likewise.
3654         * lib/write.c: Likewise.
3655         * lib/w32sock.h: Likewise.
3656         * lib/w32spawn.h: Likewise.
3657         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
3658         * lib/fsync.c: Likewise.
3659         * lib/isapipe.c: Likewise.
3660         * modules/dup2 (Depends-on): Add msvc-nothrow.
3661         * modules/accept4 (Depends-on): Likewise.
3662         * modules/error (Depends-on): Likewise.
3663         * modules/fcntl (Depends-on): Likewise.
3664         * modules/lseek (Depends-on): Likewise.
3665         * modules/nonblocking (Depends-on): Likewise.
3666         * modules/poll (Depends-on): Likewise.
3667         * modules/read (Depends-on): Likewise.
3668         * modules/select (Depends-on): Likewise.
3669         * modules/sockets (Depends-on): Likewise.
3670         * modules/sigpipe (Depends-on): Likewise.
3671         * modules/write (Depends-on): Likewise.
3672         * modules/accept (Depends-on): Likewise.
3673         * modules/bind (Depends-on): Likewise.
3674         * modules/connect (Depends-on): Likewise.
3675         * modules/gethostname (Depends-on): Likewise.
3676         * modules/getpeername (Depends-on): Likewise.
3677         * modules/getsockname (Depends-on): Likewise.
3678         * modules/getsockopt (Depends-on): Likewise.
3679         * modules/ioctl (Depends-on): Likewise.
3680         * modules/listen (Depends-on): Likewise.
3681         * modules/recv (Depends-on): Likewise.
3682         * modules/recvfrom (Depends-on): Likewise.
3683         * modules/send (Depends-on): Likewise.
3684         * modules/sendto (Depends-on): Likewise.
3685         * modules/setsockopt (Depends-on): Likewise.
3686         * modules/shutdown (Depends-on): Likewise.
3687         * modules/socket (Depends-on): Likewise.
3688         * modules/execute (Depends-on): Likewise.
3689         * modules/spawn-pipe (Depends-on): Likewise.
3690         * modules/flock (Depends-on): Likewise.
3691         * modules/fsync (Depends-on): Likewise.
3692         * modules/isapipe (Depends-on): Likewise.
3693         * tests/test-cloexec.c: Include msvc-nothrow.h.
3694         * tests/test-dup-safer.c: Likewise.
3695         * tests/test-dup2.c: Likewise.
3696         * tests/test-dup3.c: Likewise.
3697         * tests/test-fcntl.c: Likewise.
3698         * tests/test-pipe.c: Likewise.
3699         * tests/test-pipe2.c: Likewise.
3700         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
3701         * modules/unistd-safer-tests (Depends-on): Likewise.
3702         * modules/dup2-tests (Depends-on): Likewise.
3703         * modules/dup3-tests (Depends-on): Likewise.
3704         * modules/fcntl-tests (Depends-on): Likewise.
3705         * modules/pipe-posix-tests (Depends-on): Likewise.
3706         * modules/pipe2-tests (Depends-on): Likewise.
3707
3708 2011-09-23  Bruno Haible  <bruno@clisp.org>
3709
3710         dup2: Make code more maintainable.
3711         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
3712         (rpl_dup2): Use it.
3713         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
3714         * modules/dup2 (configure.ac): Invoke it.
3715         Reported by Paul Eggert.
3716
3717 2011-09-23  Bruno Haible  <bruno@clisp.org>
3718
3719         msvc-inval: Fix compilation error.
3720         * lib/msvc-inval.h: Include <excpt.h>.
3721
3722 2011-09-23  Bruno Haible  <bruno@clisp.org>
3723
3724         mkdir: Tweak for MSVC 9.
3725         * lib/sys_stat.in.h: Update comments.
3726         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
3727
3728         Tests for module 'chdir'.
3729         * modules/chdir-tests: New file.
3730         * tests/test-chdir.c: New file.
3731
3732         New module 'chdir'.
3733         * modules/chdir: New file.
3734         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
3735         (chdir): New declaration.
3736         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
3737         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
3738         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
3739         * tests/test-unistd-c++.cc: Check signature of chdir.
3740         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
3741         * modules/chdir-long (Depends-on): Add chdir.
3742         * modules/fchdir (Depends-on): Likewise.
3743         * modules/rename (Depends-on): Likewise.
3744         * modules/savewd (Depends-on): Likewise.
3745
3746         rmdir: Support for mingw, MSVC 9.
3747         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
3748         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
3749
3750         getcwd: Tweak for MSVC 9.
3751         * lib/unistd.in.h: Update comments.
3752         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
3753
3754 2011-09-22  Bruno Haible  <bruno@clisp.org>
3755
3756         strerror_r-posix: Avoid a link error on MSVC.
3757         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
3758         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
3759
3760 2011-09-22  Bruno Haible  <bruno@clisp.org>
3761
3762         select: Avoid link errors on MSVC.
3763         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
3764         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
3765         * modules/pselect (Link): Likewise.
3766         * NEWS: Mention the change.
3767         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
3768         test-select-stdin against $(LIB_SELECT).
3769         * modules/pselect-tests (Makefile.am): Link test-pselect against
3770         $(LIB_SELECT).
3771
3772 2011-09-22  Bruno Haible  <bruno@clisp.org>
3773
3774         select: Avoid compilation error on MSVC.
3775         * lib/select.c: Don't include <stdbool.h>.
3776
3777 2011-09-21  Bruno Haible  <bruno@clisp.org>
3778
3779         Consolidate all uses of PATH_MAX in *.m4 files.
3780         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
3781         macros.
3782         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
3783         and gl_PATHMAX_SNIPPET.
3784         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3785         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3786         * modules/chdir-long (Files): Add m4/pathmax.m4.
3787         * modules/getcwd (Files): Likewise.
3788
3789 2011-09-21  Bruno Haible  <bruno@clisp.org>
3790
3791         ftruncate: Un-deprecate, concentrate on Win32 support.
3792         * modules/ftruncate (Status, Notice): Remove sections.
3793         (Depends-on): Add largefile.
3794         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
3795         non-mingw platforms.
3796         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
3797         include <io.h>.
3798         * modules/perror-tests (Depends-on): Add ftruncate.
3799         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
3800         'ftruncate' module.
3801
3802 2011-09-21  Bruno Haible  <bruno@clisp.org>
3803
3804         Add dependencies to new dirent related modules.
3805         * modules/opendir (Depends-on): Add closedir.
3806         * modules/getcwd (Depends-on): Add opendir, closedir.
3807         * modules/dirent-safer-tests (Depends-on): Likewise.
3808         * modules/fdopendir-tests (Depends-on): Likewise.
3809         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
3810         * modules/renameat-tests (Depends-on): Likewise.
3811
3812 2011-09-21  Bruno Haible  <bruno@clisp.org>
3813
3814         opendir: Avoid compilation error on mingw.
3815         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
3816         * modules/opendir (Depends-on): Add unistd.
3817
3818 2011-09-21  Bruno Haible  <bruno@clisp.org>
3819
3820         ftruncate tests: Avoid a test failure on mingw.
3821         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
3822
3823 2011-09-21  Bruno Haible  <bruno@clisp.org>
3824
3825         select tests: Avoid test failures on OSF/1 5.1 and mingw.
3826         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
3827         native Windows.
3828
3829 2011-09-21  Bruno Haible  <bruno@clisp.org>
3830
3831         New module 'fdopen'.
3832         * lib/stdio.in.h (fdopen): New declaration.
3833         * lib/fdopen.c: New file.
3834         * m4/fdopen.m4: New file.
3835         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
3836         REPLACE_FDOPEN.
3837         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
3838         REPLACE_FDOPEN.
3839         * modules/fdopen: New file.
3840         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
3841         * tests/test-stdio-c++.cc: Check signature of fdopen.
3842         * doc/posix-functions/fdopen.texi: Mention the new module.
3843
3844 2011-09-21  Bruno Haible  <bruno@clisp.org>
3845
3846         unlockpt tests: Avoid test failure on NetBSD 5.1.
3847         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
3848         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
3849
3850 2011-09-21  Bruno Haible  <bruno@clisp.org>
3851
3852         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
3853         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
3854         * tests/test-getlogin_r.c (main): Likewise.
3855
3856 2011-09-20  Bruno Haible  <bruno@clisp.org>
3857
3858         time tests: Don't require pid_t.
3859         * doc/posix-headers/time.texi: Revert last change.
3860         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
3861         * tests/test-time.c: Comment out the check for pid_t.
3862
3863 2011-09-20  Bruno Haible  <bruno@clisp.org>
3864
3865         fsync tests: Avoid a test failure on mingw.
3866         * tests/test-fsync.c (main): Allow a failure with EIO.
3867
3868 2011-09-20  Bruno Haible  <bruno@clisp.org>
3869
3870         euidaccess: Update comments.
3871         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
3872
3873 2011-09-20  Bruno Haible  <bruno@clisp.org>
3874
3875         Ensure EBADF returns for socket functions on mingw.
3876         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
3877         descriptor is invalid.
3878         * lib/bind.c (rpl_bind): Likewise.
3879         * lib/connect.c (rpl_connect): Likewise.
3880         * lib/getpeername.c (rpl_getpeername): Likewise.
3881         * lib/getsockname.c (rpl_getsockname): Likewise.
3882         * lib/getsockopt.c (rpl_getsockopt): Likewise.
3883         * lib/listen.c (rpl_listen): Likewise.
3884         * lib/recv.c (rpl_recv): Likewise.
3885         * lib/recvfrom.c (rpl_recvfrom): Likewise.
3886         * lib/send.c (rpl_send): Likewise.
3887         * lib/sendto.c (rpl_sendto): Likewise.
3888         * lib/setsockopt.c (rpl_setsockopt): Likewise.
3889         * lib/shutdown.c (rpl_shutdown): Likewise.
3890
3891 2011-09-20  Bruno Haible  <bruno@clisp.org>
3892
3893         select tests: EBADF tests.
3894         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
3895         test_bad_fd): New functions.
3896         (test_function): Invoke also test_bad_fd.
3897
3898 2011-09-20  Bruno Haible  <bruno@clisp.org>
3899
3900         Tests for module 'posix_spawn_file_actions_addopen.
3901         * modules/posix_spawn_file_actions_addopen-tests: New file.
3902         * tests/test-posix_spawn_file_actions_addopen.c: New file.
3903
3904         Tests for module 'posix_spawn_file_actions_adddup2'.
3905         * modules/posix_spawn_file_actions_adddup2-tests: New file.
3906         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
3907
3908         Tests for module 'posix_spawn_file_actions_addclose'.
3909         * modules/posix_spawn_file_actions_addclose-tests: New file.
3910         * tests/test-posix_spawn_file_actions_addclose.c: New file.
3911
3912 2011-09-20  Bruno Haible  <bruno@clisp.org>
3913
3914         Tests for module 'unlockpt'.
3915         * modules/unlockpt-tests: New file.
3916         * tests/test-unlockpt.c: New file.
3917         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
3918
3919         Tests for module 'grantpt'.
3920         * modules/grantpt-tests: New file.
3921         * tests/test-grantpt.c: New file.
3922         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
3923
3924 2011-09-20  Bruno Haible  <bruno@clisp.org>
3925
3926         freopen tests: EBADF tests.
3927         * tests/test-freopen.c: Include errno.h, unistd.h.
3928         (main): Add tests for EBADF, commented out for the moment.
3929
3930         fclose tests: EBADF tests.
3931         * tests/test-fclose.c (main): Add tests for EBADF.
3932
3933         fflush tests: EBADF tests.
3934         * tests/test-fflush.c: Include errno.h, macros.h.
3935         (main): Add tests for EBADF.
3936
3937         ftello tests: EBADF tests.
3938         * tests/test-ftello4.sh: New file.
3939         * tests/test-ftello4.c: New file.
3940         * modules/ftello-tests (Files): Add them.
3941         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
3942
3943         fseeko tests: EBADF tests.
3944         * tests/test-fseeko4.sh: New file.
3945         * tests/test-fseeko4.c: New file.
3946         * modules/fseeko-tests (Files): Add them.
3947         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
3948
3949         Tests for function fputc().
3950         * modules/fputc-tests: New file.
3951         * tests/test-fputc.c: New file.
3952         * modules/stdio-tests (Depends-on): Add fputc-tests.
3953
3954         Tests for function fgetc().
3955         * modules/fgetc-tests: New file.
3956         * tests/test-fgetc.c: New file.
3957         * modules/stdio-tests (Depends-on): Add fgetc-tests.
3958
3959         Tests for function fdopen().
3960         * modules/fdopen-tests: New file.
3961         * tests/test-fdopen.c: New file.
3962         * modules/stdio-tests (Depends-on): Add fdopen-tests.
3963
3964         Tests for module 'vdprintf'.
3965         * modules/vdprintf-tests: New file.
3966         * tests/test-vdprintf.c: New file.
3967
3968         Tests for module 'dprintf'.
3969         * modules/dprintf-tests: New file.
3970         * tests/test-dprintf.c: New file.
3971
3972 2011-09-20  Bruno Haible  <bruno@clisp.org>
3973
3974         Tests for module 'ioctl'.
3975         * modules/ioctl-tests: New file.
3976         * tests/test-ioctl.c: New file.
3977
3978 2011-09-20  Bruno Haible  <bruno@clisp.org>
3979
3980         fcntl tests: EBADF tests.
3981         * tests/test-fcntl.c (main): Add more tests for EBADF.
3982
3983 2011-09-20  Bruno Haible  <bruno@clisp.org>
3984
3985         utimensat tests: EBADF tests.
3986         * tests/test-utimensat.c (main): Add tests for EBADF.
3987
3988         renameat tests: EBADF tests.
3989         * tests/test-renameat.c (main): Add tests for EBADF.
3990
3991         mkfifoat tests: EBADF tests.
3992         * tests/test-mkfifoat.c (main): Add tests for EBADF.
3993
3994         readlinkat tests: EBADF tests.
3995         * tests/test-readlinkat.c (main): Add tests for EBADF.
3996
3997         symlinkat tests: EBADF tests.
3998         * tests/test-symlinkat.c (main): Add tests for EBADF.
3999
4000         linkat tests: EBADF tests.
4001         * tests/test-linkat.c (main): Add tests for EBADF.
4002
4003         Tests for module 'faccessat'.
4004         * modules/faccessat-tests: New file.
4005         * tests/test-faccessat.c: New file.
4006
4007         fdopendir tests: EBADF tests.
4008         * tests/test-fdopendir.c (main): Add more tests for EBADF.
4009
4010         openat tests: EBADF tests.
4011         * tests/test-fchownat.c (main): Add tests for EBADF.
4012         * tests/test-fstatat.c (main): Likewise.
4013         * tests/test-mkdirat.c (main): Likewise.
4014         * tests/test-openat.c (main): Likewise.
4015         * tests/test-unlinkat.c (main): Likewise.
4016         * tests/test-fchmodat.c: New file.
4017         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
4018         (Makefile.am): Also run 'test-fchmodat'.
4019
4020 2011-09-20  Bruno Haible  <bruno@clisp.org>
4021
4022         utimens, futimens, fdutimensat tests: EBADF tests.
4023         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
4024
4025         Tests for function fstat().
4026         * modules/fstat-tests: New file.
4027         * tests/test-fstat.c: New file.
4028         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
4029
4030 2011-09-20  Bruno Haible  <bruno@clisp.org>
4031
4032         test-ttyname_r tests: EBADF tests.
4033         * tests/test-ttyname_r.c (main): Add tests for EBADF.
4034
4035         Tests for module 'isatty'.
4036         * modules/isatty-tests: New file.
4037         * tests/test-isatty.c: New file.
4038
4039         Tests for module 'write'.
4040         * modules/write-tests: New file.
4041         * tests/test-write.c: New file.
4042
4043         Tests for module 'read'.
4044         * modules/read-tests: New file.
4045         * tests/test-read.c: New file.
4046
4047         pwrite tests: EBADF tests.
4048         * tests/test-pwrite.c (main): Add tests for EBADF.
4049
4050         pread tests: EBADF tests.
4051         * tests/test-pread.c (main): Add tests for EBADF.
4052
4053         lseek tests: EBADF tests.
4054         * tests/test-lseek.c (main): Add more tests for EBADF.
4055
4056         Tests for module 'ftruncate'.
4057         * modules/ftruncate-tests: New file.
4058         * tests/test-ftruncate.sh: New file.
4059         * tests/test-ftruncate.c: New file.
4060
4061         fsync tests: EBADF tests.
4062         * tests/test-fsync.c (main): Add more tests for EBADF.
4063
4064         fdatasync tests: EBADF tests.
4065         * tests/test-fdatasync.c (main): Add more tests for EBADF.
4066
4067         Tests for module 'fchown'.
4068         * modules/fchown-tests: New file.
4069         * tests/test-fchown.c: New file.
4070
4071         Tests for module 'fchmod'.
4072         * modules/fchmod-tests: New file.
4073         * tests/test-fchmod.c: New file.
4074
4075         fchdir tests: EBADF tests.
4076         * tests/test-fchdir.c (main): Add more tests for EBADF.
4077
4078         dup2 tests: EBADF tests.
4079         * tests/test-dup2.c (main): Add more tests for EBADF.
4080
4081         Tests for module 'dup'.
4082         * modules/dup-tests: New file.
4083         * tests/test-dup.c: New file.
4084
4085         Tests for module 'close'.
4086         * modules/close-tests: New file.
4087         * tests/test-close.c: New file.
4088
4089 2011-09-20  Bruno Haible  <bruno@clisp.org>
4090
4091         Tests for module 'shutdown'.
4092         * modules/shutdown-tests: New file.
4093         * tests/test-shutdown.c: New file.
4094
4095         Tests for module 'setsockopt'.
4096         * modules/setsockopt-tests: New file.
4097         * tests/test-setsockopt.c: New file.
4098
4099         Tests for module 'sendto'.
4100         * modules/sendto-tests: New file.
4101         * tests/test-sendto.c: New file.
4102
4103         Tests for module 'send'.
4104         * modules/send-tests: New file.
4105         * tests/test-send.c: New file.
4106
4107         Tests for module 'recvfrom'.
4108         * modules/recvfrom-tests: New file.
4109         * tests/test-recvfrom.c: New file.
4110
4111         Tests for module 'recv'.
4112         * modules/recv-tests: New file.
4113         * tests/test-recv.c: New file.
4114
4115         Tests for module 'listen'.
4116         * modules/listen-tests: New file.
4117         * tests/test-listen.c: New file.
4118
4119         Tests for module 'getsockopt'.
4120         * modules/getsockopt-tests: New file.
4121         * tests/test-getsockopt.c: New file.
4122
4123         Tests for module 'getsockname'.
4124         * modules/getsockname-tests: New file.
4125         * tests/test-getsockname.c: New file.
4126
4127         Tests for module 'getpeername'.
4128         * modules/getpeername-tests: New file.
4129         * tests/test-getpeername.c: New file.
4130
4131         Tests for module 'connect'.
4132         * modules/connect-tests: New file.
4133         * tests/test-connect.c: New file.
4134
4135         Tests for module 'bind'.
4136         * modules/bind-tests: New file.
4137         * tests/test-bind.c: New file.
4138
4139         accept4 tests: Fix for native Windows.
4140         * tests/test-accept4.c: Include sockets.h.
4141         (main): Invoke gl_sockets_startup.
4142         * modules/accept4-tests (Depends-on): Add sockets.
4143
4144         accept tests: Fix for native Windows.
4145         * tests/test-accept.c: Include sockets.h.
4146         (main): Invoke gl_sockets_startup.
4147         * modules/accept-tests (Depends-on): Add sockets.
4148
4149 2011-09-19  Bruno Haible  <bruno@clisp.org>
4150
4151         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
4152         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
4153         do...while(0).
4154         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
4155         Suggested by Paul Eggert.
4156
4157 2011-09-19  Bruno Haible  <bruno@clisp.org>
4158
4159         sched: Ensure pid_t is defined.
4160         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
4161         not define pid_t.
4162         * lib/sched.in.h: Include <sys/types.h>.
4163         * doc/posix-headers/sched.texi: Mention the pid_t problem.
4164         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4165
4166 2011-09-19  Bruno Haible  <bruno@clisp.org>
4167
4168         msvc-inval: Ensure the entire expansion is a single statement.
4169         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
4170         of braces.
4171
4172 2011-09-19  Jim Meyering  <meyering@redhat.com>
4173
4174         tests: use printf, not echo in init.sh's warn_ function
4175         * tests/init.sh (warn_): Use printf, not echo.  The latter would
4176         misbehave when given strings containing a backslash or starting
4177         with e.g., -n.  James Youngman suggested setting IFS.
4178
4179 2011-09-19  Eric Blake  <eblake@redhat.com>
4180
4181         futimens: enhance test
4182         * tests/test-futimens.h (test_futimens): Also check for EBADF on
4183         closed non-negative fd.
4184
4185         date: accept 'hence' as opposite of 'ago'
4186         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
4187         * tests/test-parse-datetime.c (main): Enhance test.
4188         Suggested by Jesse Wilson.
4189
4190 2011-09-19  Jim Meyering  <meyering@redhat.com>
4191
4192         getcwd: don't fail in a deep directory on a system without openat
4193         Before this change, getcwd would fail when called from a directory
4194         of depth PATH_MAX / 3 or greater.  That was due to the fact that
4195         the non-openat implementation used "..", "../..", "../../..", etc.
4196         to access ancestor directories.  With too many, that string would
4197         be longer than PATH_MAX.
4198         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
4199         using gnulib's openat replacement.
4200         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
4201         we're using the replacement function.
4202
4203 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
4204
4205         maint.mk: avoid warnings from perl about missing files
4206         * top/maint.mk (def_sym_regex): Ignore files listed in
4207         $(gl_other_headers_) that do not exist, say because a project
4208         does not use a corresponding module.
4209
4210 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
4211
4212         stat: use pathmax.h only if needed
4213         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
4214         This is better for Emacs, which does not have a mingw port and
4215         therefore can avoid the pathmax module.
4216
4217         utimens: remove dependency on dup2
4218         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
4219         to work around the Linux kernel bug.
4220         * modules/utimens (Depends-on): Remove dup2.
4221
4222 2011-09-18  Bruno Haible  <bruno@clisp.org>
4223
4224         inet_ntop, inet_pton: Look for it also in libresolv.
4225         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
4226         libnsl, search for it in libresolv.
4227         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4228         Needed on Solaris 7.
4229
4230 2011-09-18  Bruno Haible  <bruno@clisp.org>
4231
4232         accept, accept4 tests: Avoid link error on Solaris.
4233         * modules/accept-tests (Makefile.am): Link test-accept against
4234         $(LIBSOCKET).
4235         * modules/accept4-tests (Makefile.am): Link test-accept4 against
4236         $(LIBSOCKET).
4237
4238         accept4: Avoid link error on Solaris.
4239         * modules/accept4 (Link): New section.
4240
4241         socket functions: Avoid link errors on Solaris.
4242         * modules/accept (Depends-on): Add socketlib.
4243         (Link): New section.
4244         * modules/bind (Depends-on): Add socketlib.
4245         (Link): New section.
4246         * modules/connect (Depends-on): Add socketlib.
4247         (Link): New section.
4248         * modules/getpeername (Depends-on): Add socketlib.
4249         (Link): New section.
4250         * modules/getsockname (Depends-on): Add socketlib.
4251         (Link): New section.
4252         * modules/getsockopt (Depends-on): Add socketlib.
4253         (Link): New section.
4254         * modules/listen (Depends-on): Add socketlib.
4255         (Link): New section.
4256         * modules/recv (Depends-on): Add socketlib.
4257         (Link): New section.
4258         * modules/recvfrom (Depends-on): Add socketlib.
4259         (Link): New section.
4260         * modules/send (Depends-on): Add socketlib.
4261         (Link): New section.
4262         * modules/sendto (Depends-on): Add socketlib.
4263         (Link): New section.
4264         * modules/setsockopt (Depends-on): Add socketlib.
4265         (Link): New section.
4266         * modules/shutdown (Depends-on): Add socketlib.
4267         (Link): New section.
4268         * modules/socket (Depends-on): Add socketlib.
4269         (Link): New section.
4270
4271 2011-09-18  Bruno Haible  <bruno@clisp.org>
4272
4273         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
4274         * tests/test-ptsname.c (main): Terminate the test if it takes longer
4275         than 5 seconds.
4276         * modules/ptsname-tests (configure.ac): Test for alarm.
4277
4278 2011-09-18  Bruno Haible  <bruno@clisp.org>
4279
4280         posix_spawn_file_actions_add*: Fix module dependencies.
4281         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
4282         posix_spawn_file_actions_init.
4283         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
4284         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
4285
4286 2011-09-18  Bruno Haible  <bruno@clisp.org>
4287
4288         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
4289         * tests/test-rename.h (test_rename): Allow error code EEXIST.
4290         * tests/test-renameat.c (main): Likewise.
4291
4292 2011-09-18  Bruno Haible  <bruno@clisp.org>
4293
4294         Tests for module 'accept4'.
4295         * modules/accept4-tests: New file.
4296         * tests/test-accept4.c: New file.
4297
4298 2011-09-18  Bruno Haible  <bruno@clisp.org>
4299
4300         Tests for module 'accept'.
4301         * modules/accept-tests: New file.
4302         * tests/test-accept.c: New file.
4303
4304 2011-09-18  Bruno Haible  <bruno@clisp.org>
4305
4306         dup2: Support for MSVC.
4307         * lib/dup2.c: Include msvc-inval.h.
4308         (rpl_dup2): Handle invalid parameter notifications during dup2 and
4309         _get_osfhandle calls.
4310         * modules/dup2 (Depends-on): Add msvc-inval.
4311         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
4312
4313         New module 'msvc-inval'.
4314         * lib/msvc-inval.h: New file.
4315         * lib/msvc-inval.c: New file.
4316         * m4/msvc-inval.m4: New file.
4317         * modules/msvc-inval: New file.
4318
4319 2011-09-17  Bruno Haible  <bruno@clisp.org>
4320
4321         Tests for module 'pclose'.
4322         * modules/pclose-tests: New file.
4323
4324         New module 'pclose'.
4325         * lib/stdio.in.h (pclose): New declaration.
4326         * lib/pclose.c: New file.
4327         * m4/pclose.m4: New file.
4328         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
4329         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
4330         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
4331         * modules/pclose: New file.
4332         * modules/popen-tests (Depends-on): Add pclose.
4333         * modules/popen-safer-tests (Depends-on): Likewise.
4334         * doc/posix-functions/pclose.texi: Mention the new module.
4335
4336 2011-09-17  Bruno Haible  <bruno@clisp.org>
4337
4338         popen: Support for MSVC.
4339         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
4340         * lib/popen.c (popen): Provide alternate definition for native Windows.
4341         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
4342         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
4343         * modules/popen (Depends-on, configure.ac): Update condition.
4344         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
4345         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
4346         fixed.
4347
4348 2011-09-17  Bruno Haible  <bruno@clisp.org>
4349
4350         isnanl, isnand, isnanf: Work around MSVC bug.
4351         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
4352
4353 2011-09-17  Bruno Haible  <bruno@clisp.org>
4354
4355         sys_socket tests: Fix recent mistake.
4356         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
4357
4358 2011-09-17  Bruno Haible  <bruno@clisp.org>
4359
4360         putenv: Support for MSVC.
4361         * modules/putenv (Depends-on): Add environ.
4362         * lib/putenv.c (environ): Disable declaration.
4363         * lib/unistd.in.h: Update comment.
4364
4365 2011-09-17  Bruno Haible  <bruno@clisp.org>
4366
4367         math: Avoid macro redefinition warnings on MSVC.
4368         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
4369         Undefine before redefining.
4370
4371 2011-09-17  Bruno Haible  <bruno@clisp.org>
4372
4373         doc: Mention functions which are declared as macros.
4374         * doc/posix-functions/*[fl].texi: Mention that some functions are
4375         defined as macros with arguments only.
4376
4377 2011-09-17  Bruno Haible  <bruno@clisp.org>
4378
4379         Add dependencies to new dirent related modules.
4380         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
4381         * modules/fts (Depends-on): Likewise.
4382         * modules/glob (Depends-on): Likewise.
4383         * modules/savedir (Depends-on): Likewise.
4384         * modules/scandir (Depends-on): Likewise.
4385         * modules/dirent-safer (Depends-on): Add opendir, closedir.
4386         * modules/fdopendir (Depends-on): Add opendir.
4387
4388 2011-09-17  Bruno Haible  <bruno@clisp.org>
4389
4390         inet_pton: Support for MSVC on Windows Vista or newer.
4391         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
4392         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
4393         HAVE_DECL_INET_PTON is defined.
4394         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
4395         On platforms with <winsock2.h>, test whether inet_pton is declared in
4396         <ws2tcpip.h>. If so, arrange to replace it.
4397         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
4398         REPLACE_INET_PTON.
4399         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
4400         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
4401         (Depends-on, configure.ac): Update condition.
4402         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
4403
4404 2011-09-17  Bruno Haible  <bruno@clisp.org>
4405
4406         inet_ntop: Support for MSVC on Windows Vista or newer.
4407         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
4408         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
4409         HAVE_DECL_INET_NTOP is defined.
4410         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
4411         On platforms with <winsock2.h>, test whether inet_ntop is declared in
4412         <ws2tcpip.h>. If so, arrange to replace it.
4413         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
4414         REPLACE_INET_NTOP.
4415         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
4416         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
4417         (Depends-on, configure.ac): Update condition.
4418         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
4419
4420 2011-09-16  Eric Blake  <eblake@redhat.com>
4421
4422         test-fsync: yet another enhancement
4423         * tests/test-fsync.c (main): Also test behavior on read-only text
4424         file.
4425
4426 2011-09-16  Bruno Haible  <bruno@clisp.org>
4427
4428         Enhance fsync, fdatasync tests.
4429         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
4430         * tests/test-fdatasync.c (main): Likewise.
4431
4432 2011-09-16  Bruno Haible  <bruno@clisp.org>
4433
4434         Support for MSVC compiler: Ensure mode_t gets defined.
4435         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
4436         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4437         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
4438         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
4439         * tests/test-fcntl-h.c: Check that mode_t is defined.
4440         * tests/test-sys_stat.c: Likewise.
4441         * tests/test-sys_types.c: Likewise.
4442         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
4443         * doc/posix-headers/sys_stat.texi: Likewise.
4444         * doc/posix-headers/sys_types.texi: Likewise.
4445
4446 2011-09-16  Bruno Haible  <bruno@clisp.org>
4447
4448         sys_stat: Support for MSVC.
4449         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
4450         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
4451         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
4452         MSVC.
4453
4454 2011-09-16  Bruno Haible  <bruno@clisp.org>
4455
4456         Support for MSVC compiler: Ensure off_t gets defined.
4457         * lib/unistd.in.h: Include <sys/types.h>.
4458         * tests/test-fcntl-h.c: Check that off_t is defined.
4459         * tests/test-sys_stat.c: Likewise.
4460         * tests/test-sys_types.c: Likewise.
4461
4462 2011-09-16  Eric Blake  <eblake@redhat.com>
4463
4464         fdatasync: port to Solaris
4465         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
4466         * modules/fdatasync (Link): Document it.
4467         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
4468
4469         fdatasync: port to MacOS X 10.7
4470         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
4471         declared.
4472         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
4473         * modules/unistd (Makefile.am): Substitute it.
4474         * lib/unistd.in.h (fdatasync): Declare on MacOS.
4475         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
4476
4477         fdatasync: minor improvements
4478         * modules/fdatasync (Depends-on): Add condition for fsync.
4479         * lib/fdatasync.c (fdatasync): Add comment.
4480         * tests/test-unistd-c++.cc: Test fdatasync.
4481
4482         unistd: update refs to newer POSIX
4483         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
4484         Suggested by Bruno Haible.
4485
4486         fdatasync: new module
4487         * modules/fsync (Description): Document difference to fdatasync.
4488         * modules/fdatasync: New module.
4489         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
4490         * lib/fdatasync.c (fdatasync): Likewise.
4491         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
4492         defaults.
4493         * modules/unistd (Makefile.am): Set witnesses.
4494         * lib/unistd.in.h (fdatasync): Declare.
4495         * MODULES.html.sh: Document it.
4496         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
4497         * modules/fdatasync-tests: New test.
4498         * tests/test-fdatasync.c: Likewise.
4499
4500 2011-09-16  Eric Blake  <eblake@redhat.com>
4501
4502         test-fsync: enhance tests
4503         * modules/fsync-tests (Depends-on): Add errno, for mingw.
4504         * tests/test-fsync.c (main): Enhance test.
4505
4506 2011-09-15  Bruno Haible  <bruno@clisp.org>
4507
4508         Support for MSVC compiler: Ensure ssize_t gets defined.
4509         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
4510         * doc/posix-headers/stdio.texi: Likewise.
4511         * modules/stdio (Depends-on): Add ssize_t.
4512         * modules/sys_socket (Depends-on): Likewise.
4513         * modules/sys_types (Depends-on): Likewise.
4514         * modules/sys_uio (Depends-on): Likewise.
4515         * modules/unistd (Depends-on): Likewise.
4516         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
4517         * tests/test-sys_types.c: Check that ssize_t is defined.
4518
4519 2011-09-14  Bruno Haible  <bruno@clisp.org>
4520
4521         Avoid using #, the m4 comment starter character, near brackets.
4522         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
4523         delimiter character in sed expressions.
4524         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
4525         Suggested by Eric Blake.
4526
4527         Properly quote AC_CHECK_DECLS' 4th argument.
4528         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
4529         argument.
4530         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
4531         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
4532         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
4533         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
4534         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
4535         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
4536         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
4537         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
4538         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
4539         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
4540         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
4541         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4542         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
4543         * m4/isinf.m4 (gl_ISINF): Likewise.
4544         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
4545         * m4/readutmp.m4 (gl_READUTMP): Likewise.
4546         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
4547         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4548         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4549         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
4550         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
4551         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
4552         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
4553         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
4554         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4555         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4556         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
4557         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
4558         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
4559         Reported by Eric Blake.
4560
4561         Properly quote AC_CHECK_DECL's 4th argument.
4562         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
4563         argument.
4564         * m4/argp.m4 (gl_ARGP): Likewise.
4565         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
4566         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
4567         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
4568         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
4569         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
4570         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
4571         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
4572         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
4573         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
4574         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
4575         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
4576         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
4577         Reported by Eric Blake.
4578
4579 2011-09-14  Eric Blake  <eblake@redhat.com>
4580
4581         opendir: avoid compile warning
4582         * lib/opendir.c (includes): Always include errno.h.
4583         Reported by Tatsuro MATSUOKA.
4584
4585 2011-09-14  Jim Meyering  <meyering@redhat.com>
4586
4587         maint.mk: sc_tight_scope: propagate failure from sub-make
4588         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
4589         Reported by Martin von Gagern.
4590
4591 2011-09-13  Bruno Haible  <bruno@clisp.org>
4592
4593         tempname: Support for MSVC.
4594         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
4595         MSVC.
4596         * modules/tempname (Depends-on): Add fcntl-h.
4597
4598 2011-09-13  Bruno Haible  <bruno@clisp.org>
4599
4600         sys_time: Support for MSVC.
4601         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
4602         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
4603         include <winsock2.h>.
4604         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
4605         function declarations that collide with POSIX.
4606         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
4607         (Makefile.am): Substitute HAVE_WINSOCK2_H.
4608
4609 2011-09-13  Bruno Haible  <bruno@clisp.org>
4610
4611         stat: Support for MSVC.
4612         * lib/stat.c: Include pathmax.h.
4613         * modules/stat (Depends-on): Add pathmax.
4614
4615         pathmax: Support for native Windows.
4616         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
4617
4618 2011-09-12  Bruno Haible  <bruno@clisp.org>
4619
4620         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
4621         * lib/dirent.in.h (struct dirent): New type.
4622         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
4623         DT_WHT): New macros.
4624         (DIR): New type.
4625         (opendir, closedir): Declare only if the module 'opendir' is enabled.
4626         (readdir, rewinddir): New declarations.
4627         * lib/dirent-private.h: New file.
4628         * lib/opendir.c: New file.
4629         * lib/readdir.c: New file.
4630         * lib/rewinddir.c: New file.
4631         * lib/closedir.c: New file.
4632         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
4633         * m4/opendir.m4: New file.
4634         * m4/readdir.m4: New file.
4635         * m4/rewinddir.m4: New file.
4636         * m4/closedir.m4: New file.
4637         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
4638         REPLACE_CLOSEDIR here.
4639         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
4640         readdir, rewinddir are declared.
4641         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
4642         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
4643         HAVE_REWINDDIR, HAVE_CLOSEDIR.
4644         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
4645         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
4646         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
4647         * modules/opendir: New file.
4648         * modules/readdir: New file.
4649         * modules/rewinddir: New file.
4650         * modules/closedir: New file.
4651         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
4652         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
4653         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
4654         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
4655         * NEWS: Mention the 'fchdir' change.
4656
4657 2011-09-11  Bruno Haible  <bruno@clisp.org>
4658
4659         asm-underscore.m4: Support for MSVC.
4660         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
4661         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
4662
4663 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
4664
4665         Doc about crypt functions.
4666         * doc/posix-functions/crypt.texi: Expand range of glibc versions
4667         needing for _GNU_SOURCE to get crypt.
4668         * doc/posix-functions/encrypt.texi: Likewise.
4669         * doc/posix-functions/setkey.texi: Likewise.
4670
4671 2011-09-11  Bruno Haible  <bruno@clisp.org>
4672
4673         doc: Update regarding MSVC 9.
4674         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
4675         tested".
4676         * doc/posix-functions/*.texi: Update with info about MSVC 9.
4677         * doc/posix-headers/*.texi: Likewise.
4678         * doc/pastposix-functions/*.texi: Likewise.
4679         * doc/glibc-functions/*.texi: Likewise.
4680         * doc/glibc-headers/*.texi: Likewise.
4681
4682 2011-09-11  Bruno Haible  <bruno@clisp.org>
4683
4684         unistd et al.: Don't assume <unistd.h> exists.
4685         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
4686         does not exist.
4687         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
4688         exist. But include <stdlib.h>.
4689         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
4690         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
4691         symlink() does not exist.
4692         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
4693         include <io.h> instead.
4694         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
4695         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
4696         include <direct.h> instead.
4697         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4698         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4699         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
4700         <io.h> instead.
4701         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
4702         correctly if the system does not have hard links.
4703         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
4704         <direct.h> instead.
4705         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
4706         it when looking for function declarations.
4707         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
4708         <direct.h> and <io.h> instead.
4709         * doc/posix-headers/unistd.texi: More details about MSVC problem.
4710
4711 2011-09-11  Bruno Haible  <bruno@clisp.org>
4712
4713         strcase: Support for MSVC.
4714         * modules/strcase (Status, Notice): Remove obsoletion mark.
4715         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
4716         * doc/posix-functions/strncasecmp.texi: Likewise.
4717
4718         strings: Don't assume <strings.h> exists.
4719         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
4720         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
4721         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
4722         * doc/posix-headers/strings.texi: Mention the MSVC problem.
4723
4724 2011-09-11  Bruno Haible  <bruno@clisp.org>
4725
4726         dirent: Don't assume <dirent.h> exists.
4727         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
4728         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
4729         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
4730         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
4731
4732 2011-09-11  Bruno Haible  <bruno@clisp.org>
4733
4734         Fix wint_t on MSVC.
4735         * lib/wchar.in.h (wint_t): On MSVC, override it.
4736         * lib/wctype.in.h (wint_t): Likewise.
4737         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
4738         MSVC.
4739         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
4740         * doc/posix-headers/wctype.texi: Likewise.
4741
4742 2011-09-11  Bruno Haible  <bruno@clisp.org>
4743
4744         sys_types: Fix typo.
4745         * lib/sys_types.in.h: Fix typo in comment.
4746         Reported by Paul Eggert.
4747
4748         Support for MSVC compiler: Ensure size_t gets defined.
4749         * modules/strings (Depends-on): Add 'sys_types'.
4750         * modules/sys_uio (Depends-on): Likewise.
4751         * lib/sys_uio.in.h: Update comment.
4752
4753         C++ tests for module 'sys_types'.
4754         * modules/sys_types-c++-tests: New file.
4755         * tests/test-sys_types-c++.cc: New file.
4756
4757         Tests for module 'sys_types'.
4758         * modules/sys_types-tests: New file.
4759         * tests/test-sys_types.c: New file.
4760
4761         New module 'sys_types'.
4762         * lib/sys_types.in.h: New file.
4763         * m4/sys_types_h.m4: New file.
4764         * modules/sys_types: New file.
4765         * doc/posix-headers/sys_types.texi: Mention the new module and the
4766         size_t problem on MSVC 9.
4767
4768 2011-09-11  Bruno Haible  <bruno@clisp.org>
4769
4770         Support for MSVC compiler: Avoid division by a literal 0.
4771         * lib/math.in.h (NAN): Define through a function call also on MSVC.
4772         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
4773         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
4774         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
4775         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
4776         * tests/infinity.h: New file.
4777         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
4778         on MSVC.
4779         * tests/test-ceilf1.c: Include infinity.h.
4780         (main): Use Infinityf.
4781         * tests/test-ceil1.c: Include infinity.h.
4782         (main): Use Infinityd.
4783         * tests/test-ceill.c: Include infinity.h.
4784         (main): Use Infinityl.
4785         * tests/test-dprintf-posix.c: Include infinity.h.
4786         (test_function): Use Infinityd.
4787         * tests/test-floorf1.c: Include infinity.h.
4788         (main): Use Infinityf.
4789         * tests/test-floor1.c: Include infinity.h.
4790         (main): Use Infinityd.
4791         * tests/test-floorl.c: Include infinity.h.
4792         (main): Use Infinityl.
4793         * tests/test-fprintf-posix.c: Include infinity.h.
4794         (test_function): Use Infinityd.
4795         * tests/test-frexp.c: Include infinity.h.
4796         (main): Use Infinityd.
4797         * tests/test-frexpl.c: Include infinity.h.
4798         (main): Use Infinityl.
4799         * tests/test-isfinite.c: Include infinity.h.
4800         (test_isfinitef): Use Infinityf.
4801         (test_isfinited): Use Infinityd.
4802         (test_isfinitel): Use Infinityl.
4803         * tests/test-isinf.c: Include infinity.h.
4804         (test_isinff): Use Infinityf.
4805         (test_isinfd): Use Infinityd.
4806         (test_isinfl): Use Infinityl.
4807         * tests/test-isnan.c: Include infinity.h.
4808         (test_float): Use Infinityf.
4809         (test_double): Use Infinityd.
4810         (test_long_double): Use Infinityl.
4811         * tests/test-isnanf.h: Include infinity.h.
4812         (main): Use Infinityf.
4813         * tests/test-isnand.h: Include infinity.h.
4814         (main): Use Infinityd.
4815         * tests/test-isnanl.h: Include infinity.h.
4816         (main): Use Infinityl.
4817         * tests/test-ldexpl.c: Include infinity.h.
4818         (main): Use Infinityl.
4819         * tests/test-printf-posix.h: Include infinity.h.
4820         (test_function): Use Infinityd.
4821         * tests/test-roundf1.c: Include infinity.h.
4822         (main): Use Infinityf.
4823         * tests/test-round1.c: Include infinity.h.
4824         (main): Use Infinityd.
4825         * tests/test-roundl.c: Include infinity.h.
4826         (main): Use Infinityl.
4827         * tests/test-signbit.c: Include infinity.h.
4828         (test_signbitf): Use Infinityf.
4829         (test_signbitd): Use Infinityd.
4830         (test_signbitl): Use Infinityl.
4831         * tests/test-snprintf-posix.h: Include infinity.h.
4832         (test_function): Use Infinityd, Infinityl.
4833         * tests/test-sprintf-posix.h: Include infinity.h.
4834         (test_function): Use Infinityd, Infinityl.
4835         * tests/test-truncf1.c: Include infinity.h.
4836         (main): Use Infinityf.
4837         * tests/test-trunc1.c: Include infinity.h.
4838         (main): Use Infinityd.
4839         * tests/test-truncl.c: Include infinity.h.
4840         (main): Use Infinityl.
4841         * tests/test-vasnprintf-posix.c: Include infinity.h.
4842         (test_function): Use Infinityd, Infinityl.
4843         * tests/test-vasprintf-posix.c: Include infinity.h.
4844         (test_function): Use Infinityd, Infinityl.
4845         * modules/ceilf-tests (Files): Add tests/infinity.h.
4846         * modules/ceil-tests (Files): Likewise.
4847         * modules/ceill-tests (Files): Likewise.
4848         * modules/dprintf-posix-tests (Files): Likewise.
4849         * modules/floorf-tests (Files): Likewise.
4850         * modules/floor-tests (Files): Likewise.
4851         * modules/floorl-tests (Files): Likewise.
4852         * modules/fprintf-posix-tests (Files): Likewise.
4853         * modules/frexp-tests (Files): Likewise.
4854         * modules/frexp-nolibm-tests (Files): Likewise.
4855         * modules/frexpl-tests (Files): Likewise.
4856         * modules/frexpl-nolibm-tests (Files): Likewise.
4857         * modules/isfinite-tests (Files): Likewise.
4858         * modules/isinf-tests (Files): Likewise.
4859         * modules/isnan-tests (Files): Likewise.
4860         * modules/isnanf-tests (Files): Likewise.
4861         * modules/isnanf-nolibm-tests (Files): Likewise.
4862         * modules/isnand-tests (Files): Likewise.
4863         * modules/isnand-nolibm-tests (Files): Likewise.
4864         * modules/isnanl-tests (Files): Likewise.
4865         * modules/isnanl-nolibm-tests (Files): Likewise.
4866         * modules/ldexpl-tests (Files): Likewise.
4867         * modules/printf-posix-tests (Files): Likewise.
4868         * modules/roundf-tests (Files): Likewise.
4869         * modules/round-tests (Files): Likewise.
4870         * modules/roundl-tests (Files): Likewise.
4871         * modules/signbit-tests (Files): Likewise.
4872         * modules/snprintf-posix-tests (Files): Likewise.
4873         * modules/sprintf-posix-tests (Files): Likewise.
4874         * modules/truncf-tests (Files): Likewise.
4875         * modules/trunc-tests (Files): Likewise.
4876         * modules/truncl-tests (Files): Likewise.
4877         * modules/vasnprintf-posix-tests (Files): Likewise.
4878         * modules/vasprintf-posix-tests (Files): Likewise.
4879         * modules/vdprintf-posix-tests (Files): Likewise.
4880         * modules/vfprintf-posix-tests (Files): Likewise.
4881         * modules/vprintf-posix-tests (Files): Likewise.
4882         * modules/vsnprintf-posix-tests (Files): Likewise.
4883         * modules/vsprintf-posix-tests (Files): Likewise.
4884         * modules/xprintf-posix-tests (Files): Likewise.
4885
4886 2011-09-11  Bruno Haible  <bruno@clisp.org>
4887
4888         Ensure pid_t gets defined.
4889         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
4890         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
4891         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
4892         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4893         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
4894         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
4895         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
4896         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4897         * tests/test-fcntl-h.c: Check that pid_t is defined.
4898         * tests/test-sched.c: Likewise.
4899         * tests/test-termios.c: Likewise.
4900         * tests/test-time.c: Likewise.
4901         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
4902         * doc/posix-headers/signal.texi: Likewise.
4903         * doc/posix-headers/sys_types.texi: Likewise.
4904         * doc/posix-headers/time.texi: Likewise.
4905
4906 2011-09-11  Bruno Haible  <bruno@clisp.org>
4907
4908         acl: Fix compilation on Solaris 10 (older version).
4909         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
4910         of ACE_EVERYONE.
4911         * lib/set-mode-acl.c (qset_acl): Likewise.
4912         Reported by Christian Jullien <eligis@orange.fr>.
4913
4914 2011-09-10  Bruno Haible  <bruno@clisp.org>
4915
4916         iconv, unsetenv: Add support for MSVC compiler.
4917         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
4918         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
4919
4920 2011-09-10  Bruno Haible  <bruno@clisp.org>
4921
4922         *printf: Add support for MSVC compiler.
4923         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
4924         handles the exception caused by the %n directive. When cross-compiling,
4925         guess no on native Windows.
4926         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
4927         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
4928         emulate it through vsnprintf.
4929         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
4930         * doc/posix-functions/dprintf.texi: Update documentation regarding
4931         MSVC 9.
4932         * doc/posix-functions/fprintf.texi: Likewise.
4933         * doc/posix-functions/printf.texi: Likewise.
4934         * doc/posix-functions/snprintf.texi: Likewise.
4935         * doc/posix-functions/sprintf.texi: Likewise.
4936         * doc/posix-functions/swprintf.texi: Likewise.
4937         * doc/posix-functions/vdprintf.texi: Likewise.
4938         * doc/posix-functions/vfprintf.texi: Likewise.
4939         * doc/posix-functions/vprintf.texi: Likewise.
4940         * doc/posix-functions/vsnprintf.texi: Likewise.
4941         * doc/posix-functions/vsprintf.texi: Likewise.
4942         * doc/glibc-functions/asprintf.texi: Likewise.
4943         * doc/glibc-functions/obstack_printf.texi: Likewise.
4944         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
4945         * doc/glibc-functions/vasprintf.texi: Likewise.
4946
4947 2011-09-10  Bruno Haible  <bruno@clisp.org>
4948
4949         nocrash: Add support for native Windows.
4950         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
4951
4952 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
4953             Bruno Haible  <bruno@clisp.org>
4954
4955         absolute-header, include-next: Add support for MSVC compiler.
4956         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
4957         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
4958         directory separator in #line directives.
4959         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
4960         recognize also backslash as directory separator in #line directives.
4961
4962 2011-09-08  Jim Meyering  <meyering@redhat.com>
4963
4964         maint.mk: mark the post-release commit log with "maint: " prefix
4965         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
4966         one-line commit-log summary.
4967
4968 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
4969             Bruno Haible  <bruno@clisp.org>
4970
4971         Doc about crypt functions.
4972         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
4973         systems.
4974         * doc/posix-functions/encrypt.texi: Likewise.
4975         * doc/posix-functions/setkey.texi: Likewise.
4976
4977 2011-09-08  Simon Josefsson  <simon@josefsson.org>
4978
4979         * lib/gc.h: Fix copyright header.
4980
4981 2011-09-07  Bruno Haible  <bruno@clisp.org>
4982
4983         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
4984         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
4985         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
4986
4987 2011-09-07  Bruno Haible  <bruno@clisp.org>
4988
4989         openat: Work around compilation error with OSF/1 5.1 DTK cc.
4990         * lib/fopen.c: Use different syntax for include of <stdio.h>.
4991         * lib/freopen.c: Likewise.
4992         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
4993         * lib/lstat.c: Likewise.
4994         * lib/stat.c: Likewise.
4995         * lib/open.c: Use different syntax for include of <fcntl.h>.
4996         * lib/openat.c: Include fcntl.h again, explicitly.
4997
4998 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
4999
5000         parse-datetime: document the newly accepted format
5001         * doc/parse-datetime.texi (Combined date and time of day items):
5002         New section.
5003
5004 2011-09-06  Bruno Haible  <bruno@clisp.org>
5005
5006         acl: Fix a test failure on newer Solaris 10 with ZFS.
5007         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
5008         ENOSYS as no ACL.
5009         Reported by Jim Meyering.
5010
5011 2011-09-06  Bruno Haible  <bruno@clisp.org>
5012
5013         acl: Update for AIX >= 5.3 with NFS.
5014         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
5015         ENOSYS as no ACL.
5016
5017         acl: Fix a test failure on AIX >= 5.3 with NFS.
5018         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
5019         as no ACL.
5020
5021 2011-09-06  Bruno Haible  <bruno@clisp.org>
5022
5023         acl: Fix a test failure on IRIX 6.5 with NFS.
5024         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
5025         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
5026         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
5027         * lib/copy-acl.c (qcopy_acl): Likewise.
5028
5029 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
5030
5031         openat: port to AIX 7.1 with large files
5032         AIX 7.1 does a "#define openat open64at" if large files are in use,
5033         so we can't simply #undef openat.  Use the orig_openat trick (similar
5034         to orig_open in lib/open.c) to work around the problem.  Problem
5035         reported by Kevin Brott for GNU tar, in the thread containing
5036         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
5037         * lib/openat.c (__need_system_fcntl_h): Define first.
5038         Include <fcntl.h> and <sys/types.h> before undefining.
5039         (orig_openat) [HAVE_OPENAT]: New inline function.
5040         (openat) [HAVE_OPENAT]: Do not undef.
5041         (rpl_openat): Use orig_openat, not openat.
5042
5043 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
5044             Bruno Haible  <bruno@clisp.org>
5045
5046         acl: Avoid errors on NonStop Kernel.
5047         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
5048         ENOTSUP errors.
5049
5050 2011-09-05  Bruno Haible  <bruno@clisp.org>
5051
5052         acl: Clean up Solaris code.
5053         * lib/acl-internal.h: Remove no-op #if.
5054         * lib/file-has-acl.c: Likewise.
5055         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
5056         * lib/copy-acl.c (qcopy_acl): Likewise.
5057
5058 2011-09-05  Bruno Haible  <bruno@clisp.org>
5059
5060         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
5061         binaries built on the original Solaris 10.
5062         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
5063         trivial.
5064
5065 2011-09-05  Bruno Haible  <bruno@clisp.org>
5066
5067         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
5068         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
5069         10.
5070         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
5071         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
5072         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
5073         instead of acl_get, facl_get, acl_set, facl_set.
5074
5075 2011-09-05  Bruno Haible  <bruno@clisp.org>
5076
5077         copy-file: Try unit tests on more file systems.
5078         * tests/test-copy-file-1.sh: New file.
5079         * tests/test-copy-file-2.sh: New file.
5080         * modules/copy-file-tests (Files): Add them.
5081         (Makefile.am): Add them to TESTS.
5082
5083         acl: Try unit tests on more file systems.
5084         * tests/test-file-has-acl-1.sh: New file.
5085         * tests/test-file-has-acl-2.sh: New file.
5086         * tests/test-set-mode-acl-1.sh: New file.
5087         * tests/test-set-mode-acl-2.sh: New file.
5088         * tests/test-copy-acl-1.sh: New file.
5089         * tests/test-copy-acl-2.sh: New file.
5090         * modules/acl-tests (Files): Add them.
5091         (Makefile.am): Add them to TESTS.
5092
5093 2011-09-04  Bruno Haible  <bruno@clisp.org>
5094
5095         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
5096         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
5097         10.
5098         (OLD_ALLOW, OLD_DENY): New macros.
5099         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
5100         ACE_ACCESS_ALLOWED_ACE_TYPE.
5101         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
5102         ACE_ACCESS_DENIED_ACE_TYPE.
5103         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
5104         (NEW_ACE_EXECUTE): Fix value.
5105         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
5106         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
5107         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
5108         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
5109         NEW_ACE_SYNCHRONIZE): New macros.
5110         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
5111         instead of acl_fromtext, acl_set, facl_set.
5112         Fixes a coreutils/tests/cp/perm failure.
5113
5114 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
5115
5116         openat: test for fstatat (..., 0) bug
5117         Further testing with tar suggests that fstatat (..., 0)
5118         does not work in general, on AIX 7.1; see
5119         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
5120         So, give up entirely on AIX 7.1's fstatat, and fall back on our
5121         replacement fstatat (which is what older AIX releases were using
5122         anyway).
5123         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
5124         use is now changed to orig_fstatat.  This was probably the right
5125         thing to do anyway.
5126         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
5127         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
5128         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
5129         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
5130         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
5131         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
5132         if the bug is found.
5133
5134         openat: test for fstatat (AT_FDCWD, ..., 0) bug
5135         This tests for another fstatat bug on AIX 7.1:
5136         fstatat (AT_FDCWD, ..., 0) does not work.  See
5137         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
5138         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
5139         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
5140         (rpl_fstatat): Adjust so that it works around either (or both)
5141         bugs if present.
5142         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
5143
5144 2011-09-03  Karl Berry  <karl@gnu.org>
5145
5146         * doc/regex.texi (Character Class Operators): Avoid literal ":"
5147         in index entries.
5148
5149 2011-09-02  Bruno Haible  <bruno@clisp.org>
5150
5151         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
5152         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
5153         values of AR, ARFLAGS, RANLIB.
5154         Reported by John W. Eaton <jwe@gnu.org> for Octave.
5155
5156 2011-09-02  Bruno Haible  <bruno@clisp.org>
5157
5158         Find 'ar' program that fits with --host argument.
5159         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
5160
5161 2011-09-02  Bruno Haible  <bruno@clisp.org>
5162
5163         tests: init.sh: Support any non-GNU diff.
5164         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
5165         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
5166         Solaris 8.
5167
5168 2011-09-02  Bruno Haible  <bruno@clisp.org>
5169
5170         tests: init.sh: work also with any non-GNU diff that supports -u
5171         * tests/init.sh: Relax check for diff -u support.
5172         Rather than checking for GNU diff via --version, simply check
5173         for support for -u itself.  Useful at least on OpenBSD 4.9,
5174         AIX 7.1, IRIX 6.5, and Solaris 10.
5175
5176 2011-09-01  Bruno Haible  <bruno@clisp.org>
5177
5178         strtoimax, strtoumax: Document problem on HP-UX 11.
5179         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
5180         * doc/posix-functions/strtoumax.texi: Likewise.
5181
5182 2011-09-01  Bruno Haible  <bruno@clisp.org>
5183
5184         strtoumax: Avoid link error on OSF/1 with DTK cc.
5185         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
5186         defined as a function.
5187         * modules/strtoumax (Depends-on, configure.ac): Test only whether
5188         strtoumax is defined, not whether it is declared.
5189
5190 2011-09-01  Bruno Haible  <bruno@clisp.org>
5191
5192         strtoimax: Avoid link error on OSF/1 with DTK cc.
5193         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
5194         defined as a function.
5195         * modules/strtoimax (Depends-on, configure.ac): Test only whether
5196         strtoimax is defined, not whether it is declared.
5197
5198 2011-09-01  Bruno Haible  <bruno@clisp.org>
5199
5200         imaxdiv: Avoid link error on OSF/1 with DTK cc.
5201         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
5202         as a function.
5203         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
5204         whether it is declared.
5205
5206 2011-09-01  Bruno Haible  <bruno@clisp.org>
5207
5208         imaxabs: Avoid link error on OSF/1 with DTK cc.
5209         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
5210         as a function.
5211         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
5212         whether it is declared.
5213
5214 2011-09-01  Bruno Haible  <bruno@clisp.org>
5215
5216         Tests for module 'strtoumax'.
5217         * modules/strtoumax-tests: New file.
5218         * tests/test-strtoumax.c: New file.
5219
5220         Tests for module 'strtoimax'.
5221         * modules/strtoimax-tests: New file.
5222         * tests/test-strtoimax.c: New file.
5223
5224         Tests for module 'imaxdiv'.
5225         * modules/imaxdiv-tests: New file.
5226         * tests/test-imaxdiv.c: New file.
5227
5228         Tests for module 'imaxabs'.
5229         * modules/imaxabs-tests: New file.
5230         * tests/test-imaxabs.c: New file.
5231
5232 2011-09-01  Bruno Haible  <bruno@clisp.org>
5233
5234         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
5235         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
5236         pthread_create.
5237
5238 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5239
5240         openat: work around AIX 7.1 fstatat issue
5241         This should fix the problem that was not properly fixed
5242         in the previous change, dated 2011-08-30.
5243         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
5244         __need_system_stat_h defined.
5245         (orig_fstatat) [HAVE_FSTATAT]: New function.
5246         (rpl_fstatat): Go back to the old way of doing things,
5247         except call orig_fstatat instead of fstatat.
5248         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
5249         Remove unnecessary check whether fstatat fills in st_size etc.
5250
5251 2011-09-01  Bruno Haible  <bruno@clisp.org>
5252
5253         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
5254         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
5255         just include the system's header.
5256
5257 2011-08-31  Jim Meyering  <meyering@redhat.com>
5258
5259         tests: avoid spurious assertion failure in test-float.c on ppc64
5260         * tests/test-float.c (test_long_double): Comment out an assertion,
5261         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
5262         with gcc-4.4.4.
5263
5264         maint: indent with spaces, not TABs
5265         I need to get in the habit of running gnulib's "make check".
5266         Both of these would have been caught.
5267         * m4/largefile.m4: Indent with spaces, not TABs.
5268         * lib/parse-datetime.y (iso_8601_time): Likewise.
5269         Spotted by Pádraig Brady.
5270
5271         test-parse-datetime.c: accommodate a relatively strict gcc warning
5272         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
5273         to avoid a warning from gcc's -Werror=missing-declarations.
5274         Insert a few spaces-before-funcall-parenthesis.
5275
5276 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
5277
5278         parse-datetime: accept ISO 8601 date and time rep with "T" separator
5279         The parser now accepts ISO 8601 date-time strings with "T" as the
5280         separator.  It has long parsed dates like "2004-02-29 16:21:42"
5281         with a space between the date and time strings.  Now it also parses
5282         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
5283         variants like "2004-02-29T16:21:42.333-07:00"
5284         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
5285         of day representation using the 'T' separator character.
5286         * doc/parse-datetime.texi (General date syntax): replace use of
5287         deprecated --iso-8601 option with --rfc-3339 in example of date
5288         command output formats that can be parsed.
5289         * tests/test-parse-datetime.c (tm_diff): New function, taken from
5290         lib/parse-datetime.y.
5291         (gmt_offset): New function.
5292         (main): Add additional test cases to validate ISO8601 extended
5293         date and time of day parsing.
5294
5295 2011-08-31  Bruno Haible  <bruno@clisp.org>
5296
5297         freopen: Documentation.
5298         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
5299         name.
5300         Reported by Claudio Bley <claudio.bley@gmail.com>.
5301
5302 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
5303
5304         freopen: Don't crash if the filename argument is NULL.
5305         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
5306         NULL.
5307
5308 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
5309
5310         openat: work around AIX 7.1 fstatat bug
5311         Problem reported by Kevin Brott for GNU tar, in the thread containing
5312         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
5313         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
5314         FSTATAT_ST_SIZE_ETC_BROKEN.
5315         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
5316         rpl_fstatat.
5317         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
5318         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
5319         AC_CHECK_FUNCS_ONCE for fstatat.
5320         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
5321         fchmodat, mkdirat, openat and unlinkat.
5322
5323 2011-08-30  Bruno Haible  <bruno@clisp.org>
5324
5325         Avoid endless recursions if config.h includes some header files.
5326         * lib/fopen.c (__need_FILE): Define already before including config.h.
5327         * lib/freopen.c (__need_FILE): Likewise.
5328         * lib/open.c (__need_system_fcntl_h): Likewise.
5329         * lib/stat.c (__need_system_sys_stat_h): Likewise.
5330         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
5331         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5332
5333 2011-08-25  Karl Berry  <karl@gnu.org>
5334
5335         * config/srclist.txt (ylwrap): new try.
5336         * build-aux/ylwrap: new file.
5337
5338 2011-08-23  Bruno Haible  <bruno@clisp.org>
5339
5340         tmpdir: Use a good default directory on native Windows.
5341         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
5342         (P_tmpdir): Default to _P_tmpdir on native Windows.
5343         (path_search): On native Windows, try the value returned by GetTempPath
5344         before trying P_tmpdir.
5345         * modules/tmpdir (Depends-on): Add pathmax.
5346         Suggested by John Darrington <john@darrington.wattle.id.au>.
5347
5348 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
5349
5350         doc: fix typo in README-release
5351         * top/README-release: Capitalize first word of a sentence.
5352
5353 2011-08-19  Jim Meyering  <meyering@redhat.com>
5354
5355         fts: do not exhaust memory when processing million-entry directories
5356         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
5357         directory would require about 256*N bytes of memory.  Thus, it was
5358         easy to construct a directory too large to be processed by any of
5359         those tools.  With this change, fts' maximum memory utilization is
5360         now limited to around 30MB.
5361         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
5362         (fts_read): When we've processed the final entry (i.e., when
5363         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
5364         using the parent entry to read any remaining entries.  Dispatch
5365         depending on what fts_build returns:
5366         - NULL+stop, aka failure: stop
5367         - NULL otherwise: move up in the dir hierarchy
5368         - non-NULL: handle this new entry
5369         (fts_build): Declare and use new local, continue_readdir.
5370         Prepare to be called from fts_read, when the entries
5371         from a partially-read directory have just been exhausted.
5372         In that case, we'll skip the opendir and instead use the parent's
5373         fts_dirp and derive dir_fd from that.
5374         Finally, in the readdir loop, if we read max_entries entries,
5375         exit the loop ensuring *not* to call closedir.  This is required
5376         so that fts_dirp can be reused on a subsequent call.
5377         Prompted by Ben England's report of memory exhaustion in find
5378         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
5379
5380         maint: fts: move decl of `dp' down into while loop; split a long line
5381         * lib/fts.c (fts_build): No semantic change.
5382
5383         fts: add/use new struct member, fts_dirp
5384         We are about to use this to manage any directory with
5385         too many entries to read all of them into memory at once.
5386         To do that, we'll need to save the DIR* pointer in each
5387         affected FTSENT struct.
5388         * lib/fts_.h: Include <dirent.h>.
5389         (struct FTSENT) [fts_dirp]: New member.
5390         * lib/fts.c (closedir_and_clear): Define.
5391         Use it in place of closedir so that we are sure to
5392         clear the new fts_dirp member when done with it.
5393         (fts_alloc): Initialize the new member.
5394         (fts_lfree): Free, if needed.
5395
5396         maint: fts: give __opendir2 a new parameter and rename
5397         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
5398         than surreptitiously using sole caller's "dir_fd".
5399         (fts_opendir): Rename from __opendir2.
5400
5401         maint: fts.c: remove __opendir2's now-unused parameter, oflag
5402         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
5403
5404         maint: fts.c: correct off-by-one indentation
5405         * lib/fts.c (fts_build): Correct indentation, change style
5406         of a couple of block comments, and bracing style.
5407
5408         maint: fts.c: move __opendir2 #define "up" out of function body
5409         * lib/fts.c (__opendir2): Move "up".  No semantic change.
5410
5411         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
5412         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
5413         out for a long time and besides was useful only on BSD systems.
5414
5415 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
5416
5417         regex: port to Stratus OpenVOS
5418         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
5419         define to empty, rather than attempting nonportable optimizations.
5420         Problem reported by Paul Green in:
5421         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
5422         and fix suggested by Eric Blake in:
5423         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
5424
5425 2011-08-17  Eric Blake  <eblake@redhat.com>
5426
5427         getcwd: fix test failures on mingw
5428         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
5429         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
5430         test if long directory cannot be created, and allow mingw errno.
5431
5432         getcwd-lgpl: fix m4 to match relaxed test for BSD
5433         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
5434         (gl_FUNC_GETCWD_SIGNATURE): New macro.
5435         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
5436         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
5437         signature problem.
5438
5439         getcwd: fix compilation on mingw64
5440         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
5441         getcwd.
5442         Reported by Marc-André Lureau.
5443
5444         pipe2: silence compiler warning
5445         * lib/pipe2.c (pipe2): Hide label if it is not used.
5446
5447 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
5448
5449         relocatable-prog: fix link error
5450         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
5451         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
5452         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
5453         into modules/relocatable-lib without noticing that
5454         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
5455         also needs to build relocatable.c.
5456
5457 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
5458
5459         getaddrinfo: fix sh typo in gai_strerrorA decl checking
5460         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
5461         shell code: it contained a 'break' that was not in a loop.
5462         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
5463         via a shell-language loop; this may have been true in old Autoconf
5464         versions, but it's not true in Autoconf 2.68.  I found this bug
5465         when testing coreutils git on Solaris 8, whose shell complains
5466         about the syntax error.
5467
5468 2011-08-12  Simon Josefsson  <simon@josefsson.org>
5469
5470         * lib/base64.c: Fix comment to reference RFC 4648.
5471         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
5472         <gvtulder@gmail.com>.
5473
5474 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
5475
5476         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
5477
5478         po/Makefile.in.in: fix make -q problem
5479         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
5480         rule, since there's no file named 'check-macro-version' and its
5481         use as a file breaks make -q.
5482         (all): Don't depend on check-macro-version.
5483         (CHECK_MACRO_VERSION): New macro.
5484         (stamp-po): Use it.
5485
5486         configmake: fix make -q problem
5487         * modules/configmake (configmake.h): Update configmake.h's time stamp
5488         even if the file does not change.  Otherwise, 'make -q' fails.
5489         Problem reported by Simon Josefsson in
5490         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
5491
5492 2011-08-11  Jim Meyering  <meyering@redhat.com>
5493
5494         git-version-gen: correct the advice in a comment
5495         * build-aux/git-version-gen: Correct comment.
5496         Don't recommend to list .tarball-version in .gitignore.
5497
5498 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
5499
5500         base64: fix off-by-one buffer size bug
5501         Problem and (trivial) fix reported by Gijs van Tulder in
5502         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
5503         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
5504         * tests/test-base64.c (main): Catch the bug.
5505
5506 2011-08-10  Eric Blake  <eblake@redhat.com>
5507
5508         closein: correct comments
5509         * lib/closein.c (close_stdin): Improve comments.
5510
5511 2011-08-09  Bruno Haible  <bruno@clisp.org>
5512
5513         More tests for 'fseeko'.
5514         * tests/test-fseeko3.c: New file, from Eric Blake.
5515         * tests/test-fseeko3.sh: New file.
5516         * modules/fseeko-tests (Files): Add them.
5517         (TESTS): Add test-fseeko3.sh.
5518         (check_PROGRAMS): Add test-fseeko3.
5519
5520 2011-08-09  Eric Blake  <eblake@redhat.com>
5521
5522         fseeko: remove unneeded hack
5523         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
5524
5525         fseeko: fix bug on glibc
5526         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
5527         Reported by John W. Eaton.
5528
5529 2011-08-08  Bruno Haible  <bruno@clisp.org>
5530
5531         unictype/base: Fix interoperability with preinstalled libunistring.
5532         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
5533         Reported by Simon Josefsson.
5534
5535 2011-08-08  Bruno Haible  <bruno@clisp.org>
5536
5537         iswblank: Detect declaration correctly.
5538         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
5539         AC_CHECK_DECLS invocation.
5540
5541 2011-08-08  Bruno Haible  <bruno@clisp.org>
5542
5543         tcgetsid: Detect declaration correctly.
5544         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
5545         AC_CHECK_DECLS invocation.
5546         Reported by Simon Josefsson.
5547
5548 2011-08-08  Eric Blake  <eblake@redhat.com>
5549
5550         largefile: fix typo that regressed large file support
5551         * modules/largefile (configure.ac-early): Fix section name.
5552
5553 2011-08-06  Karl Berry  <karl@gnu.org>
5554
5555         * MODULES.html.sh (func_all_files): _Noreturn is no longer
5556         a separate module.
5557
5558 2011-08-05  Simon Josefsson  <simon@josefsson.org>
5559
5560         openat: Fix warnings and commens when building unlinkat.c on Hurd.
5561         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
5562         get prototype for free.
5563
5564 2011-08-04  Bruno Haible  <bruno@clisp.org>
5565
5566         Tests for module 'pathmax'.
5567         * modules/pathmax-tests: New file.
5568         * tests/test-pathmax.c: New file.
5569
5570         canonicalize-lgpl: Support larger filenames on the Hurd.
5571         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
5572         Reported by Paul Eggert.
5573
5574         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
5575         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
5576         * lib/chdir-long.h: Include pathmax.h.
5577         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
5578         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
5579         (PATH_MAX): Remove code that is done by pathmax.h.
5580         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
5581         * lib/tmpfile.c: Add a comment.
5582         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
5583         * modules/chdir-long (Depends-on): Add pathmax.
5584         * modules/getcwd (Depends-on): Add pathmax.
5585         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
5586         is not defined.
5587         * doc/posix-headers/limits.texi: Mention the pathmax module.
5588         * NEWS: Mention the change.
5589
5590 2011-08-02  Bruno Haible  <bruno@clisp.org>
5591
5592         pthread_sigmask: Actually use results of gl_THREADLIB.
5593         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
5594         gl_THREADLIB, not gl_[]THREADLIB.
5595         Reported by Eric Blake.
5596
5597 2011-08-02  Jim Meyering  <meyering@redhat.com>
5598
5599         maint.mk: relax the default _gl_TS_function_match regexp
5600         * top/maint.mk (_gl_TS_function_match): Don't require at least one
5601         space between function name and "(" in an "extern" declaration.
5602         That would fail to match a decl with no space there: extern void foo();
5603
5604 2011-07-31  Iain Nicol  <iain@thenicols.net>
5605
5606         git-version-gen: document that EXTRA_DIST must include .version
5607         * build-aux/git-version-gen: In the how-to-use comment, document
5608         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
5609         will fail when run from an unpacked distribution tarball.
5610
5611 2011-08-01  Bruno Haible  <bruno@clisp.org>
5612
5613         wctype-h: Fix last change.
5614         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
5615         REPLACE_TOWLOWER to 0.
5616         Reported by Sam Steingold <sds@gnu.org>.
5617
5618 2011-07-31  Bruno Haible  <bruno@clisp.org>
5619
5620         frexpl: Update autoconf test.
5621         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
5622         according to changes of 2011-06-20.
5623
5624 2011-07-31  Bruno Haible  <bruno@clisp.org>
5625
5626         sys_utsname: Add support for Minix.
5627         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
5628         <sys/utsname.h>.
5629         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
5630         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
5631
5632 2011-07-31  Bruno Haible  <bruno@clisp.org>
5633
5634         strings: Add support for Minix.
5635         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
5636         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
5637         * doc/posix-headers/strings.texi: Document the Minix problem.
5638
5639 2011-07-31  Bruno Haible  <bruno@clisp.org>
5640
5641         wctype-h: Add support for Minix.
5642         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
5643         REPLACE_TOWLOWER.
5644         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
5645         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
5646         REPLACE_ISWCNTRL.
5647
5648 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
5649
5650         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
5651         This is a performance improvement for 64-bit hosts: it causes the
5652         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
5653
5654 2011-07-31  Bruno Haible  <bruno@clisp.org>
5655
5656         stdioext: Add support for Minix.
5657         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
5658         * lib/fpurge.c (fpurge): Likewise.
5659         * lib/freadahead.c (freadahead): Likewise.
5660         * lib/freadable.c (freadable): Likewise.
5661         * lib/freading.c (freading): Likewise.
5662         * lib/freadptr.c (freadptr): Likewise.
5663         * lib/freadseek.c (freadptrinc): Likewise.
5664         * lib/fseeko.c (rpl_fseeko): Likewise.
5665         * lib/fseterr.c (fseterr): Likewise.
5666         * lib/fwritable.c (fwritable): Likewise.
5667         * lib/fwriting.c (fwriting): Likewise.
5668         * lib/fflush.c (clear_ungetc_buffer): Update comment.
5669         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
5670
5671 2011-07-31  Bruno Haible  <bruno@clisp.org>
5672
5673         errno: Port to Minix.
5674         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
5675         ECONNABORTED are defined.
5676         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
5677         GNULIB_defined_ECONNABORTED): New macros.
5678         * lib/strerror-override.h (strerror_override): Test also
5679         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
5680         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
5681         ECONNABORTED.
5682         * doc/posix-headers/errno.texi: Mention the Minix problem.
5683
5684 2011-07-31  Bruno Haible  <bruno@clisp.org>
5685
5686         Work around declaration collisions on Minix.
5687         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
5688         defined, set REPLACE_MBSINIT.
5689         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
5690         defined, set REPLACE_MBRTOWC.
5691         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
5692         set REPLACE_MBRLEN.
5693         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
5694         defined, set REPLACE_MBSRTOWCS.
5695         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
5696         defined, set REPLACE_WCRTOMB.
5697         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
5698         defined, set REPLACE_WCSRTOMBS.
5699
5700 2011-07-31  Bruno Haible  <bruno@clisp.org>
5701
5702         Add support for Minix with ACK compiler.
5703         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
5704         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
5705         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
5706
5707 2011-07-31  Bruno Haible  <bruno@clisp.org>
5708
5709         Documentation about Minix.
5710         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
5711         * doc/glibc-headers/*.texi: Likewise.
5712         * doc/posix-functions/*.texi: Likewise.
5713         * doc/glibc-functions/*.texi: Likewise.
5714
5715 2011-07-31  Bruno Haible  <bruno@clisp.org>
5716
5717         snippet/warn-on-use: Fix indentation.
5718         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
5719
5720 2011-07-25  Jim Meyering  <meyering@redhat.com>
5721
5722         tests: test-update-copyright.sh: remove unnecessary "rm" commands
5723         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
5724         commands.
5725
5726 2011-07-27  Jim Meyering  <meyering@redhat.com>
5727
5728         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
5729         * top/maint.mk (gl_extract_significant_defines_): Now that
5730         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
5731         gnulib/lib/signal.in.h, and now that we recommend to
5732         define-if-undefined those two symbols in application code,
5733         we must filter them out of the "significant" list.
5734         This avoids a "make syntax-check" failure in coreutils.
5735
5736 2011-07-26  Eric Blake  <eblake@redhat.com>
5737
5738         warnings: add comments about previous patch
5739         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
5740         * m4/include_next.m4: Likewise.
5741         * m4/warn-on-use.m4: Likewise.
5742         * m4/warnings.m4: Likewise, and simplify use.
5743         Suggested by Stefano Lattarini.
5744
5745         include-next, warnings: support older autoconf
5746         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
5747         AS_VAR_PUSHDEF in a way that works with older autoconf.
5748         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
5749         Reported by Daniel P. Berrange.
5750
5751 2011-07-25  Bruno Haible  <bruno@clisp.org>
5752
5753         fseek, ftell: Fix doc.
5754         * doc/posix-functions/fseek.texi: Reword statement about
5755         AC_SYS_LARGEFILE.
5756         * doc/posix-functions/ftell.texi: Likewise.
5757
5758 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5759             Bruno Haible  <bruno@clisp.org>
5760
5761         Add dependencies to the 'largefile' module.
5762         * modules/fopen (Depends-on): Add 'largefile'.
5763         * modules/freopen (Depends-on): Likewise.
5764         * modules/fseeko (Depends-on): Likewise.
5765         * modules/ftello (Depends-on): Likewise.
5766         * modules/glob (Depends-on): Likewise.
5767         * modules/lseek (Depends-on): Likewise.
5768         * modules/lstat (Depends-on): Likewise.
5769         * modules/mkostemp (Depends-on): Likewise.
5770         * modules/mkostemps (Depends-on): Likewise.
5771         * modules/mkstemp (Depends-on): Likewise.
5772         * modules/mkstemps (Depends-on): Likewise.
5773         * modules/open (Depends-on): Likewise.
5774         * modules/openat (Depends-on): Likewise.
5775         * modules/pread (Depends-on): Likewise.
5776         * modules/pwrite (Depends-on): Likewise.
5777         * modules/scandir (Depends-on): Likewise.
5778         * modules/stat (Depends-on): Likewise.
5779         * modules/tmpfile (Depends-on): Likewise.
5780         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
5781         since the containing module now depends on the largefile module.
5782         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
5783         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
5784         off_t is fixed by gnulib.
5785         * doc/posix-functions/freopen.texi: Likewise.
5786         * doc/posix-functions/fseeko.texi: Likewise.
5787         * doc/posix-functions/fstatat.texi: Likewise.
5788         * doc/posix-functions/ftello.texi: Likewise.
5789         * doc/posix-functions/glob.texi: Likewise.
5790         * doc/posix-functions/lseek.texi: Likewise.
5791         * doc/posix-functions/lstat.texi: Likewise.
5792         * doc/posix-functions/mkstemp.texi: Likewise.
5793         * doc/posix-functions/open.texi: Likewise.
5794         * doc/posix-functions/openat.texi: Likewise.
5795         * doc/posix-functions/pread.texi: Likewise.
5796         * doc/posix-functions/pwrite.texi: Likewise.
5797         * doc/posix-functions/scandir.texi: Likewise.
5798         * doc/posix-functions/stat.texi: Likewise.
5799         * doc/posix-functions/tmpfile.texi: Likewise.
5800         * doc/glibc-functions/mkostemp.texi: Likewise.
5801         * doc/glibc-functions/mkostemps.texi: Likewise.
5802         * doc/glibc-functions/mkstemps.texi: Likewise.
5803
5804 2011-07-25  Bruno Haible  <bruno@clisp.org>
5805
5806         fcntl: Move AC_LIBOBJ invocation to module description.
5807         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
5808         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
5809
5810         fcntl: Remove call-in from fchdir.m4.
5811         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
5812         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
5813
5814         dup3: Remove potential call-in from fchdir.m4.
5815         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
5816         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
5817
5818         dup2: Move AC_LIBOBJ invocation to module description.
5819         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
5820         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
5821         Don't invoke AC_LIBOBJ.
5822         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
5823
5824         dup2: Remove call-in from fchdir.m4.
5825         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
5826         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
5827
5828         fclose: Move AC_LIBOBJ invocation to module description.
5829         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
5830         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
5831         to 1.
5832         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
5833
5834         fclose: Remove call-in from close.m4.
5835         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
5836         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
5837
5838         close: Move AC_LIBOBJ invocation to module description.
5839         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
5840         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
5841         1.
5842         * modules/close (configure.ac): Invoke AC_LIBOBJ.
5843
5844         close: Remove call-in from fchdir.m4.
5845         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
5846         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
5847
5848         open: Move AC_LIBOBJ invocation to module description.
5849         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
5850         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
5851         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
5852
5853         open: Remove call-in from fchdir.m4.
5854         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
5855         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
5856
5857         fchdir: Start to remove gl_REPLACE_* idiom.
5858         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
5859         (gl_FUNC_FCHDIR): Invoke it.
5860
5861 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5862
5863         * lib/ftell.c (ftell): Comment out cast.
5864
5865         close: use gl_REPLACE_FCLOSE only if defined
5866         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
5867         is defined.  The close module doesn't depend on the fclose module
5868         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
5869         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
5870         I reproduced the problem with "./gnulib-tool --test close sys_socket".
5871
5872 2011-07-24  Jim Meyering  <meyering@redhat.com>
5873
5874         test-select.h: avoid warning when using gcc's -Wmissing-declarations
5875         * tests/test-select.h (test_function): Declare as "static".
5876
5877 2011-07-24  Bruno Haible  <bruno@clisp.org>
5878
5879         doc: Mention the effects of AC_SYS_LARGEFILE.
5880         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
5881         on this function.
5882         * doc/posix-functions/aio_error.texi: Likewise.
5883         * doc/posix-functions/aio_fsync.texi: Likewise.
5884         * doc/posix-functions/aio_read.texi: Likewise.
5885         * doc/posix-functions/aio_return.texi: Likewise.
5886         * doc/posix-functions/aio_suspend.texi: Likewise.
5887         * doc/posix-functions/aio_write.texi: Likewise.
5888         * doc/posix-functions/fgetpos.texi: Likewise.
5889         * doc/posix-functions/fopen.texi: Likewise.
5890         * doc/posix-functions/freopen.texi: Likewise.
5891         * doc/posix-functions/fsetpos.texi: Likewise.
5892         * doc/posix-functions/fstatvfs.texi: Likewise.
5893         * doc/posix-functions/ftruncate.texi: Likewise.
5894         * doc/posix-functions/ftw.texi: Likewise.
5895         * doc/posix-functions/getrlimit.texi: Likewise.
5896         * doc/posix-functions/glob.texi: Likewise.
5897         * doc/posix-functions/lio_listio.texi: Likewise.
5898         * doc/posix-functions/lockf.texi: Likewise.
5899         * doc/posix-functions/mkstemp.texi: Likewise.
5900         * doc/posix-functions/mmap.texi: Likewise.
5901         * doc/posix-functions/nftw.texi: Likewise.
5902         * doc/posix-functions/openat.texi: Likewise.
5903         * doc/posix-functions/opendir.texi: Likewise.
5904         * doc/posix-functions/posix_fadvise.texi: Likewise.
5905         * doc/posix-functions/posix_fallocate.texi: Likewise.
5906         * doc/posix-functions/pread.texi: Likewise.
5907         * doc/posix-functions/pwrite.texi: Likewise.
5908         * doc/posix-functions/readdir.texi: Likewise.
5909         * doc/posix-functions/readdir_r.texi: Likewise.
5910         * doc/posix-functions/rewinddir.texi: Likewise.
5911         * doc/posix-functions/scandir.texi: Likewise.
5912         * doc/posix-functions/seekdir.texi: Likewise.
5913         * doc/posix-functions/setrlimit.texi: Likewise.
5914         * doc/posix-functions/statvfs.texi: Likewise.
5915         * doc/posix-functions/telldir.texi: Likewise.
5916         * doc/posix-functions/tmpfile.texi: Likewise.
5917         * doc/posix-functions/truncate.texi: Likewise.
5918         * doc/glibc-functions/fallocate.texi: Likewise.
5919         * doc/glibc-functions/fstatfs.texi: Likewise.
5920         * doc/glibc-functions/fts_children.texi: Likewise.
5921         * doc/glibc-functions/fts_read.texi: Likewise.
5922         * doc/glibc-functions/getdirentries.texi: Likewise.
5923         * doc/glibc-functions/mkostemp.texi: Likewise.
5924         * doc/glibc-functions/mkostemps.texi: Likewise.
5925         * doc/glibc-functions/mkstemps.texi: Likewise.
5926         * doc/glibc-functions/preadv.texi: Likewise.
5927         * doc/glibc-functions/pwritev.texi: Likewise.
5928         * doc/glibc-functions/sendfile.texi: Likewise.
5929         * doc/glibc-functions/statfs.texi: Likewise.
5930
5931 2011-07-24  Bruno Haible  <bruno@clisp.org>
5932
5933         doc: Fix typo.
5934         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
5935
5936 2011-07-24  Bruno Haible  <bruno@clisp.org>
5937
5938         doc: Mention fsusage.
5939         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
5940
5941 2011-07-24  Bruno Haible  <bruno@clisp.org>
5942
5943         doc: Mention new glibc headers and functions.
5944         * doc/glibc-headers/gshadow.texi: New file.
5945         * doc/glibc-functions/endsgent.texi: New file.
5946         * doc/glibc-functions/fgetsgent.texi: New file.
5947         * doc/glibc-functions/fgetsgent_r.texi: New file.
5948         * doc/glibc-functions/getsgent.texi: New file.
5949         * doc/glibc-functions/getsgent_r.texi: New file.
5950         * doc/glibc-functions/getsgnam.texi: New file.
5951         * doc/glibc-functions/getsgnam_r.texi: New file.
5952         * doc/glibc-functions/putsgent.texi: New file.
5953         * doc/glibc-functions/setsgent.texi: New file.
5954         * doc/glibc-functions/sgetsgent.texi: New file.
5955         * doc/glibc-functions/sgetsgent_r.texi: New file.
5956         * doc/glibc-functions/malloc_info.texi: New file.
5957         * doc/glibc-functions/preadv.texi: New file.
5958         * doc/glibc-functions/pwritev.texi: New file.
5959         * doc/glibc-functions/register_printf_modifier.texi: New file.
5960         * doc/glibc-functions/register_printf_specifier.texi: New file.
5961         * doc/glibc-functions/register_printf_type.texi: New file.
5962         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
5963         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
5964         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
5965         * doc/glibc-functions/pthread_getname_np.texi: New file.
5966         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
5967         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
5968         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
5969         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
5970         * doc/glibc-functions/pthread_setname_np.texi: New file.
5971         * doc/glibc-functions/pthread_sigqueue.texi: New file.
5972         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
5973         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
5974         * doc/glibc-functions/qsort_r.texi: New file.
5975         * doc/glibc-functions/quick_exit.texi: New file.
5976         * doc/glibc-functions/syncfs.texi: New file.
5977         * doc/gnulib.texi: Include them.
5978         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
5979         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
5980         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
5981         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
5982         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
5983         * doc/glibc-functions/execvpe.texi: Likewise.
5984
5985 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5986
5987         ftell: don't include <unistd.h>
5988         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
5989         guaranteed to define off_t, and the ftell module depends on the
5990         stdio module.
5991
5992         ftell: do not assume wraparound signed arithmetic
5993         * lib/ftell.c: Include <limits.h>.
5994         (ftell): Don't assume wraparound signed arithmetic.
5995
5996 2011-07-24  Bruno Haible  <bruno@clisp.org>
5997
5998         close: No longer depend on module 'fclose'.
5999         * modules/close (Depends-on): Remove fclose.
6000         * NEWS: Mention the change.
6001         Suggested by Sam Steingold <sds@gnu.org>.
6002
6003 2011-07-24  Bruno Haible  <bruno@clisp.org>
6004
6005         fsusage: Enable large volume support on AIX >= 5.2.
6006         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
6007         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
6008         instead of STAT_STATVFS.
6009         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
6010
6011         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
6012         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
6013         f_blocks field only on MacOS X.
6014
6015         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
6016         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
6017         * modules/fsusage (Depends-on): Add largefile.
6018
6019 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6020
6021         * README: Modernize discussion of signed integers.
6022         Assuming overflow wraparound is no longer safe.
6023         Mention ones' complement and signed magnitude.
6024
6025 2011-07-22  Bruno Haible  <bruno@clisp.org>
6026
6027         select tests, pselect tests: Refactor.
6028         * tests/test-select.h: New file, extracted from tests/test-select.c.
6029         (select_fn): New type.
6030         (test, do_select, do_select_nowait, do_select_wait, test_tty,
6031         test_connect_first, test_accept_first, test_pair, test_socket_pair,
6032         test_pipe): Add my_select argument.
6033         (test_function): Renamed from main. Add my_select argument.
6034         * tests/test-select.c: Move most code to tests/test-select.h. Include
6035         test-select.h.
6036         * modules/select-tests (Files): Add tests/test-select.h.
6037         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
6038         (my_select, main): New functions.
6039         * modules/pselect-tests (Files): Add tests/test-select.h,
6040         tests/macros.h, tests/signature.h.
6041         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
6042         (configure.ac): Check for <sys/wait.h>.
6043
6044 2011-07-22  Bruno Haible  <bruno@clisp.org>
6045
6046         sys_select tests: Check the signature of FD_*.
6047         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
6048         signature tests from here...
6049         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
6050         here.
6051         * modules/sys_select-tests (Files): Add tests/signature.h.
6052
6053 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
6054
6055         largefile: new module, replacing large-inode
6056         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
6057         * MODULES.html.sh: Add largefile, remove large-inode.
6058         * modules/largefile, m4/largefile.m4: New files.
6059         * modules/large-inode, m4/large-inode.m4: Remove.
6060
6061         fsusage: port to MacOS X 10.7 with 4 TiB file systems
6062         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
6063         implementations that use only 32 bits to count blocks.
6064         On typical hosts with 1024-byte blocks, this fails with file
6065         systems as small as 4 TiB.  Problem reported by Herb Wartens
6066         <http://debbugs.gnu.org/9140> and this should also fix a similar
6067         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
6068
6069         large-inode: New module
6070         * MODULES.html.sh: Add it.
6071         * modules/large-inode, m4/large-inode.m4: New files.
6072
6073         extensions: Enable extensions on MacOS X 10.5 and later.
6074         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
6075
6076 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
6077
6078         file-has-acl: use acl_extended_file_nofollow if available
6079         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
6080         (acl_extended_file): New macro.
6081         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
6082         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
6083
6084 2011-07-21  Bruno Haible  <bruno@clisp.org>
6085
6086         Declare system functions in a way that works with C++.
6087         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
6088         declare fdopendir as extern "C".
6089         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
6090         declare frexpl as extern "C".
6091         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
6092         declare gai_strerror as extern "C".
6093         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
6094         programs, declare gai_strerror as extern "C".
6095         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
6096         declare getlogin_r as extern "C".
6097         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
6098         as extern "C".
6099         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
6100         declare ldexpl as extern "C".
6101         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
6102         as extern "C".
6103         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
6104         program, declare getmntinfo as extern "C".
6105         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
6106         stpncpy as extern "C".
6107         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
6108         program, declare __xpg_strerror_r as extern "C".
6109         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
6110         strndup as extern "C".
6111         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
6112         declare memset and bzero as extern "C".
6113         Reported by Sam Steingold <sds@gnu.org>.
6114
6115 2011-07-12  Jim Meyering  <meyering@redhat.com>
6116
6117         maint.mk: prohibit inclusion of "verify.h" without use
6118         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
6119
6120 2011-07-19  Pádraig Brady  <P@draigBrady.com>
6121
6122         timer-time: A new module to check for timer_settime()
6123         * m4/timer_time.m4: Check for the posix function.
6124         * modules/timer-time: Add the new module.
6125         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
6126         Mention it.
6127
6128 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
6129             Bruno Haible  <bruno@clisp.org>
6130
6131         pthread_sigmask: assume POSIX threads if --avoid=threadlib
6132         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
6133         not defined, assume POSIX threads and look for pthread_sigmask in
6134         $LIBS, without changing $CPPFLAGS.
6135
6136 2011-07-19  Bruno Haible  <bruno@clisp.org>
6137
6138         strstr: Update cross-compilation guess.
6139         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
6140         CPUs, guess no, in view of glibc
6141         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
6142         Suggested by Eric Blake. Reported by Reuben Thomas.
6143
6144 2011-07-19  Pádraig Brady  <P@draigBrady.com>
6145
6146         getopt-gnu: suppress core dumps from detection code
6147         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
6148         to suppress core dumps that may well occur on glibc systems.
6149         * modules/getopt-gnu: Depend on nocrash.
6150
6151 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
6152
6153         pthread_sigmask: ensure usleep is declared
6154         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
6155         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
6156
6157 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
6158
6159         doc: Document NonStop portability issues.
6160         * doc/posix-functions/sigaction.texi (sigaction):
6161         * doc/posix-headers/signal.texi (signal.h):
6162         Document NonStop.  See Joachim Schmitz in
6163         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
6164
6165 2011-07-15  Bruno Haible  <bruno@clisp.org>
6166
6167         ffsl, ffsll: Avoid unportable behaviour.
6168         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
6169
6170 2011-07-15  Bruno Haible  <bruno@clisp.org>
6171
6172         ffs: More tests.
6173         * tests/test-ffs.c (NBITS): New macro.
6174         (main): Add more tests.
6175         * tests/test-ffsl.c (NBITS): New macro.
6176         (main): Add more tests.
6177         * tests/test-ffsll.c (NBITS): New macro.
6178         (main): Add more tests.
6179
6180 2011-07-15  Eric Blake  <eblake@redhat.com>
6181
6182         ffsl, ffsll: new modules
6183         * modules/ffsl: New file.
6184         * modules/ffsll: Likewise.
6185         * m4/ffsl.m4: Likewise.
6186         * m4/ffsll.m4: Likewise.
6187         * lib/ffsl.c: Likewise.
6188         * lib/ffsl.h: Likewise.
6189         * lib/ffsll.c: Likewise.
6190         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
6191         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
6192         * modules/string (Makefile.am): Substitute witnesses.
6193         * lib/strings.in.h (ffsl, ffsll): Declare.
6194         * modules/ffsl-tests: New test file.
6195         * modules/ffsll-tests: Likewise.
6196         * tests/test-ffsl.c: Likewise.
6197         * tests/test-ffsll.c: Likewise.
6198         * MODULES.html.sh (Integer arithmetic functions): Mention it.
6199         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
6200         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
6201
6202         ffs: fix m4 prerequisite
6203         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
6204
6205         ffs: avoid undefined behavior
6206         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
6207         * tests/test-ffs.c (naive, main): Avoid signed shifts.
6208         Reported by Bruno Haible.
6209
6210 2011-07-12  Bruno Haible  <bruno@clisp.org>
6211
6212         pthread_sigmask: Rely on module 'threadlib'.
6213         * modules/pthread_sigmask (Depends-on): Add threadlib.
6214         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
6215         is defined.
6216
6217 2011-07-12  Bruno Haible  <bruno@clisp.org>
6218
6219         regex: Depend on module 'strcase'.
6220         * modules/regex (Depends-on): Add strcase, for strcasecmp().
6221
6222 2011-07-12  Jim Meyering  <meyering@redhat.com>
6223
6224         warn-on-use: fix typo in file name
6225         * modules/snippet/warn-on-use (Files): Correct file name:
6226         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
6227
6228 2011-07-12  Bruno Haible  <bruno@clisp.org>
6229
6230         strings: Document module.
6231         * doc/posix-headers/strings.texi: Mention module 'strings'.
6232
6233 2011-07-12  Bruno Haible  <bruno@clisp.org>
6234
6235         Rename module '_Noreturn' to 'snippet/_Noreturn'.
6236         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
6237         (Files, Makefile.am): Update.
6238         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
6239         * modules/stdlib (Depends-on): Update.
6240
6241 2011-07-12  Bruno Haible  <bruno@clisp.org>
6242
6243         * NEWS: Mention the changes.
6244
6245         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
6246         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
6247         (Files, Makefile.am): Update.
6248         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
6249         * modules/arpa_inet (Depends-on): Update.
6250         * modules/ctype (Depends-on): Update.
6251         * modules/dirent (Depends-on): Update.
6252         * modules/fcntl-h (Depends-on): Update.
6253         * modules/glob (Depends-on): Update.
6254         * modules/iconv-h (Depends-on): Update.
6255         * modules/inttypes-incomplete (Depends-on): Update.
6256         * modules/langinfo (Depends-on): Update.
6257         * modules/locale (Depends-on): Update.
6258         * modules/math (Depends-on): Update.
6259         * modules/netdb (Depends-on): Update.
6260         * modules/poll-h (Depends-on): Update.
6261         * modules/pty (Depends-on): Update.
6262         * modules/search (Depends-on): Update.
6263         * modules/signal (Depends-on): Update.
6264         * modules/spawn (Depends-on): Update.
6265         * modules/stdio (Depends-on): Update.
6266         * modules/stdlib (Depends-on): Update.
6267         * modules/string (Depends-on): Update.
6268         * modules/strings (Depends-on): Update.
6269         * modules/sys_file (Depends-on): Update.
6270         * modules/sys_ioctl (Depends-on): Update.
6271         * modules/sys_select (Depends-on): Update.
6272         * modules/sys_socket (Depends-on): Update.
6273         * modules/sys_stat (Depends-on): Update.
6274         * modules/sys_time (Depends-on): Update.
6275         * modules/sys_times (Depends-on): Update.
6276         * modules/sys_utsname (Depends-on): Update.
6277         * modules/sys_wait (Depends-on): Update.
6278         * modules/termios (Depends-on): Update.
6279         * modules/time (Depends-on): Update.
6280         * modules/unistd (Depends-on): Update.
6281         * modules/wchar (Depends-on): Update.
6282         * modules/wctype-h (Depends-on): Update.
6283         * MODULES.html.sh (Support for building libraries and executables):
6284         Update.
6285
6286         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
6287         * modules/snippet/unused-parameter: Renamed from
6288         modules/unused-parameter.
6289         (Files, Makefile.am): Update.
6290         * build-aux/snippet/unused-parameter.h: Renamed from
6291         build-aux/unused-parameter.h.
6292         * modules/selinux-h (Depends-on): Update.
6293         * modules/unistr/base (Depends-on): Update.
6294         * MODULES.html.sh (Core language properties): Update.
6295
6296         Rename module 'link-warning' to 'snippet/link-warning'.
6297         * modules/snippet/link-warning: Renamed from modules/link-warning.
6298         (Files, Makefile.am): Update.
6299         * build-aux/snippet/link-warning.h: Renamed from
6300         build-aux/link-warning.h.
6301         * MODULES.html.sh (Support for building libraries and executables):
6302         Update.
6303
6304         Rename module 'c++defs' to 'snippet/c++defs'.
6305         * modules/snippet/c++defs: Renamed from modules/c++defs.
6306         (Files, Makefile.am): Update.
6307         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
6308         * modules/arpa_inet (Depends-on): Update.
6309         * modules/ctype (Depends-on): Update.
6310         * modules/dirent (Depends-on): Update.
6311         * modules/fcntl-h (Depends-on): Update.
6312         * modules/glob (Depends-on): Update.
6313         * modules/iconv-h (Depends-on): Update.
6314         * modules/langinfo (Depends-on): Update.
6315         * modules/locale (Depends-on): Update.
6316         * modules/math (Depends-on): Update.
6317         * modules/netdb (Depends-on): Update.
6318         * modules/poll-h (Depends-on): Update.
6319         * modules/pty (Depends-on): Update.
6320         * modules/search (Depends-on): Update.
6321         * modules/signal (Depends-on): Update.
6322         * modules/spawn (Depends-on): Update.
6323         * modules/stdio (Depends-on): Update.
6324         * modules/stdlib (Depends-on): Update.
6325         * modules/string (Depends-on): Update.
6326         * modules/strings (Depends-on): Update.
6327         * modules/sys_ioctl (Depends-on): Update.
6328         * modules/sys_select (Depends-on): Update.
6329         * modules/sys_socket (Depends-on): Update.
6330         * modules/sys_stat (Depends-on): Update.
6331         * modules/sys_time (Depends-on): Update.
6332         * modules/sys_wait (Depends-on): Update.
6333         * modules/termios (Depends-on): Update.
6334         * modules/time (Depends-on): Update.
6335         * modules/unistd (Depends-on): Update.
6336         * modules/wchar (Depends-on): Update.
6337         * modules/wctype-h (Depends-on): Update.
6338
6339         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
6340         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
6341         (Files, Makefile.am): Update.
6342         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
6343         * modules/argv-iter (Depends-on): Update.
6344         * modules/arpa_inet (Depends-on): Update.
6345         * modules/dirent (Depends-on): Update.
6346         * modules/fcntl-h (Depends-on): Update.
6347         * modules/fnmatch (Depends-on): Update.
6348         * modules/getopt-posix (Depends-on): Update.
6349         * modules/glob (Depends-on): Update.
6350         * modules/iconv-h (Depends-on): Update.
6351         * modules/inttypes-incomplete (Depends-on): Update.
6352         * modules/locale (Depends-on): Update.
6353         * modules/math (Depends-on): Update.
6354         * modules/netdb (Depends-on): Update.
6355         * modules/search (Depends-on): Update.
6356         * modules/signal (Depends-on): Update.
6357         * modules/spawn (Depends-on): Update.
6358         * modules/stdio (Depends-on): Update.
6359         * modules/stdlib (Depends-on): Update.
6360         * modules/string (Depends-on): Update.
6361         * modules/strings (Depends-on): Update.
6362         * modules/sys_socket (Depends-on): Update.
6363         * modules/sys_stat (Depends-on): Update.
6364         * modules/sys_time (Depends-on): Update.
6365         * modules/sys_times (Depends-on): Update.
6366         * modules/sys_utsname (Depends-on): Update.
6367         * modules/time (Depends-on): Update.
6368         * modules/unistd (Depends-on): Update.
6369         * modules/wchar (Depends-on): Update.
6370         * MODULES.html.sh (Support for building libraries and executables):
6371         Update.
6372
6373 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
6374
6375         Improvements on _Noreturn and related modules.
6376
6377         modules/_Exit-tests: test _Noreturn too
6378         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
6379         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
6380         (main): Use them.
6381
6382         stdnoreturn, stdnoreturn-tests: remove modules
6383         They're not needed here and a bit premature for use elsewhere.  See
6384         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
6385         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
6386         * tests/test-stdnoreturn.c: Remove files.
6387         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
6388         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
6389         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
6390         and using noreturn.
6391         * modules/openat, modules/sigpipe-die, modules/xalloc:
6392         * modules/xmemdup0, modules/xstrtol:
6393         Remove dependency on stdnoreturn.
6394
6395         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
6396         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
6397         Reparenthesize to avoid GCC warning.
6398         Support Microsoft's syntax.
6399         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
6400
6401         _Noreturn-tests: remove module
6402         * modules/_Noreturn-tests: Remove.
6403         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
6404         * tests/test-_Noreturn.c: Remove.
6405         * tests/test-stdnoreturn.c: Merge from the old
6406         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
6407
6408 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
6409
6410         _Noreturn, stdnoreturn, and related modules.
6411
6412         * top/maint.mk: Adjust to new noreturn support.
6413         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
6414         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
6415
6416         xalloc: use stdnoreturn.h
6417         * lib/xalloc.h: Include <stdnoreturn.h>.
6418         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6419         * modules/xalloc (Depends-on): Add stdnoreturn.
6420
6421         xstrtol: use stdnoreturn.h
6422         * lib/xstrtol.h: Include <stdnoreturn.h>.
6423         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6424         * modules/xstrtol (Depends-on): Add stdnoreturn.
6425
6426         xmemdup0: use stdnoreturn.h
6427         * lib/xmemdup0.h: Include <stdnoreturn.h>.
6428         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6429         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
6430
6431         sigpipe-die: use stdnoreturn.h
6432         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
6433         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6434         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
6435
6436         openat: use stdnoreturn.h
6437         * lib/openat.h: Include <stdnoreturn.h>.
6438         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6439         * modules/openat (Depends-on): Add stdnoreturn.
6440
6441         * lib/openat-die.c (openat_save_fail): Modernize comment.
6442
6443         * lib/xalloc-die.c (xalloc_die): Modernize comment.
6444
6445         * lib/glthread/thread.h: Modernize comment.
6446
6447         obstack: use _Noreturn
6448         * lib/obstack.c (__attribute__): Remove macro.
6449         (print_and_abort): Use _Noreturn.
6450
6451         c-stack: use _Noreturn
6452         * lib/c-stack.c (die, overflow_handler, segv_handler):
6453         Use _Noreturn rather than __attribute__((noreturn)).
6454
6455         argmatch-tests, exclude_tests: use _Noreturn
6456         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
6457         Remove.
6458         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
6459
6460         stdlib: use _Noreturn
6461         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
6462         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
6463         * modules/stdlib (Depends-on): Add _Noreturn.
6464         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
6465
6466         stdnoreturn-tests: new module
6467         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
6468
6469         stdnoreturn: new module
6470         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
6471         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
6472
6473         _Noreturn-tests: new module
6474         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
6475
6476         _Noreturn: new module
6477         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
6478         New section, mentioning it.
6479         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
6480
6481         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
6482
6483 2011-07-11  Eric Blake  <eblake@redhat.com>
6484
6485         ffs: new module
6486         * modules/ffs: New file.
6487         * m4/ffs.m4: Likewise.
6488         * lib/ffs.c: Likewise.
6489         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
6490         * modules/strings (Makefile.am): Substitute witness.
6491         (Depends-on): Add c++defs.
6492         * lib/strings.in.h (ffs): Declare.
6493         * modules/ffs-tests: New test file.
6494         * tests/test-ffs.c: Test new module.
6495         * MODULES.html.sh (Integer arithmetic functions): Mention it.
6496         * doc/posix-functions/ffs.texi (ffs): Likewise.
6497
6498         regex: avoid compiler warning
6499         * lib/regex.c (includes): Include <strings.h>, for use of
6500         strcasecmp in regcomp.c.
6501         Reported by Joachim Schmitz.
6502
6503 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
6504
6505         stdint: respect system's intmax_t if INTMAX_MAX
6506         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
6507         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
6508         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
6509         long but int64_t is long long, and where we will clash with the
6510         system intmax_t if we override it.  See
6511         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
6512         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
6513         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
6514         similarly for UINTMAX_C.
6515
6516 2011-07-08  Bruno Haible  <bruno@clisp.org>
6517
6518         pthread_sigmask tests: Avoid a compiler warning.
6519         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
6520         non-zero.
6521
6522         sigprocmask tests: A better way to avoid a compiler warning.
6523         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
6524         (main): Complain if system() returns non-zero.
6525         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
6526
6527 2011-07-08  Bruno Haible  <bruno@clisp.org>
6528
6529         pthread_sigmask: Work around IRIX bug.
6530         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
6531         bug.
6532         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
6533         there may be unblocked pending signals.
6534         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
6535
6536 2011-07-08  Bruno Haible  <bruno@clisp.org>
6537
6538         pthread_sigmask: Work around Cygwin bug.
6539         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
6540         bug.
6541         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
6542         the system's pthread_sigmask function.
6543         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
6544
6545 2011-07-08  Bruno Haible  <bruno@clisp.org>
6546
6547         pthread_sigmask: Work around bug in single-threaded implementation.
6548         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
6549         FreeBSD, HP-UX, Solaris bug.
6550         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
6551         * lib/pthread_sigmask.c: Include <stddef.h>.
6552         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
6553         the system's pthread_sigmask function.
6554         * modules/pthread_sigmask (configure.ac): Invoke
6555         gl_PREREQ_PTHREAD_SIGMASK.
6556         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
6557         HP-UX, Solaris.
6558
6559 2011-07-08  Eric Blake  <eblake@redhat.com>
6560
6561         test-sigprocmask: avoid compiler warning
6562         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
6563         * tests/test-sigprocmask.c (main): Use it to silence warning.
6564         Reported by Jim Meyering.
6565
6566         test-snprintf: avoid compiler warning
6567         * tests/test-snprintf.c (main): Avoid shadowed declaration.
6568         * tests/test-vsnprintf.c (main): Likewise.
6569         Reported by Jim Meyering.
6570
6571 2011-07-08  Bruno Haible  <bruno@clisp.org>
6572
6573         Tests for module 'pthread_sigmask'.
6574         * modules/pthread_sigmask-tests: New file.
6575         * tests/test-pthread_sigmask1.c: New file, based on
6576         tests/test-sigprocmask.c.
6577         * tests/test-pthread_sigmask2.c: New file.
6578
6579 2011-07-08  Jim Meyering  <meyering@redhat.com>
6580
6581         test-getopt.h: avoid warning about an unused variable
6582         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
6583
6584 2011-07-07  Jim Meyering  <meyering@redhat.com>
6585
6586         maint: reduce list of files exempt from sc_prohibit_leading_TABs
6587         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
6588         now that it no longer contains leading TABs.
6589         Remove unused "url=FIXME" statement.
6590
6591 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
6592
6593         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
6594         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
6595         When gl_THREADLIB is not in use, assume that the POSIX sematics
6596         are desired.  This is better for Emacs, which uses POSIX semantics
6597         on GNUish and/or POSIXish platforms, and does not use threads at
6598         all otherwise.
6599
6600         pthread_sigmask: fix typo when testing for libraries
6601         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
6602         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
6603
6604 2011-07-08  Eric Blake  <eblake@redhat.com>
6605
6606         fts: introduce FTS_NOATIME
6607         * lib/fts_.h (FTS_NOATIME): New bit flag.
6608         (FTS_OPTIONMASK): Adjust.
6609         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
6610         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
6611
6612 2011-07-08  Bruno Haible  <bruno@clisp.org>
6613
6614         Tests for module 'thread'.
6615         * modules/thread-tests: New file.
6616         * tests/test-thread_self.c: New file.
6617         * tests/test-thread_create.cc: New file.
6618
6619 2011-07-08  Bruno Haible  <bruno@clisp.org>
6620
6621         thread: Avoid gcc warnings when using gl_thread_self().
6622         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
6623         'void *'.
6624         (gl_thread_self_pointer): Update.
6625
6626 2011-07-07  Bruno Haible  <bruno@clisp.org>
6627
6628         signal-c++-tests: Check declaration of pthread_sigmask.
6629         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
6630         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
6631         $(LIB_PTHREAD_SIGMASK).
6632
6633 2011-07-07  Bruno Haible  <bruno@clisp.org>
6634
6635         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
6636         * lib/signal.in.h (pthread_sigmask): Override if
6637         REPLACE_PTHREAD_SIGMASK is 1.
6638         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
6639         REPLACE_PTHREAD_SIGMASK.
6640         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
6641         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
6642         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
6643         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
6644         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
6645
6646 2011-07-07  Bruno Haible  <bruno@clisp.org>
6647
6648         pthread_sigmask: Ensure declaration in <signal.h>.
6649         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
6650         include <pthread.h>.
6651         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
6652         problem.
6653
6654 2011-07-07  Bruno Haible  <bruno@clisp.org>
6655
6656         pthread_sigmask: Document the module.
6657         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
6658
6659 2011-07-07  Bruno Haible  <bruno@clisp.org>
6660
6661         pthread_sigmask: Follow gnulib conventions.
6662         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
6663         gl_PTHREAD_SIGMASK.
6664         * modules/pthread_sigmask (configure.ac): Update.
6665
6666 2011-07-07  Bruno Haible  <bruno@clisp.org>
6667
6668         pthread_sigmask: Make declaration C++ safe.
6669         * lib/signal.in.h: In two special conditions, just do an #include_next.
6670         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
6671         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
6672         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
6673         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
6674         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
6675         not REPLACE_PTHREAD_MASK.
6676         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
6677         not REPLACE_PTHREAD_MASK.
6678         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
6679
6680 2011-07-07  Bruno Haible  <bruno@clisp.org>
6681
6682         pthread_sigmask: Fix return value.
6683         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
6684         * lib/pthread_sigmask.c: New file.
6685         * modules/pthread_sigmask (Files): Add it.
6686         (configure.ac): Invoke AC_LIBOBJ.
6687
6688 2011-07-07  Eric Blake  <eblake@redhat.com>
6689
6690         getopt: more portable argv creation
6691         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
6692         const, use char arrays rather than strings.
6693         Suggested by Paul Eggert.
6694
6695 2011-07-07  Bruno Haible  <bruno@clisp.org>
6696
6697         Tests for module 'sigprocmask'.
6698         * modules/sigprocmask-tests: New file.
6699         * tests/test-sigprocmask.c: New file.
6700
6701 2011-07-07  Bruno Haible  <bruno@clisp.org>
6702
6703         float tests: Tweak.
6704         * tests/test-float.c (main): Tweak skip message.
6705
6706 2011-07-07  Eric Blake  <eblake@redhat.com>
6707
6708         getopt: avoid compiler warning during configure
6709         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
6710         assigning string literals to non-const pointer.
6711
6712         getopt-gnu: avoid crash in glibc getopt
6713         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
6714         * tests/test-getopt.h (test_getopt): Enhance test.
6715         * tests/test-getopt_long.h (test_getopt_long): Likewise.
6716         * doc/posix-functions/getopt.texi (getopt): Document it.
6717         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
6718         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6719         Likewise.
6720
6721 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
6722
6723         getopt: handle W; without long options in getopt [BZ #12922]
6724         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
6725         but no long options are defined, just return 'W'.
6726
6727 2011-07-07  Bruno Haible  <bruno@clisp.org>
6728
6729         Avoid literal tabs.
6730         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
6731         variable containing a tab instead of a literal tab.
6732         Reported by Jim Meyering.
6733
6734 2011-07-07  Bruno Haible  <bruno@clisp.org>
6735
6736         Comments.
6737         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
6738
6739 2011-07-06  Bruno Haible  <bruno@clisp.org>
6740
6741         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
6742         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
6743         <winsock2.h>.
6744         (rpl_fd_isset, FD_ISSET): New definitions, copied from
6745         lib/sys_socket.in.h.
6746         (close, gethostname): Hide declarations from <winsock2.h>.
6747         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
6748         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
6749         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
6750         (select): Don't override if gnulib's <sys/select.h> was already
6751         included.
6752         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
6753         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
6754         setsockopt, shutdown, select): Tweak indentation.
6755
6756 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6757
6758         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
6759         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
6760         in an application that does not use the sys_select module.
6761
6762 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
6763
6764         poll: do not return 0 on timeout=-1
6765         * lib/poll.c: Loop with yield if no events occured
6766
6767 2011-07-06  Eric Blake  <eblake@redhat.com>
6768
6769         pthread_sigmask: always replace when not using pthread
6770         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
6771         replacement when using some threading other than pthread.  Fix
6772         logic bug.
6773
6774 2011-07-06  Bruno Haible  <bruno@clisp.org>
6775
6776         Comments.
6777         * m4/printf.m4: Update comments about mingw.
6778
6779 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6780
6781         sys_select: define sigset_t more portably
6782         * lib/sys_select.in.h: Always include <sys/types.h>, since
6783         we now need sigset_t and mingw defines it there.
6784         Include <signal.h> before split inclusion guard, to avoid
6785         mishaps on Solaris, whose <signal.h> eventually includes us.
6786         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
6787         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
6788         which come from ...
6789         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
6790         gl_CHECK_TYPE_SIGSET_T.
6791         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
6792         does the real work.
6793         * modules/sys_select (Depends-on): Add 'signal'.
6794
6795         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
6796         Suggested by Bruno Haible.
6797
6798         pselect: Use pthread_sigmask, not sigprocmask.
6799         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
6800         multithreaded apps better than sigprocmask does.
6801         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
6802         sigprocmask directly.
6803
6804 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
6805
6806         * lib/pselect.c (pselect): Use plain name, without "rpl_".
6807         Don't #undef,  since we don't need any underlying pselect.
6808         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
6809         (Depends-on): Add select.
6810         (Link): Add $(LIBSOCKET).
6811         These changes suggested by Bruno Haible.
6812
6813         pselect: document better
6814         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6815         * doc/posix-functions/pselect.texi (pselect): Document new module.
6816
6817         pthread_sigmask: new module
6818         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6819         * doc/posix-functions/pthread_sigmask.texi: Document new module.
6820         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
6821         This is done only as a macro; I don't know how well that'll
6822         work for C++.  Move <sys/types.h> include before the include_next,
6823         to avoid mishap on Solaris.
6824         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
6825         * modules/signal (Makefile.am): Substitute the check's results.
6826         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
6827
6828         test-pselect: new module
6829         * modules/pselect-tests, tests/test-pselect.c: New files.
6830         * tests/test-select.c, tests/test-sys_select-c++.cc:
6831         If TEST_PSELECT is defined, test pselect instead of testing select.
6832
6833         * tests/test-sys_select.c (sigset_t): Test for it, too.
6834         Suggested by Bruno Haible.
6835
6836 2011-07-05  Eric Blake  <eblake@redhat.com>
6837
6838         snprintf: guarantee %1$d, for libintl
6839         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
6840         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
6841         * doc/posix-functions/snprintf.texi (snprintf): Update.
6842         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
6843         * tests/test-snprintf.c (main): Enhance test.
6844         * tests/test-vsnprintf.c (main): Likewise.
6845
6846 2011-07-05  Jim Meyering  <meyering@redhat.com>
6847
6848         maint: exempt stdio-read.c and stdio-write.c from the cppi check
6849         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
6850         per Bruno's request, to accommodate this idiom (no space after "#")
6851         even when the function is inside an #if block:
6852         char *
6853         gets (char *s)
6854         #undef gets
6855         {
6856           ...
6857         }
6858
6859 2011-07-04  Jim Meyering  <meyering@redhat.com>
6860
6861         maint: indent with spaces, not TABs, and add a rule to check this
6862         * tests/test-userspec.c: Indent with spaces, not TABs.
6863         * tests/test-argp.c: Likewise.
6864         * tests/test-c-stack2.sh: Likewise.
6865         * tests/test-parse-duration.sh: Likewise
6866         * m4/strtod.m4: Likewise.
6867         * m4/alloca.m4: Likewise.
6868         * m4/pselect.m4: Likewise.
6869         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
6870
6871 2011-07-03  Jim Meyering  <meyering@redhat.com>
6872
6873         maint.mk: correct omissions in prohibit_argmatch_without_use check
6874         This rule would mistakenly report that argmatch.h is included without
6875         use even when both the argmatch and invalid_arg macro were used.
6876         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
6877         of argmatch and invalid_arg.
6878
6879 2011-07-03  Bruno Haible  <bruno@clisp.org>
6880
6881         Comments about EINTR.
6882         * lib/safe-read.h: Explain the purpose of this module.
6883         * lib/safe-write.h: Likewise.
6884         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
6885         module.
6886         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
6887         module.
6888         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6889
6890 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
6891
6892         xnanosleep: Rewrite to use new dtotimespec module.
6893         It has the conversion code that used to be in xnanosleep.
6894         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
6895         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
6896         (TIME_T_MAX): Remove.
6897         (xnanosleep): Rewrite in terms of dtotimespec.
6898         * modules/xnanosleep (Depends-on): Add dtotimespec.
6899         Remove intprops, stdbool.
6900
6901         timespec-add, timespec-sub: new modules
6902         * lib/timespec.h (timespec_add, timespec_sub): New decls.
6903         * lib/timespec-add.c, lib/timespec-sub.c:
6904         * modules/timespec-add, modules/timespec-sub: New files.
6905
6906         dtotimespec: new module
6907         * lib/timespec.h (dtotimespec): New decl.
6908         * lib/dtotimespec.c, modules/dtotimespec: New files.
6909
6910         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
6911
6912         pselect: new module
6913         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
6914         (pselect): New decls.
6915         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
6916         since the standard pselect decl uses 'restrict'.
6917         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
6918         HAVE_PSELECT, REPLACE_PSELECT.
6919         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
6920         HAVE_PSELECT, REPLACE_PSELECT.
6921         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
6922
6923         sys_select: don't depend on sys_socket
6924         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
6925         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
6926         This fix works on GNU and GNU-like platforms, but has not been tested
6927         on native Windows.
6928         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
6929         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
6930         gl_HEADER_SYS_SOCKET.
6931         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
6932         gl_PREREQ_SYS_H_WINSOCK2.
6933
6934 2011-06-29  Eric Blake  <eblake@redhat.com>
6935
6936         pipe2: fix C89 compile problem
6937         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
6938         Reported by Bruno Haible.
6939
6940         pipe, pipe2: don't corrupt fd on error
6941         * lib/pipe.c (pipe): Leave fd unchanged on error.
6942         * lib/pipe2.c (pipe2): Likewise.
6943         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
6944         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
6945
6946 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
6947
6948         mmap-anon: do not use regular expressions inadvertently
6949         * m4/mmap-anon.m4: Remove trailing period from strings sought
6950         in the output.
6951
6952 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
6953
6954         nanosleep: fix integer overflow problem
6955         * lib/nanosleep.c (my_usleep): Don't assume signed integer
6956         arithmetic wraps around on overflow.
6957
6958         nanosleep: simplify carrying
6959         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
6960         first call to the underyling nanosleep, not for the last one.
6961         This doesn't fix any bugs, but it simplifies the computation of
6962         the remaining delay.  Found while auditing integer overflow issues.
6963
6964         dup2: remove test for existence of fcntl
6965         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
6966         "#if HAVE_FCNTL", in the configure-time test program.
6967         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
6968         and therefore speeds up "configure" a bit.  Found while
6969         adding the dup2 module to Emacs.
6970
6971 2011-06-24  Eric Blake  <eblake@redhat.com>
6972
6973         maint.mk: enhance useless header checks
6974         * top/maint.mk (_sc_header_without_use): Check both include
6975         styles.
6976         (sc_prohibit_assert_without_use)
6977         (sc_prohibit_close_stream_without_use)
6978         (sc_prohibit_getopt_without_use)
6979         (sc_prohibit_quotearg_without_use)
6980         (sc_prohibit_quote_without_use)
6981         (sc_prohibit_long_options_without_use)
6982         (sc_prohibit_inttostr_without_use)
6983         (sc_prohibit_ignore_value_without_use)
6984         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
6985         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
6986         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
6987         (sc_prohibit_hash_pjw_without_use)
6988         (sc_prohibit_safe_read_without_use)
6989         (sc_prohibit_argmatch_without_use)
6990         (sc_prohibit_canonicalize_without_use)
6991         (sc_prohibit_root_dev_ino_without_use)
6992         (sc_prohibit_openat_without_use)
6993         (sc_prohibit_c_ctype_without_use)
6994         (sc_prohibit_signal_without_use)
6995         (sc_prohibit_stdio--_without_use)
6996         (sc_prohibit_stdio-safer_without_use)
6997         (sc_prohibit_strings_without_use)
6998         (sc_prohibit_intprops_without_use)
6999         (sc_prohibit_stddef_without_use)
7000         (sc_prohibit_xfreopen_without_use): Update clients.
7001
7002 2011-06-24  Jim Meyering  <meyering@redhat.com>
7003
7004         syntax-check: keep one maint.mk rule in sync with its header
7005         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
7006         of the bug Eric has just fixed, with today's commit 25e4c2ec.
7007         I prefer to avoid temporary files here, so use <(...), but that
7008         is not supported by /bin/sh, so...
7009         (SHELL): Define to /bin/bash.
7010
7011 2011-06-24  Eric Blake  <eblake@redhat.com>
7012
7013         maint.mk: update sc_prohibit_intprops_without_use
7014         * top/maint.mk (_intprops_names): Match recent changes.
7015
7016 2011-06-24  Bruno Haible  <bruno@clisp.org>
7017
7018         strerror-override: No-op tweak.
7019         * lib/strerror-override.h (strerror_override): Reorder conditions,
7020         for consistency with lib/strerror-override.c.
7021
7022 2011-06-23  Eric Blake  <eblake@redhat.com>
7023
7024         maint.mk: test further PATH_MAX issues
7025         * top/maint.mk (sc_prohibit_path_max_array): Rename...
7026         (sc_prohibit_path_max_allocation): ...and also test alloca.
7027         Suggested by Jim Meyering.
7028
7029 2011-06-22  Eric Blake  <eblake@redhat.com>
7030
7031         maint.mk: add syntax-check to avoid char[PATH_MAX]
7032         * top/maint.mk (sc_prohibit_path_max_array): New rule.
7033
7034         stat: be robust to PATH_MAX definition
7035         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
7036         * modules/stat (Depends-on): Add verify.
7037
7038         link: work around IRIX bug
7039         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
7040         * lib/link.c (rpl_link): Work around it.
7041         * tests/test-link.h (test_link): Enhance test.
7042         * doc/posix-functions/link.texi (link): Document the bug.
7043
7044         getopt: silence clang warning
7045         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
7046         dereference.
7047         Reported by Gustavo Martin Domato.
7048
7049 2011-06-22  Jim Meyering  <meyering@redhat.com>
7050
7051         bootstrap: do not insert a blank line into each .gitignore file
7052         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
7053
7054 2011-06-21  Eric Blake  <eblake@redhat.com>
7055
7056         perror: test for output mismatch
7057         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
7058         perror on IRIX.
7059
7060         strerror_r: fix OpenBSD behavior on out-of-range
7061         * lib/strerror_r.c (strerror_r): Always use maximal string.
7062         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
7063
7064         strerror_r: fix OpenBSD behavior on 0
7065         * lib/strerror-override.c (strerror_override): Also override 0
7066         when needed.
7067         * lib/strerror-override.h (strerror_override): Likewise.
7068         * lib/strerror.c (strerror): Simplify, now that 0 override is done
7069         earlier.
7070         * lib/strerror_r.c (strerror_r): Likewise.
7071         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
7072         behavior...
7073         (gl_FUNC_STRERROR_0): ...into new macro.
7074         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
7075         is overridden.
7076         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
7077         * modules/strerror-override (Files): Add strerror.m4.
7078         (configure.ac): Also provide override for 0 when needed.
7079         * doc/posix-functions/strerror.texi (strerror): Document this.
7080         * doc/posix-functions/perror.texi (perror): Likewise.
7081
7082         perror: adjust array size
7083         * modules/perror (Depends-on): Add strerror-override.
7084         * lib/perror.c (perror): Use it to avoid magic number.
7085
7086         strerror-override: reduce size
7087         * lib/strerror-override.c (strerror_override): Use fewer lines.
7088
7089 2011-06-20  Bruno Haible  <bruno@clisp.org>
7090
7091         pathmax: Ensure correct value for PATH_MAX on HP-UX.
7092         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
7093
7094 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
7095
7096         alloca: port to compilers that can optimize like GCC 4.6.0
7097         * lib/alloca.c (find_stack_direction): New signature, taken from
7098         Autoconf git.  This works with GCC 4.6.0.  This code should never
7099         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
7100         be used with other compilers that optimize as well as GCC 4.6.0 does.
7101         (alloca): Adjust to new signature.
7102         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
7103         New macro, which patches Autoconf in a similar way.
7104
7105         c-stack: stop worrying about stack direction
7106         * lib/c-stack.c (find_stack_direction): Remove.
7107         (segv_handler): Don't worry about stack direction growth, as it's
7108         too much of a pain to configure this correctly, given how compilers
7109         are optimizing-away our stack-growth detection code.  Instead, assume
7110         that any access to just before or just after the stack is OK.
7111         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
7112         Don't require AC_FUNC_ALLOCA; no longer needed.
7113
7114 2011-06-20  Eric Blake  <eblake@redhat.com>
7115
7116         test-stat: don't allocate PATH_MAX bytes
7117         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
7118         PATH_MAX-sized buffer.
7119         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
7120         * modules/stat-tests (Depends-on): Likewise.
7121         * tests/test-fstatat.c (includes): Drop pathmax.h.
7122         * tests/test-stat.c (includes): Likewise.
7123         Reported by Bruno Haible.
7124
7125 2011-06-20  Bruno Haible  <bruno@clisp.org>
7126
7127         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
7128         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
7129         * lib/float.c: New file.
7130         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
7131         REPLACE_FLOAT_LDBL.
7132         * modules/float (Files): Add lib/float.c.
7133         (configure.ac): Invoke AC_LIBOBJ.
7134         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
7135
7136 2011-06-20  Bruno Haible  <bruno@clisp.org>
7137
7138         Tests for module 'float'.
7139         * modules/float-tests: New file.
7140         * tests/test-float.c: New file.
7141
7142 2011-06-19  Bruno Haible  <bruno@clisp.org>
7143
7144         isinf: Coding style.
7145         * lib/isinf.c: Use GNU coding style.
7146
7147 2011-06-19  Bruno Haible  <bruno@clisp.org>
7148
7149         linkat test: Avoid test failure on AIX 7.1.
7150         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
7151         * tests/test-link.h (test_link): Likewise.
7152
7153 2011-06-19  Bruno Haible  <bruno@clisp.org>
7154
7155         pread test: Avoid test failure on OpenBSD 4.9.
7156         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
7157
7158 2011-06-19  Bruno Haible  <bruno@clisp.org>
7159
7160         sprintf-posix: Fix test failure on AIX 7.1.
7161         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
7162         * doc/posix-functions/dprintf.texi: Mention limited precision problem
7163         on AIX.
7164         * doc/posix-functions/fprintf.texi: Likewise.
7165         * doc/posix-functions/printf.texi: Likewise.
7166         * doc/posix-functions/snprintf.texi: Likewise.
7167         * doc/posix-functions/sprintf.texi: Likewise.
7168         * doc/posix-functions/vdprintf.texi: Likewise.
7169         * doc/posix-functions/vfprintf.texi: Likewise.
7170         * doc/posix-functions/vprintf.texi: Likewise.
7171         * doc/posix-functions/vsnprintf.texi: Likewise.
7172         * doc/posix-functions/vsprintf.texi: Likewise.
7173
7174 2011-06-19  Bruno Haible  <bruno@clisp.org>
7175
7176         roundl-ieee: Fix test failure on AIX 7.1.
7177         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
7178         * doc/posix-functions/roundl.texi: Mention problem with negative
7179         arguments.
7180
7181 2011-06-19  Bruno Haible  <bruno@clisp.org>
7182
7183         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
7184         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
7185         * doc/posix-functions/round.texi: Mention problem with negative
7186         arguments.
7187         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
7188
7189 2011-06-19  Bruno Haible  <bruno@clisp.org>
7190
7191         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
7192         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
7193         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
7194         * doc/posix-functions/roundf.texi: Mention problem with negative
7195         arguments.
7196         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
7197
7198 2011-06-19  Bruno Haible  <bruno@clisp.org>
7199
7200         ceilf-ieee: Work around bug on MacOS X 10.5.
7201         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
7202
7203         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
7204         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
7205         IEEE compliant, avoid compiler optimizations.
7206         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
7207         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
7208         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
7209         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
7210         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
7211         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
7212         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
7213         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
7214         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
7215         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
7216
7217 2011-06-19  Bruno Haible  <bruno@clisp.org>
7218
7219         ceilf-ieee: Work around bug on AIX 7.1.
7220         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
7221         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
7222
7223 2011-06-19  Bruno Haible  <bruno@clisp.org>
7224
7225         ceil-ieee: Work around bug on AIX 7.1.
7226         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
7227         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
7228
7229 2011-06-18  Bruno Haible  <bruno@clisp.org>
7230
7231         fsync test: Avoid test failure on MacOS X and AIX.
7232         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
7233         EINVAL.
7234
7235 2011-06-18  Bruno Haible  <bruno@clisp.org>
7236
7237         openat, fdopendir tests: Fix link errors.
7238         * modules/openat-tests (Depends-on): Add progname.
7239         * modules/fdopendir-tests (Depends-on): Likewise.
7240         * tests/test-fchownat.c: Include progname.h.
7241         (main): Call set_program_name.
7242         * tests/test-fstatat.c: Include progname.h.
7243         (main): Call set_program_name.
7244         * tests/test-mkdirat.c: Include progname.h.
7245         (main): Call set_program_name.
7246         * tests/test-openat.c: Include progname.h.
7247         (main): Call set_program_name.
7248         * tests/test-unlinkat.c: Include progname.h.
7249         (main): Call set_program_name.
7250         * tests/test-fdopendir.c: Include progname.h.
7251         (main): Call set_program_name.
7252
7253 2011-06-18  Bruno Haible  <bruno@clisp.org>
7254
7255         Doc update.
7256         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
7257         HP-UX.
7258         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
7259
7260 2011-06-18  Bruno Haible  <bruno@clisp.org>
7261
7262         getcwd tests: Avoid compilation error on HP-UX 11.31.
7263         * modules/getcwd-tests (Depends-on): Add pathmax.
7264         * tests/test-getcwd.c: Include pathmax.h.
7265
7266 2011-06-18  Bruno Haible  <bruno@clisp.org>
7267
7268         isfinite, isinf: Fix link error on AIX 6 and 7.
7269         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
7270         needed, also test the macro with a 'float' argument.
7271         * m4/isinf.m4 (gl_ISINF): Likewise.
7272
7273 2011-06-18  Bruno Haible  <bruno@clisp.org>
7274
7275         getloadavg: Don't clobber LIBS. Regression from previous commit.
7276         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
7277         AC_CHECK_LIB from here...
7278         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
7279         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
7280         gl_func_getloadavg_done.
7281         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7282
7283 2011-06-18  Bruno Haible  <bruno@clisp.org>
7284
7285         clean-temp: Improve documentation.
7286         * lib/clean-temp.h: Explain better how to use this module.
7287         Reported by John Darrington <john@darrington.wattle.id.au>.
7288
7289 2011-06-17  Bruno Haible  <bruno@clisp.org>
7290
7291         pread, pwrite: Avoid cc warning on AIX.
7292         * lib/unistd.in.h (pread): Undefine before defining as a macro.
7293         (pwrite): Likewise.
7294
7295 2011-06-17  Bruno Haible  <bruno@clisp.org>
7296
7297         spawn-pipe tests: Fix link error.
7298         * tests/test-spawn-pipe-child.c: Undefine fprintf.
7299         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7300
7301 2011-06-17  Bruno Haible  <bruno@clisp.org>
7302
7303         Tests: Remove unnecessary dependency.
7304         * modules/canonicalize-tests (Depends-on): Remove progname.
7305         * modules/chown-tests (Depends-on): Likewise.
7306         * modules/dirname-tests (Depends-on): Likewise.
7307         * modules/fdopendir-tests (Depends-on): Likewise.
7308         * modules/fdutimensat-tests (Depends-on): Likewise.
7309         * modules/hash-tests (Depends-on): Likewise.
7310         * modules/lchown-tests (Depends-on): Likewise.
7311         * modules/linkat-tests (Depends-on): Likewise.
7312         * modules/renameat-tests (Depends-on): Likewise.
7313         * modules/spawn-pipe-tests (Depends-on): Likewise.
7314         * modules/utimensat-tests (Depends-on): Likewise.
7315
7316 2011-06-17  Bruno Haible  <bruno@clisp.org>
7317
7318         spawn-pipe tests: Fix link error.
7319         * tests/test-spawn-pipe-child.c: Undefine fflush.
7320
7321 2011-06-17  Bruno Haible  <bruno@clisp.org>
7322
7323         Fix tests link errors.
7324         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
7325         * modules/chown-tests (Makefile.am): Don't link test-chown with
7326         LIBINTL.
7327         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
7328         LIBINTL.
7329         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
7330         LIBINTL.
7331         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
7332         LIBINTL.
7333
7334 2011-06-16  Bruno Haible  <bruno@clisp.org>
7335
7336         crypto/gc-sha1: Fix recent regression.
7337         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
7338         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
7339
7340         crypto/gc-md5: Fix recent regression.
7341         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
7342
7343         crypto/gc-md4: Fix recent regression.
7344         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
7345         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
7346
7347         crypto/gc-arctwo: Fix recent regression.
7348         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
7349         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
7350
7351         crypto/gc-rijndael: Fix recent regression.
7352         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
7353         (configure.ac): Invoke AC_LIBOBJ here.
7354         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
7355         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7356
7357         crypto/gc-hmac-sha1: Fix recent regression.
7358         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
7359         (configure.ac): Invoke AC_LIBOBJ here.
7360         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
7361         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7362
7363         crypto/gc-hmac-md5: Fix recent regression.
7364         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
7365         (configure.ac): Invoke AC_LIBOBJ here.
7366         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
7367         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7368
7369         crypto/gc-des: Fix recent regression.
7370         * modules/crypto/gc-des (Files): Remove m4/des.m4.
7371         (configure.ac): Invoke AC_LIBOBJ here.
7372         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
7373         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7374
7375         crypto/gc-arcfour: Fix recent regression.
7376         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
7377         (configure.ac): Invoke AC_LIBOBJ here.
7378         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
7379         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7380
7381 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
7382
7383         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
7384         After the 2011-05-21 change, this macro requires
7385         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
7386         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
7387
7388 2011-06-16  Bruno Haible  <bruno@clisp.org>
7389
7390         fprintftime: Move AC_LIBOBJ invocations to module description.
7391         * m4/fprintftime.m4: Remove file.
7392         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
7393         (configure.ac): Remove gl_FPRINTFTIME call.
7394         (Makefile.am): Augment lib_SOURCES.
7395         Reported by Jim Meyering.
7396
7397 2011-06-16  Bruno Haible  <bruno@clisp.org>
7398
7399         tmpfile-safer: Finish 2011-05-23 commit.
7400         * m4/stdio-safer.m4: Really remove file.
7401         Reported by Jim Meyering.
7402
7403 2011-06-16  Bruno Haible  <bruno@clisp.org>
7404
7405         syntax-check: Fix typo.
7406         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
7407         printf-posix.m4.
7408         Reported by Jim Meyering.
7409
7410 2011-06-13  Jim Meyering  <meyering@redhat.com>
7411
7412         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
7413         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
7414
7415 2011-05-23  Bruno Haible  <bruno@clisp.org>
7416
7417         yesno: Move AC_LIBOBJ invocations to module description.
7418         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
7419         * modules/yesno (Makefile.am): Augment lib_SOURCES.
7420
7421 2011-05-23  Bruno Haible  <bruno@clisp.org>
7422
7423         xstrtol: Move AC_LIBOBJ invocations to module description.
7424         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
7425         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
7426
7427 2011-05-23  Bruno Haible  <bruno@clisp.org>
7428
7429         xstrtold: Move AC_LIBOBJ invocations to module description.
7430         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
7431         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
7432
7433 2011-05-23  Bruno Haible  <bruno@clisp.org>
7434
7435         xstrtod: Move AC_LIBOBJ invocations to module description.
7436         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
7437         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
7438
7439 2011-05-23  Bruno Haible  <bruno@clisp.org>
7440
7441         xnanosleep: Move AC_LIBOBJ invocations to module description.
7442         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
7443         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
7444
7445 2011-05-23  Bruno Haible  <bruno@clisp.org>
7446
7447         xgetcwd: Move AC_LIBOBJ invocations to module description.
7448         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
7449         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
7450
7451 2011-05-23  Bruno Haible  <bruno@clisp.org>
7452
7453         xalloc: Move AC_LIBOBJ invocations to module description.
7454         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
7455         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
7456
7457 2011-05-23  Bruno Haible  <bruno@clisp.org>
7458
7459         write-any-file: Move AC_LIBOBJ invocations to module description.
7460         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
7461         invocation.
7462         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
7463
7464 2011-05-23  Bruno Haible  <bruno@clisp.org>
7465
7466         utimens: Move AC_LIBOBJ invocations to module description.
7467         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
7468         * modules/utimens (Makefile.am): Augment lib_SOURCES.
7469
7470 2011-05-23  Bruno Haible  <bruno@clisp.org>
7471
7472         utimecmp: Move AC_LIBOBJ invocations to module description.
7473         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
7474         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
7475
7476 2011-05-23  Bruno Haible  <bruno@clisp.org>
7477
7478         userspec: Move AC_LIBOBJ invocations to module description.
7479         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
7480         * modules/userspec (Makefile.am): Augment lib_SOURCES.
7481
7482 2011-05-23  Bruno Haible  <bruno@clisp.org>
7483
7484         unlinkdir: Move AC_LIBOBJ invocations to module description.
7485         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
7486         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
7487
7488 2011-05-23  Bruno Haible  <bruno@clisp.org>
7489
7490         unistd-safer: Move AC_LIBOBJ invocations to module description.
7491         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
7492         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
7493
7494 2011-05-23  Bruno Haible  <bruno@clisp.org>
7495
7496         tempname: Move AC_LIBOBJ invocations to module description.
7497         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
7498         * modules/tempname (Makefile.am): Augment lib_SOURCES.
7499
7500 2011-05-23  Bruno Haible  <bruno@clisp.org>
7501
7502         strftime: Move AC_LIBOBJ invocations to module description.
7503         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
7504         * modules/strftime (Makefile.am): Augment lib_SOURCES.
7505
7506 2011-05-23  Bruno Haible  <bruno@clisp.org>
7507
7508         stdlib-safer: Move AC_LIBOBJ invocations to module description.
7509         * m4/stdlib-safer.m4: Remove file.
7510         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
7511         (configure.ac): Remove gl_STDLIB_SAFER call.
7512         (Makefile.am): Augment lib_SOURCES.
7513
7514 2011-05-23  Bruno Haible  <bruno@clisp.org>
7515
7516         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
7517         * m4/stdio-safer.m4: Remove file.
7518         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
7519         (configure.ac): Remove gl_TMPFILE_SAFER call.
7520         (Makefile.am): Augment lib_SOURCES.
7521
7522 2011-05-23  Bruno Haible  <bruno@clisp.org>
7523
7524         popen-safer: Move AC_LIBOBJ invocations to module description.
7525         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
7526         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
7527         (configure.ac): Remove gl_POPEN_SAFER call.
7528         (Makefile.am): Augment lib_SOURCES.
7529
7530 2011-05-23  Bruno Haible  <bruno@clisp.org>
7531
7532         freopen-safer: Move AC_LIBOBJ invocations to module description.
7533         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
7534         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
7535         (configure.ac): Remove gl_FREOPEN_SAFER call.
7536         (Makefile.am): Augment lib_SOURCES.
7537
7538 2011-05-23  Bruno Haible  <bruno@clisp.org>
7539
7540         fopen-safer: Move AC_LIBOBJ invocations to module description.
7541         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
7542         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
7543         (configure.ac): Remove gl_FOPEN_SAFER call.
7544         (Makefile.am): Augment lib_SOURCES.
7545
7546 2011-05-23  Bruno Haible  <bruno@clisp.org>
7547
7548         crypto/sha512: Move AC_LIBOBJ invocations to module description.
7549         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
7550         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
7551
7552 2011-05-23  Bruno Haible  <bruno@clisp.org>
7553
7554         crypto/sha256: Move AC_LIBOBJ invocations to module description.
7555         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
7556         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
7557
7558 2011-05-23  Bruno Haible  <bruno@clisp.org>
7559
7560         crypto/sha1: Move AC_LIBOBJ invocations to module description.
7561         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
7562         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
7563
7564 2011-05-23  Bruno Haible  <bruno@clisp.org>
7565
7566         settime: Move AC_LIBOBJ invocations to module description.
7567         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
7568         * modules/settime (Makefile.am): Augment lib_SOURCES.
7569
7570 2011-05-23  Bruno Haible  <bruno@clisp.org>
7571
7572         savedir: Move AC_LIBOBJ invocations to module description.
7573         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
7574         * modules/savedir (Makefile.am): Augment lib_SOURCES.
7575
7576 2011-05-23  Bruno Haible  <bruno@clisp.org>
7577
7578         save-cwd: Move AC_LIBOBJ invocations to module description.
7579         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
7580         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
7581
7582 2011-05-23  Bruno Haible  <bruno@clisp.org>
7583
7584         same: Move AC_LIBOBJ invocations to module description.
7585         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
7586         * modules/same (Makefile.am): Augment lib_SOURCES.
7587
7588 2011-05-23  Bruno Haible  <bruno@clisp.org>
7589
7590         safe-write: Move AC_LIBOBJ invocations to module description.
7591         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
7592         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
7593         instead of gl_SAFE_WRITE.
7594         (Makefile.am): Augment lib_SOURCES.
7595
7596 2011-05-23  Bruno Haible  <bruno@clisp.org>
7597
7598         safe-read: Move AC_LIBOBJ invocations to module description.
7599         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
7600         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
7601         of gl_SAFE_READ.
7602         (Makefile.am): Augment lib_SOURCES.
7603
7604 2011-05-23  Bruno Haible  <bruno@clisp.org>
7605
7606         safe-alloc: Move AC_LIBOBJ invocations to module description.
7607         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
7608         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
7609
7610 2011-05-23  Bruno Haible  <bruno@clisp.org>
7611
7612         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
7613         * m4/rijndael.m4: Remove file.
7614         * modules/crypto/rijndael (Files): Remove it.
7615         (configure.ac): Remove gl_RIJNDAEL call.
7616         (Makefile.am): Augment lib_SOURCES.
7617
7618 2011-05-23  Bruno Haible  <bruno@clisp.org>
7619
7620         readtokens: Move AC_LIBOBJ invocations to module description.
7621         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
7622         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
7623
7624 2011-05-23  Bruno Haible  <bruno@clisp.org>
7625
7626         read-file: Move AC_LIBOBJ invocations to module description.
7627         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
7628         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
7629         of gl_FUNC_READ_FILE.
7630         (Makefile.am): Augment lib_SOURCES.
7631
7632 2011-05-23  Bruno Haible  <bruno@clisp.org>
7633
7634         quotearg: Move AC_LIBOBJ invocations to module description.
7635         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
7636         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
7637
7638 2011-05-23  Bruno Haible  <bruno@clisp.org>
7639
7640         quote: Move AC_LIBOBJ invocations to module description.
7641         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
7642         * modules/quote (Makefile.am): Augment lib_SOURCES.
7643
7644 2011-05-23  Bruno Haible  <bruno@clisp.org>
7645
7646         posixver: Move AC_LIBOBJ invocations to module description.
7647         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
7648         * modules/posixver (Makefile.am): Augment lib_SOURCES.
7649
7650 2011-05-23  Bruno Haible  <bruno@clisp.org>
7651
7652         posixtm: Move AC_LIBOBJ invocations to module description.
7653         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
7654         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
7655
7656 2011-05-23  Bruno Haible  <bruno@clisp.org>
7657
7658         physmem: Move AC_LIBOBJ invocations to module description.
7659         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
7660         * modules/physmem (Makefile.am): Augment lib_SOURCES.
7661
7662 2011-05-23  Bruno Haible  <bruno@clisp.org>
7663
7664         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
7665         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
7666         invocation.
7667         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
7668
7669 2011-05-23  Bruno Haible  <bruno@clisp.org>
7670
7671         mpsort: Move AC_LIBOBJ invocations to module description.
7672         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
7673         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
7674
7675 2011-05-23  Bruno Haible  <bruno@clisp.org>
7676
7677         modechange: Move AC_LIBOBJ invocations to module description.
7678         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
7679         * modules/modechange (Makefile.am): Augment lib_SOURCES.
7680
7681 2011-05-23  Bruno Haible  <bruno@clisp.org>
7682
7683         mkdir-p: Move AC_LIBOBJ invocations to module description.
7684         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
7685         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
7686
7687 2011-05-23  Bruno Haible  <bruno@clisp.org>
7688
7689         mkancesdirs: Move AC_LIBOBJ invocations to module description.
7690         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
7691         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
7692
7693 2011-05-23  Bruno Haible  <bruno@clisp.org>
7694
7695         mgetgroups: Move AC_LIBOBJ invocations to module description.
7696         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
7697         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
7698
7699 2011-05-23  Bruno Haible  <bruno@clisp.org>
7700
7701         memxor: Move AC_LIBOBJ invocations to module description.
7702         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
7703         * modules/memxor (Makefile.am): Augment lib_SOURCES.
7704
7705 2011-05-23  Bruno Haible  <bruno@clisp.org>
7706
7707         memcoll: Move AC_LIBOBJ invocations to module description.
7708         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
7709         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
7710
7711 2011-05-23  Bruno Haible  <bruno@clisp.org>
7712
7713         memcasecmp: Move AC_LIBOBJ invocations to module description.
7714         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
7715         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
7716
7717 2011-05-23  Bruno Haible  <bruno@clisp.org>
7718
7719         crypto/md5: Move AC_LIBOBJ invocations to module description.
7720         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
7721         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
7722
7723 2011-05-23  Bruno Haible  <bruno@clisp.org>
7724
7725         crypto/md4: Move AC_LIBOBJ invocations to module description.
7726         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
7727         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
7728
7729 2011-05-23  Bruno Haible  <bruno@clisp.org>
7730
7731         crypto/md2: Move AC_LIBOBJ invocations to module description.
7732         * m4/md2.m4: Remove file.
7733         * modules/crypto/md2 (Files): Remove it.
7734         (configure.ac): Remove gl_MD2 call.
7735         (Makefile.am): Augment lib_SOURCES.
7736
7737 2011-05-23  Bruno Haible  <bruno@clisp.org>
7738
7739         long-options: Move AC_LIBOBJ invocations to module description.
7740         * m4/long-options.m4: Remove file.
7741         * modules/long-options (Files): Remove it.
7742         (configure.ac): Remove gl_LONG_OPTIONS call.
7743         (Makefile.am): Augment lib_SOURCES.
7744
7745 2011-05-23  Bruno Haible  <bruno@clisp.org>
7746
7747         i-ring: Move AC_LIBOBJ invocations to module description.
7748         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
7749         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
7750
7751 2011-05-23  Bruno Haible  <bruno@clisp.org>
7752
7753         idcache: Move AC_LIBOBJ invocations to module description.
7754         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
7755         * modules/idcache (Makefile.am): Augment lib_SOURCES.
7756
7757 2011-05-23  Bruno Haible  <bruno@clisp.org>
7758
7759         human: Move AC_LIBOBJ invocations to module description.
7760         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
7761         * modules/human (Makefile.am): Augment lib_SOURCES.
7762
7763 2011-05-23  Bruno Haible  <bruno@clisp.org>
7764
7765         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
7766         * m4/hmac-sha1.m4: Remove file.
7767         * modules/crypto/hmac-sha1 (Files): Remove it.
7768         (configure.ac): Remove gl_HMAC_SHA1 call.
7769         (Makefile.am): Augment lib_SOURCES.
7770
7771 2011-05-23  Bruno Haible  <bruno@clisp.org>
7772
7773         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
7774         * m4/hmac-md5.m4: Remove file.
7775         * modules/crypto/hmac-md5 (Files): Remove it.
7776         (configure.ac): Remove gl_HMAC_MD5 call.
7777         (Makefile.am): Augment lib_SOURCES.
7778
7779 2011-05-23  Bruno Haible  <bruno@clisp.org>
7780
7781         hash: Move AC_LIBOBJ invocations to module description.
7782         * m4/hash.m4: Remove file.
7783         * modules/hash (Files): Remove it.
7784         (configure.ac): Remove gl_HASH call.
7785         (Makefile.am): Augment lib_SOURCES.
7786
7787 2011-05-23  Bruno Haible  <bruno@clisp.org>
7788
7789         hard-locale: Move AC_LIBOBJ invocations to module description.
7790         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
7791         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
7792
7793 2011-05-23  Bruno Haible  <bruno@clisp.org>
7794
7795         getugroups: Move AC_LIBOBJ invocations to module description.
7796         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
7797         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
7798
7799 2011-05-23  Bruno Haible  <bruno@clisp.org>
7800
7801         gettime: Move AC_LIBOBJ invocations to module description.
7802         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
7803         * modules/gettime (Makefile.am): Augment lib_SOURCES.
7804
7805 2011-05-23  Bruno Haible  <bruno@clisp.org>
7806
7807         getndelim2: Move AC_LIBOBJ invocations to module description.
7808         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
7809         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
7810
7811 2011-05-23  Bruno Haible  <bruno@clisp.org>
7812
7813         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
7814         * m4/gc-pbkdf2-sha1.m4: Remove file.
7815         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
7816         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
7817         (Makefile.am): Augment lib_SOURCES.
7818
7819 2011-05-23  Bruno Haible  <bruno@clisp.org>
7820
7821         fts: Move AC_LIBOBJ invocations to module description.
7822         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
7823         * modules/fts (configure.ac): ... to here.
7824
7825 2011-05-23  Bruno Haible  <bruno@clisp.org>
7826
7827         file-type: Move AC_LIBOBJ invocations to module description.
7828         * m4/file-type.m4: Remove file.
7829         * modules/file-type (Files): Remove it.
7830         (configure.ac): Remove gl_FILE_TYPE call.
7831         (Makefile.am): Augment lib_SOURCES.
7832
7833 2011-05-23  Bruno Haible  <bruno@clisp.org>
7834
7835         filenamecat*: Respect rules for use of AC_LIBOBJ.
7836         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
7837         Remove AC_LIBOBJ invocation.
7838         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
7839         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
7840
7841 2011-05-23  Bruno Haible  <bruno@clisp.org>
7842
7843         filemode: Move AC_LIBOBJ invocations to module description.
7844         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
7845         * modules/filemode (Makefile.am): Augment lib_SOURCES.
7846
7847 2011-05-23  Bruno Haible  <bruno@clisp.org>
7848
7849         openat-safer: Move AC_LIBOBJ invocations to module description.
7850         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
7851         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
7852
7853 2011-05-23  Bruno Haible  <bruno@clisp.org>
7854
7855         fcntl-safer: Move AC_LIBOBJ invocations to module description.
7856         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
7857         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
7858
7859 2011-05-23  Bruno Haible  <bruno@clisp.org>
7860
7861         exclude: Move AC_LIBOBJ invocations to module description.
7862         * m4/exclude.m4: Remove file.
7863         * modules/exclude (Files): Remove it.
7864         (configure.ac): Remove gl_EXCLUDE call.
7865         (Makefile.am): Augment lib_SOURCES.
7866
7867 2011-05-23  Bruno Haible  <bruno@clisp.org>
7868
7869         dirname*: Respect rules for use of AC_LIBOBJ.
7870         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
7871         invocations.
7872         * modules/dirname (Makefile.am): Augment lib_SOURCES.
7873         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
7874
7875 2011-05-23  Bruno Haible  <bruno@clisp.org>
7876
7877         dirent-safer: Move AC_LIBOBJ invocations to module description.
7878         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
7879         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
7880
7881 2011-05-23  Bruno Haible  <bruno@clisp.org>
7882
7883         crypto/des: Move AC_LIBOBJ invocations to module description.
7884         * m4/des.m4: Remove file.
7885         * modules/crypto/des (Files): Remove it.
7886         (configure.ac): Remove gl_DES call.
7887         (Makefile.am): Augment lib_SOURCES.
7888
7889 2011-05-23  Bruno Haible  <bruno@clisp.org>
7890
7891         cycle-check: Move AC_LIBOBJ invocations to module description.
7892         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
7893         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
7894
7895 2011-05-23  Bruno Haible  <bruno@clisp.org>
7896
7897         c-strtold: Move AC_LIBOBJ invocations to module description.
7898         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
7899         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
7900
7901 2011-05-23  Bruno Haible  <bruno@clisp.org>
7902
7903         c-strtod: Move AC_LIBOBJ invocations to module description.
7904         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
7905         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
7906
7907 2011-05-23  Bruno Haible  <bruno@clisp.org>
7908
7909         crc: Move AC_LIBOBJ invocations to module description.
7910         * m4/crc.m4: Remove file.
7911         * modules/crc (Files): Remove it.
7912         (configure.ac): Remove gl_CRC call.
7913         (Makefile.am): Augment lib_SOURCES.
7914
7915 2011-05-23  Bruno Haible  <bruno@clisp.org>
7916
7917         close-stream: Move AC_LIBOBJ invocations to module description.
7918         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
7919         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
7920
7921 2011-05-23  Bruno Haible  <bruno@clisp.org>
7922
7923         closeout: Move AC_LIBOBJ invocations to module description.
7924         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
7925         * modules/closeout (Makefile.am): Augment lib_SOURCES.
7926
7927 2011-05-23  Bruno Haible  <bruno@clisp.org>
7928
7929         closein: Move AC_LIBOBJ invocations to module description.
7930         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
7931         * modules/closein (Makefile.am): Augment lib_SOURCES.
7932
7933 2011-05-23  Bruno Haible  <bruno@clisp.org>
7934
7935         cloexec: Move AC_LIBOBJ invocations to module description.
7936         * m4/cloexec.m4: Remove file.
7937         * modules/cloexec (Files): Remove it.
7938         (configure.ac): Remove gl_CLOEXEC call.
7939         (Makefile.am): Augment lib_SOURCES.
7940
7941 2011-05-23  Bruno Haible  <bruno@clisp.org>
7942
7943         check-version: Move AC_LIBOBJ invocations to module description.
7944         * m4/check-version.m4: Remove file.
7945         * modules/check-version (Files): Remove it.
7946         (configure.ac): Remove gl_CHECK_VERSION call.
7947         (Makefile.am): Augment lib_SOURCES.
7948
7949 2011-05-23  Bruno Haible  <bruno@clisp.org>
7950
7951         chdir-safer: Move AC_LIBOBJ invocations to module description.
7952         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
7953         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
7954
7955 2011-05-23  Bruno Haible  <bruno@clisp.org>
7956
7957         canonicalize: Move AC_LIBOBJ invocations to module description.
7958         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
7959         AC_LIBOBJ invocation.
7960         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
7961
7962 2011-05-23  Bruno Haible  <bruno@clisp.org>
7963
7964         canon-host: Move AC_LIBOBJ invocations to module description.
7965         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
7966         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
7967         instead of gl_CANON_HOST.
7968         (Makefile.am): Augment lib_SOURCES.
7969
7970 2011-05-23  Bruno Haible  <bruno@clisp.org>
7971
7972         backupfile: Move AC_LIBOBJ invocations to module description.
7973         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
7974         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
7975
7976 2011-05-23  Bruno Haible  <bruno@clisp.org>
7977
7978         argmatch: Move AC_LIBOBJ invocations to module description.
7979         * m4/argmatch.m4: Remove file.
7980         * modules/argmatch (Files): Remove it.
7981         (configure.ac): Remove gl_ARGMATCH call.
7982         (Makefile.am): Augment lib_SOURCES.
7983
7984 2011-05-23  Bruno Haible  <bruno@clisp.org>
7985
7986         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
7987         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
7988         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
7989
7990 2011-05-23  Bruno Haible  <bruno@clisp.org>
7991
7992         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
7993         * m4/arcfour.m4: Remove file.
7994         * modules/crypto/arcfour (Files): Remove it.
7995         (configure.ac): Remove gl_ARCFOUR call.
7996         (Makefile.am): Augment lib_SOURCES.
7997
7998 2011-05-22  Bruno Haible  <bruno@clisp.org>
7999
8000         write: Move AC_LIBOBJ invocations to module description.
8001         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
8002         * modules/write (configure.ac): ... to here.
8003
8004 2011-05-22  Bruno Haible  <bruno@clisp.org>
8005
8006         wmemset: Move AC_LIBOBJ invocations to module description.
8007         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
8008         here...
8009         * modules/wmemset (configure.ac): ... to here.
8010
8011 2011-05-22  Bruno Haible  <bruno@clisp.org>
8012
8013         wmemmove: Move AC_LIBOBJ invocations to module description.
8014         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
8015         here...
8016         * modules/wmemmove (configure.ac): ... to here.
8017
8018 2011-05-22  Bruno Haible  <bruno@clisp.org>
8019
8020         wmemcpy: Move AC_LIBOBJ invocations to module description.
8021         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
8022         here...
8023         * modules/wmemcpy (configure.ac): ... to here.
8024
8025 2011-05-22  Bruno Haible  <bruno@clisp.org>
8026
8027         wmemcmp: Move AC_LIBOBJ invocations to module description.
8028         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
8029         here...
8030         * modules/wmemcmp (configure.ac): ... to here.
8031
8032 2011-05-22  Bruno Haible  <bruno@clisp.org>
8033
8034         wmemchr: Move AC_LIBOBJ invocations to module description.
8035         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
8036         here...
8037         * modules/wmemchr (configure.ac): ... to here.
8038
8039 2011-05-22  Bruno Haible  <bruno@clisp.org>
8040
8041         wcswidth: Move AC_LIBOBJ invocations to module description.
8042         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
8043         here...
8044         * modules/wcswidth (configure.ac): ... to here.
8045
8046 2011-05-22  Bruno Haible  <bruno@clisp.org>
8047
8048         wcwidth: Respect rules for use of AC_LIBOBJ.
8049         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
8050         invocation from here...
8051         * modules/wcwidth (configure.ac): ... to here.
8052         (Depends-on): Update conditions.
8053
8054 2011-05-22  Bruno Haible  <bruno@clisp.org>
8055
8056         wctype: Move AC_LIBOBJ invocations to module description.
8057         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
8058         invocation from here...
8059         * modules/wctype (configure.ac): ... to here.
8060         (Depends-on): Update conditions.
8061
8062 2011-05-22  Bruno Haible  <bruno@clisp.org>
8063
8064         wctrans: Move AC_LIBOBJ invocations to module description.
8065         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
8066         invocation from here...
8067         * modules/wctrans (configure.ac): ... to here.
8068
8069 2011-05-22  Bruno Haible  <bruno@clisp.org>
8070
8071         wctomb: Move AC_LIBOBJ invocations to module description.
8072         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
8073         invocations from here...
8074         * modules/wctomb (configure.ac): ... to here.
8075
8076 2011-05-22  Bruno Haible  <bruno@clisp.org>
8077
8078         wctob: Move AC_LIBOBJ invocations to module description.
8079         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
8080         gl_PREREQ_WCTOB invocations from here...
8081         * modules/wctob (configure.ac): ... to here.
8082         (Depends-on): Update conditions.
8083
8084 2011-05-22  Bruno Haible  <bruno@clisp.org>
8085
8086         wcsxfrm: Move AC_LIBOBJ invocations to module description.
8087         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
8088         here...
8089         * modules/wcsxfrm (configure.ac): ... to here.
8090
8091 2011-05-22  Bruno Haible  <bruno@clisp.org>
8092
8093         wcstok: Move AC_LIBOBJ invocations to module description.
8094         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
8095         * modules/wcstok (configure.ac): ... to here.
8096
8097 2011-05-22  Bruno Haible  <bruno@clisp.org>
8098
8099         wcsstr: Move AC_LIBOBJ invocations to module description.
8100         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
8101         * modules/wcsstr (configure.ac): ... to here.
8102
8103 2011-05-22  Bruno Haible  <bruno@clisp.org>
8104
8105         wcsspn: Move AC_LIBOBJ invocations to module description.
8106         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
8107         * modules/wcsspn (configure.ac): ... to here.
8108
8109 2011-05-22  Bruno Haible  <bruno@clisp.org>
8110
8111         wcsrtombs: Move AC_LIBOBJ invocations to module description.
8112         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
8113         gl_PREREQ_WCSRTOMBS invocations from here...
8114         * modules/wcsrtombs (configure.ac): ... to here.
8115
8116 2011-05-22  Bruno Haible  <bruno@clisp.org>
8117
8118         wcsrchr: Move AC_LIBOBJ invocations to module description.
8119         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
8120         here...
8121         * modules/wcsrchr (configure.ac): ... to here.
8122
8123 2011-05-22  Bruno Haible  <bruno@clisp.org>
8124
8125         wcspbrk: Move AC_LIBOBJ invocations to module description.
8126         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
8127         here...
8128         * modules/wcspbrk (configure.ac): ... to here.
8129
8130 2011-05-22  Bruno Haible  <bruno@clisp.org>
8131
8132         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
8133         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
8134         gl_PREREQ_WCSNRTOMBS invocations from here...
8135         * modules/wcsnrtombs (configure.ac): ... to here.
8136
8137 2011-05-22  Bruno Haible  <bruno@clisp.org>
8138
8139         wcsnlen: Move AC_LIBOBJ invocations to module description.
8140         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
8141         here...
8142         * modules/wcsnlen (configure.ac): ... to here.
8143
8144 2011-05-22  Bruno Haible  <bruno@clisp.org>
8145
8146         wcsncpy: Move AC_LIBOBJ invocations to module description.
8147         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
8148         here...
8149         * modules/wcsncpy (configure.ac): ... to here.
8150
8151 2011-05-22  Bruno Haible  <bruno@clisp.org>
8152
8153         wcsncmp: Move AC_LIBOBJ invocations to module description.
8154         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
8155         here...
8156         * modules/wcsncmp (configure.ac): ... to here.
8157
8158 2011-05-22  Bruno Haible  <bruno@clisp.org>
8159
8160         wcsncat: Move AC_LIBOBJ invocations to module description.
8161         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
8162         here...
8163         * modules/wcsncat (configure.ac): ... to here.
8164
8165 2011-05-22  Bruno Haible  <bruno@clisp.org>
8166
8167         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
8168         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
8169         from here...
8170         * modules/wcsncasecmp (configure.ac): ... to here.
8171
8172 2011-05-22  Bruno Haible  <bruno@clisp.org>
8173
8174         wcslen: Move AC_LIBOBJ invocations to module description.
8175         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
8176         * modules/wcslen (configure.ac): ... to here.
8177
8178 2011-05-22  Bruno Haible  <bruno@clisp.org>
8179
8180         wcsdup: Move AC_LIBOBJ invocations to module description.
8181         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
8182         * modules/wcsdup (configure.ac): ... to here.
8183
8184 2011-05-22  Bruno Haible  <bruno@clisp.org>
8185
8186         wcscspn: Move AC_LIBOBJ invocations to module description.
8187         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
8188         here...
8189         * modules/wcscspn (configure.ac): ... to here.
8190
8191 2011-05-22  Bruno Haible  <bruno@clisp.org>
8192
8193         wcscpy: Move AC_LIBOBJ invocations to module description.
8194         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
8195         * modules/wcscpy (configure.ac): ... to here.
8196
8197 2011-05-22  Bruno Haible  <bruno@clisp.org>
8198
8199         wcscoll: Move AC_LIBOBJ invocations to module description.
8200         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
8201         here...
8202         * modules/wcscoll (configure.ac): ... to here.
8203
8204 2011-05-22  Bruno Haible  <bruno@clisp.org>
8205
8206         wcscmp: Move AC_LIBOBJ invocations to module description.
8207         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
8208         * modules/wcscmp (configure.ac): ... to here.
8209
8210 2011-05-22  Bruno Haible  <bruno@clisp.org>
8211
8212         wcschr: Move AC_LIBOBJ invocations to module description.
8213         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
8214         * modules/wcschr (configure.ac): ... to here.
8215
8216 2011-05-22  Bruno Haible  <bruno@clisp.org>
8217
8218         wcscat: Move AC_LIBOBJ invocations to module description.
8219         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
8220         * modules/wcscat (configure.ac): ... to here.
8221
8222 2011-05-22  Bruno Haible  <bruno@clisp.org>
8223
8224         wcscasecmp: Move AC_LIBOBJ invocations to module description.
8225         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
8226         here...
8227         * modules/wcscasecmp (configure.ac): ... to here.
8228
8229 2011-05-22  Bruno Haible  <bruno@clisp.org>
8230
8231         wcrtomb: Move AC_LIBOBJ invocations to module description.
8232         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
8233         invocations from here...
8234         * modules/wcrtomb (configure.ac): ... to here.
8235
8236 2011-05-22  Bruno Haible  <bruno@clisp.org>
8237
8238         wcpncpy: Move AC_LIBOBJ invocations to module description.
8239         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
8240         here...
8241         * modules/wcpncpy (configure.ac): ... to here.
8242
8243 2011-05-22  Bruno Haible  <bruno@clisp.org>
8244
8245         wcpcpy: Move AC_LIBOBJ invocations to module description.
8246         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
8247         * modules/wcpcpy (configure.ac): ... to here.
8248
8249 2011-05-22  Bruno Haible  <bruno@clisp.org>
8250
8251         waitpid: Move AC_LIBOBJ invocations to module description.
8252         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
8253         invocation from here...
8254         * modules/waitpid (configure.ac): ... to here.
8255
8256 2011-05-22  Bruno Haible  <bruno@clisp.org>
8257
8258         utimensat: Move AC_LIBOBJ invocations to module description.
8259         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
8260         here...
8261         * modules/utimensat (configure.ac): ... to here.
8262
8263 2011-05-22  Bruno Haible  <bruno@clisp.org>
8264
8265         usleep: Move AC_LIBOBJ invocations to module description.
8266         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
8267         here...
8268         * modules/usleep (configure.ac): ... to here.
8269
8270 2011-05-22  Bruno Haible  <bruno@clisp.org>
8271
8272         unlockpt: Move AC_LIBOBJ invocations to module description.
8273         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
8274         gl_PREREQ_UNLOCKPT invocations from here...
8275         * modules/unlockpt (configure.ac): ... to here.
8276
8277 2011-05-22  Bruno Haible  <bruno@clisp.org>
8278
8279         unlink: Respect rules for use of AC_LIBOBJ.
8280         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
8281         * modules/unlink (configure.ac): ... to here.
8282
8283 2011-05-22  Bruno Haible  <bruno@clisp.org>
8284
8285         uname: Move AC_LIBOBJ invocations to module description.
8286         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
8287         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
8288         here...
8289         * modules/uname (configure.ac): ... to here.
8290
8291 2011-05-22  Bruno Haible  <bruno@clisp.org>
8292
8293         ttyname_r: Move AC_LIBOBJ invocations to module description.
8294         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
8295         gl_PREREQ_TTYNAME_R invocations from here...
8296         * modules/ttyname_r (configure.ac): ... to here.
8297
8298 2011-05-22  Bruno Haible  <bruno@clisp.org>
8299
8300         tsearch: Move AC_LIBOBJ invocations to module description.
8301         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
8302         invocations from here...
8303         * modules/tsearch (configure.ac): ... to here.
8304
8305 2011-05-22  Bruno Haible  <bruno@clisp.org>
8306
8307         towctrans: Move AC_LIBOBJ invocations to module description.
8308         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
8309         AC_LIBOBJ invocation from here...
8310         * modules/towctrans (configure.ac): ... to here.
8311
8312 2011-05-22  Bruno Haible  <bruno@clisp.org>
8313
8314         tmpfile: Move AC_LIBOBJ invocations to module description.
8315         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
8316         invocations from here...
8317         * modules/tmpfile (configure.ac): ... to here.
8318
8319 2011-05-22  Bruno Haible  <bruno@clisp.org>
8320
8321         times: Move AC_LIBOBJ invocations to module description.
8322         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
8323         * modules/times (configure.ac): ... to here.
8324
8325 2011-05-22  Bruno Haible  <bruno@clisp.org>
8326
8327         time_r: Move AC_LIBOBJ invocations to module description.
8328         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
8329         invocations from here...
8330         * modules/time_r (configure.ac): ... to here.
8331
8332 2011-05-22  Bruno Haible  <bruno@clisp.org>
8333
8334         timegm: Move AC_LIBOBJ invocations to module description.
8335         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
8336         invocations from here...
8337         * modules/timegm (configure.ac): ... to here.
8338
8339 2011-05-22  Bruno Haible  <bruno@clisp.org>
8340
8341         tcgetsid: Move AC_LIBOBJ invocations to module description.
8342         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
8343         and gl_PREREQ_TCGETSID invocations from here...
8344         * modules/tcgetsid (configure.ac): ... to here.
8345         (Depends-on): Update conditions.
8346
8347 2011-05-22  Bruno Haible  <bruno@clisp.org>
8348
8349         symlinkat: Move AC_LIBOBJ invocations to module description.
8350         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
8351         here...
8352         * modules/symlinkat (configure.ac): ... to here.
8353
8354 2011-05-22  Bruno Haible  <bruno@clisp.org>
8355
8356         symlink: Move AC_LIBOBJ invocations to module description.
8357         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
8358         here...
8359         * modules/symlink (configure.ac): ... to here.
8360
8361 2011-05-22  Bruno Haible  <bruno@clisp.org>
8362
8363         strverscmp: Move AC_LIBOBJ invocations to module description.
8364         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
8365         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
8366         from here...
8367         * modules/strverscmp (configure.ac): ... to here.
8368
8369 2011-05-22  Bruno Haible  <bruno@clisp.org>
8370
8371         strtok_r: Move AC_LIBOBJ invocations to module description.
8372         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
8373         and gl_PREREQ_STRTOK_R invocations from here...
8374         * modules/strtok_r (configure.ac): ... to here.
8375         (Depends-on): Update conditions.
8376
8377 2011-05-22  Bruno Haible  <bruno@clisp.org>
8378
8379         strtoumax: Move AC_LIBOBJ invocations to module description.
8380         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
8381         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
8382         from here...
8383         * modules/strtoumax (configure.ac): ... to here.
8384
8385 2011-05-22  Bruno Haible  <bruno@clisp.org>
8386
8387         strtoimax: Move AC_LIBOBJ invocations to module description.
8388         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
8389         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
8390         from here...
8391         * modules/strtoimax (configure.ac): ... to here.
8392
8393 2011-05-22  Bruno Haible  <bruno@clisp.org>
8394
8395         strtoull: Move AC_LIBOBJ invocations to module description.
8396         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
8397         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
8398         from here...
8399         * modules/strtoull (configure.ac): ... to here.
8400
8401 2011-05-22  Bruno Haible  <bruno@clisp.org>
8402
8403         strtoll: Move AC_LIBOBJ invocations to module description.
8404         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
8405         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
8406         here...
8407         * modules/strtoll (configure.ac): ... to here.
8408
8409 2011-05-22  Bruno Haible  <bruno@clisp.org>
8410
8411         strtoul: Move AC_LIBOBJ invocations to module description.
8412         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
8413         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
8414         * modules/strtoul (configure.ac): ... to here.
8415
8416 2011-05-22  Bruno Haible  <bruno@clisp.org>
8417
8418         strtol: Move AC_LIBOBJ invocations to module description.
8419         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
8420         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
8421         * modules/strtol (configure.ac): ... to here.
8422
8423 2011-05-22  Bruno Haible  <bruno@clisp.org>
8424
8425         strtod: Move AC_LIBOBJ invocations to module description.
8426         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
8427         invocations from here...
8428         * modules/strtod (configure.ac): ... to here.
8429
8430 2011-05-22  Bruno Haible  <bruno@clisp.org>
8431
8432         strstr*: Move AC_LIBOBJ invocations to module description.
8433         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
8434         invocations from here...
8435         * modules/strstr-simple (configure.ac): ... to here.
8436         * modules/strstr (configure.ac): ... and here.
8437
8438 2011-05-22  Bruno Haible  <bruno@clisp.org>
8439
8440         strsignal: Move AC_LIBOBJ invocations to module description.
8441         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
8442         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
8443         * modules/strsignal (configure.ac): ... to here.
8444         (Depends-on): Update conditions.
8445
8446 2011-05-22  Bruno Haible  <bruno@clisp.org>
8447
8448         strsep: Move AC_LIBOBJ invocations to module description.
8449         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
8450         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
8451         here...
8452         * modules/strsep (configure.ac): ... to here.
8453
8454 2011-05-22  Bruno Haible  <bruno@clisp.org>
8455
8456         strptime: Move AC_LIBOBJ invocations to module description.
8457         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
8458         gl_PREREQ_STRPTIME invocations from here...
8459         * modules/strptime (configure.ac): ... to here.
8460
8461 2011-05-22  Bruno Haible  <bruno@clisp.org>
8462
8463         strpbrk: Move AC_LIBOBJ invocations to module description.
8464         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
8465         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
8466         here...
8467         * modules/strpbrk (configure.ac): ... to here.
8468
8469 2011-05-22  Bruno Haible  <bruno@clisp.org>
8470
8471         strnlen: Move AC_LIBOBJ invocations to module description.
8472         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
8473         invocations from here...
8474         * modules/strnlen (configure.ac): ... to here.
8475
8476 2011-05-22  Bruno Haible  <bruno@clisp.org>
8477
8478         strndup: Move AC_LIBOBJ invocations to module description.
8479         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
8480         invocations from here...
8481         * modules/strndup (configure.ac): ... to here.
8482         (Depends-on): Update conditions.
8483
8484 2011-05-22  Bruno Haible  <bruno@clisp.org>
8485
8486         strncat: Move AC_LIBOBJ invocations to module description.
8487         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
8488         invocations from here...
8489         * modules/strncat (configure.ac): ... to here.
8490
8491 2011-05-22  Bruno Haible  <bruno@clisp.org>
8492
8493         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
8494         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
8495         invocations from here...
8496         * modules/strdup (configure.ac): ... to here.
8497         * modules/strdup-posix (configure.ac): ... and here.
8498
8499 2011-05-22  Bruno Haible  <bruno@clisp.org>
8500
8501         strcspn: Move AC_LIBOBJ invocations to module description.
8502         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
8503         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
8504         here...
8505         * modules/strcspn (configure.ac): ... to here.
8506
8507 2011-05-22  Bruno Haible  <bruno@clisp.org>
8508
8509         strchrnul: Move AC_LIBOBJ invocations to module description.
8510         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
8511         gl_PREREQ_STRCHRNUL invocations from here...
8512         * modules/strchrnul (configure.ac): ... to here.
8513
8514 2011-05-22  Bruno Haible  <bruno@clisp.org>
8515
8516         strcasestr*: Move AC_LIBOBJ invocations to module description.
8517         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
8518         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
8519         * modules/strcasestr-simple (configure.ac): ... to here.
8520         * modules/strcasestr (configure.ac): ... and here.
8521
8522 2011-05-22  Bruno Haible  <bruno@clisp.org>
8523
8524         strcase: Move AC_LIBOBJ invocations to module description.
8525         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
8526         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
8527         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
8528         gl_PREREQ_STRNCASECMP invocations from here...
8529         * modules/strcase (configure.ac): ... to here.
8530
8531 2011-05-22  Bruno Haible  <bruno@clisp.org>
8532
8533         stpncpy: Move AC_LIBOBJ invocations to module description.
8534         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
8535         here...
8536         * modules/stpncpy (configure.ac): ... to here.
8537
8538 2011-05-22  Bruno Haible  <bruno@clisp.org>
8539
8540         stpcpy: Move AC_LIBOBJ invocations to module description.
8541         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
8542         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
8543         here...
8544         * modules/stpcpy (configure.ac): ... to here.
8545
8546 2011-05-21  Bruno Haible  <bruno@clisp.org>
8547
8548         stat: Move AC_LIBOBJ invocations to module description.
8549         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
8550         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
8551         here...
8552         * modules/stat (configure.ac): ... to here.
8553
8554 2011-05-21  Bruno Haible  <bruno@clisp.org>
8555
8556         sleep: Move AC_LIBOBJ invocations to module description.
8557         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
8558         * modules/sleep (configure.ac): ... to here.
8559
8560 2011-05-21  Bruno Haible  <bruno@clisp.org>
8561
8562         signbit: Move AC_LIBOBJ invocations to module description.
8563         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
8564         * modules/signbit (configure.ac): ... to here.
8565
8566 2011-05-21  Bruno Haible  <bruno@clisp.org>
8567
8568         sigprocmask: Move AC_LIBOBJ invocations to module description.
8569         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
8570         gl_PREREQ_SIGPROMASK invocations from here...
8571         * modules/sigprocmask (configure.ac): ... to here.
8572
8573 2011-05-21  Bruno Haible  <bruno@clisp.org>
8574
8575         sigaction: Move AC_LIBOBJ invocations to module description.
8576         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
8577         gl_PREREQ_SIGACTION invocations from here...
8578         * modules/sigaction (configure.ac): ... to here.
8579
8580 2011-05-21  Bruno Haible  <bruno@clisp.org>
8581
8582         sig2str: Move AC_LIBOBJ invocations to module description.
8583         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
8584         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
8585         here...
8586         * modules/sig2str (configure.ac): ... to here.
8587
8588 2011-05-21  Bruno Haible  <bruno@clisp.org>
8589
8590         setlocale: Move AC_LIBOBJ invocations to module description.
8591         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
8592         gl_PREREQ_SETLOCALE invocations from here...
8593         * modules/setlocale (configure.ac): ... to here.
8594
8595 2011-05-21  Bruno Haible  <bruno@clisp.org>
8596
8597         unsetenv: Move AC_LIBOBJ invocations to module description.
8598         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
8599         and gl_PREREQ_UNSETENV invocations from here...
8600         * modules/unsetenv (configure.ac): ... to here.
8601         (Depends-on): Update.
8602
8603 2011-05-21  Bruno Haible  <bruno@clisp.org>
8604
8605         setenv: Move AC_LIBOBJ invocations to module description.
8606         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
8607         here...
8608         * modules/setenv (configure.ac): ... to here.
8609
8610 2011-05-21  Bruno Haible  <bruno@clisp.org>
8611
8612         selinux-h: Move AC_LIBOBJ invocations to module description.
8613         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
8614         AC_LIBOBJ invocation from here...
8615         * modules/selinux-h (configure.ac): ... to here.
8616
8617 2011-05-21  Bruno Haible  <bruno@clisp.org>
8618
8619         select: Respect rules for use of AC_LIBOBJ.
8620         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
8621         here...
8622         * modules/select (configure.ac): ... to here.
8623
8624 2011-05-21  Bruno Haible  <bruno@clisp.org>
8625
8626         scandir: Move AC_LIBOBJ invocations to module description.
8627         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
8628         invocations from here...
8629         * modules/scandir (configure.ac): ... to here.
8630
8631 2011-05-21  Bruno Haible  <bruno@clisp.org>
8632
8633         rpmatch: Move AC_LIBOBJ invocations to module description.
8634         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
8635         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
8636         here...
8637         * modules/rpmatch (configure.ac): ... to here.
8638
8639 2011-05-21  Bruno Haible  <bruno@clisp.org>
8640
8641         rmdir: Respect rules for use of AC_LIBOBJ.
8642         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
8643         * modules/rmdir (configure.ac): ... to here.
8644
8645 2011-05-21  Bruno Haible  <bruno@clisp.org>
8646
8647         renameat: Move AC_LIBOBJ invocations to module description.
8648         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
8649         here...
8650         * modules/renameat (configure.ac): ... to here.
8651
8652 2011-05-21  Bruno Haible  <bruno@clisp.org>
8653
8654         rename: Respect rules for use of AC_LIBOBJ.
8655         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
8656         here...
8657         * modules/rename (configure.ac): ... to here.
8658
8659 2011-05-21  Bruno Haible  <bruno@clisp.org>
8660
8661         remove: Move AC_LIBOBJ invocations to module description.
8662         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
8663         here...
8664         * modules/remove (configure.ac): ... to here.
8665
8666 2011-05-21  Bruno Haible  <bruno@clisp.org>
8667
8668         relocatable-lib: Move AC_LIBOBJ invocations to module description.
8669         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
8670         macro.
8671         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
8672         * modules/relocatable-lib (configure.ac): ... to here.
8673         * modules/relocatable-prog-wrapper (configure.ac): Invoke
8674         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
8675
8676 2011-05-21  Bruno Haible  <bruno@clisp.org>
8677
8678         relocatable-prog: Move AC_LIBOBJ invocations to module description.
8679         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
8680         here...
8681         * modules/relocatable-prog (configure.ac): ... to here.
8682
8683 2011-05-21  Bruno Haible  <bruno@clisp.org>
8684
8685         regex: Move AC_LIBOBJ invocations to module description.
8686         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
8687         invocations from here...
8688         * modules/regex (configure.ac): ... to here.
8689
8690 2011-05-21  Bruno Haible  <bruno@clisp.org>
8691
8692         realloc-*: Move AC_LIBOBJ invocations to module description.
8693         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
8694         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
8695         AC_LIBOBJ invocations from here...
8696         * modules/realloc-gnu (configure.ac): ... to here.
8697         * modules/realloc-posix (configure.ac): ... and here.
8698
8699 2011-05-21  Bruno Haible  <bruno@clisp.org>
8700
8701         readutmp: Move AC_LIBOBJ invocations to module description.
8702         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
8703         * modules/readutmp (configure.ac): ... to here.
8704
8705 2011-05-21  Bruno Haible  <bruno@clisp.org>
8706
8707         readlinkat: Move AC_LIBOBJ invocations to module description.
8708         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
8709         here...
8710         * modules/readlinkat (configure.ac): ... to here.
8711
8712 2011-05-21  Bruno Haible  <bruno@clisp.org>
8713
8714         readlink: Move AC_LIBOBJ invocations to module description.
8715         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
8716         gl_PREREQ_READLINK invocations from here...
8717         * modules/readlink (configure.ac): ... to here.
8718
8719 2011-05-21  Bruno Haible  <bruno@clisp.org>
8720
8721         readline: Move AC_LIBOBJ invocations to module description.
8722         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
8723         gl_PREREQ_READLINE invocations from here...
8724         * modules/readline (configure.ac): ... to here.
8725
8726 2011-05-21  Bruno Haible  <bruno@clisp.org>
8727
8728         read: Move AC_LIBOBJ invocations to module description.
8729         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
8730         * modules/read (configure.ac): ... to here.
8731
8732 2011-05-21  Bruno Haible  <bruno@clisp.org>
8733
8734         rawmemchr: Move AC_LIBOBJ invocations to module description.
8735         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
8736         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
8737         from here...
8738         * modules/rawmemchr (configure.ac): ... to here.
8739
8740 2011-05-21  Bruno Haible  <bruno@clisp.org>
8741
8742         random_r: Move AC_LIBOBJ invocations to module description.
8743         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
8744         gl_PREREQ_RANDOM_R invocations from here...
8745         * modules/random_r (configure.ac): ... to here.
8746
8747 2011-05-21  Bruno Haible  <bruno@clisp.org>
8748
8749         pwrite: Move AC_LIBOBJ invocations to module description.
8750         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
8751         * modules/pwrite (configure.ac): ... to here.
8752
8753 2011-05-21  Bruno Haible  <bruno@clisp.org>
8754
8755         putenv: Move AC_LIBOBJ invocations to module description.
8756         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
8757         * modules/putenv (configure.ac): ... to here.
8758
8759 2011-05-21  Bruno Haible  <bruno@clisp.org>
8760
8761         login_tty: Move AC_LIBOBJ invocations to module description.
8762         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
8763         * modules/login_tty (configure.ac): ... to here.
8764
8765 2011-05-21  Bruno Haible  <bruno@clisp.org>
8766
8767         openpty: Move AC_LIBOBJ invocations to module description.
8768         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
8769         * modules/openpty (configure.ac): ... to here.
8770
8771 2011-05-21  Bruno Haible  <bruno@clisp.org>
8772
8773         forkpty: Move AC_LIBOBJ invocations to module description.
8774         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
8775         * modules/forkpty (configure.ac): ... to here.
8776
8777 2011-05-21  Bruno Haible  <bruno@clisp.org>
8778
8779         ptsname: Move AC_LIBOBJ invocations to module description.
8780         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
8781         invocations from here...
8782         * modules/ptsname (configure.ac): ... to here.
8783
8784 2011-05-21  Bruno Haible  <bruno@clisp.org>
8785
8786         pread: Move AC_LIBOBJ invocations to module description.
8787         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
8788         * modules/pread (configure.ac): ... to here.
8789
8790 2011-05-21  Bruno Haible  <bruno@clisp.org>
8791
8792         posix_spawn*: Move AC_LIBOBJ invocations to module description.
8793         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
8794         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
8795         * modules/posix_spawn (configure.ac): ... to here.
8796         * modules/posix_spawnp (configure.ac): ... and here.
8797
8798 2011-05-21  Bruno Haible  <bruno@clisp.org>
8799
8800         popen: Move AC_LIBOBJ invocations to module description.
8801         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
8802         invocations from here...
8803         * modules/popen (configure.ac): ... to here.
8804
8805 2011-05-21  Bruno Haible  <bruno@clisp.org>
8806
8807         poll: Move AC_LIBOBJ invocations to module description.
8808         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
8809         invocations from here...
8810         * modules/poll (configure.ac): ... to here.
8811
8812 2011-05-21  Bruno Haible  <bruno@clisp.org>
8813
8814         pipe-posix: Move AC_LIBOBJ invocations to module description.
8815         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
8816         * modules/pipe-posix (configure.ac): ... to here.
8817
8818 2011-05-21  Bruno Haible  <bruno@clisp.org>
8819
8820         openat: Respect rules for use of AC_LIBOBJ.
8821         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
8822         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8823         * modules/openat (configure.ac): ... to here.
8824
8825 2011-05-21  Bruno Haible  <bruno@clisp.org>
8826
8827         obstack-printf*: Move AC_LIBOBJ invocations to module description.
8828         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
8829         invocation from here...
8830         * modules/obstack-printf (configure.ac): ... to here.
8831         * modules/obstack-printf-posix (configure.ac): ... and here.
8832
8833 2011-05-21  Bruno Haible  <bruno@clisp.org>
8834
8835         nl_langinfo: Move AC_LIBOBJ invocations to module description.
8836         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
8837         from here...
8838         * modules/nl_langinfo (configure.ac): ... to here.
8839
8840 2011-05-21  Bruno Haible  <bruno@clisp.org>
8841
8842         nanosleep: Move AC_LIBOBJ invocations to module description.
8843         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
8844         gl_PREREQ_NANOSLEEP invocations from here...
8845         * modules/nanosleep (configure.ac): ... to here.
8846
8847 2011-05-21  Bruno Haible  <bruno@clisp.org>
8848
8849         mountlist: Move AC_LIBOBJ invocations to module description.
8850         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
8851         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
8852         * modules/mountlist (configure.ac): ... to here.
8853
8854 2011-05-21  Bruno Haible  <bruno@clisp.org>
8855
8856         mktime: Respect rules for use of AC_LIBOBJ.
8857         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
8858         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
8859         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
8860         (gl_FUNC_MKTIME_INTERNAL): ... and here...
8861         * modules/mktime (configure.ac): ... to here.
8862         * modules/mktime-internal (configure.ac): ... and here.
8863         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
8864
8865 2011-05-21  Bruno Haible  <bruno@clisp.org>
8866
8867         mkstemps: Move AC_LIBOBJ invocations to module description.
8868         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
8869         here...
8870         * modules/mkstemps (configure.ac): ... to here.
8871
8872 2011-05-21  Bruno Haible  <bruno@clisp.org>
8873
8874         mkstemp: Move AC_LIBOBJ invocations to module description.
8875         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
8876         gl_PREREQ_MKSTEMP invocations from here...
8877         * modules/mkstemp (configure.ac): ... to here.
8878
8879 2011-05-21  Bruno Haible  <bruno@clisp.org>
8880
8881         mkostemps: Move AC_LIBOBJ invocations to module description.
8882         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
8883         here...
8884         * modules/mkostemps (configure.ac): ... to here.
8885
8886 2011-05-21  Bruno Haible  <bruno@clisp.org>
8887
8888         mkostemp: Move AC_LIBOBJ invocations to module description.
8889         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
8890         gl_PREREQ_MKOSTEMP invocations from here...
8891         * modules/mkostemp (configure.ac): ... to here.
8892
8893 2011-05-21  Bruno Haible  <bruno@clisp.org>
8894
8895         mknod: Move AC_LIBOBJ invocations to module description.
8896         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
8897         * modules/mknod (configure.ac): ... to here.
8898
8899 2011-05-21  Bruno Haible  <bruno@clisp.org>
8900
8901         mkfifoat: Move AC_LIBOBJ invocations to module description.
8902         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
8903         here...
8904         * modules/mkfifoat (configure.ac): ... to here.
8905
8906 2011-05-21  Bruno Haible  <bruno@clisp.org>
8907
8908         mkfifo: Respect rules for use of AC_LIBOBJ.
8909         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
8910         here...
8911         * modules/mkfifo (configure.ac): ... to here.
8912
8913 2011-05-21  Bruno Haible  <bruno@clisp.org>
8914
8915         mkdtemp: Move AC_LIBOBJ invocations to module description.
8916         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
8917         invocations from here...
8918         * modules/mkdtemp (configure.ac): ... to here.
8919
8920 2011-05-21  Bruno Haible  <bruno@clisp.org>
8921
8922         mkdir: Move AC_LIBOBJ invocations to module description.
8923         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
8924         * modules/mkdir (configure.ac): ... to here.
8925
8926 2011-05-21  Bruno Haible  <bruno@clisp.org>
8927
8928         memset: Move AC_LIBOBJ invocations to module description.
8929         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
8930         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
8931         here...
8932         * modules/memset (configure.ac): ... to here.
8933
8934 2011-05-21  Bruno Haible  <bruno@clisp.org>
8935
8936         memrchr: Move AC_LIBOBJ invocations to module description.
8937         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
8938         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
8939         here...
8940         * modules/memrchr (configure.ac): ... to here.
8941
8942 2011-05-21  Bruno Haible  <bruno@clisp.org>
8943
8944         mempcpy: Move AC_LIBOBJ invocations to module description.
8945         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
8946         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
8947         here...
8948         * modules/mempcpy (configure.ac): ... to here.
8949
8950 2011-05-21  Bruno Haible  <bruno@clisp.org>
8951
8952         memmove: Move AC_LIBOBJ invocations to module description.
8953         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
8954         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
8955         here...
8956         * modules/memmove (configure.ac): ... to here.
8957
8958 2011-05-21  Bruno Haible  <bruno@clisp.org>
8959
8960         memmem*: Move AC_LIBOBJ invocations to module description.
8961         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
8962         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
8963         here...
8964         (gl_FUNC_MEMMEM): ... and here...
8965         * modules/memmem-simple (configure.ac): ... to here.
8966         * modules/memmem (configure.ac): ... and here.
8967
8968 2011-05-21  Bruno Haible  <bruno@clisp.org>
8969
8970         memcpy: Move AC_LIBOBJ invocations to module description.
8971         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
8972         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
8973         here...
8974         * modules/memcpy (configure.ac): ... to here.
8975
8976 2011-05-21  Bruno Haible  <bruno@clisp.org>
8977
8978         memcmp: Simplify autoconf macro.
8979         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
8980         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
8981         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
8982
8983 2011-05-21  Bruno Haible  <bruno@clisp.org>
8984
8985         memcmp: Move AC_LIBOBJ invocations to module description.
8986         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
8987         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
8988         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
8989         * modules/memcmp (configure.ac): ... to here.
8990         (Depends-on): Update conditions.
8991
8992 2011-05-21  Bruno Haible  <bruno@clisp.org>
8993
8994         memchr: Respect rules for use of AC_LIBOBJ.
8995         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
8996         invocations from here...
8997         * modules/memchr (configure.ac): ... to here.
8998
8999 2011-05-21  Bruno Haible  <bruno@clisp.org>
9000
9001         mbtowc: Move AC_LIBOBJ invocations to module description.
9002         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
9003         invocations from here...
9004         * modules/mbtowc (configure.ac): ... to here.
9005
9006 2011-05-21  Bruno Haible  <bruno@clisp.org>
9007
9008         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
9009         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
9010         gl_PREREQ_MBSRTOWCS invocations from here...
9011         * modules/mbsrtowcs (configure.ac): ... to here.
9012
9013 2011-05-21  Bruno Haible  <bruno@clisp.org>
9014
9015         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
9016         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
9017         gl_PREREQ_MBSNRTOWCS invocations from here...
9018         * modules/mbsnrtowcs (configure.ac): ... to here.
9019
9020 2011-05-21  Bruno Haible  <bruno@clisp.org>
9021
9022         mbsinit: Move AC_LIBOBJ invocations to module description.
9023         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
9024         invocations from here...
9025         * modules/mbsinit (configure.ac): ... to here.
9026
9027 2011-05-21  Bruno Haible  <bruno@clisp.org>
9028
9029         mbrlen: Move AC_LIBOBJ invocations to module description.
9030         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
9031         invocations from here...
9032         * modules/mbrlen (configure.ac): ... to here.
9033
9034 2011-05-21  Bruno Haible  <bruno@clisp.org>
9035
9036         mbrtowc: Respect rules for use of AC_LIBOBJ.
9037         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
9038         invocations from here...
9039         * modules/mbrtowc (configure.ac): ... to here.
9040
9041 2011-05-21  Bruno Haible  <bruno@clisp.org>
9042
9043         malloc-*: Move AC_LIBOBJ invocations to module description.
9044         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
9045         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
9046         AC_LIBOBJ invocations from here...
9047         * modules/malloc-gnu (configure.ac): ... to here.
9048         * modules/malloc-posix (configure.ac): ... and here.
9049
9050 2011-05-21  Bruno Haible  <bruno@clisp.org>
9051
9052         lstat, openat: Respect rules for use of AC_LIBOBJ.
9053         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
9054         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
9055         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
9056         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
9057         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
9058         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
9059         here.
9060         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
9061
9062 2011-05-21  Bruno Haible  <bruno@clisp.org>
9063
9064         lseek: Move AC_LIBOBJ invocations to module description.
9065         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
9066         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
9067         * modules/lseek (configure.ac): ... to here.
9068
9069 2011-05-21  Bruno Haible  <bruno@clisp.org>
9070
9071         linkat: Move AC_LIBOBJ invocations to module description.
9072         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
9073         here...
9074         * modules/linkat (configure.ac): ... to here.
9075
9076 2011-05-21  Bruno Haible  <bruno@clisp.org>
9077
9078         link: Respect rules for use of AC_LIBOBJ.
9079         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
9080         * modules/link (configure.ac): ... to here.
9081
9082 2011-05-21  Bruno Haible  <bruno@clisp.org>
9083
9084         lchown: Move AC_LIBOBJ invocations to module description.
9085         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
9086         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
9087         * modules/lchown (configure.ac): ... to here.
9088
9089 2011-05-21  Bruno Haible  <bruno@clisp.org>
9090
9091         iswctype: Move AC_LIBOBJ invocations to module description.
9092         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
9093         here...
9094         * modules/iswctype (configure.ac): ... to here.
9095
9096 2011-05-21  Bruno Haible  <bruno@clisp.org>
9097
9098         iswblank: Move AC_LIBOBJ invocations to module description.
9099         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
9100         here...
9101         * modules/iswblank (configure.ac): ... to here.
9102
9103 2011-05-21  Bruno Haible  <bruno@clisp.org>
9104
9105         atanl: Move AC_LIBOBJ invocations to module description.
9106         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
9107         * modules/atanl (configure.ac): ... to here.
9108
9109 2011-05-21  Bruno Haible  <bruno@clisp.org>
9110
9111         acosl: Move AC_LIBOBJ invocations to module description.
9112         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
9113         * modules/acosl (configure.ac): ... to here.
9114
9115 2011-05-21  Bruno Haible  <bruno@clisp.org>
9116
9117         asinl: Respect rules for use of AC_LIBOBJ.
9118         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
9119         * modules/asinl (configure.ac): ... to here.
9120
9121 2011-05-21  Bruno Haible  <bruno@clisp.org>
9122
9123         tanl: Move AC_LIBOBJ invocations to module description.
9124         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
9125         * modules/tanl (configure.ac): ... to here.
9126
9127 2011-05-21  Bruno Haible  <bruno@clisp.org>
9128
9129         cosl: Move AC_LIBOBJ invocations to module description.
9130         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
9131         * modules/cosl (configure.ac): ... to here.
9132
9133 2011-05-21  Bruno Haible  <bruno@clisp.org>
9134
9135         sinl: Move AC_LIBOBJ invocations to module description.
9136         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
9137         * modules/sinl (configure.ac): ... to here.
9138
9139 2011-05-21  Bruno Haible  <bruno@clisp.org>
9140
9141         logl: Move AC_LIBOBJ invocations to module description.
9142         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
9143         * modules/logl (configure.ac): ... to here.
9144
9145 2011-05-21  Bruno Haible  <bruno@clisp.org>
9146
9147         expl: Move AC_LIBOBJ invocations to module description.
9148         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
9149         * modules/expl (configure.ac): ... to here.
9150
9151 2011-05-21  Bruno Haible  <bruno@clisp.org>
9152
9153         roundl: Move AC_LIBOBJ invocations to module description.
9154         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
9155         * modules/roundl (configure.ac): ... to here.
9156
9157 2011-05-21  Bruno Haible  <bruno@clisp.org>
9158
9159         round: Move AC_LIBOBJ invocations to module description.
9160         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
9161         * modules/round (configure.ac): ... to here.
9162
9163 2011-05-21  Bruno Haible  <bruno@clisp.org>
9164
9165         roundf: Move AC_LIBOBJ invocations to module description.
9166         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
9167         * modules/roundf (configure.ac): ... to here.
9168
9169 2011-05-21  Bruno Haible  <bruno@clisp.org>
9170
9171         truncl: Move AC_LIBOBJ invocations to module description.
9172         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
9173         * modules/truncl (configure.ac): ... to here.
9174
9175 2011-05-21  Bruno Haible  <bruno@clisp.org>
9176
9177         trunc: Move AC_LIBOBJ invocations to module description.
9178         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
9179         * modules/trunc (configure.ac): ... to here.
9180
9181 2011-05-21  Bruno Haible  <bruno@clisp.org>
9182
9183         truncf: Move AC_LIBOBJ invocations to module description.
9184         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
9185         * modules/truncf (configure.ac): ... to here.
9186
9187 2011-05-21  Bruno Haible  <bruno@clisp.org>
9188
9189         ceill: Move AC_LIBOBJ invocations to module description.
9190         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
9191         * modules/ceill (configure.ac): ... to here.
9192
9193 2011-05-21  Bruno Haible  <bruno@clisp.org>
9194
9195         ceil: Move AC_LIBOBJ invocations to module description.
9196         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
9197         * modules/ceil (configure.ac): ... to here.
9198
9199 2011-05-21  Bruno Haible  <bruno@clisp.org>
9200
9201         ceilf: Move AC_LIBOBJ invocations to module description.
9202         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
9203         * modules/ceilf (configure.ac): ... to here.
9204
9205 2011-05-21  Bruno Haible  <bruno@clisp.org>
9206
9207         floorl: Respect rules for use of AC_LIBOBJ.
9208         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
9209         * modules/floorl (configure.ac): ... to here.
9210
9211 2011-05-21  Bruno Haible  <bruno@clisp.org>
9212
9213         floor: Respect rules for use of AC_LIBOBJ.
9214         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
9215         * modules/floor (configure.ac): ... to here.
9216
9217 2011-05-21  Bruno Haible  <bruno@clisp.org>
9218
9219         floorf: Move AC_LIBOBJ invocations to module description.
9220         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
9221         * modules/floorf (configure.ac): ... to here.
9222
9223 2011-05-20  Bruno Haible  <bruno@clisp.org>
9224
9225         sqrtl: Respect rules for use of AC_LIBOBJ.
9226         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
9227         * modules/sqrtl (configure.ac): ... to here.
9228
9229 2011-05-20  Bruno Haible  <bruno@clisp.org>
9230
9231         ldexpl: Respect rules for use of AC_LIBOBJ.
9232         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
9233         * modules/ldexpl (configure.ac): ... to here.
9234
9235 2011-05-20  Bruno Haible  <bruno@clisp.org>
9236
9237         frexpl*: Respect rules for use of AC_LIBOBJ.
9238         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
9239         invocation from here...
9240         * modules/frexpl (configure.ac): ... to here.
9241         * modules/frexpl-nolibm (configure.ac): ... and here.
9242
9243 2011-05-20  Bruno Haible  <bruno@clisp.org>
9244
9245         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
9246         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
9247         invocation from here...
9248         * modules/frexp (configure.ac): ... to here.
9249         * modules/frexp-nolibm (configure.ac): ... and here.
9250
9251 2011-05-20  Bruno Haible  <bruno@clisp.org>
9252
9253         isnan: Respect rules for use of AC_LIBOBJ.
9254         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
9255         invocations here.
9256         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
9257         REPLACE_ISNAN.
9258         * modules/isnand (configure.ac): Likewise.
9259         * modules/isnanl (configure.ac): Likewise.
9260
9261 2011-05-20  Bruno Haible  <bruno@clisp.org>
9262
9263         isnanl*: Respect rules for use of AC_LIBOBJ.
9264         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
9265         invocation from here...
9266         * modules/isnanl (configure.ac): ... to here.
9267         * modules/isnanl-nolibm (configure.ac): ... and here.
9268
9269 2011-05-20  Bruno Haible  <bruno@clisp.org>
9270
9271         isnand*: Move AC_LIBOBJ invocations to module description.
9272         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
9273         invocation from here...
9274         * modules/isnand (configure.ac): ... to here.
9275         * modules/isnand-nolibm (configure.ac): ... and here.
9276
9277 2011-05-20  Bruno Haible  <bruno@clisp.org>
9278
9279         isnanf*: Move AC_LIBOBJ invocations to module description.
9280         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
9281         invocation from here...
9282         * modules/isnanf (configure.ac): ... to here.
9283         * modules/isnanf-nolibm (configure.ac): ... and here.
9284
9285 2011-05-20  Bruno Haible  <bruno@clisp.org>
9286
9287         isnan*: Separate the AC_LIBOBJ invocations.
9288         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
9289         AC_LIBOBJ invocation.
9290         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
9291         here.
9292         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
9293         AC_LIBOBJ invocation.
9294         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
9295         here.
9296         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
9297         AC_LIBOBJ invocation.
9298         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
9299         here.
9300         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
9301
9302 2011-05-08  Bruno Haible  <bruno@clisp.org>
9303
9304         isinf: Move AC_LIBOBJ invocations to module description.
9305         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
9306         * modules/isinf (configure.ac): ... to here.
9307
9308 2011-05-08  Bruno Haible  <bruno@clisp.org>
9309
9310         isfinite: Move AC_LIBOBJ invocations to module description.
9311         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
9312         * modules/isfinite (configure.ac): ... to here.
9313
9314 2011-05-08  Bruno Haible  <bruno@clisp.org>
9315
9316         isblank: Move AC_LIBOBJ invocations to module description.
9317         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
9318         here...
9319         * modules/isblank (configure.ac): ... to here.
9320
9321 2011-05-08  Bruno Haible  <bruno@clisp.org>
9322
9323         isapipe: Move AC_LIBOBJ invocations to module description.
9324         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
9325         gl_PREREQ_ISAPIPE invocations from here...
9326         * modules/isapipe (configure.ac): ... to here.
9327         (Depends-on): Update condition.
9328
9329 2011-05-08  Bruno Haible  <bruno@clisp.org>
9330
9331         ioctl: Move AC_LIBOBJ invocations to module description.
9332         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
9333         invocations from here...
9334         * modules/ioctl (configure.ac): ... to here.
9335         (Depends-on): Update condition.
9336
9337 2011-05-08  Bruno Haible  <bruno@clisp.org>
9338
9339         imaxdiv: Move AC_LIBOBJ invocations to module description.
9340         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
9341         invocations from here...
9342         * modules/imaxdiv (configure.ac): ... to here.
9343
9344 2011-05-08  Bruno Haible  <bruno@clisp.org>
9345
9346         imaxabs: Move AC_LIBOBJ invocations to module description.
9347         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
9348         invocations from here...
9349         * modules/imaxabs (configure.ac): ... to here.
9350
9351 2011-05-08  Bruno Haible  <bruno@clisp.org>
9352
9353         getaddrinfo: Move AC_LIBOBJ invocations to module description.
9354         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
9355         AC_LIBOBJ invocations from here...
9356         * modules/getaddrinfo (configure.ac): ... to here.
9357         (Depends-on): Add conditions.
9358
9359 2011-05-08  Bruno Haible  <bruno@clisp.org>
9360
9361         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
9362         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
9363         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
9364         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
9365         (gl_PREREQ_INET_PTON): ... from here.
9366         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
9367         gl_PREREQ_INET_PTON here.
9368         (Depends-on): Update condition.
9369
9370 2011-05-08  Bruno Haible  <bruno@clisp.org>
9371
9372         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
9373         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
9374         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
9375         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
9376         (gl_PREREQ_INET_NTOP): ... from here.
9377         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
9378         gl_PREREQ_INET_NTOP here.
9379         (Depends-on): Update condition.
9380
9381 2011-05-08  Bruno Haible  <bruno@clisp.org>
9382
9383         iconv_open: Move AC_LIBOBJ invocations to module description.
9384         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
9385         AC_LIBOBJ invocations from here...
9386         * modules/iconv_open (configure.ac): ... to here.
9387
9388 2011-05-08  Bruno Haible  <bruno@clisp.org>
9389
9390         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
9391         If module 'iconv_open' is among the main modules and module
9392         'iconv_open-utf' is among the tests dependencies, then
9393         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
9394         return the special iconv_t values. Therefore iconv() and iconv_close()
9395         must support these special iconv_t values, already in lib, not only in
9396         tests.
9397         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
9398         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
9399         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
9400         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
9401         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
9402         (Depends-on): Add the dependencies of iconv_open-utf.
9403         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
9404         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
9405         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
9406
9407 2011-05-08  Bruno Haible  <bruno@clisp.org>
9408
9409         group-member: Move AC_LIBOBJ invocations to module description.
9410         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
9411         gl_PREREQ_GROUP_MEMBER invocations from here...
9412         * modules/group-member (configure.ac): ... to here.
9413
9414 2011-05-08  Bruno Haible  <bruno@clisp.org>
9415
9416         grantpt: Move AC_LIBOBJ invocations to module description.
9417         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
9418         invocations from here...
9419         * modules/grantpt (configure.ac): ... to here.
9420
9421 2011-05-08  Bruno Haible  <bruno@clisp.org>
9422
9423         glob: Move AC_LIBOBJ invocations to module description.
9424         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
9425         from here...
9426         * modules/glob (configure.ac): ... to here.
9427
9428 2011-05-08  Bruno Haible  <bruno@clisp.org>
9429
9430         getusershell: Move AC_LIBOBJ invocations to module description.
9431         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
9432         Move AC_LIBOBJ invocation from here...
9433         * modules/getusershell (configure.ac): ... to here.
9434         (Depends-on): Update condition.
9435
9436 2011-05-08  Bruno Haible  <bruno@clisp.org>
9437
9438         gettimeofday: Move AC_LIBOBJ invocations to module description.
9439         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
9440         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
9441         gl_PREREQ_GETTIMEOFDAY invocations from here...
9442         * modules/gettimeofday (configure.ac): ... to here.
9443
9444 2011-05-08  Bruno Haible  <bruno@clisp.org>
9445
9446         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
9447         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
9448         just gl_FUNC_TZSET.
9449         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
9450         (gl_FUNC_TZSET_CLOBBER): Remove actions.
9451         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
9452         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
9453
9454 2011-05-08  Bruno Haible  <bruno@clisp.org>
9455
9456         getsubopt: Move AC_LIBOBJ invocations to module description.
9457         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
9458         gl_PREREQ_GETSUBOPT invocations from here...
9459         * modules/getsubopt (configure.ac): ... to here.
9460
9461 2011-05-08  Bruno Haible  <bruno@clisp.org>
9462
9463         getpass-gnu: Move AC_LIBOBJ invocations to module description.
9464         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
9465         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
9466         * modules/getpass-gnu (configure.ac): ... to here.
9467
9468 2011-05-08  Bruno Haible  <bruno@clisp.org>
9469
9470         getpass: Move AC_LIBOBJ invocations to module description.
9471         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
9472         gl_PREREQ_GETPASS invocations from here...
9473         * modules/getpass (configure.ac): ... to here.
9474
9475 2011-05-08  Bruno Haible  <bruno@clisp.org>
9476
9477         getpagesize: Move AC_LIBOBJ invocations to module description.
9478         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
9479         from here...
9480         * modules/getpagesize (configure.ac): ... to here.
9481
9482 2011-05-08  Bruno Haible  <bruno@clisp.org>
9483
9484         getopt: Move AC_LIBOBJ invocations to module description.
9485         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
9486         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
9487         invocations from here...
9488         * modules/getopt-gnu (configure.ac): ... to here.
9489         * modules/getopt-posix (configure.ac): ... and here.
9490         (Depends-on): Update condition.
9491
9492 2011-05-08  Bruno Haible  <bruno@clisp.org>
9493
9494         getopt, argp: Respect rules for use of AC_LIBOBJ.
9495         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
9496         (gl_REPLACE_GETOPT_ALWAYS): New macro.
9497         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
9498         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
9499
9500 2011-05-08  Bruno Haible  <bruno@clisp.org>
9501
9502         getlogin_r: Move AC_LIBOBJ invocations to module description.
9503         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
9504         gl_PREREQ_GETLOGIN_R invocations from here...
9505         * modules/getlogin_r (configure.ac): ... to here.
9506
9507 2011-05-08  Bruno Haible  <bruno@clisp.org>
9508
9509         getlogin: Move AC_LIBOBJ invocations to module description.
9510         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
9511         here...
9512         * modules/getlogin (configure.ac): ... to here.
9513
9514 2011-05-08  Bruno Haible  <bruno@clisp.org>
9515
9516         getloadavg: Move AC_LIBOBJ invocations to module description.
9517         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
9518         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
9519         * modules/getloadavg (configure.ac): ... to here.
9520
9521 2011-05-08  Bruno Haible  <bruno@clisp.org>
9522
9523         gethrxtime: Move AC_LIBOBJ invocations to module description.
9524         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
9525         LIB_GETHRXTIME from here...
9526         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
9527         invocations from here...
9528         * modules/gethrxtime (configure.ac): ... to here.
9529
9530 2011-05-08  Bruno Haible  <bruno@clisp.org>
9531
9532         gethostname: Move AC_LIBOBJ invocations to module description.
9533         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
9534         gl_PREREQ_GETHOSTNAME invocations from here...
9535         * modules/gethostname (configure.ac): ... to here.
9536
9537 2011-05-08  Bruno Haible  <bruno@clisp.org>
9538
9539         getgroups: Move AC_LIBOBJ invocations to module description.
9540         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
9541         here...
9542         * modules/getgroups (configure.ac): ... to here.
9543
9544 2011-05-08  Bruno Haible  <bruno@clisp.org>
9545
9546         getdtablesize: Move AC_LIBOBJ invocations to module description.
9547         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
9548         invocation from here...
9549         * modules/getdtablesize (configure.ac): ... to here.
9550
9551 2011-05-08  Bruno Haible  <bruno@clisp.org>
9552
9553         getdomainname: Move AC_LIBOBJ invocations to module description.
9554         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
9555         gl_PREREQ_GETDOMAINNAME invocations from here...
9556         * modules/getdomainname (configure.ac): ... to here.
9557
9558 2011-05-08  Bruno Haible  <bruno@clisp.org>
9559
9560         getline: Move AC_LIBOBJ invocations to module description.
9561         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
9562         invocations from here...
9563         * modules/getline (configure.ac): ... to here.
9564
9565 2011-05-08  Bruno Haible  <bruno@clisp.org>
9566
9567         getline: Simplify.
9568         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
9569         It's already handled through the module dependency.
9570
9571 2011-05-08  Bruno Haible  <bruno@clisp.org>
9572
9573         getdelim: Move AC_LIBOBJ invocations to module description.
9574         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
9575         and gl_PREREQ_GETDELIM invocations from here...
9576         * modules/getdelim (configure.ac): ... to here.
9577         (Depends-on): Fix condition.
9578
9579 2011-05-08  Bruno Haible  <bruno@clisp.org>
9580
9581         getcwd: Move AC_LIBOBJ invocations to module description.
9582         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
9583         invocations from here...
9584         * modules/getcwd (configure.ac): ... to here.
9585
9586 2011-05-08  Bruno Haible  <bruno@clisp.org>
9587
9588         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
9589         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
9590         here...
9591         * modules/getcwd-lgpl (configure.ac): ... to here.
9592
9593 2011-05-07  Bruno Haible  <bruno@clisp.org>
9594
9595         crypto/gc: Move AC_LIBOBJ invocations to module description.
9596         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
9597         * modules/crypto/gc (configure.ac): ... to here.
9598
9599 2011-05-07  Bruno Haible  <bruno@clisp.org>
9600
9601         fwriting: Move AC_LIBOBJ invocations to module description.
9602         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
9603         here...
9604         * modules/fwriting (configure.ac): ... to here.
9605
9606 2011-05-07  Bruno Haible  <bruno@clisp.org>
9607
9608         fwritable: Move AC_LIBOBJ invocations to module description.
9609         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
9610         here...
9611         * modules/fwritable (configure.ac): ... to here.
9612
9613 2011-05-07  Bruno Haible  <bruno@clisp.org>
9614
9615         futimens: Move AC_LIBOBJ invocations to module description.
9616         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
9617         here...
9618         * modules/futimens (configure.ac): ... to here.
9619
9620 2011-05-07  Bruno Haible  <bruno@clisp.org>
9621
9622         ftruncate: Move AC_LIBOBJ invocations to module description.
9623         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
9624         gl_PREREQ_FTRUNCATE invocations from here...
9625         * modules/ftruncate (configure.ac): ... to here.
9626
9627 2011-05-07  Bruno Haible  <bruno@clisp.org>
9628
9629         fsync: Move AC_LIBOBJ invocations to module description.
9630         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
9631         invocations from here...
9632         * modules/fsync (configure.ac): ... to here.
9633
9634 2011-05-07  Bruno Haible  <bruno@clisp.org>
9635
9636         fsusage: Move AC_LIBOBJ invocations to module description.
9637         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
9638         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
9639         * modules/fsusage (configure.ac): ... to here.
9640
9641 2011-05-07  Bruno Haible  <bruno@clisp.org>
9642
9643         freopen: Move AC_LIBOBJ invocations to module description.
9644         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
9645         invocations from here...
9646         * modules/freopen (configure.ac): ... to here.
9647
9648 2011-05-07  Bruno Haible  <bruno@clisp.org>
9649
9650         free: Move AC_LIBOBJ invocations to module description.
9651         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
9652         invocations from here...
9653         * modules/free (configure.ac): ... to here.
9654
9655 2011-05-07  Bruno Haible  <bruno@clisp.org>
9656
9657         freadable: Move AC_LIBOBJ invocations to module description.
9658         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
9659         here...
9660         * modules/freadable (configure.ac): ... to here.
9661
9662 2011-05-07  Bruno Haible  <bruno@clisp.org>
9663
9664         fpurge: Move AC_LIBOBJ invocations to module description.
9665         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
9666         invocations from here...
9667         * modules/fpurge (configure.ac): ... to here.
9668
9669 2011-05-07  Bruno Haible  <bruno@clisp.org>
9670
9671         fpending: Move AC_LIBOBJ invocations to module description.
9672         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
9673         gl_FUNC_FPENDING.
9674         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
9675         invocations from here...
9676         * modules/fpending (configure.ac): ... to here.
9677
9678 2011-05-07  Bruno Haible  <bruno@clisp.org>
9679
9680         fopen: Move AC_LIBOBJ invocations to module description.
9681         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
9682         invocations from here...
9683         * modules/fopen (configure.ac): ... to here.
9684
9685 2011-05-07  Bruno Haible  <bruno@clisp.org>
9686
9687         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
9688         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
9689         gl_FUNC_FNMATCH_POSIX.
9690         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
9691         invocations from here...
9692         * modules/fnmatch (configure.ac): ... to here.
9693         * modules/fnmatch-gnu (configure.ac): ... and here.
9694
9695 2011-05-07  Bruno Haible  <bruno@clisp.org>
9696
9697         flock: Move AC_LIBOBJ invocations to module description.
9698         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
9699         invocations from here...
9700         * modules/flock (configure.ac): ... to here.
9701
9702 2011-05-07  Bruno Haible  <bruno@clisp.org>
9703
9704         fileblocks: Move AC_LIBOBJ invocations to module description.
9705         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
9706         gl_PREREQ_FILEBLOCKS invocations from here...
9707         * modules/fileblocks (configure.ac): ... to here.
9708
9709 2011-05-06  Bruno Haible  <bruno@clisp.org>
9710
9711         fflush: Move AC_LIBOBJ invocations to module description.
9712         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
9713         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
9714         invocations from here...
9715         * modules/fflush (configure.ac): ... to here.
9716
9717 2011-05-06  Bruno Haible  <bruno@clisp.org>
9718
9719         fdopendir: Move AC_LIBOBJ invocations to module description.
9720         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
9721         here...
9722         * modules/fdopendir (configure.ac): ... to here.
9723         (Depends-on): Improve conditions.
9724
9725 2011-05-06  Bruno Haible  <bruno@clisp.org>
9726
9727         _Exit: Move AC_LIBOBJ invocations to module description.
9728         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
9729         invocations from here...
9730         * modules/_Exit (configure.ac): ... to here.
9731
9732 2011-05-21  Bruno Haible  <bruno@clisp.org>
9733
9734         euidaccess: Respect rules for use of AC_LIBOBJ.
9735         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
9736         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
9737         from here...
9738         * modules/euidaccess (configure.ac): ... to here.
9739
9740 2011-05-06  Bruno Haible  <bruno@clisp.org>
9741
9742         error: Move AC_LIBOBJ invocations to module description.
9743         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
9744         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
9745         invocations from here...
9746         * modules/error (configure.ac): ... to here.
9747
9748 2011-05-06  Bruno Haible  <bruno@clisp.org>
9749
9750         duplocale: Move AC_LIBOBJ invocations to module description.
9751         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
9752         gl_PREREQ_DUPLOCALE invocations from here...
9753         * modules/duplocale (configure.ac): ... to here.
9754
9755 2011-05-05  Bruno Haible  <bruno@clisp.org>
9756
9757         dirfd: Move AC_LIBOBJ invocations to module description.
9758         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
9759         gl_FUNC_DIRFD.
9760         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
9761         here...
9762         * modules/dirfd (configure.ac): ... to here.
9763         (Depends-on): Fix condition.
9764
9765 2011-05-05  Bruno Haible  <bruno@clisp.org>
9766
9767         chown: Respect rules for use of AC_LIBOBJ.
9768         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
9769         * modules/chown (configure.ac): ... to here.
9770
9771 2011-05-05  Bruno Haible  <bruno@clisp.org>
9772
9773         chdir-long: Move AC_LIBOBJ invocations to module description.
9774         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
9775         gl_PREREQ_CHDIR_LONG invocations from here...
9776         * modules/chdir-long (configure.ac): ... to here.
9777
9778 2011-05-05  Bruno Haible  <bruno@clisp.org>
9779
9780         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
9781         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
9782         from here...
9783         * modules/canonicalize-lgpl (configure.ac): ... to here.
9784
9785 2011-05-05  Bruno Haible  <bruno@clisp.org>
9786
9787         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
9788         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
9789         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
9790         REPLACE_CALLOC.
9791         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
9792         * modules/calloc-gnu (configure.ac): Likewise.
9793
9794 2011-05-05  Bruno Haible  <bruno@clisp.org>
9795
9796         btowc: Move AC_LIBOBJ invocations to module description.
9797         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
9798         invocations from here...
9799         * modules/btowc (configure.ac): ... to here.
9800
9801 2011-05-21  Bruno Haible  <bruno@clisp.org>
9802
9803         atexit: Move AC_LIBOBJ invocations to module description.
9804         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
9805         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
9806         here...
9807         * modules/atexit (configure.ac): ... to here.
9808
9809 2011-05-05  Bruno Haible  <bruno@clisp.org>
9810
9811         atoll: Move AC_LIBOBJ invocations to module description.
9812         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
9813         invocations from here...
9814         * modules/atoll (configure.ac): ... to here.
9815
9816 2011-05-05  Bruno Haible  <bruno@clisp.org>
9817
9818         argz: Move AC_LIBOBJ invocations to module description.
9819         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
9820         * modules/argz (configure.ac): ... to here.
9821
9822 2011-05-05  Bruno Haible  <bruno@clisp.org>
9823
9824         alphasort: Move AC_LIBOBJ invocations to module description.
9825         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
9826         gl_PREREQ_ALPHASORT invocations from here...
9827         * modules/alphasort (configure.ac): ... to here.
9828
9829 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
9830
9831         verify: new macro verify_expr; verify_true deprecated
9832         * NEWS: Mention this.
9833         * doc/verify.texi (Compile-time Assertions): Document this.
9834         * lib/verify.h (verify_true): Deprecate.
9835         (verify_expr): New macro.
9836         * tests/test-verify.c (function): Test verify_expr.
9837
9838 2011-06-14  Jim Meyering  <meyering@redhat.com>
9839
9840         init.sh: give more portable redirection-related advice in a comment
9841         * tests/init.sh (stderr_fileno_): Update the advice in comments.
9842         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
9843         for lots of discussion.  Stefano Lattarini suggested the solution
9844         of putting "9>&2" after the command.  Reported by Bruno Haible.
9845
9846 2011-06-13  Bruno Haible  <bruno@clisp.org>
9847
9848         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
9849         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
9850         'none'.
9851
9852 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
9853
9854         ftoastr: use strtof only if HAVE_STRTOF
9855         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
9856         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
9857         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
9858         * modules/ftoastr (configure.ac): Check for strtof.
9859
9860 2011-06-13  Bruno Haible  <bruno@clisp.org>
9861
9862         gnulib-tool: Addendum to 2011-06-08 commit.
9863         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
9864         and --witness-c-macro have been given, augment AM_CPPFLAGS.
9865
9866 2011-06-13  Bruno Haible  <bruno@clisp.org>
9867
9868         fseeko: Provide a non-inline replacement of fseek().
9869         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
9870         * modules/fseeko (Depends-on): Add fseek.
9871         * modules/fseek (License): Change to LGPLv2+.
9872
9873 2011-06-13  Bruno Haible  <bruno@clisp.org>
9874
9875         ftello: Provide a non-inline replacement of ftell().
9876         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
9877         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
9878         not have ftello() (such as on mingw).
9879         * modules/ftello (Depends-on): Add ftell.
9880         * modules/ftell (License): Change to LGPLv2+.
9881
9882 2011-05-07  Bruno Haible  <bruno@clisp.org>
9883
9884         ftell: Move AC_LIBOBJ invocations to module description.
9885         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
9886         * modules/ftell (configure.ac): ... to here.
9887
9888 2011-05-07  Bruno Haible  <bruno@clisp.org>
9889
9890         ftello: Respect rules for use of AC_LIBOBJ.
9891         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
9892         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
9893         here...
9894         * modules/ftello (configure.ac): ... to here.
9895
9896 2011-05-07  Bruno Haible  <bruno@clisp.org>
9897
9898         fseeko: Simplify.
9899         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
9900         (gl_FUNC_FSEEKO): Inline it here.
9901
9902 2011-05-07  Bruno Haible  <bruno@clisp.org>
9903
9904         fseek: Move AC_LIBOBJ invocations to module description.
9905         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
9906         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
9907         * modules/fseek (configure.ac): ... to here.
9908
9909 2011-05-07  Bruno Haible  <bruno@clisp.org>
9910
9911         fseek: Respect rules for use of AC_LIBOBJ.
9912         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
9913         here...
9914         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
9915
9916 2011-05-07  Bruno Haible  <bruno@clisp.org>
9917
9918         fseeko: Respect rules for use of AC_LIBOBJ.
9919         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
9920         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
9921         here...
9922         * modules/fseeko (configure.ac): ... to here.
9923
9924 2011-06-13  Bruno Haible  <bruno@clisp.org>
9925
9926         gnulib-tool: Allow comments in the 'Depends-on' section.
9927         * doc/gnulib.texi (Module description): Mention comment syntax in the
9928         Depends-on section.
9929         * gnulib-tool (func_get_dependencies): Filter out comment lines.
9930
9931 2011-06-13  Bruno Haible  <bruno@clisp.org>
9932
9933         file-set.h: guard __attibute__ use, now that it's not always defined
9934         * lib/file-set.h (record_file): Use __attribute__ only with compiler
9935         versions that support it.  This fixes a coreutils build failure with
9936         the vendor cc on HP-UX 11.31.
9937
9938 2011-06-12  Bruno Haible  <bruno@clisp.org>
9939
9940         acl: Add support for HP-UX >= 11.11 JFS ACLs.
9941         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
9942         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
9943         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
9944         (acl, aclsort): New declarations.
9945         (aclv_nontrivial): New declaration.
9946         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
9947         (file_has_acl): Read also the second kind of HP-UX ACLs.
9948         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
9949         kind of HP-UX ACLs if the first kind fails.
9950         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
9951         second kind of HP-UX ACLs.
9952         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
9953         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
9954         agree.
9955         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9956         hpuxjfs.
9957         Handle hpuxjfs.
9958         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9959         hpuxjfs.
9960         Handle hpuxjfs.
9961         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9962         (func_test_same_acls): Use both lsacl and getacl.
9963         Handle hpuxjfs.
9964         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9965         (func_test_same_acls): Use both lsacl and getacl.
9966         Handle hpuxjfs.
9967
9968 2011-06-12  Bruno Haible  <bruno@clisp.org>
9969
9970         acl: Complete the 2010-08-10 fix.
9971         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
9972         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
9973         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
9974         explicitly.
9975         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
9976         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
9977
9978 2011-06-12  Bruno Haible  <bruno@clisp.org>
9979
9980         spawn-pipe tests: Comments.
9981         * tests/test-spawn-pipe-child.c (main): Update comment.
9982         Reported by James Youngman <jay@gnu.org>.
9983
9984 2011-06-11  James Youngman  <jay@gnu.org>
9985
9986         New module 'stat-size'.
9987         * modules/stat-size: New module.  Provides macros for accessing
9988         file size information in instances of struct stat.  Depends on the
9989         fileblocks module because it calls st_blocks.
9990         * lib/stat-size.h: New file, adapted from coreutils' system.h.
9991         * doc/gnulib.texi: Include stat-size.texi.
9992         * doc/stat-size.texi: Documentation for this module.
9993         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
9994         * m4/fileblocks.m4: Mention that stat-size depends on the call to
9995         AC_STRUCT_ST_BLOCKS.
9996
9997 2011-06-09  Bruno Haible  <bruno@clisp.org>
9998
9999         thread: Support pthreads-win32.
10000         * lib/glthread/thread.h (gl_thread_self): Define differently on
10001         pthreads-win32.
10002         (gl_null_thread): New declaration.
10003         (gl_thread_self_pointer): New macro.
10004         * lib/glthread/thread.c (gl_null_thread): New constant.
10005         * tests/test-lock.c: Use gl_thread_self_pointer instead of
10006         gl_thread_self.
10007         * tests/test-tls.c: Likewise.
10008         Suggested by Paul Eggert. Reported by Eric Blake.
10009
10010 2011-06-09  Bruno Haible  <bruno@clisp.org>
10011
10012         thread: Fix confusion between NULL and 0.
10013         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
10014         Reported by Paul Eggert.
10015
10016 2011-06-09  Bruno Haible  <bruno@clisp.org>
10017
10018         spawn-pipe tests: Avoid test failure on HP-UX 11.
10019         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
10020         is closed.
10021
10022 2011-06-09  Bruno Haible  <bruno@clisp.org>
10023
10024         acl tests: Fix compilation error on HP-UX 11.
10025         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
10026
10027 2011-06-09  Bruno Haible  <bruno@clisp.org>
10028
10029         rmdir: Avoid test failure on HP-UX 10.20.
10030         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
10031         EEXIST.
10032
10033 2011-06-08  Eric Blake  <eblake@redhat.com>
10034
10035         perror: fix test on mingw
10036         * modules/perror-tests (Depends-on): Add dup2.
10037
10038         strerror_r-posix: fix on MacOS
10039         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
10040         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
10041         logic bug.
10042         * lib/strerror_r.c (strerror_r): Fix the bug.
10043         * lib/strerror.c (strerror): Likewise.
10044         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
10045         problem.
10046         * doc/posix-functions/strerror.texi (strerror): Likewise.
10047         * doc/posix-functions/perror.texi (perror): Likewise.
10048         * tests/test-strerror.c (main): Enhance test.
10049         * tests/test-strerror_r.c (main): Likewise.
10050
10051 2011-06-08  Bruno Haible  <bruno@clisp.org>
10052
10053         gnulib-tool: Better isolation between different gnulib-tool invocations.
10054         * gnulib-tool: New option --witness-c-macro.
10055         (witness_c_macro): New variable.
10056         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
10057         AM_CPPFLAGS define it as a C macro.
10058         (func_emit_tests_Makefile_am): Likewise.
10059         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
10060         read it from there.
10061         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
10062         m4_define, not AC_DEFUN.
10063         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
10064         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
10065         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
10066         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
10067         s|...|...|, to substitute the values of the GNULIB_* module indicator
10068         variables.
10069         * modules/dirent (Makefile.am): Likewise.
10070         * modules/fcntl-h (Makefile.am): Likewise.
10071         * modules/iconv-h (Makefile.am): Likewise.
10072         * modules/langinfo (Makefile.am): Likewise.
10073         * modules/locale (Makefile.am): Likewise.
10074         * modules/math (Makefile.am): Likewise.
10075         * modules/netdb (Makefile.am): Likewise.
10076         * modules/poll-h (Makefile.am): Likewise.
10077         * modules/pty (Makefile.am): Likewise.
10078         * modules/search (Makefile.am): Likewise.
10079         * modules/signal (Makefile.am): Likewise.
10080         * modules/spawn (Makefile.am): Likewise.
10081         * modules/stdio (Makefile.am): Likewise.
10082         * modules/stdlib (Makefile.am): Likewise.
10083         * modules/string (Makefile.am): Likewise.
10084         * modules/sys_ioctl (Makefile.am): Likewise.
10085         * modules/sys_select (Makefile.am): Likewise.
10086         * modules/sys_socket (Makefile.am): Likewise.
10087         * modules/sys_stat (Makefile.am): Likewise.
10088         * modules/sys_times (Makefile.am): Likewise.
10089         * modules/sys_utsname (Makefile.am): Likewise.
10090         * modules/sys_wait (Makefile.am): Likewise.
10091         * modules/termios (Makefile.am): Likewise.
10092         * modules/time (Makefile.am): Likewise.
10093         * modules/unistd (Makefile.am): Likewise.
10094         * modules/wchar (Makefile.am): Likewise.
10095
10096 2011-06-08  Eric Blake  <eblake@redhat.com>
10097
10098         strerror: simplify replacement
10099         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
10100         * modules/strerror (configure.ac): No prereqs needed here...
10101         * modules/strerror-override (configure.ac): ...but this needs it.
10102         (Files): Add file for needed prereq macro.
10103
10104 2011-06-08  Bruno Haible  <bruno@clisp.org>
10105
10106         strerror_r-posix: Tweaks.
10107         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
10108         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
10109         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
10110         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
10111         (gl_FUNC_STRERROR_R): ... to here.
10112         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
10113
10114 2011-06-07  Eric Blake  <eblake@redhat.com>
10115
10116         perror: document fixed bugs
10117         * doc/posix-functions/perror.texi (perror): Document recent
10118         patches.
10119
10120 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
10121
10122         stat-time: get_stat_birthtime failure is better-defined
10123         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
10124         return a timestamp whose tv_sec and tv_nsec values are both -1.
10125         Previously, the spec said only that the tv_nsec value was negative.
10126         This upward-compatible change simplifies GNU tar a bit.
10127
10128 2011-06-07  Eric Blake  <eblake@redhat.com>
10129
10130         strerror_r-posix: work around cygwin 1.7.9
10131         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
10132         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
10133         bug without replacing strerror_r.
10134         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
10135         strerror_r is buggy, but without requiring strerror_r compilation.
10136         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
10137
10138         test-perror: relax test to ignore cygwin bug
10139         * tests/test-perror2.c (main): Relax test on requiring detection
10140         of stream errors, and use unbuffered stream.
10141         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
10142         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
10143         * doc/posix-functions/fputc.texi (fputc): Likewise.
10144         * doc/posix-functions/fputs.texi (fputs): Likewise.
10145         * doc/posix-functions/fputws.texi (fputws): Likewise.
10146         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
10147         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
10148         * doc/posix-functions/getopt.texi (getopt): Likewise.
10149         * doc/posix-functions/perror.texi (perror): Likewise.
10150         * doc/posix-functions/printf.texi (printf): Likewise.
10151         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
10152         * doc/posix-functions/psignal.texi (psignal): Likewise.
10153         * doc/posix-functions/putc.texi (putc): Likewise.
10154         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
10155         Likewise.
10156         * doc/posix-functions/putchar.texi (putchar): Likewise.
10157         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
10158         Likewise.
10159         * doc/posix-functions/puts.texi (puts): Likewise.
10160         * doc/posix-functions/putwc.texi (putwc): Likewise.
10161         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
10162         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
10163         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
10164         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
10165         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
10166         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
10167         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
10168         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
10169
10170 2011-05-22  Bruno Haible  <bruno@clisp.org>
10171
10172         strerror: Move AC_LIBOBJ invocations to module description.
10173         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
10174         gl_PREREQ_STRERROR invocations from here...
10175         * modules/strerror (configure.ac): ... to here.
10176
10177 2011-05-21  Bruno Haible  <bruno@clisp.org>
10178
10179         perror: Use common idiom.
10180         * modules/perror (configure.ac): Reorder statements.
10181
10182 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
10183
10184         tests: fix usage message in 'mktempd_'
10185         * tests/init.sh (mktempd_): In the usage message, use literal
10186         'mktempd_', not '$ME' (which is even undefined), as the name of
10187         the subroutine.
10188
10189 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
10190
10191         tests init: new function 'fatal_', for hard errors
10192         Before this patch, the only way offered by tests/init.sh to
10193         properly signal a hard error was the `framework_failure_'
10194         function.  But the error message issued by that function,
10195         as its name would suggest, refers to a set-up failure in the
10196         testsuite, while hard errors can obviously also be due to
10197         other reasons.  The best way to fix this inconsistency is to
10198         introduce a new function with a more general error message.
10199         * tests/init.sh (fatal_): New function.
10200
10201 2011-06-06  Eric Blake  <eblake@redhat.com>
10202
10203         canonicalize-lgpl: use common idiom
10204         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
10205         over newer POSIX -Rf.
10206         Reported by Bruno Haible.
10207
10208         canonicalize-lgpl: work around AIX realpath bug
10209         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
10210         * doc/posix-functions/realpath.texi (realpath): Document it.
10211         Reported by Bruno Haible.
10212
10213         strerror: work around FreeBSD bug
10214         * lib/strerror.c (strerror): Special case 0.
10215         Reported by Bruno Haible.
10216
10217         strerror-override: avoid bloating errno module
10218         * modules/errno (Files, configure.ac): Move replacement strings...
10219         * modules/strerror-override: ...to new module.
10220         * modules/strerror (Depends-on): Add strerror-override.
10221         * modules/strerror_r-posix (Depends-on): Likewise.
10222         * MODULES.html.sh: Document new module.
10223         Reported by Bruno Haible.
10224
10225 2011-06-06  Bruno Haible  <bruno@clisp.org>
10226
10227         spawn-pipe tests: Rename program.
10228         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
10229         * tests/test-spawn-pipe-child.c: Update comment.
10230         * tests/test-spawn-pipe.sh: Update.
10231         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
10232
10233         spawn-pipe tests: Link the child program only against libc.
10234         * tests/test-spawn-pipe-child.c: New file, extracted from
10235         tests/test-spawn-pipe.c.
10236         (main): Expect only one argument.
10237         (is_open): New function, copied from tests/test-pipe.c.
10238         * tests/test-spawn-pipe.c: Don't include <errno.h>.
10239         (child_main): Remove function.
10240         (test_pipe): Pass only one argument to the child program.
10241         (main): Remove child process code. Expect the child program's name as
10242         first argument.
10243         * tests/test-spawn-pipe.sh: Pass the child program's name as first
10244         argument.
10245         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
10246         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
10247         test-spawn-pipe-child against no libraries.
10248
10249 2011-06-06  Bruno Haible  <bruno@clisp.org>
10250
10251         careadlinkat: Avoid mismatch between ssize_t and int.
10252         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
10253         * lib/careadlinkat.c (careadlinkatcwd): Define always.
10254
10255 2011-06-06  Jim Meyering  <meyering@redhat.com>
10256
10257         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
10258         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
10259         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
10260
10261 2011-06-05  Bruno Haible  <bruno@clisp.org>
10262
10263         ansi-c++-opt: Interoperability with libtool.
10264         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
10265         set the variable to "no", not to ":".
10266         * NEWS: Mention the change.
10267
10268 2011-06-05  Bruno Haible  <bruno@clisp.org>
10269
10270         acl: Fix test failure on AIX 7.
10271         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
10272         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
10273
10274 2011-06-05  Bruno Haible  <bruno@clisp.org>
10275
10276         pipe-filter-ii: Fix test failure on AIX and IRIX.
10277         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
10278         with EAGAIN, retry with a smaller buffer size.
10279
10280 2011-06-05  Bruno Haible  <bruno@clisp.org>
10281
10282         localename: Fix link dependencies.
10283         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
10284         * modules/localename-tests (Makefile.am): Link test-localename with
10285         $(LIBTHREAD).
10286
10287 2011-06-05  Bruno Haible  <bruno@clisp.org>
10288
10289         error: Avoid gcc warning.
10290         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
10291
10292 2011-06-05  Bruno Haible  <bruno@clisp.org>
10293
10294         unsetenv: Avoid gcc warning.
10295         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
10296
10297 2011-06-05  Bruno Haible  <bruno@clisp.org>
10298
10299         setenv: Avoid gcc warning.
10300         * lib/setenv.c (setenv): Provide declaration if system lacks it.
10301
10302 2011-06-05  Bruno Haible  <bruno@clisp.org>
10303
10304         sys_select: Ensure memset is declared also on AIX 7.
10305         * lib/sys_select.in.h: Include <string.h> also on AIX.
10306         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
10307         self-contained also on AIX 7.1.
10308
10309 2011-06-04  Jim Meyering  <meyering@redhat.com>
10310
10311         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
10312         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
10313         function name, "error".
10314         (_gl_translatable_diag_func_re): New configurable variable.
10315
10316 2011-06-04  Bruno Haible  <bruno@clisp.org>
10317
10318         getopt: Avoid gcc warning.
10319         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
10320
10321 2011-06-04  Bruno Haible  <bruno@clisp.org>
10322
10323         strerror_r: Fix comments.
10324         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
10325         commit.
10326
10327 2011-06-04  Bruno Haible  <bruno@clisp.org>
10328
10329         perror: Fix compilation error.
10330         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
10331         Undefine fprintf, not sprintf.
10332         * modules/perror (Depends-on): Remove intprops, verify.
10333
10334 2011-06-04  Bruno Haible  <bruno@clisp.org>
10335
10336         setlocale: Enable replacement on Cygwin 1.5.
10337         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
10338         Cygwin 1.5.x.
10339         * doc/posix-functions/setlocale.texi: Mention that the problem with the
10340         LC_CTYPE category also exists on Cygwin 1.5.x.
10341
10342 2011-06-04  Bruno Haible  <bruno@clisp.org>
10343
10344         strerror-override: Don't disable symbol renamings.
10345         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
10346         * lib/strerror-override.c: Include config.h.
10347         (strerror_override): Don't undefine.
10348
10349 2011-06-03  Bruno Haible  <bruno@clisp.org>
10350
10351         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
10352         * lib/localename.h: Update copyright header.
10353         * lib/localename.c: Likewise.
10354         * lib/relocatable.h: Likewise.
10355         * lib/relocatable.c: Likewise.
10356
10357 2011-06-02  Bruno Haible  <bruno@clisp.org>
10358
10359         doc: Fix a module name.
10360         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
10361
10362 2011-06-02  Bruno Haible  <bruno@clisp.org>
10363
10364         pipe2: Remove dependency on 'nonblocking' module.
10365         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
10366         O_NONBLOCK is defined by gnulib.
10367         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
10368         is zero.
10369         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
10370         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
10371         defined by gnulib.
10372         (get_nonblocking_flag): New function.
10373         (main): Test O_NONBLOCK flag only if it is nonzero.
10374         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
10375
10376 2011-06-03  Jim Meyering  <meyering@redhat.com>
10377
10378         maint: three new prohibit-header-without-use rules
10379         Prohibit use of cloexec.h, posixver.h, same.h without use.
10380         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
10381         (sc_prohibit_posixver_without_use): Likewise.
10382         (sc_prohibit_same_without_use): Likewise.
10383
10384 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
10385
10386         allocator: 'die' routine is now given requested size
10387         * lib/allocator.h (struct allocator.die): New size arg.
10388         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
10389         If the actual problem is an ssize_t limitation, not a size_t or
10390         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
10391
10392 2011-06-01  Eric Blake  <eblake@redhat.com>
10393
10394         strerror: drop strerror_r dependency
10395         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
10396         * lib/strerror-override.c (strerror_override): ...to new file.
10397         * lib/strerror-override.h: Add prototype.
10398         * lib/strerror-impl.h: Delete.
10399         * lib/strerror.c (strerror): New implementation.
10400         * modules/errno (Files): Add new files.
10401         (configure.ac): Compile new file as appropriate.
10402         * modules/strerror (Files): Drop unused file.
10403         (Depends-on): Drop strerror_r-posix.
10404         * MODULES.html.sh: Document strerror_r-posix.
10405         Requested by Sam Steingold.
10406
10407         perror: call strerror_r directly
10408         * modules/perror (Files): Drop strerror-impl.h.
10409         * lib/perror.c (perror): Use our own stack buffer, rather than
10410         calling a wrapper that uses static storage.
10411         * doc/posix-functions/perror.texi (perror): Document a limitation
10412         of our replacement.
10413
10414         strerror_r: fix includes for FreeBSD
10415         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
10416         since we use abort on some platforms.
10417         Reported by Matthias Bolte.
10418
10419 2011-05-31  Bruno Haible  <bruno@clisp.org>
10420
10421         Fix link errors in tests: openat-die uses gettext-h.
10422         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
10423         against $(LIBINTL).
10424         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
10425         against $(LIBINTL).
10426         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
10427         $(LIBINTL).
10428         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
10429         against $(LIBINTL).
10430         * modules/linkat-tests (Makefile.am): Link test-linkat against
10431         $(LIBINTL).
10432         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
10433         $(LIBINTL).
10434         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
10435         against $(LIBINTL).
10436         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
10437         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
10438         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
10439         $(LIBINTL).
10440         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
10441         $(LIBINTL).
10442         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
10443         $(LIBINTL).
10444         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10445
10446 2011-05-31  Bruno Haible  <bruno@clisp.org>
10447
10448         Fix link errors in tests: wait-process uses gettext-h.
10449         * modules/nonblocking-pipe-tests (Makefile.am): Set
10450         test_nonblocking_pipe_main_LDADD.
10451         * modules/nonblocking-socket-tests (Makefile.am): Link
10452         test-nonblocking-socket-main against $(LIBINTL).
10453         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10454
10455 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
10456
10457         assert-h: work around 'verify' incompatibility
10458         * lib/verify.h: Use @...@ directives, not ifdef.
10459         * modules/assert-h (assert.h): Implement the directives.
10460         (assert.h): Substitute the symbol-prefix more consistently.
10461
10462 2011-05-29  Jim Meyering  <meyering@redhat.com>
10463
10464         trim: remove three superfluous assignments
10465         * lib/trim.c (trim2): Remove three superfluous assignments
10466         and correct brace positioning.
10467
10468 2011-05-29  Bruno Haible  <bruno@clisp.org>
10469
10470         wctype-h: Avoid namespace pollution on Solaris 2.6.
10471         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
10472         identifiers.
10473         * doc/posix-headers/wctype.texi: Mention the problem.
10474         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10475
10476 2011-05-28  Jim Meyering  <meyering@redhat.com>
10477
10478         parse-datetime.y: accommodate -Wstrict-overflow
10479         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
10480         placate -Wstrict-overflow.
10481
10482         trim: avoid a warning from -O2 -Wstrict-overflow
10483         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
10484
10485 2011-05-29  Bruno Haible  <bruno@clisp.org>
10486
10487         gnulib-tool: Fix bug in yesterday's commit.
10488         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
10489         twice.
10490
10491 2011-05-29  Bruno Haible  <bruno@clisp.org>
10492
10493         Allow multiple gnulib generated include files to be combined.
10494         * gnulib-tool (func_compute_include_guard_prefix): New function.
10495         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
10496         ${gl_include_guard_prefix} references.
10497         (func_import, func_create_testdir): Invoke
10498         func_compute_include_guard_prefix.
10499         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
10500         * lib/ctype.in.h: Likewise.
10501         * lib/dirent.in.h: Likewise.
10502         * lib/errno.in.h: Likewise.
10503         * lib/fcntl.in.h: Likewise.
10504         * lib/float.in.h: Likewise.
10505         * lib/getopt.in.h: Likewise.
10506         * lib/iconv.in.h: Likewise.
10507         * lib/langinfo.in.h: Likewise.
10508         * lib/locale.in.h: Likewise.
10509         * lib/math.in.h: Likewise.
10510         * lib/netdb.in.h: Likewise.
10511         * lib/netinet_in.in.h: Likewise.
10512         * lib/poll.in.h: Likewise.
10513         * lib/pthread.in.h: Likewise.
10514         * lib/pty.in.h: Likewise.
10515         * lib/sched.in.h: Likewise.
10516         * lib/se-selinux.in.h: Likewise.
10517         * lib/search.in.h: Likewise.
10518         * lib/signal.in.h: Likewise.
10519         * lib/spawn.in.h: Likewise.
10520         * lib/stdarg.in.h: Likewise.
10521         * lib/stddef.in.h: Likewise.
10522         * lib/stdint.in.h: Likewise.
10523         * lib/stdio.in.h: Likewise.
10524         * lib/stdlib.in.h: Likewise.
10525         * lib/string.in.h: Likewise.
10526         * lib/strings.in.h: Likewise.
10527         * lib/sys_file.in.h: Likewise.
10528         * lib/sys_ioctl.in.h: Likewise.
10529         * lib/sys_select.in.h: Likewise.
10530         * lib/sys_socket.in.h: Likewise.
10531         * lib/sys_stat.in.h: Likewise.
10532         * lib/sys_time.in.h: Likewise.
10533         * lib/sys_times.in.h: Likewise.
10534         * lib/sys_uio.in.h: Likewise.
10535         * lib/sys_utsname.in.h: Likewise.
10536         * lib/sys_wait.in.h: Likewise.
10537         * lib/sysexits.in.h: Likewise.
10538         * lib/termios.in.h: Likewise.
10539         * lib/time.in.h: Likewise.
10540         * lib/unistd.in.h: Likewise.
10541         * lib/wchar.in.h: Likewise.
10542         * lib/wctype.in.h: Likewise.
10543         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
10544         * modules/ctype (Makefile.am): Likewise.
10545         * modules/dirent (Makefile.am): Likewise.
10546         * modules/errno (Makefile.am): Likewise.
10547         * modules/fcntl-h (Makefile.am): Likewise.
10548         * modules/float (Makefile.am): Likewise.
10549         * modules/getopt-posix (Makefile.am): Likewise.
10550         * modules/iconv-h (Makefile.am): Likewise.
10551         * modules/langinfo (Makefile.am): Likewise.
10552         * modules/locale (Makefile.am): Likewise.
10553         * modules/math (Makefile.am): Likewise.
10554         * modules/netdb (Makefile.am): Likewise.
10555         * modules/netinet_in (Makefile.am): Likewise.
10556         * modules/poll-h (Makefile.am): Likewise.
10557         * modules/pthread (Makefile.am): Likewise.
10558         * modules/pty (Makefile.am): Likewise.
10559         * modules/sched (Makefile.am): Likewise.
10560         * modules/search (Makefile.am): Likewise.
10561         * modules/selinux-h (Makefile.am): Likewise.
10562         * modules/signal (Makefile.am): Likewise.
10563         * modules/spawn (Makefile.am): Likewise.
10564         * modules/stdarg (Makefile.am): Likewise.
10565         * modules/stddef (Makefile.am): Likewise.
10566         * modules/stdint (Makefile.am): Likewise.
10567         * modules/stdio (Makefile.am): Likewise.
10568         * modules/stdlib (Makefile.am): Likewise.
10569         * modules/string (Makefile.am): Likewise.
10570         * modules/strings (Makefile.am): Likewise.
10571         * modules/sys_file (Makefile.am): Likewise.
10572         * modules/sys_ioctl (Makefile.am): Likewise.
10573         * modules/sys_select (Makefile.am): Likewise.
10574         * modules/sys_socket (Makefile.am): Likewise.
10575         * modules/sys_stat (Makefile.am): Likewise.
10576         * modules/sys_time (Makefile.am): Likewise.
10577         * modules/sys_times (Makefile.am): Likewise.
10578         * modules/sys_uio (Makefile.am): Likewise.
10579         * modules/sys_utsname (Makefile.am): Likewise.
10580         * modules/sys_wait (Makefile.am): Likewise.
10581         * modules/sysexits (Makefile.am): Likewise.
10582         * modules/termios (Makefile.am): Likewise.
10583         * modules/time (Makefile.am): Likewise.
10584         * modules/unistd (Makefile.am): Likewise.
10585         * modules/wchar (Makefile.am): Likewise.
10586         * modules/wctype-h (Makefile.am): Likewise.
10587         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
10588
10589 2011-05-29  Bruno Haible  <bruno@clisp.org>
10590
10591         assert-h: Allow multiple gnulib generated replacements to coexist.
10592         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
10593
10594 2011-05-29  Bruno Haible  <bruno@clisp.org>
10595
10596         argp: Allow coexistence with strerror_r-posix module.
10597         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
10598         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
10599         by gnulib's <string.h> replacement), assume it has the POSIX signature,
10600         not the glibc signature.
10601
10602 2011-05-28  Bruno Haible  <bruno@clisp.org>
10603
10604         gnulib-tool: Alternative structure of testdirs, similar to --import.
10605         * gnulib-tool: New option --single-configure.
10606         (func_usage): Document it.
10607         (single_configure): New variable.
10608         (func_modules_transitive_closure_separately,
10609         func_modules_transitive_closure_separately,
10610         func_determine_use_libtests, func_modules_add_dummy_separately,
10611         func_modules_to_filelist_separately): New functions, extracted from
10612         func_import.
10613         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
10614         (func_import): Use the new functions.
10615         (func_create_testdir): Set final_modules. Handle $single_configure =
10616         true case.
10617
10618 2011-05-28  Bruno Haible  <bruno@clisp.org>
10619
10620         getloadavg: Remove an unreliable safety check.
10621         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
10622         getloadavg.c is in place.
10623         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
10624         Reported by Sam Steingold <sds@gnu.org>.
10625
10626 2011-05-28  Bruno Haible  <bruno@clisp.org>
10627
10628         doc: Cleanup yet another file produced by texinfo.tex.
10629         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
10630
10631 2011-05-28  Bruno Haible  <bruno@clisp.org>
10632
10633         Finish the conditional dependencies mechanism.
10634         * gnulib-tool: New option --no-conditional-dependencies.
10635         (func_usage): Document it. Don't mark --conditional-dependencies as
10636         experimental.
10637         (cond_dependencies): The possible values can now be true, false, empty.
10638         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
10639         (func_import): Store setting in gnulib-cache.m4 and read it from there.
10640         * doc/gnulib-tool.texi (Conditional dependencies): New section.
10641
10642 2011-05-28  Bruno Haible  <bruno@clisp.org>
10643
10644         doc: Use a recent texinfo.tex.
10645         * doc/Makefile (tex_opts): New variable.
10646         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
10647
10648 2011-05-28  Jim Meyering  <meyering@redhat.com>
10649
10650         intprops.h: adjust comment to match code change
10651         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
10652         only once, it *may* have side effects.  Also fix an unrelated typo.
10653         (_GL_INT_SIGNED): Likewise.
10654
10655 2011-05-26  Simon Josefsson  <simon@josefsson.org>
10656
10657         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
10658
10659 2011-05-26  Bruno Haible  <bruno@clisp.org>
10660
10661         mbsrchr: Avoid collision with system function on Interix.
10662         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
10663         Reported by Markus Duft <mduft@gentoo.org>.
10664
10665 2011-05-15  James Youngman  <jay@gnu.org>
10666
10667         getopt: for ambiguous options, enumerate the possibilities.
10668         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
10669         the ambiguous options when an ambiguous prefix is given. This was
10670         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
10671         glibc change was
10672         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
10673
10674 2011-05-25  Eric Blake  <eblake@redhat.com>
10675
10676         getcwd: work around mingw bug
10677         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
10678         * doc/posix-functions/getcwd.texi (getcwd): Document it.
10679         Reported by Matthias Bolte.
10680
10681 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
10682
10683         test-intprops: disable -Wtype-limits diagnostics
10684         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
10685         diagnostics.  Otherwise, the integer overflow macros generate many
10686         diagnostics.  Reported by Jim Meyering in
10687         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
10688
10689         intprops: shorten, to pacify gcc -Woverlength-strings
10690         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
10691         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
10692         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
10693         likely to run afoul of C compiler limits for string constant lengths.
10694         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
10695
10696 2011-05-24  Eric Blake  <eblake@redhat.com>
10697
10698         docs: document recently fixed glibc printf bug
10699         * doc/posix-functions/fprintf.texi (fprintf): Document it.
10700         * doc/posix-functions/printf.texi (printf): Likewise.
10701         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
10702         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
10703
10704         closein-tests: convert to init.sh
10705         * modules/closein-tests (Files): Add init.sh
10706         * tests/test-closein.sh Use it.
10707
10708         yesno-tests: convert to init.sh
10709         * modules/yesno-tests (Files): Add init.sh.
10710         * tests/test-yesno.sh: Use it.
10711
10712         atexit-tests: ensure reliable exit status
10713         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
10714         Reported by Bruno Haible.
10715
10716 2011-05-24  Bruno Haible  <bruno@clisp.org>
10717
10718         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
10719         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
10720         gl_PREREQ_STRERROR_R invocations from here...
10721         * modules/strerror_r-posix (configure.ac): ... to here.
10722
10723 2011-05-24  Eric Blake  <eblake@redhat.com>
10724
10725         strerror_r: fix missing header
10726         * lib/strerror_r.c: Avoid compiler warning about snprintf.
10727
10728         strerror_r: fix AIX test failures
10729         * lib/strerror_r.c (strerror_r): Convert silent truncation to
10730         ERANGE failure.
10731
10732         strerror_r: fix Solaris test failures
10733         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
10734         failures.
10735         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10736
10737         strerror_r: enforce POSIX recommendations
10738         * lib/strerror_r.c (safe_copy): New helper method.
10739         (strerror_r): Guarantee a non-empty string.
10740         * tests/test-strerror_r.c (main): Enhance tests to incorporate
10741         recent POSIX rulings and to match our strerror guarantees.
10742         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10743
10744 2011-05-24  Jim Meyering  <meyering@redhat.com>
10745
10746         test-perror2.c: avoid warning about unused variable
10747         * tests/test-perror2.c (main): Remove declaration of unused "fp".
10748
10749 2011-05-24  Eric Blake  <eblake@redhat.com>
10750
10751         perror: avoid spurious test failure on HP-UX
10752         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
10753
10754         tests: fix logic bug in init.sh
10755         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
10756         shell.
10757
10758 2011-05-24  Jim Meyering  <meyering@redhat.com>
10759
10760         utimensat: do not reference an out-of-scope buffer
10761         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
10762         declared in an inner scope, yet "times" would be dereferenced outside
10763         the scope in which "ts" was valid.
10764         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
10765         of ts[2] "out/up", so that the use of aliased "times" (via
10766         "times = ts;") does not end up referencing an out-of-scope "ts"
10767
10768         opendir-safer.c: don't clobber errno; don't close negative FD
10769         * lib/opendir-safer.c (opendir_safer):
10770         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
10771         file descriptor, and more importantly, don't clobber the
10772         offending errno value with EINVAL.  Before, upon failure
10773         of dup_safer, we would pass the negative file descriptor to
10774         fdopendir, which would clobber errno.
10775
10776 2011-05-23  Bruno Haible  <bruno@clisp.org>
10777
10778         idcache: Fix module description.
10779         * modules/idcache (Include): Set to "idcache.h".
10780
10781 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
10782
10783         gnulib-tool: fix portability problem with MacOS sed
10784         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
10785         before the "}".  Problem reported by Leo in
10786         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
10787         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
10788         sed_extract_condition1, sed_extract_condition2.
10789
10790 2011-05-23  Bruno Haible  <bruno@clisp.org>
10791
10792         hash: Simplify autoconf macro.
10793         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
10794
10795 2011-05-23  Bruno Haible  <bruno@clisp.org>
10796
10797         getugroups: Fix module description.
10798         * modules/getugroups (Include): Set to "getugroups.h".
10799
10800 2011-05-23  Bruno Haible  <bruno@clisp.org>
10801
10802         linkat: Simplify autoconf macro.
10803         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
10804
10805 2011-05-23  Bruno Haible  <bruno@clisp.org>
10806             Eric Blake  <eblake@redhat.com>
10807
10808         linkat, renameat: Update dependencies.
10809         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
10810         * modules/linkat (Depends-on): Likewise. Remove also readlink,
10811         symlinkat.
10812
10813 2011-05-23  Jim Meyering  <meyering@redhat.com>
10814
10815         maint.mk: more tight_scope improvements
10816         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
10817         (_gl_TS_headers): Define only in if-0'd block.
10818         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
10819         sometimes we must *not* use it.  Adjust uses accordingly.
10820         (sc_tight_scope): Use much simpler grep-based test to determine
10821         whether we skip this rule.
10822
10823         maint.mk: generalize/improve the tight-scope rule
10824         * top/maint.mk: Emit a warning when the test is skipped.
10825         (_gl_TS_dir): Add $(srcdir)/ prefix.
10826         (_gl_TS_function_match): Simplify, rather than trying
10827         to enumerate common types.  Otherwise, it would fail to match an
10828         "extern unsigned char const *" declaration in idutils.
10829         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
10830         a way to support use of that type of macro.
10831         (_gl_TS_var_match): Simplify regexp.
10832         (_gl_TS_obj_files): New configurable variable.
10833         (_gl_TS_headers): Likewise.
10834
10835 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
10836
10837         verify: fix bug when gnulib <assert.h> is also included
10838         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
10839         is defined, not if _GL_STATIC_ASSERT_H is not defined.
10840         Perhaps there's a better way, but this fixes the immediate problem.
10841         Problem reported by Bruno Haible in
10842         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
10843
10844 2011-05-22  Bruno Haible  <bruno@clisp.org>
10845
10846         xgetcwd: Simplify autoconf macro.
10847         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
10848
10849 2011-05-22  Bruno Haible  <bruno@clisp.org>
10850
10851         New module 'mktime-internal'.
10852         * modules/mktime-internal: New file.
10853         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
10854         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
10855         mktime_internal as a C macro if libc has __mktime_internal.
10856         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
10857         conditions.
10858         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
10859
10860 2011-05-22  Bruno Haible  <bruno@clisp.org>
10861
10862         timegm: Correct mktime replacement statements.
10863         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
10864         defining mktime as a C macro. This completes a 2009-07-28 commit.
10865
10866 2011-05-22  Bruno Haible  <bruno@clisp.org>
10867
10868         timegm: Simplify autoconf macro.
10869         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
10870
10871 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
10872
10873         clock-time: change to LGPLv2+.
10874         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
10875         BSD-like but we have no mark for that; this is good enough for now.
10876
10877 2011-05-21  Bruno Haible  <bruno@clisp.org>
10878
10879         strerror_r: Fix comments.
10880         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
10881
10882 2011-05-21  Bruno Haible  <bruno@clisp.org>
10883
10884         relocatable-prog-wrapper: Fix possible link error.
10885         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
10886         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
10887         (gl_FUNC_SETENV): ... to here.
10888         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
10889         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
10890
10891 2011-05-21  Bruno Haible  <bruno@clisp.org>
10892
10893         relocatable-prog-wrapper: Assume strerror() exists.
10894         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
10895         m4/strerror.m4.
10896         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
10897         * lib/relocwrapper.c: Remove mention of strerror module.
10898         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
10899         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
10900         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
10901         C macro.
10902
10903 2011-05-21  Bruno Haible  <bruno@clisp.org>
10904
10905         select: Simplify replacement idiom.
10906         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
10907         Win32 platforms.
10908         * lib/sys_select.in.h (select): Simplify accordingly.
10909         * modules/select (Depends-on): Likewise.
10910
10911 2011-05-21  Bruno Haible  <bruno@clisp.org>
10912
10913         mkdir-p: Simplify autoconf macro.
10914         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
10915         gl_FUNC_LCHOWN.
10916
10917 2011-05-21  Eric Blake  <eblake@redhat.com>
10918
10919         strerror_r: avoid clobbering strerror on cygwin
10920         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
10921         fall back instead to sys_errlist.
10922         * modules/strerror (configure.ac): Add witness.
10923         * tests/test-strerror_r.c (main): Enhance test.
10924         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10925         * tests/test-perror2.c (main): Free memory before exit.
10926
10927 2011-05-21  Bruno Haible  <bruno@clisp.org>
10928
10929         mkdtemp: Use gnulib naming conventions.
10930         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
10931         * modules/mkdtemp (configure.ac): Update.
10932
10933 2011-05-20  Eric Blake  <eblake@redhat.com>
10934
10935         strerror_r: avoid corrupting errno on Solaris
10936         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
10937         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10938
10939         strerror_r: avoid compiler warning
10940         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
10941
10942         strerror_r: simplify AIX code
10943         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
10944
10945         test-perror: avoid spurious failure on FreeBSD
10946         * modules/perror-tests (Depends-on): Add strerror, now that
10947         strerror_r no longer pulls it in.
10948
10949 2011-05-20  Bruno Haible  <bruno@clisp.org>
10950
10951         strerror_r-posix: Remove unused dependencies.
10952         * modules/strerror_r-posix (Depends-on): Remove strerror.
10953         Reported by Eric Blake.
10954
10955 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
10956
10957         intprops: remove assumption about A|B representation
10958         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
10959         is a valid integer if both A and B are.  Although this is true for
10960         all known practical hosts, the C standard doesn't guarantee it,
10961         and the code need not assume it.  Also, this change may work around
10962         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
10963         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
10964
10965 2011-05-20  Eric Blake  <eblake@redhat.com>
10966
10967         perror: work around FreeBSD bug
10968         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
10969         is broken.  Move AC_LIBOBJ...
10970         * modules/perror (configure.ac): Here.
10971         * doc/posix-functions/perror.texi (perror): Document this.
10972         * tests/test-perror2.c (main): Enhance test.
10973
10974         test-perror: check for strerror interactions
10975         * tests/macros.h (STREQ): Add macro.
10976         * modules/perror-tests (Files): Add second test.
10977         * tests/test-perror2.c (main): New file.
10978         * doc/posix-functions/perror.texi (perror): Document glibc bug.
10979
10980         test-perror: rewrite to use init script
10981         * modules/perror-tests (Files): Add init.sh.
10982         * tests/test-perror.sh: Use temporary directory.
10983
10984 2011-05-20  Jim Meyering  <meyering@redhat.com>
10985
10986         maint: replace misused "a" with "an"
10987         * doc/intprops.texi: "a integer"
10988         * doc/regex.texi: "a explanation"
10989         * lib/alignof.h: "a object"
10990         * lib/argmatch.h: "a explanation"
10991         * lib/argp-help.c: "a option" and "a OPTION_DOC"
10992         * lib/stdint.in.h: "a integer"
10993         * lib/userspec.c: "a owner"
10994         * doc/gnulib.texi: Fix "a idea", and reword.
10995
10996 2011-05-19  Jim Meyering  <meyering@redhat.com>
10997
10998         maint: correct misuse of "a" and "an"
10999         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
11000         * lib/argp-help.c: "an docum...": s/an/a/
11001         * lib/argp-parse.c: "An vector": s/An/A/
11002         * lib/execute.c: "an native": s/an/a/
11003         * lib/spawn-pipe.c: Likewise.
11004         * lib/gc.h: "an Gc_rc": s/an/a/
11005         * lib/unigbrk.in.h: "an grapheme": s/an/a/
11006         * lib/fts.c: "an stat.st_dev": s/an/a/
11007
11008 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
11009
11010         intprops-tests: work around HP-UX 11.23 cc bug with constants
11011         * tests/test-intprops.c (VERIFY): New macro.
11012         (main): Use it, instead of verify, to work around the compiler bug; see
11013         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11014
11015         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
11016         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
11017         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
11018         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
11019         (_GL_REMAINDER_OVERFLOW): Use it.
11020
11021         intprops-tests: revert unsigned part of previous change
11022         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
11023         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
11024         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
11025         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
11026
11027 2011-05-19  Bruno Haible  <bruno@clisp.org>
11028
11029         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
11030         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
11031         strerror_r() returned without filling the buffer.
11032         Reported by Eric Blake.
11033
11034 2011-05-19  Eric Blake  <eblake@redhat.com>
11035
11036         strerror_r: guarantee unchanged errno
11037         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
11038         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
11039         failure.
11040         * tests/test-strerror_r.c (main): Enhance test.
11041
11042 2011-05-19  Bruno Haible  <bruno@clisp.org>
11043
11044         strerror_r: Reorder #if blocks.
11045         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
11046         for consistency with the previous commit.
11047
11048 2011-05-19  Bruno Haible  <bruno@clisp.org>
11049
11050         perror: Avoid clobbering the strerror buffer when possible.
11051         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
11052         * lib/strerror.c: Include it.
11053         * modules/strerror (Files): Add lib/strerror-impl.h.
11054         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
11055         (my_strerror): New function, defined through lib/strerror-impl.h.
11056         (perror): Use it instead of strerror.
11057         * modules/perror (Files): Add lib/strerror-impl.h.
11058         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
11059
11060 2011-05-19  Eric Blake  <eblake@redhat.com>
11061
11062         strerror_r: fix on newer cygwin
11063         * lib/strerror_r.c (strerror_r): Cygwin now has
11064         __xpg_strerror_r, use it.
11065
11066 2011-05-19  Bruno Haible  <bruno@clisp.org>
11067
11068         strerror_r: Avoid clobbering the strerror buffer when possible.
11069         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
11070         (sys_nerr, sys_errlist): New declarations.
11071         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
11072         HP-UX, native Win32, IRIX, and 32-bit Solaris.
11073         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
11074
11075 2011-05-19  Bruno Haible  <bruno@clisp.org>
11076
11077         strerror_r: Fix test failure on mingw.
11078         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
11079         EXTEND_STRERROR_R.
11080         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
11081         macros from errno.in.h instead.
11082
11083 2011-05-19  Eric Blake  <eblake@redhat.com>
11084
11085         strerror: relax test for Solaris
11086         * tests/test-strerror.c (main): Permit Solaris behavior.
11087         * tests/test-strerror_r.c (main): Likewise.
11088
11089         strerror: enforce POSIX ruling on strerror(0)
11090         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
11091         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
11092         * lib/strerror_r.c (rpl_strerror_r): Work around it.
11093         * doc/posix-functions/strerror.texi (strerror): Document it.
11094         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
11095         * tests/test-strerror.c (main): Strengthen test.
11096         * tests/test-strerror_r.c (main): Likewise.
11097
11098 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
11099
11100         intprop-tests: port to older and more-pedantic compilers
11101         * modules/intprops-tests (Files): Add tests/macros.h.
11102         * tests/test-intprops.c: Include macros.h.
11103         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
11104         it's no longer documented to expand to an integer constant expression.
11105         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
11106         argument is floating point, as it's no longer documented to expand
11107         to an integer constant expression in that case.
11108         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
11109         compiler bugs reported by Bruno Haible.  See
11110         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11111         (U0, U1): New constants, to work around the same bugs.  Also,
11112         in tests, use e.g., "(unsigned int) 39" rather than "39u".
11113
11114         intprops: work around C compiler bugs
11115         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
11116         bug in Sun C 5.11 2010/08/13 and other compilers; see
11117         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11118
11119         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
11120         * doc/intprops.texi (Integer Type Determination): Fix
11121         documentation for TYPE_IS_INTEGER: it returns an constant
11122         expression, not an integer constant expression.  Fix doc for
11123         TYPE_SIGNED: it returns an integer constant expression only if its
11124         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
11125         hardly worth documented that way....)
11126
11127 2011-05-18  Bruno Haible  <bruno@clisp.org>
11128
11129         strerror_r: Avoid clobbering the strerror buffer when possible.
11130         * lib/strerror_r.c (strerror_r): Merge the three implementations.
11131         Handle gnulib defined errno values here. When strerror() returns NULL
11132         or an empty string, return EINVAL.
11133         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
11134         gnulib defined errno values here.
11135         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
11136
11137 2011-05-18  Eric Blake  <eblake@redhat.com>
11138
11139         fnmatch: avoid compiler warning
11140         * lib/fnmatch_loop.c (FCT): Use correct type.
11141         Reported by Matthias Bolte.
11142
11143 2011-05-13  Jim Meyering  <meyering@redhat.com>
11144
11145         maint.mk: three new prohibit_<HDR>_without_use rules
11146         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
11147         (sc_prohibit_stdio-safer_without_use): Likewise.
11148         (sc_prohibit_xfreopen_without_use): Likewise.
11149
11150 2011-05-17  Jim Meyering  <meyering@redhat.com>
11151
11152         announce-gen: fail if the NEWS delta is empty
11153         If there's nothing noteworthy in NEWS, then either you forgot
11154         or you shouldn't be releasing.
11155         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
11156
11157 2011-05-17  Pádraig Brady <P@draigBrady.com>
11158
11159         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
11160         reserved symbols starting with double underscore from the check.
11161
11162 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
11163
11164         intprops: add doc
11165         * doc/intprops.texi: New file, documenting intprops.
11166         * doc/gnulib.texi (Particular Modules): Include it.
11167
11168         verify: add doc to gnulib manual and fix example
11169         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
11170         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
11171         (Compile-time Assertions): Fix example so it can't overflow.
11172
11173 2011-05-17  Jim Meyering  <meyering@redhat.com>
11174
11175         warnings.m4: don't usurp save_CPPFLAGS variable name
11176         * m4/warnings.m4: Prefix local temporary variable name with gl_.
11177
11178         doc: fix typo
11179         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
11180
11181 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
11182             Bruno Haible  <bruno@clisp.org>
11183
11184         doc: Tweak recent change.
11185         * README (Portability guidelines): Tweak new text.
11186         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
11187         Interix 6.1.
11188
11189 2011-05-16  Eric Blake  <eblake@redhat.com>
11190
11191         inttypes: avoid autoconf warning
11192         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
11193         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11194
11195 2011-05-16  Sam Steingold <sds@gnu.org>
11196         and Eric Blake  <eblake@redhat.com>
11197
11198         vc-list-files: accept multiple directory operands
11199         * build-aux/vc-list-files: Iterate over all remaining operands.
11200
11201 2011-05-16  Bruno Haible  <bruno@clisp.org>
11202
11203         Fix confusion regarding deprecated modules.
11204         * modules/calloc (Status, Notice): Mark module as deprecated, not
11205         obsolete.
11206         * modules/fnmatch-posix (Status, Notice): Likewise.
11207         * modules/getdate (Status, Notice): Likewise.
11208         * modules/getopt (Status, Notice): Likewise.
11209         * modules/malloc (Status, Notice): Likewise.
11210         * modules/pipe (Status, Notice): Likewise.
11211         * modules/realloc (Status, Notice): Likewise.
11212         * modules/rename-dest-slash (Status, Notice): Likewise.
11213         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
11214         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
11215         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
11216         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
11217         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
11218
11219 2011-05-16  Bruno Haible  <bruno@clisp.org>
11220
11221         doc: List the target platforms.
11222         * doc/gnulib-intro.texi (Target Platforms): New section.
11223         * doc/gnulib.texi (Introduction): Update menu.
11224         * README (Portability guidelines): Refer to the new section. Update
11225         statement about oldest supported environment. Remove rationale why
11226         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
11227         unportable C89 function.
11228         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
11229         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
11230
11231 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
11232
11233         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
11234
11235 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
11236
11237         intprops-tests: new module
11238         * modules/intprops-tests, tests/test-intprops.c: New files.
11239
11240         intprops: add safe, portable integer overflow checking
11241         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
11242         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
11243         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
11244         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
11245         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
11246         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
11247         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
11248         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
11249         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
11250         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
11251         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
11252
11253 2011-05-12  James Youngman  <jay@gnu.org>
11254
11255         Add a test for glibc's Bugzilla bug #12378.
11256         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
11257         doesn't allow the literal matching of a lone "[" (which is
11258         required by POSIX).
11259         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
11260
11261 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
11262
11263         Sync glibc change fixing Bugzilla bug #12378.
11264         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
11265         beginning and fall back to matching as normal character if the
11266         string ends before the matching ']' is found.  This is what POSIX
11267         requires.
11268
11269 2011-05-13  Eric Blake  <eblake@redhat.com>
11270
11271         getcwd-lgpl: relax test for FreeBSD
11272         * doc/posix-functions/getcwd.texi (getcwd): Document portability
11273         issue.
11274         * tests/test-getcwd-lgpl.c (main): Relax test.
11275         Reported by Matthias Bolte.
11276
11277 2011-05-11  Eric Blake  <eblake@redhat.com>
11278
11279         test-fflush: silence compiler warning
11280         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
11281
11282 2011-05-11  Bruno Haible  <bruno@clisp.org>
11283
11284         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
11285         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
11286         * modules/canonicalize (Depends-on): Add 'nocrash'.
11287         * modules/canonicalize-lgpl (Depends-on): Likewise.
11288         * doc/posix-functions/realpath.texi: Update platforms list.
11289         Reported by Ryan Schmidt <ryandesign@macports.org>.
11290
11291 2011-05-11  Bruno Haible  <bruno@clisp.org>
11292
11293         group-member: Declare function in <unistd.h>.
11294         * lib/unistd.in.h (group_member): New declaration.
11295         * lib/group-member.h: Remove file.
11296         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
11297         * tests/test-unistd-c++.cc: Check signature of group_member.
11298         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
11299         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
11300         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
11301         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
11302         HAVE_GROUP_MEMBER.
11303         * modules/group-member (Files): Remove lib/group-member.h.
11304         (Depends-on): Add unistd. Specify conditions.
11305         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11306         (Include): Change to <unistd.h>.
11307         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
11308         HAVE_GROUP_MEMBER.
11309         * NEWS: Mention the change.
11310         * lib/euidaccess.c: Don't include group-member.h.
11311
11312 2011-05-11  Bruno Haible  <bruno@clisp.org>
11313
11314         group-member: Document module.
11315         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
11316         module.
11317
11318 2011-05-11  Bruno Haible  <bruno@clisp.org>
11319
11320         fclose: Fix mistake earlier today.
11321         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
11322
11323 2011-05-11  Eric Blake  <eblake@redhat.com>
11324
11325         fclose: preserve fflush errors
11326         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
11327         Reported by Jim Meyering.
11328
11329         bootstrap: support a prereq of 'rpcgen -' on RHEL5
11330         * build-aux/bootstrap (check_versions): When no specific version
11331         is required, merely check that the app produces an exit status
11332         that indicates its existence.
11333
11334         maint.mk: drop redundant check
11335         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
11336         the same but better.
11337
11338 2011-05-11  Bruno Haible  <bruno@clisp.org>
11339
11340         fclose: Fix possible link error.
11341         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
11342         unregister_shadow_fd. Improve comments.
11343         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
11344         Eric Blake.
11345
11346 2011-05-11  Jim Meyering  <meyering@redhat.com>
11347
11348         maint.mk: improve "can not" detection and generalize rule name
11349         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
11350         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
11351         Use the same technique as in sc_prohibit_doubled_word, so that
11352         we recognize "can not" also when the words are separated by a newline.
11353         Suggested by Eric Blake.
11354         (perl_filename_lineno_text_): Define.  Factored out of...
11355         (prohibit_doubled_word_): ...here.  Use the new definition.
11356         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
11357         (prohibit_undesirable_word_seq_RE_): New overridable variable.
11358         (ignore_undesirable_word_sequence_RE_): New overridable variable.
11359
11360 2011-05-10  Eric Blake  <eblake@redhat.com>
11361
11362         fclose: avoid double close race when possible
11363         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
11364         all but WINDOWS_SOCKETS.
11365
11366 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
11367
11368         openat: correct new comment
11369         * lib/openat-proc.c (openat_proc_name): Correct the comment.
11370
11371 2011-05-10  Jim Meyering  <meyering@redhat.com>
11372
11373         openat: add comments
11374         * lib/openat-proc.c (openat_proc_name): Add comments,
11375         mostly from Eric Blake.
11376
11377 2011-05-09  Eric Blake  <eblake@redhat.com>
11378
11379         openat: reduce syscalls in first probe of /proc
11380         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
11381         be a directory.  Simplify the probe for .. bugs.
11382         * modules/openat (Depends-on): Drop same-inode.
11383         Reported by Bastien ROUCARIES.
11384
11385 2011-05-09  Jim Meyering  <meyering@redhat.com>
11386
11387         maint.mk: change semantics/name of tight_scope variables
11388         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
11389         Rename variables to align with semantics that make them more useful.
11390
11391         maint.mk: tweak new rule's name not to impinge
11392         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
11393         (sc_tight_scope): Use new rule name rather than $@-0.
11394
11395         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
11396         * top/maint.mk (sc_tight_scope): New rule.
11397         (sc_tight_scope-0): New rule, ifdef'd out.
11398         (_gl_TS_dir): Default.
11399         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
11400         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
11401
11402 2011-05-09  Simon Josefsson  <simon@josefsson.org>
11403
11404         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
11405         Haible <bruno@clisp.org>.
11406
11407 2011-05-08  Bruno Haible  <bruno@clisp.org>
11408
11409         Comments.
11410         * m4/isnanf.m4: Add comment.
11411         * m4/isnanl.m4: Likewise.
11412
11413 2011-05-08  Bruno Haible  <bruno@clisp.org>
11414
11415         glob: Remove obsolete macro.
11416         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
11417
11418 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
11419
11420         intprops: Sun C 5.11 supports __typeof__
11421         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
11422         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
11423         which is new.
11424         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
11425
11426         intprops: switch to usual gnulib indenting and naming
11427         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
11428         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
11429
11430         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
11431
11432 2011-05-08  Jim Meyering  <meyering@redhat.com>
11433
11434         maint.mk: suppress "Entering/Leaving directory" diag in announcement
11435         * top/maint.mk (release-prep): Use make's --no-print-directory
11436         option when generating the announcement.  This eliminates the
11437         pesky "make[2]: Entering/Leaving directory" diagnostics in the
11438         generated announcement template.
11439
11440 2011-05-08  Bruno Haible  <bruno@clisp.org>
11441
11442         tzset: Fix gettimeofday wrapper on Solaris 2.6.
11443         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
11444         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
11445
11446 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
11447
11448         ignore-value, verify: Omit include files from lib_SOURCES.
11449         * modules/ignore-value, modules/verify (Makefile.am):
11450         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
11451         that leads Automake to duplicate use of am__objects_... variables
11452         in Makefile.in.  See
11453         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
11454
11455 2011-05-07  Bruno Haible  <bruno@clisp.org>
11456
11457         fclose: Simplify autoconf macro.
11458         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
11459         defined.
11460
11461 2011-05-07  Bruno Haible  <bruno@clisp.org>
11462
11463         canonicalize-lgpl: Fix autoconf macro ordering bug.
11464         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
11465         gl_STDLIB_H_DEFAULTS.
11466
11467 2011-05-06  Eric Blake  <eblake@redhat.com>
11468
11469         maintainer-makefile: make sc_po_check easier to tune
11470         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
11471         to probe for strings, such as an alternate location for gnulib.
11472
11473         fclose: guarantee behavior on seekable stdin
11474         * modules/fclose (Depends-on): Add fflush.
11475         * doc/posix-functions/fclose.texi (fclose): Document this.
11476         * tests/test-fclose.c (main): Make test for this unconditional.
11477
11478 2011-05-06  Bruno Haible  <bruno@clisp.org>
11479
11480         fflush, fpurge: Relicense under LGPLv2+.
11481         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
11482         * modules/fpurge (License): Likewise.
11483         With permission from Eric Blake and Jim Meyering.
11484         Suggested by Eric Blake.
11485
11486 2011-05-06  Karl Berry  <karl@gnu.org>
11487
11488         * MODULES.html.sh (func_all_modules): remove exit.
11489
11490 2011-05-06  Jim Meyering  <meyering@redhat.com>
11491
11492         maint.mk: use info-gnu@ as the default only for a stable release
11493         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
11494         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
11495         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
11496         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
11497
11498 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
11499
11500         assert-h: new module, which supports C1X-style static_assert
11501         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
11502         * lib/verify.h: Revamp so that this can be copied into assert.h,
11503         while retaining the ability to use it standalone as before.
11504         Rename private identifiers so as not to encroach on the
11505         standard C namespace, since this is now used by assert.h.
11506         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
11507         the old verify_true.
11508         (_GL_VERIFY_TRUE): New macro, with much of the contents of
11509         the old verify_true.  Use _GL_VERIFY_TYPE.
11510         (_GL_VERIFY): New macro, with much of the contents of the old verify.
11511         (static_assert): New macro, if _GL_STATIC_ASSERT_H
11512         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
11513         defined when this file is copied into the replacement assert.h.
11514         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
11515         and _Static_assert is not built in.
11516         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
11517         defined, and use the new macros mentioned above.
11518         * doc/posix-headers/assert.texi: Document this.
11519
11520 2011-05-05  Bruno Haible  <bruno@clisp.org>
11521
11522         fclose, fflush: Respect rules for use of AC_LIBOBJ.
11523         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
11524         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
11525         gl_REPLACE_FCLOSE here.
11526         * modules/fflush (Depends-on): Remove fclose.
11527         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
11528         combination with module 'fclose'.
11529
11530 2011-05-05  Bruno Haible  <bruno@clisp.org>
11531
11532         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
11533         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
11534         gl_FUNC_FFLUSH.
11535         (gl_FUNC_FFLUSH): Use it.
11536         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
11537         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
11538         gl_REPLACE_FSEEKO here.
11539
11540 2011-05-05  Bruno Haible  <bruno@clisp.org>
11541
11542         tzset: Relicense under LGPL.
11543         * modules/tzset (License): Change to LGPL.
11544         No agreement needed; it's a no-op.
11545
11546         strtoimax, strtoumax: Relicense under LGPL.
11547         * modules/strtoimax (License): Change to LGPL.
11548         * modules/strtoumax (License): Likewise.
11549         With permission from Jim Meyering, Paul Eggert:
11550         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
11551         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
11552
11553         getgroups: Relicense under LGPL.
11554         * modules/getgroups (License): Change to LGPL.
11555         With permission from Jim Meyering, Paul Eggert, Eric Blake:
11556         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
11557         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
11558         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11559
11560         nanosleep: Relicense under LGPL.
11561         * modules/nanosleep (License): Change to LGPL.
11562         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
11563         Haible:
11564         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
11565         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
11566         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11567         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
11568
11569         futimens: Relicense under LGPL.
11570         * modules/futimens (License): Change to LGPL.
11571         With permission from Eric Blake:
11572         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11573
11574         fflush: Relicense under LGPL.
11575         * modules/fflush (License): Change to LGPL.
11576         With permission from Eric Blake, Bruno Haible, Jim Meyering:
11577         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11578         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
11579         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
11580
11581         tmpfile: Relicense under LGPL.
11582         * modules/tmpfile (License): Change to LGPL.
11583         With permission from Ben Pfaff:
11584         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
11585
11586         isfinite: Relicense under LGPL.
11587         * modules/isfinite (License): Change to LGPL.
11588         With permission from Ben Pfaff, Bruno Haible:
11589         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
11590         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
11591
11592         acosl..tanl: Relicense under LGPL.
11593         * modules/acosl (License): Change to LGPL.
11594         * modules/asinl (License): Likewise.
11595         * modules/atanl (License): Likewise.
11596         * modules/cosl (License): Likewise.
11597         * modules/expl (License): Likewise.
11598         * modules/logl (License): Likewise.
11599         * modules/sinl (License): Likewise.
11600         * modules/sqrtl (License): Likewise.
11601         * modules/tanl (License): Likewise.
11602         Source code originally from glibc and Paolo Bonzini. Agreements:
11603         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
11604         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
11605
11606 2011-05-05  Bruno Haible  <bruno@clisp.org>
11607
11608         signal: Define sighandler_t.
11609         * lib/signal.in.h (sighandler_t): New type.
11610         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
11611         whether sighandler_t is defined.
11612         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
11613         * modules/signal (Depends-on): Add extensions.
11614         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
11615         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
11616         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
11617
11618 2011-05-05  Eric Blake  <eblake@redhat.com>
11619
11620         maint: remove useless REPLACE_*_H macros
11621         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
11622         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
11623         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
11624         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
11625         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
11626         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
11627         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
11628         * m4/btowc.m4: Update callers.
11629         * m4/dirfd.m4: Likewise.
11630         * m4/duplocale.m4: Likewise.
11631         * m4/fchdir.m4: Likewise.
11632         * m4/fdopendir.m4: Likewise.
11633         * m4/inet_ntop.m4: Likewise.
11634         * m4/inet_pton.m4: Likewise.
11635         * m4/ioctl.m4: Likewise.
11636         * m4/mbrlen.m4: Likewise.
11637         * m4/mbrtowc.m4: Likewise.
11638         * m4/mbsinit.m4: Likewise.
11639         * m4/mbsnrtowcs.m4: Likewise.
11640         * m4/mbsrtowcs.m4: Likewise.
11641         * m4/poll.m4: Likewise.
11642         * m4/setlocale.m4: Likewise.
11643         * m4/wcrtomb.m4: Likewise.
11644         * m4/wcsnrtombs.m4: Likewise.
11645         * m4/wcsrtombs.m4: Likewise.
11646         * m4/wctob.m4: Likewise.
11647         * m4/wcwidth.m4: Likewise.
11648         * modules/posix_spawn: Likewise.
11649         * modules/posix_spawn_file_actions_addclose: Likewise.
11650         * modules/posix_spawn_file_actions_adddup2: Likewise.
11651         * modules/posix_spawn_file_actions_addopen: Likewise.
11652         * modules/posix_spawn_file_actions_destroy: Likewise.
11653         * modules/posix_spawn_file_actions_init: Likewise.
11654         * modules/posix_spawnattr_destroy: Likewise.
11655         * modules/posix_spawnattr_getflags: Likewise.
11656         * modules/posix_spawnattr_getpgroup: Likewise.
11657         * modules/posix_spawnattr_getschedparam: Likewise.
11658         * modules/posix_spawnattr_getschedpolicy: Likewise.
11659         * modules/posix_spawnattr_getsigdefault: Likewise.
11660         * modules/posix_spawnattr_getsigmask: Likewise.
11661         * modules/posix_spawnattr_init: Likewise.
11662         * modules/posix_spawnattr_setflags: Likewise.
11663         * modules/posix_spawnattr_setpgroup: Likewise.
11664         * modules/posix_spawnattr_setschedparam: Likewise.
11665         * modules/posix_spawnattr_setschedpolicy: Likewise.
11666         * modules/posix_spawnattr_setsigdefault: Likewise.
11667         * modules/posix_spawnattr_setsigmask: Likewise.
11668         * modules/posix_spawnp: Likewise.
11669
11670 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
11671
11672         Add option to do-release-commit-and-tag to specify branch.
11673         * build-aux/do-release-commit-and-tag: Add --branch.
11674
11675 2011-05-03  Bruno Haible  <bruno@clisp.org>
11676
11677         Avoid unnecessary compilation units, through conditional dependencies.
11678         * modules/accept (Depends-on): Add conditions to the dependencies.
11679         * modules/acosl (Depends-on): Likewise.
11680         * modules/argz (Depends-on): Likewise.
11681         * modules/asinl (Depends-on): Likewise.
11682         * modules/atanl (Depends-on): Likewise.
11683         * modules/atoll (Depends-on): Likewise.
11684         * modules/bind (Depends-on): Likewise.
11685         * modules/btowc (Depends-on): Likewise.
11686         * modules/canonicalize-lgpl (Depends-on): Likewise.
11687         * modules/ceil (Depends-on): Likewise.
11688         * modules/ceilf (Depends-on): Likewise.
11689         * modules/ceill (Depends-on): Likewise.
11690         * modules/chdir-long (Depends-on): Likewise.
11691         * modules/chown (Depends-on): Likewise.
11692         * modules/close (Depends-on): Likewise.
11693         * modules/connect (Depends-on): Likewise.
11694         * modules/cosl (Depends-on): Likewise.
11695         * modules/dirfd (Depends-on): Likewise.
11696         * modules/dprintf (Depends-on): Likewise.
11697         * modules/dprintf-posix (Depends-on): Likewise.
11698         * modules/error (Depends-on): Likewise.
11699         * modules/euidaccess (Depends-on): Likewise.
11700         * modules/expl (Depends-on): Likewise.
11701         * modules/faccessat (Depends-on): Likewise.
11702         * modules/fchdir (Depends-on): Likewise.
11703         * modules/fclose (Depends-on): Likewise.
11704         * modules/fcntl (Depends-on): Likewise.
11705         * modules/fdopendir (Depends-on): Likewise.
11706         * modules/fflush (Depends-on): Likewise.
11707         * modules/floor (Depends-on): Likewise.
11708         * modules/floorf (Depends-on): Likewise.
11709         * modules/floorl (Depends-on): Likewise.
11710         * modules/fnmatch (Depends-on): Likewise.
11711         * modules/fopen (Depends-on): Likewise.
11712         * modules/fprintf-posix (Depends-on): Likewise.
11713         * modules/frexp (Depends-on): Likewise.
11714         * modules/frexp-nolibm (Depends-on): Likewise.
11715         * modules/frexpl (Depends-on): Likewise.
11716         * modules/frexpl-nolibm (Depends-on): Likewise.
11717         * modules/fseek (Depends-on): Likewise.
11718         * modules/fsusage (Depends-on): Likewise.
11719         * modules/ftell (Depends-on): Likewise.
11720         * modules/ftello (Depends-on): Likewise.
11721         * modules/futimens (Depends-on): Likewise.
11722         * modules/getcwd (Depends-on): Likewise.
11723         * modules/getcwd-lgpl (Depends-on): Likewise.
11724         * modules/getdelim (Depends-on): Likewise.
11725         * modules/getdomainname (Depends-on): Likewise.
11726         * modules/getgroups (Depends-on): Likewise.
11727         * modules/gethostname (Depends-on): Likewise.
11728         * modules/getline (Depends-on): Likewise.
11729         * modules/getlogin_r (Depends-on): Likewise.
11730         * modules/getopt-posix (Depends-on): Likewise.
11731         * modules/getpeername (Depends-on): Likewise.
11732         * modules/getsockname (Depends-on): Likewise.
11733         * modules/getsockopt (Depends-on): Likewise.
11734         * modules/getsubopt (Depends-on): Likewise.
11735         * modules/getusershell (Depends-on): Likewise.
11736         * modules/glob (Depends-on): Likewise.
11737         * modules/grantpt (Depends-on): Likewise.
11738         * modules/iconv_open (Depends-on): Likewise.
11739         * modules/iconv_open-utf (Depends-on): Likewise.
11740         * modules/inet_ntop (Depends-on): Likewise.
11741         * modules/inet_pton (Depends-on): Likewise.
11742         * modules/ioctl (Depends-on): Likewise.
11743         * modules/isapipe (Depends-on): Likewise.
11744         * modules/isfinite (Depends-on): Likewise.
11745         * modules/isinf (Depends-on): Likewise.
11746         * modules/lchown (Depends-on): Likewise.
11747         * modules/ldexpl (Depends-on): Likewise.
11748         * modules/link (Depends-on): Likewise.
11749         * modules/linkat (Depends-on): Likewise.
11750         * modules/listen (Depends-on): Likewise.
11751         * modules/logl (Depends-on): Likewise.
11752         * modules/lstat (Depends-on): Likewise.
11753         * modules/mbrlen (Depends-on): Likewise.
11754         * modules/mbrtowc (Depends-on): Likewise.
11755         * modules/mbsinit (Depends-on): Likewise.
11756         * modules/mbsnrtowcs (Depends-on): Likewise.
11757         * modules/mbsrtowcs (Depends-on): Likewise.
11758         * modules/mbtowc (Depends-on): Likewise.
11759         * modules/memcmp (Depends-on): Likewise.
11760         * modules/mkdir (Depends-on): Likewise.
11761         * modules/mkdtemp (Depends-on): Likewise.
11762         * modules/mkfifo (Depends-on): Likewise.
11763         * modules/mkfifoat (Depends-on): Likewise.
11764         * modules/mknod (Depends-on): Likewise.
11765         * modules/mkostemp (Depends-on): Likewise.
11766         * modules/mkostemps (Depends-on): Likewise.
11767         * modules/mkstemp (Depends-on): Likewise.
11768         * modules/mkstemps (Depends-on): Likewise.
11769         * modules/mktime (Depends-on): Likewise.
11770         * modules/nanosleep (Depends-on): Likewise.
11771         * modules/open (Depends-on): Likewise.
11772         * modules/openat (Depends-on): Likewise.
11773         * modules/perror (Depends-on): Likewise.
11774         * modules/poll (Depends-on): Likewise.
11775         * modules/popen (Depends-on): Likewise.
11776         * modules/posix_spawn (Depends-on): Likewise.
11777         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
11778         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
11779         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
11780         * modules/posix_spawnp (Depends-on): Likewise.
11781         * modules/pread (Depends-on): Likewise.
11782         * modules/printf-posix (Depends-on): Likewise.
11783         * modules/ptsname (Depends-on): Likewise.
11784         * modules/putenv (Depends-on): Likewise.
11785         * modules/pwrite (Depends-on): Likewise.
11786         * modules/readline (Depends-on): Likewise.
11787         * modules/readlink (Depends-on): Likewise.
11788         * modules/readlinkat (Depends-on): Likewise.
11789         * modules/recv (Depends-on): Likewise.
11790         * modules/recvfrom (Depends-on): Likewise.
11791         * modules/regex (Depends-on): Likewise.
11792         * modules/remove (Depends-on): Likewise.
11793         * modules/rename (Depends-on): Likewise.
11794         * modules/renameat (Depends-on): Likewise.
11795         * modules/rmdir (Depends-on): Likewise.
11796         * modules/round (Depends-on): Likewise.
11797         * modules/roundf (Depends-on): Likewise.
11798         * modules/roundl (Depends-on): Likewise.
11799         * modules/rpmatch (Depends-on): Likewise.
11800         * modules/select (Depends-on): Likewise.
11801         * modules/send (Depends-on): Likewise.
11802         * modules/sendto (Depends-on): Likewise.
11803         * modules/setenv (Depends-on): Likewise.
11804         * modules/setlocale (Depends-on): Likewise.
11805         * modules/setsockopt (Depends-on): Likewise.
11806         * modules/shutdown (Depends-on): Likewise.
11807         * modules/sigaction (Depends-on): Likewise.
11808         * modules/signbit (Depends-on): Likewise.
11809         * modules/sigprocmask (Depends-on): Likewise.
11810         * modules/sinl (Depends-on): Likewise.
11811         * modules/sleep (Depends-on): Likewise.
11812         * modules/snprintf (Depends-on): Likewise.
11813         * modules/snprintf-posix (Depends-on): Likewise.
11814         * modules/socket (Depends-on): Likewise.
11815         * modules/sprintf-posix (Depends-on): Likewise.
11816         * modules/sqrtl (Depends-on): Likewise.
11817         * modules/stat (Depends-on): Likewise.
11818         * modules/strchrnul (Depends-on): Likewise.
11819         * modules/strdup-posix (Depends-on): Likewise.
11820         * modules/strerror (Depends-on): Likewise.
11821         * modules/strerror_r-posix (Depends-on): Likewise.
11822         * modules/strndup (Depends-on): Likewise.
11823         * modules/strnlen (Depends-on): Likewise.
11824         * modules/strptime (Depends-on): Likewise.
11825         * modules/strsep (Depends-on): Likewise.
11826         * modules/strsignal (Depends-on): Likewise.
11827         * modules/strstr-simple (Depends-on): Likewise.
11828         * modules/strtod (Depends-on): Likewise.
11829         * modules/strtoimax (Depends-on): Likewise.
11830         * modules/strtok_r (Depends-on): Likewise.
11831         * modules/strtoumax (Depends-on): Likewise.
11832         * modules/symlink (Depends-on): Likewise.
11833         * modules/symlinkat (Depends-on): Likewise.
11834         * modules/tanl (Depends-on): Likewise.
11835         * modules/tcgetsid (Depends-on): Likewise.
11836         * modules/tmpfile (Depends-on): Likewise.
11837         * modules/trunc (Depends-on): Likewise.
11838         * modules/truncf (Depends-on): Likewise.
11839         * modules/truncl (Depends-on): Likewise.
11840         * modules/uname (Depends-on): Likewise.
11841         * modules/unlink (Depends-on): Likewise.
11842         * modules/unlockpt (Depends-on): Likewise.
11843         * modules/unsetenv (Depends-on): Likewise.
11844         * modules/usleep (Depends-on): Likewise.
11845         * modules/utimensat (Depends-on): Likewise.
11846         * modules/vasprintf (Depends-on): Likewise.
11847         * modules/vdprintf (Depends-on): Likewise.
11848         * modules/vdprintf-posix (Depends-on): Likewise.
11849         * modules/vfprintf-posix (Depends-on): Likewise.
11850         * modules/vprintf-posix (Depends-on): Likewise.
11851         * modules/vsnprintf (Depends-on): Likewise.
11852         * modules/vsnprintf-posix (Depends-on): Likewise.
11853         * modules/vsprintf-posix (Depends-on): Likewise.
11854         * modules/wcrtomb (Depends-on): Likewise.
11855         * modules/wcscasecmp (Depends-on): Likewise.
11856         * modules/wcscspn (Depends-on): Likewise.
11857         * modules/wcsdup (Depends-on): Likewise.
11858         * modules/wcsncasecmp (Depends-on): Likewise.
11859         * modules/wcsnrtombs (Depends-on): Likewise.
11860         * modules/wcspbrk (Depends-on): Likewise.
11861         * modules/wcsrtombs (Depends-on): Likewise.
11862         * modules/wcsspn (Depends-on): Likewise.
11863         * modules/wcsstr (Depends-on): Likewise.
11864         * modules/wcstok (Depends-on): Likewise.
11865         * modules/wcswidth (Depends-on): Likewise.
11866         * modules/wctob (Depends-on): Likewise.
11867         * modules/wctomb (Depends-on): Likewise.
11868         * modules/wctype (Depends-on): Likewise.
11869         * modules/wcwidth (Depends-on): Likewise.
11870         * modules/write (Depends-on): Likewise.
11871
11872 2011-05-03  Bruno Haible  <bruno@clisp.org>
11873
11874         Support for conditional dependencies.
11875         * doc/gnulib.texi (Module description): Document the syntax of
11876         conditional dependencies.
11877         * gnulib-tool: New option --conditional-dependencies.
11878         (func_usage): Document it.
11879         (cond_dependencies): New variable.
11880         (func_get_automake_snippet_conditional,
11881         func_get_automake_snippet_unconditional): New functions, extracted from
11882         func_get_automake_snippet.
11883         (func_get_automake_snippet): Use them.
11884         (sed_first_32_chars): New variable.
11885         (func_module_shellfunc_name): New function.
11886         (func_module_shellvar_name): New function.
11887         (func_module_conditional_name): New function.
11888         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
11889         func_cond_module_condition): New functions.
11890         (func_modules_transitive_closure): Add support for conditional
11891         dependencies.
11892         (func_emit_lib_Makefile_am): For a conditional module, enclose the
11893         conditional automake snippet in an automake conditional.
11894         (func_emit_autoconf_snippets): Emit shell functions that contain the
11895         code for conditional modules.
11896         (func_import, func_create_testdir): Update specification.
11897
11898 2011-05-03  Eric Blake  <eblake@redhat.com>
11899
11900         test-getaddrinfo: report error information
11901         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
11902
11903 2011-05-03  Jim Meyering  <meyering@redhat.com>
11904
11905         bootstrap: avoid build failure when $GZIP is set
11906         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
11907         program name.  If defined at all, it is supposed to list gzip options.
11908         Reported by Alan Curry in http://debbugs.gnu.org/8609
11909
11910 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
11911
11912         readme-release: new module with release instructions
11913         * modules/readme-release: New module.
11914         * top/README-release: New file, from coreutils, grep, diffutils.
11915         * MODULES.html.sh (Support for maintaining and releasing): Add it.
11916
11917 2011-05-02  Eric Blake  <eblake@redhat.com>
11918
11919         fflush: also replace fclose when fixing fflush
11920         * modules/fflush (Depends-on): Add fclose.
11921         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
11922         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
11923         memstreams with no backing fd.
11924         * doc/posix-functions/fclose.texi (fclose): Document the use of
11925         fflush module to fix the bug.
11926         * tests/test-fclose.c (main): Relax test when fclose is used in
11927         isolation.
11928
11929         fclose: add some tests
11930         * modules/fclose-tests: New test module.
11931         * tests/test-fclose.c: New file.
11932         * doc/posix-functions/fclose.texi (fclose): Document the bug.
11933
11934         fclose: reduced dependencies
11935         * modules/fclose (Depends-on): Switch from fflush/fseeko to
11936         simpler lseek.
11937         * lib/fclose.c (rpl_fclose): Likewise.
11938         Reported by Simon Josefsson.
11939
11940         exit: drop remaining clients
11941         * modules/argmatch (Depends-on): Replace exit with stdlib.
11942         * modules/copy-file (Depends-on): Likewise.
11943         * modules/execute (Depends-on): Likewise.
11944         * modules/exitfail (Depends-on): Likewise.
11945         * modules/obstack (Depends-on): Likewise.
11946         * modules/pagealign_alloc (Depends-on): Likewise.
11947         * modules/pipe-filter-gi (Depends-on): Likewise.
11948         * modules/pipe-filter-ii (Depends-on): Likewise.
11949         * modules/savewd (Depends-on): Likewise.
11950         * modules/spawn-pipe (Depends-on): Likewise.
11951         * modules/wait-process (Depends-on): Likewise.
11952         * modules/xsetenv (Depends-on): Likewise.
11953         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
11954         * modules/git-merge-changelog (Depends-on): Likewise.
11955         * modules/long-options (Depends-on): Likewise.
11956         * modules/pt_chown (Depends-on): Likewise.
11957         * modules/sysexits (Depends-on): Likewise.
11958
11959         freading: relax license from LGPLv3+ to LGPLv2+
11960         * modules/freading (License): Relax LGPL version.
11961
11962 2011-05-02  Bruno Haible  <bruno@clisp.org>
11963
11964         fchdir: Remove unused dependencies.
11965         * modules/fchdir (Depends-on): Remove include_next.
11966
11967 2011-05-02  Bruno Haible  <bruno@clisp.org>
11968
11969         gnulib-tool: Refactor.
11970         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
11971         from func_emit_autoconf_snippets.
11972         (func_emit_autoconf_snippets): Use it.
11973
11974 2011-05-02  Simon Josefsson  <simon@josefsson.org>
11975
11976         * NEWS: Document removal of 'exit'.
11977         * modules/exit: Remove file.
11978
11979 2011-05-01  Bruno Haible  <bruno@clisp.org>
11980
11981         Update DEPENDENCIES.
11982         * DEPENDENCIES (gettext): Recommend the newest release.
11983         Reported by Simon Josefsson.
11984
11985 2011-05-01  Bruno Haible  <bruno@clisp.org>
11986
11987         gnulib-tool: Reduce code duplication.
11988         * gnulib-tool (func_emit_autoconf_snippets): New function.
11989         (func_import, func_create_testdir): Use it.
11990
11991 2011-04-30  Eric Blake  <eblake@redhat.com>
11992
11993         fclose: don't fail on non-seekable input stream
11994         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
11995         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
11996         since fflush is allowed to fail in that case.
11997
11998 2011-04-30  Bruno Haible  <bruno@clisp.org>
11999
12000         dup3: cleanup
12001         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
12002
12003 2011-04-30  Bruno Haible  <bruno@clisp.org>
12004
12005         netdb: Make it work in C++ mode.
12006         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
12007         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
12008         module.
12009         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
12010         gl_MODULE_INDICATOR_FOR_TESTS.
12011         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
12012         * modules/netdb-c++-tests: New file.
12013         * tests/test-netdb-c++.cc: New file.
12014
12015 2011-04-30  Bruno Haible  <bruno@clisp.org>
12016
12017         New modules 'vfscanf', 'vscanf'.
12018         * modules/vfscanf: New file.
12019         * modules/vscanf: New file.
12020         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
12021         here.
12022         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
12023         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
12024
12025 2011-04-30  Bruno Haible  <bruno@clisp.org>
12026
12027         passfd: Add comments.
12028         * lib/passfd.c: Add comments about platforms.
12029
12030 2011-04-30  Bruno Haible  <bruno@clisp.org>
12031
12032         sys_uio: Make <sys/uio.h> self-contained.
12033         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
12034         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
12035
12036 2011-04-30  Bruno Haible  <bruno@clisp.org>
12037
12038         sys_socket: Ensure 'struct iovec' definition.
12039         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
12040         <sys/socket.h>.
12041         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
12042
12043 2011-04-30  Bruno Haible  <bruno@clisp.org>
12044
12045         sys_uio: Protect definition of 'struct iovec'.
12046         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
12047         it as a C struct.
12048
12049 2011-04-30  Bruno Haible  <bruno@clisp.org>
12050
12051         manywarnings: fix indentation
12052         * m4/manywarnings.m4: Indent by 2 spaces consistently.
12053
12054 2011-04-30  Pádraig Brady <P@draigBrady.com>
12055
12056         manywarnings: add -Wno-missing-field-initializers if needed.
12057         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
12058         option if it's needed to allow initialization with { 0, }
12059
12060 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
12061
12062         announce-gen: cosmetic improvement
12063         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
12064
12065 2011-04-29  Jim Meyering  <meyering@redhat.com>
12066
12067         vc-list-files: indent with spaces, not TABs
12068         * build-aux/vc-list-files: Convert leading TABs to spaces,
12069         to match the style of most other files in gnulib.
12070
12071         announce-gen: indent with spaces, not TABs
12072         * build-aux/announce-gen: Convert all TABs to spaces, to match
12073         the style of most other files in gnulib.
12074
12075 2011-04-29  Eric Blake  <eblake@redhat.com>
12076
12077         quotearg: avoid uninitialized variable use
12078         * lib/quotearg.c (quoting_options_from_style): Initialize
12079         remaining fields, and ensure that custom styles are only used via
12080         quoting_options rather than quoting_style.
12081
12082 2011-04-29  Jim Meyering  <meyering@redhat.com>
12083
12084         maint.mk: remove unused VC-tag variable
12085         * top/maint.mk (VC-tag): Remove unused variable.
12086
12087 2011-04-29  Bruno Haible  <bruno@clisp.org>
12088
12089         netdb: fix gai_strerror replacements
12090         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
12091         * modules/netdb: Substitute it.
12092
12093 2011-04-29  Jim Meyering  <meyering@redhat.com>
12094
12095         test-getcwd.c: avoid new set-but-not-used warning
12096         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
12097         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
12098         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
12099         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
12100
12101         test-hash.c: avoid a new shadowing warning
12102         * tests/test-hash.c (main): Don't shadow "dup".
12103
12104 2011-04-28  Eric Blake  <eblake@redhat.com>
12105
12106         getaddrinfo: fix gai_strerror signature
12107         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
12108         and work around mingw with UNICODE defined.
12109         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
12110         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
12111         * modules/netdb (Makefile.am): Substitute it.
12112         * lib/netdb.in.h (gai_strerror): Declare replacement.
12113         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
12114         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
12115         the fix.
12116
12117         getsockopt: avoid compiler warning
12118         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
12119         Reported by Matthias Bolte.
12120
12121         tests: drop unused link dependency
12122         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
12123         * modules/dirent-safer-tests (Makefile.am): Likewise.
12124         * modules/fdopendir-tests (Makefile.am): Likewise.
12125         * modules/mkfifoat-tests (Makefile.am): Likewise.
12126         * modules/openat-safer-tests (Makefile.am): Likewise.
12127         * modules/openat-tests (Makefile.am): Likewise.
12128         * modules/readlinkat-tests (Makefile.am): Likewise.
12129         * modules/symlinkat-tests (Makefile.am): Likewise.
12130         * modules/linkat-tests (Makefile.am): Likewise.
12131         (Depends-on): Switch to filenamecat-lgpl.
12132         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
12133         LIBINTL.
12134         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
12135         * tests/test-linkat.c (main): Don't require xalloc.
12136
12137         hash, mgetgroups: drop xalloc dependency
12138         * lib/hash.c (includes): Adjust includes.
12139         * lib/mgetgroups.c (includes): Likewise.
12140         (xgetgroups): Move...
12141         * lib/xgetgroups.c: ...to new file.
12142         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
12143         * modules/xgetgroups: New file, split from...
12144         * modules/mgetgroups: ...here.
12145         (Depends-on): Add xalloc-oversized.
12146         * modules/hash (Depends-on): Likewise.
12147         * modules/hash-tests (Depends-on): Drop xalloc.
12148         (test_hash_LDADD): Drop unused library.
12149         * tests/test-hash.c (main): Break xalloc dependency.
12150         (includes): Drop unused include.
12151
12152         xalloc-oversized: new module
12153         * modules/xalloc-oversized: New module.
12154         * modules/xalloc (Depends-on): Add it.
12155         * lib/xalloc.h (xalloc_oversized): Move...
12156         * lib/xalloc-oversized.h: ...into new file.
12157
12158         utimecmp: drop dependency on xmalloc
12159         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
12160         due to memory pressure.
12161         * modules/utimecmp (Depends-on): Drop xalloc.
12162
12163 2011-04-27  Eric Blake  <eblake@redhat.com>
12164
12165         getcwd: fix mingw bugs
12166         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
12167         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
12168         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
12169
12170 2011-04-27  Bruno Haible  <bruno@clisp.org>
12171
12172         mkstemps: Ensure declaration on MacOS X 10.5.
12173         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
12174         * doc/glibc-functions/mkstemps.texi: Document header file problem on
12175         MacOS X.
12176
12177 2011-04-27  Bruno Haible  <bruno@clisp.org>
12178
12179         mkstemp: More documentation.
12180         * doc/posix-functions/mkstemp.texi: Document header file problem on
12181         MacOS X.
12182
12183 2011-04-27  Bruno Haible  <bruno@clisp.org>
12184
12185         mkstemp: Tweak configure message when cross-compiling.
12186         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
12187         result as a guess.
12188
12189 2011-04-27  Bruno Haible  <bruno@clisp.org>
12190
12191         clean-temp: Clarify what it does.
12192         * lib/clean-temp.h: Add more comments.
12193         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
12194         module.
12195         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
12196         * doc/glibc-functions/mkstemps.texi: Likewise.
12197         * doc/glibc-functions/mkostemps.texi: Likewise.
12198
12199 2011-04-27  Eric Blake  <eblake@redhat.com>
12200
12201         fchdir: avoid extra chdir and fix test
12202         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
12203         getcwd-lgpl.
12204         * lib/fchdir.c (get_name): Any absolute name will do; it does not
12205         have to be canonical.
12206         (canonicalize_file_name): Drop unused macro.
12207         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
12208
12209         filenamecat-lgpl: fix licence
12210         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
12211         when it was first created.
12212
12213         linkat, renameat: add missing dependency
12214         * modules/linkat (Depends-on): Require getcwd-lgpl.
12215         * modules/renameat (Depends-on): Likewise.
12216
12217         tests: reduce dependencies
12218         * tests/test-linkat.c (main): Use lighter-weight getcwd.
12219         * tests/test-renameat.c (main): Likewise.
12220         * modules/linkat-tests (Depends-on): Relax dependency.
12221         * modules/renameat-tests (Depends-on): Likewise.
12222         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
12223         dependency explicit.
12224
12225         save-cwd: reduce default dependency
12226         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
12227         * lib/save-cwd.c: Update comments.
12228         * NEWS: Document the semantic change.
12229
12230         getcwd: enhance tests
12231         * tests/test-getcwd-lgpl.c: New file, taken from...
12232         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
12233         repeat long path stress tests from m4 probe.
12234         * modules/getcwd-lgpl-tests: New module.
12235         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
12236         * m4/getcwd-abort-bug.m4: Update comment.
12237         * m4/getcwd-path-max.m4: Likewise.
12238
12239         getcwd-lgpl: new module
12240         * modules/getcwd-lgpl: New module.
12241         * lib/getcwd-lgpl.c: New file.
12242         * doc/posix-functions/getcwd.texi (getcwd): Document it.
12243         * MODULES.html.sh (lacking POSIX:2008): Likewise.
12244         * modules/getcwd (configure.ac): Set C witness.
12245         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
12246
12247         getcwd: tweak comments
12248         * m4/getcwd-abort-bug.m4: Fix comments.
12249         * m4/getcwd-path-max.m4: Likewise.
12250         * m4/getcwd.m4: Likewise.
12251
12252 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
12253         and Eric Blake  <eblake@redhat.com>
12254
12255         mkstemp: replace if system version uses wrong permissions
12256         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
12257         read/write mode bits set in file created by mkstemp.
12258         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
12259
12260 2011-04-27  Eric Blake  <eblake@redhat.com>
12261
12262         passfd: avoid compiler warning
12263         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
12264         Reported by Laine Stump.
12265
12266 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
12267
12268         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
12269         required by the NetBSD (and perhaps other 4.4BSD derived) join.
12270
12271 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
12272         and Eric Blake  <eblake@redhat.com>
12273
12274         mkstemp: mention clean-temp module
12275         * lib/mkstemp.c: Add comment.
12276         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
12277
12278 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
12279
12280         inttypes: also provide default values for 32-bit tests
12281         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
12282         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
12283
12284 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
12285
12286         strtoumax: remove dependency on strtoimax
12287         This is like the strtoull change of yesterday.
12288         * modules/strtoumax (Files): Add lib/strtoimax.c.
12289         (Depends-on): Remove strtoimax and add verify.
12290
12291         inttypes-incomplete: new module
12292         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
12293         all but the PRI* and SCN* parts of gl_INTTYPES_H.
12294         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
12295         of gl_INTTYPES_H.
12296         (gl_INTTYPES_H): Rewrite in terms of these new macros.
12297         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
12298         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
12299         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
12300         * modules/strtoumax, modules/xstrtol (Depends-on):
12301         Depend on inttypes-incomplete, not inttypes.
12302         * modules/inttypes-incomplete: New module, containing the contents
12303         of the old modules/inttypes module, except that the Files: section
12304         omits m4/inttypes-pri.m4, and the configure.ac section invokes
12305         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
12306         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
12307         (Depends-on): Depend only on inttypes-incomplete.
12308         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
12309
12310         inttypes: omit now-redundant strtoimax and strtoumax work
12311         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
12312         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
12313
12314         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
12315         This supports apps that need pointers to strtoimax and strtoumax,
12316         and ports to HP-UX 11.00 64.bit, which has macros that expand to
12317         nonexistent functions.  See
12318         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
12319         et seq.
12320         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
12321         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
12322         a macro.
12323         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
12324
12325 2011-04-25  Simon Josefsson  <simon@josefsson.org>
12326
12327         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
12328
12329 2011-04-25  Bruno Haible  <bruno@clisp.org>
12330
12331         strtol, strtoul: Mark modules as obsolete.
12332         * modules/strtol (Status, Notice): New sections.
12333         * modules/strtoul (Status, Notice): New sections.
12334
12335 2011-04-25  Bruno Haible  <bruno@clisp.org>
12336
12337         strtod: Remove check for strtod, unless supporting old platforms.
12338         * modules/strtod-obsolete: New file.
12339         * m4/strtod-obsolete.m4: New file.
12340         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
12341         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
12342         * modules/strtod (Depends-on): Add strtod-obsolete.
12343         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
12344
12345 2011-04-25  Bruno Haible  <bruno@clisp.org>
12346
12347         strcase: Make module obsolete.
12348         * modules/strcase (Status, Notice): New sections.
12349
12350 2011-04-25  Bruno Haible  <bruno@clisp.org>
12351
12352         dup2: Remove check for dup2, unless supporting old obsolete platforms.
12353         * modules/dup2-obsolete: New file.
12354         * m4/dup2-obsolete.m4: New file.
12355         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
12356         gl_FUNC_DUP2_OBSOLETE is not also defined.
12357         * modules/dup2 (Depends-on): Add dup2-obsolete.
12358         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
12359
12360 2011-04-25  Bruno Haible  <bruno@clisp.org>
12361
12362         strnlen: Avoid memchr related link error on old obsolete platforms.
12363         * modules/memchr-obsolete: New file.
12364         * m4/memchr-obsolete.m4: New file.
12365         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
12366         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
12367         * modules/memchr (Depends-on): Add memchr-obsolete.
12368         * modules/strnlen (Depends-on): Likewise.
12369         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
12370
12371 2011-04-25  Jim Meyering  <meyering@redhat.com>
12372
12373         maint.mk: makefile_at_at_check extend and clean up
12374         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
12375         in addition to */Makefile.am.
12376         Exempt legitimate uses of @VAR@ notation, e.g.,
12377         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
12378         Remove obsolete coreutils-specific comment.
12379         Prompted by discussion here:
12380         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
12381
12382 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
12383
12384         strtoul: remove dependency on strtol
12385         This is so that 'configure' need not check for strtol merely because
12386         the application needs strtoul.
12387         * modules/strtoul (Files): Add lib/strtol.c.
12388         (Depends-on): Remove strtol.
12389
12390         strtoull: remove dependency on strtoul
12391         This is like the strtoll change.
12392         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
12393         (Depends-on): Remove strtoul.
12394
12395         strtoll: remove dependency on strtol
12396         This is so that 'configure' need not check for strtol merely because
12397         the application needs strtoll.
12398         * modules/strtoll (Files): Add lib/strtol.c.
12399         (Depends-on): Remove strtol.
12400
12401 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12402
12403         inttypes: Move some configure check to module 'imaxdiv'.
12404         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
12405         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
12406         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
12407
12408 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12409
12410         inttypes: Move some configure check to module 'imaxabs'.
12411         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
12412         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
12413         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
12414
12415 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12416
12417         inttypes: Remove configure tests that are not needed since 2009-12-31.
12418         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
12419         gl_cv_header_working_inttypes_h.
12420
12421 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12422
12423         * modules/strnlen (Depends-on): Remove memchr.
12424         The strnlen implementation doesn't need the memchr module's fixes; see
12425         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
12426
12427         strtol: remove dependency on wchar
12428         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
12429         * modules/strtol (Depends-on): Remove wchar.
12430
12431 2011-04-21  Eric Blake  <eblake@redhat.com>
12432
12433         passfd: fix test regression on Linux
12434         * modules/passfd-tests (configure.ac): Correct socketpair check.
12435
12436         passfd: speed up configure and drop unused code
12437         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
12438         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
12439         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
12440         Instead of probing at configure for unix_scm_rights_bsd44_way,
12441         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
12442         check to a struct member probe.
12443         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
12444         (sendfd, recvfd): Update preprocessor checks.
12445         * modules/passfd (Files): Reflect rename, and drop unused file.
12446         (Depends-on): Drop unused dependency.
12447
12448         passfd: allow compilation on mingw
12449         * modules/sys_socket (Depends-on): Add sys_uio.
12450         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
12451         iovec and a minimal struct msghdr.
12452         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
12453         * tests/test-sys_socket.c (main): Enhance test.
12454         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
12455         guaranteed to provide what we need.
12456         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
12457         * modules/passfd-tests (Depends-on): Add sys_wait.
12458         * tests/test-passfd.c (main): Skip test on mingw, for now.
12459         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
12460         partial 'struct msghdr' implementation.
12461
12462         sys_uio: new module
12463         * modules/sys_uio: New module.
12464         * modules/sys_uio-tests: Likewise.
12465         * lib/sys_uio.in.h: New file.
12466         * m4/sys_uio_h.m4: Likewise.
12467         * tests/test-sys_uio.c: Likewise.
12468         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
12469         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
12470
12471 2011-04-20  Jim Meyering  <meyering@redhat.com>
12472
12473         useless-if-before-free: avoid false-positive
12474         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
12475         disjunct so that it too requires a terminating ";".  Without that,
12476         this script would identify as useless one statement from gcc that
12477         was not:
12478           if (aligned_ptr)
12479             free (((void **) aligned_ptr) [-1]);
12480
12481 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
12482
12483         doc: update users.txt.
12484         * users.txt: Add barcode.
12485
12486 2011-04-19  Bruno Haible  <bruno@clisp.org>
12487
12488         ioctl: Remove link dependency on native Windows.
12489         * lib/fd-hook.h: Renamed from lib/close-hook.h.
12490         (gl_close_fn, gl_ioctl_fn): New types.
12491         (struct fd_hook): Renamed from struct close_hook. Change type of
12492         private_close_fn field. Add private_ioctl_fn field.
12493         (close_hook_fn): Add parameter for primary close method.
12494         (execute_close_hooks, execute_all_close_hooks): Likewise.
12495         (ioctl_hook_fn): New type.
12496         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
12497         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
12498         argument.
12499         (unregister_fd_hook): Renamed from unregister_close_hook.
12500         * lib/fd-hook.c: Renamed from lib/close-hook.c.
12501         Don't include <unistd.h>.
12502         (close): Remove undef.
12503         (anchor): Update.
12504         (execute_close_hooks): Add argument for primary close method.
12505         (execute_all_close_hooks): Likewise.
12506         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
12507         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
12508         argument. Allow each argument to be NULL.
12509         (unregister_fd_hook): Renamed from unregister_close_hook.
12510         * lib/close.c (rpl_close): Pass 'close' function pointer to
12511         execute_all_close_hooks.
12512         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
12513         (primary_ioctl): New function.
12514         (ioctl): Don't call ioctlsocket here. Instead, call
12515         execute_all_ioctl_hooks.
12516         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
12517         close method.
12518         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
12519         (fd_sockets_hook): Renamed from close_sockets_hook.
12520         (gl_sockets_startup, gl_sockets_cleanup): Update.
12521         * modules/fd-hook: Renamed from modules/close-hook. Update.
12522         * modules/close (Depends-on): Add fd-hook, remove close-hook.
12523         * modules/sockets (Depends-on): Likewise.
12524         * modules/ioctl (Depends-on): Add fd-hook.
12525         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
12526         GNULIB_SOCKET.
12527
12528 2011-04-19  Bruno Haible  <bruno@clisp.org>
12529
12530         Move the support of O_NONBLOCK in open() to the 'open' module.
12531         * modules/nonblocking (Depends-on): Remove 'open'.
12532         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
12533         gl_cv_have_open_O_NONBLOCK.
12534         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
12535         O_NONBLOCK support.
12536         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
12537
12538 2011-04-17  Bruno Haible  <bruno@clisp.org>
12539
12540         pipe2: Simplify code.
12541         * lib/pipe2.c (pipe2): Reduce code duplication.
12542
12543 2011-04-17  Bruno Haible  <bruno@clisp.org>
12544
12545         nonblocking: Add comment.
12546         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
12547
12548 2011-04-17  Bruno Haible  <bruno@clisp.org>
12549
12550         nonblocking: Add tests for sockets.
12551         * tests/test-nonblocking-socket.sh: New file.
12552         * tests/test-nonblocking-socket-main.c: New file.
12553         * tests/test-nonblocking-socket-child.c: New file.
12554         * tests/test-nonblocking-socket.h: New file.
12555         * tests/socket-server.h: New file.
12556         * tests/socket-client.h: New file.
12557         * modules/nonblocking-socket-tests: New file.
12558         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
12559
12560 2011-04-17  Bruno Haible  <bruno@clisp.org>
12561
12562         nonblocking: Add tests for pipes.
12563         * tests/test-nonblocking-pipe.sh: New file.
12564         * tests/test-nonblocking-pipe-main.c: New file.
12565         * tests/test-nonblocking-pipe-child.c: New file.
12566         * tests/test-nonblocking-pipe.h: New file.
12567         * tests/test-nonblocking-writer.h: New file.
12568         * tests/test-nonblocking-reader.h: New file.
12569         * tests/test-nonblocking-misc.h: New file.
12570         * modules/nonblocking-pipe-tests: New file.
12571         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
12572
12573 2011-04-16  Bruno Haible  <bruno@clisp.org>
12574
12575         gettext: Clarify the needed programmer actions.
12576         * modules/gettext (Notice): New field.
12577         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
12578
12579 2011-04-16  Bruno Haible  <bruno@clisp.org>
12580
12581         strchrnul: Tweak last commit.
12582         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
12583         bug.
12584         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
12585         as in _GL_FUNCDECL_SYS.
12586         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
12587         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
12588
12589 2011-04-15  Eric Blake  <eblake@redhat.com>
12590
12591         strchrnul: work around cygwin bug
12592         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
12593         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
12594         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
12595         * modules/string (Makefile.am): Substitute it.
12596         * lib/string.in.h (strchrnul): Use it.
12597
12598 2011-04-15  Bruno Haible  <bruno@clisp.org>
12599
12600         Don't require lib/stdio-write.c when only module 'stdio' is used.
12601         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
12602         invocation.
12603         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
12604
12605 2011-04-14  Bruno Haible  <bruno@clisp.org>
12606
12607         Support non-blocking pipe I/O in read() on native Windows.
12608         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
12609         (read): New declaration.
12610         * lib/read.c: New file.
12611         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
12612         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
12613         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
12614         vscanf): New declarations.
12615         * lib/stdio-read.c: New file.
12616         * m4/read.m4: New file.
12617         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
12618         REPLACE_READ.
12619         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
12620         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12621         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
12622         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
12623         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
12624         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12625         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
12626         * modules/read: New file.
12627         * modules/nonblocking (Files): Add lib/stdio-read.c.
12628         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
12629         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
12630         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12631         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
12632         * modules/pread (Depends-on): Add read.
12633         * modules/safe-read (Depends-on): Likewise.
12634         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
12635         gets, scanf, vfscanf, vscanf): Verify signatures.
12636         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
12637         problem with non-blocking pipes.
12638         * doc/posix-functions/fgetc.texi: Likewise.
12639         * doc/posix-functions/fgets.texi: Likewise.
12640         * doc/posix-functions/fread.texi: Likewise.
12641         * doc/posix-functions/fscanf.texi: Likewise.
12642         * doc/posix-functions/getc.texi: Likewise.
12643         * doc/posix-functions/getchar.texi: Likewise.
12644         * doc/posix-functions/gets.texi: Likewise.
12645         * doc/posix-functions/scanf.texi: Likewise.
12646         * doc/posix-functions/vfscanf.texi: Likewise.
12647         * doc/posix-functions/vscanf.texi: Likewise.
12648
12649 2011-04-14  Bruno Haible  <bruno@clisp.org>
12650
12651         Support non-blocking pipe I/O in write() on native Windows.
12652         * lib/write.c (rpl_write): Split a write request that failed merely
12653         because the byte count was larger than the pipe buffer's size.
12654         * doc/posix-functions/write.texi: Mention the problem with large byte
12655         counts.
12656
12657 2011-04-14  Bruno Haible  <bruno@clisp.org>
12658
12659         wchar: Ensure that wchar_t gets defined on uClibc.
12660         * lib/wchar.in.h: On uClibc, include <stddef.h>.
12661         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
12662
12663 2011-04-13  Bruno Haible  <bruno@clisp.org>
12664
12665         safe-write, full-read: Avoid unnecessary compilation units.
12666         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
12667         (Depends-on): Remove safe-read. Add ssize_t.
12668         * modules/full-read (Files): Add lib/full-write.c.
12669         (Depends-on): Add full-write.
12670
12671 2011-04-13  Bruno Haible  <bruno@clisp.org>
12672
12673         Support non-blocking pipe I/O and SIGPIPE in pwrite().
12674         * modules/pwrite (Depends-on): Add 'write'.
12675
12676 2011-04-13  Bruno Haible  <bruno@clisp.org>
12677
12678         Support non-blocking pipe I/O in write() on native Windows.
12679         * lib/unistd.in.h (write): Enable replacement also if
12680         GNULIB_UNISTD_H_NONBLOCKING is 1.
12681         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
12682         (rpl_write): When failing to write on a non-blocking pipe, change
12683         errno from ENOSPC to EAGAIN.
12684         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
12685         putchar, puts, vfprintf, vprintf): Enable replacement also if
12686         GNULIB_STDIO_H_NONBLOCKING is 1.
12687         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
12688         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
12689         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
12690         CALL_WITH_SIGPIPE_EMULATION.
12691         (CALL_WITH_SIGPIPE_EMULATION): Use them.
12692         * m4/nonblocking.m4: New file.
12693         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
12694         for non-blocking I/O support.
12695         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12696         GNULIB_UNISTD_H_NONBLOCKING.
12697         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
12698         required for non-blocking I/O support.
12699         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
12700         * modules/nonblocking (Files): Add m4/nonblocking.m4,
12701         lib/stdio-write.c, m4/asm-underscore.m4.
12702         (Depends-on): Add stdio, unistd.
12703         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
12704         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
12705         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
12706         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
12707         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
12708         problem with non-blocking pipes.
12709         * doc/posix-functions/fputc.texi: Likewise.
12710         * doc/posix-functions/fputs.texi: Likewise.
12711         * doc/posix-functions/fwrite.texi: Likewise.
12712         * doc/posix-functions/printf.texi: Likewise.
12713         * doc/posix-functions/putc.texi: Likewise.
12714         * doc/posix-functions/putchar.texi: Likewise.
12715         * doc/posix-functions/puts.texi: Likewise.
12716         * doc/posix-functions/vfprintf.texi: Likewise.
12717         * doc/posix-functions/vprintf.texi: Likewise.
12718         * doc/posix-functions/write.texi: Likewise.
12719
12720 2011-04-10  Jim Meyering  <meyering@redhat.com>
12721
12722         maint.mk: prohibit doubled words
12723         Detect them also when they're separated by a newline.
12724         There are 3 ways to customize it:
12725           - disable the test on a per file basis, as usual with rules using
12726             $(VC_LIST_EXCEPT)
12727           - replace the default doubled-word-selecting regexp (affects all files)
12728           - ignore a particular file-vs-doubled-word match
12729         I nearly used that last one to ignore the "is is" match in
12730         coreutils' NEWS file, since the text was "ls -is is ..."
12731         To do that, I would have added this line to cfg.mk:
12732           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
12733         but it would have ignored any "is is" match in NEWS.
12734         Low probability, but still...
12735         Instead, I changed the text, slightly:
12736           -  ls -is is now consistent with ls -lis in ignoring values returned
12737           +  "ls -is" is now consistent with ls -lis in ignoring values returned
12738         * top/maint.mk (prohibit_double_word_RE_): Provide default.
12739         (prohibit_doubled_word_): Define.
12740         (sc_prohibit_doubled_word): New rule.
12741         (sc_prohibit_the_the): Remove.  Subsumed by the above.
12742
12743 2011-04-10  Jim Meyering  <meyering@redhat.com>
12744
12745         maint: fix doubled-word typo in comment
12746         * m4/gethostname.m4: s/is is/it is/
12747         * m4/getdomainname.m4: Likewise.
12748
12749 2011-04-10  Jim Meyering  <meyering@redhat.com>
12750
12751         maint: remove doubled word: s/it it/it/
12752         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
12753
12754 2011-04-10  Jim Meyering  <meyering@redhat.com>
12755
12756         maint.mk: remove useless semicolon and backslash
12757         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
12758         semicolon and backslash.
12759
12760 2011-04-10  Bruno Haible  <bruno@clisp.org>
12761
12762         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
12763         * modules/stdint-tests (Depends-on): Add wchar.
12764
12765 2011-04-10  Jim Meyering  <meyering@redhat.com>
12766
12767         maint: remove doubled words in comments, e.g., s/a a/a/
12768         * lib/strptime.c (day_of_the_week): s/the the/the/
12769         * tests/test-chown.h (test_chown): s/a a/a/
12770
12771         test-chown.h: correct a cast
12772         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
12773         when the destination is a stat.st_gid.
12774
12775 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
12776
12777         getaddrinfo: Fix test for sa_len member.
12778         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
12779         include <sys/types.h> before <sys/socket.h>.
12780
12781 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
12782
12783         maint: change "can not" to "cannot"
12784         * doc/posix-functions/iconv.texi (iconv): This one crossed line
12785         boundaries.
12786
12787 2011-04-09  Jim Meyering  <meyering@redhat.com>
12788
12789         maint: change "a a" to "a"
12790         * tests/test-lchown.h (test_lchown): s/a a/a/
12791
12792         maint.mk: prohibit \<the the\>
12793         * top/maint.mk (sc_prohibit_the_the): New rule.
12794
12795         maint: fix "the the" in comment
12796         * lib/count-one-bits.h: s/the the/the/
12797
12798         maint: change "can not" to "cannot"
12799         But do not change the occurrences in maintain.texi or in
12800         build-aux/po/Makefile.in.in, which I presume comes from gettext.
12801         * doc/gnulib-tool.texi: s/can not/cannot/
12802         * doc/posix-functions/accept.texi (accept): Likewise.
12803         * doc/posix-functions/socket.texi (socket): Likewise.
12804         * lib/mbrtowc.c: Likewise.
12805
12806         maint.mk: prohibit use of "can not"
12807         * top/maint.mk (sc_prohibit_can_not): New rule.
12808         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
12809
12810 2011-04-09  Bruno Haible  <bruno@clisp.org>
12811
12812         careadlinkat: Guard against misuse of careadlinkatcwd.
12813         * lib/careadlinkat.c: Include <stdlib.h>.
12814         (careadlinkatcwd): Check that the fd argument is as expected.
12815
12816 2011-04-09  Bruno Haible  <bruno@clisp.org>
12817
12818         careadlinkat: Use common coding style.
12819         * lib/careadlinkat.c: Move gnulib includes after system includes.
12820
12821 2011-04-09  Bruno Haible  <bruno@clisp.org>
12822
12823         careadlinkat: Clarify specification.
12824         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
12825         (careadlinkatcwd): Add comment.
12826         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
12827
12828 2011-04-09  Bruno Haible  <bruno@clisp.org>
12829
12830         areadlinkat: Avoid link error on many platforms.
12831         * modules/areadlinkat (Depends-on): Add areadlink.
12832
12833 2011-04-09  Bruno Haible  <bruno@clisp.org>
12834
12835         allocator, careadlinkat: Fix double-inclusion guard.
12836         * lib/allocator.h: Fix double-inclusion guard.
12837         * lib/careadlinkat.h: Likewise.
12838
12839 2011-04-09  Bruno Haible  <bruno@clisp.org>
12840
12841         relocatable-prog-wrapper: Update after module 'areadlink' changed.
12842         * lib/relocwrapper.c: Update dependencies hierarchy.
12843         * build-aux/install-reloc: Update list of files to be compiled.
12844         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
12845         lib/allocator.[hc].
12846
12847 2011-04-08  Eric Blake  <eblake@redhat.com>
12848
12849         strftime: silence gnulib-tool warning
12850         * modules/strftime-tests (Depends-on): Drop automatic dependency.
12851
12852 2011-04-08  Bruno Haible  <bruno@clisp.org>
12853
12854         verify: Fix syntax error with GCC 4.6 in C++ mode.
12855         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
12856         (HAVE_STATIC_ASSERT): New macro.
12857         (verify_true, verify): Use 'static_assert' if it is supported and
12858         '_Static_assert' is not supported.
12859
12860 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
12861
12862         allocator: New module.
12863         * modules/allocator, lib/allocator.c: New files.
12864         * lib/allocator.h (stdlib_allocator): New decl.
12865         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
12866         Remove.  Do not include <stdlib.h>.
12867         (careadlinkat): Use stdlib_allocator instead of rolling our own.
12868         * modules/careadlinkat (Files): Remove lib/allocator.h.
12869         (Depends-on): Add allocator.
12870
12871         stdlib: let modules use system malloc, realloc
12872         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
12873         if !_GL_USE_STDLIB_ALLOC.
12874         (malloc, realloc): Limit this change to a smaller scope.
12875
12876         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
12877         (malloc, realloc): Don't #undef; no longer needed.
12878         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12879         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12880         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12881         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12882         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12883         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12884         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12885         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12886
12887         careadlinkat: rename members to avoid problem
12888         * lib/allocator.h (struct allocator): Rename members from
12889         malloc/realloc to allocate/reallocate, to avoid problems if malloc
12890         and realloc are #define'd.  Reported by Eric Blake in
12891         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
12892         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
12893
12894 2011-04-08  Eric Blake  <eblake@redhat.com>
12895
12896         nonblocking: reduce dependency
12897         * tests/test-nonblocking.c: Only test sockets when in use.
12898         * modules/nonblocking-tests (Depends-on): Drop socket.
12899         (Makefile.am): Link even if sockets are not present.
12900         * modules/pipe2-tests (Makefile.am): Likewise.
12901         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
12902
12903         pipe2: fix O_NONBLOCK support on mingw
12904         * modules/pipe2 (Depends-on): Add nonblocking.
12905         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
12906         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
12907         * tests/test-nonblocking.c (main): Likewise.
12908         * modules/pipe2-tests (Makefile.am): Avoid link failure.
12909
12910         fcntl-h: fix O_ACCMODE on cygwin
12911         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
12912         * lib/fcntl.in.h (O_ACCMODE): Fix it.
12913
12914         pipe-filter: drop O_NONBLOCK workarounds
12915         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
12916         * modules/pipe-filter-ii (Depends-on): Likewise.
12917         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
12918
12919         nonblocking: provide O_NONBLOCK for mingw
12920         * modules/nonblocking (Depends-on): Add open.
12921         (configure.ac): Set new witness macro.
12922         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
12923         * modules/fcntl-h (Makefile.am): Substitute it.
12924         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
12925         nonblocking module is in use.
12926         * lib/nonblocking.c: Adjust portability test.
12927         * lib/open.c (open): Don't let native open see gnulib flag.
12928         * tests/test-fcntl-h.c (main): Enhance test.
12929         * tests/test-open.h (test_open): Likewise.
12930         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
12931
12932         careadlinkat: fix compilation error on mingw
12933         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
12934         within struct allocator.
12935
12936 2011-04-06  Eric Blake  <eblake@redhat.com>
12937
12938         binary-io: relicense under LGPLv2+
12939         * modules/binary-io (License): Relax to LGPLv2+.
12940         Requested for libvirt, and required by pipe2.
12941
12942 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
12943
12944         verify: use _Static_assert if available
12945         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
12946         (verify_true, verify): Use it if available.  This generates better
12947         diagnostics with GCC 4.6.0 and later.
12948
12949 2011-04-05  Bruno Haible  <bruno@clisp.org>
12950
12951         Remove leftover generated .h files after config.status changed.
12952
12953         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
12954         GL_GENERATE_ALLOCA_H.
12955         * modules/alloca-opt (Makefile.am): Remove alloca.h if
12956         GL_GENERATE_ALLOCA_H evaluates to false.
12957
12958         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
12959         GL_GENERATE_ARGZ_H.
12960         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
12961         evaluates to false.
12962
12963         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
12964         GL_GENERATE_BYTESWAP_H.
12965         * modules/byteswap (Makefile.am): Remove byteswap.h if
12966         GL_GENERATE_BYTESWAP_H evaluates to false.
12967
12968         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
12969         GL_GENERATE_ERRNO_H.
12970         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
12971         evaluates to false.
12972
12973         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
12974         GL_GENERATE_FLOAT_H.
12975         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
12976         evaluates to false.
12977
12978         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
12979         GL_GENERATE_FNMATCH_H.
12980         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
12981         GL_GENERATE_FNMATCH_H evaluates to false.
12982
12983         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
12984         GL_GENERATE_GLOB_H.
12985         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
12986         evaluates to false.
12987
12988         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
12989         automake conditional GL_GENERATE_ICONV_H.
12990         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
12991         evaluates to false.
12992
12993         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
12994         GL_GENERATE_NETINET_IN_H.
12995         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
12996         GL_GENERATE_NETINET_IN_H evaluates to false.
12997
12998         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
12999         conditional GL_GENERATE_PTHREAD_H.
13000         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
13001         * modules/pthread (Makefile.am): Remove pthread.h if
13002         GL_GENERATE_PTHREAD_H evaluates to false.
13003
13004         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
13005         GL_GENERATE_SCHED_H.
13006         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
13007         evaluates to false.
13008
13009         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
13010         conditional GL_GENERATE_SELINUX_CONTEXT_H.
13011         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
13012         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
13013
13014         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
13015         GL_GENERATE_STDARG_H.
13016         * modules/stdarg (Makefile.am): Remove stdarg.h if
13017         GL_GENERATE_STDARG_H evaluates to false.
13018
13019         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
13020         GL_GENERATE_STDBOOL_H.
13021         * modules/stdbool (Makefile.am): Remove stdbool.h if
13022         GL_GENERATE_STDBOOL_H evaluates to false.
13023
13024         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
13025         conditional GL_GENERATE_STDDEF_H.
13026         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
13027         * modules/stddef (Makefile.am): Remove stddef.h if
13028         GL_GENERATE_STDDEF_H evaluates to false.
13029
13030         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
13031         GL_GENERATE_STDINT_H.
13032         * modules/stdint (Makefile.am): Remove stdint.h if
13033         GL_GENERATE_STDINT_H evaluates to false.
13034
13035         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
13036         GL_GENERATE_SYSEXITS_H.
13037         * modules/sysexits (Makefile.am): Remove sysexits.h if
13038         GL_GENERATE_SYSEXITS_H evaluates to false.
13039
13040         Reported by Karl Berry and Ralf Wildenhues.
13041
13042 2011-04-05  Bruno Haible  <bruno@clisp.org>
13043
13044         Ensure to rebuild generated .h files when config.status has changed.
13045         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
13046         config.status.
13047         * modules/ctype (Makefile.am): Likewise.
13048         * modules/dirent (Makefile.am): Likewise.
13049         * modules/errno (Makefile.am): Likewise.
13050         * modules/fcntl-h (Makefile.am): Likewise.
13051         * modules/float (Makefile.am): Likewise.
13052         * modules/getopt-posix (Makefile.am): Likewise.
13053         * modules/glob (Makefile.am): Likewise.
13054         * modules/iconv-h (Makefile.am): Likewise.
13055         * modules/inttypes (Makefile.am): Likewise.
13056         * modules/langinfo (Makefile.am): Likewise.
13057         * modules/locale (Makefile.am): Likewise.
13058         * modules/math (Makefile.am): Likewise.
13059         * modules/netdb (Makefile.am): Likewise.
13060         * modules/netinet_in (Makefile.am): Likewise.
13061         * modules/poll-h (Makefile.am): Likewise.
13062         * modules/pthread (Makefile.am): Likewise.
13063         * modules/pty (Makefile.am): Likewise.
13064         * modules/sched (Makefile.am): Likewise.
13065         * modules/search (Makefile.am): Likewise.
13066         * modules/selinux-h (Makefile.am): Likewise.
13067         * modules/signal (Makefile.am): Likewise.
13068         * modules/spawn (Makefile.am): Likewise.
13069         * modules/stdarg (Makefile.am): Likewise.
13070         * modules/stdbool (Makefile.am): Likewise.
13071         * modules/stddef (Makefile.am): Likewise.
13072         * modules/stdint (Makefile.am): Likewise.
13073         * modules/stdio (Makefile.am): Likewise.
13074         * modules/stdlib (Makefile.am): Likewise.
13075         * modules/string (Makefile.am): Likewise.
13076         * modules/strings (Makefile.am): Likewise.
13077         * modules/sys_file (Makefile.am): Likewise.
13078         * modules/sys_ioctl (Makefile.am): Likewise.
13079         * modules/sys_select (Makefile.am): Likewise.
13080         * modules/sys_socket (Makefile.am): Likewise.
13081         * modules/sys_stat (Makefile.am): Likewise.
13082         * modules/sys_time (Makefile.am): Likewise.
13083         * modules/sys_times (Makefile.am): Likewise.
13084         * modules/sys_utsname (Makefile.am): Likewise.
13085         * modules/sys_wait (Makefile.am): Likewise.
13086         * modules/sysexits (Makefile.am): Likewise.
13087         * modules/termios (Makefile.am): Likewise.
13088         * modules/time (Makefile.am): Likewise.
13089         * modules/unistd (Makefile.am): Likewise.
13090         * modules/wchar (Makefile.am): Likewise.
13091         * modules/wctype-h (Makefile.am): Likewise.
13092         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
13093
13094 2011-04-05  Bruno Haible  <bruno@clisp.org>
13095
13096         pipe2: Relicense under LGPLv2+.
13097         * modules/pipe2 (License): Change to LGPLv2+.
13098         Requested by Eric Blake, for libvirt.
13099
13100 2011-04-05  Bruce Korb  <bkorb@gnu.org>
13101
13102         bootstrap: compute gnulib_extra_files after updating build_aux
13103         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
13104         change build_aux or also supply gnulib_extra_files.  Handle correctly.
13105
13106 2011-04-05  Eric Blake  <eblake@redhat.com>
13107
13108         bootstrap: preserve git whitelist item sorting
13109         * build-aux/bootstrap (sort_patterns): New function.
13110         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
13111
13112 2011-04-05  Simon Josefsson  <simon@josefsson.org>
13113
13114         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
13115         sc_space_tab check.
13116
13117 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
13118
13119         areadlink, areadlinkat: rewrite in terms of careadlinkat
13120         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
13121         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
13122         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
13123         (malloc, realloc): Remove #undefs.
13124         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
13125         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
13126         readlink, ssize_t, stdint, unistd.
13127         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
13128         areadlink, stdint.
13129
13130         careadlinkat: new module
13131         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
13132         * modules/careadlinkat: New files, written by me with
13133         a review and feedback from Ben Pfaff in
13134         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
13135
13136 2011-04-01  Bruno Haible  <bruno@clisp.org>
13137
13138         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
13139         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
13140         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
13141         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
13142         Reported by Bruce Korb <bruce.korb@gmail.com>.
13143
13144 2011-04-01  Bruno Haible  <bruno@clisp.org>
13145
13146         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
13147         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
13148         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
13149         * modules/wcpcpy (Depends-on): Add extensions.
13150         * modules/wcpncpy (Depends-on): Likewise.
13151         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
13152         systems.
13153         * doc/posix-functions/wcpncpy.texi: Likewise.
13154         * doc/posix-functions/wcwidth.texi: Likewise.
13155
13156 2011-03-31  Eric Blake  <eblake@redhat.com>
13157
13158         nonblocking: fix mingw test failures
13159         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
13160         non-blocking flag on regular file.
13161         (get_nonblocking_flag): Set errno on invalid fd.
13162         * tests/test-nonblocking.c (main): Avoid test failure on
13163         directories if fchdir is not active.
13164         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
13165
13166 2011-03-31  Bruno Haible  <bruno@clisp.org>
13167
13168         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
13169         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
13170         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
13171         Reported by Simon Josefsson <simon@josefsson.org>.
13172
13173 2011-03-31  Bruno Haible  <bruno@clisp.org>
13174         and Eric Blake  <eblake@redhat.com>
13175
13176         nonblocking: new module
13177         * modules/nonblocking: New module.
13178         * modules/nonblocking-tests: Likewise.
13179         * lib/nonblocking.h: New file.
13180         * lib/nonblocking.c: Likewise.
13181         * tests/test-nonblocking.c: New test.
13182         * lib/ioctl.c (ioctl) [mingw]: Update comment.
13183
13184 2011-03-30  Bruno Haible  <bruno@clisp.org>
13185
13186         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
13187         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
13188         instead of 'printf' format for GCC >= 4.4.
13189         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
13190         (fprintf, printf, vfprintf, vprintf): Declare with
13191         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
13192         the system's vfprintf() function.
13193         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
13194
13195 2011-03-30  Eric Blake  <eblake@redhat.com>
13196
13197         passfd: fix scoping bug
13198         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
13199         before sendmsg/recvmsg.
13200
13201         passfd: standardize coding conventions
13202         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
13203         can be learned at compile time.
13204         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
13205         ifdefs.
13206         (sendfd, recvfd): Follow gnulib code conventions.
13207
13208         passfd: fix incorrect sendmsg arguments
13209         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
13210         incorrect msg_controllen value.
13211         * modules/passfd-tests (Depends-on): Check for alarm.
13212         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
13213         Reported by Bastien ROUCARIES.
13214
13215 2011-03-30  Bruno Haible  <bruno@clisp.org>
13216
13217         c-strcasestr: Relicense under LGPLv2+.
13218         * modules/c-strcasestr (License): Change to LGPLv2+.
13219         Requested by Eric Blake, for libvirt.
13220
13221 2011-03-30  Simon Josefsson  <simon@josefsson.org>
13222
13223         * users.txt: Add libidn2.  Fix libtasn1 link.
13224
13225 2011-03-30  Jim Meyering  <meyering@redhat.com>
13226
13227         tests: readlink* ("",... fails with EINVAL on newer kernels
13228         readlink and readlinkat have typically failed with ENOENT for
13229         the invalid, empty file name,  "".  However, with the advent
13230         of linux-2.6.39, they fail with EINVAL.
13231         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
13232         when operating on the empty file name.
13233         * tests/test-readlink.h (test_readlink): Likewise.
13234
13235 2011-03-29  Bruno Haible  <bruno@clisp.org>
13236
13237         Relicense some modules under LGPLv2+, for libidn2.
13238         * modules/array-mergesort (License): Change to LGPLv2+.
13239         * modules/c-strcaseeq (License): Likewise.
13240         * modules/striconveh (License): Likewise.
13241         * modules/striconveha (License): Likewise.
13242         * modules/uniconv/base (License): Likewise.
13243         * modules/uniconv/u8-conv-from-enc (License): Likewise.
13244         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
13245         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
13246         * modules/unictype/base (License): Likewise.
13247         * modules/unictype/bidiclass-of (License): Likewise.
13248         * modules/unictype/category-M (License): Likewise.
13249         * modules/unictype/category-none (License): Likewise.
13250         * modules/unictype/category-of (License): Likewise.
13251         * modules/unictype/category-test (License): Likewise.
13252         * modules/unictype/category-test-withtable (License): Likewise.
13253         * modules/unictype/combining-class (License): Likewise.
13254         * modules/unictype/joiningtype-of (License): Likewise.
13255         * modules/unictype/scripts (License): Likewise.
13256         * modules/uninorm/base (License): Likewise.
13257         * modules/uninorm/canonical-decomposition (License): Likewise.
13258         * modules/uninorm/composition (License): Likewise.
13259         * modules/uninorm/decompose-internal (License): Likewise.
13260         * modules/uninorm/decomposition-table (License): Likewise.
13261         * modules/uninorm/nfc (License): Likewise.
13262         * modules/uninorm/nfd (License): Likewise.
13263         * modules/uninorm/u32-normalize (License): Likewise.
13264         * modules/unistr/base (License): Likewise.
13265         * modules/unistr/u32-cpy (License): Likewise.
13266         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
13267         * modules/unistr/u32-to-u8 (License): Likewise.
13268         * modules/unistr/u32-uctomb (License): Likewise.
13269         * modules/unistr/u8-check (License): Likewise.
13270         * modules/unistr/u8-mblen (License): Likewise.
13271         * modules/unistr/u8-mbtouc (License): Likewise.
13272         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
13273         * modules/unistr/u8-mbtoucr (License): Likewise.
13274         * modules/unistr/u8-prev (License): Likewise.
13275         * modules/unistr/u8-strlen (License): Likewise.
13276         * modules/unistr/u8-to-u32 (License): Likewise.
13277         * modules/unistr/u8-uctomb (License): Likewise.
13278         * modules/unitypes (License): Likewise.
13279         Requested by Simon Josefsson.
13280
13281 2011-03-29  Simon Josefsson  <simon@josefsson.org>
13282
13283         lib-symbol-visibility: Add a notice.
13284         * modules/lib-symbol-visibility (Notice): New field.
13285
13286 2011-03-29  Bruno Haible  <bruno@clisp.org>
13287
13288         getaddrinfo: Doc fix.
13289         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
13290         section "fixed in Gnulib".
13291
13292 2011-03-28  Simon Josefsson  <simon@josefsson.org>
13293
13294         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
13295         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
13296
13297 2011-03-26  Bruno Haible  <bruno@clisp.org>
13298
13299         unictype/property-byname: Reduce the number of load-time relocations.
13300         * lib/unictype/pr_byname.c: Include <stdlib.h>.
13301         (UC_PROPERTY_INDEX_*): New enumeration values.
13302         (uc_property_byname): Convert an index from the lookup table to an
13303         uc_property_t.
13304         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
13305         values.
13306
13307 2011-03-26  Bruno Haible  <bruno@clisp.org>
13308
13309         unictype/property-byname: Allow omitted word separators and aliases.
13310         * lib/unictype/pr_byname.gperf: Add property names without word
13311         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
13312         for 'space'.
13313
13314 2011-03-26  Bruno Haible  <bruno@clisp.org>
13315
13316         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
13317         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
13318         also hyphens to space.
13319         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
13320         without spaces.
13321         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
13322
13323 2011-03-26  Bruno Haible  <bruno@clisp.org>
13324
13325         unictype/joiningtype-byname: Recognize long names as well.
13326         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
13327         a long name.
13328         * lib/unictype/joiningtype_byname.c: Include <string.h>,
13329         unictype/joiningtype_byname.h.
13330         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
13331         * lib/unictype/joiningtype_byname.gperf: New file.
13332         * modules/unictype/joiningtype-byname (Files): Add
13333         lib/unictype/joiningtype_byname.gperf.
13334         (Depends-on): Add gperf.
13335         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
13336         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
13337         long names.
13338
13339         Tests for module 'unictype/joiningtype-longname'.
13340         * modules/unictype/joiningtype-longname-tests: New file.
13341         * tests/unictype/test-joiningtype_longname.c: New file.
13342
13343         New module 'unictype/joiningtype-longname'.
13344         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
13345         * lib/unictype/joiningtype_longname.c: New file.
13346         * modules/unictype/joiningtype-longname: New file.
13347         * modules/unictype/joiningtype-all (Depends-on): Add
13348         unictype/joiningtype-longname.
13349
13350 2011-03-26  Bruno Haible  <bruno@clisp.org>
13351
13352         unictype/bidiclass-byname: Recognize long names as well.
13353         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
13354         name.
13355         * lib/unictype/bidi_byname.c: Include <string.h>,
13356         unictype/bidi_byname.h.
13357         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
13358         * lib/unictype/bidi_byname.gperf: New file.
13359         * modules/unictype/bidiclass-byname (Files): Add
13360         lib/unictype/bidi_byname.gperf.
13361         (Depends-on): Add gperf.
13362         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
13363         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
13364         long names.
13365
13366         Tests for module 'unictype/bidiclass-longname'.
13367         * modules/unictype/bidiclass-longname-tests: New file.
13368         * tests/unictype/test-bidi_longname.c: New file.
13369
13370         New module 'unictype/bidiclass-longname'.
13371         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
13372         * lib/unictype/bidi_longname.c: New file.
13373         * modules/unictype/bidiclass-longname: New file.
13374         * modules/unictype/bidiclass-all (Depends-on): Add
13375         unictype/bidiclass-longname.
13376
13377 2011-03-26  Bruno Haible  <bruno@clisp.org>
13378
13379         unictype/bidi*: Rename modules.
13380         * modules/unictype/bidiclass-all: Renamed from
13381         modules/unictype/bidicategory-all.
13382         * modules/unictype/bidiclass-name: Renamed from
13383         modules/unictype/bidiclass-name.
13384         (Description): Update.
13385         * modules/unictype/bidiclass-name-tests: Renamed from
13386         modules/unictype/bidicategory-name-tests.
13387         * modules/unictype/bidiclass-byname: Renamed from
13388         modules/unictype/bidicategory-byname.
13389         (Description): Update.
13390         * modules/unictype/bidiclass-byname-tests: Renamed from
13391         modules/unictype/bidicategory-byname-tests.
13392         * modules/unictype/bidiclass-of: Renamed from
13393         modules/unictype/bidicategory-of.
13394         (Description): Update.
13395         * modules/unictype/bidiclass-of-tests: Renamed from
13396         modules/unictype/bidicategory-of-tests.
13397         * modules/unictype/bidiclass-test: Renamed from
13398         modules/unictype/bidicategory-test.
13399         (Description): Update.
13400         * modules/unictype/bidiclass-test-tests: Renamed from
13401         modules/unictype/bidicategory-test-tests.
13402         * modules/unictype/bidicategory-all: New file, a simple redirection.
13403         * modules/unictype/bidicategory-name: Likewise.
13404         * modules/unictype/bidicategory-byname: Likewise.
13405         * modules/unictype/bidicategory-of: Likewise.
13406         * modules/unictype/bidicategory-test: Likewise.
13407         * modules/unictype/property-bidi-* (Dependencies): Update.
13408         * lib/unictype/bidi_*.c: Update comment.
13409
13410 2011-03-26  Bruno Haible  <bruno@clisp.org>
13411
13412         unictype/bidi*: Rename functions, part 2.
13413         * modules/unictype/bidicategory-name (configure.ac): Update required
13414         libunistring version.
13415         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
13416
13417 2011-03-25  Bruno Haible  <bruno@clisp.org>
13418
13419         New module 'unictype/combining-class-all'.
13420         * modules/unictype/combining-class-all: New file.
13421
13422         Tests for module 'unictype/combining-class-byname'.
13423         * modules/unictype/combining-class-byname-tests: New file.
13424         * tests/unictype/test-combiningclass_byname.c: New file.
13425
13426         New module 'unictype/combining-class-byname'.
13427         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
13428         * lib/unictype/combiningclass_byname.c: New file.
13429         * lib/unictype/combiningclass_byname.gperf: New file.
13430         * modules/unictype/combining-class-byname: New file.
13431
13432         Tests for module 'unictype/combining-class-longname'.
13433         * modules/unictype/combining-class-longname-tests: New file.
13434         * tests/unictype/test-combiningclass_longname.c: New file.
13435
13436         New module 'unictype/combining-class-longname'.
13437         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
13438         * lib/unictype/combiningclass_longname.c: New file.
13439         * modules/unictype/combining-class-longname: New file.
13440
13441         Tests for module 'unictype/combining-class-name'.
13442         * modules/unictype/combining-class-name-tests: New file.
13443         * tests/unictype/test-combiningclass_name.c: New file.
13444
13445         New module 'unictype/combining-class-name'.
13446         * lib/unictype.in.h (uc_combining_class_name): New declaration.
13447         * lib/unictype/combiningclass_name.c: New file.
13448         * modules/unictype/combining-class-name: New file.
13449
13450 2011-03-25  Bruno Haible  <bruno@clisp.org>
13451
13452         unictype/combining-class: Rename source files.
13453         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
13454         of unictype/combining.h.
13455         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
13456         Update.
13457         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
13458         * modules/unictype/combining-class (Description): Fix.
13459         (Files, Makefile.am): Update.
13460         * tests/unictype/test-combiningclass.c: Renamed from
13461         tests/unictype/test-combining.c.
13462         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
13463
13464 2011-03-25  Bruno Haible  <bruno@clisp.org>
13465
13466         unictype: Update list of canonical combining classes.
13467         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
13468
13469 2011-03-25  Bruno Haible  <bruno@clisp.org>
13470
13471         unictype/category-byname: Recognize long names as well.
13472         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
13473         a long name.
13474         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
13475         unictype/categ_byname.h.
13476         (UC_CATEGORY_INDEX_*): New enumeration values.
13477         (uc_general_category_byname): Use uc_general_category_lookup and
13478         convert from index to value.
13479         * lib/unictype/categ_byname.gperf: New file.
13480         * modules/unictype/category-byname (Files): Add
13481         lib/unictype/categ_byname.gperf.
13482         (Depends-on): Add gperf.
13483         (Makefile.am): Add rule for generating unictype/categ_byname.h.
13484         * tests/unictype/test-categ_byname.c (main): Test the recognition of
13485         long names.
13486
13487         Tests for module 'unictype/category-longname'.
13488         * modules/unictype/category-longname-tests: New file.
13489         * tests/unictype/test-categ_longname.c: New file.
13490
13491         New module 'unictype/category-longname'.
13492         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
13493         * lib/unictype/categ_longname.c: New file.
13494         * modules/unictype/category-longname: New file.
13495         * modules/unictype/category-all (Depends-on): Add it.
13496
13497 2011-03-25  Bruno Haible  <bruno@clisp.org>
13498
13499         Tests for module 'unictype/category-LC'.
13500         * modules/unictype/category-LC-tests: New file.
13501         * tests/unictype/test-categ_LC.c: New file, automatically generated.
13502
13503         New module 'unictype/category-LC'.
13504         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
13505         (UC_CATEGORY_LC): New declaration.
13506         (UC_CASED_LETTER): New macro.
13507         * lib/gen-uni-tables.c (is_category_LC): New function.
13508         (output_categories): Also handle category LC.
13509         (UC_CATEGORY_MASK_LC): New enumeration value.
13510         (general_category_byname): Also handle category LC.
13511         * lib/unictype/categ_LC.c: New file.
13512         * lib/unictype/categ_LC.h: New file, automatically generated.
13513         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
13514         category LC.
13515         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
13516         * modules/unictype/category-LC: New file.
13517         * modules/unictype/category-byname (Depends-on): Add
13518         unictype/category-LC.
13519         * modules/unictype/category-all (Depends-on): Likewise.
13520
13521 2011-03-25  Eric Blake  <eblake@redhat.com>
13522
13523         xmalloc: revert yesterday's regression
13524         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
13525         realloc's underlying behavior (allowing allocation of zero-size
13526         objects, especially if malloc-gnu is also in use).
13527
13528 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
13529
13530         maint.mk: add missing version to VC-tag
13531         * top/maint.mk: git tag was missing actual tag name; add it.
13532
13533         valgrind: do leak checking, and exit with code 1 on error (not 0)
13534         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
13535         to VALGRIND.
13536
13537 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
13538
13539         posix-modules: say what it does.
13540         * posix-modules: Add a line to the --help output saying what it does.
13541
13542 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
13543
13544         xmalloc: Do not leak if underlying realloc is C99 compatible.
13545         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
13546         This avoids a leak on C99-based systems.  See
13547         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
13548
13549 2011-03-24  Eric Blake  <eblake@redhat.com>
13550
13551         realloc: document portability problem
13552         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
13553         passing 0 size to realloc.
13554
13555 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
13556
13557         doc: update users.txt
13558         * users.txt: Add cvsps, tmpwatch
13559
13560 2011-03-23  Matt Rice  <ratmice@gmail.com>
13561
13562         doc: update users.txt
13563         * users.txt: Add gdb.
13564
13565 2011-03-23  Jim Meyering  <meyering@redhat.com>
13566
13567         doc: update users.txt
13568         Looking through matches up to the following URL (there are still
13569         several more pages), I found several projects that use gnulib:
13570         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
13571         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
13572         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
13573
13574 2011-03-22  Bruno Haible  <bruno@clisp.org>
13575
13576         unictype/bidi*: Rename functions.
13577         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
13578         uc_bidi_class, uc_is_bidi_class): New declarations.
13579         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
13580         uc_bidi_category_byname.
13581         (uc_bidi_category_byname): New function.
13582         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
13583         u_bidi_category_name.
13584         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
13585         (uc_bidi_category_name): New function.
13586         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
13587         uc_bidi_category.
13588         (uc_bidi_category): New function.
13589         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
13590         uc_is_bidi_category. Invoke uc_bidi_class.
13591         (uc_is_bidi_category): New function.
13592         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
13593         instead of uc_bidi_category_byname.
13594         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
13595         instead of uc_bidi_category_name.
13596         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
13597         uc_bidi_category.
13598         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
13599         instead of uc_is_bidi_category.
13600
13601 2011-03-21  Bruno Haible  <bruno@clisp.org>
13602
13603         New module 'unictype/joininggroup-all'.
13604         * modules/unictype/joininggroup-all: New file.
13605
13606         Tests for module 'unictype/joininggroup-of'.
13607         * modules/unictype/joininggroup-of-tests: New file.
13608         * tests/unictype/test-joininggroup_of.c: New file.
13609         * tests/unictype/test-joininggroup_of.h: New file, automatically
13610         generated by gen-uni-tables.
13611
13612         New module 'unictype/joininggroup-of'.
13613         * modules/unictype/joininggroup-of: New file.
13614         * lib/unictype/joininggroup_of.c: New file.
13615         * lib/unictype/joininggroup_of.h: New file, automatically generated by
13616         gen-uni-tables.
13617
13618         Tests for module 'unictype/joininggroup-byname'.
13619         * modules/unictype/joininggroup-byname-tests: New file.
13620         * tests/unictype/test-joininggroup_byname.c: New file.
13621
13622         New module 'unictype/joininggroup-byname'.
13623         * modules/unictype/joininggroup-byname: New file.
13624         * lib/unictype/joininggroup_byname.c: New file.
13625         * lib/unictype/joininggroup_byname.gperf: New file.
13626
13627         Tests for module 'unictype/joininggroup-name'.
13628         * modules/unictype/joininggroup-name-tests: New file.
13629         * tests/unictype/test-joininggroup_name.c: New file.
13630
13631         New module 'unictype/joininggroup-name'.
13632         * modules/unictype/joininggroup-name: New file.
13633         * lib/unictype/joininggroup_name.c: New file.
13634         * lib/unictype/joininggroup_name.h: New file.
13635
13636         New module 'unictype/joiningtype-all'.
13637         * modules/unictype/joiningtype-all: New file.
13638
13639         Tests for module 'unictype/joiningtype-of'.
13640         * modules/unictype/joiningtype-of-tests: New file.
13641         * tests/unictype/test-joiningtype_of.c: New file.
13642         * tests/unictype/test-joiningtype_of.h: New file, automatically
13643         generated by gen-uni-tables.
13644
13645         New module 'unictype/joiningtype-of'.
13646         * modules/unictype/joiningtype-of: New file.
13647         * lib/unictype/joiningtype_of.c: New file.
13648         * lib/unictype/joiningtype_of.h: New file, automatically generated by
13649         gen-uni-tables.
13650
13651         Tests for module 'unictype/joiningtype-byname'.
13652         * modules/unictype/joiningtype-byname-tests: New file.
13653         * tests/unictype/test-joiningtype_byname.c: New file.
13654
13655         New module 'unictype/joiningtype-byname'.
13656         * modules/unictype/joiningtype-byname: New file.
13657         * lib/unictype/joiningtype_byname.c: New file.
13658
13659         Tests for module 'unictype/joiningtype-name'.
13660         * modules/unictype/joiningtype-name-tests: New file.
13661         * tests/unictype/test-joiningtype_name.c: New file.
13662
13663         New module 'unictype/joiningtype-name'.
13664         * modules/unictype/joiningtype-name: New file.
13665         * lib/unictype/joiningtype_name.c: New file.
13666
13667         unictype: Add support for Arabic shaping properties.
13668         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
13669         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
13670         declarations.
13671         (UC_JOINING_GROUP_*): New enumeration values.
13672         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
13673         declarations.
13674         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
13675         (unicode_joining_type): New variable.
13676         (UC_JOINING_GROUP_*): New enumeration values.
13677         (unicode_joining_group): New variable.
13678         (fill_arabicshaping, joining_type_as_c_identifier,
13679         output_joining_type_test, output_joining_type,
13680         joining_group_as_c_identifier, output_joining_group_test,
13681         output_joining_group): New functions.
13682         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
13683         fill_arabicshaping and output_joining_type_test, output_joining_type,
13684         output_joining_group_test, output_joining_group.
13685         Reported by Simon Josefsson.
13686
13687 2011-03-21  Jim Meyering  <meyering@redhat.com>
13688
13689         strftime: fix a bug in yesterday's change
13690         * lib/strftime.c (add): Accommodate width's initial value of -1.
13691         Otherwise, nstrftime would copy uninitialized data into
13692         the result buffer.
13693
13694 2011-03-21  Jim Meyering  <meyering@redhat.com>
13695
13696         tests: add strftime-tests module
13697         * tests/test-strftime.c: New file.
13698         * modules/strftime-tests: New module.
13699
13700 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13701
13702         strftime: don't assume a byte count fits in 'int'
13703         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
13704         found this problem by static analysis, using gcc -Wstrict-overflow
13705         (GCC 4.5.2, x86-64).  This reported an optimization that depended
13706         on an integer overflow having undefined behavior, but it turns out
13707         that the argument is a size, which might not fit in 'int' anyway,
13708
13709 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13710
13711         stdio: don't require ignore_value around fwrite
13712
13713         This patch works around libc bug 11959
13714         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
13715         Without this patch, applications must often write
13716         ignore_value (fwrite (...)) even though the ignore_value is
13717         not helpful here.  It's common to write many objects, using
13718         fwrite/printf/etc., and then use ferror to detect output error.
13719
13720         I considered making this patch optional, but decided against it,
13721         because libc is obviously being inconsistent here: there is no
13722         reason libc should insist that user code must inspect fwrite
13723         return's value without also insisting that it inspect printf's,
13724         putchar's, etc.  If user code wants to have a strict style where
13725         all these functions' values are checked (so that ferror need not
13726         be checked), we could add support for that style in a new gnulib
13727         module, but in the meantime it's better to be consistent and to
13728         support common usage.
13729
13730         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
13731         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
13732         that we are compiling in checking mode, and if not C++, and
13733         if not already wrapping fwrite for some other reason.
13734         (fwrite): #define to rpl_fwrite if the latter is defined.
13735
13736 2011-03-20  Bruno Haible  <bruno@clisp.org>
13737
13738         verror: Fix compilation error introduced on 2011-02-13.
13739         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
13740         instead of __attribute__.
13741         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13742
13743 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13744             Bruno Haible  <bruno@clisp.org>
13745
13746         socklen: do not depend on sys_socket
13747         While trying to modify Emacs to use gnulib's socklen module,
13748         I discovered a circular dependency: socklen depends on sys_socket
13749         and vice versa.  Emacs can use socklen, but it does not need
13750         sys_socket because it has its own substitute for sys/socket.h.
13751         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
13752         gl_TYPE_SOCKLEN_T.
13753         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
13754         gl_PREREQ_SYS_H_SOCKET.
13755         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
13756         gl_PREREQ_SYS_H_SOCKET.
13757         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
13758         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
13759         * modules/socklen (Depends-on): Do not depend on sys_socket.
13760         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
13761
13762 2011-03-20  Jim Meyering  <meyering@redhat.com>
13763
13764         maint.mk: sort file names *after* new transformation
13765         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
13766         prefix would have led to an unwarranted failure in GNU parted.
13767         Sort after that transformation.
13768
13769 2011-03-19  Jim Meyering  <meyering@redhat.com>
13770
13771         maint.mk: fix po-file syntax-check rule
13772         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
13773         Patch by Bruno Haible.
13774
13775 2011-03-19  Bruno Haible  <bruno@clisp.org>
13776
13777         socklen: Update comment.
13778         * m4/socklen.m4: Update comment about platforms.
13779
13780 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13781             Bruno Haible  <bruno@clisp.org>
13782
13783         inet_ntop, inet_pton: Simplify.
13784         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
13785         documented to provide socklen_t and we already depend on sys_socket.
13786         * modules/inet_pton (Depends-on): Likewise.
13787         * lib/arpa_inet.in.h: Adjust comment.
13788
13789 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13790             Bruno Haible  <bruno@clisp.org>
13791
13792         netdb: Simplify.
13793         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
13794         documented to provide socklen_t and we already depend on sys_socket.
13795         * lib/netdb.in.h: Adjust comment.
13796
13797 2011-03-19  Bruno Haible  <bruno@clisp.org>
13798
13799         sys_socket, netdb: Document problem with socklen_t.
13800         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
13801         platforms.
13802         * doc/posix-headers/netdb.texi: Likewise.
13803
13804 2011-03-18  Eric Blake  <eblake@redhat.com>
13805
13806         maint.mk: let po check work in VPATH build
13807         * top/maint.mk (po_file): Allow cfg.mk override.
13808         (sc_po_check): Allow VPATH use.
13809         Reported by Jiri Denemark.
13810
13811 2011-03-16  Jim Meyering  <meyering@redhat.com>
13812
13813         maint.mk: allow fine-grained syntax-check exclusion via Make variables
13814         Before, you would have had to create one .x-sc_ file per rule in order
13815         to exempt offending files.  Now, you may instead use a Make variable --
13816         usually defined in cfg.mk -- whose name identifies the affected rule.
13817         * top/maint.mk (_sc_excl): Define.
13818         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
13819         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
13820
13821 2011-03-13  Bruno Haible  <bruno@clisp.org>
13822
13823         ignore-value tests: Avoid warnings.
13824         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
13825         empty for gcc < 3.4.
13826
13827 2011-03-13  Bruno Haible  <bruno@clisp.org>
13828
13829         passfd: Fix link error on Solaris.
13830         * modules/passfd (Description): Correct.
13831         (Depends-on): Add socketlib.
13832         (Link): New section.
13833         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
13834
13835 2011-03-13  Bruno Haible  <bruno@clisp.org>
13836
13837         passfd: Fix link error on AIX 5.2.
13838         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
13839
13840 2011-03-13  Bruno Haible  <bruno@clisp.org>
13841
13842         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
13843         * lib/sys_socket.in.h: Include <stddef.h>.
13844         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
13845         CMSG_FIRSTHDR. Remove unused variable.
13846
13847 2011-03-13  Bruno Haible  <bruno@clisp.org>
13848
13849         passfd: Fix compilation error on OpenBSD.
13850         * lib/passfd.c: Include <sys/uio.h>.
13851
13852 2011-03-13  Bruno Haible  <bruno@clisp.org>
13853
13854         passfd test: Fix warnings.
13855         * tests/test-passfd.c: Include <sys/wait.h>.
13856         (main): Fix typo.
13857
13858 2011-03-13  Bruno Haible  <bruno@clisp.org>
13859
13860         passfd module, part 4, tweaks.
13861         * tests/test-passfd.c: Reorder includes.
13862         (main): Fix perror and printf calls.
13863
13864 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13865
13866         passfd module, part 4.
13867         * modules/passfd-tests: New file.
13868         * tests/test-passfd.c: New file.
13869
13870 2011-03-13  Jim Meyering  <meyering@redhat.com>
13871
13872         Makefile: rely on GNU make; derive syntax-check rule names
13873         Rather than requiring that each sc_ rule be listed as a dependent
13874         of "check", use features of GNU make to derive the list.
13875         * Makefile (syntax-check-rules): Define.
13876         (check): Depend on the new variable, not the hard-coded list.
13877
13878 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
13879             Bruno Haible  <bruno@clisp.org>
13880
13881         passfd module, part 3.
13882         * lib/passfd.h (recvfd): Add a flags argument.
13883         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
13884         (recvfd): Add a flags argument.
13885         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
13886         exists.
13887         * modules/passfd (Depends-on): Add cloexec.
13888         Suggested by Eric Blake.
13889
13890 2011-03-13  Bruno Haible  <bruno@clisp.org>
13891
13892         passfd module, part 2, tweaks.
13893         * modules/passfd (Files): Reorder.
13894         (Depends-on): Remove errno.
13895         (Include): Remove <sys/socket.h>, <sys/un.h>.
13896         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
13897         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
13898         specification header. Include <sys/socket.h> always. Don't include
13899         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
13900         (sendfd): Clarify that it sets errno when it fails.
13901         (recvfd): Fix specification.
13902
13903 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13904
13905         passfd module, part 2.
13906         * modules/passfd: New file.
13907         * lib/passfd.h: New file.
13908         * lib/passfd.c: New file.
13909
13910 2011-03-12  Bruno Haible  <bruno@clisp.org>
13911
13912         wcswidth, mbswidth: Avoid integer overflow.
13913         * lib/wcswidth.c: Include <limits.h>.
13914         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
13915         * lib/mbswidth.c: Include <limits.h>.
13916         (mbsnwidth): Avoid 'int' overflow.
13917         Reported by Jim Meyering.
13918
13919 2011-03-12  Bruno Haible  <bruno@clisp.org>
13920
13921         futimens, utimensat: Avoid endless recursion on Solaris 10.
13922         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
13923         Solaris.
13924         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
13925         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
13926
13927 2011-03-11  Jim Meyering  <meyering@redhat.com>
13928
13929         maint.mk: relax a regexp to accommodate other formatting styles
13930         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
13931         between "ngettext" and the following "(".
13932
13933 2011-03-11  Pádraig Brady <P@draigBrady.com>
13934
13935         maint.mk: suppress a false positive warning
13936         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
13937         diagnostics are marked with ngettext.
13938
13939 2011-03-10  Eric Blake  <eblake@redhat.com>
13940
13941         wchar: add explicit dependencies, for Tru64
13942         * modules/mbmemcasecoll (Depends-on): Add wchar.
13943         * modules/mbtowc (Depends-on): Likewise.
13944         * modules/vasnprintf (Depends-on): Likewise.
13945         * modules/unistdio/u-printf-args (Depends-on): Likewise.
13946         * modules/wctomb (Depends-on): Likewise.
13947         Reported by Peter O'Gorman.
13948
13949 2011-03-08  Bruno Haible  <bruno@clisp.org>
13950
13951         passfd module, part 1, tweaks.
13952         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
13953         Improve indentation. Improve AC_MSG_CHECKING messages.
13954         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
13955         gl_SOCKET_FAMILIES.
13956
13957 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13958
13959         passfd module, part 1.
13960         * m4/afunix.m4: New file.
13961         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
13962         sockets.
13963
13964 2011-03-08  Bruno Haible  <bruno@clisp.org>
13965
13966         regex-quote: New API.
13967         * lib/regex-quote.h: Include <stdbool.h>.
13968         (struct regex_quote_spec): New type.
13969         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13970         New declarations.
13971         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13972         'const struct regex_quote_spec *' argument.
13973         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
13974         (pcre_special): New constant.
13975         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13976         New functions.
13977         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13978         'const struct regex_quote_spec *' argument.
13979         * modules/regex-quote (Depends-on): Add stdbool.
13980         * tests/test-regex-quote.c (check): Update for new API. Add test for
13981         anchored results.
13982         * NEWS: Mention the API change.
13983         Reported by Reuben Thomas and Eric Blake.
13984
13985 2011-03-06  Bruno Haible  <bruno@clisp.org>
13986
13987         regex-quote: Fix creation of POSIX extended regular expressions.
13988         * lib/regex-quote.c (ere_special): Add grouping and alternation
13989         operators.
13990
13991 2011-03-05  Bruno Haible  <bruno@clisp.org>
13992
13993         doc: Improve doc regarding autopoint vs. gnulib.
13994         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
13995         disable autopoint while running autoreconf.
13996         Suggested by Ralf Wildenhues.
13997
13998 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13999
14000         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
14001         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
14002
14003 2011-03-03  Bruce Korb  <bkorb@gnu.org>
14004
14005         parse-duration: remove xalloc.h dependency
14006         * lib/parse-duration.c (parse_period): handle NULL return from
14007         strdup instead of calling xstrdup().
14008         * modules/parse-duration: remove "xalloc" dependency
14009
14010 2011-03-03  Matthew Booth  <mbooth@redhat.com>
14011
14012         bootstrap: honor m4_base when running aclocal
14013         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
14014
14015 2011-03-02  Jim Meyering  <meyering@redhat.com>
14016
14017         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
14018         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
14019         on request from Matt Booth.
14020
14021 2011-03-01  Eric Blake  <eblake@redhat.com>
14022
14023         test-link: work on Hurd
14024         * tests/test-link.h (test_link): Hurd rejects linking directories
14025         with EISDIR instead of the POSIX-mandated EPERM.
14026
14027 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
14028
14029         stdio: simplify by moving files to printf-posix, sigpipe
14030         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
14031         since this symbol is needed only if printf is replaced.
14032         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
14033         Require gl_ASM_SYMBOL_PREFIX.
14034         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
14035         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
14036         (Depends-on): Add 'raise'.
14037         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
14038         * modules/stdio (Files): Remove lib/stdio-write.c,
14039         m4/asm-underscore.m4.
14040         (Depends-on): Remove 'raise'.
14041
14042         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
14043         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
14044         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
14045         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
14046
14047 2011-02-28  Bruno Haible  <bruno@clisp.org>
14048
14049         localcharset: Assume ANSI C behaviour of free().
14050         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
14051         calling free().
14052         Suggested by Simon Josefsson <simon@josefsson.org>.
14053
14054 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
14055             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
14056             Bruno Haible  <bruno@clisp.org>  (tiny change)
14057
14058         On Cygwin, use /proc file system instead of win32 API.
14059         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
14060         Win32 file names.
14061         (DllMain): Simplify by removing Cygwin specific code.
14062         (find_shared_library_fullname): Use Linux specific implementation also
14063         for Cygwin.
14064         (get_shared_library_fullname): Update accordingly.
14065         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
14066         Win32 file names.
14067         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
14068         Cygwin specific code.
14069
14070 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
14071             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
14072
14073         Fix OpenMP flag detection for various Fortran compilers.
14074         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
14075         OpenMP-conditional compilation construct, to force compile
14076         failure with missing OpenMP flag.
14077         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
14078
14079 2011-02-25  Eric Blake  <eblake@redhat.com>
14080
14081         strstr: expand test coverage
14082         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
14083         compilation.
14084         * tests/test-memmem.c (main): Duplicate tests.
14085         * tests/test-strcasestr.c (main): Likewise.
14086         * tests/test-c-strcasestr.c (main): Likewise.
14087
14088 2011-02-25  Jim Meyering  <meyering@redhat.com>
14089
14090         maint.mk: detect missing-NL-at-EOF, too
14091         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
14092         it also detects when a file lacks a newline at EOF.
14093         (require_exactly_one_NL_at_EOF_): Renamed from
14094         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
14095         since people may well have .x-sc_... file names tied to the
14096         existing name.  Suggested by Eric Blake.
14097
14098 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
14099
14100         dirname: move m4/dos.m4 functionality into lib/dosname.h
14101
14102         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
14103         extracts symbols from it, puts them into config.h; but it's much
14104         easier to use the symbols directly.  filename.h already does this,
14105         but it disagrees with dos.m4 in some respects.  This patch
14106         introduces a different include file dosname.h that packages up
14107         dos.m4, and then later we can work on merging filename.h and
14108         dosname.h.  Applications that need only the easy-to-configure
14109         symbols should consider including dosname.h rather than dirname.h.
14110         * NEWS: Mention incompatible changes.
14111         * m4/dos.m4: Remove.
14112         * lib/dosname.h, modules/dosname: New files.
14113         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
14114         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
14115         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
14116         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
14117         Include dosname.h, not dirname.h.
14118         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
14119         Include dosname.h, for definitions of symbols like ISSLASH
14120         that used to be in config.h.
14121         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
14122         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
14123         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
14124         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
14125         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
14126         * modules/rmdir (Files): Likewise.
14127         * modules/stat (Files): Likewise.
14128         * modules/unlink (Files): Likewise.
14129         * modules/dirname-lgpl (Depends-on): Add dosname.
14130         * modules/lstat (Depends-on): Likewise.
14131         * modules/openat (Depends-on): Likewise.
14132         * modules/rmdir (Depends-on): Likewise.
14133         * modules/savewd (Depends-on): Likewise.
14134         * modules/stat (Depends-on): Likewise.
14135         * modules/unlink (Depends-on): Likewise.
14136         * modules/openat (Depends-on): Remove dirname-lgpl.
14137         * modules/savewd (Depends-on): Likewise.
14138         * tests/test-dirname.c: Do not use removed symbols like
14139         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
14140         the remaining symbols, e.g., ISSLASH ('\\').
14141
14142 2011-02-25  Eric Blake  <eblake@redhat.com>
14143
14144         strstr: revert patches that introduced bug and pessimization
14145         * lib/str-two-way.h: Add another reference.
14146         (two_way_short_needle, two_way_long_needle): Revert changes from
14147         2011-02-24; they pessimize search speed.
14148         (critical_factorization): Partially revert changes from
14149         2010-06-22; they violate the requirement that the left half of the
14150         needle be smaller than the period of the needle.
14151
14152 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
14153
14154         filenamecat: remove unnecessary dependency on dirname-lgpl
14155         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
14156         is no direct dependency, just an indirect one via filenamecat-lgpl.
14157
14158         remove: remove unnecessary use of m4/dos.m4
14159         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
14160         * modules/remove (FILES): Remove m4/dos.m4.
14161
14162         * lib/openat-proc.c: Don't include dirname.h; not needed.
14163
14164         backupfile: remove unnecessary use of m4/dos.m4
14165         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
14166         of its symbols are used by the backupfile code.  backupfile.c does
14167         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
14168         for the rare case of programs that want all their backup file
14169         names to live within 8+3 limits, and dos.m4 doesn't address that.
14170         * modules/backupfile (Files): Remove m4/dos.m4.
14171
14172 2011-02-24  Jim Meyering  <meyering@redhat.com>
14173
14174         strstr: fix a bug whereby strstr would mistakenly return NULL
14175         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
14176         in period calculation.
14177         (two_way_long_needle): Likewise.
14178         The original problem was reported by Mike Stump in
14179         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
14180         Ralf Wildenhues provided the short needle and haystack.
14181         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
14182         Add a more involved test to trigger the bug in two_way_long_needle.
14183
14184 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
14185
14186         gnulib-tool: remove use of bold display in help screen
14187         * gnulib-tool (func_usage): Do not use bold display anymore in the
14188         help screen.  That was just meant to be a temporary emphasis for a
14189         backward-incompatible change.
14190
14191 2011-02-23  Bruno Haible  <bruno@clisp.org>
14192
14193         Fix misindentation of preprocessor directives.
14194         * lib/argp-namefrob.h: Reindent preprocessor directives.
14195         * lib/getopt_int.h (struct _getopt_data): Likewise.
14196         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
14197         * lib/vasnprintf.c (decode_long_double): Likewise.
14198         * tests/test-argmatch.c: Insert blank lines, for clarity.
14199         * tests/test-exclude.c: Likewise.
14200
14201 2011-02-22  Bruno Haible  <bruno@clisp.org>
14202
14203         ioctl: Fix for MacOS X in 64-bit mode.
14204         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
14205         value.
14206         Suggested by Eric Blake.
14207         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
14208
14209 2011-02-22  Jim Meyering  <meyering@redhat.com>
14210
14211         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
14212         * Makefile (sc_cpp_indent_check): Don't limit the check to files
14213         in lib/.
14214
14215 2011-02-22  Eric Blake  <eblake@redhat.com>
14216
14217         maint: avoid any CDPATH issue
14218         * Makefile (sc_cpp_indent_check): Anchor cd argument.
14219
14220         maint: adjust cpp indentation for my modules, as well
14221         * Makefile (sc_cpp_indent_check): Add my name.
14222         * lib/fbufmode.c: Filter through cppi.
14223         * lib/fpurge.c: Likewise.
14224         * lib/freadable.c: Likewise.
14225         * lib/freading.c: Likewise.
14226         * lib/fwritable.c: Likewise.
14227         * lib/fwriting.c: Likewise.
14228         * lib/sigaction.c: Likewise.
14229
14230 2011-02-22  Jim Meyering  <meyering@redhat.com>
14231
14232         maint: adjust cpp indentation to reflect nesting depth
14233         I.e., in a block of code that begins with an unnested "#if",
14234         put one space between the "#" in column 1 and following token.
14235         For example,
14236         -#include <sys/vfs.h>
14237         +# include <sys/vfs.h>
14238         Do this only in .c files that are part of a module I maintain.
14239         * lib/linkat.c: Filter through cppi.
14240         * lib/nanosleep.c: Likewise.
14241         * lib/openat.c: Likewise.
14242         * lib/openat-die.c: Likewise.
14243         * lib/dup3.c: Likewise.
14244         * lib/fchownat.c: Likewise.
14245         * lib/flock.c: Likewise.
14246         * lib/fsync.c: Likewise.
14247         * lib/fts.c: Likewise.
14248         * lib/getpass.c: Likewise.
14249         * lib/gettimeofday.c: Likewise.
14250         * lib/userspec.c: Likewise.
14251         * Makefile (sc_cpp_indent_check): New rule, to check this.
14252
14253 2011-02-22  Bruno Haible  <bruno@clisp.org>
14254
14255         New module 'wctomb'.
14256         * lib/stdlib.in.h (wctomb): New declaration.
14257         * lib/wctomb.c: New file.
14258         * lib/wctomb-impl.h: New file.
14259         * m4/wctomb.m4: New file.
14260         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
14261         REPLACE_WCTOMB.
14262         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
14263         REPLACE_WCTOMB.
14264         * modules/wctomb: New file.
14265         * tests/test-stdlib-c++.cc: Test signature of wctomb.
14266         * doc/posix-functions/wctomb.texi: Mention the new module.
14267         * modules/wctob (Depends-on): Add wctomb.
14268
14269 2011-02-22  Bruno Haible  <bruno@clisp.org>
14270
14271         New module 'mbtowc'.
14272         * lib/stdlib.in.h (mbtowc): New declaration.
14273         * lib/mbtowc.c: New file.
14274         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
14275         * m4/mbtowc.m4: New file.
14276         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
14277         REPLACE_MBTOWC.
14278         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
14279         REPLACE_MBTOWC.
14280         * modules/mbtowc: New file.
14281         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
14282         * doc/posix-functions/mbtowc.texi: Mention the new module.
14283         * modules/btowc (Depends-on): Add mbtowc.
14284
14285 2011-02-22  Bruno Haible  <bruno@clisp.org>
14286
14287         wcrtomb: Add more tests for native Windows platforms.
14288         * tests/test-wcrtomb-w32-1.sh: New file.
14289         * tests/test-wcrtomb-w32-2.sh: New file.
14290         * tests/test-wcrtomb-w32-3.sh: New file.
14291         * tests/test-wcrtomb-w32-4.sh: New file.
14292         * tests/test-wcrtomb-w32-5.sh: New file.
14293         * tests/test-wcrtomb-w32.c: New file.
14294         * modules/wcrtomb-tests (Files): Add them.
14295         (Makefile.am): Arrange to run these tests.
14296         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
14297         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
14298
14299 2011-02-20  Bruno Haible  <bruno@clisp.org>
14300
14301         wcrtomb: Enhance test.
14302         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
14303
14304 2011-02-20  Bruno Haible  <bruno@clisp.org>
14305
14306         mbrtowc: Tiny optimization.
14307         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
14308
14309 2011-02-20  Jim Meyering  <meyering@redhat.com>
14310
14311         test-exclude.c: remove unmatched #endif
14312         * tests/test-exclude.c: Remove stray #endif, left over from
14313         the change of a week ago.
14314
14315 2011-02-19  Jim Meyering  <meyering@redhat.com>
14316
14317         git-version-gen: skip "-dirty" check when appropriate
14318         * build-aux/git-version-gen: Don't run any git commands when the
14319         version string comes from .tarball-version.  Prior to this, we
14320         would run git update-index --refresh even from a just-unpacked
14321         tarball directory, and that could affect a .git/ directory in a
14322         parent of the build directory.  Reported by Mike Frysinger.
14323
14324 2011-02-19  Bruno Haible  <bruno@clisp.org>
14325
14326         unictype/property-byname: Reduce the size of the 'data' segment.
14327         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
14328
14329 2011-02-19  Bruno Haible  <bruno@clisp.org>
14330
14331         unictype/scripts: Reduce the size of the 'data' segment.
14332         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
14333         '%pic'.
14334         * lib/unictype/scripts_byname.gperf: Regenerated.
14335
14336 2011-02-19  Bruno Haible  <bruno@clisp.org>
14337
14338         stdint: Update documentation.
14339         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
14340
14341 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
14342
14343         stdint: omit redundant check for wchar.h
14344         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
14345         always tests whether wchar.h exists, so remove the now-redundant test.
14346
14347 2011-02-18  Bruno Haible  <bruno@clisp.org>
14348
14349         stdint: Cut dependency to module 'wchar'.
14350         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
14351         include the necessary prerequisites.
14352         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
14353         * modules/stdint (Depends-on): Remove wchar.
14354         (Makefile.am): Substitute HAVE_WCHAR_H.
14355         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
14356
14357 2011-02-18  Eric Blake  <eblake@redhat.com>
14358
14359         longlong: skip, rather than fail, on cross-compilation
14360         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
14361         when cross-compiling; regression from 2011-02-16.
14362
14363 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
14364
14365         * NEWS: Mention 2011-02-08 change to stdlib.
14366
14367 2011-02-17  Bruno Haible  <bruno@clisp.org>
14368
14369         getloadavg: Add comments about platforms.
14370         * m4/getloadavg.m4: Add comment.
14371         * lib/getloadavg.c: Likewise.
14372
14373 2011-02-17  Bruno Haible  <bruno@clisp.org>
14374
14375         getloadavg: Fix link error on Solaris 2.6.
14376         * modules/getloadavg (Link): New section.
14377         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
14378         linking test-getloadavg.
14379         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
14380         getloadavg.
14381
14382 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
14383
14384         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
14385         It was 'int', but this doesn't match the IRIX 6.5 manual.
14386         Suggested by Bruno Haible in
14387         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
14388
14389 2011-02-17  Bruno Haible  <bruno@clisp.org>
14390
14391         havelib: Fix comments.
14392         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
14393         change.
14394
14395 2011-02-17  Bruno Haible  <bruno@clisp.org>
14396
14397         havelib: Update config.rpath.
14398         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
14399
14400 2011-02-17  Bruno Haible  <bruno@clisp.org>
14401
14402         getloadavg test: Add some plausibility checks.
14403         * tests/test-getloadavg.c (check_avg): Print a warning when the value
14404         is improbable.
14405
14406 2011-02-16  Eric Blake  <eblake@redhat.com>
14407
14408         maintainer-makefile: make syntax-check a no-op from tarballs
14409         * top/maint.mk (no-vc-detected): New rule.
14410         (local-checks-available): Use it to avoid hanging if someone tries
14411         'make syntax-check' from a tarball.  Also append to any non-syntax
14412         checks already defined in cfg.mk.
14413
14414 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
14415
14416         longlong: tune, particularly for common case of c99
14417
14418         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
14419         or running anything if c99, or if unsigned long long int does not
14420         work.  In either case, we know the answer without further tests.
14421         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
14422         it at most once, and use its results for both long long int and
14423         unsigned long long int.  This is more likely to be efficient in
14424         the common case where the program wants to check for both long
14425         long int and unsigned long long int.
14426         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
14427         since the answer is already known.
14428
14429 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
14430
14431         getloadavg: set errno
14432         * lib/getloadavg.c: Set errno when returning -1.  If no other
14433         error number looks appropriate, set it to ENOSYS if the getloadavg
14434         looks like it can't possibly ever work, ENOTSUP otherwise.
14435         Suggested by Bruno Haible in
14436         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
14437
14438         getloadavg: trim unused parts and speed up 'configure'
14439         * NEWS: Document this.
14440         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
14441         always compiled if getloadavg is absent.
14442         Move test code to ...
14443         * tests/test-getloadavg.c: New file, containing previous
14444         contents of test from lib/getloadavg.c.  It also contains
14445         suggestions by Bruno Haible in
14446         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
14447         * modules/getloadavg-tests: New file.
14448         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
14449         Do tests in the same order as they're needed for getloadavg.c.
14450         Omit setgid-related tests that generate symbols KMEM_GROUP,
14451         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
14452         Do only the tests that are needed to see whether the system has
14453         getloadavg, moving the other tests into ...
14454         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
14455         NLIST_NAME_UNION; nobody should be using it.  Do not define
14456         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
14457         relevant, as the user of this module shouldn't care how getloadavg
14458         is implemented.
14459
14460         getloadavg: omit unused var
14461         * lib/getloadavg.c (getloadavg): Omit unused local variable.
14462
14463 2011-02-15  Jim Meyering  <meyering@redhat.com>
14464
14465         doc: update users.txt
14466         * users.txt: Update iwhd's URL.
14467
14468 2011-02-13  Bruno Haible  <bruno@clisp.org>
14469
14470         Consistent macro naming for macros that use GCC __attribute__.
14471         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
14472         _ATTRIBUTE_NONNULL_.
14473         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
14474         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
14475         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
14476         ATTRIBUTE_DEPRECATED.
14477         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
14478         ATTRIBUTE_NORETURN.
14479         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14480         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14481         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14482         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14483         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
14484         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
14485         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
14486         ATTRIBUTE_SENTINEL.
14487         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
14488         ATTRIBUTE_RETURN_CHECK.
14489         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
14490         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
14491         ATTRIBUTE_NORETURN.
14492         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
14493         Reported by Paul Eggert.
14494
14495 2011-02-13  Bruno Haible  <bruno@clisp.org>
14496
14497         Don't interfere with a program's definition of __attribute__.
14498         * lib/argp.h (__attribute__): Remove definition.
14499         (_GL_ATTRIBUTE_FORMAT): New macro.
14500         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
14501         * lib/argp-fmtstream.h (__attribute__): Remove definition.
14502         (_GL_ATTRIBUTE_FORMAT): New macro.
14503         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
14504         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
14505         GCC 3 or newer.
14506         * lib/error.h (__attribute__): Remove definition.
14507         (_GL_ATTRIBUTE_FORMAT): New macro.
14508         (error, error_at_line): Use it.
14509         * lib/hash.h (__attribute__): Remove definition.
14510         (ATTRIBUTE_WUR): Update definition. Define always.
14511         * lib/openat.h (__attribute__): Remove definition.
14512         (ATTRIBUTE_NORETURN): Update definition. Define always.
14513         * lib/sigpipe-die.h (__attribute__): Remove definition.
14514         (ATTRIBUTE_NORETURN): Update definition. Define always.
14515         * lib/vasnprintf.h (__attribute__): Remove definition.
14516         (_GL_ATTRIBUTE_FORMAT): New macro.
14517         (asnprintf, vasnprintf): Use it.
14518         * lib/xalloc.h (__attribute__): Remove definition.
14519         (ATTRIBUTE_NORETURN): Update definition. Define always.
14520         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
14521         * lib/xmemdup0.h (__attribute__): Remove definition.
14522         (ATTRIBUTE_NORETURN): Update definition. Define always.
14523         * lib/xprintf.h (__attribute__): Remove definition.
14524         (_GL_ATTRIBUTE_FORMAT): New macro.
14525         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
14526         * lib/xstrtol.h (__attribute__): Remove definition.
14527         (ATTRIBUTE_NORETURN): Update definition. Define always.
14528         * lib/xvasprintf.h (__attribute__): Remove definition.
14529         (_GL_ATTRIBUTE_FORMAT): New macro.
14530         (xasprintf, xvasprintf): Use it.
14531         * tests/test-argmatch.c (__attribute__): Remove definition.
14532         (ATTRIBUTE_NORETURN): Update definition. Define always.
14533         * tests/test-exclude.c (__attribute__): Remove definition.
14534         (ATTRIBUTE_NORETURN): Update definition. Define always.
14535         Reported by Paul Eggert.
14536
14537 2011-02-13  Bruno Haible  <bruno@clisp.org>
14538
14539         mbrtowc: Add more tests for native Windows platforms.
14540         * tests/test-mbrtowc-w32-1.sh: New file.
14541         * tests/test-mbrtowc-w32-2.sh: New file.
14542         * tests/test-mbrtowc-w32-3.sh: New file.
14543         * tests/test-mbrtowc-w32-4.sh: New file.
14544         * tests/test-mbrtowc-w32-5.sh: New file.
14545         * tests/test-mbrtowc-w32.c: New file.
14546         * modules/mbrtowc-tests (Files): Add them.
14547         (Makefile.am): Arrange to run these tests.
14548         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
14549         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
14550
14551 2011-02-13  Bruno Haible  <bruno@clisp.org>
14552
14553         mbrtowc: Work around native Windows bug.
14554         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
14555         guess when no suitable locale for testing was found.
14556         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
14557
14558 2011-02-13  Bruno Haible  <bruno@clisp.org>
14559
14560         mbsinit: Work around mingw bug.
14561         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
14562         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
14563         Windows.
14564         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
14565
14566 2011-02-13  Bruno Haible  <bruno@clisp.org>
14567
14568         mbsinit: Don't crash for a NULL argument.
14569         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
14570         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
14571
14572 2011-02-13  Bruno Haible  <bruno@clisp.org>
14573
14574         Don't interfere with a program's definition of __attribute__.
14575         * lib/stdio.in.h (__attribute__): Remove definition.
14576         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
14577         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
14578         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
14579         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
14580         * lib/string.in.h (__attribute__): Remove definition.
14581         Reported by Paul Eggert.
14582
14583 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14584
14585         stdlib: don't get in the way of non-GCC __attribute__
14586         See thread starting at
14587         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
14588         Revert previous stdlib change, installing the following instead:
14589         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
14590         to get in the way of a non-GCC compiler that supports __attribute__.
14591         (_GL_ATTRIBUTE_RETURN): New macro.
14592         (_Exit): Use it instead of __attribute__.
14593
14594 2011-02-12  Bruno Haible  <bruno@clisp.org>
14595
14596         quotearg test: Avoid test failure on mingw.
14597         * tests/test-quotearg.sh: Convert the locale identifier from native
14598         Windows syntax to Unix syntax.
14599
14600 2011-02-12  Bruno Haible  <bruno@clisp.org>
14601
14602         setlocale: Prefer gnulib's override over libintl's override.
14603         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
14604         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
14605         GNULIB_defined_setlocale is set.
14606
14607 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14608
14609         stdlib: support non-GCC __attribute__
14610
14611         Fix a serious and tricky problem encountered when attempting to
14612         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
14613         5.5, but it crashed due to memory corruption on Solaris 10 with
14614         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
14615         bits that are otherwise zero.  This tagging is optional inside
14616         Emacs but is preferred and is used when __attribute__ ((__aligned
14617         (8))) works, as it does with both recent-enough GCC and with Sun C
14618         5.11.  However, Sun C 5.11 is not GCC and does not #define
14619         __GNUC__ and __GNUC_MINOR__.
14620
14621         When I added the getloadavg module to Emacs, it brought in
14622         stdlib.in.h, which contained this fragment:
14623
14624            #ifndef __attribute__
14625            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
14626            #  define __attribute__(Spec)   /* empty */
14627            # endif
14628            #endif
14629
14630         When files that include <stdlib.h> were compiled with Sun C 5.11,
14631         the above code disabled __attribute__ ((__aligned (8))), which
14632         caused variables to not be properly aligned, which eventually led
14633         to the pointer corruption mentioned above.  (This was a bit hard
14634         to diagnose, unfortunately.)
14635
14636         Several "#define __attribute__(X) /* empty */" code snippets need
14637         to be eradicated from Gnulib to work with non-GCC compilers that
14638         support __attribute__.  The Autoconf way to do this is to test for
14639         each kind of attribute that we want support for, and selectively
14640         enable that in source code.
14641
14642         Fix this problem just for stdlib.h, by adding a test for the
14643         __noreturn__ attribute, and change stdlib.in.h to use that test
14644         when needed.  This technique can be easily generalized to the
14645         other *.in.h files and attributes, and a similar technique can be
14646         used for *.h and *.c files.  This patch is enough to solve the
14647         problem for Emacs + getloadavg, and I thought I'd publish it for
14648         feedback before undertaking further, similar fixes in other
14649         modules.
14650
14651         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
14652         because it's not needed for stdlib.h.  It merely substitutes the
14653         value directly into stdlib.h.  We may well need to #define it, or
14654         similar symbols, for other modules, but it's nice to also have an
14655         option to not #define it for applications like Emacs that do not
14656         need it.
14657
14658         * lib/stdlib.in.h (__attribute__): Do not #define.
14659         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
14660         be defined only if the _Exit module is also used.
14661         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
14662         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
14663         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
14664         platforms.
14665         * modules/_Exit (Files): Add m4/attribute.m4.
14666         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
14667         * m4/attribute.m4: New file.
14668
14669 2011-02-12  Bruno Haible  <bruno@clisp.org>
14670
14671         wcsrtombs: Work around bug on native Windows.
14672         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
14673         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
14674         instead of len.
14675         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
14676
14677 2011-02-12  Bruno Haible  <bruno@clisp.org>
14678
14679         mbsrtowcs: Work around bug on native Windows.
14680         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
14681         against mingw bug.
14682         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
14683
14684 2011-02-12  Bruno Haible  <bruno@clisp.org>
14685
14686         Avoid setlocale bugs in tests.
14687         * modules/btowc (Dependencies): Add setlocale.
14688         * modules/c-strcase (Dependencies): Likewise.
14689         * modules/mbmemcasecmp (Dependencies): Likewise.
14690         * modules/mbmemcasecoll (Dependencies): Likewise.
14691         * modules/mbrtowc (Dependencies): Likewise.
14692         * modules/mbscasecmp (Dependencies): Likewise.
14693         * modules/mbscasestr (Dependencies): Likewise.
14694         * modules/mbschr (Dependencies): Likewise.
14695         * modules/mbscspn (Dependencies): Likewise.
14696         * modules/mbsinit (Dependencies): Likewise.
14697         * modules/mbsncasecmp (Dependencies): Likewise.
14698         * modules/mbsnrtowcs (Dependencies): Likewise.
14699         * modules/mbspbrk (Dependencies): Likewise.
14700         * modules/mbspcasecmp (Dependencies): Likewise.
14701         * modules/mbsrchr (Dependencies): Likewise.
14702         * modules/mbsrtowcs (Dependencies): Likewise.
14703         * modules/mbsspn (Dependencies): Likewise.
14704         * modules/mbsstr (Dependencies): Likewise.
14705         * modules/nl_langinfo (Dependencies): Likewise.
14706         * modules/quotearg (Dependencies): Likewise.
14707         * modules/unicase/locale-language (Dependencies): Likewise.
14708         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
14709         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
14710         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
14711         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
14712         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
14713         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
14714         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
14715         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
14716         * modules/vasnprintf-posix (Dependencies): Likewise.
14717         * modules/wcrtomb (Dependencies): Likewise.
14718         * modules/wcsnrtombs (Dependencies): Likewise.
14719         * modules/wcsrtombs (Dependencies): Likewise.
14720
14721 2011-02-12  Bruno Haible  <bruno@clisp.org>
14722
14723         setlocale: Workaround native Windows bug.
14724         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
14725         succeeds but sets LC_CTYPE to "C", report a failure.
14726         * tests/test-setlocale2.sh: New file.
14727         * tests/test-setlocale2.c: New file.
14728         * modules/setlocale-tests (Files): Add the new files.
14729         (Makefile.am): Enable test-setlocale2.sh test.
14730         * doc/posix-functions/setlocale.texi: Mention workaround.
14731
14732 2011-02-11  Bruno Haible  <bruno@clisp.org>
14733
14734         Tests for module 'setlocale'.
14735         * modules/setlocale-tests: New file.
14736         * tests/test-setlocale1.sh: New file.
14737         * tests/test-setlocale1.c: New file.
14738
14739         New module 'setlocale'.
14740         * lib/locale.in.h (setlocale): New declaration.
14741         * lib/setlocale.c: New file, based on
14742         gettext/gettext-runtime/intl/setlocale.c.
14743         * m4/setlocale.m4: New file.
14744         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
14745         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
14746         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
14747         REPLACE_SETLOCALE.
14748         * modules/setlocale: New file.
14749         * tests/test-locale-c++.cc: Test the declaration of setlocale.
14750         * doc/posix-functions/setlocale.texi: Mention the new module.
14751
14752 2011-02-11  Bruno Haible  <bruno@clisp.org>
14753
14754         Prepare for locale dependent tests on mingw.
14755         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
14756         because it has the wrong locale encoding.
14757         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
14758         French_France.1252 instead of "fr".
14759         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
14760         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
14761         because it has the wrong locale encoding.
14762         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
14763         native Windows, try Turkish_Turkey.65001.
14764         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
14765         Chinese_China.54936.
14766
14767         Prepare for locale dependent tests on mingw.
14768         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
14769         differently.
14770         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
14771         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
14772         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
14773         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
14774
14775 2011-02-11  Eric Blake  <eblake@redhat.com>
14776
14777         strptime: avoid compiler warnings
14778         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
14779         compiler warnings about dead code.
14780         Reported by Daniel P. Berrange.
14781
14782 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
14783
14784         doc: update users.txt
14785         * users.txt: Add rcs.
14786
14787 2011-02-10  John W. Eaton  <jwe@gnu.org>
14788
14789         doc: update users.txt
14790         * users.txt: Add octave.
14791
14792 2011-02-10  Jim Meyering  <meyering@redhat.com>
14793
14794         doc: update users.txt
14795         * users.txt: Add iwhd.
14796
14797 2011-02-09  Bruno Haible  <bruno@clisp.org>
14798
14799         gnulib-tool: Make copyright notice adjustment more robust.
14800         * gnulib-tool (func_import): In sed_transform_main_lib_file,
14801         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
14802         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
14803         License".
14804         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
14805
14806 2011-02-06  Bruno Haible  <bruno@clisp.org>
14807
14808         New module 'towctrans'.
14809         * modules/towctrans: New file.
14810         * lib/wctype.in.h (towctrans): New declaration.
14811         * lib/towctrans.c: New file.
14812         * lib/towctrans-impl.h: New file.
14813         * m4/towctrans.m4: New file.
14814         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
14815         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
14816         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
14817         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
14818         * doc/posix-functions/towctrans.texi: Mention the new module.
14819
14820 2011-02-06  Bruno Haible  <bruno@clisp.org>
14821
14822         New module 'wctrans'.
14823         * modules/wctrans: New file.
14824         * lib/wctype.in.h (wctrans): New declaration.
14825         * lib/wctrans.c: New file.
14826         * lib/wctrans-impl.h: New file.
14827         * m4/wctrans.m4: New file.
14828         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
14829         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
14830         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
14831         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
14832         * doc/posix-functions/wctrans.texi: Mention the new module.
14833
14834 2011-02-06  Bruno Haible  <bruno@clisp.org>
14835
14836         New module 'iswctype'.
14837         * modules/iswctype: New file.
14838         * lib/wctype.in.h (iswctype): New declaration.
14839         * lib/iswctype.c: New file.
14840         * lib/iswctype-impl.h: New file.
14841         * m4/iswctype.m4: New file.
14842         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
14843         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
14844         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
14845         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
14846         * doc/posix-functions/iswctype.texi: Mention the new module and the
14847         HP-UX 11.00 problem.
14848
14849 2011-02-06  Bruno Haible  <bruno@clisp.org>
14850
14851         New module 'wctype'.
14852         * modules/wctype: Change to represent the wctype() substitute.
14853         * lib/wctype.in.h (wctype): New declaration.
14854         * lib/wctype.c: New file.
14855         * lib/wctype-impl.h: New file.
14856         * m4/wctype.m4: New file.
14857         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
14858         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
14859         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
14860         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
14861         * doc/posix-functions/wctype.texi: Mention the new module and the
14862         HP-UX 11.00 problem.
14863
14864 2011-02-06  Bruno Haible  <bruno@clisp.org>
14865
14866         wctype-h: Ensure wctype_t and wctrans_t are defined.
14867         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
14868         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14869         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14870         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
14871         HAVE_WCTRANS_T.
14872         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
14873
14874 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
14875
14876         flock: fix license typo
14877
14878         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
14879         omitted.
14880
14881 2011-02-08  Bruno Haible  <bruno@clisp.org>
14882
14883         Split large sed scripts, for HP-UX sed.
14884         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
14885         to avoid HP-UX limit of 99 commands, in the near future.
14886         * modules/stdlib (Makefile.am): Likewise.
14887         * modules/unistd (Makefile.am): Likewise.
14888         * modules/wchar (Makefile.am): Likewise.
14889         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14890         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
14891         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
14892
14893 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14894             Bruno Haible  <bruno@clisp.org>
14895
14896         stdlib: improve random_r modularization
14897         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
14898         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
14899         you also need the random_r module to get this material right.
14900         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
14901         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
14902         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
14903
14904 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14905
14906         stdlib: don't depend on stdint
14907         * lib/stdlib.in.h: Don't include <stdint.h> merely because
14908         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
14909         be independent of whether stdint.h is needed.
14910         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
14911         here, instead of ...
14912         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
14913         struct random_data should be using the random_r module, not just
14914         the stdlib module (which wouldn't make sense: what package needs
14915         just struct random_data without also needing random_r?).
14916         * modules/stdlib (Depends-on): Remove stdint.
14917
14918         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
14919         See the thread rooted at
14920         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
14921         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
14922         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
14923         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
14924         __VMS)); previously it was always included (via fcntl--.h).
14925         (getloadavg): Do not use c_strtod.  Instead, approximate it by
14926         hand; this is good enough for load averages.  Also, do not use
14927         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
14928         flags directly if available and don't bother otherwise.  (Packages
14929         that need the extra reliability should use the modules that define
14930         these flags on older platforms that lack them.)
14931         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
14932         fcntl-safer.
14933
14934 2011-02-08  Jim Meyering  <meyering@redhat.com>
14935
14936         di-set.h, ino-map.h: add multiple-inclusion guard
14937         Technically, the guard is required only for ino-map.h, due to its
14938         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
14939         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
14940         * lib/ino-map.h: Likewise.
14941
14942 2011-02-06  Bruno Haible  <bruno@clisp.org>
14943
14944         iswblank: Ensure declaration on glibc systems.
14945         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
14946         * modules/iswblank (Dependencies): Add 'extensions'.
14947         * doc/posix-functions/iswblank.texi: Document the glibc problem.
14948
14949 2011-02-06  Bruno Haible  <bruno@clisp.org>
14950
14951         New module 'iswblank'.
14952         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
14953         * modules/iswblank: New file.
14954         * modules/wctype-h (Files): Remove lib/iswblank.c.
14955         (Makefile.am): Substitute GNULIB_ISWBLANK.
14956         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
14957         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
14958         (gl_WCTYPE_H_DEFAULTS): New macro.
14959         (gl_WCTYPE_H): Require it. Remove iswblank related code.
14960         * modules/iswblank-tests: New file.
14961         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
14962         * tests/test-wctype-h.c (main): Remove iswblank tests.
14963         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
14964         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
14965         of 'wctype-h'.
14966         * NEWS: Mention the change.
14967         * modules/mbchar (Depends-on): Add iswblank.
14968
14969 2011-02-08  Bruno Haible  <bruno@clisp.org>
14970
14971         di-set tests: Refactor.
14972         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
14973         unnecessary includes.
14974         (ASSERT): Remove macro.
14975         (main): Make C90 compliant by avoiding variable declaration after
14976         statement.
14977         * modules/di-set-tests (Files): Add tests/macros.h.
14978
14979 2011-02-08  Bruno Haible  <bruno@clisp.org>
14980
14981         ino-map tests: Refactor.
14982         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
14983         unnecessary includes.
14984         (ASSERT): Remove macro.
14985         (main): Make C90 compliant by avoiding variable declaration after
14986         statement.
14987         * modules/ino-map-tests (Files): Add tests/macros.h.
14988
14989 2011-02-08  Jim Meyering  <meyering@redhat.com>
14990
14991         di-set: add "const" to a cast
14992         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
14993         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
14994
14995 2011-02-06  Bruno Haible  <bruno@clisp.org>
14996
14997         Rename module 'wctype' to 'wctype-h'.
14998         * modules/wctype-h: Renamed from modules/wctype.
14999         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
15000         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
15001         (Files, Depends-on, Makefile.am): Update.
15002         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
15003         (Files, Makefile.am): Update.
15004         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
15005         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
15006         * doc/posix-headers/wctype.texi: Update.
15007         * doc/posix-functions/iswalnum.texi: Update.
15008         * doc/posix-functions/iswalpha.texi: Update.
15009         * doc/posix-functions/iswblank.texi: Update.
15010         * doc/posix-functions/iswcntrl.texi: Update.
15011         * doc/posix-functions/iswdigit.texi: Update.
15012         * doc/posix-functions/iswgraph.texi: Update.
15013         * doc/posix-functions/iswlower.texi: Update.
15014         * doc/posix-functions/iswprint.texi: Update.
15015         * doc/posix-functions/iswpunct.texi: Update.
15016         * doc/posix-functions/iswspace.texi: Update.
15017         * doc/posix-functions/iswupper.texi: Update.
15018         * doc/posix-functions/iswxdigit.texi: Update.
15019         * doc/posix-functions/towlower.texi: Update.
15020         * doc/posix-functions/towupper.texi: Update.
15021         * NEWS: Mention the change.
15022         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
15023         * modules/mbchar (Dependencies): Likewise.
15024         * modules/mbswidth (Dependencies): Likewise.
15025         * modules/quotearg (Dependencies): Likewise.
15026         * modules/regex (Dependencies): Likewise.
15027         * modules/wcscasecmp (Dependencies): Likewise.
15028         * modules/wcsncasecmp (Dependencies): Likewise.
15029         * modules/wcwidth (Dependencies): Likewise.
15030
15031 2011-02-06  Bruno Haible  <bruno@clisp.org>
15032
15033         New module 'wcswidth'.
15034         * modules/wcswidth: New file.
15035         * lib/wchar.in.h (wcswidth): New declaration.
15036         * lib/wcswidth.c: New file.
15037         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
15038         * m4/wcswidth.m4: New file.
15039         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
15040         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
15041         REPLACE_WCSWIDTH.
15042         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
15043         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
15044         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
15045         * doc/posix-functions/wcswidth.texi: Mention the new module.
15046
15047 2011-02-06  Bruno Haible  <bruno@clisp.org>
15048
15049         New module 'wcstok'.
15050         * modules/wcstok: New file.
15051         * lib/wchar.in.h (wcstok): New declaration.
15052         * lib/wcstok.c: New file.
15053         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
15054         * m4/wcstok.m4: New file.
15055         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
15056         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
15057         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
15058         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
15059         * doc/posix-functions/wcstok.texi: Mention the new module.
15060
15061 2011-02-06  Bruno Haible  <bruno@clisp.org>
15062
15063         New module 'wcsstr'.
15064         * modules/wcsstr: New file.
15065         * lib/wchar.in.h (wcsstr): New declaration.
15066         * lib/wcsstr.c: New file.
15067         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
15068         * m4/wcsstr.m4: New file.
15069         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
15070         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
15071         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
15072         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
15073         * doc/posix-functions/wcsstr.texi: Mention the new module.
15074
15075 2011-02-06  Bruno Haible  <bruno@clisp.org>
15076
15077         New module 'wcspbrk'.
15078         * modules/wcspbrk: New file.
15079         * lib/wchar.in.h (wcspbrk): New declaration.
15080         * lib/wcspbrk.c: New file.
15081         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
15082         * m4/wcspbrk.m4: New file.
15083         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
15084         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
15085         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
15086         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
15087         * doc/posix-functions/wcspbrk.texi: Mention the new module.
15088
15089 2011-02-06  Bruno Haible  <bruno@clisp.org>
15090
15091         New module 'wcsspn'.
15092         * modules/wcsspn: New file.
15093         * lib/wchar.in.h (wcsspn): New declaration.
15094         * lib/wcsspn.c: New file.
15095         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
15096         * m4/wcsspn.m4: New file.
15097         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
15098         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
15099         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
15100         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
15101         * doc/posix-functions/wcsspn.texi: Mention the new module.
15102
15103 2011-02-06  Bruno Haible  <bruno@clisp.org>
15104
15105         New module 'wcscspn'.
15106         * modules/wcscspn: New file.
15107         * lib/wchar.in.h (wcscspn): New declaration.
15108         * lib/wcscspn.c: New file.
15109         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
15110         * m4/wcscspn.m4: New file.
15111         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
15112         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
15113         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
15114         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
15115         * doc/posix-functions/wcscspn.texi: Mention the new module.
15116
15117 2011-02-06  Bruno Haible  <bruno@clisp.org>
15118
15119         New module 'wcsrchr'.
15120         * modules/wcsrchr: New file.
15121         * lib/wchar.in.h (wcsrchr): New declaration.
15122         * lib/wcsrchr.c: New file.
15123         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
15124         * m4/wcsrchr.m4: New file.
15125         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
15126         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
15127         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
15128         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
15129         * doc/posix-functions/wcsrchr.texi: Mention the new module.
15130
15131 2011-02-06  Bruno Haible  <bruno@clisp.org>
15132
15133         New module 'wcschr'.
15134         * modules/wcschr: New file.
15135         * lib/wchar.in.h (wcschr): New declaration.
15136         * lib/wcschr.c: New file.
15137         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
15138         * m4/wcschr.m4: New file.
15139         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
15140         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
15141         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
15142         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
15143         * doc/posix-functions/wcschr.texi: Mention the new module.
15144
15145 2011-02-06  Bruno Haible  <bruno@clisp.org>
15146
15147         New module 'wcsdup'.
15148         * modules/wcsdup: New file.
15149         * lib/wchar.in.h (wcsdup): New declaration.
15150         * lib/wcsdup.c: New file.
15151         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
15152         * m4/wcsdup.m4: New file.
15153         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
15154         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
15155         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
15156         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
15157         * doc/posix-functions/wcsdup.texi: Mention the new module.
15158
15159 2011-02-06  Bruno Haible  <bruno@clisp.org>
15160
15161         New module 'wcsxfrm'.
15162         * modules/wcsxfrm: New file.
15163         * lib/wchar.in.h (wcsxfrm): New declaration.
15164         * lib/wcsxfrm.c: New file.
15165         * lib/wcsxfrm-impl.h: New file.
15166         * m4/wcsxfrm.m4: New file.
15167         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
15168         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
15169         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
15170         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
15171         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
15172
15173 2011-02-06  Bruno Haible  <bruno@clisp.org>
15174
15175         New module 'wcscoll'.
15176         * modules/wcscoll: New file.
15177         * lib/wchar.in.h (wcscoll): New declaration.
15178         * lib/wcscoll.c: New file.
15179         * lib/wcscoll-impl.h: New file.
15180         * m4/wcscoll.m4: New file.
15181         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
15182         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
15183         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
15184         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
15185         * doc/posix-functions/wcscoll.texi: Mention the new module.
15186
15187 2011-02-06  Bruno Haible  <bruno@clisp.org>
15188
15189         New module 'wcsncasecmp'.
15190         * modules/wcsncasecmp: New file.
15191         * lib/wchar.in.h (wcsncasecmp): New declaration.
15192         * lib/wcsncasecmp.c: New file.
15193         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
15194         * m4/wcsncasecmp.m4: New file.
15195         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
15196         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
15197         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
15198         HAVE_WCSNCASECMP.
15199         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
15200         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
15201
15202 2011-02-06  Bruno Haible  <bruno@clisp.org>
15203
15204         New module 'wcscasecmp'.
15205         * modules/wcscasecmp: New file.
15206         * lib/wchar.in.h (wcscasecmp): New declaration.
15207         * lib/wcscasecmp.c: New file.
15208         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
15209         * m4/wcscasecmp.m4: New file.
15210         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
15211         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
15212         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
15213         HAVE_WCSCASECMP.
15214         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
15215         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
15216
15217 2011-02-05  Bruno Haible  <bruno@clisp.org>
15218
15219         New module 'wcsncmp'.
15220         * modules/wcsncmp: New file.
15221         * lib/wchar.in.h (wcsncmp): New declaration.
15222         * lib/wcsncmp.c: New file.
15223         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
15224         * m4/wcsncmp.m4: New file.
15225         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
15226         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
15227         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
15228         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
15229         * doc/posix-functions/wcsncmp.texi: Mention the new module.
15230
15231 2011-02-05  Bruno Haible  <bruno@clisp.org>
15232
15233         New module 'wcscmp'.
15234         * modules/wcscmp: New file.
15235         * lib/wchar.in.h (wcscmp): New declaration.
15236         * lib/wcscmp.c: New file.
15237         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
15238         * m4/wcscmp.m4: New file.
15239         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
15240         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
15241         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
15242         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
15243         * doc/posix-functions/wcscmp.texi: Mention the new module.
15244
15245 2011-02-05  Bruno Haible  <bruno@clisp.org>
15246
15247         New module 'wcsncat'.
15248         * modules/wcsncat: New file.
15249         * lib/wchar.in.h (wcsncat): New declaration.
15250         * lib/wcsncat.c: New file.
15251         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
15252         * m4/wcsncat.m4: New file.
15253         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
15254         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
15255         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
15256         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
15257         * doc/posix-functions/wcsncat.texi: Mention the new module.
15258
15259 2011-02-05  Bruno Haible  <bruno@clisp.org>
15260
15261         New module 'wcscat'.
15262         * modules/wcscat: New file.
15263         * lib/wchar.in.h (wcscat): New declaration.
15264         * lib/wcscat.c: New file.
15265         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
15266         * m4/wcscat.m4: New file.
15267         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
15268         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
15269         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
15270         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
15271         * doc/posix-functions/wcscat.texi: Mention the new module.
15272
15273 2011-02-05  Bruno Haible  <bruno@clisp.org>
15274
15275         New module 'wcpncpy'.
15276         * modules/wcpncpy: New file.
15277         * lib/wchar.in.h (wcpncpy): New declaration.
15278         * lib/wcpncpy.c: New file.
15279         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
15280         * m4/wcpncpy.m4: New file.
15281         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
15282         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
15283         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
15284         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
15285         * doc/posix-functions/wcpncpy.texi: Mention the new module.
15286
15287 2011-02-05  Bruno Haible  <bruno@clisp.org>
15288
15289         New module 'wcsncpy'.
15290         * modules/wcsncpy: New file.
15291         * lib/wchar.in.h (wcsncpy): New declaration.
15292         * lib/wcsncpy.c: New file.
15293         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
15294         * m4/wcsncpy.m4: New file.
15295         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
15296         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
15297         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
15298         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
15299         * doc/posix-functions/wcsncpy.texi: Mention the new module.
15300
15301 2011-02-05  Bruno Haible  <bruno@clisp.org>
15302
15303         New module 'wcpcpy'.
15304         * modules/wcpcpy: New file.
15305         * lib/wchar.in.h (wcpcpy): New declaration.
15306         * lib/wcpcpy.c: New file.
15307         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
15308         * m4/wcpcpy.m4: New file.
15309         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
15310         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
15311         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
15312         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
15313         * doc/posix-functions/wcpcpy.texi: Mention the new module.
15314
15315 2011-02-05  Bruno Haible  <bruno@clisp.org>
15316
15317         New module 'wcscpy'.
15318         * modules/wcscpy: New file.
15319         * lib/wchar.in.h (wcscpy): New declaration.
15320         * lib/wcscpy.c: New file.
15321         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
15322         * m4/wcscpy.m4: New file.
15323         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
15324         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
15325         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
15326         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
15327         * doc/posix-functions/wcscpy.texi: Mention the new module.
15328
15329 2011-02-05  Bruno Haible  <bruno@clisp.org>
15330
15331         New module 'wcsnlen'.
15332         * modules/wcsnlen: New file.
15333         * lib/wchar.in.h (wcsnlen): New declaration.
15334         * lib/wcsnlen.c: New file.
15335         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
15336         * m4/wcsnlen.m4: New file.
15337         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
15338         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
15339         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
15340         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
15341         * doc/posix-functions/wcsnlen.texi: Mention the new module.
15342
15343 2011-02-05  Bruno Haible  <bruno@clisp.org>
15344
15345         New module 'wcslen'.
15346         * modules/wcslen: New file.
15347         * lib/wchar.in.h (wcslen): New declaration.
15348         * lib/wcslen.c: New file.
15349         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
15350         * m4/wcslen.m4: New file.
15351         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
15352         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
15353         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
15354         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
15355         * doc/posix-functions/wcslen.texi: Mention the new module.
15356
15357 2011-02-05  Bruno Haible  <bruno@clisp.org>
15358
15359         New module 'wmemset'.
15360         * modules/wmemset: New file.
15361         * lib/wchar.in.h (wmemset): New declaration.
15362         * lib/wmemset.c: New file.
15363         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
15364         * m4/wmemset.m4: New file.
15365         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
15366         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
15367         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
15368         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
15369         * doc/posix-functions/wmemset.texi: Mention the new module.
15370
15371 2011-02-05  Bruno Haible  <bruno@clisp.org>
15372
15373         New module 'wmemmove'.
15374         * modules/wmemmove: New file.
15375         * lib/wchar.in.h (wmemmove): New declaration.
15376         * lib/wmemmove.c: New file.
15377         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
15378         * m4/wmemmove.m4: New file.
15379         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
15380         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
15381         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
15382         HAVE_WMEMMOVE.
15383         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
15384         * doc/posix-functions/wmemmove.texi: Mention the new module.
15385
15386 2011-02-05  Bruno Haible  <bruno@clisp.org>
15387
15388         New module 'wmemcpy'.
15389         * modules/wmemcpy: New file.
15390         * lib/wchar.in.h (wmemcpy): New declaration.
15391         * lib/wmemcpy.c: New file.
15392         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
15393         * m4/wmemcpy.m4: New file.
15394         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
15395         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
15396         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
15397         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
15398         * doc/posix-functions/wmemcpy.texi: Mention the new module.
15399
15400 2011-02-05  Bruno Haible  <bruno@clisp.org>
15401
15402         New module 'wmemcmp'.
15403         * modules/wmemcmp: New file.
15404         * lib/wchar.in.h (wmemcmp): New declaration.
15405         * lib/wmemcmp.c: New file.
15406         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
15407         * m4/wmemcmp.m4: New file.
15408         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
15409         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
15410         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
15411         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
15412         * doc/posix-functions/wmemcmp.texi: Mention the new module.
15413
15414 2011-02-07  Jim Meyering  <meyering@redhat.com>
15415
15416         di-set, ino-map: new modules, from coreutils
15417         * lib/di-set.c: New file.
15418         * lib/di-set.h: Likewise.
15419         * lib/ino-map.c: Likewise.
15420         * lib/ino-map.h: Likewise.
15421         * modules/di-set: Likewise.
15422         * modules/di-set-tests: Likewise.
15423         * modules/ino-map: Likewise.
15424         * modules/ino-map-tests: Likewise.
15425         * tests/test-di-set.c: Likewise.
15426         * tests/test-ino-map.c: Likewise.
15427
15428 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
15429
15430         getloadavg: merge minor changes from Emacs
15431
15432         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
15433         (getloadavg): Use memset, not bzero.
15434
15435         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
15436         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
15437         clash (bug#86).
15438
15439 2010-11-14  Bruno Haible  <bruno@clisp.org>
15440
15441         Allow multiple gnulib generated replacements to coexist.
15442         * lib/getopt.in.h (struct option): Avoid identical redefinition.
15443         * lib/inttypes.in.h (imaxdiv_t): Likewise.
15444         * lib/langinfo.in.h (nl_item): Likewise.
15445         * lib/math.in.h (_NaN, NAN): Likewise.
15446         * lib/netdb.in.h (struct addrinfo): Likewise.
15447         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
15448         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
15449         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
15450         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
15451         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
15452         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
15453         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
15454         pthread_mutexattr_init, pthread_mutexattr_settype,
15455         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
15456         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
15457         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
15458         pthread_spin_trylock, pthread_spin_unlock): Likewise.
15459         * lib/sched.in.h (struct sched_param): Likewise.
15460         * lib/se-selinux.in.h (security_class_t, security_context_t,
15461         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
15462         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
15463         lsetfilecon, fsetfilecon, security_check_context,
15464         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
15465         Likewise.
15466         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
15467         Likewise.
15468         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
15469         _gl_function_taking_int_returning_void_t, union sigval,
15470         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
15471         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
15472         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
15473         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
15474         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
15475         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
15476         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
15477         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
15478         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
15479         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
15480         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
15481         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
15482         socklen_t, rpl_fd_isset): Likewise.
15483         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
15484         * lib/sys_time.in.h (struct timeval): Likewise.
15485         * lib/sys_times.in.h (struct tms): Likewise.
15486         * lib/sys_utsname.in.h (struct utsname):
15487         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
15488         * lib/unistd.in.h (getpagesize): Likewise.
15489         * lib/wchar.in.h (mbstate_t): Likewise.
15490         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
15491         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
15492         towlower, towupper): Likewise.
15493         Reported by Sam Steingold <sds@gnu.org>.
15494
15495 2011-02-05  Eric Blake  <eblake@redhat.com>
15496
15497         unsetenv: work around Haiku issues
15498         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
15499         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
15500
15501 2010-12-30  Bruce Korb  <bkorb@gnu.org>
15502
15503         libposix: avoid calling error() within libposix
15504         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
15505         is defined.
15506
15507 2011-02-05  Eric Blake  <eblake@redhat.com>
15508
15509         strerror_r-posix: port to cygwin
15510         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
15511         implementation.
15512         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
15513         * tests/test-strerror_r.c (main): Fix test.
15514         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
15515         issue.
15516
15517 2011-02-05  Bruno Haible  <bruno@clisp.org>
15518
15519         New module 'wmemchr'.
15520         * modules/wmemchr: New file.
15521         * lib/wchar.in.h (wmemchr): New declaration.
15522         * lib/wmemchr.c: New file.
15523         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
15524         * m4/wmemchr.m4: New file.
15525         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
15526         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
15527         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
15528         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
15529         * doc/posix-functions/wmemchr.texi: Mention the new module.
15530
15531 2011-02-04  Eric Blake  <eblake@redhat.com>
15532
15533         fdopendir: detect FreeBSD bug
15534         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
15535         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
15536
15537 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
15538
15539         stdbool: do not define HAVE_STDBOOL_H
15540         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
15541         AC_HEADER_STDBOOL.  All uses changed.  Do not define
15542         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
15543         imported from the latest Autoconf git.  It was motivated by Emacs,
15544         which uses gnulib but does not need HAVE_STDBOOL_H.
15545
15546 2011-02-04  Bruno Haible  <bruno@clisp.org>
15547
15548         wcsnrtombs: Prepare for new module wwcsnrtombs.
15549         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
15550         * lib/wcsnrtombs.c: Include it.
15551         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
15552
15553         wcsrtombs: Prepare for new module wwcsrtombs.
15554         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
15555         * lib/wcsrtombs.c: Include it.
15556         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
15557
15558         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
15559         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
15560         * lib/mbsnrtowcs.c: Include it.
15561         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
15562
15563         mbsrtowcs: Prepare for new module mbsrtowwcs.
15564         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
15565         * lib/mbsrtowcs.c: Include it.
15566         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
15567
15568 2011-02-04  Bruno Haible  <bruno@clisp.org>
15569
15570         vasnprintf: Reduce use of malloc for small format strings.
15571         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
15572         (arguments): Add room for the first 7 arguments.
15573         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
15574         (char_directives, u8_directives, u16_directives, u32_directives): Add
15575         room for the first 7 directives.
15576         * lib/printf-parse.c: Include <string.h>.
15577         (PRINTF_PARSE): Change memory handling code so that it uses the first
15578         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
15579         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
15580         Reported by Pádraig Brady <P@draigbrady.com>.
15581
15582 2011-01-31  Eric Blake  <eblake@redhat.com>
15583
15584         dup2: work around Haiku bug
15585         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
15586         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
15587         * doc/posix-functions/dup2.texi (dup2): Document the bug.
15588         * tests/test-dup2.c (main): Enhance test.
15589
15590 2011-01-31  Simon Josefsson  <simon@josefsson.org>
15591
15592         doc: off_t is not available in eglibc 2.11.2 stdio.h.
15593         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
15594         declared by eglibc 2.11.2.
15595         * lib/stdio.in.h: Likewise.
15596
15597 2011-01-31  Eric Blake  <eblake@redhat.com>
15598
15599         ignore-value: add missing test dependency
15600         * tests/test-ignore-value.c: Revert previous change; stdio.h
15601         provides off_t.
15602         * modules/ignore-value-tests (Depends-on): Add missing dependency.
15603
15604 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
15605
15606         mktime: clarify long_int width checking
15607         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
15608         the top level, to make it clearer that the assumption about
15609         long_int width is being checked.  See
15610         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
15611
15612 2011-01-30  Simon Josefsson  <simon@josefsson.org>
15613
15614         ignore-value: Fix self-test.
15615         * tests/test-ignore-value.c: Include sys/types.h for off_t.
15616
15617 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
15618
15619         TYPE_MAXIMUM: avoid theoretically undefined behavior
15620         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
15621         negative number, which the C Standard says has undefined behavior.
15622         In practice this is not a problem, but might as well do it by the book.
15623         Reported by Rich Felker and Eric Blake; see
15624         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
15625         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
15626         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
15627         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15628         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
15629         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15630         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
15631
15632         mktime: #undef mktime before #defining it
15633         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
15634
15635         mktime: systematically normalize tm_isdst comparisons
15636         * lib/mktime.c (isdst_differ): New function.
15637         (__mktime_internal): Use it systematically for all isdst comparisons.
15638         This completes the fix for libc BZ #6723, and removes the need for
15639         normalizing tm_isdst.  See
15640         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
15641         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
15642
15643         mktime: fix some integer overflow issues and sidestep the rest
15644
15645         This was prompted by a bug report by Benjamin Lindner for MinGW
15646         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
15647         His bug is due to signed integer overflow (0 - INT_MIN), and I
15648         I scanned through mktime.c looking for other integer overflow
15649         problems, fixing all the bugs I found.
15650
15651         Although the C Standard says the resulting code is still not safe
15652         in the presence of integer overflow, in practice it should be good
15653         enough for all real-world two's-complement implementations, except
15654         for debugging environments that deliberately trap on integer
15655         overflow (e.g., gcc -ftrapv).
15656
15657         * lib/mktime.c (WRAPV): New macro.
15658         (SHR): Also check that long_int and time_t shift right in the
15659         usual way, before using the fast-but-unportable method.
15660         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
15661         used.  The code already assumed two's complement, so there's
15662         no need to test for alternatives.  All uses removed.
15663         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
15664         the C standard.  Problem reported by Rich Felker in
15665         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
15666         (twos_complement_arithmetic): Also check long_int and time_t.
15667         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
15668         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
15669         (__mktime_internal): Avoid integer overflow with unary subtraction
15670         in two instances where -1 - X is an adequate replacement for -X,
15671         since the calculations are approximate.
15672
15673 2011-01-29  Eric Blake  <eblake@redhat.com>
15674
15675         mktime: avoid infinite loop
15676         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
15677         type; behavior is still undefined but portable to all known targets.
15678         Reported by Rich Felker.
15679
15680 2011-01-29  Simon Josefsson  <simon@josefsson.org>
15681
15682         rename, unlink, same-inode: Relicense.
15683         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
15684         * modules/unlink (License): Likewise.
15685         * modules/same-inode (License): Likewise.
15686
15687 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
15688
15689         mktime: avoid problems on NetBSD 5 / i386
15690         * lib/mktime.c (long_int): New type.  This works around a problem
15691         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
15692         but time_t is 64 bits, and where I expect the existing code is
15693         wrong in some cases.
15694         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
15695         (ydhms_diff): Bring back the compile-time check for wide-enough
15696         year and yday.
15697
15698         mktime: fix misspelling in comment
15699         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
15700         This merges all recent glibc changes of importance.
15701
15702 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15703
15704         move-if-change: cope with concurrent mv of identical file.
15705         * build-aux/move-if-change (CMPPROG): Accept environment
15706         variable as an override for `cmp'.
15707         (usage): Document CMPPROG.
15708         Adjust comparison to drop stdout.  Cope with failure of mv if
15709         the target file exists and is identical to the source, for
15710         parallel builds.
15711         Report from H.J. Lu against binutils in PR binutils/12283.
15712
15713 2011-01-28  Bruce Korb  <bkorb@gnu.org>
15714
15715         * users.txt: Mention sharutils.
15716
15717 2011-01-28  Simon Josefsson  <simon@josefsson.org>
15718
15719         * users.txt: Mention OATH Toolkit.
15720
15721 2011-01-27  Bruno Haible  <bruno@clisp.org>
15722
15723         Prepare for supporting FreeBSD 10.
15724         * build-aux/config.libpath: Remove handling of freebsd1*.
15725
15726 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
15727
15728         Prepare for supporting FreeBSD 10.
15729         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
15730         match FreeBSD 10.0.
15731
15732 2011-01-27  Bruno Haible  <bruno@clisp.org>
15733
15734         vma-iter, get-rusage-as: Add OpenBSD support.
15735         * modules/vma-iter (configure.ac): Test for mquery.
15736         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
15737         * lib/vma-iter.c: Include <sys/mman.h>.
15738         (vma_iterate): Add an implementation based on mquery().
15739         * lib/resource-ext.h (get_rusage_as): Update comments.
15740         * lib/get-rusage-as.c: Likewise.
15741         * lib/get-rusage-data.c: Likewise.
15742
15743 2011-01-26  Karl Berry  <karl@gnu.org>
15744
15745         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
15746         variables to make it easier to override the makeinfo program used.
15747
15748 2011-01-26  Eric Blake  <eblake@redhat.com>
15749
15750         fcntl: work around Haiku F_DUPFD bugs
15751         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
15752         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
15753         cloexec bit on duplication.
15754         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
15755
15756 2011-01-26  Bruno Haible  <bruno@clisp.org>
15757
15758         Enable memory leak tests on AIX.
15759         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
15760         * tests/test-fprintf-posix3.c (main): Likewise.
15761
15762 2011-01-26  Bruno Haible  <bruno@clisp.org>
15763
15764         Tests for module 'get-rusage-data'.
15765         * modules/get-rusage-data-tests: New file.
15766         * tests/test-get-rusage-data.c: New file.
15767
15768         New module 'get-rusage-data'.
15769         * lib/resource-ext.h (get_rusage_data): New declaration.
15770         * lib/get-rusage-data.c: New file.
15771         * modules/get-rusage-data: New file.
15772
15773 2011-01-25  Bruno Haible  <bruno@clisp.org>
15774
15775         get-rusage-as: Allow for easier testing.
15776         * lib/resource-ext.h (get_rusage_as): Add comment.
15777         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
15778         (main): New function for interactive testing.
15779
15780 2011-01-25  Bruno Haible  <bruno@clisp.org>
15781
15782         vma-iter: Treat Haiku like BeOS.
15783         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
15784         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
15785
15786 2011-01-25  Eric Blake  <eblake@redhat.com>
15787
15788         c-stack: fix regression on cygwin when libsigsegv is present
15789         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
15790
15791 2011-01-24  Bruno Haible  <bruno@clisp.org>
15792
15793         vma-iter: Avoid empty intervals.
15794         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
15795         on an empty interval.
15796
15797 2011-01-24  Jim Meyering  <meyering@redhat.com>
15798
15799         u64: remove unnecessary #include
15800         * lib/u64.h: Don't include <stddef.h>.  It was not used.
15801
15802 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
15803
15804         Allow the user to avoid the HAVE_RAW_DECL_* macros.
15805         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
15806
15807 2011-01-23  Bruno Haible  <bruno@clisp.org>
15808
15809         New module 'vma-iter'.
15810         * lib/vma-iter.h: New file.
15811         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
15812         * modules/vma-iter: New file.
15813         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
15814         for get_rusage_as_via_iterator.
15815         (vma_iterate_callback): New function.
15816         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
15817         * modules/get-rusage-as (Depends-on): Add vma-iter.
15818
15819 2011-01-23  Bruno Haible  <bruno@clisp.org>
15820
15821         uninorm: Tweak includes.
15822         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
15823         Reported by Jim Meyering.
15824
15825 2011-01-23  Bruno Haible  <bruno@clisp.org>
15826
15827         get-rusage-as: Improve on NetBSD.
15828         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
15829         /proc, like on FreeBSD.
15830
15831 2011-01-23  Jim Meyering  <meyering@redhat.com>
15832
15833         xreadlink.h: remove unnecessary #include
15834         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
15835
15836         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
15837         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
15838
15839 2011-01-23  Bruno Haible  <bruno@clisp.org>
15840
15841         get-rusage-as: Fix bug.
15842         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
15843         original limit when aborting the first loop.
15844
15845 2011-01-23  Bruno Haible  <bruno@clisp.org>
15846
15847         wctype: Ensure valid C syntax.
15848         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
15849         unconditionally, instead of gl_NEXT_HEADERS conditionally.
15850
15851 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
15852
15853         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
15854         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
15855         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
15856         as they are needed only for configure's test case.
15857         This removes two unnecessary symbols from config.h.
15858
15859         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
15860         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
15861         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
15862         AC_CHECK_HEADERS_ONCE on a header that we also invoke
15863         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
15864         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
15865         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
15866         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
15867         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
15868         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15869         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
15870         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15871         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15872         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15873         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
15874         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15875         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
15876         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
15877
15878 2011-01-21  Eric Blake  <eblake@redhat.com>
15879
15880         maintainer-makefile: work with older git for submodule check
15881         * top/maint.mk (public-submodule-commit): Rewrite to avoid
15882         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
15883         Reported by Matthias Bolte.
15884
15885         bootstrap: minor portability fixes
15886         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
15887         (usage): Omit leading capital and trailing . on help phrases, per
15888         GNU Coding Standards.
15889         (check_versions, top level): Prefix messages with script name.
15890
15891 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
15892
15893         bootstrap: support --no-git option
15894         * build-aux/bootstrap: Add --no-git option, to be used when
15895         --gnulib-srcdir points to the exact desired checkout.
15896
15897 2011-01-21  Eric Blake  <eblake@redhat.com>
15898
15899         strerror_r-posix: work with glibc 2.13
15900         * lib/strerror_r.c (strerror_r): Fix return type.
15901
15902 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15903             Bruno Haible  <bruno@clisp.org>
15904
15905         uN_strstr: New unit tests.
15906         * modules/unistr/u8-strstr-tests: New file.
15907         * modules/unistr/u16-strstr-tests: New file.
15908         * modules/unistr/u32-strstr-tests: New file.
15909         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
15910         * tests/unistr/test-u8-strstr.c: New file.
15911         * tests/unistr/test-u16-strstr.c: New file.
15912         * tests/unistr/test-u32-strstr.c: New file.
15913
15914 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15915             Bruno Haible  <bruno@clisp.org>
15916
15917         Make uN_strstr functions O(n) worst-case.
15918         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
15919         16-bit and 32-bit unit cases, use the unibyte algorithm from
15920         lib/mbsstr.c.
15921         * lib/unistr/u8-strstr.c: Include <string.h>.
15922         (UNIT_IS_UINT8_T): New macro.
15923         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
15924         (U_STRLEN, U_STRNLEN): New macros.
15925         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
15926         (U_STRLEN, U_STRNLEN): New macros.
15927         * modules/unistr/u8-strstr (Depends-on): Add strstr.
15928         (configure.ac): Update required libunistring version.
15929         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
15930         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
15931         malloca.
15932         (configure.ac): Update required libunistring version.
15933         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
15934         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
15935         malloca.
15936         (configure.ac): Update required libunistring version.
15937
15938 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15939             Bruno Haible  <bruno@clisp.org>
15940
15941         Prepare for faster uN_strstr functions.
15942         * lib/str-kmp.h: Support definable UNITs.
15943         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
15944         needle_len argument.
15945         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
15946         * lib/mbscasestr.c (mbscasestr): Likewise.
15947
15948 2011-01-21  Pádraig Brady <P@draigBrady.com>
15949
15950         malloca-tests: make faster by unsetting MALLOC_PERTURB_
15951         * tests/test-malloca.c (main): Unset the environment variable
15952         to greatly speed up the test.
15953         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
15954         * modules/malloca-tests: Depend on unsetenv.
15955
15956 2011-01-21  Pádraig Brady <P@draigBrady.com>
15957
15958         ignore-value: remove stdint dependency
15959         * lib/ignore-value.h: Remove <stdint.h>
15960         * modules/ignore-value: Remove stdint dependency.
15961
15962 2011-01-21  Jim Meyering  <meyering@redhat.com>
15963
15964         maint.mk: adjust variable name to be consistent with other gl_ vars
15965         * top/maint.mk (gl_public_submodule_commit): Rename the variable
15966         to be lower case.
15967
15968 2011-01-20  Jim Meyering  <meyering@redhat.com>
15969
15970         maint.mk: make "check" depend on public-submodule-commit by default
15971         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
15972
15973 2011-01-20  Bruno Haible  <bruno@clisp.org>
15974
15975         mbfile, mbiter: Complete change from 2008-12-21.
15976         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
15977         * m4/mbiter.m4 (gl_MBITER): Likewise.
15978
15979 2011-01-20  Jim Meyering  <meyering@redhat.com>
15980
15981         init.sh: insert space between each function name and "()"
15982         * tests/init.sh: Make it a little easier to see that a function's
15983         name is "warn_", and not "warn" when looking at the first part of
15984         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
15985
15986 2011-01-20  Jim Meyering  <meyering@redhat.com>
15987
15988         mountlist: clean up code formatting
15989         * lib/mountlist.c (read_file_system_list): Split a long line,
15990         correct bracing style, use NULL in place of "(struct statfs *)0",
15991         don't parenthesize return value, add spaces around "=" and after
15992         ";-in-for-stmt".
15993
15994 2011-01-14  Markus Duft <mduft@gentoo.org>
15995
15996         mountlist: add support for Interix
15997         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
15998         Apply statvfs to all entries of /dev/fs.
15999         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
16000         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
16001
16002 2011-01-20  Jim Meyering  <meyering@redhat.com>
16003
16004         maint.mk: improve the public-submodule-commit rule
16005         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
16006         to suppress printing of its commands... unless V=1.
16007         Add git submodule's --quiet option to suppress printing of e.g.,
16008         "Entering gnulib" output.
16009         "cd" into $(srcdir) before running git submodule.
16010
16011 2011-01-20  Bruno Haible  <bruno@clisp.org>
16012
16013         include_next: Fix bug introduced on 2011-01-18.
16014         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
16015         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
16016         ac_cv_header_... variable if the second argument is not 'check'.
16017         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
16018         gl_NEXT_HEADERS_INTERNAL.
16019
16020 2011-01-20  Bruno Haible  <bruno@clisp.org>
16021
16022         Allow the user to avoid the GNULIB_TEST_* macros.
16023         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
16024         Suggested by Paul Eggert.
16025
16026 2011-01-14  Jim Meyering  <meyering@redhat.com>
16027
16028         bootstrap: avoid failure when there is no .gitmodules file
16029         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
16030         has been assigned to, even when its value is the empty string.
16031         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
16032         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
16033         Reported by John W. Eaton <jwe@gnu.org>.
16034
16035 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
16036
16037         assume <ctype.h>, ..., <time.h> exist
16038         For years gnulib has been assuming the existence of the headers
16039         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
16040         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
16041         them, since they don't appear to be needed.
16042         * README (Portability guidelines): Document this.
16043         * lib/flock.c: Assume <fcntl.h> exists.
16044         * lib/regex_internal.h: Assume <locale.h> exists.
16045         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
16046         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
16047         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
16048         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
16049         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
16050         * m4/regex.m4 (gl_REGEX): Likewise.
16051         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
16052         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
16053         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
16054         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
16055         * tests/test-argp.c: Likewise.
16056         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
16057
16058         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
16059         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
16060         AA_APPLE_UNIVERSAL_BUILD.  See
16061         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
16062         * NEWS: Document this.
16063
16064 2011-01-19  Eric Blake  <eblake@redhat.com>
16065
16066         c-stack: assume stack overflow if SA_SIGINFO unsupported
16067         * lib/c-stack.c (SIGACTION_WORKS): Rename...
16068         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
16069         sigaction will work.
16070         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
16071         behavior match Linux.
16072         * tests/test-c-stack.c (main): Prefer NULL for pointers.
16073
16074         stdbool-tests: accomodate Haiku
16075         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
16076
16077         binary-io: fix O_TEXT on Haiku
16078         * modules/binary-io (Depends-on): Add fcntl-h.
16079         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
16080         than blindly undefining O_TEXT.
16081         Reported by Scott McCreary.
16082
16083 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
16084
16085         include_next: do not check for standard headers like stddef.h
16086
16087         I found this problem when modifying Emacs to use gnulib.
16088         I noticed that it added HAVE_STDDEF_H to config.h, even though
16089         gnulib always assumes <stddef.h> exists as per README and this
16090         symbol is unnecessary.
16091         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
16092         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
16093         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
16094         faster for headers like stddef.h that are known to exist.
16095         (gl_CHECK_NEXT_HEADERS): Use it.
16096         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
16097         rather than gl_CHECK_NEXT_HEADERS.
16098         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
16099         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
16100
16101 2011-01-18  Eric Blake  <eblake@redhat.com>
16102
16103         ansi-c++-opt: skip C++ dependency style if C++ is unused
16104         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
16105         tests when we know C++ compilation is not desired.
16106         Reported by Scott McCreary.
16107
16108 2011-01-18  Bruno Haible  <bruno@clisp.org>
16109
16110         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
16111         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
16112         (main): Perform test also when getrlimit and setrlimit don't exist or
16113         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
16114         limiting the address space size using setrlimit, compare the address
16115         space size before and after the the test.
16116         * tests/test-dprintf-posix2.c: Likewise.
16117         * tests/test-fprintf-posix3.sh: Update skip messages.
16118         * tests/test-dprintf-posix2.sh: Likewise.
16119         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
16120         * modules/dprintf-posix-tests (Depends-on): Likewise.
16121         Reported by Bruce Korb <bkorb@gnu.org> and
16122         Gary V. Vaughan <gary@gnu.org>.
16123
16124 2011-01-18  Bruno Haible  <bruno@clisp.org>
16125
16126         get-rusage-as: Improvement for Cygwin.
16127         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
16128         areas that are merely reserved.
16129
16130 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
16131
16132         strftime: remove dependencies on multibyte modules
16133
16134         strftime depended on mbrlen, mbsinit, and wchar, but these modules
16135         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
16136         only if __osf__ is defined, and I suspect OSF doesn't need these
16137         other modules.  If my guess is wrong, we'll need to come up with a
16138         variant of strftime that doesn't need the multibyte modules.
16139
16140         I discovered this problem when attempting modify Emacs to use the
16141         strftime module.  With the previous gnulib, this caused Emacs to
16142         need 31 new files, ranging from lib/config.charset to
16143         m4/wint_t.m4.  This was overkill and I expect would be offputting
16144         to the Emacs maintainers.  After this change, only 6 new files are
16145         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
16146         stdbool.m4, and tm_gmtoff.m4.
16147
16148         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
16149         Suggested by Bruno Haible in
16150         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
16151         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
16152         and do not check for wchar.h.
16153         * modules/strftime (Files): Remove m4/mbstate_t.m4.
16154         (Depends-on): Remove mbrlen, mbsinit, wchar.
16155
16156 2011-01-18  Bruno Haible  <bruno@clisp.org>
16157
16158         Tests for module 'get-rusage-as'.
16159         * modules/get-rusage-as-tests: New file.
16160         * tests/test-get-rusage-as.c: New file.
16161
16162         New module 'get-rusage-as'.
16163         * modules/get-rusage-as: New file.
16164         * lib/resource-ext.h: New file.
16165         * lib/get-rusage-as.c: New file.
16166
16167 2011-01-17  Eric Blake  <eblake@redhat.com>
16168
16169         sigaction: relax license from LGPLv3+ to LGPLv2+
16170         * modules/sigaction (License): Relax to LGPLv2+.
16171
16172 2011-01-14  Bruno Haible  <bruno@clisp.org>
16173
16174         filemode: Make function declarations usable in C++ mode.
16175         * lib/filemode.h: Enclose function declarations in extern "C" block.
16176         Reported by John W. Eaton <jwe@gnu.org>.
16177
16178 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
16179
16180         save-cwd: no longer include "xgetcwd.h"
16181         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
16182         This avoids a compilation failure in projects that use save-cwd
16183         without also using the xgetcwd module.
16184
16185 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
16186
16187         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
16188         This is so that a program like Emacs, which needs only dtoastr,
16189         does not have to bother with distributing and compiling ftoastr
16190         and ldtoastr.
16191         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
16192         * modules/dtoastr, modules/ldtoastr: New files.
16193         * modules/ftoastr: Now works just for 'float'.
16194         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
16195         (Makefile.am): Remove ftoastr.h (not needed and no effect),
16196         dtoastr.c, ldtoastr.c.
16197
16198 2011-01-11  Jim Meyering  <meyering@redhat.com>
16199
16200         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
16201         There is no need to work around the lack of the fchdir function,
16202         since gnulib can now provide a replacement when required.
16203         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
16204         * modules/save-cwd (Depends-on): Add fchdir.
16205
16206 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
16207
16208         openat, save-cwd: avoid xmalloc
16209
16210         This removes a direct (but undocumented) dependency of openat on
16211         xalloc, along with an indirect dependency via save-cwd.  It also
16212         removes a dependency of save-cwd on xgetcwd, and thereby
16213         indirectly on xalloc.  This change causes the openat substitute
16214         to fall back on save_cwd when memory is tight, and for save_cwd to
16215         fail instead of dying when memory is tight, but that's good enough.
16216         Problem and initial idea for fix reported by Bastien Roucaries in
16217         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
16218
16219         * lib/openat-proc.c: Include stdlib.h (for malloc), not
16220         xalloc.h (for xmalloc).
16221         (openat_proc_name): Use malloc, not xmalloc.
16222         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
16223         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
16224
16225         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
16226         This avoids heap allocation for file names whose lengths are in
16227         the range 512..1023, with the upper bound increasing to at most
16228         4031 depending on the platform's PATH_MAX.  (We do not want
16229         pathmax.h here as it might supply a non-constant PATH_MAX.)
16230         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
16231         Perhaps they should be moved to malloca.h?
16232         (OPENAT_BUFFER_SIZE): Use them.
16233
16234 2011-01-10  Bruno Haible  <bruno@clisp.org>
16235
16236         doc: Update users.txt.
16237         * users.txt: Add recutils.
16238
16239 2011-01-09  Karl Berry  <karl@gnu.org>
16240
16241         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
16242
16243         * doc/configmake.texi: New file.
16244         * doc/gnulib.texi: Include it.
16245         * modules/configmake: Move documentation from here.
16246
16247 2011-01-09  Bruno Haible  <bruno@clisp.org>
16248
16249         Update to Unicode 6.0.0.
16250         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
16251         (get_lbp): Update for Unicode 6.0.0.
16252         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
16253         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
16254         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
16255         U+11001, U+11038..U+11046. Remove U+06DE.
16256         (uc_width): Fix bounds of planes.
16257         * tests/uniwidth/test-uc_width2.sh: Same updates as in
16258         lib/uniwidth/width.c.
16259         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
16260         trailing whitespace removed.
16261         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
16262         without comments, but with the original copyright notice.
16263         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
16264         * lib/unicase/ignorable.h: Likewise.
16265         * lib/unicase/tocasefold.h: Likewise.
16266         * lib/unicase/tolower.h: Likewise.
16267         * lib/unicase/totitle.h: Likewise.
16268         * lib/unicase/toupper.h: Likewise.
16269         * lib/unictype/bidi_of.h: Likewise.
16270         * lib/unictype/blocks.h: Likewise.
16271         * lib/unictype/categ_C.h: Likewise.
16272         * lib/unictype/categ_Cn.h: Likewise.
16273         * lib/unictype/categ_L.h: Likewise.
16274         * lib/unictype/categ_Ll.h: Likewise.
16275         * lib/unictype/categ_Lm.h: Likewise.
16276         * lib/unictype/categ_Lo.h: Likewise.
16277         * lib/unictype/categ_Lu.h: Likewise.
16278         * lib/unictype/categ_M.h: Likewise.
16279         * lib/unictype/categ_Mc.h: Likewise.
16280         * lib/unictype/categ_Me.h: Likewise.
16281         * lib/unictype/categ_Mn.h: Likewise.
16282         * lib/unictype/categ_N.h: Likewise.
16283         * lib/unictype/categ_Nd.h: Likewise.
16284         * lib/unictype/categ_No.h: Likewise.
16285         * lib/unictype/categ_P.h: Likewise.
16286         * lib/unictype/categ_Po.h: Likewise.
16287         * lib/unictype/categ_S.h: Likewise.
16288         * lib/unictype/categ_Sc.h: Likewise.
16289         * lib/unictype/categ_Sk.h: Likewise.
16290         * lib/unictype/categ_Sm.h: Likewise.
16291         * lib/unictype/categ_So.h: Likewise.
16292         * lib/unictype/categ_of.h: Likewise.
16293         * lib/unictype/combining.h: Likewise.
16294         * lib/unictype/ctype_alnum.h: Likewise.
16295         * lib/unictype/ctype_alpha.h: Likewise.
16296         * lib/unictype/ctype_graph.h: Likewise.
16297         * lib/unictype/ctype_lower.h: Likewise.
16298         * lib/unictype/ctype_print.h: Likewise.
16299         * lib/unictype/ctype_punct.h: Likewise.
16300         * lib/unictype/ctype_upper.h: Likewise.
16301         * lib/unictype/decdigit.h: Likewise.
16302         * lib/unictype/digit.h: Likewise.
16303         * lib/unictype/numeric.h: Likewise.
16304         * lib/unictype/pr_alphabetic.h: Likewise.
16305         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
16306         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
16307         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16308         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
16309         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
16310         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
16311         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
16312         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
16313         * lib/unictype/pr_case_ignorable.h: Likewise.
16314         * lib/unictype/pr_cased.h: Likewise.
16315         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
16316         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
16317         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
16318         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
16319         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
16320         * lib/unictype/pr_combining.h: Likewise.
16321         * lib/unictype/pr_composite.h: Likewise.
16322         * lib/unictype/pr_currency_symbol.h: Likewise.
16323         * lib/unictype/pr_decimal_digit.h: Likewise.
16324         * lib/unictype/pr_deprecated.h: Likewise.
16325         * lib/unictype/pr_format_control.h: Likewise.
16326         * lib/unictype/pr_grapheme_base.h: Likewise.
16327         * lib/unictype/pr_grapheme_extend.h: Likewise.
16328         * lib/unictype/pr_grapheme_link.h: Likewise.
16329         * lib/unictype/pr_id_continue.h: Likewise.
16330         * lib/unictype/pr_id_start.h: Likewise.
16331         * lib/unictype/pr_ideographic.h: Likewise.
16332         * lib/unictype/pr_lowercase.h: Likewise.
16333         * lib/unictype/pr_math.h: Likewise.
16334         * lib/unictype/pr_numeric.h: Likewise.
16335         * lib/unictype/pr_other_alphabetic.h: Likewise.
16336         * lib/unictype/pr_other_id_continue.h: Likewise.
16337         * lib/unictype/pr_other_math.h: Likewise.
16338         * lib/unictype/pr_punctuation.h: Likewise.
16339         * lib/unictype/pr_sentence_terminal.h: Likewise.
16340         * lib/unictype/pr_terminal_punctuation.h: Likewise.
16341         * lib/unictype/pr_unassigned_code_value.h: Likewise.
16342         * lib/unictype/pr_unified_ideograph.h: Likewise.
16343         * lib/unictype/pr_uppercase.h: Likewise.
16344         * lib/unictype/pr_xid_continue.h: Likewise.
16345         * lib/unictype/pr_xid_start.h: Likewise.
16346         * lib/unictype/scripts.h: Likewise.
16347         * lib/unictype/scripts_byname.gperf: Likewise.
16348         * lib/unictype/sy_java_ident.h: Likewise.
16349         * lib/unigbrk/gbrkprop.h: Likewise.
16350         * lib/unilbrk/lbrkprop1.h: Likewise.
16351         * lib/unilbrk/lbrkprop2.h: Likewise.
16352         * lib/uninorm/decomposition-table2.h: Likewise.
16353         * lib/uniwbrk/wbrkprop.h: Likewise.
16354         * tests/unicase/test-cased.c: Likewise.
16355         * tests/unicase/test-ignorable.c: Likewise.
16356         * tests/unicase/test-uc_tolower.c: Likewise.
16357         * tests/unicase/test-uc_totitle.c: Likewise.
16358         * tests/unicase/test-uc_toupper.c: Likewise.
16359         * tests/unictype/test-categ_C.c: Likewise.
16360         * tests/unictype/test-categ_Cn.c: Likewise.
16361         * tests/unictype/test-categ_L.c: Likewise.
16362         * tests/unictype/test-categ_Ll.c: Likewise.
16363         * tests/unictype/test-categ_Lm.c: Likewise.
16364         * tests/unictype/test-categ_Lo.c: Likewise.
16365         * tests/unictype/test-categ_Lu.c: Likewise.
16366         * tests/unictype/test-categ_M.c: Likewise.
16367         * tests/unictype/test-categ_Mc.c: Likewise.
16368         * tests/unictype/test-categ_Me.c: Likewise.
16369         * tests/unictype/test-categ_Mn.c: Likewise.
16370         * tests/unictype/test-categ_N.c: Likewise.
16371         * tests/unictype/test-categ_Nd.c: Likewise.
16372         * tests/unictype/test-categ_No.c: Likewise.
16373         * tests/unictype/test-categ_P.c: Likewise.
16374         * tests/unictype/test-categ_Po.c: Likewise.
16375         * tests/unictype/test-categ_S.c: Likewise.
16376         * tests/unictype/test-categ_Sc.c: Likewise.
16377         * tests/unictype/test-categ_Sk.c: Likewise.
16378         * tests/unictype/test-categ_Sm.c: Likewise.
16379         * tests/unictype/test-categ_So.c: Likewise.
16380         * tests/unictype/test-ctype_alnum.c: Likewise.
16381         * tests/unictype/test-ctype_alpha.c: Likewise.
16382         * tests/unictype/test-ctype_graph.c: Likewise.
16383         * tests/unictype/test-ctype_lower.c: Likewise.
16384         * tests/unictype/test-ctype_print.c: Likewise.
16385         * tests/unictype/test-ctype_punct.c: Likewise.
16386         * tests/unictype/test-ctype_upper.c: Likewise.
16387         * tests/unictype/test-decdigit.h: Likewise.
16388         * tests/unictype/test-digit.h: Likewise.
16389         * tests/unictype/test-numeric.h: Likewise.
16390         * tests/unictype/test-pr_alphabetic.c: Likewise.
16391         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
16392         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
16393         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
16394         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
16395         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
16396         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
16397         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
16398         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
16399         * tests/unictype/test-pr_case_ignorable.c: Likewise.
16400         * tests/unictype/test-pr_cased.c: Likewise.
16401         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
16402         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
16403         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
16404         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
16405         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
16406         * tests/unictype/test-pr_combining.c: Likewise.
16407         * tests/unictype/test-pr_composite.c: Likewise.
16408         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16409         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16410         * tests/unictype/test-pr_deprecated.c: Likewise.
16411         * tests/unictype/test-pr_format_control.c: Likewise.
16412         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16413         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16414         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16415         * tests/unictype/test-pr_id_continue.c: Likewise.
16416         * tests/unictype/test-pr_id_start.c: Likewise.
16417         * tests/unictype/test-pr_ideographic.c: Likewise.
16418         * tests/unictype/test-pr_lowercase.c: Likewise.
16419         * tests/unictype/test-pr_math.c: Likewise.
16420         * tests/unictype/test-pr_numeric.c: Likewise.
16421         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16422         * tests/unictype/test-pr_other_id_continue.c: Likewise.
16423         * tests/unictype/test-pr_other_math.c: Likewise.
16424         * tests/unictype/test-pr_punctuation.c: Likewise.
16425         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16426         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16427         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16428         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16429         * tests/unictype/test-pr_uppercase.c: Likewise.
16430         * tests/unictype/test-pr_xid_continue.c: Likewise.
16431         * tests/unictype/test-pr_xid_start.c: Likewise.
16432         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
16433         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
16434         changes.
16435         * lib/unictype/categ_Cc.h: Likewise.
16436         * lib/unictype/categ_Cf.h: Likewise.
16437         * lib/unictype/categ_Co.h: Likewise.
16438         * lib/unictype/categ_Cs.h: Likewise.
16439         * lib/unictype/categ_Lt.h: Likewise.
16440         * lib/unictype/categ_Nl.h: Likewise.
16441         * lib/unictype/categ_Pc.h: Likewise.
16442         * lib/unictype/categ_Pd.h: Likewise.
16443         * lib/unictype/categ_Pe.h: Likewise.
16444         * lib/unictype/categ_Pf.h: Likewise.
16445         * lib/unictype/categ_Pi.h: Likewise.
16446         * lib/unictype/categ_Ps.h: Likewise.
16447         * lib/unictype/categ_Z.h: Likewise.
16448         * lib/unictype/categ_Zl.h: Likewise.
16449         * lib/unictype/categ_Zp.h: Likewise.
16450         * lib/unictype/categ_Zs.h: Likewise.
16451         * lib/unictype/ctype_blank.h: Likewise.
16452         * lib/unictype/ctype_cntrl.h: Likewise.
16453         * lib/unictype/ctype_digit.h: Likewise.
16454         * lib/unictype/ctype_space.h: Likewise.
16455         * lib/unictype/ctype_xdigit.h: Likewise.
16456         * lib/unictype/mirror.h: Likewise.
16457         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16458         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16459         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16460         * lib/unictype/pr_bidi_control.h: Likewise.
16461         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16462         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16463         * lib/unictype/pr_bidi_european_digit.h: Likewise.
16464         * lib/unictype/pr_bidi_pdf.h: Likewise.
16465         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16466         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16467         * lib/unictype/pr_dash.h: Likewise.
16468         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16469         * lib/unictype/pr_diacritic.h: Likewise.
16470         * lib/unictype/pr_extender.h: Likewise.
16471         * lib/unictype/pr_hex_digit.h: Likewise.
16472         * lib/unictype/pr_hyphen.h: Likewise.
16473         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16474         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16475         * lib/unictype/pr_ignorable_control.h: Likewise.
16476         * lib/unictype/pr_iso_control.h: Likewise.
16477         * lib/unictype/pr_join_control.h: Likewise.
16478         * lib/unictype/pr_left_of_pair.h: Likewise.
16479         * lib/unictype/pr_line_separator.h: Likewise.
16480         * lib/unictype/pr_logical_order_exception.h: Likewise.
16481         * lib/unictype/pr_non_break.h: Likewise.
16482         * lib/unictype/pr_not_a_character.h: Likewise.
16483         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16484         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16485         * lib/unictype/pr_other_id_start.h: Likewise.
16486         * lib/unictype/pr_other_lowercase.h: Likewise.
16487         * lib/unictype/pr_other_uppercase.h: Likewise.
16488         * lib/unictype/pr_paired_punctuation.h: Likewise.
16489         * lib/unictype/pr_paragraph_separator.h: Likewise.
16490         * lib/unictype/pr_pattern_syntax.h: Likewise.
16491         * lib/unictype/pr_pattern_white_space.h: Likewise.
16492         * lib/unictype/pr_private_use.h: Likewise.
16493         * lib/unictype/pr_quotation_mark.h: Likewise.
16494         * lib/unictype/pr_radical.h: Likewise.
16495         * lib/unictype/pr_soft_dotted.h: Likewise.
16496         * lib/unictype/pr_space.h: Likewise.
16497         * lib/unictype/pr_titlecase.h: Likewise.
16498         * lib/unictype/pr_variation_selector.h: Likewise.
16499         * lib/unictype/pr_white_space.h: Likewise.
16500         * lib/unictype/pr_zero_width.h: Likewise.
16501         * lib/unictype/sy_c_ident.h: Likewise.
16502         * lib/unictype/sy_c_whitespace.h: Likewise.
16503         * lib/unictype/sy_java_whitespace.h: Likewise.
16504         * lib/uninorm/composition-table.gperf: Likewise.
16505         * lib/uninorm/decomposition-table1.h: Likewise.
16506         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
16507         LB8.
16508         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
16509         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
16510         * modules/unictype/*: Bump version number of expected libunistring
16511         version.
16512
16513 2011-01-09  Bruno Haible  <bruno@clisp.org>
16514
16515         Update to Unicode 5.2.0.
16516         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
16517         trailing whitespace removed.
16518
16519 2011-01-09  Bruno Haible  <bruno@clisp.org>
16520
16521         New Unicode character properties, from Unicode 5.2.0.
16522         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
16523         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
16524         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
16525         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
16526         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
16527         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
16528         uc_is_property_cased, uc_is_property_case_ignorable,
16529         uc_is_property_changes_when_lowercased,
16530         uc_is_property_changes_when_uppercased,
16531         uc_is_property_changes_when_titlecased,
16532         uc_is_property_changes_when_casefolded,
16533         uc_is_property_changes_when_casemapped): New declarations.
16534         * lib/unictype/pr_byname.gperf: Add the new properties.
16535         * modules/unictype/property-byname (Depends-on): Depend on the new
16536         properties modules.
16537         * modules/unictype/property-all (Depends-on): Likewise.
16538         * MODULES.html.sh (Unicode string functions): Add
16539         unictype/property-case-ignorable, unictype/property-cased,
16540         unictype/property-changes-when-casefolded,
16541         unictype/property-changes-when-casemapped,
16542         unictype/property-changes-when-lowercased,
16543         unictype/property-changes-when-titlecased,
16544         unictype/property-changes-when-uppercased.
16545
16546         New module 'unictype/property-changes-when-casemapped'.
16547         * modules/unictype/property-changes-when-casemapped: New file.
16548         * lib/unictype/pr_changes_when_casemapped.c: New file.
16549         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
16550         generated by gen-uni-tables.
16551         * modules/unictype/property-changes-when-casemapped-tests: New file.
16552         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
16553         automatically generated by gen-uni-tables.
16554
16555         New module 'unictype/property-changes-when-casefolded'.
16556         * modules/unictype/property-changes-when-casefolded: New file.
16557         * lib/unictype/pr_changes_when_casefolded.c: New file.
16558         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
16559         generated by gen-uni-tables.
16560         * modules/unictype/property-changes-when-casefolded-tests: New file.
16561         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
16562         automatically generated by gen-uni-tables.
16563
16564         New module 'unictype/property-changes-when-titlecased'.
16565         * modules/unictype/property-changes-when-titlecased: New file.
16566         * lib/unictype/pr_changes_when_titlecased.c: New file.
16567         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
16568         generated by gen-uni-tables.
16569         * modules/unictype/property-changes-when-titlecased-tests: New file.
16570         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
16571         automatically generated by gen-uni-tables.
16572
16573         New module 'unictype/property-changes-when-uppercased'.
16574         * modules/unictype/property-changes-when-uppercased: New file.
16575         * lib/unictype/pr_changes_when_uppercased.c: New file.
16576         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
16577         generated by gen-uni-tables.
16578         * modules/unictype/property-changes-when-uppercased-tests: New file.
16579         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
16580         automatically generated by gen-uni-tables.
16581
16582         New module 'unictype/property-changes-when-lowercased'.
16583         * modules/unictype/property-changes-when-lowercased: New file.
16584         * lib/unictype/pr_changes_when_lowercased.c: New file.
16585         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
16586         generated by gen-uni-tables.
16587         * modules/unictype/property-changes-when-lowercased-tests: New file.
16588         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
16589         automatically generated by gen-uni-tables.
16590
16591         New module 'unictype/property-case-ignorable'.
16592         * modules/unictype/property-case-ignorable: New file.
16593         * lib/unictype/pr_case_ignorable.c: New file.
16594         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
16595         by gen-uni-tables.
16596         * modules/unictype/property-case-ignorable-tests: New file.
16597         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
16598         generated by gen-uni-tables.
16599
16600         New module 'unictype/property-cased'.
16601         * modules/unictype/property-cased: New file.
16602         * lib/unictype/pr_cased.c: New file.
16603         * lib/unictype/pr_cased.h: New file, automatically generated by
16604         gen-uni-tables.
16605         * modules/unictype/property-cased-tests: New file.
16606         * tests/unictype/test-pr_cased.c: New file, automatically generated by
16607         gen-uni-tables.
16608
16609 2011-01-09  Bruno Haible  <bruno@clisp.org>
16610
16611         Update to Unicode 5.2.0.
16612         * lib/gen-uni-tables.c (output_predicate, output_category,
16613         output_combclass, output_bidi_category, output_decimal_digit_test,
16614         output_decimal_digit, output_digit_test, output_digit,
16615         output_numeric_test, output_numeric, output_mirror, output_scripts,
16616         output_scripts_byname, output_blocks, output_ident_category): Fix
16617         comment header.
16618         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
16619         get_wbp.
16620         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
16621         items.
16622         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
16623         Changes_When_Lowercased, Changes_When_Uppercased,
16624         Changes_When_Titlecased, Changes_When_Casefolded,
16625         Changes_When_Casemapped.
16626         (is_property_alphabetic, is_property_default_ignorable_code_point):
16627         Update for Unicode 5.2.0.
16628         (is_property_cased, is_property_case_ignorable,
16629         is_property_changes_when_lowercased,
16630         is_property_changes_when_uppercased,
16631         is_property_changes_when_titlecased,
16632         is_property_changes_when_casefolded,
16633         is_property_changes_when_casemapped): New functions.
16634         (output_properties): Output also the properties cased, case_ignorable,
16635         changes_when_lowercased, changes_when_uppercased,
16636         changes_when_titlecased, changes_when_casefolded,
16637         changes_when_casemapped.
16638         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
16639         Unicode TR#11 revision 17 -> 19.
16640         (LBP_CP): New enumeration value.
16641         (LBP_*): Adjust values accordingly.
16642         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
16643         TR#14 revision 22 -> 24.
16644         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
16645         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
16646         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
16647         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
16648         is_WBP_MIDLETTER.
16649         (output_composition_tables): Allow for 24 bits instead of 16 bits in
16650         the code1 and code2 of each composition rule.
16651         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
16652         * lib/unicase/ignorable.h: Likewise.
16653         * lib/unicase/tocasefold.h: Likewise.
16654         * lib/unicase/tolower.h: Likewise.
16655         * lib/unicase/totitle.h: Likewise.
16656         * lib/unicase/toupper.h: Likewise.
16657         * lib/unictype/bidi_of.h: Likewise.
16658         * lib/unictype/blocks.h: Likewise.
16659         * lib/unictype/categ_C.h: Likewise.
16660         * lib/unictype/categ_Cf.h: Likewise.
16661         * lib/unictype/categ_Cn.h: Likewise.
16662         * lib/unictype/categ_L.h: Likewise.
16663         * lib/unictype/categ_Ll.h: Likewise.
16664         * lib/unictype/categ_Lm.h: Likewise.
16665         * lib/unictype/categ_Lo.h: Likewise.
16666         * lib/unictype/categ_Lu.h: Likewise.
16667         * lib/unictype/categ_M.h: Likewise.
16668         * lib/unictype/categ_Mc.h: Likewise.
16669         * lib/unictype/categ_Mn.h: Likewise.
16670         * lib/unictype/categ_N.h: Likewise.
16671         * lib/unictype/categ_Nd.h: Likewise.
16672         * lib/unictype/categ_Nl.h: Likewise.
16673         * lib/unictype/categ_No.h: Likewise.
16674         * lib/unictype/categ_P.h: Likewise.
16675         * lib/unictype/categ_Pd.h: Likewise.
16676         * lib/unictype/categ_Po.h: Likewise.
16677         * lib/unictype/categ_S.h: Likewise.
16678         * lib/unictype/categ_Sc.h: Likewise.
16679         * lib/unictype/categ_So.h: Likewise.
16680         * lib/unictype/categ_of.h: Likewise.
16681         * lib/unictype/combining.h: Likewise.
16682         * lib/unictype/ctype_alnum.h: Likewise.
16683         * lib/unictype/ctype_alpha.h: Likewise.
16684         * lib/unictype/ctype_graph.h: Likewise.
16685         * lib/unictype/ctype_lower.h: Likewise.
16686         * lib/unictype/ctype_print.h: Likewise.
16687         * lib/unictype/ctype_punct.h: Likewise.
16688         * lib/unictype/ctype_upper.h: Likewise.
16689         * lib/unictype/decdigit.h: Likewise.
16690         * lib/unictype/digit.h: Likewise.
16691         * lib/unictype/numeric.h: Likewise.
16692         * lib/unictype/pr_alphabetic.h: Likewise.
16693         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
16694         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
16695         * lib/unictype/pr_bidi_european_digit.h: Likewise.
16696         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
16697         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
16698         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
16699         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
16700         * lib/unictype/pr_combining.h: Likewise.
16701         * lib/unictype/pr_composite.h: Likewise.
16702         * lib/unictype/pr_currency_symbol.h: Likewise.
16703         * lib/unictype/pr_dash.h: Likewise.
16704         * lib/unictype/pr_decimal_digit.h: Likewise.
16705         * lib/unictype/pr_deprecated.h: Likewise.
16706         * lib/unictype/pr_diacritic.h: Likewise.
16707         * lib/unictype/pr_extender.h: Likewise.
16708         * lib/unictype/pr_grapheme_base.h: Likewise.
16709         * lib/unictype/pr_grapheme_extend.h: Likewise.
16710         * lib/unictype/pr_grapheme_link.h: Likewise.
16711         * lib/unictype/pr_id_continue.h: Likewise.
16712         * lib/unictype/pr_id_start.h: Likewise.
16713         * lib/unictype/pr_ideographic.h: Likewise.
16714         * lib/unictype/pr_ignorable_control.h: Likewise.
16715         * lib/unictype/pr_logical_order_exception.h: Likewise.
16716         * lib/unictype/pr_lowercase.h: Likewise.
16717         * lib/unictype/pr_numeric.h: Likewise.
16718         * lib/unictype/pr_other_alphabetic.h: Likewise.
16719         * lib/unictype/pr_punctuation.h: Likewise.
16720         * lib/unictype/pr_sentence_terminal.h: Likewise.
16721         * lib/unictype/pr_terminal_punctuation.h: Likewise.
16722         * lib/unictype/pr_unassigned_code_value.h: Likewise.
16723         * lib/unictype/pr_unified_ideograph.h: Likewise.
16724         * lib/unictype/pr_uppercase.h: Likewise.
16725         * lib/unictype/pr_xid_continue.h: Likewise.
16726         * lib/unictype/pr_xid_start.h: Likewise.
16727         * lib/unictype/pr_zero_width.h: Likewise.
16728         * lib/unictype/scripts.h: Likewise.
16729         * lib/unictype/scripts_byname.gperf: Likewise.
16730         * lib/unictype/sy_java_ident.h: Likewise.
16731         * lib/unigbrk/gbrkprop.h: Likewise.
16732         * lib/unilbrk/lbrkprop1.h: Likewise.
16733         * lib/unilbrk/lbrkprop2.h: Likewise.
16734         * lib/unilbrk/lbrktables.h: Likewise.
16735         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
16736         LBP_CP. Implement rule LB30.
16737         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
16738         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
16739         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
16740         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
16741         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
16742         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
16743         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
16744         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
16745         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
16746         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
16747         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
16748         bits instead of 16 bits in the code1 and code2 of each composition
16749         rule.
16750         (uc_composition): Update for Unicode 5.2.0.
16751         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
16752         * lib/uninorm/decomposition-table2.h: Likewise.
16753         * lib/uniwbrk/wbrkprop.h: Likewise.
16754         * tests/unicase/test-cased.c: Likewise.
16755         * tests/unicase/test-ignorable.c: Likewise.
16756         * tests/unicase/test-uc_tolower.c: Likewise.
16757         * tests/unicase/test-uc_totitle.c: Likewise.
16758         * tests/unicase/test-uc_toupper.c: Likewise.
16759         * tests/unictype/test-categ_C.c: Likewise.
16760         * tests/unictype/test-categ_Cf.c: Likewise.
16761         * tests/unictype/test-categ_Cn.c: Likewise.
16762         * tests/unictype/test-categ_L.c: Likewise.
16763         * tests/unictype/test-categ_Ll.c: Likewise.
16764         * tests/unictype/test-categ_Lm.c: Likewise.
16765         * tests/unictype/test-categ_Lo.c: Likewise.
16766         * tests/unictype/test-categ_Lu.c: Likewise.
16767         * tests/unictype/test-categ_M.c: Likewise.
16768         * tests/unictype/test-categ_Mc.c: Likewise.
16769         * tests/unictype/test-categ_Mn.c: Likewise.
16770         * tests/unictype/test-categ_N.c: Likewise.
16771         * tests/unictype/test-categ_Nd.c: Likewise.
16772         * tests/unictype/test-categ_Nl.c: Likewise.
16773         * tests/unictype/test-categ_No.c: Likewise.
16774         * tests/unictype/test-categ_P.c: Likewise.
16775         * tests/unictype/test-categ_Pd.c: Likewise.
16776         * tests/unictype/test-categ_Po.c: Likewise.
16777         * tests/unictype/test-categ_S.c: Likewise.
16778         * tests/unictype/test-categ_Sc.c: Likewise.
16779         * tests/unictype/test-categ_So.c: Likewise.
16780         * tests/unictype/test-ctype_alnum.c: Likewise.
16781         * tests/unictype/test-ctype_alpha.c: Likewise.
16782         * tests/unictype/test-ctype_graph.c: Likewise.
16783         * tests/unictype/test-ctype_lower.c: Likewise.
16784         * tests/unictype/test-ctype_print.c: Likewise.
16785         * tests/unictype/test-ctype_punct.c: Likewise.
16786         * tests/unictype/test-ctype_upper.c: Likewise.
16787         * tests/unictype/test-decdigit.h: Likewise.
16788         * tests/unictype/test-digit.h: Likewise.
16789         * tests/unictype/test-numeric.h: Likewise.
16790         * tests/unictype/test-pr_alphabetic.c: Likewise.
16791         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
16792         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
16793         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
16794         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
16795         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
16796         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
16797         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
16798         * tests/unictype/test-pr_combining.c: Likewise.
16799         * tests/unictype/test-pr_composite.c: Likewise.
16800         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16801         * tests/unictype/test-pr_dash.c: Likewise.
16802         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16803         * tests/unictype/test-pr_deprecated.c: Likewise.
16804         * tests/unictype/test-pr_diacritic.c: Likewise.
16805         * tests/unictype/test-pr_extender.c: Likewise.
16806         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16807         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16808         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16809         * tests/unictype/test-pr_id_continue.c: Likewise.
16810         * tests/unictype/test-pr_id_start.c: Likewise.
16811         * tests/unictype/test-pr_ideographic.c: Likewise.
16812         * tests/unictype/test-pr_ignorable_control.c: Likewise.
16813         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
16814         * tests/unictype/test-pr_lowercase.c: Likewise.
16815         * tests/unictype/test-pr_numeric.c: Likewise.
16816         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16817         * tests/unictype/test-pr_punctuation.c: Likewise.
16818         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16819         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16820         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16821         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16822         * tests/unictype/test-pr_uppercase.c: Likewise.
16823         * tests/unictype/test-pr_xid_continue.c: Likewise.
16824         * tests/unictype/test-pr_xid_start.c: Likewise.
16825         * tests/unictype/test-pr_zero_width.c: Likewise.
16826         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
16827         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
16828         changed behaviour: line breaking is now disallowed between a letter
16829         or '=' and '('.
16830         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
16831         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
16832         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
16833         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
16834         * tests/uniwidth/test-uc_width2.sh: Same updates as in
16835         lib/uniwidth/width.c.
16836         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
16837         without comments, but with the original copyright notice.
16838         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
16839         changes.
16840         * lib/unictype/categ_Cc.h: Likewise.
16841         * lib/unictype/categ_Co.h: Likewise.
16842         * lib/unictype/categ_Cs.h: Likewise.
16843         * lib/unictype/categ_Lt.h: Likewise.
16844         * lib/unictype/categ_Me.h: Likewise.
16845         * lib/unictype/categ_Pc.h: Likewise.
16846         * lib/unictype/categ_Pe.h: Likewise.
16847         * lib/unictype/categ_Pf.h: Likewise.
16848         * lib/unictype/categ_Pi.h: Likewise.
16849         * lib/unictype/categ_Ps.h: Likewise.
16850         * lib/unictype/categ_Sk.h: Likewise.
16851         * lib/unictype/categ_Sm.h: Likewise.
16852         * lib/unictype/categ_Z.h: Likewise.
16853         * lib/unictype/categ_Zl.h: Likewise.
16854         * lib/unictype/categ_Zp.h: Likewise.
16855         * lib/unictype/categ_Zs.h: Likewise.
16856         * lib/unictype/ctype_blank.h: Likewise.
16857         * lib/unictype/ctype_cntrl.h: Likewise.
16858         * lib/unictype/ctype_digit.h: Likewise.
16859         * lib/unictype/ctype_space.h: Likewise.
16860         * lib/unictype/ctype_xdigit.h: Likewise.
16861         * lib/unictype/mirror.h: Likewise.
16862         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16863         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
16864         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16865         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16866         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16867         * lib/unictype/pr_bidi_control.h: Likewise.
16868         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16869         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16870         * lib/unictype/pr_bidi_pdf.h: Likewise.
16871         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16872         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16873         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16874         * lib/unictype/pr_format_control.h: Likewise.
16875         * lib/unictype/pr_hex_digit.h: Likewise.
16876         * lib/unictype/pr_hyphen.h: Likewise.
16877         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16878         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16879         * lib/unictype/pr_iso_control.h: Likewise.
16880         * lib/unictype/pr_join_control.h: Likewise.
16881         * lib/unictype/pr_left_of_pair.h: Likewise.
16882         * lib/unictype/pr_line_separator.h: Likewise.
16883         * lib/unictype/pr_math.h: Likewise.
16884         * lib/unictype/pr_non_break.h: Likewise.
16885         * lib/unictype/pr_not_a_character.h: Likewise.
16886         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16887         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16888         * lib/unictype/pr_other_id_continue.h: Likewise.
16889         * lib/unictype/pr_other_id_start.h: Likewise.
16890         * lib/unictype/pr_other_lowercase.h: Likewise.
16891         * lib/unictype/pr_other_math.h: Likewise.
16892         * lib/unictype/pr_other_uppercase.h: Likewise.
16893         * lib/unictype/pr_paired_punctuation.h: Likewise.
16894         * lib/unictype/pr_paragraph_separator.h: Likewise.
16895         * lib/unictype/pr_pattern_syntax.h: Likewise.
16896         * lib/unictype/pr_pattern_white_space.h: Likewise.
16897         * lib/unictype/pr_private_use.h: Likewise.
16898         * lib/unictype/pr_quotation_mark.h: Likewise.
16899         * lib/unictype/pr_radical.h: Likewise.
16900         * lib/unictype/pr_soft_dotted.h: Likewise.
16901         * lib/unictype/pr_space.h: Likewise.
16902         * lib/unictype/pr_titlecase.h: Likewise.
16903         * lib/unictype/pr_variation_selector.h: Likewise.
16904         * lib/unictype/pr_white_space.h: Likewise.
16905         * lib/unictype/sy_c_ident.h: Likewise.
16906         * lib/unictype/sy_c_whitespace.h: Likewise.
16907         * lib/unictype/sy_java_whitespace.h: Likewise.
16908         * modules/uni*/*: Bump version number of expected libunistring version.
16909         Reported by Simon Josefsson.
16910
16911 2011-01-09  Karl Heuer  <kwzh@gnu.org>
16912
16913         useless-if-before-free: fix typo in --help and make the internal,
16914         automatic version date update process work once again.
16915         --help output contained a NUL character instead of the
16916         backslash-zero that was intended.  Also, the "must lie within
16917         the first 8 lines" line is on line 9, and hence not getting
16918         automatically updated.
16919         * build-aux/useless-if-before-free: Fix the former by adding a
16920         backslash, and the latter by condensing the three lines of what-it-does
16921         to a single line, leaving one line of slack for the future.
16922
16923 2011-01-09  Bruno Haible  <bruno@clisp.org>
16924
16925         uniwidth/width: Fix width of U+1D173..U+1D17A.
16926         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
16927         symbolic_width, output_width_property_test): New functions.
16928         (main): Invoke output_nonspacing_property, output_width_property_test.
16929         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
16930         U+1D173..U+1D17A.
16931         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
16932         1.
16933         * modules/uniwidth/*: Bump version number of expected libunistring
16934         version.
16935         * modules/unilbrk/*: Likewise.
16936
16937 2011-01-08  Bruno Haible  <bruno@clisp.org>
16938
16939         uninorm tests: Preserve copyright of Unicode data file.
16940         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
16941         Mention modifications.
16942
16943 2011-01-08  Bruno Haible  <bruno@clisp.org>
16944
16945         gen-uni-tables: Prepare for Unicode 5.2.0.
16946         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
16947         (debug_output_lbp, output_lbp): Update.
16948
16949 2011-01-08  Bruno Haible  <bruno@clisp.org>
16950
16951         unilbrk: Clarify gen-uni-tables.c code.
16952         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
16953         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
16954         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
16955
16956 2011-01-07  Bruno Haible  <bruno@clisp.org>
16957
16958         strtod: Restore errno when successfully parsing Infinity or NaN.
16959         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
16960         restore the original errno.
16961
16962 2011-01-07  Bruno Haible  <bruno@clisp.org>
16963
16964         remove test: Avoid failure on HP-UX 11.
16965         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
16966
16967 2011-01-07  Bruno Haible  <bruno@clisp.org>
16968
16969         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
16970         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
16971         error code.
16972
16973 2011-01-07  Pádraig Brady <P@draigBrady.com>
16974
16975         ignore-value: fixup comments, and add Eric Blake
16976         as an author since he rewrote the macros.
16977         * lib/ignore-value.h (ignore_value):  State that
16978         we now support aggregates.  Also specify exactly
16979         when the GCC warn_unused_result feature was added.
16980
16981 2011-01-06  Eric Blake  <eblake@redhat.com>
16982
16983         ignore-value: support aggregate types
16984         * lib/ignore-value.h (ignore_value): Provide separate gcc
16985         definition.
16986         * modules/ignore-value-tests: New test module.
16987         * tests/test-ignore-value.c: New test.
16988
16989         maint.mk: improve sc_prohibit_strcmp regex
16990         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
16991         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
16992         definition of STRNEQ.
16993
16994         signal: work around Haiku issue with SIGBUS
16995         * lib/siglist.h: Add comment.
16996         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
16997         strsignal's favoring of SIGSEGV.
16998         * tests/test-signal.c (main): Avoid test failure.
16999         * doc/posix-headers/signal.texi (signal.h): Document the issue.
17000         Reported by Scott McCreary.
17001
17002         maint.mk: add pre-release check to ensure submodule commits are public
17003         * top/maint.mk (public-submodule-commit): New rule.
17004         (submodule-checks): New variable.
17005         (alpha beta stable): Depend on the variable.
17006
17007 2011-01-05  Pádraig Brady <P@draigBrady.com>
17008         and Jim Meyering  <meyering@redhat.com>
17009
17010         ignore-value: make ignore_value more generic; deprecate ignore_ptr
17011         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
17012         (ATTRIBUTE_DEPRECATED): Define.
17013         (_ignore_case): New function.
17014         (ignore_value): New macro, to replace the old function.
17015         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
17016         * modules/ignore-value (Depends-on): Add stdint.
17017
17018 2011-01-04  Eric Blake  <eblake@redhat.com>
17019
17020         doc: regenerate INSTALL
17021         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
17022         @firstparagraphindent support, now that autoconf dropped it.
17023         (INSTALL_PRELUDE): Reinstate old macro.
17024         * doc/install.texi: Resync from autoconf.
17025         * doc/INSTALL: Reflect recent autoconf update.
17026         * doc/INSTALL.ISO: Likewise.
17027         * doc/INSTALL.UTF-8: Likewise.
17028         Reported by Karl Berry.
17029
17030 2011-01-04  Bruce Korb  <address@hidden>
17031
17032         git-version-gen: avoid a sub-shell
17033         * build-aux/git-version-gen: Redirect stderr in `...` via
17034         "exec 2>...", rather than via an added sub-shell.
17035
17036 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
17037
17038         git-version-gen: use (...) rather than sh -c '...'
17039         * build-aux/git-version-gen: Rather than hard-coding a shell's name
17040         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
17041
17042 2011-01-03  Jim Meyering  <meyering@redhat.com>
17043
17044         git-version-gen: convert leading TABs to spaces
17045         * build-aux/git-version-gen: Expand leading TABs.
17046
17047         git-version-gen: handle failed "git rev-list"
17048         * build-aux/git-version-gen: Rather than leaking a "fatal" error
17049         from git and proceeding as if it had succeeded but printed no SHA1
17050         checksums, suppress the diagnostic and handle the failure.
17051         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
17052
17053         git-version-gen: include command name in one more diagnostic
17054         * build-aux/git-version-gen: When the required .tarball-version file
17055         was missing or unreadable, you might see the diagnostic from "cat",
17056         but no trace of the name of the invoking script.  Now, you still see
17057         the diagnostic from cat, but also get one from "git-version-gen: ".
17058         Inspired by a patch from Bruce Korb.
17059
17060         update-copyright: adjust test to match changed code
17061         * tests/test-update-copyright.sh: Change test's expected output
17062         to match new actual output.
17063
17064 2011-01-02  Bruno Haible  <bruno@clisp.org>
17065
17066         getlogin_r: Avoid test failure on HP-UX 11.
17067         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
17068         ERANGE when the second argument is zero.
17069         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
17070         portability problem.
17071
17072 2011-01-02  Bruce Korb  <bkorb@gnu.org>
17073
17074         * build-aux/update-copyright: doc Simon's changes
17075
17076 2011-01-02  Simon Josefsson  <simon@josefsson.org>
17077
17078         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
17079         environment variable.
17080
17081 2011-01-02  Bruno Haible  <bruno@clisp.org>
17082
17083         unigbrk: Avoid gcc warnings.
17084         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
17085         unused variable.
17086         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
17087         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
17088         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
17089         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
17090         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
17091         Change type of first argument to 'const char *'.
17092         (main): Remove unused variable.
17093         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
17094         type of first argument to 'const char *'.
17095         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
17096         Likewise.
17097         (main): Change type of variable 's'.
17098         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
17099         to 'int'.
17100
17101 2011-01-02  Bruno Haible  <bruno@clisp.org>
17102
17103         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
17104         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
17105         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
17106         bug.
17107         * lib/pwrite.c: Undo 2010-12-31 patch.
17108         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
17109
17110 2011-01-02  Bruno Haible  <bruno@clisp.org>
17111
17112         pread: Fix test whether it works.
17113         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
17114
17115 2011-01-02  Bruno Haible  <bruno@clisp.org>
17116
17117         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
17118         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
17119         ends in "6". Don't require a specific month name. Try also the locale
17120         names found on HP-UX 11 and Solaris 7.
17121
17122 2011-01-02  Bruno Haible  <bruno@clisp.org>
17123
17124         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
17125         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
17126         C linkage.
17127         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
17128
17129 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17130
17131         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
17132         for consistency, since the "cluster" term is not used elsewhere.
17133         * lib/unigbrk.in.h: Update name.
17134         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
17135         * lib/unigbrk/u16-grapheme-next.c: Update name.
17136         * lib/unigbrk/u16-grapheme-prev.c: Update name.
17137         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
17138         * lib/unigbrk/u32-grapheme-next.c: Update name.
17139         * lib/unigbrk/u32-grapheme-prev.c: Update name.
17140         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
17141         * lib/unigbrk/u8-grapheme-next.c: Update name.
17142         * lib/unigbrk/u8-grapheme-prev.c: Update name.
17143         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
17144         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
17145         Suggested by Bruno Haible.
17146
17147 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17148
17149         Remove module 'u8-grapheme-len' as too redundant with
17150         'u8-grapheme-next'.
17151         * modules/unigbrk/u8-grapheme-len: Delete file.
17152         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
17153         * lib/unigbrk.in.h: Remove prototype for deleted function.
17154         * lib/unigbrk/u8-grapheme-len.c: Delete file.
17155         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
17156
17157         Remove module 'u16-grapheme-len' as too redundant with
17158         'u16-grapheme-next'.
17159         * modules/unigbrk/u16-grapheme-len: Delete file.
17160         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
17161         * lib/unigbrk.in.h: Remove prototype for deleted function.
17162         * lib/unigbrk/u16-grapheme-len.c: Delete file.
17163         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
17164
17165         Remove module 'u32-grapheme-len' as too redundant with
17166         'u32-grapheme-next'.
17167         * modules/unigbrk/u32-grapheme-len: Delete file.
17168         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
17169         * lib/unigbrk.in.h: Remove prototype for deleted function.
17170         * lib/unigbrk/u32-grapheme-len.c: Delete file.
17171         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
17172
17173         Suggested by Bruno Haible.
17174
17175 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17176
17177         * unigbrk.in.h: Fix typo: "ben" => "been".
17178         Reported by Bruno Haible.
17179
17180 2011-01-01  Jim Meyering  <meyering@redhat.com>
17181
17182         maint: update almost all copyright ranges to include 2011
17183         Run the new "make update-copyright" rule.
17184
17185 2011-01-01  Jim Meyering  <meyering@redhat.com>
17186
17187         maint: update-copyright: exempt doc/INSTALL*
17188         * Makefile (update-copyright): Also exclude doc/INSTALL*,
17189         since they are generated.  Suggested by Bruno Haible.
17190
17191 2011-01-01  Jim Meyering  <meyering@redhat.com>
17192
17193         maint: refine the update-copyright rule
17194         * Makefile (update-copyright): Also exclude any file that includes
17195         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
17196         code that merely generates the comment.
17197
17198 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
17199
17200         New module 'u8-grapheme-len'.
17201         * modules/unigbrk/u8-grapheme-len: New file.
17202         * modules/unigbrk/u8-grapheme-len-tests: New file.
17203         * lib/unigbrk.in.h: Add prototype for new function.
17204         * lib/unigbrk/u8-grapheme-len.c: New file.
17205         * tests/unigbrk/test-u8-grapheme-len.c: New file.
17206
17207         New module 'u16-grapheme-len'.
17208         * modules/unigbrk/u16-grapheme-len: New file.
17209         * modules/unigbrk/u16-grapheme-len-tests: New file.
17210         * lib/unigbrk.in.h: Add prototype for new function.
17211         * lib/unigbrk/u16-grapheme-len.c: New file.
17212         * tests/unigbrk/test-u16-grapheme-len.c: New file.
17213
17214         New module 'u32-grapheme-len'.
17215         * modules/unigbrk/u32-grapheme-len: New file.
17216         * modules/unigbrk/u32-grapheme-len-tests: New file.
17217         * lib/unigbrk.in.h: Add prototype for new function.
17218         * lib/unigbrk/u32-grapheme-len.c: New file.
17219         * tests/unigbrk/test-u32-grapheme-len.c: New file.
17220
17221         New module 'u8-grapheme-next'.
17222         * modules/unigbrk/u8-grapheme-next: New file.
17223         * modules/unigbrk/u8-grapheme-next-tests: New file.
17224         * lib/unigbrk.in.h: Add prototype for new function.
17225         * lib/unigbrk/u8-grapheme-next.c: New file.
17226         * tests/unigbrk/test-u8-grapheme-next.c: New file.
17227
17228         New module 'u16-grapheme-next'.
17229         * modules/unigbrk/u16-grapheme-next: New file.
17230         * modules/unigbrk/u16-grapheme-next-tests: New file.
17231         * lib/unigbrk.in.h: Add prototype for new function.
17232         * lib/unigbrk/u16-grapheme-next.c: New file.
17233         * tests/unigbrk/test-u16-grapheme-next.c: New file.
17234
17235         New module 'u32-grapheme-next'.
17236         * modules/unigbrk/u32-grapheme-next: New file.
17237         * modules/unigbrk/u32-grapheme-next-tests: New file.
17238         * lib/unigbrk.in.h: Add prototype for new function.
17239         * lib/unigbrk/u32-grapheme-next.c: New file.
17240         * tests/unigbrk/test-u32-grapheme-next.c: New file.
17241
17242         New module 'u8-grapheme-prev'.
17243         * modules/unigbrk/u8-grapheme-prev: New file.
17244         * modules/unigbrk/u8-grapheme-prev-tests: New file.
17245         * lib/unigbrk.in.h: Add prototype for new function.
17246         * lib/unigbrk/u8-grapheme-prev.c: New file.
17247         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
17248
17249         New module 'u16-grapheme-prev'.
17250         * modules/unigbrk/u16-grapheme-prev: New file.
17251         * modules/unigbrk/u16-grapheme-prev-tests: New file.
17252         * lib/unigbrk.in.h: Add prototype for new function.
17253         * lib/unigbrk/u16-grapheme-prev.c: New file.
17254         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
17255
17256         New module 'u32-grapheme-prev'.
17257         * modules/unigbrk/u32-grapheme-prev: New file.
17258         * modules/unigbrk/u32-grapheme-prev-tests: New file.
17259         * lib/unigbrk.in.h: Add prototype for new function.
17260         * lib/unigbrk/u32-grapheme-prev.c: New file.
17261         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
17262
17263         New module 'u8-grapheme-breaks'.
17264         * modules/unigbrk/u8-grapheme-breaks: New file.
17265         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
17266         * lib/unigbrk.in.h: Add prototype for new function.
17267         * lib/unigbrk/u8-grapheme-breaks.c: New file.
17268         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
17269
17270         New module 'u16-grapheme-breaks'.
17271         * modules/unigbrk/u16-grapheme-breaks: New file.
17272         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
17273         * lib/unigbrk.in.h: Add prototype for new function.
17274         * lib/unigbrk/u16-grapheme-breaks.c: New file.
17275         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
17276
17277         New module 'u32-grapheme-breaks'.
17278         * modules/unigbrk/u32-grapheme-breaks: New file.
17279         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
17280         * lib/unigbrk.in.h: Add prototype for new function.
17281         * lib/unigbrk/u32-grapheme-breaks.c: New file.
17282         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
17283
17284         New module 'ulc-grapheme-breaks'.
17285         * modules/unigbrk/ulc-grapheme-breaks: New file.
17286         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
17287         * m4/locale-ar.m4: New file.
17288         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
17289         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
17290         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
17291
17292 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
17293
17294         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
17295         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
17296         modified how this file was generated before I initially submitted
17297         the module, but failed to regenerate it.  This meant that several
17298         of the level2 entries were wrong.
17299         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
17300         Remove the division-by-2 that is folded into the table now that
17301         gbrkprop.h has been regenerated properly.  Now -1 entries are
17302         handled correctly.
17303
17304         New module 'unigbrk/uc-gbrk-prop-tests'.
17305         * modules/unigbrk/uc-gbrk-prop-tests: New file.
17306         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
17307         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
17308         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
17309
17310 2011-01-01  Bruno Haible  <bruno@clisp.org>
17311
17312         Avoid use of hexadecimal escapes.
17313         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
17314         instead of hexadecimal escapes.
17315
17316 2011-01-01  Jim Meyering  <meyering@redhat.com>
17317
17318         maint: new rule to update copyright year ranges
17319         * Makefile (update-copyright): New rule.
17320
17321         maint: indent with TABs in Makefile
17322         * Makefile: Expand leading sequences of spaces to TABs
17323
17324         version-etc: update the copyright year it reports
17325         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
17326
17327 2010-12-31  Bruno Haible  <bruno@clisp.org>
17328
17329         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
17330         * lib/isfinite.c (zerof, zerod, zerol): New variables.
17331         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
17332         zero.
17333
17334 2010-12-31  Bruno Haible  <bruno@clisp.org>
17335
17336         pwrite: Work around HP-UX 11.11 bug.
17337         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
17338         works and set REPLACE_PWRITE if not.
17339         * lib/pwrite.c (pwrite): Add an implementation that uses the system
17340         function.
17341         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
17342
17343 2010-12-31  Bruno Haible  <bruno@clisp.org>
17344
17345         pread: Work around HP-UX 11 bugs.
17346         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
17347         and set REPLACE_PREAD if not.
17348         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
17349
17350 2010-12-31  Eric Blake  <eblake@redhat.com>
17351
17352         nl_langinfo: fix YESEXPR on Irix 6.5
17353         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
17354         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
17355         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
17356         it.
17357
17358 2010-12-31  Bruno Haible  <bruno@clisp.org>
17359
17360         iconv: Document HP-UX 11 bug.
17361         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
17362
17363 2010-12-31  Bruno Haible  <bruno@clisp.org>
17364
17365         ldexpl: Fix link error on HP-UX 11.
17366         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
17367         LDEXPL_LIBM, using $ISNANL_LIBM.
17368
17369 2010-12-31  Eric Blake  <eblake@redhat.com>
17370
17371         ftello: avoid compilation failure with SunStudio c89
17372         * lib/ftello.c (ftello): Use lseek, not llseek.
17373
17374         tests: avoid failing coreutils tests on cygwin
17375         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
17376         (create_exe_shims_): Return 0 when skipping.
17377
17378 2010-12-31  Bruno Haible  <bruno@clisp.org>
17379
17380         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
17381         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
17382
17383 2010-12-31  Bruno Haible  <bruno@clisp.org>
17384
17385         waitpid: Fix link error in C++ mode.
17386         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
17387
17388 2010-12-31  Bruno Haible  <bruno@clisp.org>
17389
17390         isnan: Use GCC built-ins when possible.
17391         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
17392         __builtin_isnan.
17393         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
17394         (isnan): Define using GCC built-ins for GCC >= 4.0.
17395
17396 2010-12-31  Bruno Haible  <bruno@clisp.org>
17397
17398         isnand: Fix mistake.
17399         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
17400         __builtin_isnand.
17401
17402 2010-12-31  Bruno Haible  <bruno@clisp.org>
17403
17404         open: Avoid C++ error on HP-UX 11.
17405         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
17406
17407 2010-12-31  Bruno Haible  <bruno@clisp.org>
17408
17409         time_r: Add missing declarations on HP-UX 11.
17410         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
17411         instead of HAVE_LOCALTIME_R.
17412         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
17413         HAVE_LOCALTIME_R always.
17414         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
17415         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
17416         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
17417         HAVE_LOCALTIME_R.
17418         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
17419         * doc/posix-functions/localtime_r.texi: Likewise.
17420
17421 2010-12-29  Eric Blake  <eblake@redhat.com>
17422
17423         mountlist: tweak previous commit
17424         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
17425         Reported by Paul Eggert.
17426
17427         mountlist: fix local drive detection on cygwin
17428         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
17429         that works for cygwin.
17430
17431 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
17432
17433         ftoastr, snprintf: ftoastr + snprintf module
17434         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
17435         since the snprintf module now should be good enough here.
17436         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
17437         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
17438         and gl_MODULE_INDICATOR([snprintf]), but the former enables
17439         GNULIB_SNPRINTF only for the test directory, and the latter
17440         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
17441         seems to suffice by itself.
17442
17443 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
17444
17445         alloca: one step towards thread-safety
17446         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
17447         need for a static variable.  All callers changed.  This does not
17448         make the alloca replacement thread-safe, but it's one step.
17449
17450         tests: minor indenting change
17451         * tests/init.sh: Sync from coreutils housekeeping patch
17452         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
17453         to keep lines within 80 columns.
17454
17455 2010-12-28  Jim Meyering  <meyering@redhat.com>
17456
17457         regex: don't infloop on persistent failing calloc
17458         * lib/regexec.c (build_trtable): Return failure indication upon
17459         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
17460         In glibc, this was fixed for version 2.13:
17461         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
17462
17463 2010-12-28  Bruno Haible  <bruno@clisp.org>
17464             Paul Eggert <eggert@cs.ucla.edu>
17465
17466         linkat: Make implementation robust against system behaviour variations.
17467         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
17468         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
17469         way, and to -2 if it needs a generic runtime test.
17470         * lib/linkat.c (solaris_optimized_link_immediate,
17471         solaris_optimized_link_follow): New functions.
17472         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
17473         (check_same_link): Use it.
17474
17475 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
17476
17477         New module 'unigbrk/base'.
17478         * modules/unigbrk/base: New file.
17479         * lib/unigbrk.in.h: New file.
17480
17481         New module 'unigbrk/uc-gbrk-prop'.
17482         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
17483         * modules/unigbrk/uc-gbrk-prop: New file.
17484         * lib/unigbrk/gbrkprop.h: New file.
17485         * lib/unigbrk/uc-gbrk-prop.c: New file.
17486
17487         New module 'unigbrk/uc-is-grapheme-break'.
17488         * modules/unigbrk/uc-is-grapheme-break: New file.
17489         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
17490         * lib/unigbrk/uc-is-grapheme-break.c: New file.
17491         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
17492         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
17493         * tests/unigbrk/GraphemeBreakTest.txt: New file.
17494
17495         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
17496
17497 2010-12-27  Bruno Haible  <bruno@clisp.org>
17498
17499         linkat test: Avoid failure on Solaris 11 2010-11.
17500         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
17501
17502 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17503
17504         utimens: work around glibc rounding bug on more platforms
17505         * lib/utimens.c (fdutimens): Work around rounding bug even if
17506         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
17507         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
17508
17509 2010-12-27  Bruno Haible  <bruno@clisp.org>
17510
17511         select tests: Improve comments.
17512         * tests/test-select.c (do_select): Add comments.
17513
17514 2010-12-27  Bruno Haible  <bruno@clisp.org>
17515
17516         select tests: Safer way of handling timeout.
17517         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
17518         at every invocation.
17519
17520 2010-12-27  Bruno Haible  <bruno@clisp.org>
17521
17522         select tests: Use 'bool' where appropriate.
17523         * tests/test-select.c (connect_to_socket): Change argument type to
17524         'bool'.
17525
17526 2010-12-27  Bruno Haible  <bruno@clisp.org>
17527
17528         select tests: Use existing modules.
17529         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
17530         (configure.ac): Don't test for unistd.h.
17531         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
17532         declared in <unistd.h>.
17533
17534 2010-12-27  Bruno Haible  <bruno@clisp.org>
17535
17536         mbrtowc: Work around a Solaris 7 bug.
17537         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
17538         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
17539         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
17540         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
17541         MBRTOWC_NULL_ARG1_BUG.
17542         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
17543         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
17544         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
17545         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
17546
17547 2010-12-27  Jim Meyering  <meyering@redhat.com>
17548
17549         read-file.c: tweak syntax
17550         * lib/read-file.c (fread_file): Remove space after "*" in function
17551         definitions.
17552
17553 2010-12-27  Bruno Haible  <bruno@clisp.org>
17554
17555         times test: Avoid gcc warnings on OSF/1.
17556         * tests/test-times.c (main): Cast printf arguments from clock_t to
17557         'long int'.
17558
17559 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17560
17561         utimens: work around glibc rounding bug on older Linux kernels
17562         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
17563         on Linux with a glibc whose utimes might not work, then work
17564         around a longstanding glibc bug involving rounding rather than
17565         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
17566         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
17567
17568 2010-12-26  Bruno Haible  <bruno@clisp.org>
17569
17570         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
17571         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
17572         _GL_CXXALIAS_SYS.
17573         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17574
17575 2010-12-26  Bruno Haible  <bruno@clisp.org>
17576
17577         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
17578         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
17579         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
17580         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
17581         looking for the declaration.
17582         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
17583         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
17584         problem.
17585         * doc/posix-functions/inet_pton.texi: Likewise.
17586
17587 2010-12-26  Bruno Haible  <bruno@clisp.org>
17588
17589         arpa_inet: Use the common idioms with C++ support.
17590         * lib/arpa_inet.in.h: Include c++defs.h.
17591         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
17592         support.
17593         * modules/arpa_inet (Depends-on): Add c++defs.
17594         (Makefile.am): Substitute the contents of c++defs.h.
17595         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
17596         * modules/arpa_inet-c++-tests: New file.
17597         * tests/test-arpa_inet-c++.cc: New file.
17598
17599 2010-12-25  Bruno Haible  <bruno@clisp.org>
17600
17601         Fix more C++ link errors on Solaris 8.
17602         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
17603         $(LIB_EACCESS).
17604         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
17605         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
17606         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
17607         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
17608         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
17609
17610 2010-12-25  Bruno Haible  <bruno@clisp.org>
17611
17612         printf-posix: Fix link error when a non-GCC compiler is used.
17613         * lib/stdio.in.h (printf): When not using GCC, override printf
17614         correctly.
17615         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17616
17617 2010-12-25  Bruno Haible  <bruno@clisp.org>
17618
17619         strerror_r-posix: Update doc.
17620         * doc/posix-functions/strerror_r.texi: Update doc about the return
17621         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
17622
17623 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
17624
17625         utimens: simplify the logic of the previous change
17626         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
17627         This should not affect whether the test succeeds or fails.
17628
17629         utimens: configure better on hosts with NFS clock skew
17630         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
17631         uses the clock of the local host.  It might use the clock of the
17632         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
17633         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
17634
17635 2010-12-25  Bruno Haible  <bruno@clisp.org>
17636
17637         ptsname test: Avoid failure on Solaris.
17638         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
17639         open a pseudo-terminal; don't use BSD-style ptys.
17640         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
17641
17642 2010-12-25  Bruno Haible  <bruno@clisp.org>
17643
17644         ptsname: Avoid ERANGE failure on some systems.
17645         * lib/ptsname.c (buffer): Increase size.
17646
17647 2010-12-25  Bruno Haible  <bruno@clisp.org>
17648
17649         rename, renameat: Avoid test failures at NFS mounted locations.
17650         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
17651         so that subsequent mkdir calls succeed.
17652
17653 2010-12-25  Bruno Haible  <bruno@clisp.org>
17654
17655         iswblank: Fix C++ link error on Solaris 8.
17656         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
17657         _GL_FUNCDECL_SYS.
17658
17659 2010-12-25  Bruno Haible  <bruno@clisp.org>
17660
17661         unistd: Fix C++ link error on Solaris 8.
17662         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
17663
17664 2010-12-25  Bruno Haible  <bruno@clisp.org>
17665
17666         readlink doc: Mention an old glibc bug.
17667         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
17668
17669 2010-12-25  Bruno Haible  <bruno@clisp.org>
17670
17671         fcntl-h: Fix for use of C++ on glibc systems.
17672         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
17673         also on glibc systems in C++ mode.
17674         Reported by Gary V. Vaughan <gary@gnu.org>.
17675
17676 2010-12-25  Bruno Haible  <bruno@clisp.org>
17677
17678         roundl-ieee: Make it work on OSF/1 5.1 with cc.
17679         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
17680
17681 2010-12-25  Bruno Haible  <bruno@clisp.org>
17682
17683         truncl-ieee: Make it work on OSF/1 5.1 with cc.
17684         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
17685         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
17686         test whether truncl works according to ISO C 99 with IEC 60559.
17687         * m4/truncl-ieee.m4: New file.
17688         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
17689         m4/signbit.m4.
17690         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
17691
17692 2010-12-25  Bruno Haible  <bruno@clisp.org>
17693
17694         ceill-ieee: Make it work on OSF/1 5.1 with cc.
17695         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
17696         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
17697         test whether ceill works according to ISO C 99 with IEC 60559.
17698         * m4/ceill-ieee.m4: New file.
17699         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
17700         m4/signbit.m4.
17701         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
17702
17703 2010-12-25  Bruno Haible  <bruno@clisp.org>
17704
17705         Ensure all prerequisites of <wchar.h> are included.
17706         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
17707         before <wchar.h>.
17708         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
17709         gl_MBRLEN_NUL_RETVAL): Likewise.
17710         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17711         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
17712         AC_FUNC_MBRTOWC): Likewise.
17713         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17714         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
17715         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17716         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
17717         Likewise.
17718         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17719         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
17720         (gl_WCHAR_H): Improve comments.
17721         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
17722
17723 2010-12-25  Bruno Haible  <bruno@clisp.org>
17724
17725         strtok_r: Fix C syntax error in autoconf macro.
17726         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
17727         characters in test program.
17728
17729 2010-12-24  Bruno Haible  <bruno@clisp.org>
17730
17731         ceil, trunc, round: Fix gcc warnings.
17732         * lib/ceil.c (MIN): Undefine before redefining.
17733         * lib/trunc.c (MIN): Likewise.
17734         * lib/round.c (MIN): Likewise.
17735         Include <math.h> first.
17736
17737 2010-12-24  Bruno Haible  <bruno@clisp.org>
17738
17739         select tests: Avoid failures on OSF/1 5.1.
17740         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
17741         failure of closing the last socket; it may fail with ECONNRESET.
17742
17743 2010-12-24  Eric Blake  <eblake@redhat.com>
17744
17745         stdint: avoid HP-UX 10.20 preprocessor bug
17746         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
17747         than #if.
17748         * tests/test-floor2.c (main): Likewise.
17749         Reported by Peter O'Gorman.
17750
17751         pipe: make obsoletion transition easier
17752         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
17753         * modules/pipe (Files): Include revived file.
17754         (Include): Drop reference, to mirror getdate's behavior.
17755
17756 2010-12-24  Bruno Haible  <bruno@clisp.org>
17757
17758         sys_socket: Hide mismatch of declarations on NonStop Kernel.
17759         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
17760         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
17761         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17762
17763 2010-12-24  Bruno Haible  <bruno@clisp.org>
17764
17765         gethostname: Ensure declaration on NonStop Kernel.
17766         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
17767         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17768
17769 2010-12-24  Bruno Haible  <bruno@clisp.org>
17770
17771         sys_select: Ensure all necessary types on NonStop Kernel.
17772         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
17773         include <sys/time.h>.
17774         * doc/posix-headers/sys_select.texi: Mention that it's missing on
17775         NonStop Kernel.
17776         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17777
17778 2010-12-24  Bruno Haible  <bruno@clisp.org>
17779
17780         sys_select: Remove unneeded include.
17781         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
17782         have <sys/select.h>.
17783
17784 2010-12-24  Bruno Haible  <bruno@clisp.org>
17785
17786         gethostname: Provide a fallback for HOST_NAME_MAX.
17787         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
17788         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
17789         instead.
17790         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17791
17792 2010-12-24  Bruno Haible  <bruno@clisp.org>
17793
17794         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
17795         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
17796         (SA_RESTART): Likewise.
17797         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17798
17799 2010-12-24  Bruno Haible  <bruno@clisp.org>
17800
17801         signal: Define NSIG.
17802         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
17803         * tests/test-signal.c (nsig): New variable.
17804         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17805
17806 2010-12-24  Bruno Haible  <bruno@clisp.org>
17807
17808         rename, renameat: Avoid test failures on OSF/1 5.1.
17809         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
17810         alternative error codes.
17811         * tests/test-renameat.c (main): Likewise.
17812
17813 2010-12-24  Bruno Haible  <bruno@clisp.org>
17814
17815         *printf: Detect large precisions bug on Solaris 10/SPARC.
17816         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
17817         by Paul Eggert.
17818         * tests/test-snprintf-posix.h (test_function): Add this test code here
17819         too.
17820         * tests/test-sprintf-posix.h (test_function): Likewise.
17821         * tests/test-vasnprintf-posix.c (test_function): Likewise.
17822         * tests/test-vasprintf-posix.c (test_function): Likewise.
17823         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
17824         around by gnulib.
17825         * doc/posix-functions/printf.texi: Likewise.
17826         * doc/posix-functions/snprintf.texi: Likewise.
17827         * doc/posix-functions/sprintf.texi: Likewise.
17828         * doc/posix-functions/vfprintf.texi: Likewise.
17829         * doc/posix-functions/vprintf.texi: Likewise.
17830         * doc/posix-functions/vsnprintf.texi: Likewise.
17831         * doc/posix-functions/vsprintf.texi: Likewise.
17832         * doc/posix-functions/dprintf.texi: Undo last commit.
17833         * doc/posix-functions/vdprintf.texi: Likewise.
17834
17835 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
17836
17837         tests: port test-fdutimensat.c to Solaris 8
17838         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
17839         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
17840         On Solaris 8, it fails with errno == ENOSYS, because there is no
17841         futimens (so it can't use the fd), and there is no lutimens (so it
17842         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
17843
17844         vsnprintf: make more consistent with snprintf; doc fixes
17845
17846         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
17847         the byte count return problem was promoted from the snprintf-posix
17848         to the snprintf module.
17849         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17850         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
17851         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
17852         * tests/test-snprintf.c (main): Check the byte count returned.
17853         * tests/test-vsnprintf.c (main): Likewise.
17854
17855 2010-12-23  Eric Blake  <eblake@redhat.com>
17856
17857         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
17858         * modules/sigpipe (License): Relax license.
17859
17860 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17861
17862         doc: document Solaris printf bug with large float precisions
17863         * doc/posix-functions/dprintf.texi (dprintf):
17864         * doc/posix-functions/fprintf.texi (fprintf):
17865         * doc/posix-functions/printf.texi (printf):
17866         * doc/posix-functions/snprintf.texi (snprintf):
17867         * doc/posix-functions/sprintf.texi (sprintf):
17868         * doc/posix-functions/vdprintf.texi (vdprintf):
17869         * doc/posix-functions/vfprintf.texi (vfprintf):
17870         * doc/posix-functions/vprintf.texi (vprintf):
17871         * doc/posix-functions/vsnprintf.texi (vsnprintf):
17872         * doc/posix-functions/vsprintf.texi (vsprintf):
17873         Mention that these functions mishandle large floating point
17874         precisions on Solaris 10.  The same bug is also present in Solaris
17875         8, and I assume earlier.  This causes "cd gnulib-tests; make
17876         check" to fail on Solaris 8 (and I assume, later) when building
17877         the latest coreutils, in test-vasprintf-posix's call to
17878         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
17879         the wide flavors (e.g., wprintf) so this patch just updates the
17880         documentation for the narrow ones.
17881
17882         test-posixtm.c: add two tests
17883         * tests/test-posixtm.c: Add two tests, to highlight the
17884         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
17885         around this bug; this is merely to document it.
17886
17887 2010-12-22  Bruno Haible  <bruno@clisp.org>
17888
17889         getlogin_r: Work around portability problem on OSF/1.
17890         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
17891         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
17892         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
17893         test for a truncated result.
17894         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
17895         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
17896         * modules/getlogin_r (Depends-on): Add memchr.
17897         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
17898
17899 2010-12-22  Bruno Haible  <bruno@clisp.org>
17900
17901         ptsname: Avoid test failure on OSF/1 5.1.
17902         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
17903         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
17904         (same_slave): New function.
17905         (main): Use it to compare ptsname's result with the expected file name.
17906
17907 2010-12-22  Bruno Haible  <bruno@clisp.org>
17908
17909         Port extended stdio modules to HP NonStop Kernel.
17910         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
17911         macros.
17912         * lib/fbufmode.c: Update comments.
17913         * lib/fflush.c: Likewise.
17914         * lib/fpurge.c: Likewise.
17915         * lib/freadable.c: Likewise.
17916         * lib/freadahead.c: Likewise.
17917         * lib/freading.c: Likewise.
17918         * lib/freadptr.c: Likewise.
17919         * lib/freadseek.c: Likewise.
17920         * lib/fseeko.c: Likewise.
17921         * lib/fseterr.c: Likewise.
17922         * lib/fwritable.c: Likewise.
17923         * lib/fwriting.c: Likewise.
17924         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17925
17926 2010-12-22  Bruno Haible  <bruno@clisp.org>
17927
17928         ttyname_r: Work around bug on OSF/1 5.1.
17929         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
17930         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
17931         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
17932         present.
17933         * lib/ttyname_r.c (ttyname_r): Update comments.
17934
17935 2010-12-22  Bruno Haible  <bruno@clisp.org>
17936
17937         round: Implement result sign according to IEEE 754.
17938         * lib/round.c (MIN, MINUS_ZERO): New macros.
17939         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
17940         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
17941         * tests/test-round-ieee.c (main): Likewise.
17942         * tests/test-roundl-ieee.c (main): Likewise.
17943
17944         trunc: Implement result sign according to IEEE 754.
17945         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
17946         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
17947         * tests/test-trunc2.c: Include minus-zero.h.
17948         (MINUS_ZERO): New macro.
17949         (trunc_reference): Keep in sync with lib/trunc.c.
17950         * tests/test-truncf2.c: Include minus-zero.h.
17951         (MINUS_ZERO): New macro.
17952         (truncf_reference): Keep in sync with lib/trunc.c.
17953         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
17954         * tests/test-trunc-ieee.c (main): Likewise.
17955         * tests/test-truncl-ieee.c (main): Likewise.
17956
17957         ceil: Implement result sign according to IEEE 754.
17958         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
17959         (FUNC): Return -0.0 for -1 < x < 0.
17960         * tests/test-ceil2.c: Include minus-zero.h.
17961         (MINUS_ZERO): New macro.
17962         (ceil_reference): Keep in sync with lib/ceil.c.
17963         * tests/test-ceilf2.c: Include minus-zero.h.
17964         (MINUS_ZERO): New macro.
17965         (ceilf_reference): Keep in sync with lib/ceil.c.
17966         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
17967         * tests/test-ceil-ieee.c (main): Likewise.
17968         * tests/test-ceill-ieee.c (main): Likewise.
17969
17970         floor: Implement result sign according to IEEE 754.
17971         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
17972         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
17973         * tests/test-floorf2.c (floorf_reference): Likewise.
17974         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
17975         * tests/test-floor-ieee.c (main): Likewise.
17976         * tests/test-floorl-ieee.c (main): Likewise.
17977
17978 2010-12-22  Bruno Haible  <bruno@clisp.org>
17979
17980         getaddrinfo: Update doc.
17981         * doc/posix-functions/gai_strerror.texi: Return type is also different
17982         on AIX and HP-UX.
17983
17984 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17985
17986         getaddrinfo, inet_ntop: Update doc for Solaris.
17987         * doc/posix-functions/gai_strerror.texi: Return type is also an
17988         issue on Solaris 9 and earlier.
17989         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
17990         on Solaris 10 and earlier.
17991
17992 2010-12-21  Bruno Haible  <bruno@clisp.org>
17993
17994         New module 'roundl-ieee'.
17995         * modules/roundl-ieee: New file.
17996         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
17997         test whether roundl works according to ISO C 99 with IEC 60559.
17998         * m4/roundl-ieee.m4: New file.
17999         * modules/roundl-ieee-tests: New file.
18000         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
18001         * tests/test-roundl.c (main): Remove signbit tests.
18002         * modules/roundl-tests (Depends-on): Remove signbit.
18003         * doc/posix-functions/roundl.texi: Mention the new module.
18004
18005 2010-12-21  Bruno Haible  <bruno@clisp.org>
18006
18007         New module 'truncl-ieee'.
18008         * modules/truncl-ieee: New file.
18009         * modules/truncl-ieee-tests: New file.
18010         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
18011         * tests/test-truncl.c (main): Remove signbit tests.
18012         * modules/truncl-tests (Depends-on): Remove signbit.
18013         * doc/posix-functions/truncl.texi: Mention the new module.
18014
18015 2010-12-21  Bruno Haible  <bruno@clisp.org>
18016
18017         New module 'ceill-ieee'.
18018         * modules/ceill-ieee: New file.
18019         * modules/ceill-ieee-tests: New file.
18020         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
18021         * tests/test-ceill.c (main): Remove signbit tests.
18022         * modules/ceill-tests (Depends-on): Remove signbit.
18023         * doc/posix-functions/ceill.texi: Mention the new module.
18024
18025 2010-12-21  Bruno Haible  <bruno@clisp.org>
18026
18027         New module 'floorl-ieee'.
18028         * modules/floorl-ieee: New file.
18029         * modules/floorl-ieee-tests: New file.
18030         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
18031         * tests/test-floorl.c (main): Remove signbit tests.
18032         * modules/floorl-tests (Depends-on): Remove signbit.
18033         * doc/posix-functions/floorl.texi: Mention the new module.
18034
18035 2010-12-21  Bruno Haible  <bruno@clisp.org>
18036
18037         New module 'round-ieee'.
18038         * modules/round-ieee: New file.
18039         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
18040         whether round works according to ISO C 99 with IEC 60559.
18041         * m4/round-ieee.m4: New file.
18042         * modules/round-ieee-tests: New file.
18043         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
18044         * tests/test-round1.c (main): Remove signbit tests.
18045         * modules/round-tests (Depends-on): Remove 'signbit'.
18046         * doc/posix-functions/round.texi: Mention the new module.
18047
18048 2010-12-21  Bruno Haible  <bruno@clisp.org>
18049
18050         New module 'trunc-ieee'.
18051         * modules/trunc-ieee: New file.
18052         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
18053         whether trunc works according to ISO C 99 with IEC 60559.
18054         * m4/trunc-ieee.m4: New file.
18055         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
18056         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
18057         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
18058         * modules/trunc-ieee-tests: New file.
18059         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
18060         * tests/test-trunc1.c (main): Remove signbit tests.
18061         * modules/trunc-tests (Depends-on): Remove 'signbit'.
18062         * doc/posix-functions/trunc.texi: Mention the new module.
18063
18064 2010-12-21  Bruno Haible  <bruno@clisp.org>
18065
18066         New module 'ceil-ieee'.
18067         * modules/ceil-ieee: New file.
18068         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
18069         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
18070         ISO C 99 with IEC 60559.
18071         * m4/ceil-ieee.m4: New file.
18072         * modules/ceil (Files): Add lib/ceil.c.
18073         (Depends-on): Add 'float'.
18074         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18075         * lib/math.in.h (ceil): New declaration.
18076         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
18077         REPLACE_CEIL.
18078         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
18079         * modules/ceil-ieee-tests: New file.
18080         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
18081         * tests/test-math-c++.cc: Check the signature of 'ceil'.
18082         * doc/posix-functions/ceil.texi: Mention the new module.
18083
18084 2010-12-21  Bruno Haible  <bruno@clisp.org>
18085
18086         New module 'floor-ieee'.
18087         * modules/floor-ieee: New file.
18088         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
18089         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
18090         ISO C 99 with IEC 60559.
18091         * m4/floor-ieee.m4: New file.
18092         * modules/floor (Files): Add lib/floor.c.
18093         (Depends-on): Add 'float'.
18094         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18095         * lib/math.in.h (floor): New declaration.
18096         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
18097         REPLACE_FLOOR.
18098         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
18099         * modules/floor-ieee-tests: New file.
18100         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
18101         * tests/test-math-c++.cc: Check the signature of 'floor'.
18102         * doc/posix-functions/floor.texi: Mention the new module.
18103
18104 2010-12-21  Bruno Haible  <bruno@clisp.org>
18105
18106         New module 'roundf-ieee'.
18107         * modules/roundf-ieee: New file.
18108         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
18109         test whether roundf works according to ISO C 99 with IEC 60559.
18110         * m4/roundf-ieee.m4: New file.
18111         * modules/roundf-ieee-tests: New file.
18112         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
18113         * tests/test-roundf1.c (main): Remove signbit tests.
18114         * modules/roundf-tests (Depends-on): Remove 'signbit'.
18115         * doc/posix-functions/roundf.texi: Mention the new module.
18116
18117 2010-12-21  Bruno Haible  <bruno@clisp.org>
18118
18119         New module 'truncf-ieee'.
18120         * modules/truncf-ieee: New file.
18121         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
18122         test whether truncf works according to ISO C 99 with IEC 60559.
18123         * m4/truncf-ieee.m4: New file.
18124         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
18125         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
18126         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
18127         * modules/truncf-ieee-tests: New file.
18128         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
18129         * tests/test-truncf1.c (main): Remove signbit tests.
18130         * modules/truncf-tests (Depends-on): Remove 'signbit'.
18131         * doc/posix-functions/truncf.texi: Mention the new module.
18132
18133 2010-12-21  Bruno Haible  <bruno@clisp.org>
18134
18135         New module 'ceilf-ieee'.
18136         * modules/ceilf-ieee: New file.
18137         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
18138         test whether ceilf works according to ISO C 99 with IEC 60559.
18139         * m4/ceilf-ieee.m4: New file.
18140         * modules/ceilf-ieee-tests: New file.
18141         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
18142         * tests/test-ceilf1.c (main): Remove signbit tests.
18143         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
18144         * doc/posix-functions/ceilf.texi: Mention the new module.
18145
18146 2010-12-21  Bruno Haible  <bruno@clisp.org>
18147
18148         New module 'floorf-ieee'.
18149         * modules/floorf-ieee: New file.
18150         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
18151         test whether floorf works according to ISO C 99 with IEC 60559.
18152         * m4/floorf-ieee.m4: New file.
18153         * modules/floorf-ieee-tests: New file.
18154         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
18155         * tests/test-floorf1.c (main): Remove signbit tests.
18156         * modules/floorf-tests (Depends-on): Remove 'signbit'.
18157         * doc/posix-functions/floorf.texi: Mention the new module.
18158
18159 2010-12-21  Bruno Haible  <bruno@clisp.org>
18160
18161         Support for minus zero in autoconf macros.
18162         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
18163         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
18164         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
18165         * tests/minus-zero.h: Update comments.
18166
18167 2010-12-21  Bruno Haible  <bruno@clisp.org>
18168
18169         Tests for module 'ceil'.
18170         * modules/ceil-tests: New file.
18171         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
18172         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
18173
18174 2010-12-21  Bruno Haible  <bruno@clisp.org>
18175
18176         Tests for module 'floor'.
18177         * modules/floor-tests: New file.
18178         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
18179         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
18180
18181 2010-12-21  Bruno Haible  <bruno@clisp.org>
18182
18183         math: Fix indentation.
18184         * lib/math.in.h (floorf): Fix indentation.
18185
18186 2010-12-21  Bruno Haible  <bruno@clisp.org>
18187
18188         Fix cross-compilation guesses on Solaris.
18189         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
18190         not match "solaris2.10".
18191         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
18192         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
18193         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
18194
18195 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
18196
18197         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
18198         This fixes a problem observed with the latest coreutils snapshot
18199         that caused a test to fail on Solaris 8.  src/csplit.c's call
18200         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
18201         earlier, instead of returning the number of bytes that would have
18202         been generated; this causes csplit to incorrectly report memory
18203         exhaustion.
18204         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
18205         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
18206         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
18207         comments to match.
18208         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
18209         Fix typo in matching older versions of Solaris: "solaris2.10"
18210         is matched by the shell pattern "solaris2.[0-9]*".  This matters
18211         only for guessing while cross-compiling.
18212         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
18213
18214 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
18215
18216         ftoastr: fix comment again
18217         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
18218         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
18219         Also, simplify example a bit by using flags = 0.
18220
18221 2010-12-20  Bruno Haible  <bruno@clisp.org>
18222
18223         round*, trunc*: Update documentation regarding glibc.
18224         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
18225         * doc/posix-functions/round.texi: Likewise.
18226         * doc/posix-functions/roundl.texi: Likewise.
18227         * doc/posix-functions/truncf.texi: Likewise.
18228         * doc/posix-functions/trunc.texi: Likewise.
18229         * doc/posix-functions/truncl.texi: Likewise.
18230
18231 2010-12-20  Bruno Haible  <bruno@clisp.org>
18232
18233         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
18234         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
18235         * doc/posix-functions/round.texi: Likewise.
18236         * doc/posix-functions/roundl.texi: Likewise.
18237
18238 2010-12-20  Bruno Haible  <bruno@clisp.org>
18239
18240         ttyname_r: Add missing declaration on HP-UX 11.
18241         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
18242         HAVE_TTYNAME_R.
18243         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
18244         declared. Set HAVE_TTYNAME_R always.
18245         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18246         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
18247         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
18248         HAVE_TTYNAME_R.
18249         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
18250
18251 2010-12-20  Bruno Haible  <bruno@clisp.org>
18252
18253         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
18254         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
18255         * doc/posix-functions/getlogin_r.texi: Likewise.
18256         * tests/test-getlogin.c: Include <errno.h>.
18257         (main): Avoid test failure on HP-UX 11.11.
18258         * tests/test-getlogin_r.c (main): Likewise.
18259
18260 2010-12-20  Bruno Haible  <bruno@clisp.org>
18261
18262         getlogin_r: Add missing declaration on HP-UX 11.
18263         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
18264         declared also when it exists as a function.
18265         * doc/posix-functions/getlogin_r.texi: Document this workaround.
18266
18267 2010-12-20  Bruno Haible  <bruno@clisp.org>
18268
18269         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
18270         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
18271         through wcrtomb.
18272
18273 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
18274
18275         ftoastr: fix comment
18276         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
18277         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
18278
18279 2010-12-19  Bruno Haible  <bruno@clisp.org>
18280
18281         isnan: Ensure it is a macro.
18282         * lib/math.in.h (isnan): Define as a macro if not already a macro.
18283         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
18284         Solaris.
18285
18286 2010-12-19  Bruno Haible  <bruno@clisp.org>
18287
18288         ldexpl test: Fix link error on OSF/1 5.1.
18289         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
18290
18291 2010-12-19  Bruno Haible  <bruno@clisp.org>
18292
18293         wctype: Make it work in C++ mode on OSF/1 5.1.
18294         * lib/wctype.in.h (iswblank): Declare but not define here.
18295         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
18296         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
18297         * modules/wctype (Files): Add lib/iswblank.c.
18298
18299 2010-12-19  Bruno Haible  <bruno@clisp.org>
18300
18301         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
18302         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
18303         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
18304
18305 2010-12-19  Bruno Haible  <bruno@clisp.org>
18306
18307         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
18308         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
18309         _POSIX_PII_SOCKET.
18310         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
18311         * doc/posix-functions/recvfrom.texi: Likewise.
18312         * doc/posix-functions/send.texi: Likewise.
18313         * doc/posix-functions/sendto.texi: Likewise.
18314
18315 2010-12-19  Bruno Haible  <bruno@clisp.org>
18316
18317         tcgetsid: Add missing declaration on OSF/1 5.1.
18318         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
18319         HAVE_TCGETSID.
18320         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
18321         Don't set HAVE_TCGETSID.
18322         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
18323         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
18324         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
18325         HAVE_TCGETSID.
18326         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
18327
18328 2010-12-19  Bruno Haible  <bruno@clisp.org>
18329
18330         stdio: Fix problem with popen() declaration on OSF/1 5.1.
18331         * lib/stdio.in.h: During the include_next statement, let recursive
18332         includes of this file include only the system header file.
18333
18334 2010-12-19  Bruno Haible  <bruno@clisp.org>
18335
18336         iconv_open: Fix regression from 2010-12-04.
18337         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
18338         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
18339
18340 2010-12-19  Bruno Haible  <bruno@clisp.org>
18341
18342         stdbool test: Avoid a gcc warning.
18343         * tests/test-stdbool.c (main): Fail if e1 is false.
18344         Reported by Jim Meyering.
18345
18346 2010-12-19  Jim Meyering  <meyering@redhat.com>
18347
18348         setenv: restore to working order
18349         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
18350         mistakenly removed.
18351         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
18352         HAVE_SETENV.
18353         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
18354         HAVE_SETENV.
18355
18356 2010-12-19  Bruno Haible  <bruno@clisp.org>
18357
18358         Document some different function declarations on OSF/1 5.1.
18359         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
18360         * doc/posix-functions/inet_ntop.texi: Likewise.
18361         * doc/posix-functions/gethostname.texi: Likewise.
18362         * lib/unistd.in.h (gethostname): Update comment.
18363
18364 2010-12-19  Bruno Haible  <bruno@clisp.org>
18365
18366         doc: Mention vasprintf-posix module.
18367         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
18368         the 'vasprintf-posix' module.
18369         * doc/glibc-functions/vasprintf.texi: Likewise.
18370
18371 2010-12-19  Bruno Haible  <bruno@clisp.org>
18372
18373         unsetenv: Add missing declaration on OSF/1 5.1.
18374         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
18375         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
18376         Don't set HAVE_UNSETENV. In the test program, set _BSD.
18377         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
18378         not HAVE_UNSETENV.
18379         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
18380         HAVE_UNSETENV.
18381         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
18382
18383 2010-12-19  Bruno Haible  <bruno@clisp.org>
18384
18385         setenv: Add missing declaration on OSF/1 5.1.
18386         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
18387         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
18388         declared. Don't set HAVE_SETENV.
18389         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
18390         not HAVE_SETENV.
18391         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
18392         HAVE_SETENV.
18393         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
18394
18395 2010-12-19  Bruno Haible  <bruno@clisp.org>
18396
18397         nl_langinfo tests: Avoid gcc warning.
18398         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
18399
18400 2010-12-19  Bruno Haible  <bruno@clisp.org>
18401
18402         mknod: Avoid error in C++ mode on OSF/1 with GCC.
18403         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
18404         _GL_CXXALIAS_SYS.
18405
18406 2010-12-19  Bruno Haible  <bruno@clisp.org>
18407
18408         stdbool: Relax test.
18409         * tests/test-stdbool.c (e): Don't require that casts from a variable's
18410         address to 'bool' work in static initializer, for compilers other than
18411         GCC.
18412
18413 2010-12-19  Bruno Haible  <bruno@clisp.org>
18414
18415         ftello: Add missing declaration on OSF/1 5.1.
18416         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
18417         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
18418         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
18419         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
18420         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
18421
18422 2010-12-19  Bruno Haible  <bruno@clisp.org>
18423
18424         fseeko: Add missing declaration on OSF/1 5.1.
18425         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
18426         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
18427         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
18428         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
18429         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
18430
18431 2010-12-19  Bruno Haible  <bruno@clisp.org>
18432
18433         fchdir: Add missing declaration on OSF/1 5.1.
18434         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
18435         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
18436         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
18437         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
18438         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
18439
18440 2010-12-19  Bruno Haible  <bruno@clisp.org>
18441
18442         relocatable-prog-wrapper: Separate from relocatable-prog.
18443         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
18444         uninstall-relocwrapper rule here.
18445         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
18446         Reported by Ian Beckwith <ianb@erislabs.net>.
18447
18448 2010-12-19  Bruno Haible  <bruno@clisp.org>
18449
18450         unistr/u8-mbsnlen: Add missing dependency.
18451         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
18452         Reported by Ian Beckwith <ianb@erislabs.net>.
18453
18454 2010-12-19  Bruno Haible  <bruno@clisp.org>
18455
18456         iconv: Make it possible again to use this module without 'iconv-h'.
18457         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
18458         if it is not defined.
18459         Reported by Ian Beckwith <ianb@erislabs.net>.
18460
18461 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
18462
18463         acl: port to Solaris 8 when copying from tmpfs to ufs
18464         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
18465         error number.  Problem observed on Solaris 8 with latest
18466         coreutils, with "mv A B", where A is on a tmpfs file system and B
18467         is on a ufs file system.  This caused coreutils' mv/part-symlink
18468         test to fail.
18469
18470         tests: set fail=0 at start
18471         * tests/init.sh (setup_): Move fail=0 initialization here ...
18472         (mktempd_): ... from here, so that tests can rely on fail being
18473         set to 0 initially.  This fixes a problem in coreutils; see:
18474         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
18475
18476 2010-12-18  Bruno Haible  <bruno@clisp.org>
18477
18478         memmem-simple: Stylistic changes.
18479         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
18480         Fix preprocessor directive indentation.
18481
18482 2010-12-15  Pádraig Brady <P@draigBrady.com>
18483
18484         memmem, memmem-simple: reorganize and expand empty needle check
18485         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
18486         functional checks to memmem-simple so that one has a fully functional
18487         memmem by using just this module.
18488         Restrict the performance only check to the memmem module.
18489         Also expand the empty needle check to ensure the correct
18490         pointer is returned, not just a non NULL pointer.
18491         * doc/glibc-functions/memmem.texi: Rearrange the portability
18492         documentation to correlate with the rearranged checks.
18493         Clarify exactly how the memmem and memmem-simple modules
18494         relate to each other.
18495
18496 2010-12-15  Pádraig Brady <P@draigBrady.com>
18497             Bruno Haible  <bruno@clisp.org>
18498
18499         Improve cross-compilation guesses for uClibc.
18500         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
18501         that uClibc does not have the glibc bug.
18502         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
18503         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
18504
18505 2010-12-14  Eric Blake  <eblake@redhat.com>
18506
18507         configmake: provide fallbacks for oldest supported autotools
18508         * m4/configmake.m4: New file.
18509         * modules/configmake (Files): Ship it.
18510         (configure.ac): Use it to guarantee fallbacks.
18511
18512 2010-12-13  Pádraig Brady <P@draigBrady.com>
18513
18514         read-file: Improve handling of large files
18515         * lib/read-file.c (fread_file): Minimize realloc()s
18516         for regular files, and better manage sizes around SIZE_MAX.
18517
18518 2010-12-13  Eric Blake  <eblake@redhat.com>
18519
18520         cloexec, fcntl: relax license
18521         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
18522         consent from all contributors.
18523         * modules/fcntl (License): Likewise.
18524
18525 2010-12-10  Bruno Haible  <bruno@clisp.org>
18526
18527         Tests for module 'pipe-posix'.
18528         * modules/pipe-posix-tests: New file.
18529         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
18530
18531 2010-12-10  Bruno Haible  <bruno@clisp.org>
18532
18533         pipe-posix: Make it work in C++ mode.
18534         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
18535         (pipe): Use common idiom, not a macro definition.
18536         * lib/pipe.c: New file.
18537         * m4/pipe.m4: New file.
18538         * modules/pipe-posix (Description): Enhance.
18539         (Files): Add lib/pipe.c, m4/pipe.m4.
18540         (configure.ac): Invoke gl_FUNC_PIPE.
18541         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
18542         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
18543         * tests/test-unistd-c++.cc: Check the signature of pipe.
18544
18545 2010-12-10  Bruno Haible  <bruno@clisp.org>
18546
18547         Rename module 'pipe' to 'spawn-pipe'.
18548         * modules/spawn-pipe: New file, renamed from modules/pipe.
18549         (Files, configure.ac, Makefile.am): Update.
18550         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
18551         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
18552         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
18553         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
18554         "spawn-pipe.h" instead of "pipe.h".
18555         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
18556         to gl_SPAWN_PIPE.
18557         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
18558         (Files, Makefile.am): Update.
18559         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
18560         Update.
18561         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
18562         Include "spawn-pipe.h" instead of "pipe.h".
18563         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
18564         * lib/javacomp.c: Likewise.
18565         * lib/javaversion.c: Likewise.
18566         * lib/pipe-filter-gi.c: Likewise.
18567         * lib/pipe-filter-ii.c: Likewise.
18568         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
18569         * modules/javacomp (Depends-on): Likewise.
18570         * modules/javaversion (Depends-on): Likewise.
18571         * modules/pipe-filter-gi (Depends-on): Likewise.
18572         * modules/pipe-filter-ii (Depends-on): Likewise.
18573         * MODULES.html.sh (Executing programs): Update.
18574         * NEWS: Mention the change.
18575
18576 2010-12-10  Eric Blake  <eblake@redhat.com>
18577
18578         pipe-posix: new module
18579         * modules/pipe-posix: New file.
18580         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
18581         (gl_UNISTD_H): Check for declaration.
18582         * modules/unistd (Makefile.am): Substitute it.
18583         * lib/unistd.in.h (pipe): Provide it for mingw.
18584         * doc/posix-functions/pipe.texi (pipe): Update documentation.
18585         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
18586
18587 2010-12-07  Bruno Haible  <bruno@clisp.org>
18588
18589         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
18590         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
18591         u8_strcmp_gnu.
18592         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
18593
18594 2010-12-06  Bruno Haible  <bruno@clisp.org>
18595
18596         Update internal documentation.
18597         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
18598
18599 2010-12-04  Bruno Haible  <bruno@clisp.org>
18600
18601         Put more information about failed tests into the test return codes.
18602         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
18603         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
18604         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
18605         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
18606         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
18607         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18608         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18609         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
18610         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
18611         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18612         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
18613         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
18614         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
18615         * m4/stdint.m4 (gl_STDINT_H): Likewise.
18616         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
18617         returns a bit mask.
18618         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
18619         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
18620         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
18621         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
18622         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
18623         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
18624         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
18625         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
18626         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
18627         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
18628         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
18629         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
18630         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
18631         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
18632         * m4/link.m4 (gl_FUNC_LINK): Likewise.
18633         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
18634         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
18635         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
18636         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18637         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
18638         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
18639         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
18640         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
18641         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
18642         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
18643         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
18644         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
18645         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
18646         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
18647         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
18648         gl_PRINTF_PRECISION): Likewise.
18649         * m4/regex.m4 (gl_REGEX): Likewise.
18650         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
18651         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18652         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
18653         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18654         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
18655         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18656         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
18657         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
18658         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
18659         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18660         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
18661         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
18662         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
18663         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
18664         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18665         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
18666         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
18667         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18668         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18669         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
18670         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
18671         enumerated value.
18672         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
18673
18674 2010-12-04  Bruno Haible  <bruno@clisp.org>
18675
18676         Update for Solaris 11 2010-11.
18677         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
18678         Express, released in November 2010.
18679
18680 2010-12-04  Bruno Haible  <bruno@clisp.org>
18681
18682         nproc: Relax license.
18683         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
18684         and Paul Eggert.
18685         Requested by Ludovic Courtès <ludo@gnu.org>.
18686
18687 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
18688
18689         utimecmp: fine-grained src to nearby coarse-grained dest
18690
18691         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
18692         and the source is on a file system with higher-resolution time
18693         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
18694         not work, and the time stamps are close together, the algorithm to
18695         determine the exact resolution from the read-back mtime was buggy:
18696         it had a "!=" where it should have had an "==".  This bug has been
18697         in the code ever since it was introduced to gnulib.
18698         Problem reported by Dan Jacobson in
18699         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
18700
18701 2010-11-30  Bruno Haible  <bruno@clisp.org>
18702
18703         strerror_r-posix: Fix autoconf test.
18704         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
18705
18706 2010-11-28  Bruno Haible  <bruno@clisp.org>
18707             Paul Eggert  <eggert@cs.ucla.edu>
18708
18709         Tests for module 'getdomainname'.
18710         * modules/getdomainname-tests: New file.
18711         * tests/test-getdomainname.c: New file, based on
18712         tests/test-gethostname.c.
18713
18714 2010-11-28  Bruno Haible  <bruno@clisp.org>
18715             Paul Eggert  <eggert@cs.ucla.edu>
18716
18717         getdomainname: Use the system function when possible.
18718         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
18719         (getdomainname): Replace if needed. Provide the declaration if it is
18720         missing. Don't use _GL_CXXALIAS_SYS_CAST.
18721         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
18722         (getdomainname): When the system has getdomainname, call the system
18723         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
18724         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
18725         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
18726         found in libnsl. Look for the declaration also in <netdb.h>. Replace
18727         the function if its second argument is of type 'int' or if it is found
18728         in libnsl.
18729         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
18730         <sys/systeminfo.h> and sysinfo().
18731         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
18732         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18733         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
18734         HAVE_GETDOMAINNAME.
18735         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
18736         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
18737         * doc/glibc-functions/getdomainname.texi: Document the problems with
18738         the getdomainname declaration.
18739
18740 2010-11-28  Bruno Haible  <bruno@clisp.org>
18741
18742         sys_socket: Ensure ss_family field on AIX.
18743         * lib/sys_socket.in.h (ss_family): New macro definition.
18744         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
18745         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
18746         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
18747         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18748         * modules/sys_socket (Makefile.am): Substitute
18749         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18750         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
18751
18752 2010-11-27  Bruno Haible  <bruno@clisp.org>
18753
18754         readline: Improve configure output.
18755         * m4/readline.m4 (gl_FUNC_READLINE): Make the
18756         "checking for readline..." result understandable.
18757
18758 2010-11-27  Bruno Haible  <bruno@clisp.org>
18759
18760         *printf-posix: Detect a bug on Solaris 10/x86.
18761         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
18762         for floating-point output.
18763         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
18764         directive.
18765         * tests/test-snprintf-posix.h (test_function): Likewise.
18766         * tests/test-sprintf-posix.h (test_function): Likewise.
18767         * tests/test-vasprintf-posix.c (test_function): Likewise.
18768         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
18769         * doc/posix-functions/printf.texi: Likewise.
18770         * doc/posix-functions/snprintf.texi: Likewise.
18771         * doc/posix-functions/sprintf.texi: Likewise.
18772         * doc/posix-functions/vfprintf.texi: Likewise.
18773         * doc/posix-functions/vprintf.texi: Likewise.
18774         * doc/posix-functions/vsnprintf.texi: Likewise.
18775         * doc/posix-functions/vsprintf.texi: Likewise.
18776         * doc/glibc-functions/obstack_printf.texi: Likewise.
18777         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
18778
18779 2010-11-27  Bruno Haible  <bruno@clisp.org>
18780
18781         Fix link error when module libunistring-optional is in use.
18782         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
18783         * modules/striconveha-tests (Makefile.am): Likewise.
18784
18785 2010-11-27  Bruno Haible  <bruno@clisp.org>
18786
18787         regex: Mention link dependencies.
18788         * modules/regex (Link): New section.
18789         * modules/rpmatch (Link): Likewise.
18790         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
18791
18792 2010-11-27  Bruno Haible  <bruno@clisp.org>
18793
18794         ftoastr: Fix compilation error on Solaris.
18795         * lib/ftoastr.c: Include <config.h>.
18796
18797 2010-11-27  Bruno Haible  <bruno@clisp.org>
18798
18799         getloadavg: Update documentation.
18800         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
18801
18802 2010-11-27  Bruno Haible  <bruno@clisp.org>
18803
18804         sys_socket: Fix test whether the functions are declared.
18805         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
18806         not <sys/select.h>.
18807
18808 2010-11-27  Bruno Haible  <bruno@clisp.org>
18809
18810         getpass: Make sure to get system declaration on some platforms.
18811         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
18812         gl_USE_SYSTEM_EXTENSIONS.
18813         * modules/getpass (Depends-on): Add extensions.
18814
18815 2010-11-26  Bruno Haible  <bruno@clisp.org>
18816
18817         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
18818         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
18819         'iconv' module is present.
18820         (ICONV_CONST): New macro.
18821         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
18822         ICONV_CONST.
18823         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
18824         set ICONV_CONST.
18825         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
18826         here.
18827         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
18828         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
18829         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
18830         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
18831         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
18832         present.
18833
18834 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
18835
18836         ftoastr: comment fix
18837         * lib/ftoastr.c: "little" -> "little or no" in comment
18838
18839 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
18840
18841         stdint: port to GCC 4.3 + OSX + Octave
18842         On this platform, stdint.h is buggy and defines int64_t to long
18843         long int.  The replacement defined it to long int, causing
18844         problems with C++ style name mangling.  Instead, trust the system
18845         definition if INT64_MAX is defined, and likewise for the unsigned
18846         variant.   Problem reported by Jarno Rajahalme in
18847         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
18848         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
18849         and don't mess with int64_t and INT64_MAX in this case.
18850         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
18851
18852 2010-11-24  Bruno Haible  <bruno@clisp.org>
18853
18854         doc: Corrections regarding MacOS X 10.4 and 10.5.
18855         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
18856         MacOS X.
18857         Reported by Simon Josefsson.
18858
18859 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
18860
18861         Uninstall ".bin" files installed by relocwrapper.
18862         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
18863         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
18864         unless it is already there.
18865
18866 2010-11-21  Bruno Haible  <bruno@clisp.org>
18867
18868         Update for NetBSD 5.0.
18869         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18870         NetBSD; the test fails on NetBSD 5.0.
18871         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18872         about NetBSD.
18873
18874 2010-11-21  Bruno Haible  <bruno@clisp.org>
18875
18876         Update for HP-UX 11.23 and HP-UX 11.31.
18877         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
18878         HP-UX.
18879
18880 2010-11-21  Bruno Haible  <bruno@clisp.org>
18881
18882         Update for MacOS X 10.5.
18883         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18884         MacOS X; the test fails on MacOS X 10.5.8.
18885         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18886         about MacOS X.
18887
18888 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
18889
18890         bootstrap: add bootstrap_sync option.
18891         See discussion at
18892         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
18893         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
18894         * build-aux/bootstrap: Accept --bootstrap-sync to update
18895         bootstrap if it is not identical to the local gnulib's
18896         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
18897         enable this by default.  Accept --no-bootstrap-sync to disable
18898         it.
18899
18900 2010-11-20  Bruno Haible  <bruno@clisp.org>
18901
18902         Ensure that <features.h> is included before __GLIBC__ is tested.
18903         * lib/printf-parse.h: Include <features.h>.
18904         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
18905         Reported by Mike Frysinger <vapier@gentoo.org>.
18906
18907         Ensure that <features.h> is included before __GLIBC__ is tested.
18908         * lib/wchar.in.h: Include <features.h>.
18909         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
18910         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
18911         Reported by Mike Frysinger <vapier@gentoo.org>.
18912
18913         Ensure that <features.h> is included before __GLIBC__ is tested.
18914         * lib/arpa_inet.in.h: Include <features.h>.
18915         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
18916         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
18917         Reported by Mike Frysinger <vapier@gentoo.org>.
18918
18919         Ensure that <features.h> is included before __GLIBC__ is tested.
18920         * build-aux/link-warning.h: Include <features.h>.
18921         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
18922         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
18923         Reported by Mike Frysinger <vapier@gentoo.org>.
18924
18925         Ensure that <features.h> is included before __GLIBC__ is tested.
18926         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
18927         Reported by Mike Frysinger <vapier@gentoo.org>.
18928
18929 2010-11-20  Bruno Haible  <bruno@clisp.org>
18930
18931         memmem: Fix autoconf test.
18932         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
18933
18934 2010-11-20  Bruno Haible  <bruno@clisp.org>
18935
18936         Port to uClibc.
18937         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
18938         * lib/fcntl.in.h: Likewise.
18939         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
18940         * lib/mbrtowc.c (mbrtowc): Likewise.
18941         * lib/relocatable.c (find_shared_library_fullname): Likewise.
18942         * lib/strerror_r.c: Likewise.
18943         * lib/unistr/u8-strnlen.c: Likewise.
18944         * lib/vasnprintf.c (decimal_point_char): Likewise.
18945         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
18946         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
18947         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
18948         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
18949         * tests/test-sigaction.c (handler, main): Likewise.
18950         * lib/freading.h: Treat uClibc like a non-glibc platform.
18951         * lib/freading.c: Likewise.
18952         * lib/gettext.h: Likewise.
18953         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
18954         Likewise.
18955         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
18956         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
18957         * lib/propername.c (proper_name_utf8): Likewise.
18958         * lib/spawn.in.h: Likewise.
18959         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
18960         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
18961         mem_cd_iconveh_internal): Likewise.
18962         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
18963         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
18964         strstr, strcasestr): Likewise.
18965         * lib/unicodeio.c (unicode_to_mb): Likewise.
18966         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
18967         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
18968         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
18969         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
18970         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
18971         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
18972         * lib/unistr/u8-stpncpy.c: Likewise.
18973         * lib/vasnprintf.c (VASNPRINTF): Likewise.
18974         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
18975         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18976         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18977         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
18978         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
18979         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
18980         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
18981         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
18982         Likewise.
18983         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18984         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18985         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
18986         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18987         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18988         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18989         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18990         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
18991         * tests/test-getopt.h (OPTIND_MIN): Likewise.
18992         * tests/test-striconveha.c (main): Likewise.
18993         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18994         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
18995         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
18996         * doc/posix-functions/getline.texi: Likewise.
18997         Reported by Mike Frysinger <vapier@gentoo.org>.
18998
18999 2010-11-20  Bruno Haible  <bruno@clisp.org>
19000
19001         nproc: Fix condition.
19002         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
19003         HAVE_PTHREAD_AFFINITY_NP.
19004
19005 2010-11-20  Bruno Haible  <bruno@clisp.org>
19006
19007         Fix a comment.
19008         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
19009
19010 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
19011
19012         ftoastr: don't assume snprintf
19013         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
19014         Implement a subset of snprintf here, by using sprintf safely.
19015         * modules/ftoastr (Depends-on): Remove snprintf.
19016
19017 2010-11-19  Jim Meyering  <meyering@redhat.com>
19018
19019         test-rename.h: fix compilation failure
19020         * tests/test-rename.h (test_rename): Add omitted "}".
19021
19022 2010-11-17  Jim Meyering  <meyering@redhat.com>
19023
19024         maint.mk: add a URL discussing the no-@acronym policy
19025         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
19026
19027 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
19028
19029         ftoastr: depend on snprintf, improve comments
19030         * lib/ftoastr.c: Also mention Loitsch's draft.
19031         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
19032         needed in the current implementation, but it might simplify
19033         speeding up the code later.
19034         * modules/ftoastr: Depend on snprintf; this improves portability.
19035         Suggested by Bruno Haible in the same email.
19036
19037         ftoastr: port to hosts lacking strtof and strtold
19038         Problem reported by Bruno Haible in
19039         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
19040         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
19041         environment and strtold (and presumably strtof) are not available.
19042         * modules/ftoastr (Files): Add m4/c-strtod.m4.
19043         (configure.ac): Require gl_C99_STRTOLD.
19044
19045 2010-11-18  Bruno Haible  <bruno@clisp.org>
19046
19047         c-strtold: Avoid link error on AIX 7.
19048         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
19049         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
19050         (gl_C_STRTOLD): Test whether strtold_l exists.
19051         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19052
19053 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
19054
19055         intprops: new macro INT_BITS_STRLEN_BOUND
19056         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
19057         ftoastr.h.  This exposes an internal of intprops.h that was formerly
19058         not exposed.  Also, it uses a slightly tighter bound than before;
19059         though this makes no practical difference, we might as well be as
19060         tight as we easily can.
19061
19062         ftoastr: new module, for lossless conversion of floats to short strings
19063         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
19064         * modules/ftoastr: New files.
19065
19066 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
19067
19068         bootstrap: port to Solaris sed
19069         * build-aux/bootstrap (get_version): Port to Solaris sed.
19070         See Ralf Wildenhues's note in
19071         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
19072
19073 2010-11-14  Jim Meyering  <meyering@redhat.com>
19074
19075         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
19076         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
19077         and move definition closer to sole use.
19078
19079 2010-11-13  Jim Meyering  <meyering@redhat.com>
19080
19081         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
19082         Now we require at least autoconf-2.59, which means the work-around
19083         is no longer needed.
19084         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
19085         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
19086         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
19087         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
19088         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
19089
19090 2010-11-13  Bruno Haible  <bruno@clisp.org>
19091
19092         rename, renameat: Avoid test failures at NFS mounted locations.
19093         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
19094         functions.
19095         (test_rename): Use assert_nonexistent.
19096         * tests/test-rename.c: Include <dirent.h>.
19097         * tests/test-renameat.c: Likewise.
19098         Reported by Gary V. Vaughan <gary@gnu.org>.
19099
19100         rename, renameat: Document Linux bug with NFS
19101         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
19102         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
19103         * doc/posix-functions/renameat.texi: Likewise.
19104         Suggested by Eric Blake.
19105
19106 2010-11-13  Bruno Haible  <bruno@clisp.org>
19107
19108         rename test: Add comments.
19109         * tests/test-rename.h (test_rename): Add structure and comments.
19110
19111 2010-11-13  Eric Blake  <eblake@redhat.com>
19112
19113         maintainer-makefile: cover a few more files
19114         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
19115         scripts generated within C files, for libvirt.
19116
19117 2010-11-13  Bruno Haible  <bruno@clisp.org>
19118
19119         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
19120         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
19121         character, return the number of bytes that belong together, not always
19122         1.
19123         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
19124         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
19125         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
19126         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
19127         number of bytes of an invalid character.
19128         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
19129         (main): Invoke it.
19130         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
19131         results.
19132         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
19133         malformed byte sequences.
19134         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
19135         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
19136         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
19137         Reported by Ben Pfaff and Paolo Bonzini.
19138
19139 2010-11-13  Bruno Haible  <bruno@clisp.org>
19140
19141         openat: Work around glibc bug with fchownat() and empty file names.
19142         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
19143         (gl_FUNC_FCHOWNAT): Invoke it.
19144         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
19145         * doc/posix-functions/fchownat.texi: Document the glibc bug.
19146         Reported by Gary V. Vaughan <gary@gnu.org>.
19147
19148 2010-11-13  Bruno Haible  <bruno@clisp.org>
19149
19150         openat: Ensure autoconf macro ordering.
19151         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
19152         gl_USE_SYSTEM_EXTENSIONS.
19153         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
19154
19155 2010-11-13  Bruno Haible  <bruno@clisp.org>
19156
19157         Update comments.
19158         * lib/unistr/u8-check.c: Update file name in comments.
19159         * lib/unistr/u8-mblen.c: Likewise.
19160         * lib/unistr/u8-prev.c: Likewise.
19161         * lib/unistr/u8-strmblen.c: Likewise.
19162         * lib/unistr/u8-strmbtouc.c: Likewise.
19163
19164 2010-11-13  Jim Meyering  <meyering@redhat.com>
19165
19166         tests: avoid test failure on Solaris 10 due to lack of PATH export
19167         * tests/test-update-copyright.sh: Don't forget to export PATH.
19168
19169         init.sh: ensure that IFS is defined, just in case...
19170         * tests/init.sh (setup_): Ensure that IFS is defined,
19171         so that saving and restoring it works as expected.  This
19172         appears to be useful at least for an old version of dash
19173         from a long time ago (RH 6).  See here for details:
19174         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
19175
19176         maint.mk: tighten "test a == b" check
19177         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
19178         test to files that contain something like #!/bin/sh.
19179         Without this, coreutils would get two false positives in
19180         the comments of C source files.
19181
19182 2010-11-12  Eric Blake  <eblake@redhat.com>
19183
19184         bootstrap: fix typo in previous attempt
19185         * build-aux/bootstrap (buildreq): Correct the grouping.
19186         Reported by Paul Eggert.
19187
19188         maintainer-makefile: prohibit test x == x
19189         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
19190         Based on a report by Matthias Bolte.
19191
19192         bootstrap: allow FreeBSD gzip
19193         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
19194         which has no '.' and goes to stderr.
19195         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
19196         Reported by Matthias Bolte.
19197
19198         maintainer-makefile: check for i18n setup
19199         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
19200         will likely work.
19201
19202 2010-11-12  Bruno Haible  <bruno@clisp.org>
19203
19204         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
19205         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
19206         * lib/nanosleep.c (nanosleep): Likewise.
19207
19208 2010-11-11  Bruno Haible  <bruno@clisp.org>
19209
19210         fcntl-h: Fix for use of C++ on glibc systems.
19211         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
19212         also on glibc systems in C++ mode.
19213         Reported by Gary V. Vaughan <gary@gnu.org>.
19214
19215 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
19216
19217         mknod: avoid false failure with dash
19218         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
19219
19220 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
19221
19222         unlink: Fix "is it should" typo in diagnostic.
19223         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
19224         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
19225
19226 2010-11-11  Bruno Haible  <bruno@clisp.org>
19227
19228         Tests for module 'strerror_r-posix'.
19229         * modules/strerror_r-posix-tests: New file.
19230         * tests/test-strerror_r.c: New file.
19231         * tests/test-string-c++.cc: Check the signature of strerror_r.
19232
19233         New module 'strerror_r-posix'.
19234         * lib/string.in.h (strerror_r): New declaration.
19235         * lib/strerror_r.c: New file.
19236         * m4/strerror_r.m4: New file.
19237         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
19238         of strerror_r.
19239         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
19240         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
19241         * modules/strerror_r-posix: New file.
19242         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
19243         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
19244         * doc/posix-functions/strerror_r.texi: Mention the new module and the
19245         portability problems.
19246
19247 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
19248
19249         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
19250         line is also considered for output. Quoted function name in shell
19251         command, so temporary files for functions like MyClass::operator()
19252         are removed correctly without errors.
19253
19254 2010-11-09  Bruno Haible  <bruno@clisp.org>
19255
19256         * doc/posix-functions/strerror.texi: List more failing platforms.
19257
19258         * doc/posix-functions/strerror.texi: Add a comment.
19259
19260 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
19261
19262         fdopendir: fix bug on MacOS X when low on file descriptors
19263
19264         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
19265         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
19266         All callers changed.
19267         (fdopendir): Invoke save_cwd at the top level, not after using
19268         multiple dup() calls to use up file descriptors.  Then retry
19269         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
19270         less than the maximum number of open file descriptors, because
19271         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
19272         on Mac OS X 10.6.4 for tar 1.24
19273         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
19274         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
19275         and for tar 1.25
19276         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
19277
19278 2010-11-07  Bruno Haible  <bruno@clisp.org>
19279
19280         vasnprintf: Support I flag on glibc systems.
19281         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
19282         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
19283         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
19284         snprintf function.
19285         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
19286         glibc systems.
19287         * tests/test-vasnprintf-posix3.c: New file.
19288         * modules/vasnprintf-posix-tests (Files): Add it.
19289         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
19290
19291 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
19292
19293         [html] Fix copy/paste bug: Use unique name for compiler warnings.
19294         * MODULES.html.sh: For compiler warnings, use name
19295         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
19296
19297 2010-11-05  Eric Blake  <eblake@redhat.com>
19298
19299         ceil, floor: avoid spurious failure with icc
19300         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
19301         [denormals-as-zero] when optimizing without -mieee-fp option.
19302         * tests/test-floorf2.c (floorf_reference): Likewise.
19303         * tests/test-ceilf1.c (dummy): New function.
19304         (main): Use it to outsmart icc's optimization.
19305         * tests/test-floorf1.c (dummy, main): Likewise.
19306
19307         tests: require working signbit
19308         * modules/ceilf-tests (Depends-on): Add signbit.
19309         * modules/ceill-tests (Depends-on): Likewise.
19310         * modules/floorf-tests (Depends-on): Likewise.
19311         * modules/floorl-tests (Depends-on): Likewise.
19312         * modules/round-tests (Depends-on): Likewise.
19313         * modules/roundf-tests (Depends-on): Likewise.
19314         * modules/roundl-tests (Depends-on): Likewise.
19315         * modules/trunc-tests (Depends-on): Likewise.
19316         * modules/truncf-tests (Depends-on): Likewise.
19317         * modules/truncl-tests (Depends-on): Likewise.
19318
19319         strtod: work around icc bug
19320         * lib/strtod.c (minus_zero): Define to working value.
19321         (strtod): Use it to avoid icc bug.
19322
19323         copysign: enhance tests
19324         * modules/copysign-tests (Files): Add minus-zero.h.
19325         * tests/test-copysign.c (main): Also test zeros.
19326
19327 2010-11-04  Eric Blake  <eblake@redhat.com>
19328
19329         ceil, floor, round, trunc: enhance tests of -0
19330         * tests/test-ceilf1.c (main): Ensure correct sign of result.
19331         * tests/test-ceill.c (main): Likewise.
19332         * tests/test-floorf1.c (main): Likewise.
19333         * tests/test-floorl.c (main): Likewise.
19334         * tests/test-round1.c (main): Likewise.
19335         * tests/test-roundf1.c (main): Likewise.
19336         * tests/test-roundl.c (main): Likewise.
19337         * tests/test-trunc1.c (main): Likewise.
19338         * tests/test-truncf1.c (main): Likewise.
19339         * tests/test-truncl.c (main): Likewise.
19340
19341 2010-11-04  Eric Blake  <eblake@redhat.com>
19342
19343         frexp, tests: work around ICC bug with -zero
19344         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
19345         works with more compilers.
19346         * tests/minus-zero.h: New file.
19347         * modules/ceilf-tests (Files): Include it.
19348         * modules/ceill-tests (Files): Likewise.
19349         * modules/floorf-tests (Files): Likewise.
19350         * modules/floorl-tests (Files): Likewise.
19351         * modules/frexp-nolibm-tests (Files): Likewise.
19352         * modules/frexp-tests (Files): Likewise.
19353         * modules/frexpl-nolibm-tests (Files): Likewise.
19354         * modules/frexpl-tests (Files): Likewise.
19355         * modules/isnan-tests (Files): Likewise.
19356         * modules/isnand-nolibm-tests (Files): Likewise.
19357         * modules/isnand-tests (Files): Likewise.
19358         * modules/isnanf-nolibm-tests (Files): Likewise.
19359         * modules/isnanf-tests (Files): Likewise.
19360         * modules/isnanl-nolibm-tests (Files): Likewise.
19361         * modules/isnanl-tests (Files): Likewise.
19362         * modules/round-tests (Files): Likewise.
19363         * modules/roundf-tests (Files): Likewise.
19364         * modules/roundl-tests (Files): Likewise.
19365         * modules/ldexpl-tests (Files): Likewise.
19366         * modules/signbit-tests (Files): Likewise.
19367         * modules/snprintf-posix-tests (Files): Likewise.
19368         * modules/sprintf-posix-tests (Files): Likewise.
19369         * modules/strtod-tests (Files): Likewise.
19370         * modules/trunc-tests (Files): Likewise.
19371         * modules/truncf-tests (Files): Likewise.
19372         * modules/truncl-tests (Files): Likewise.
19373         * modules/vsnprintf-posix-tests (Files): Likewise.
19374         * modules/vsprintf-posix-tests (Files): Likewise.
19375         * modules/vasnprintf-posix-tests (Files): Likewise.
19376         * modules/vasprintf-posix-tests (Files): Likewise.
19377         * tests/test-ceilf1.c (main): Use it.
19378         * tests/test-ceill.c (main): Likewise.
19379         * tests/test-floorf1.c (main): Likewise.
19380         * tests/test-floorl.c (main): Likewise.
19381         * tests/test-frexp.c (main): Likewise.
19382         * tests/test-frexpl.c (main): Likewise.
19383         * tests/test-isnan.c (main): Likewise.
19384         * tests/test-isnand.h (main): Likewise.
19385         * tests/test-isnanf.h (main): Likewise.
19386         * tests/test-isnanl.h (main): Likewise.
19387         * tests/test-ldexpl.c (main): Likewise.
19388         * tests/test-round.c (main): Likewise.
19389         * tests/test-roundf.c (main): Likewise.
19390         * tests/test-roundl.c (main): Likewise.
19391         * tests/test-signbit.c (test_signbitf, test_signbitd)
19392         (test_signbitl): Likewise.
19393         * tests/test-snprintf-posix.h (test_function): Likewise.
19394         * tests/test-sprintf-posix.h (test_function): Likewise.
19395         * tests/test-strtod.c (main): Likewise.
19396         * tests/test-trunc1.c (main): Likewise.
19397         * tests/test-truncf1.c (main): Likewise.
19398         * tests/test-truncl.c (main): Likewise.
19399
19400         isnanl: work around icc bug
19401         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
19402
19403 2010-11-03  Eric Blake  <eblake@redhat.com>
19404
19405         tests: fix compiler warnings
19406         * tests/test-getopt.h (test_getopt): Fix condition.
19407         * tests/test-getopt_long.h (test_getopt_long): Likewise.
19408         * tests/test-pipe2.c (main): Likewise.
19409         * tests/test-quotearg-simple.c (main): Avoid icc warning.
19410
19411         utimens: fix broken m4 test
19412         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
19413
19414 2010-10-28  Bruno Haible  <bruno@clisp.org>
19415
19416         posix_spawn*, getdtablesize: Relax license.
19417         * modules/posix_spawn (License): Change to LGPLv2+.
19418         * modules/posix_spawnp (License): Likewise.
19419         * modules/posix_spawn-internal (License): Likewise.
19420         * modules/posix_spawnattr_init (License): Likewise.
19421         * modules/posix_spawnattr_getflags (License): Likewise.
19422         * modules/posix_spawnattr_setflags (License): Likewise.
19423         * modules/posix_spawnattr_getpgroup (License): Likewise.
19424         * modules/posix_spawnattr_setpgroup (License): Likewise.
19425         * modules/posix_spawnattr_getschedparam (License): Likewise.
19426         * modules/posix_spawnattr_setschedparam (License): Likewise.
19427         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
19428         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
19429         * modules/posix_spawnattr_getsigdefault (License): Likewise.
19430         * modules/posix_spawnattr_setsigdefault (License): Likewise.
19431         * modules/posix_spawnattr_getsigmask (License): Likewise.
19432         * modules/posix_spawnattr_setsigmask (License): Likewise.
19433         * modules/posix_spawnattr_destroy (License): Likewise.
19434         * modules/posix_spawn_file_actions_init (License): Likewise.
19435         * modules/posix_spawn_file_actions_addclose (License): Likewise.
19436         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
19437         * modules/posix_spawn_file_actions_addopen (License): Likewise.
19438         * modules/posix_spawn_file_actions_destroy (License): Likewise.
19439         * modules/getdtablesize (License): Likewise.
19440         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
19441
19442 2010-10-26  Bruno Haible  <bruno@clisp.org>
19443
19444         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
19445         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
19446         Cygwin and mingw.
19447         Suggested by Eric Blake.
19448
19449 2010-10-26  Bruno Haible  <bruno@clisp.org>
19450
19451         stdio: Work around compilation error due to renameat() on Solaris 10.
19452         * lib/stdio.in.h: Include <unistd.h> on Solaris.
19453         * lib/renameat.c: Don't include <unistd.h> here.
19454         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
19455         Reported by Paul Eggert and Eric Blake.
19456
19457 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
19458
19459         renameat: port to Solaris 10, which declares renameat in unistd.h
19460
19461         * lib/renameat.c: Include unistd.h before stdio.h, because
19462         Solaris 10 declares renameat in unistd.h.  Problem encountered
19463         when building GNU tar 1.24 on Solaris 10.
19464
19465 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
19466
19467         fdopendir: fix C89 compilation
19468         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
19469         compilers.
19470
19471 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
19472
19473         inttostr: simplify by removing unnecessary redundancy
19474         * lib/anytostr.c: Don't include verify.h.
19475         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
19476         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
19477         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
19478         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
19479         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
19480         Likewise.
19481         * modules/inttostr (Depends-on): Remove 'verify'.
19482
19483 2010-10-23  Bruno Haible  <bruno@clisp.org>
19484
19485         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
19486         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
19487         Reported by Eric Blake.
19488
19489 2010-10-23  Bruno Haible  <bruno@clisp.org>
19490
19491         Tests: Fix LOCALE_JA on MirBSD 10.
19492         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
19493         to an UTF-8 locale.
19494         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
19495         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19496         Reported by Eric Blake.
19497
19498 2010-10-21  Bruno Haible  <bruno@clisp.org>
19499
19500         nl_langinfo test: Avoid test failure on NetBSD 5.
19501         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
19502         Reported by Eric Blake.
19503
19504 2010-10-21  Eric Blake  <eblake@redhat.com>
19505
19506         c-stack: work around libsigsegv 2.8 bug
19507         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
19508         overflow on at least PowerPC64.
19509
19510 2010-10-17  Bruno Haible  <bruno@clisp.org>
19511
19512         userspec: Drop redundant file.
19513         * modules/userspec (Files): Remove lib/inttostr.h.
19514
19515 2010-10-17  Bruno Haible  <bruno@clisp.org>
19516
19517         nl_langinfo tests: Silence some warnings.
19518         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
19519         Reported by Jim Meyering.
19520
19521 2010-10-17  Bruno Haible  <bruno@clisp.org>
19522
19523         Make use of GCC's attribute __alloc_size__.
19524         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
19525         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
19526         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
19527         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
19528         __alloc_size__.
19529         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
19530         Suggested by Jim Meyering.
19531
19532 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
19533
19534         bootstrap: anchor .gitignore entries.
19535         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
19536         with...
19537         (insert_vc_ignore): ... this new function, which prepends `/' to
19538         all .gitignore entries before passing them to
19539         insert_sorted_if_absent.
19540
19541 2010-10-16  Bruno Haible  <bruno@clisp.org>
19542
19543         nextafter: Fix configure check.
19544         * modules/nextafter (configure.ac): Correct expected prototype.
19545
19546 2010-10-16  Bruno Haible  <bruno@clisp.org>
19547
19548         termios: Update documentation.
19549         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
19550
19551 2010-10-16  Bruno Haible  <bruno@clisp.org>
19552
19553         tests: Make them compile with TinyCC.
19554         * tests/test-strstr.c (main): Remove parentheses around array
19555         initializer.
19556
19557 2010-10-15  Eric Blake  <eblake@redhat.com>
19558
19559         ignore-value: make header idempotent
19560         * lib/ignore-value.h: Add double-inclusion guards.
19561         Reported by Stefan Berger.
19562
19563 2010-10-15  Jim Meyering  <meyering@redhat.com>
19564
19565         GNUmakefile: handle "stable" target, not "major"
19566         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
19567         lists in maint.mk and announce-gen.  Without this, "make stable"
19568         would fail to ensure that $(VERSION) is up to date.
19569
19570 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
19571
19572         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
19573         & co.
19574
19575 2010-10-14  Bruno Haible  <bruno@clisp.org>
19576
19577         vasnprintf: Don't set errno to 0.
19578         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
19579         block that sets it to 0.
19580         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
19581
19582 2010-10-14  Bruno Haible  <bruno@clisp.org>
19583
19584         socketlib: Fix.
19585         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
19586         gl_PREREQ_SYS_H_WINSOCK2.
19587         Reported by Ian Beckwith <ianb@erislabs.net>.
19588
19589 2010-10-13  Jim Meyering  <meyering@redhat.com>
19590
19591         test-select-stdin.c: avoid warn_unused_result warnings
19592         * tests/test-select-stdin.c: Include "macros.h".
19593         ASSERT that read and fflush succeed.
19594
19595 2010-10-13  Jim Meyering  <meyering@redhat.com>
19596
19597         git-version-gen: do require git-VC'd files in cwd
19598         * build-aux/git-version-gen: Reject a git version string
19599         if there are no commits associated with the current directory.
19600         This avoids an unlikely false-positive (unrelated dir whose parent
19601         repository also contains a tag matching v*), as pointed out
19602         by Giuseppe Scrivano in
19603         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
19604
19605 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
19606
19607         argv-iter: omit nonconforming declaration
19608         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
19609         enum arg_iter_err declaration, which doesn't conform to C99.
19610         Solaris 10 cc warns about this.
19611
19612 2010-10-13  Eric Blake  <eblake@redhat.com>
19613
19614         termios: fix compilation on mingw
19615         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
19616         (gl_TERMIOS_H): Adjust it on mingw.
19617         * modules/termios (Makefile.am): Substitute new key.
19618         * lib/termios.in.h (includes): Make include_next conditional.
19619         * doc/posix-headers/termios.texi (termios.h): Update
19620         documentation.
19621         Reported by Daniel P. Berrange.
19622
19623 2010-10-13  Jim Meyering  <meyering@redhat.com>
19624
19625         git-version-gen: don't require that .git/ be in the current dir
19626         * build-aux/git-version-gen: Adjust this script so that it works
19627         when run from any working directory beneath the top-level .git/-
19628         containing directory.  Inspired by a patch from Giuseppe Scrivano,
19629         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
19630
19631         test-select: avoid warn_unused_result warnings
19632         * tests/test-select.c: Include "macros.h".
19633         ASSERT that each call to read, write, and pipe succeeds.
19634         While not technically required, also check each "close".
19635         * modules/select-tests (Files): Add tests/macros.h.
19636
19637         test-symlinkat: remove declaration of unused local
19638         * tests/test-symlinkat.c (main): Remove unused local, "buf".
19639
19640         test-inttostr: avoid shadowing warnings
19641         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
19642         and use malloc rather than the stack for the same reason as
19643         mentioned in the comment justifying the other allocation.
19644
19645 2010-10-11  Bruno Haible  <bruno@clisp.org>
19646
19647         stdlib: Allow multiple gnulib generated replacements to coexist.
19648         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
19649         Reported by Sam Steingold <sds@gnu.org>.
19650
19651 2010-10-11  Jim Meyering  <meyering@redhat.com>
19652
19653         fix a documentation typo
19654         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
19655
19656 2010-10-11  Eric Blake  <eblake@redhat.com>
19657
19658         futimens: work around Solaris 11 bug
19659         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
19660         * tests/test-futimens.h (test_futimens): Enhance, rather than
19661         weaken test.
19662         * doc/posix-functions/futimens.texi (futimens): Document the bug.
19663
19664 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
19665
19666         Indentation.
19667         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
19668         higher-level operators more to the left.
19669
19670 2010-10-11  Jim Meyering  <meyering@redhat.com>
19671
19672         test-futimens: avoid unwarranted test failure on Solaris 5.11
19673         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
19674         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
19675         because it tries to dereference the NULL name argument.
19676
19677 2010-10-11  Bruno Haible  <bruno@clisp.org>
19678
19679         Indentation.
19680         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
19681         indentation.
19682
19683 2010-10-11  Jim Meyering  <meyering@redhat.com>
19684
19685         spawn.in.h: make indentation consistent with parentheses
19686         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
19687         Make indentation consistent with parentheses.
19688
19689 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
19690
19691         Fix mismatched parens in previous commit
19692         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
19693         parens.
19694
19695 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
19696
19697         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
19698
19699         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
19700         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
19701         * lib/malloca.c: Include "verify.h".
19702         (verify1): Remove, replacing with a verify call.
19703         * lib/relocwrapper.c (verify1): Likewise.
19704         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
19705         Likewise.
19706         * modules/malloca (Depends-on): Add 'verify'.
19707         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
19708         * modules/vasnprintf (Depends-on): Add 'verify'.
19709         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
19710         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
19711         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
19712         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
19713         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
19714         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
19715         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
19716
19717         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
19718
19719         Formerly the style was sometimes 2*X - 1, because the C standard
19720         was wrongly thought to disallow ?: in integral constant expressions.
19721         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
19722         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
19723         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
19724         * lib/stdint.in.h (_verify_intmax_size): Likewise.
19725         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
19726         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
19727         verify that time_t cannot be floating.
19728
19729 2010-10-08  Eric Blake  <eblake@redhat.com>
19730
19731         time: enforce recent POSIX ruling that time_t is integral
19732         * lib/time.in.h (__time_t_must_be_integral): Detect any
19733         problematic systems, allowing the rest of gnulib to assume POSIX.
19734
19735 2010-10-08  Jim Meyering  <meyering@redhat.com>
19736
19737         fdopendir: fix a bug on systems lacking openat and /proc support
19738         OpenBSD 4.7 is one such system.  The most noticeable effect was
19739         failure of any application making nontrivial use of fts: rm, du,
19740         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
19741           ./rm: traversal failed: `a': Bad file descriptor
19742         Debugging that, you see that even though FD 6 was closed just
19743         prior to the opendir call in fd_clone_opendir, its resulting
19744         dir->dd_fd was 8, rather than the expected value of 6:
19745
19746         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
19747         93                close (fd);
19748         (gdb) n
19749         94                dir = fd_clone_opendir (dupfd);
19750         (gdb) n
19751         95                saved_errno = errno;
19752         (gdb) p dir->dd_fd
19753         $11 = 8
19754
19755         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
19756         The problem is that on OpenBSD, fd_clone_opendir has to resort
19757         to using the old-style save/restore CWD mechanism, due to its
19758         lack of openat/proc support, and *that* would steal the FD (6)
19759         that opendir was supposed to use.
19760
19761         The fix is to squirrel away the desired FD so that save_cwd uses a
19762         different one, and then free the dest FD right before calling opendir.
19763         That guarantees opendir will use the required file descriptor.
19764
19765         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
19766
19767 2010-10-08  Bruno Haible  <bruno@clisp.org>
19768
19769         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
19770         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
19771
19772 2010-10-08  Bruno Haible  <bruno@clisp.org>
19773
19774         nanosleep: Make replacement POSIX compliant.
19775         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
19776         is out of range.
19777         Reported by Jim Meyering.
19778
19779 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
19780
19781         bootstrap: add hook for altering gnulib.mk, for Bison
19782         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
19783         the Bison bootstrapping process can rewrite file names and variables
19784         in this file before later parts of 'bootstrap' use the file.
19785         Bison wants to include lib/gnulib.mk from the top-level makefile,
19786         so it needs the file names in this file to be relative to the top
19787         level, not relative to lib; plus it needs variable names to be
19788         rewritten.
19789         (slurp): Use the new function.
19790
19791         bootstrap: reformat for readability
19792         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
19793
19794 2010-10-08  Eric Blake  <eblake@redhat.com>
19795
19796         docs: update cygwin progress
19797         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
19798         1.7.7.
19799         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
19800         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
19801         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
19802         * doc/posix-functions/carg.texi (carg): Likewise.
19803         * doc/posix-functions/cargf.texi (cargf): Likewise.
19804         * doc/posix-functions/casin.texi (casin): Likewise.
19805         * doc/posix-functions/casinf.texi (casinf): Likewise.
19806         * doc/posix-functions/casinh.texi (casinh): Likewise.
19807         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
19808         * doc/posix-functions/catan.texi (catan): Likewise.
19809         * doc/posix-functions/catanf.texi (catanf): Likewise.
19810         * doc/posix-functions/catanh.texi (catanh): Likewise.
19811         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
19812         * doc/posix-functions/ccos.texi (ccos): Likewise.
19813         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
19814         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
19815         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
19816         * doc/posix-functions/cexp.texi (cexp): Likewise.
19817         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
19818         * doc/posix-functions/cimag.texi (cimag): Likewise.
19819         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
19820         * doc/posix-functions/clog.texi (clog): Likewise.
19821         * doc/posix-functions/clogf.texi (clogf): Likewise.
19822         * doc/posix-functions/conj.texi (conj): Likewise.
19823         * doc/posix-functions/conjf.texi (conjf): Likewise.
19824         * doc/posix-functions/cpow.texi (cpow): Likewise.
19825         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
19826         * doc/posix-functions/cproj.texi (cproj): Likewise.
19827         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
19828         * doc/posix-functions/creal.texi (creal): Likewise.
19829         * doc/posix-functions/crealf.texi (crealf): Likewise.
19830         * doc/posix-functions/csin.texi (csin): Likewise.
19831         * doc/posix-functions/csinf.texi (csinf): Likewise.
19832         * doc/posix-functions/csinh.texi (csinh): Likewise.
19833         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
19834         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
19835         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
19836         * doc/posix-functions/ctan.texi (ctan): Likewise.
19837         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
19838         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
19839         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
19840         * doc/posix-headers/complex.texi (complex.h): Likewise.
19841
19842 2010-10-07  Jim Meyering  <meyering@redhat.com>
19843
19844         parse-datetime: avoid compilation failure on OpenBSD 4.7
19845         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
19846         This works around a compilation failure on OpenBSD 4.7:
19847         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
19848
19849 2010-10-07  Eric Blake  <eblake@redhat.com>
19850
19851         docs: update cygwin progress
19852         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
19853         1.7.6.
19854         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
19855         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
19856         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
19857         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
19858         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
19859         Likewise.
19860         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
19861         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
19862         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
19863         Likewise.
19864         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
19865         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
19866         Likewise.
19867         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
19868         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
19869         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
19870         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
19871         Likewise.
19872         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
19873         Likewise.
19874         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
19875
19876         docs: update parse-datetime history
19877         * doc/parse-datetime.texi (Authors of parse_datetime): Better
19878         documentation of this function's history and alternatives.
19879
19880         cygwin: use more robust version check
19881         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
19882         exclude an eventual cygwin 1.9.1.
19883         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19884         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19885         (gl_FUNC_STRCASESTR): Likewise.
19886         Reported by Bruno Haible.
19887
19888 2010-10-06  Bruno Haible  <bruno@clisp.org>
19889
19890         string, sys_select: Avoid #including large headers unless necessary.
19891         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
19892         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
19893         OSF/1, BeOS, Haiku.
19894         Reported by Jim Meyering.
19895
19896 2010-10-05  Eric Blake  <eblake@redhat.com>
19897
19898         memmem, strstr, strcasestr: fix bug with long periodic needle
19899         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
19900         periodic needle having false positive.
19901         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
19902         and cygwin 1.7.7.
19903         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
19904         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19905         (gl_FUNC_STRCASESTR): Likewise.
19906         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19907         * tests/test-memmem.c (main): Expose the bug.
19908         * tests/test-strcasestr.c (main): Likewise.
19909         * tests/test-strstr.c (main): Likewise.
19910         * tests/test-c-strcasestr.c (main): Likewise.
19911         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
19912         * doc/posix-functions/strstr.texi (strstr): Likewise.
19913         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
19914         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
19915
19916 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19917
19918         parse-datetime: do some more renaming
19919         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
19920         parse_datetime, not get_date.  Mention the renaming.
19921         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
19922         in comments.
19923         * m4/bison.m4: Likewise.
19924
19925 2010-10-05  Eric Blake  <eblake@redhat.com>
19926
19927         parse-datetime: better name than get_date
19928         * NEWS: Reword the deprecation notice.
19929         * modules/get_date: Rename to modules/parse-datetime.
19930         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
19931         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
19932         * lib/get_date.y: Rename to lib/parse-datetime.y.
19933         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
19934         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
19935         * doc/getdate.texi: Provide fallback wrapper.
19936         * lib/getdate.h: Move guts, and wrap...
19937         * lib/parse-datetime.h: ...new file.
19938         * lib/parse-datetime.y (get_date): Rename...
19939         (parse_datetime): ...to this.
19940         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
19941         (gl_PARSE_DATETIME): ...to this.
19942         * doc/posix-functions/getdate.texi (get_date): Provide fallback
19943         documentation.
19944         * modules/getdate (Files): Provide fallback docs and header.
19945         (Notice, Depends-on): Update references.
19946         * tests/test-parse-datetime.c: Likewise.
19947         * DEPENDENCIES: Likewise.
19948         * MODULES.html.sh (Date and time <time.h>): Likewise.
19949         * doc/parse-datetime.texi (Date input formats)
19950         (Authors of parse_datetime): Likewise.
19951         * modules/parse-datetime (Files, configure.ac, Makefile.am)
19952         (Include): Likewise.
19953         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
19954         * gnulib-tool: Likewise.
19955         * m4/bison.m4 (gl_BISON): Likewise.
19956         Suggested by Bruno Haible.
19957
19958 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19959
19960         more ports to Solaris tr, which needs [] around ranges
19961         * gnulib-tool: Solaris tr needs [] around ranges.
19962         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19963         * tests/test-pipe-filter-gi1.c (main): Likewise.
19964         * tests/test-pipe-filter-ii1.c (main): Likewise.
19965
19966 2010-10-05  Eric Blake  <eblake@redhat.com>
19967
19968         bootstrap: fix Solaris regression
19969         * build-aux/bootstrap (check_versions): Solaris tr still needs []
19970         around ranges.
19971         Reported by Pádraig Brady.
19972
19973         bootstrap: work with pkg-config
19974         * build-aux/bootstrap (check_versions): Also transliterate - in
19975         prerequisite name.
19976         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
19977         prerequisites that were already found, to avoid confusion.
19978         Reported by Justin Clift.
19979
19980         faccessat: remove unused wrappers
19981         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
19982         presence of these wrappers dragged in -lgen on Solaris.
19983         Reported by Clemens Brogi; fix suggested by Paul Eggert.
19984
19985 2010-10-05  Jim Meyering  <meyering@redhat.com>
19986
19987         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
19988         * Makefile (sc_pragma_columns): New syntax-check rule.
19989
19990 2010-10-04  Bruno Haible  <bruno@clisp.org>
19991
19992         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
19993         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
19994         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
19995         Reported by Bruce Korb and Eric Blake.
19996
19997 2010-10-04  Bruno Haible  <bruno@clisp.org>
19998
19999         threadlib: Make option --with-libpth-prefix work.
20000         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
20001         use $LIBPTH, not just -lpth.
20002
20003 2010-10-04  Bruno Haible  <bruno@clisp.org>
20004
20005         Avoid line length limitation from HP NonStop system header files.
20006         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
20007         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
20008         * lib/ctype.in.h: Likewise.
20009         * lib/dirent.in.h: Likewise.
20010         * lib/errno.in.h: Likewise.
20011         * lib/fcntl.in.h: Likewise.
20012         * lib/float.in.h: Likewise.
20013         * lib/getopt.in.h: Likewise.
20014         * lib/iconv.in.h: Likewise.
20015         * lib/inttypes.in.h: Likewise.
20016         * lib/langinfo.in.h: Likewise.
20017         * lib/locale.in.h: Likewise.
20018         * lib/math.in.h: Likewise.
20019         * lib/netdb.in.h: Likewise.
20020         * lib/netinet_in.in.h: Likewise.
20021         * lib/poll.in.h: Likewise.
20022         * lib/pthread.in.h: Likewise.
20023         * lib/pty.in.h: Likewise.
20024         * lib/sched.in.h: Likewise.
20025         * lib/se-selinux.in.h: Likewise.
20026         * lib/search.in.h: Likewise.
20027         * lib/signal.in.h: Likewise.
20028         * lib/spawn.in.h: Likewise.
20029         * lib/stdarg.in.h: Likewise.
20030         * lib/stddef.in.h: Likewise.
20031         * lib/stdint.in.h: Likewise.
20032         * lib/stdio.in.h: Likewise.
20033         * lib/stdlib.in.h: Likewise.
20034         * lib/string.in.h: Likewise.
20035         * lib/strings.in.h: Likewise.
20036         * lib/sys_file.in.h: Likewise.
20037         * lib/sys_ioctl.in.h: Likewise.
20038         * lib/sys_select.in.h: Likewise.
20039         * lib/sys_socket.in.h: Likewise.
20040         * lib/sys_stat.in.h: Likewise.
20041         * lib/sys_time.in.h: Likewise.
20042         * lib/sys_times.in.h: Likewise.
20043         * lib/sys_utsname.in.h: Likewise.
20044         * lib/sys_wait.in.h: Likewise.
20045         * lib/sysexits.in.h: Likewise.
20046         * lib/termios.in.h: Likewise.
20047         * lib/time.in.h: Likewise.
20048         * lib/unistd.in.h: Likewise.
20049         * lib/wchar.in.h: Likewise.
20050         * lib/wctype.in.h: Likewise.
20051         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
20052         * modules/ctype (Makefile.am): Likewise.
20053         * modules/dirent (Makefile.am): Likewise.
20054         * modules/errno (Makefile.am): Likewise.
20055         * modules/fcntl-h (Makefile.am): Likewise.
20056         * modules/float (Makefile.am): Likewise.
20057         * modules/getopt-posix (Makefile.am): Likewise.
20058         * modules/iconv-h (Makefile.am): Likewise.
20059         * modules/inttypes (Makefile.am): Likewise.
20060         * modules/langinfo (Makefile.am): Likewise.
20061         * modules/locale (Makefile.am): Likewise.
20062         * modules/math (Makefile.am): Likewise.
20063         * modules/netdb (Makefile.am): Likewise.
20064         * modules/netinet_in (Makefile.am): Likewise.
20065         * modules/poll-h (Makefile.am): Likewise.
20066         * modules/pthread (Makefile.am): Likewise.
20067         * modules/pty (Makefile.am): Likewise.
20068         * modules/sched (Makefile.am): Likewise.
20069         * modules/search (Makefile.am): Likewise.
20070         * modules/selinux-h (Makefile.am): Likewise.
20071         * modules/signal (Makefile.am): Likewise.
20072         * modules/spawn (Makefile.am): Likewise.
20073         * modules/stdarg (Makefile.am): Likewise.
20074         * modules/stddef (Makefile.am): Likewise.
20075         * modules/stdint (Makefile.am): Likewise.
20076         * modules/stdio (Makefile.am): Likewise.
20077         * modules/stdlib (Makefile.am): Likewise.
20078         * modules/string (Makefile.am): Likewise.
20079         * modules/strings (Makefile.am): Likewise.
20080         * modules/sys_file (Makefile.am): Likewise.
20081         * modules/sys_ioctl (Makefile.am): Likewise.
20082         * modules/sys_select (Makefile.am): Likewise.
20083         * modules/sys_socket (Makefile.am): Likewise.
20084         * modules/sys_stat (Makefile.am): Likewise.
20085         * modules/sys_time (Makefile.am): Likewise.
20086         * modules/sys_times (Makefile.am): Likewise.
20087         * modules/sys_utsname (Makefile.am): Likewise.
20088         * modules/sys_wait (Makefile.am): Likewise.
20089         * modules/sysexits (Makefile.am): Likewise.
20090         * modules/termios (Makefile.am): Likewise.
20091         * modules/time (Makefile.am): Likewise.
20092         * modules/unistd (Makefile.am): Likewise.
20093         * modules/wchar (Makefile.am): Likewise.
20094         * modules/wctype (Makefile.am): Likewise.
20095
20096 2010-10-04  Bruno Haible  <bruno@clisp.org>
20097
20098         read-file tests: Avoid a test failure on NonStop Kernel.
20099         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
20100         a regular file.
20101         Reported by Joachim Schmitz <schmitz@hp.com>.
20102
20103 2010-10-03  Bruno Haible  <bruno@clisp.org>
20104
20105         gnulib-tool: Fixes for --create-testdir with --libtool.
20106         * gnulib-tool (func_get_automake_snippet): Don't augment
20107         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
20108         an executable.
20109         (func_create_testdir): Handle module 'alloca' like func_import.
20110         Reported by Bruce Korb <bruce.korb@gmail.com>.
20111
20112 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
20113
20114         Avoid some lines longer than 80 characters.
20115         * lib/stdint.in.h: Break long comment lines.
20116         * lib/math.in.h: Likewise.
20117         (_GL_NUM_UINT_WORDS): New macro, for readability.
20118         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
20119         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
20120         * lib/stdlib.in.h: Likewise.
20121         * lib/spawn.in.h: Likewise.
20122         * lib/sys_socket.in.h: Update an URL.
20123         * lib/sys_stat.in.h: Break long line.
20124
20125 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
20126
20127         Improve pmccabe2html.
20128         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
20129         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
20130         when the sources change. Remove the line in the HTML about "Used
20131         ranges" (which implied that there might be other unused ranges),
20132         rename "Resume" to "Summary" (easier to understand for more users).
20133         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
20134         styles, and some unnecessary blank lines.
20135
20136 2010-10-03  Bruno Haible  <bruno@clisp.org>
20137             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
20138
20139         acl: Add support for ACLs on NonStop Kernel.
20140         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
20141         Check whether the function aclsort() exists.
20142         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
20143         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
20144         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20145         (acl_nontrivial [HAVE_ACLSORT]: New function.
20146         (file_has_acl): Implement for NonStop Kernel.
20147         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20148         (qset_acl): Implement for NonStop Kernel.
20149         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
20150         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20151         (main): Implement for NonStop Kernel.
20152         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
20153         Kernel. Handle this flavor.
20154         * tests/test-set-mode-acl.sh: Likewise.
20155         * tests/test-copy-acl.sh: Likewise.
20156         * tests/test-copy-file.sh: Likewise.
20157
20158 2010-10-03  Bruno Haible  <bruno@clisp.org>
20159
20160         Info about ACLs on NonStop Kernel.
20161         * doc/acl-resources.txt: Add info about NonStop Kernel.
20162         References by Joachim Schmitz <schmitz@hp.com>.
20163
20164 2010-10-02  Bruno Haible  <bruno@clisp.org>
20165
20166         Define missing EDQUOT on NonStop Kernel.
20167         * lib/errno.in.h (EDQUOT): Assign a value if missing.
20168         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
20169         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
20170         missing.
20171         * doc/posix-headers/errno.texi: Mention the NSK bug.
20172         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
20173         Reported by Joachim Schmitz <schmitz@hp.com>.
20174
20175 2010-10-02  Bruno Haible  <bruno@clisp.org>
20176
20177         Update doc for POSIX:2008.
20178         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
20179         Update URL of POSIX specification.
20180
20181 2010-10-02  Bruno Haible  <bruno@clisp.org>
20182
20183         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
20184         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
20185         from gnulib, not from Automake.
20186
20187 2010-10-02  Bruno Haible  <bruno@clisp.org>
20188
20189         New module 'system-posix'.
20190         * modules/system-posix: New file.
20191         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
20192         module is present.
20193         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
20194         GNULIB_SYSTEM_POSIX.
20195         * modules/stdlib (Depends-on): Remove sys_wait.
20196         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
20197         * doc/posix-functions/system.texi: Mention the new module.
20198         * doc/posix-headers/stdlib.texi: Likewise.
20199         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
20200         define test_sys_wait_macros to a no-op.
20201         Reported by Sam Steingold <sds@gnu.org>.
20202
20203 2010-09-30  Bruno Haible  <bruno@clisp.org>
20204
20205         More renaming from 'getdate' to 'get_date'.
20206         * doc/get_date.texi: Renamed from doc/getdate.texi.
20207         * modules/get_date (Files): Update.
20208         * MODULES.html.sh (Date and time <time.h>): Update.
20209         * DEPENDENCIES: Update.
20210         * gnulib-tool: Update comment.
20211         * m4/bison.m4 (gl_BISON): Likewise.
20212         * m4/get_date.m4 (gl_GET_DATE): Likewise.
20213
20214 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
20215
20216         bootstrap: support ACLOCAL_FLAGS during aclocal
20217         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
20218         can add additional -I dir for third-party .m4 files.
20219
20220 2010-09-30  Eric Blake  <eblake@redhat.com>
20221
20222         bootstrap: use glibtoolize on MacOS
20223         * build-aux/bootstrap (check_versions): Convert libtool into
20224         libtoolize.
20225         (tool search): Move libtool check earlier, and look for
20226         glibtoolize for MacOS.
20227         (gnulib_tool_options): Auto-add --libtool when appropriate.
20228         Reported by Justin Clift.
20229
20230         poll: fix typo that broke test on MacOS
20231         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
20232         Reported by Justin Clift.
20233
20234         getdate: rename to get_date
20235         Note: getdate.h is not renamed, to minimize client impact.
20236         * modules/getdate: Mark obsolete.  Move old contents...
20237         * modules/get_date: ...to new module name.
20238         * modules/getdate-tests: Move...
20239         * modules/get_date-tests: ...here.
20240         * m4/getdate.m4: Move...
20241         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
20242         * lib/getdate.y: Move...
20243         * lib/get_date.y: ...here.
20244         * tests/test-getdate.c: Move...
20245         * tests/test-get_date.c: ...here.
20246         * doc/posix-functions/getdate.texi (getdate): Update name.
20247         * NEWS: Mention the change.
20248
20249 2010-09-29  Bruno Haible  <bruno@clisp.org>
20250
20251         Separate the module 'waitpid' from the module 'sys_wait'.
20252         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
20253         present.
20254         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
20255         gl_MODULE_INDICATOR_FOR_TESTS.
20256         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
20257         * modules/sys_wait (Depends-on): Remove waitpid.
20258         (Makefile.am): Substitute GNULIB_WAITPID.
20259         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
20260         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
20261         signature only if the 'waitpid' module is present.
20262         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
20263         * NEWS: Mention the change.
20264         * modules/grantpt (Depends-on): Add waitpid.
20265         * modules/wait-process (Depends-on): Likewise.
20266
20267 2010-09-29  Bruno Haible  <bruno@clisp.org>
20268
20269         More tests for module 'sys_wait'.
20270         * modules/sys_wait-c++-tests: New file.
20271         * tests/test-sys_wait-c++.cc: New file.
20272         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
20273         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
20274
20275 2010-09-29  Bruno Haible  <bruno@clisp.org>
20276
20277         New module 'waitpid'.
20278         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
20279         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
20280         Don't include <process.h>.
20281         (waitpid): Declare only, using modern idiom.
20282         * m4/waitpid.m4: New file.
20283         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
20284         * modules/waitpid: New file.
20285         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
20286         (Makefile.am): Update.
20287         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
20288
20289 2010-09-28  Bruno Haible  <bruno@clisp.org>
20290
20291         poll: Assume ANSI C.
20292         * lib/poll.c (poll): Use an ANSI C declaration.
20293
20294 2010-09-28  Bruno Haible  <bruno@clisp.org>
20295
20296         poll-h: Create poll.h on all platforms.
20297         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
20298         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
20299         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
20300         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
20301         (gl_REPLACE_POLL_H): Don't set POLL_H.
20302         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
20303         * modules/poll-h (Depends-on): Add include_next.
20304         (Makefile.am): Create poll.h unconditionally. Substitute also
20305         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
20306
20307 2010-09-28  Bruno Haible  <bruno@clisp.org>
20308
20309         Tests for module 'poll-h'.
20310         * modules/poll-h-c++-tests: New file.
20311         * tests/test-poll-h-c++.cc: New file.
20312
20313         Tests for module 'poll-h'.
20314         * modules/poll-h-tests: New file.
20315         * tests/test-poll-h.c: New file.
20316
20317 2010-09-28  Bruno Haible  <bruno@clisp.org>
20318
20319         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
20320         * modules/poll-h (Depends-on): Add 'extensions'.
20321
20322 2010-09-28  Bruno Haible  <bruno@clisp.org>
20323
20324         New module 'poll-h'.
20325         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
20326         (poll): Use modern idiom.
20327         * modules/poll-h: New file.
20328         * modules/poll (Files): Remove lib/poll.in.h.
20329         (Depends-on): Add poll-h.
20330         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
20331         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
20332         * m4/poll_h.m4: New file.
20333         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
20334         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
20335         and invoke gl_REPLACE_POLL_H.
20336         * lib/poll.c: Use common idiom.
20337         * tests/test-poll.c: Likewise.
20338         * doc/posix-headers/poll.texi: Mention the poll-h module.
20339         Suggested by Eric Blake.
20340
20341 2010-09-26  Bruno Haible  <bruno@clisp.org>
20342
20343         sys_wait: Implement WSTOPSIG.
20344         * lib/sys_wait.in.h (WSTOPSIG): New macro.
20345         Reported by Simon Josefsson.
20346
20347 2010-09-26  Simon Josefsson  <simon@josefsson.org>
20348
20349         stdlib, sys_wait: Avoid compilation error on mingw.
20350         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
20351
20352 2010-09-26  Bruno Haible  <bruno@clisp.org>
20353
20354         stdlib tests: Avoid code duplication.
20355         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
20356         * modules/sys_wait-tests (Files): Likewise.
20357         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
20358         * tests/test-stdlib.c: Include test-sys_wait.h.
20359         (main): Invoke test_sys_wait_macros.
20360         * tests/test-sys_wait.c: Include test-sys_wait.h.
20361         (main): Invoke test_sys_wait_macros.
20362
20363 2010-09-25  Simon Josefsson  <simon@josefsson.org>
20364
20365         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
20366         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
20367         sure Windows sockets are working before calling getaddrinfo.
20368         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
20369         * doc/gnulib.texi (Windows sockets): Fix typo.
20370
20371 2010-09-25  Bruno Haible  <bruno@clisp.org>
20372
20373         Tests for module 'regex-quote'.
20374         * modules/regex-quote-tests: New file.
20375         * tests/test-regex-quote.c: New file.
20376
20377         New module 'regex-quote'.
20378         * lib/regex-quote.h: New file.
20379         * lib/regex-quote.c: New file.
20380         * modules/regex-quote: New file.
20381         Suggested by Reuben Thomas <rrt@sc3d.org>.
20382
20383 2010-09-24  Bruno Haible  <bruno@clisp.org>
20384
20385         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
20386         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
20387
20388 2010-09-23  Bruno Haible  <bruno@clisp.org>
20389
20390         setenv: Relax license.
20391         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
20392         Blake.
20393         Requested by Eric Blake.
20394
20395 2010-09-22  Bruno Haible  <bruno@clisp.org>
20396
20397         termios: Relax license.
20398         * modules/termios (License): Change to LGPLv2+.
20399         Requested by Eric Blake.
20400
20401 2010-09-22  Bruno Haible  <bruno@clisp.org>
20402
20403         threadlib: Allow the package to change the default to 'no'.
20404         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
20405         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
20406         Reported by Paul Eggert.
20407
20408 2010-09-22  Pádraig Brady  <P@draigbrady.com>
20409             Bruno Haible  <bruno@clisp.org>
20410
20411         Fix endless loop in mbmemcasecoll.
20412         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
20413         byte.
20414         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
20415
20416 2010-09-22  Bruno Haible  <bruno@clisp.org>
20417
20418         Tests for module 'memcoll'.
20419         * modules/memcoll-tests: New file.
20420         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
20421
20422         memcoll, xmemcoll: Clarify size vs. length.
20423         * modules/memcoll.c (memcoll0): Clarify specification.
20424         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
20425         passed to collate_error.
20426
20427 2010-09-22  Bruno Haible  <bruno@clisp.org>
20428
20429         Tests for module 'memcasecmp'.
20430         * modules/memcasecmp-tests: New file.
20431         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
20432
20433 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
20434
20435         * lib/pthread.in.h: Add split double-inclusion guard, and include
20436         system <pthread.h> if there is one.  Use @@-style as in other
20437         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
20438         pthread.h doesn't.
20439         (pthread_mutexattr_destroy, pthread_mutexattr_init):
20440         (pthread_mutexattr_settype, pthread_mutex_trylock):
20441         New static inline functions, if there's no system <pthread.h>.
20442         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
20443         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
20444         Approximate with mutexes if the system lacks spinlocks, as in
20445         MacOS.
20446         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
20447         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
20448         @@-style.  Check for spinlocks separately.
20449         (gl_PTHREAD_DEFAULTS): New macro.
20450         * modules/pthread: Redo to use a more typical style for in.h files.
20451
20452 2010-09-21  Eric Blake  <eblake@redhat.com>
20453
20454         net_if: enhance tests
20455         * tests/test-net_if.c (main): Move signature checks earlier.
20456         Print failures to stderr.
20457         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
20458         Document the bug that we do not yet fix.
20459
20460 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
20461
20462         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
20463         about gnulib, not GSS.
20464
20465 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
20466
20467         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
20468         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
20469         for Emacs.
20470         * build-aux/pmccabe2html: Make Makefile.am example code more
20471         cut-and-paste friendly.
20472
20473 2010-09-21  Simon Josefsson  <simon@josefsson.org>
20474
20475         * tests/test-net_if.c: New file.
20476         * modules/net_if-tests: New file.
20477
20478 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
20479
20480         pthread: add pthread_spin_destroy
20481         * lib/pthread.in.h (pthread_spin_destroy): New function.
20482
20483 2010-09-19  Bruno Haible  <bruno@clisp.org>
20484
20485         gnulib-tool: Fix --help output.
20486         * gnulib-tool (func_usage): Fix help message.
20487         Reported by Reuben Thomas <rrt@sc3d.org>.
20488
20489 2010-09-18  Jim Meyering  <meyering@redhat.com>
20490
20491         maint.mk: avoid unexpanded \n in two diagnostics
20492         * top/maint.mk (sc_prohibit_always_true_header_tests):
20493         Don't use a literal \n in a halt=... assignment.  It would not be
20494         expanded, and the two \n bytes would appear in the diagnostic output
20495         rather than the desired newline.  Use halt=$$(printf ... instead.
20496         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
20497
20498 2010-09-18  Bruno Haible  <bruno@clisp.org>
20499
20500         netinet_in: Doc tweak.
20501         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
20502         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20503
20504 2010-09-18  Jim Meyering  <meyering@redhat.com>
20505
20506         init.sh: correct an outdated comment
20507         * tests/init.sh (create_exe_shims_):  s/function/alias/
20508
20509         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
20510         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
20511         a file named "*.exe" is removed between the glob expansion and the
20512         processing of that oddly named file.
20513
20514 2010-09-17  Eric Blake  <eblake@redhat.com>
20515
20516         mirbsd: add some more support
20517         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
20518         in BSD family.
20519         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
20520         devices as OpenBSD.
20521         * m4/host-os.m4 (mirbsd): Add MirBSD.
20522
20523         tests: fix unportable assumption on sys/wait.h
20524         * tests/test-sys_wait.c (main): Relax test.
20525         * tests/test-stdlib.c (main): Likewise.
20526
20527         init.sh: accomodate directory with no .exes
20528         * tests/init.sh: Accomodate directory containing only scripts.
20529
20530         tests: avoid compiler warning
20531         * tests/test-stdlib.c (main): Use the variable.
20532
20533         fdutimens, fdutimensat: update signature, again
20534         * lib/utimens.h (gl_futimens): Delete, and move signature...
20535         (fdutimens): ...here.
20536         (fdutimensat): Rearrange signature.
20537         (lutimensat): Rename variable for clarity.
20538         * lib/fdutimensat.c (fdutimensat): Update signature.
20539         * lib/utimens.c (fdutimens): Likewise.
20540         (gl_futimens): Delete.
20541         (utimens, lutimens): Update callers.
20542         * lib/futimens.c (futimens): Likewise.
20543         * tests/test-fdutimensat.c: Likewise.
20544         * tests/test-utimens.c: Likewise.
20545         * tests/test-futimens.h: Update comment.
20546         * NEWS: Mention this.
20547         Suggested by Paul Eggert.
20548
20549 2010-09-17  Bruno Haible  <bruno@clisp.org>
20550
20551         Take over the maintenance of some older macros from Autoconf.
20552         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
20553         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
20554         GNU Autoconf.
20555         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
20556         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
20557
20558 2010-09-17  Eric Blake  <eblake@redhat.com>
20559
20560         fdutimensat: drop atflag validation
20561         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
20562         with valid fd, to close a race scenario where futimens is
20563         unsupported and FILE was replaced by a symlink.
20564         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
20565         accordingly.
20566         Suggested by Paul Eggert.
20567
20568 2010-09-16  Bruno Haible  <bruno@clisp.org>
20569
20570         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
20571         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
20572
20573 2010-09-16  Bruno Haible  <bruno@clisp.org>
20574
20575         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
20576         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
20577         login_tty exists.
20578         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20579
20580 2010-09-16  Bruno Haible  <bruno@clisp.org>
20581
20582         login_tty: Make the replacement code work on BSD systems.
20583         * lib/login_tty.c: Include <sys/ioctl.h>.
20584         (login_tty): Use ioctl TIOCSCTTY when available.
20585         * modules/login_tty (Depends-on): Add sys_ioctl.
20586         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20587
20588 2010-09-16  Bruno Haible  <bruno@clisp.org>
20589
20590         login_tty: Stricter unit test.
20591         * modules/login_tty-tests (Depends-on): Add tcgetsid.
20592         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
20593         and tcgetsid() after login_tty.
20594         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20595
20596 2010-09-16  Bruno Haible  <bruno@clisp.org>
20597
20598         New module 'tcgetsid'.
20599         * lib/tcgetsid.c: New file.
20600         * m4/tcgetsid.m4: New file.
20601         * modules/tcgetsid: New file.
20602         * modules/termios (Depends-on): Add c++defs, warn-on-use.
20603         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
20604         GNULIB_TCGETSID, HAVE_TCGETSID.
20605         * lib/termios.in.h: Include <sys/types.h>.
20606         (tcgetsid): New declaration.
20607         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
20608         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
20609         * doc/posix-functions/tcgetsid.texi: Mention the new module.
20610         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
20611
20612 2010-09-16  Bruno Haible  <bruno@clisp.org>
20613
20614         Tests for module 'termios'.
20615         * modules/termios-c++-tests: New file.
20616         * modules/termios-tests: New file.
20617         * tests/test-termios-c++.cc: New file.
20618         * tests/test-termios.c: New file.
20619
20620         New module 'termios'.
20621         * modules/termios: New file.
20622         * lib/termios.in.h: New file.
20623         * m4/termios_h.m4: New file.
20624         * doc/posix-headers/termios.texi: Mention the new module.
20625
20626 2010-09-16  Eric Blake  <eblake@redhat.com>
20627
20628         fdutimensat: add an atflag parameter
20629         * lib/fdutimensat.c (fdutimensat): Add new parameter.
20630         * lib/utimens.h (fdutimensat): Update prototype.
20631         * tests/test-fdutimensat.c: Adjust test to match.
20632         * NEWS: Document the change.
20633         Suggested by Paul Eggert.
20634
20635 2010-09-16  Bruno Haible  <bruno@clisp.org>
20636
20637         Fix typos in comments.
20638         * lib/striconveh.h: Fix typo in comment.
20639         * lib/login_tty.c (login_tty): Likewise.
20640
20641 2010-09-15  Bruno Haible  <bruno@clisp.org>
20642
20643         stdlib: clarify MirBSD WEXITSTATUS bug
20644         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
20645         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20646
20647 2010-09-15  Eric Blake  <eblake@redhat.com>
20648
20649         stdlib: work around MirBSD WEXITSTATUS bug
20650         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
20651         * modules/stdlib (Depends-on): Add sys_wait.
20652         * tests/test-sys_wait.c (main): Enhance test.
20653         * tests/test-stdlib.c (main): Likewise.
20654         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
20655
20656         docs: mention MacOS issue with WEXITSTATUS(constant)
20657         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
20658         issue.
20659         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20660
20661         strnlen: add tests
20662         * modules/strnlen-tests: New file.
20663         * tests/test-strnlen.c: Likewise.
20664
20665 2010-09-14  Bruno Haible  <bruno@clisp.org>
20666
20667         unistr/base: Avoid link errors when module 'libunistring' is also used.
20668         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
20669         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
20670         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
20671         Declare also when HAVE_LIBUNISTRING is set.
20672         Reported by Pádraig Brady <P@draigbrady.com>.
20673
20674 2010-09-14  Eric Blake  <eblake@redhat.com>
20675
20676         test-rawmemchr: make more robust
20677         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
20678         (Depends-on, configure.ac): Add needed prerequisites to use it.
20679         * modules/memchr-tests (Files, Depends-on, configure.ac):
20680         Likewise, to avoid implicit reliance on memchr module prereqs.
20681         * tests/test-memchr.c (main): Ensure proper masking.
20682         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
20683         reads.
20684
20685         memchr: detect glibc Alpha bug
20686         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
20687         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
20688         Alpha.
20689         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
20690         * tests/test-memchr.c (main): Enhance test.
20691         Reported by Nelson H. F. Beebe.
20692
20693 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20694
20695         fts, getcwd, glob: audit for dirfd returning -1
20696         * lib/fts.c (opendir): Remove #define; no longer used.
20697         (opendirat): New arg PDIR_FD.  All callers changed.
20698         (fts_build, _opendir2): Use new opendirat to avoid the need for
20699         dirfd, or for checking whether dirfd returns a negative value.
20700         Don't use opendir; always use openat followed by fdopendir.
20701         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
20702         it.
20703         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
20704         returns -1 here.
20705         * modules/fts (Depends-on): Remove dirfd.
20706         * modules/getcwd (Depends-on): Likewise.
20707
20708 2010-09-13  Eric Blake  <eblake@redhat.com>
20709
20710         float: fix broken MirBSD header
20711         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
20712         * doc/posix-headers/float.texi (float.h): Document it.
20713
20714 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20715
20716         fts: use O_NOFOLLOW to avoid race condition when opening a directory
20717         * lib/fts.c (opendirat): New arg extra_flags.
20718         (__opendir2): Use it to avoid following symlinks when opening
20719         a directory, if symlinks are not supposed to be followed.  See
20720         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
20721
20722         fdopendir: preserve argument fd before returning
20723         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
20724         (fdopendir_with_dup, fd_clone_opendir): New static functions.
20725         (fdopendir): Use them, arranging for FD to be open to the same
20726         directory that it was when it started.  (It might be temporarily
20727         closed while fdopendir is running, so this not thread- or
20728         signal-safe.)  Be careful to do the right thing even when file
20729         descriptors are scarce and dup fails with errno == EMFILE.  See
20730         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
20731
20732 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
20733
20734         regex: Pass the system regex if its only problem is 32-bit regoff_t.
20735         * NEWS: Document change.
20736         * m4/regex.m4: Disable test for regoff_t size.
20737
20738 2010-09-13  Jim Meyering  <meyering@redhat.com>
20739
20740         fts: don't operate on an invalid file descriptor after failed dup
20741         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
20742         negative file descriptor.
20743
20744 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
20745
20746         savedir: add streamsavedir, deprecate fdsavedir
20747         * NEWS: Mention deprecation of fdsavedir.
20748         * lib/savedir.c (streamsavedir): New extern function, whose name
20749         ends in "savedir" to be consistent with the others.  This differs
20750         from savedirstream in that it doesn't close its argument.  The
20751         next version of GNU tar will use this instead of fdsavedir, to
20752         avoid some race conditions and conserve file descriptors.
20753         (savedirstream): Reimplement as a wrapper around streamsavedir.
20754         (fdsavedir): Add a comment deprecating this function.  As far as
20755         I know, only GNU tar used it, and GNU tar doesn't need it any more.
20756         * lib/savedir.h (streamsavedir): New decl.
20757         (fdsavedir): Add a comment deprecating this.
20758
20759 2010-09-10  Bruno Haible  <bruno@clisp.org>
20760
20761         langinfo: Fix last commit.
20762         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
20763         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
20764         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20765
20766 2010-09-10  Bruno Haible  <bruno@clisp.org>
20767
20768         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
20769         * lib/progreloc.c (O_EXEC): Define fallback.
20770
20771 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
20772
20773         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
20774         * NEWS: Document recent changes to fcntl-h.
20775         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
20776         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
20777         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
20778         Similarly for O_SEARCH; this last was already true, but not documented.
20779         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
20780         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
20781         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
20782         Likewise.
20783         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
20784         is zero, not whether it is defined.
20785         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
20786         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
20787         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
20788
20789 2010-09-10  Bruno Haible  <bruno@clisp.org>
20790
20791         langinfo, nl_langinfo: Fix for IRIX 5.3.
20792         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
20793         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
20794         HAVE_LANGINFO_YESEXPR.
20795         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
20796         HAVE_LANGINFO_YESEXPR.
20797         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
20798         HAVE_LANGINFO_T_FMT_AMPM is 0.
20799         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
20800         HAVE_LANGINFO_YESEXPR is 0.
20801         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
20802         NOEXPR.
20803         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
20804         * doc/posix-functions/nl_langinfo.texi: Likewise.
20805         Reported by Eric Blake.
20806
20807 2010-09-10  Bruno Haible  <bruno@clisp.org>
20808
20809         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
20810         * doc/glibc-functions/login_tty.texi: Mention the include file problem
20811         on FreeBSD 8.0 and OpenBSD 4.6.
20812         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
20813         * m4/pty_h.m4 (gl_PTY_H): Likewise.
20814         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
20815         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
20816         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
20817         ac_includes_default.
20818         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20819
20820 2010-09-09  Eric Blake  <eblake@redhat.com>
20821
20822         strsignal: work around NetBSD bug
20823         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
20824         * lib/string.in.h (includes): Likewise.
20825         * doc/posix-functions/strsignal.texi (strsignal): Document the
20826         bug.
20827         Reported by Nelson H. F. Beebe.
20828
20829         gnulib-tool: work with NetBSD /bin/sh
20830         * gnulib-tool (func_cache_var, func_cache_lookup_module)
20831         (func_get_description, func_get_comment, func_get_status)
20832         (func_get_notice, func_get_applicability, func_get_filelist)
20833         (func_get_dependencies, func_get_autoconf_early_snippet)
20834         (func_get_autoconf_snippet, func_get_automake_snippet)
20835         (func_get_include_directive, func_get_link_directive)
20836         (func_get_license, func_get_maintainer, func_import): Avoid
20837         shell syntax errors from parsing syntax extensions.
20838
20839 2010-09-09  Bruno Haible  <bruno@clisp.org>
20840
20841         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20842         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
20843         a reliable way to determine whether the 'alias' command works.
20844
20845 2010-09-08  Jim Meyering  <meyering@redhat.com>
20846
20847         init.sh: penalize a set-x-impaired shell; don't disqualify it
20848         * tests/init.sh: Too many shells corrupt application stderr when
20849         you set -x, so we can't afford to disqualify them, since at least
20850         on Irix-6.5, that would disqualify all bourne shells.
20851         Instead, use a two-pass approach.
20852         On the first pass, try to find a shell that meets the stricter
20853         condition that set -x does not corrupt stderr.
20854         If no shell meets the stricter condition, retest each candidate
20855         shell, but without that extra condition.  Finally, when
20856         VERBOSE=yes is requested and set -x might cause trouble, simply
20857         issue a warning and refrain from enabling debug output.
20858
20859 2010-09-08  Eric Blake  <eblake@redhat.com>
20860
20861         unsetenv: fix OpenBSD bug
20862         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
20863         * doc/posix-functions/unsetenv.texi (unsetenv): Update
20864         documentation.
20865         Reported by Jim Meyering.
20866
20867         strtod: work around IRIX 6.5 bug
20868         * lib/strtod.c (strtod): Reparse number on shorter string if
20869         exponent parse was invalid.
20870         * tests/test-strtod.c (main): Add check for "0x1p 2".
20871         Reported by Tom G. Christensen.
20872
20873         getopt: optimize previous patch
20874         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
20875         empty variable.  Speed up awk script.
20876         Reported by Paolo Bonzini.
20877
20878 2010-09-08  Jim Meyering  <meyering@redhat.com>
20879
20880         test.sh: disqualify shells for which set -x corrupts stderr
20881         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
20882         and OpenBSD 4.7.  They make it so with "set -x", environment settings
20883         appear in stderr output.  For example, this command:
20884             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
20885         prints "P=1" on those two systems:
20886
20887 2010-09-08  Bruno Haible  <bruno@clisp.org>
20888
20889         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20890         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
20891         commands, because some shells ignore redirections when there is an
20892         error in the command lookup.
20893         Reported by Eric Blake.
20894
20895 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
20896
20897         * lib/regex.h: Fix a mention of `regex_compile' (should be
20898         `re_compile_pattern').
20899         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
20900         (re_set_registers): Correct name of parameter in comment.
20901
20902         * doc/regex.texi: Add documentation for missing syntax flags.
20903         Remove commented-out documentation of defunct syntax option
20904         RE_NO_EMPTY_ALTS.
20905         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
20906         Add documentation of re_set_registers.
20907         Document trick to re-use a pattern buffer by setting fastmap manually.
20908         Update documentation of struct re_pattern_buffer per public members.
20909         Uncomment documentation of equivalence class operators and
20910         collating symbol operators, since they are now implemented,
20911         Explain leftmost-longest matching in relation to alternatives.
20912         Tidy documentation of substring matching.
20913         Remove POSIX documentation, which is done better in
20914         glibc, and refer the reader there. Keep BSD API documentation, as
20915         that is not readily available elsewhere.
20916
20917 2010-09-07  Eric Blake  <eblake@redhat.com>
20918
20919         getopt: handle POSIXLY_CORRECT set but not exported
20920         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
20921         export state of POSIXLY_CORRECT, due to bash set -o posix.
20922         Reported by Dustin J. Mitchell.
20923
20924 2010-09-05  Bruno Haible  <bruno@clisp.org>
20925
20926         gnulib-tool: Highlight the changed options.
20927         * gnulib-tool (func_usage): Display the --import, --add-import,
20928         --remove-import explanations in bold font.
20929
20930 2010-09-06  Karl Berry  <karl@gnu.org>
20931
20932         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
20933
20934 2010-09-05  Bruno Haible  <bruno@clisp.org>
20935
20936         uniwidth/width: Update comment.
20937         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
20938         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
20939
20940 2010-09-05  Bruno Haible  <bruno@clisp.org>
20941
20942         isinf, isnan: Relax license.
20943         * modules/isinf (License): Change from GPL to LGPL, with consent from
20944         Ben Pfaff.
20945         * modules/isnan (License): Likewise.
20946         Requested by Ludovic Courtès.
20947
20948 2010-09-04  Bruno Haible  <bruno@clisp.org>
20949
20950         gnulib-tool: Help migration from --import to --add-import or --update.
20951         * gnulib-tool: Emit a verbose error message when --import is used
20952         without any module name.
20953
20954 2010-09-04  Bruno Haible  <bruno@clisp.org>
20955
20956         Update doc about gnulib-tool.
20957         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
20958         'gnulib-tool --update' in more detail.
20959         Reported by Eric Blake.
20960
20961 2010-09-04  Bruno Haible  <bruno@clisp.org>
20962
20963         gnulib-tool: Change --import. New options --add/remove-import.
20964         * gnulib-tool: New options --add-import, --remove-import.
20965         (func_usage): Document them.
20966         (have_associative): Define always.
20967         (func_import): In import mode, don't merge the specified settings with
20968         the cached settings. Implement remove-import mode.
20969         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
20970         Explain when to use them versus --import.
20971         (Simple update): Use --add-import instead of --import.
20972         * NEWS: Mention the change.
20973
20974 2010-09-04  Bruno Haible  <bruno@clisp.org>
20975
20976         * doc/gnulib-tool.texi (Initial import): Update paragraph about
20977         separate gnulib.mk.
20978
20979 2010-09-04  Bruno Haible  <bruno@clisp.org>
20980
20981         gnulib-tool: Don't talk about CVS any more.
20982         * gnulib-tool (func_usage, func_import): Write "version control"
20983         instead of CVS.
20984
20985 2010-09-04  Jim Meyering  <meyering@redhat.com>
20986
20987         maint.mk: avoid obscure sc_copyright_check failure in coreutils
20988         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
20989         false positives (whose names may be ill-chosen) when searching
20990         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
20991         would cause a false-positive.
20992
20993         avoid coreutils "make distcheck" failure
20994         Coreutils tests with an absolute build directory name that contains
20995         a space.  Not quoting this directory name caused a failure.
20996         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
20997         * tests/test-vc-list-files-cvs.sh: Likewise.
20998
20999 2010-09-04  Bruno Haible  <bruno@clisp.org>
21000
21001         gnulib-tool: Avoid error when run in a package without Makefile.am.
21002         * gnulib-tool: When collecting the m4dirs in a package that does not
21003         have a Makefile.am, eliminate those directories that contain no
21004         gnulib-cache.m4. Fix expression that counts these directories.
21005
21006 2010-09-04  Bruno Haible  <bruno@clisp.org>
21007
21008         update-copyright test: Improve output when perl is missing or too old.
21009         * tests/test-update-copyright.sh: Move test of Perl version down after
21010         the test whether Perl exists. Provide an explanation relating Perl's
21011         error message to Automake's SKIP: message.
21012
21013 2010-09-04  Bruno Haible  <bruno@clisp.org>
21014
21015         Don't augment PATH in TESTS_ENVIRONMENT.
21016         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
21017         set abs_aux_dir instead of augmenting PATH.
21018         * modules/vc-list-files-tests (Makefile.am): Likewise.
21019         * tests/test-update-copyright.sh: Augment PATH here.
21020         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
21021         path_prepend_.
21022         * tests/test-vc-list-files-git.sh: Likewise.
21023
21024 2010-09-04  Jim Meyering  <meyering@redhat.com>
21025
21026         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
21027         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
21028
21029 2010-09-04  Bruno Haible  <bruno@clisp.org>
21030
21031         strdup: Fix compilation error in C++ mode.
21032         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
21033         the macro.
21034
21035 2010-09-04  Bruno Haible  <bruno@clisp.org>
21036
21037         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
21038         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
21039         macro into a function.
21040         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21041
21042 2010-09-04  Bruno Haible  <bruno@clisp.org>
21043
21044         Set PATH_SEPARATOR the same way autoconf does.
21045         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
21046         the value of PATH_SEPARATOR the same way autoconf-generated configure
21047         scripts do.
21048         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
21049         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
21050
21051 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
21052
21053         Set PATH_SEPARATOR the same way autoconf does.
21054         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
21055         the same way autoconf-generated configure scripts do.
21056         * posix-modules: Likewise.
21057
21058 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
21059
21060         hash: fix safe_hasher const typo
21061         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
21062         const; otherwise, there is a type error later.
21063
21064 2010-09-02  Jim Meyering  <meyering@redhat.com>
21065
21066         test-update-copyright.sh: require perl 5.8.0
21067         * tests/test-update-copyright.sh: Require 5.8.0,
21068         which Tom G. Christensen has confirmed is adequate,
21069         while 5.6.1 is not.
21070
21071 2010-09-02  Eric Blake  <eblake@redhat.com>
21072
21073         tests: init.sh improvements for re-exec'ing with zsh
21074         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
21075         -vx through shell re-exec.
21076         Reported by Tom G. Christensen.
21077
21078         wctype: fix typo in previous commit
21079         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
21080         Reported by Ludovic Courtès.
21081
21082 2010-09-02  Jim Meyering  <meyering@redhat.com>
21083
21084         test-update-copyright.sh: skip test if Perl is too old
21085         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
21086         Reported by Tom G. Christensen.
21087
21088 2010-09-02  Bruno Haible  <bruno@clisp.org>
21089
21090         wctype: Avoid compilation error on IRIX 6.5.30.
21091         * lib/wctype.in.h (iswblank): Declare with a replacement if
21092         REPLACE_ISWBLANK is set.
21093         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
21094         declared. Set REPLACE_ISWBLANK.
21095         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
21096         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
21097         * doc/posix-headers/wctype.texi: Likewise.
21098         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21099
21100 2010-09-01  Bruno Haible  <bruno@clisp.org>
21101
21102         New module 'socketlib'.
21103         * modules/socketlib: New file.
21104         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
21105         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
21106         * modules/sockets (Depends-on): Add socketlib.
21107         Suggested by Sam Steingold <sds@gnu.org>.
21108
21109 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21110
21111         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
21112
21113         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
21114         when one needs search access to a directory but not read access.
21115         On systems where it is available, it works in some cases where
21116         O_RDONLY does not, namely on directories that are searchable but
21117         not readable, and which need only to be searchable.  If O_SEARCH
21118         is not available, fall back to the traditional method of using
21119         O_RDONLY.
21120
21121         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
21122         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
21123         when opening a directory that needs only to be searchable.
21124         * lib/chdir-safer.c (chdir_no_follow): Likewise.
21125         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
21126         * lib/openat-proc.c (openat_proc_name): Likewise.
21127         * lib/openat.c (openat_needs_fchdir): Likewise.
21128         * lib/save-cwd.c (save_cwd): Likewise.
21129         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
21130
21131 2010-08-28  Bruno Haible  <bruno@clisp.org>
21132
21133         New module 'host-cpu-c-abi'.
21134         * modules/host-cpu-c-abi: New file.
21135         * m4/host-cpu-c-abi.m4: New file, based on part of
21136         clisp/src/m4/general.m4.
21137         Requested by Sam Steingold <sds@gnu.org>.
21138
21139 2010-08-31  Eric Blake  <eblake@redhat.com>
21140         and Jim Meyering  <meyering@redhat.com>
21141
21142         hash: factor, and guard against misbehaving hasher function
21143         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
21144         of table->hasher's return value.  Also protect against a hash value
21145         so large that adding it to table->bucket results in a NULL pointer.
21146         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
21147         Use it in place of open-coded check-and-abort.
21148
21149 2010-08-30  Bruno Haible  <bruno@clisp.org>
21150
21151         hash: silence spurious clang warning
21152         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
21153         Reported by Eric Blake.
21154
21155 2010-08-30  Eric Blake  <eblake@redhat.com>
21156
21157         strstr, memmem, strcasestr: avoid leaked shell message
21158         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
21159         FreeBSD.
21160         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
21161         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
21162
21163         tests: silence clang warning
21164         * tests/test-malloca.c (do_allocation): Avoid dead store.
21165
21166 2010-08-29  Bruno Haible  <bruno@clisp.org>
21167
21168         gettext: Fix recent mistake.
21169         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
21170
21171 2010-08-29  Bruno Haible  <bruno@clisp.org>
21172
21173         selinux-h: Offer a --without-selinux option.
21174         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
21175         --without-selinux was specified, skip all tests and define
21176         HAVE_SELINUX_SELINUX_H to 0.
21177         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
21178         set LIB_SELINUX to empty.
21179         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
21180         gl_LIBSELINUX. If --without-selinux was specified, replace
21181         selinux/context.h.
21182         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
21183
21184 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21185             Bruno Haible  <bruno@clisp.org>
21186
21187         Make the module 'realloc-gnu' work again on AIX and OSF/1.
21188         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
21189         of HAVE_REALLOC.
21190         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
21191         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
21192         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
21193         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
21194
21195 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21196             Bruno Haible  <bruno@clisp.org>
21197
21198         Make the module 'calloc-gnu' work again on AIX and OSF/1.
21199         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
21200         HAVE_CALLOC.
21201         * lib/xmalloc.c: Update accordingly.
21202         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
21203         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
21204         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
21205
21206 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21207             Bruno Haible  <bruno@clisp.org>
21208
21209         Make the module 'malloc-gnu' work again on AIX and OSF/1.
21210         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
21211         HAVE_MALLOC.
21212         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
21213         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
21214         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
21215
21216 2010-08-29  Bruno Haible  <bruno@clisp.org>
21217
21218         Update modules list.
21219         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
21220         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
21221         (String handling <string.h>): Add astrxfrm.
21222         (File system functions): Add readlinkat.
21223
21224 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21225
21226         Tests for module 'realloc-gnu'.
21227         * modules/realloc-gnu-tests: New file.
21228         * tests/test-realloc-gnu.c: New file.
21229
21230         Tests for module 'calloc-gnu'.
21231         * modules/calloc-gnu-tests: New file.
21232         * tests/test-calloc-gnu.c: New file.
21233
21234         Tests for module 'malloc-gnu'.
21235         * modules/malloc-gnu-tests: New file.
21236         * tests/test-malloc-gnu.c: New file.
21237
21238 2010-08-28  Bruno Haible  <bruno@clisp.org>
21239
21240         Rename module 'realloc' -> 'realloc-gnu'.
21241         * modules/realloc-gnu: New file, copied from modules/realloc.
21242         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
21243         obsolete.
21244         * modules/mgetgroups (Depends-on): Update.
21245         * doc/posix-functions/realloc.texi: Update.
21246         * NEWS: Mention the change.
21247
21248         Rename module 'calloc' -> 'calloc-gnu'.
21249         * modules/calloc-gnu: New file, copied from modules/calloc.
21250         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
21251         obsolete.
21252         * doc/posix-functions/calloc.texi: Update.
21253         * NEWS: Mention the change.
21254
21255         Rename module 'malloc' -> 'malloc-gnu'.
21256         * modules/malloc-gnu: New file, copied from modules/malloc.
21257         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
21258         obsolete.
21259         * modules/argp (Depends-on): Update.
21260         * modules/regex (Depends-on): Update.
21261         * doc/posix-functions/malloc.texi: Update.
21262         * NEWS: Mention the change.
21263
21264 2010-08-28  Eric Blake  <eblake@redhat.com>
21265
21266         pread, pwrite: add missing dependency
21267         * modules/pread (Depends-on): Add extensions.
21268         * modules/pwrite (Depends-on): Likewise.
21269
21270 2010-08-28  Bruno Haible  <bruno@clisp.org>
21271
21272         unistr/u*-strchr: Fix tests dependencies.
21273         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
21274         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
21275         Reported by Ian Beckwith <ianb@erislabs.net>.
21276
21277 2010-08-28  Bruno Haible  <bruno@clisp.org>
21278
21279         read-file: Don't occupy too much unused memory.
21280         * lib/read-file.c (fread_file): Shrink the buffer at the end.
21281
21282 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
21283             Eric Blake  <eblake@redhat.com>
21284             Bruno Haible  <bruno@clisp.org>
21285
21286         read-file: Avoid memory reallocations with regular files.
21287         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
21288         (fread_file): With regular files, use the remaining length as the
21289         initial buffer size.  Check against overflow.
21290         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
21291         sys_stat.
21292
21293 2010-08-28  Bruno Haible  <bruno@clisp.org>
21294
21295         ftello: Relax license.
21296         * modules/ftello (License): Relax to LGPLv2+.
21297         Reported by Eric Blake.
21298
21299 2010-08-28  Bruno Haible  <bruno@clisp.org>
21300
21301         Avoid relocwrapper link errors due to gnulib replacement functions.
21302         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
21303         function.
21304         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21305
21306 2010-08-28  Bruno Haible  <bruno@clisp.org>
21307
21308         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
21309         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
21310         defined.
21311         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
21312         Suggested by Eric Blake.
21313
21314 2010-08-28  Bruno Haible  <bruno@clisp.org>
21315
21316         sys_socket, netdb: Ensure socklen_t gets defined.
21317         * modules/sys_socket (Depends-on): Add socklen.
21318         * modules/netdb (Depends-on): Likewise.
21319         * modules/getaddrinfo (Depends-on): Remove socklen.
21320         * modules/getsockopt (Depends-on): Likewise.
21321         * modules/setsockopt (Depends-on): Likewise.
21322         * tests/test-sys_socket.c: Check that socklen_t is defined.
21323         * tests/test-netdb.c: Likewise.
21324         * m4/socklen.m4: Update comments.
21325         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21326
21327 2010-08-27  Eric Blake  <eblake@redhat.com>
21328
21329         login_tty: add missing dependency
21330         * modules/login_tty (Depends-on): Add pty.
21331
21332 2010-08-26  Eric Blake  <eblake@redhat.com>
21333
21334         lib-symbol-versions: fix m4 quoting
21335         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
21336         format for AC_LINK_IFELSE.
21337
21338         glob: fix compile test
21339         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
21340
21341         btowc: fix missing file
21342         * modules/btowc (Files): Also ship locale-fr.m4.
21343
21344         lseek: fix link test
21345         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
21346         AC_LINK_IFELSE.
21347
21348         include_next: silence autoconf 2.68 warning
21349         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
21350         AC_COMPILE_IFELSE as special.
21351         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
21352         autoconf < 2.68.
21353
21354         acl: fix compilation test
21355         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
21356         AC_COMPILE_IFELSE.
21357
21358 2010-08-26  Bruno Haible  <bruno@clisp.org>
21359
21360         Modernize AC_TRY_RUN invocations.
21361         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
21362         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
21363         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
21364         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
21365         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
21366         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
21367         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
21368         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
21369         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21370         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
21371         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
21372         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
21373         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
21374         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
21375         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
21376         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
21377         gl_MBRLEN_NUL_RETVAL): Likewise.
21378         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
21379         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
21380         Likewise.
21381         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
21382         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
21383         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
21384         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
21385         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
21386         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
21387         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
21388         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
21389         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
21390         Likewise.
21391         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
21392         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
21393         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
21394         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
21395         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21396         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
21397         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
21398         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
21399         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
21400         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
21401
21402 2010-08-26  Bruno Haible  <bruno@clisp.org>
21403
21404         Modernize AC_TRY_LINK invocations.
21405         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
21406         AC_TRY_LINK.
21407         * m4/argp.m4 (gl_ARGP): Likewise.
21408         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
21409         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
21410         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
21411         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
21412         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
21413         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
21414         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
21415         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
21416         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
21417         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
21418         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
21419         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
21420         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
21421         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21422         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
21423         * m4/hostent.m4 (gl_HOSTENT): Likewise.
21424         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
21425         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
21426         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
21427         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
21428         Likewise.
21429         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
21430         Likewise.
21431         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
21432         Likewise.
21433         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
21434         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
21435         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
21436         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
21437         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
21438         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
21439         * m4/servent.m4 (gl_SERVENT): Likewise.
21440         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
21441         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
21442         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
21443         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
21444         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
21445         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
21446         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
21447         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21448         * modules/tsearch-tests (configure.ac): Likewise.
21449
21450 2010-08-26  Bruno Haible  <bruno@clisp.org>
21451
21452         Modernize AC_TRY_COMPILE invocations.
21453         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
21454         AC_TRY_COMPILE.
21455         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
21456         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
21457         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
21458         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
21459         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
21460         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
21461         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
21462         * m4/lock.m4 (gl_LOCK): Likewise.
21463         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
21464         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
21465         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
21466         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
21467         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
21468         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
21469         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
21470         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
21471         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
21472         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
21473         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
21474         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
21475         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
21476         extraneous semicolon.
21477
21478 2010-08-26  Jim Meyering  <meyering@redhat.com>
21479
21480         stat-time: relax license LGPL
21481         * modules/stat-time (License): Change from GPL to LGPL,
21482         with consent from all contributors, for use in libguile.
21483         Requested by Ludovic Courtès.
21484
21485 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
21486
21487         poll: return immediately on POLLHUP.
21488         * lib/poll.c (poll): Always set timeout before wait_timeout is
21489         computed.
21490
21491 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21492
21493         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
21494         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
21495         rmdir ("dir/.//"), unlinkat.
21496
21497 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21498
21499         stdbool: avoid spurious failure with modern xlc
21500         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
21501
21502 2010-08-24  Bruno Haible  <bruno@clisp.org>
21503
21504         getloadavg: simplify code
21505         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
21506         gl_have_func. Update comments.
21507
21508 2010-08-24  Eric Blake  <eblake@redhat.com>
21509
21510         getloadavg: don't define SVR4 on cygwin
21511         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
21512         only define SVR4 when -lkvm is required.
21513         Reported by Yaakov Selkowitz.
21514
21515 2010-08-24  Bruno Haible  <bruno@clisp.org>
21516
21517         priv-set: fix comment
21518         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
21519
21520 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
21521
21522         priv-set: fix comments
21523         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
21524         to match code, as suggested by David Bartley in:
21525         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
21526
21527 2010-08-23  Eric Blake  <eblake@redhat.com>
21528
21529         stdbool: avoid rejecting clang
21530         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
21531         * tests/test-stdbool.c: Enable more tests if using the system
21532         <stdbool.h> instead of the gnulib replacement.
21533         (main): Move xlc bug test to a runtime test for all compilers.
21534         Reported by Anders Kaseorg.
21535
21536         argz: fix shell quoting issue
21537         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
21538         Reported by Charles Wilson.
21539
21540 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
21541             Erik Faye-Lund <kusmabite@gmail.com>
21542
21543         poll, select: handle ERROR_BROKEN_PIPE.
21544         * lib/poll.c (win32_compute_revents): Return POLLHUP when
21545         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
21546         * lib/select.c (win32_compute_revents): Do not mark a pipe
21547         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
21548
21549 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
21550
21551         fts: allow compilation with C++
21552         * lib/fts_.h: Specify extern "C" linkage with C++.
21553
21554 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21555
21556         Fix gnulib-tool sed script de-commentation for AIX sed.
21557         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
21558         sed.
21559
21560 2010-08-17  Eric Blake  <eblake@redhat.com>
21561
21562         test-stddef: test for (some) offsetof bugs
21563         * tests/test-stddef.c: Enhance test to ensure correct type of
21564         offsetof.
21565         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
21566         that we are not fixing at this time.
21567
21568 2010-08-15  Bruno Haible  <bruno@clisp.org>
21569
21570         stpncpy: Allow stpncpy to be defined as a macro.
21571         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
21572         if it's already correctly declared.
21573         * lib/string.in.h (stpncpy): Undefine before redefining.
21574         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
21575
21576 2010-08-14  Bruno Haible  <bruno@clisp.org>
21577
21578         Rename module 'memxfrm' to 'amemxfrm'.
21579         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
21580         (amemxfrm): Renamed from memxfrm.
21581         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
21582         (amemxfrm): Renamed from memxfrm.
21583         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
21584         * NEWS: Mention the change.
21585         * MODULES.html.sh (String handling <string.h>): Update.
21586         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
21587         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
21588         * lib/unicase/u16-casexfrm.c: Likewise.
21589         * lib/unicase/u32-casexfrm.c: Likewise.
21590         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
21591         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
21592         * lib/uninorm/u16-normxfrm.c: Likewise.
21593         * lib/uninorm/u32-normxfrm.c: Likewise.
21594         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
21595         memxfrm.
21596         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
21597         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
21598         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
21599         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
21600         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
21601         Suggested by Paul Eggert.
21602
21603 2010-08-14  Bruno Haible  <bruno@clisp.org>
21604
21605         Tests for module 'astrxfrm'.
21606         * modules/astrxfrm-tests: New file.
21607         * tests/test-astrxfrm.c: New file.
21608
21609         New module 'astrxfrm'.
21610         * lib/astrxfrm.h: New file.
21611         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
21612         * modules/astrxfrm: New file.
21613
21614 2010-08-14  Reuben Thomas <rrt@sc3d.org>
21615
21616         regex: Tweak doc.
21617         * doc/regex.texi (Overview): Don't mention regex.c.
21618         (GNU Regular Expression Compiling): Likewise.
21619         (Match-end-of-line Operator): Mention 'not_eol'.
21620
21621 2010-08-14  Brian Gough  <bjg@gnu.org>
21622             Bruno Haible  <bruno@clisp.org>
21623
21624         git-merge-changelog: add doc relating to use with bzr and hg.
21625         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
21626
21627 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
21628
21629         pthread: fix pthread.h creation for srcdir != builddir
21630         * modules/pthread (Makefile.am): Fix the rule to work also in a
21631         non-srcdir build.
21632
21633 2010-08-13  Karl Berry  <karl@gnu.org>
21634
21635         * doc/regex.texi (Predefined Syntaxes): @smallexample.
21636         * doc/posix-*/*: force line break before @url of POSIX
21637         specifications.
21638         Suggested by Werner Lemberg.
21639
21640 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
21641
21642         strtod: fix const diagnostic
21643         * lib/strtod.c (strtod): Don't assign const char * to char *,
21644         as this elicits a warning from GCC when warnings are enabled.
21645
21646 2010-08-10  Pádraig Brady <P@draigbrady.com>
21647         and Eric Blake  <eblake@redhat.com>
21648
21649         copy-acl: ignore ENOTSUP on HP-UX
21650         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
21651         so that it is available for HP-UX.
21652         * lib/copy-acl.c (qcopy_acl): Use it.
21653         Reported by Patrick M. Callahan.
21654
21655 2010-08-10  Eric Blake  <eblake@redhat.com>
21656
21657         open, chown: relax license
21658         * modules/open (License): Change to LGPLv2+, with consent by all
21659         authors, for use in augeas.
21660         * modules/chown (License): Likewise.
21661         * modules/lchown (Likewise): Likewise.
21662         Requested by Adam Stokes.
21663
21664 2010-08-09  Karl Berry  <karl@gnu.org>
21665
21666         * build-aux/ar-lib: new file, import from Automake.
21667         * config/srclist.txt: autocheck for updates.
21668
21669 2010-08-09  Eric Blake  <eblake@redhat.com>
21670
21671         readlinkat: adjust client modules
21672         * modules/areadlinkat (Depends-on): Use readlinkat, not
21673         symlinkat.
21674         * modules/areadlinkat-with-size (Depends-on): Likewise.
21675
21676         mknod: be more vocal about danger of running tests as root
21677         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
21678         root, since that is just asking for problems.
21679         Suggested by Bruno Haible, based on a report by Rainer Tammer.
21680
21681         readlinkat: split into its own module
21682         * modules/symlinkat: Split readlinkat...
21683         * modules/readlinkat: ...into separate module.
21684         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
21685         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
21686         * lib/symlinkat.c (readlinkat): Move...
21687         * lib/readlinkat.c: ...into new file.
21688         * modules/symlinkat-tests: Split readlinkat test...
21689         * modules/readlinkat-tests: ...into separate module.
21690         * tests/test-symlinkat.c: Split...
21691         * tests/test-readlinkat.c: ...into new file.
21692         * NEWS: Document the split.
21693         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
21694         * lib/unistd.in.h (readlinkat): Likewise.
21695         Suggested by Bruno Haible.
21696
21697 2010-08-08  Bruno Haible  <bruno@clisp.org>
21698
21699         memxfrm: Speed up.
21700         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
21701         that usually only one call to strxfrm is necessary for each string
21702         part.
21703         Reported by Paul Eggert <eggert@cs.ucla.edu>.
21704
21705 2010-08-07  Karl Berry  <karl@gnu.org>
21706
21707         * doc/posix-headers/limits.texi,
21708         * doc/posix-functions/malloc.texi,
21709         * doc/posix-functions/strsignal.texi: missing @item.
21710         * doc/ld-version-script.texi: spurious leading i.
21711         * doc/regex.texi (Interval Operators): no commas inside @var.
21712
21713 2010-08-01  Bruno Haible  <bruno@clisp.org>
21714
21715         Integrate the regex documentation.
21716         * doc/gnulib.texi: Define 'cn' index.
21717         (Regular expressions): New a chapter that includes regex.texi and
21718         regexprops-generic.texi.
21719         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
21720         syntax.
21721
21722         Whitespace cleanup.
21723         * doc/regex.texi: Remove trailing spaces.
21724
21725         Add regex documentation.
21726         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
21727         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
21728         Written by Kathy A. Hargreaves and Karl Berry.
21729
21730 2010-08-01  Bruno Haible  <bruno@clisp.org>
21731
21732         link: Update documentation.
21733         * doc/posix-functions/link.texi: Update regarding Solaris.
21734
21735 2010-07-31  Bruno Haible  <bruno@clisp.org>
21736
21737         Update modules list.
21738         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
21739         (String handling <string.h>): Add memcmp2, memxfrm.
21740         (Container data structures): Add xlist, xsublist, xoset.
21741         (Core language properties): Add alignof, unused-parameter.
21742         (Process control, Numeric conversion functions <stdlib.h>): Renamed
21743         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
21744         (Unibyte characters <ctype.h>): New section.
21745         (String handling <string.h>): New section.
21746         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
21747         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
21748         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
21749         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
21750         tan, tanh, tanl, y0, y1, yn.
21751         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
21752         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
21753         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
21754         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
21755         unlockpt, vdprintf, vdprintf-posix.
21756         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
21757         (File system functions): Add concat-filename, sys_file, sys_ioctl,
21758         xconcat-filename.
21759         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
21760         getdtablesize, pipe2, pipe2-safer.
21761         (Security): New section.
21762         (Networking functions): Add accept4.
21763         (Signal handling): Add sigpipe.
21764         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
21765         mbmemcasecoll.
21766         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
21767         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
21768         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
21769         pipe-filter-ii.
21770         (Misc): Add argp-version-etc, login_tty, parse-duration.
21771
21772 2010-07-31  Bruno Haible  <bruno@clisp.org>
21773
21774         Improve doc in MODULES.html.
21775         * modules/linkat (Description): Add the word "function".
21776         * modules/mkfifo (Description): Likewise.
21777         * modules/mknod (Description): Likewise.
21778         * modules/remove (Description): Likewise.
21779         * modules/renameat (Description): Likewise.
21780         * modules/stat (Description): Likewise.
21781         * modules/symlink (Description): Likewise.
21782         * modules/unlink (Description): Likewise.
21783
21784 2010-07-31  Bruno Haible  <bruno@clisp.org>
21785
21786         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
21787         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
21788         option --enable/disable-c++ instead of --enable/disable-cxx.
21789         * NEWS: Mention the change.
21790
21791 2010-07-31  Bruno Haible  <bruno@clisp.org>
21792
21793         readlink, areadlink: Relax test a bit.
21794         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
21795         alternative to ENOTDIR.
21796         * tests/test-areadlink.h (test_areadlink): Likewise.
21797         Reported by Rainer Tammer.
21798
21799 2010-07-31  Bruno Haible  <bruno@clisp.org>
21800
21801         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
21802         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
21803         character, perform the search using U_STRCHR.
21804         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
21805         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
21806         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
21807         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
21808         Suggested by Paolo Bonzini.
21809
21810 2010-07-31  Bruno Haible  <bruno@clisp.org>
21811
21812         unistr/u*-strstr: Fix dependencies.
21813         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
21814         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
21815         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
21816
21817 2010-07-31  Bruno Haible  <bruno@clisp.org>
21818
21819         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
21820         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
21821         the beginning of the loop.
21822         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
21823         cases in 'switch' statement.
21824
21825         unistr/u8-strchr: Fix several bugs.
21826         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
21827         the string. When not found, return NULL, not a pointer near the end.
21828
21829         More tests for unistr/u8-strchr.
21830         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
21831         that the function does not read past the first occurrence of the byte
21832         being searched.
21833         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
21834         * tests/unistr/test-u16-strchr.c (main): New function.
21835         * tests/unistr/test-u32-strchr.c (main): New function.
21836
21837 2010-07-31  Bruno Haible  <bruno@clisp.org>
21838
21839         posix-modules: Ignore backup files of documentation files.
21840         * posix-modules: grep only through files named *.texi.
21841
21842 2010-07-31  Bruno Haible  <bruno@clisp.org>
21843
21844         symlinkat: Fix documentation.
21845         * doc/posix-functions/readlinkat.texi: Fix module name.
21846
21847 2010-07-31  Bruno Haible  <bruno@clisp.org>
21848
21849         fchownat: Replace also when chown has the trailing slash bug.
21850         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
21851         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
21852         introduced on 2010-04-10.
21853         Reported by Rainer Tammer.
21854
21855 2010-07-31  Bruno Haible  <bruno@clisp.org>
21856
21857         linkat: Work around AIX 7.1 bug.
21858         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
21859         whether linkat handles trailing slash correctly. If not, replace linkat
21860         and define LINKAT_TRAILING_SLASH_BUG.
21861         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
21862         check whether (fd1,file1) points to a directory if file1 or file2 ends
21863         in a slash. Code taken from lib/link.c.
21864         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
21865         Reported by Rainer Tammer.
21866
21867 2010-07-31  Bruno Haible  <bruno@clisp.org>
21868
21869         Correctly determine whether pow is available in libc on AIX 7 with xlc.
21870         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
21871         This disables an xlc optimization that was causing wrong test results.
21872         Reported by Rainer Tammer.
21873
21874 2010-07-31  Bruno Haible  <bruno@clisp.org>
21875
21876         iconv: Work around AIX 6.1..7.1 bug.
21877         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
21878         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
21879         cross-compiling, guess no on all versions of AIX.
21880         Reported by Rainer Tammer.
21881
21882 2010-07-31  Bruno Haible  <bruno@clisp.org>
21883
21884         readlink: Relax test a bit.
21885         * tests/test-readlink.h (test_readlink): Allow different errno value
21886         when readlink is called with a file name that ends in / and refers to
21887         a file.
21888         Suggested by Eric Blake.
21889         Reported by Rainer Tammer.
21890
21891 2010-07-31  Bruno Haible  <bruno@clisp.org>
21892
21893         copysign: Does not require -lm on glibc systems.
21894         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
21895         gl_COMMON_DOUBLE_MATHFUNC.
21896         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
21897
21898 2010-07-31  Bruno Haible  <bruno@clisp.org>
21899
21900         duplocale: Work around AIX 7.1 bug.
21901         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
21902         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
21903         * lib/duplocale.c (rpl_duplocale): Update comment.
21904         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
21905         Reported by Rainer Tammer.
21906
21907 2010-07-30  Bruno Haible  <bruno@clisp.org>
21908
21909         dirfd: Avoid link error on AIX 7.1.
21910         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
21911         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
21912         exist, set REPLACE_DIRFD.
21913         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
21914         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
21915         * doc/posix-functions/dirfd.texi: Update.
21916         Reported by Rainer Tammer.
21917
21918 2010-07-30  Eric Blake  <eblake@redhat.com>
21919
21920         strtod: next round of AIX fixes
21921         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
21922         exponent.
21923         * tests/test-strtod.c (main): Enhance tests.
21924         * doc/posix-functions/strtod.texi (strtod): Document next bug.
21925         Reported by Rainer Tammer.
21926
21927         futimens: fix configure check
21928         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
21929         Reported by Bruno Haible.
21930
21931 2010-07-30  Bruno Haible  <bruno@clisp.org>
21932
21933         getline: Update regarding AIX.
21934         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
21935         Reported by Rainer Tammer.
21936
21937 2010-07-30  Bruno Haible  <bruno@clisp.org>
21938
21939         wcwidth: Drop replacement on AIX 7.
21940         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
21941         AIX 7.
21942         Reported by Rainer Tammer.
21943
21944 2010-07-30  Bruno Haible  <bruno@clisp.org>
21945
21946         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
21947         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
21948         a 'char *'.
21949         Reported by Rainer Tammer.
21950
21951 2010-07-30  Bruno Haible  <bruno@clisp.org>
21952
21953         unlink: Update regarding AIX.
21954         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
21955         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
21956         Reported by Rainer Tammer.
21957
21958 2010-07-30  Bruno Haible  <bruno@clisp.org>
21959
21960         symlink: Update regarding AIX.
21961         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
21962         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
21963         Reported by Rainer Tammer.
21964
21965 2010-07-30  Bruno Haible  <bruno@clisp.org>
21966
21967         strndup: Update regarding AIX.
21968         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
21969         AIX 7.
21970         Reported by Rainer Tammer.
21971
21972 2010-07-30  Bruno Haible  <bruno@clisp.org>
21973
21974         stat: Update regarding AIX.
21975         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
21976         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
21977         Reported by Rainer Tammer.
21978
21979 2010-07-30  Bruno Haible  <bruno@clisp.org>
21980
21981         truncl: Fix autoconf test.
21982         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
21983         whether truncl works.
21984         Reported by Rainer Tammer.
21985
21986 2010-07-30  Bruno Haible  <bruno@clisp.org>
21987
21988         round: Update regarding AIX.
21989         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
21990         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
21991         Reported by Rainer Tammer.
21992
21993 2010-07-30  Bruno Haible  <bruno@clisp.org>
21994
21995         rename: Update regarding AIX.
21996         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
21997         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
21998         Reported by Rainer Tammer.
21999
22000 2010-07-30  Bruno Haible  <bruno@clisp.org>
22001
22002         printf.m4: Update regarding AIX.
22003         * m4/printf.m4: Update comments regarding AIX.
22004         Reported by Rainer Tammer.
22005
22006 2010-07-30  Bruno Haible  <bruno@clisp.org>
22007
22008         iconv: Update regarding AIX.
22009         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
22010         AIX 7.
22011         Reported by Rainer Tammer.
22012
22013 2010-07-30  Bruno Haible  <bruno@clisp.org>
22014
22015         getopt: Update regarding AIX.
22016         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
22017         no on AIX.
22018         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
22019         Reported by Rainer Tammer.
22020
22021 2010-07-30  Bruno Haible  <bruno@clisp.org>
22022
22023         ldexpl; Update regarding AIX.
22024         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
22025         on AIX 7.
22026         Reported by Rainer Tammer.
22027
22028 2010-07-30  Bruno Haible  <bruno@clisp.org>
22029
22030         frexpl: Update regarding AIX.
22031         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
22032         on AIX 7.
22033         Reported by Rainer Tammer.
22034
22035 2010-07-30  Bruno Haible  <bruno@clisp.org>
22036
22037         open, fopen: Update regarding AIX.
22038         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
22039         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
22040         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
22041         * doc/posix-functions/fopen.texi: Likewise.
22042         Reported by Rainer Tammer.
22043
22044 2010-07-30  Bruno Haible  <bruno@clisp.org>
22045
22046         chown: Update doc regarding AIX.
22047         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
22048         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
22049         Reported by Rainer Tammer.
22050
22051 2010-07-30  Eric Blake  <eblake@redhat.com>
22052
22053         strtod: fix bug in replacement function on AIX
22054         * lib/strtod.c (strtod): Special case broken "0x" parse in
22055         underlying strtod.
22056         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
22057         * doc/posix-functions/strtod.texi (strtod): Likewise.
22058         Reported by Rainer Tammer.
22059
22060 2010-07-30  Bruno Haible  <bruno@clisp.org>
22061
22062         mbrlen: Fix cross-compilation guess for AIX.
22063         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
22064         guess. Leftover from 2008-12-22.
22065
22066 2010-07-30  Bruno Haible  <bruno@clisp.org>
22067
22068         mbrtowc: Fix cross-compilation guess for AIX.
22069         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
22070         guess. Leftover from 2008-12-21.
22071
22072 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
22073
22074         init.sh: work around trap limitation of some shells
22075         * tests/init.sh (setup_): Move exit trap outside of shell function.
22076
22077 2010-07-29  Eric Blake  <eblake@redhat.com>
22078
22079         strtod: aid debugging
22080         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
22081         understanding why strtod is rejected.
22082
22083 2010-07-28  Bruno Haible  <bruno@clisp.org>
22084
22085         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
22086         * lib/unistr/u8-chr.c: Include <string.h>.
22087         * tests/unistr/test-u8-chr.c: Likewise.
22088         * tests/unistr/test-u16-chr.c: Likewise.
22089         * tests/unistr/test-u32-chr.c: Likewise.
22090         * tests/unistr/test-u8-strchr.c: Likewise.
22091         * tests/unistr/test-u16-strchr.c: Likewise.
22092         * tests/unistr/test-u32-strchr.c: Likewise.
22093         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
22094         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
22095         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
22096         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
22097
22098 2010-07-28  Bruno Haible  <bruno@clisp.org>
22099
22100         Use spaces for indentation, not tabs.
22101         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
22102
22103 2010-07-27  Bruno Haible  <bruno@clisp.org>
22104
22105         mbspcasecmp: Fix function specification.
22106         * lib/string.in.h (mbspcasecmp): Fix specification comment.
22107         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
22108         Reported by Eric Blake <eblake@redhat.com>.
22109
22110 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
22111
22112         timespec: use cast and not conditional, as truncation isn't possible
22113         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
22114         instead of a conditional.  Comment about the situation in more detail.
22115         This undoes most of the 2009-10-29 patch.
22116
22117 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
22118
22119         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
22120         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
22121         * lib/unistr/u8-strchr.c: Likewise.
22122         * modules/unistr/u8-chr: Depend on memchr.
22123
22124         unistr/u*-strchr: add tests
22125         * modules/unistr/u8-strchr-tests: New file.
22126         * modules/unistr/u16-strchr-tests: New file.
22127         * modules/unistr/u32-strchr-tests: New file.
22128         * tests/unistr/test-strchr.h: New file.
22129         * tests/unistr/test-u8-strchr.c: New file.
22130         * tests/unistr/test-u16-strchr.c: New file.
22131         * tests/unistr/test-u32-strchr.c: New file.
22132
22133         unistr/u*-chr: test multibyte sequences more
22134         * tests/unistr/test-chr.h: Do complete testing of the characters in the
22135         test vector.
22136         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
22137         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
22138         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
22139
22140         unistr/u*-chr: test multibyte sequences
22141         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
22142
22143         unistr/u*-chr: prepare for multibyte tests
22144         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
22145         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
22146         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
22147         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
22148         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
22149         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
22150
22151 2010-07-18  Bruno Haible  <bruno@clisp.org>
22152
22153         unistr/u8-strchr: Optimize non-ASCII argument case.
22154         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
22155         because the first byte often matches anyway.
22156         Reported by Pádraig Brady <P@draigbrady.com>.
22157
22158 2010-07-15  Karl Berry  <karl@gnu.org>
22159
22160         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
22161
22162 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
22163
22164         getcwd: on Solaris, work better if ancestors are inaccessible
22165         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
22166         buffer and size, try again with a large buffer.  This works better
22167         on Solaris, since its getcwd succeeds even if the path to the root
22168         is inaccessible, and this is helpful in common cases such as .zfs
22169         hidden directories.  Problem reported by J Chapman Flack in
22170         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
22171         Use system getcwd if it's declared, not merely if it's partly
22172         working; use the partly-working test only to avoid needless effort
22173         if the system getcwd fails.
22174         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
22175         comment that was already obsolete and is now even more obsolete.
22176         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
22177         now might call strdup.
22178
22179 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
22180
22181         pthread: Add enough so that coreutils/src/sort.c compiles.
22182         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
22183         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
22184         gnulib. Include <sched.h> and <time.h>, as per POSIX.
22185         Include <sys/types.h>, in case it defines pthread_t.
22186         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
22187         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
22188         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
22189         (pthread_rwlockattr_t, pthread_spinlock_t):
22190         New typedefs, if HAVE_PTHREAD_T is not defined.
22191         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
22192         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
22193         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
22194         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
22195         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
22196         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
22197         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
22198         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
22199         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
22200         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
22201         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
22202         New macros.
22203         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
22204         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
22205         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
22206         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
22207         (pthread_spin_unlock): New dummy functions.
22208         (pthread_create): Return EAGAIN; don't set errno.
22209         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
22210         require AC_C_INLINE.
22211         * modules/pthread (Depends-on): Add sched, time.
22212         (pthread.h): Use AM_V_GEN.
22213
22214 2010-07-13  Bruno Haible  <bruno@clisp.org>
22215
22216         striconveh: Don't malloc memory if the result buffer is sufficient.
22217         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
22218         buffer if its size is sufficient.
22219         Reported by Ludovic Courtès <ludo@gnu.org>.
22220
22221 2010-07-13  Bruno Haible  <bruno@clisp.org>
22222
22223         strtod: Add safety check.
22224         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
22225
22226 2010-07-12  Bruno Haible  <bruno@clisp.org>
22227
22228         Unify tests that set gl_cv_func_ldexpl_no_libm.
22229         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
22230         gl_FUNC_LDEXPL.
22231         (gl_FUNC_LDEXPL): Invoke it.
22232         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
22233
22234 2010-07-12  Bruno Haible  <bruno@clisp.org>
22235
22236         Unify tests that set gl_cv_func_ldexp_no_libm.
22237         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
22238         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
22239         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
22240         (configure.ac): Simply invoke gl_FUNC_LDEXP.
22241         * modules/strtod (Files): Add m4/ldexp.m4.
22242
22243 2010-07-12  Bruno Haible  <bruno@clisp.org>
22244
22245         Unify tests that set gl_cv_func_frexpl_no_libm.
22246         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
22247         gl_FUNC_FREXPL_NO_LIBM.
22248         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
22249         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
22250
22251 2010-07-12  Bruno Haible  <bruno@clisp.org>
22252
22253         Unify tests that set gl_cv_func_frexp_no_libm.
22254         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
22255         gl_FUNC_FREXP_NO_LIBM.
22256         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
22257         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
22258
22259 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
22260
22261         memcoll: clarify sizes versus lengths, document better, and tweak perf
22262         * lib/memcoll.c (strcoll_loop, memcoll0):
22263         Improve quality of descriptive comments.  Name variables
22264         consistently as to whether they are lengths (which do not include
22265         terminating null) versus sizes (which do).
22266         * lib/xmemcoll.c (xmemcoll0): Likewise.
22267         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
22268         returned when s1size == 0; this is easier to compile and saves
22269         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
22270
22271 2010-07-12  Bruno Haible  <bruno@clisp.org>
22272
22273         Tests for module '_Exit'.
22274         * modules/_Exit-tests: New file.
22275         * tests/test-_Exit.sh: New file.
22276         * tests/test-_Exit.c: New file.
22277
22278         New module '_Exit'.
22279         * lib/stdlib.in.h (__attribute__): New macro.
22280         (_Exit): New declaration.
22281         * lib/_Exit.c: New file.
22282         * m4/_Exit.m4: New file.
22283         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
22284         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
22285         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
22286         * modules/_Exit: New file.
22287         * tests/test-stdlib-c++.cc (_Exit): Check signature.
22288         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
22289
22290 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
22291
22292         strtod: make it more-accurate typically, and don't require libm
22293         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
22294         Include limits.h.  Don't include string.h.
22295         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
22296         (locale_isspace): New function, so that no casts are needed to
22297         check whether *s is a space.
22298         (ldexp): Provide an unused dummy if not available.
22299         (scale_radix_exp, parse_number, underlying_strtod): New functions.
22300         (strtod): Use them.  This implementation prefers to use the
22301         underlying strtod if available, falling back on our own code
22302         only to fix known bugs.  This is more likely to produce an
22303         accurate result.  Also, it avoids the use of libm functions.
22304         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
22305         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
22306         was absent, but it caused a test failure with coreutils.
22307         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
22308         with libm.
22309         * modules/strtod (Makefile.am, Link): libm is no longer needed.
22310         * modules/strtod-tests (Makefile.am): Likewise.
22311
22312 2010-07-11  Pádraig Brady  <P@draigBrady.com>
22313             Bruno Haible  <bruno@clisp.org>
22314
22315         unistr/u8-strchr: Optimize ASCII argument case.
22316         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
22317
22318 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
22319
22320         (x)memcoll: minor tweaks
22321         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
22322         is after the type that it qualifies.
22323         (memcoll0): Likewise.
22324         * lib/memcoll.h (memcoll0): Likewise.
22325         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
22326         * lib/xmemcoll.h (xmemcoll0): Likewise.
22327         * lib/memcoll.c (memcoll0): Correct the comment.  This function
22328         differs from memcoll in that the NUL byte is part of the argument.
22329         Omit the abort-checks, as performance is a real issue here.  Plus,
22330         the checks were wrong anyway (an off-by-one error).  Omit local
22331         variable 'diff', as it's a bit clearer that way.
22332         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
22333         no longer needed.
22334
22335 2010-07-08  Chen Guo <chenguo4@yahoo.com>
22336
22337         (x)memcoll: speedup when input is known to be NUL delimited
22338         * lib/memcoll.c: Include stdlib.
22339         (memcoll0): New function.
22340         (strcoll_loop): New function, refactored for use in both memcoll
22341         and memcoll0.
22342         * lib/memcoll.h (memcoll0): Add prototype.
22343         * lib/xmemcoll.c (xmemcoll0): New function.
22344         (collate_error): New function, refactored for use in both xmemcoll
22345         and xmemcoll0.
22346         * lib/xmemcoll.h (xmemcoll0): Add prototype.
22347         * m4/memcoll.m4: add inline invocation.
22348
22349 2010-07-06  Pádraig Brady  <P@draigBrady.com>
22350
22351         * build-aux/bootstrap: Remove any local translations
22352         from the translation project synchronization directory,
22353         so that local only translations are not distributed.
22354
22355 2010-07-04  Bruno Haible  <bruno@clisp.org>
22356
22357         fsusage: Clarify which code applies to which platforms.
22358         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
22359         platform.
22360         * lib/fsusage.c (get_fs_usage): Likewise.
22361
22362 2010-07-04  Bruno Haible  <bruno@clisp.org>
22363
22364         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
22365         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
22366         Reported by Martin Lambers <marlam@marlam.de>.
22367
22368 2010-07-04  Jim Meyering  <meyering@redhat.com>
22369
22370         hash: once again explicitly disallow insertion of NULL
22371         * lib/hash.c (hash_insert0): Reinstate just-removed test:
22372         inserting a NULL pointer cannot work with these functions.
22373         Add a comment with details.
22374         This reverts part of the 2010-07-01 commit, 5bef1a35
22375         "hash: extend module to deal with non-pointer keys".
22376
22377 2010-07-01  Bruno Haible  <bruno@clisp.org>
22378
22379         stdbool: Update doc.
22380         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
22381         Info from Christian Weisgerber <naddy@mips.inka.de>.
22382
22383 2010-07-01  Jim Meyering  <meyering@redhat.com>
22384
22385         hash: extend module to deal with non-pointer keys
22386         * lib/hash.c (hash_insert0): New interface, much like hash_insert
22387         but that allows insertion of non-pointer entries.
22388         Do not disallow an ENTRY value of NULL.
22389         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
22390         * lib/hash.h (hash_insert0): Declare.
22391
22392 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
22393
22394         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
22395         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
22396         not present (i.e. with autoconf 2.59 and when using gettextize, not
22397         gnulib), require AC_GNU_SOURCE instead.
22398
22399 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
22400
22401         idpriv-drop: Fix tests.
22402         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
22403         not to the test-idpriv-droptemp program.
22404
22405 2010-06-29  Bruno Haible  <bruno@clisp.org>
22406
22407         string: Fix syntax error with g++ 2.96.
22408         * lib/string.in.h (__pure__): Remove definition.
22409         (_GL_ATTRIBUTE_PURE): New macro.
22410         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
22411         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
22412         Reported by Christian Weisgerber <naddy@mips.inka.de>.
22413
22414 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
22415
22416         unitypes: Fix bug introduced on 2010-05-18.
22417         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
22418
22419 2010-06-22  Eric Blake  <eblake@redhat.com>
22420
22421         memmem: slight optimization
22422         * lib/str-two-way.h (critical_factorization): Update comments.
22423         Reduce work during factorization phase.
22424         Reported by Carlos Bueno <carlos@bueno.org>.
22425
22426 2010-06-21  Bruno Haible  <bruno@clisp.org>
22427
22428         Fix HAVE_CALLOC_POSIX misnomer.
22429         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
22430         !HAVE_CALLOC_POSIX.
22431         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
22432         HAVE_CALLOC_POSIX.
22433         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
22434         instead of HAVE_CALLOC_POSIX.
22435         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
22436         HAVE_CALLOC_POSIX.
22437
22438         Use modern idiom for calloc() replacement.
22439         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
22440         AC_FUNC_CALLOC.
22441         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
22442         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
22443         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22444         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
22445         (gl_REPLACE_CALLOC): New macro.
22446
22447 2010-06-21  Bruno Haible  <bruno@clisp.org>
22448
22449         Fix HAVE_REALLOC_POSIX misnomer.
22450         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
22451         !HAVE_REALLOC_POSIX.
22452         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
22453         HAVE_REALLOC_POSIX.
22454         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
22455         instead of HAVE_REALLOC_POSIX.
22456         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
22457         HAVE_REALLOC_POSIX.
22458
22459         Use modern idiom for realloc() replacement.
22460         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
22461         AC_FUNC_REALLOC.
22462         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
22463         Autoconf's AC_FUNC_REALLOC.
22464         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22465         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
22466         (gl_REPLACE_REALLOC): New macro.
22467         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
22468
22469 2010-06-21  Bruno Haible  <bruno@clisp.org>
22470
22471         Fix HAVE_MALLOC_POSIX misnomer.
22472         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
22473         !HAVE_MALLOC_POSIX.
22474         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
22475         HAVE_MALLOC_POSIX.
22476         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
22477         instead of HAVE_MALLOC_POSIX.
22478         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
22479         HAVE_MALLOC_POSIX.
22480
22481         Use modern idiom for malloc() replacement.
22482         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
22483         AC_FUNC_MALLOC.
22484         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
22485         Autoconf's AC_FUNC_MALLOC.
22486         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22487         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
22488         (gl_REPLACE_MALLOC): New macro.
22489         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
22490
22491 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
22492
22493         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
22494         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
22495         This macro takes 3 arguments, not 4.
22496
22497 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
22498
22499         ipv6: fix detection under mingw
22500         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
22501         in6_addr.
22502
22503 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
22504
22505         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
22506         that strtod() works when cross-compiling to a glibc version known
22507         to work.
22508
22509 2010-06-15  Bruno Haible  <bruno@clisp.org>
22510
22511         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
22512
22513 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
22514
22515         select: Correct timeout.
22516         * lib/select.c (rpl_select): Compute wait_timeout correctly.
22517
22518 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
22519
22520         git-version-gen: init shell var to avoid env var influence
22521         * build-aux/git-version-gen (v): Init shell var to empty.
22522
22523 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
22524
22525         priv-set: Don't assume that priv.h exists merely because getppriv does.
22526         See Jan Andersen's bug report about AIX 5L in
22527         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
22528         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
22529         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
22530         * lib/priv-set.h: Likewise.
22531         * tests/test-priv-set.c: Likewise.
22532
22533 2010-06-13  Bruno Haible  <bruno@clisp.org>
22534
22535         relocatable: Make it easier to test whether to install wrappers.
22536         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
22537         RELOCATABLE_VIA_WRAPPER.
22538
22539 2010-06-13  Bruno Haible  <bruno@clisp.org>
22540
22541         gnulib-tool: Display specified modules and dependencies differently.
22542         * gnulib-tool (func_show_module_list): New function.
22543         (func_import, func_create_testdir): Invoke it.
22544         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
22545
22546 2010-06-13  Bruno Haible  <bruno@clisp.org>
22547
22548         gnulib-tool: Align code of func_import and func_create_testdir.
22549         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
22550         specified_modules.
22551
22552 2010-06-12  Jim Meyering  <meyering@redhat.com>
22553
22554         test-inttostr: avoid spurious failure on Solaris 9
22555         * tests/test-inttostr.c (main): Skip the test when snprintf fails
22556         to accept "%ju".  Reported by Bruno Haible.
22557
22558 2010-06-11  Jim Meyering  <meyering@redhat.com>
22559
22560         test-sys_socket: mark variables as used more readably
22561         * tests/test-sys_socket.c (main): Mark otherwise unused variables
22562         as "used" explicitly via (void) statement casts.  This is more
22563         readable than using them in an artificial return expression.
22564         Suggestion from Bruno Haible.
22565
22566 2010-06-11  Bruno Haible  <bruno@clisp.org>
22567
22568         Avoid some more warnings from "gcc -Wwrite-strings".
22569         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
22570         to 'const char *'.
22571         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
22572         * tests/test-c-strcasestr.c (main): Likewise.
22573         * tests/test-mbscasestr1.c (main): Likewise.
22574         * tests/test-mbscasestr2.c (main): Likewise.
22575         * tests/test-memmem.c (main): Likewise.
22576         * tests/test-strstr.c (main): Likewise.
22577         * tests/test-strcasestr.c (main): Likewise.
22578
22579 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22580
22581         init.sh: change framework_failure_ to fail with status 99, not 1
22582         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
22583         automake's parallel-tests rule that this is an unexpected failure,
22584         even if the test is listed in XFAIL_TESTS.
22585
22586 2010-06-11  Jim Meyering  <meyering@redhat.com>
22587
22588         test-inttostr: avoid warnings about 4-6KB literal strings
22589         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
22590         Include "macros.h", for its definition of ASSERT.
22591         (CK): s/assert/ASSERT/
22592         * modules/inttostr-tests (Files): Add macros.h.
22593
22594         init.sh: don't use $ME_ or skip_ before they are defined
22595         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
22596         their first uses.  Also hoist their companions: warn_, fail_,
22597         framework_failure_, $stderr_fileno.  Prompted by a patch from
22598         Stefano Lattarini.
22599
22600         test-sys_socket: avoid set-but-not-used warnings from gcc
22601         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
22602         avoid warning about set-but-not-used variables.
22603
22604         test-xvasprintf: avoid 'const' discard warnings
22605         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
22606         "const" when assigning from literal strings.
22607         (test_xasprintf): Add "void" in function argument list to placate
22608         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
22609
22610         tests: avoid compilation warnings in argmatch and exclude tests...
22611         in packages that define ARGMATCH_DIE_DECL, like coreutils.
22612         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
22613         Since it always exits, declare with the "noreturn" attribute.
22614         * tests/test-argmatch.c: Likewise.
22615
22616         tests: avoid 'const' discard warnings in mbsstr tests
22617         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
22618         * tests/test-mbsstr2.c (main): Likewise.
22619
22620         test-verify: avoid warning from gcc's -Wmissing-declarations
22621         * tests/test-verify.c (function): Declare to be static.
22622
22623         test-inttostr.c: include <string.h> for use of strcmp
22624         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
22625
22626         test-linkat: avoid failed assertion on "other" architectures
22627         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
22628         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
22629         sparc: https://bugs.launchpad.net/bugs/591968
22630
22631 2010-06-11  Jim Meyering  <meyering@redhat.com>
22632
22633         printf.m4: avoid autoconf's "Expanded Before Required" warning
22634         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
22635         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
22636         autoconf warning.
22637
22638 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
22639
22640         Replacement header templates are now named with ".in", not "_".
22641         * doc/gnulib-intro.texi: Correct.
22642
22643 2010-06-10  Jim Meyering  <meyering@redhat.com>
22644
22645         inttostr-tests: depend on snprintf, not snprintf-posix
22646         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
22647         snprintf-posix, to avoid this aclocal failure:
22648           missing file gnulib-tests/vasnprintf.c
22649           configure.ac:45: error: expected source file, required through \
22650           AC_LIBSOURCES, not found
22651
22652 2010-06-10  Jim Meyering  <meyering@redhat.com>
22653
22654         inttostr: add a new function, inttostr, and tests
22655         The namesake function was not available.  The existence of the
22656         template file, inttostr.c makes its addition nontrivial.
22657         * lib/anytostr.c: Rename from inttostr.c.
22658         (anytostr): Rename from inttostr.
22659         * lib/inttostr.c: New file.
22660         * modules/inttostr (Files): Add anytostr.c.
22661         (Makefile.am): Set lib_SOURCES instead of ...
22662         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
22663         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
22664         * lib/offtostr.c: Likewise.
22665         * lib/uinttostr.c: Likewise.
22666         * lib/umaxtostr.c: Likewise.
22667         * modules/inttostr-tests: New file.
22668         * tests/test-inttostr.c: New file.  Test these functions.
22669
22670 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
22671             Bruno Haible  <bruno@clisp.org>
22672
22673         Add "Extending Gnulib" chapter to manual.
22674         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
22675         chapter.
22676         (Extending Gnulib): New chapter.
22677         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
22678         chapter.
22679
22680 2010-06-09  Bruno Haible  <bruno@clisp.org>
22681
22682         Avoid relocwrapper link errors due to gnulib replacement functions.
22683         * lib/areadlink.c: Use the system's malloc, realloc functions.
22684         (areadlink): Set errno to ENOMEM explicitly.
22685         * modules/areadlink (Depends-on): Remove malloc-posix.
22686         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22687
22688 2010-06-09  Bruno Haible  <bruno@clisp.org>
22689
22690         Avoid relocwrapper link errors due to gnulib replacement functions.
22691         * lib/canonicalize-lgpl.c: Use the system's malloc function.
22692         * lib/malloca.c: Likewise.
22693         * lib/relocatable.c: Likewise.
22694         * lib/progreloc.c: Use the system's malloc, sprintf functions.
22695         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
22696         * lib/setenv.c: Use the system's malloc, realloc functions.
22697         * lib/strerror.c: Use the system's sprintf function.
22698         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22699
22700 2010-06-04  Bruno Haible  <bruno@clisp.org>
22701
22702         Prefer documented low-level autoconf macro names.
22703         * m4/lib-link.m4: Use m4_translit instead of translit.
22704         * m4/environ.m4: Likewise.
22705         * m4/mathfunc.m4: Likewise.
22706         * m4/onceonly.m4: Likewise.
22707         * m4/stdint.m4: Likewise.
22708         Suggested by Eric Blake.
22709
22710 2010-06-04  Martin Lambers  <marlam@marlam.de>
22711             Bruno Haible  <bruno@clisp.org>
22712
22713         havelib: Allow library names with '+' characters.
22714         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
22715         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
22716
22717 2010-06-09  Bruno Haible  <bruno@clisp.org>
22718
22719         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
22720         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
22721         realloc failed.
22722
22723 2010-06-08  Peter Simons  <simons@cryp.to>
22724
22725         maint.mk: make the news-check rule more configurable
22726         * top/maint.mk (news-check-lines-spec): New variable.
22727         (news-check): Use "sed -n 1,10p" in place of "head".
22728
22729 2010-06-07  Jim Meyering  <meyering@redhat.com>
22730
22731         do-release-commit-and-tag: fix typo in --help
22732         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
22733
22734         regex: avoid new dead-code warning with gcc-4.6.0
22735         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
22736         if-block containing a while-loop.  It's been unused for at least
22737         5 years.
22738
22739 2010-06-05  Bruno Haible  <bruno@clisp.org>
22740
22741         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
22742         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
22743
22744 2010-06-04  Bruno Haible  <bruno@clisp.org>
22745
22746         Update to GNU gettext 0.18.1.
22747         * modules/gettext (configure.ac): Require gettext infrastructure from
22748         version 0.18.1.
22749
22750 2010-06-03  Bruno Haible  <bruno@clisp.org>
22751
22752         Don't use AC_LIBOBJ with file names in subdirectories.
22753         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
22754         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
22755         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
22756         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
22757         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
22758         gl_LIBUNISTRING_LIBSOURCE.
22759         (Makefile.am): Augment lib_SOURCES here, conditionally.
22760         * NEWS: Drop requirement for Automake option 'subdir-objects'.
22761
22762 2010-06-03  Bruno Haible  <bruno@clisp.org>
22763
22764         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
22765         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
22766         expansion does not end with a newline.
22767         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
22768         unnecessary newline.
22769
22770 2010-06-03  Bruno Haible  <bruno@clisp.org>
22771
22772         Reduce dependencies.
22773         * tests/test-quotearg.h: New file, extracted from
22774         tests/test-quotearg.c.
22775         * tests/test-quotearg-simple.c: New file, extracted from
22776         tests/test-quotearg.c.
22777         * tests/test-quotearg.c: Don't include <ctype.h>.
22778         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
22779         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
22780         use_quote_double_quotes, use_quotearg_colon): Moved to
22781         tests/test-quotearg.h.
22782         (results_g, flag_results, custom_quotes, custom_results): Moved
22783         to tests/test-quotearg-simple.c.
22784         (main): Moved the part that does not depend on gettext to
22785         tests/test-quotearg-simple.c. Return 77 if the test cannot be
22786         performed.
22787         * modules/quotearg-simple: New file.
22788         * modules/quotearg-simple-tests: New file.
22789         * modules/quotearg (Depends-on): Add quotearg-simple.
22790         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
22791         (Files): Add tests/test-quotearg.h.
22792         Reported by Paolo Bonzini.
22793
22794 2010-06-03  Bruno Haible  <bruno@clisp.org>
22795
22796         Reduce dependencies.
22797         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
22798
22799 2010-06-03  Bruno Haible  <bruno@clisp.org>
22800
22801         time: Undefine more broken macros.
22802         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
22803         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
22804         Reported by Eric Blake.
22805
22806 2010-06-03  Bruno Haible  <bruno@clisp.org>
22807
22808         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
22809         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
22810         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
22811         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
22812         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
22813         Reported by Ludovic Courtès <ludo@gnu.org>.
22814
22815 2010-06-02  Eric Blake  <eblake@redhat.com>
22816
22817         time: work with mingw + pthreads-win32 library
22818         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
22819         if timespec is defined only in pthread.h.
22820         * modules/time (Makefile.am): Substitute it.
22821         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
22822         <pthread.h>, when needed.
22823         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
22824         from the library.
22825
22826 2010-05-31  Bruno Haible  <bruno@clisp.org>
22827
22828         Avoid expanding two macros in the wrong order.
22829         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
22830         gl_LIBUNISTRING if it is defined.
22831         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
22832         autoconf >= 2.64.
22833         Reported by Ludovic Courtès <ludo@gnu.org>.
22834
22835 2010-05-27  Jim Meyering  <meyering@redhat.com>
22836
22837         maint.mk: also prohibit "#undef" of always-defined symbols
22838         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
22839         Allow more than one space before the symbol name.
22840         (sc_prohibit_always-defined_macros): Use grep's -E, now that
22841         the regexp uses alternation.
22842
22843 2010-05-26  Eric Blake  <eblake@redhat.com>
22844
22845         maint.mk: avoid echo -e
22846         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
22847         Convert all uses of echo -* to printf.
22848         Reported by Matthias Bolte.
22849
22850 2010-05-25  Bruno Haible  <bruno@clisp.org>
22851
22852         Update to GNU gettext 0.18, part 2.
22853         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
22854         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
22855
22856 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22857
22858         Add missing include in test-pwrite.c.
22859         * tests/test-pwrite.c: Include string.h, for strcmp.
22860
22861 2010-05-24  Bruno Haible  <bruno@clisp.org>
22862
22863         * NEWS: Mention requirement for Automake option 'subdir-objects'.
22864
22865 2010-05-24  Bruno Haible  <bruno@clisp.org>
22866
22867         Don't use conversion with transliteration in u{8,16,32}_strcoll.
22868         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
22869         iconveh_error argument.
22870         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
22871         U_STRCONV_TO_LOCALE.
22872         * lib/unistr/u16-strcoll.c: Likewise.
22873         * lib/unistr/u32-strcoll.c: Likewise.
22874         * modules/unistr/u8-strcoll (Depends-on): Add
22875         uniconv/u8-strconv-to-enc, localcharset. Remove
22876         uniconv/u8-strconv-to-locale.
22877         (configure.ac): Bump version number.
22878         * modules/unistr/u16-strcoll (Depends-on): Add
22879         uniconv/u16-strconv-to-enc, localcharset. Remove
22880         uniconv/u16-strconv-to-locale.
22881         (configure.ac): Bump version number.
22882         * modules/unistr/u32-strcoll (Depends-on): Add
22883         uniconv/u32-strconv-to-enc, localcharset. Remove
22884         uniconv/u32-strconv-to-locale.
22885         (configure.ac): Bump version number.
22886
22887 2010-05-24  Bruno Haible  <bruno@clisp.org>
22888
22889         Avoid a test failure on NetBSD 5.0.
22890         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
22891         an iconv() bug.
22892
22893 2010-05-24  Bruno Haible  <bruno@clisp.org>
22894
22895         Adjust #include directive style.
22896         * modules/regex (Includes): Recommend to write <regex.h>.
22897
22898 2010-05-24  Bruno Haible  <bruno@clisp.org>
22899
22900         regex: Don't require alloca.
22901         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
22902         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
22903         only inside if (0).
22904
22905 2010-05-23  Jim Meyering  <meyering@redhat.com>
22906
22907         test-renameat.c: include <sys/stat.h>
22908         * tests/test-renameat.c: Include <sys/stat.h>; required for
22909         definition of S_IS* macros.
22910
22911 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
22912
22913         Update maintainer documentation for 'relocatable-prog' module.
22914         * doc/relocatable-maint.texi: Update.
22915         Comments by Bruno Haible.
22916
22917 2010-05-23  Bruno Haible  <bruno@clisp.org>
22918
22919         git-merge-changelog: Enable --split-merged-entry by default.
22920         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
22921         (usage): Don't mention this option any more.
22922         Reported by Ralf Wildenhues.
22923
22924 2010-05-23  Jim Meyering  <meyering@redhat.com>
22925
22926         test-pwrite: do not leave behind a test file named "out"
22927         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
22928         The trivial-looking use of init.sh is really necessary.
22929         It ensures that the temporary file, "out", is created in
22930         a temporary directory, and removed upon termination.
22931         * tests/test-pwrite.sh: Re-add file.
22932         * modules/pwrite-tests: Reference it.
22933
22934 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22935
22936         Fix output redirection buglet in init.sh.
22937         * tests/init.sh: Fix redirection of stderr.
22938
22939 2010-05-20  Simon Josefsson  <simon@josefsson.org>
22940
22941         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
22942
22943 2010-05-17  Simon Josefsson  <simon@josefsson.org>
22944
22945         * modules/valgrind-tests: New file.
22946         * m4/valgrind-tests.m4: New file.
22947         * doc/valgrind-tests.texi: New file.
22948         * doc/gnulib.texi (Running self-tests under valgrind): New
22949         section.
22950
22951 2010-05-19  Bruno Haible  <bruno@clisp.org>
22952
22953         Clean up dead code in recent commit.
22954         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
22955         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
22956         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
22957         Suggested by Paolo Bonzini.
22958
22959 2010-05-19  Bruno Haible  <bruno@clisp.org>
22960
22961         Avoid valgrind error reports from libunistring.
22962         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
22963         * modules/libunistring (Files): Add it.
22964         * modules/libunistring-optional (Files): Likewise.
22965
22966 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
22967             Bruno Haible  <bruno@clisp.org>
22968
22969         New module 'libunistring-optional'.
22970         * modules/libunistring-optional: New file.
22971         * m4/libunistring-base.m4: New file.
22972         * m4/libunistring-optional.m4: New file.
22973         * lib/unicase.in.h: Renamed from lib/unicase.h.
22974         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
22975         * lib/unictype.in.h: Renamed from lib/unictype.h.
22976         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
22977         * lib/uniname.in.h: Renamed from lib/uniname.h.
22978         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
22979         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
22980         * lib/unistr.in.h: Renamed from lib/unistr.h.
22981         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
22982         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
22983         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
22984         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
22985         gl_LIBUNISTRING. If the library was found, determine the installed
22986         version and set LIBUNISTRING_VERSION.
22987         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
22988         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
22989         handle a configuration option --with-included-libunistring.
22990         * modules/libunistring (Files): Add m4/absolute-header.m4.
22991         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
22992         Add m4/libunistring-base.m4.
22993         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22994         (Makefile.am): Build unicase.h from unicase.in.h.
22995         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
22996         Add m4/libunistring-base.m4.
22997         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22998         (Makefile.am): Build uniconv.h from uniconv.in.h.
22999         * modules/unictype/base (Files): Use unictype.in.h instead of
23000         unictype.h. Add m4/libunistring-base.m4.
23001         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23002         (Makefile.am): Build unictype.h from unictype.in.h.
23003         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
23004         Add m4/libunistring-base.m4.
23005         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23006         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
23007         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
23008         Add m4/libunistring-base.m4.
23009         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23010         (Makefile.am): Build uniname.h from uniname.in.h.
23011         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
23012         Add m4/libunistring-base.m4.
23013         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23014         (Makefile.am): Build uninorm.h from uninorm.in.h.
23015         * modules/unistdio/base (Files): Use unistdio.in.h instead of
23016         unistdio.h. Add m4/libunistring-base.m4.
23017         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23018         (Makefile.am): Build unistdio.h from unistdio.in.h.
23019         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
23020         Add m4/libunistring-base.m4.
23021         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23022         (Makefile.am): Build unistr.h from unistr.in.h.
23023         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
23024         Add m4/libunistring-base.m4.
23025         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23026         (Makefile.am): Build unitypes.h from unitypes.in.h.
23027         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
23028         Add m4/libunistring-base.m4.
23029         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23030         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
23031         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
23032         uniwidth.h. Add m4/libunistring-base.m4.
23033         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23034         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
23035         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
23036         instead of augmenting lib_SOURCES.
23037         * modules/unicase/empty-suffix-context: Likewise.
23038         * modules/unicase/locale-language: Likewise.
23039         * modules/unicase/tolower: Likewise.
23040         * modules/unicase/totitle: Likewise.
23041         * modules/unicase/toupper: Likewise.
23042         * modules/unicase/u8-casecmp: Likewise.
23043         * modules/unicase/u8-casecoll: Likewise.
23044         * modules/unicase/u8-casefold: Likewise.
23045         * modules/unicase/u8-casexfrm: Likewise.
23046         * modules/unicase/u8-ct-casefold: Likewise.
23047         * modules/unicase/u8-ct-tolower: Likewise.
23048         * modules/unicase/u8-ct-totitle: Likewise.
23049         * modules/unicase/u8-ct-toupper: Likewise.
23050         * modules/unicase/u8-is-cased: Likewise.
23051         * modules/unicase/u8-is-casefolded: Likewise.
23052         * modules/unicase/u8-is-lowercase: Likewise.
23053         * modules/unicase/u8-is-titlecase: Likewise.
23054         * modules/unicase/u8-is-uppercase: Likewise.
23055         * modules/unicase/u8-prefix-context: Likewise.
23056         * modules/unicase/u8-suffix-context: Likewise.
23057         * modules/unicase/u8-tolower: Likewise.
23058         * modules/unicase/u8-totitle: Likewise.
23059         * modules/unicase/u8-toupper: Likewise.
23060         * modules/unicase/u16-casecmp: Likewise.
23061         * modules/unicase/u16-casecoll: Likewise.
23062         * modules/unicase/u16-casefold: Likewise.
23063         * modules/unicase/u16-casexfrm: Likewise.
23064         * modules/unicase/u16-ct-casefold: Likewise.
23065         * modules/unicase/u16-ct-tolower: Likewise.
23066         * modules/unicase/u16-ct-totitle: Likewise.
23067         * modules/unicase/u16-ct-toupper: Likewise.
23068         * modules/unicase/u16-is-cased: Likewise.
23069         * modules/unicase/u16-is-casefolded: Likewise.
23070         * modules/unicase/u16-is-lowercase: Likewise.
23071         * modules/unicase/u16-is-titlecase: Likewise.
23072         * modules/unicase/u16-is-uppercase: Likewise.
23073         * modules/unicase/u16-prefix-context: Likewise.
23074         * modules/unicase/u16-suffix-context: Likewise.
23075         * modules/unicase/u16-tolower: Likewise.
23076         * modules/unicase/u16-totitle: Likewise.
23077         * modules/unicase/u16-toupper: Likewise.
23078         * modules/unicase/u32-casecmp: Likewise.
23079         * modules/unicase/u32-casecoll: Likewise.
23080         * modules/unicase/u32-casefold: Likewise.
23081         * modules/unicase/u32-casexfrm: Likewise.
23082         * modules/unicase/u32-ct-casefold: Likewise.
23083         * modules/unicase/u32-ct-tolower: Likewise.
23084         * modules/unicase/u32-ct-totitle: Likewise.
23085         * modules/unicase/u32-ct-toupper: Likewise.
23086         * modules/unicase/u32-is-cased: Likewise.
23087         * modules/unicase/u32-is-casefolded: Likewise.
23088         * modules/unicase/u32-is-lowercase: Likewise.
23089         * modules/unicase/u32-is-titlecase: Likewise.
23090         * modules/unicase/u32-is-uppercase: Likewise.
23091         * modules/unicase/u32-prefix-context: Likewise.
23092         * modules/unicase/u32-suffix-context: Likewise.
23093         * modules/unicase/u32-tolower: Likewise.
23094         * modules/unicase/u32-totitle: Likewise.
23095         * modules/unicase/u32-toupper: Likewise.
23096         * modules/unicase/ulc-casecmp: Likewise.
23097         * modules/unicase/ulc-casecoll: Likewise.
23098         * modules/unicase/ulc-casexfrm: Likewise.
23099         * modules/uniconv/u8-conv-from-enc: Likewise.
23100         * modules/uniconv/u8-conv-to-enc: Likewise.
23101         * modules/uniconv/u8-strconv-from-enc: Likewise.
23102         * modules/uniconv/u8-strconv-from-locale: Likewise.
23103         * modules/uniconv/u8-strconv-to-enc: Likewise.
23104         * modules/uniconv/u8-strconv-to-locale: Likewise.
23105         * modules/uniconv/u16-conv-from-enc: Likewise.
23106         * modules/uniconv/u16-conv-to-enc: Likewise.
23107         * modules/uniconv/u16-strconv-from-enc: Likewise.
23108         * modules/uniconv/u16-strconv-from-locale: Likewise.
23109         * modules/uniconv/u16-strconv-to-enc: Likewise.
23110         * modules/uniconv/u16-strconv-to-locale: Likewise.
23111         * modules/uniconv/u32-conv-from-enc: Likewise.
23112         * modules/uniconv/u32-conv-to-enc: Likewise.
23113         * modules/uniconv/u32-strconv-from-enc: Likewise.
23114         * modules/uniconv/u32-strconv-from-locale: Likewise.
23115         * modules/uniconv/u32-strconv-to-enc: Likewise.
23116         * modules/uniconv/u32-strconv-to-locale: Likewise.
23117         * modules/unictype/bidicategory-byname: Likewise.
23118         * modules/unictype/bidicategory-name: Likewise.
23119         * modules/unictype/bidicategory-of: Likewise.
23120         * modules/unictype/bidicategory-test: Likewise.
23121         * modules/unictype/block-list: Likewise.
23122         * modules/unictype/block-test: Likewise.
23123         * modules/unictype/category-C: Likewise.
23124         * modules/unictype/category-Cc: Likewise.
23125         * modules/unictype/category-Cf: Likewise.
23126         * modules/unictype/category-Cn: Likewise.
23127         * modules/unictype/category-Co: Likewise.
23128         * modules/unictype/category-Cs: Likewise.
23129         * modules/unictype/category-L: Likewise.
23130         * modules/unictype/category-Ll: Likewise.
23131         * modules/unictype/category-Lm: Likewise.
23132         * modules/unictype/category-Lo: Likewise.
23133         * modules/unictype/category-Lt: Likewise.
23134         * modules/unictype/category-Lu: Likewise.
23135         * modules/unictype/category-M: Likewise.
23136         * modules/unictype/category-Mc: Likewise.
23137         * modules/unictype/category-Me: Likewise.
23138         * modules/unictype/category-Mn: Likewise.
23139         * modules/unictype/category-N: Likewise.
23140         * modules/unictype/category-Nd: Likewise.
23141         * modules/unictype/category-Nl: Likewise.
23142         * modules/unictype/category-No: Likewise.
23143         * modules/unictype/category-P: Likewise.
23144         * modules/unictype/category-Pc: Likewise.
23145         * modules/unictype/category-Pd: Likewise.
23146         * modules/unictype/category-Pe: Likewise.
23147         * modules/unictype/category-Pf: Likewise.
23148         * modules/unictype/category-Pi: Likewise.
23149         * modules/unictype/category-Po: Likewise.
23150         * modules/unictype/category-Ps: Likewise.
23151         * modules/unictype/category-S: Likewise.
23152         * modules/unictype/category-Sc: Likewise.
23153         * modules/unictype/category-Sk: Likewise.
23154         * modules/unictype/category-Sm: Likewise.
23155         * modules/unictype/category-So: Likewise.
23156         * modules/unictype/category-Z: Likewise.
23157         * modules/unictype/category-Zl: Likewise.
23158         * modules/unictype/category-Zp: Likewise.
23159         * modules/unictype/category-Zs: Likewise.
23160         * modules/unictype/category-and: Likewise.
23161         * modules/unictype/category-and-not: Likewise.
23162         * modules/unictype/category-byname: Likewise.
23163         * modules/unictype/category-name: Likewise.
23164         * modules/unictype/category-none: Likewise.
23165         * modules/unictype/category-of: Likewise.
23166         * modules/unictype/category-or: Likewise.
23167         * modules/unictype/category-test: Likewise.
23168         * modules/unictype/combining-class: Likewise.
23169         * modules/unictype/ctype-alnum: Likewise.
23170         * modules/unictype/ctype-alpha: Likewise.
23171         * modules/unictype/ctype-blank: Likewise.
23172         * modules/unictype/ctype-cntrl: Likewise.
23173         * modules/unictype/ctype-digit: Likewise.
23174         * modules/unictype/ctype-graph: Likewise.
23175         * modules/unictype/ctype-lower: Likewise.
23176         * modules/unictype/ctype-print: Likewise.
23177         * modules/unictype/ctype-punct: Likewise.
23178         * modules/unictype/ctype-space: Likewise.
23179         * modules/unictype/ctype-upper: Likewise.
23180         * modules/unictype/ctype-xdigit: Likewise.
23181         * modules/unictype/decimal-digit: Likewise.
23182         * modules/unictype/digit: Likewise.
23183         * modules/unictype/mirror: Likewise.
23184         * modules/unictype/numeric: Likewise.
23185         * modules/unictype/property-alphabetic: Likewise.
23186         * modules/unictype/property-ascii-hex-digit: Likewise.
23187         * modules/unictype/property-bidi-arabic-digit: Likewise.
23188         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
23189         * modules/unictype/property-bidi-block-separator: Likewise.
23190         * modules/unictype/property-bidi-boundary-neutral: Likewise.
23191         * modules/unictype/property-bidi-common-separator: Likewise.
23192         * modules/unictype/property-bidi-control: Likewise.
23193         * modules/unictype/property-bidi-embedding-or-override: Likewise.
23194         * modules/unictype/property-bidi-eur-num-separator: Likewise.
23195         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
23196         * modules/unictype/property-bidi-european-digit: Likewise.
23197         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
23198         * modules/unictype/property-bidi-left-to-right: Likewise.
23199         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
23200         * modules/unictype/property-bidi-other-neutral: Likewise.
23201         * modules/unictype/property-bidi-pdf: Likewise.
23202         * modules/unictype/property-bidi-segment-separator: Likewise.
23203         * modules/unictype/property-bidi-whitespace: Likewise.
23204         * modules/unictype/property-byname: Likewise.
23205         * modules/unictype/property-combining: Likewise.
23206         * modules/unictype/property-composite: Likewise.
23207         * modules/unictype/property-currency-symbol: Likewise.
23208         * modules/unictype/property-dash: Likewise.
23209         * modules/unictype/property-decimal-digit: Likewise.
23210         * modules/unictype/property-default-ignorable-code-point: Likewise.
23211         * modules/unictype/property-deprecated: Likewise.
23212         * modules/unictype/property-diacritic: Likewise.
23213         * modules/unictype/property-extender: Likewise.
23214         * modules/unictype/property-format-control: Likewise.
23215         * modules/unictype/property-grapheme-base: Likewise.
23216         * modules/unictype/property-grapheme-extend: Likewise.
23217         * modules/unictype/property-grapheme-link: Likewise.
23218         * modules/unictype/property-hex-digit: Likewise.
23219         * modules/unictype/property-hyphen: Likewise.
23220         * modules/unictype/property-id-continue: Likewise.
23221         * modules/unictype/property-id-start: Likewise.
23222         * modules/unictype/property-ideographic: Likewise.
23223         * modules/unictype/property-ids-binary-operator: Likewise.
23224         * modules/unictype/property-ids-trinary-operator: Likewise.
23225         * modules/unictype/property-ignorable-control: Likewise.
23226         * modules/unictype/property-iso-control: Likewise.
23227         * modules/unictype/property-join-control: Likewise.
23228         * modules/unictype/property-left-of-pair: Likewise.
23229         * modules/unictype/property-line-separator: Likewise.
23230         * modules/unictype/property-logical-order-exception: Likewise.
23231         * modules/unictype/property-lowercase: Likewise.
23232         * modules/unictype/property-math: Likewise.
23233         * modules/unictype/property-non-break: Likewise.
23234         * modules/unictype/property-not-a-character: Likewise.
23235         * modules/unictype/property-numeric: Likewise.
23236         * modules/unictype/property-other-alphabetic: Likewise.
23237         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
23238         * modules/unictype/property-other-grapheme-extend: Likewise.
23239         * modules/unictype/property-other-id-continue: Likewise.
23240         * modules/unictype/property-other-id-start: Likewise.
23241         * modules/unictype/property-other-lowercase: Likewise.
23242         * modules/unictype/property-other-math: Likewise.
23243         * modules/unictype/property-other-uppercase: Likewise.
23244         * modules/unictype/property-paired-punctuation: Likewise.
23245         * modules/unictype/property-paragraph-separator: Likewise.
23246         * modules/unictype/property-pattern-syntax: Likewise.
23247         * modules/unictype/property-pattern-white-space: Likewise.
23248         * modules/unictype/property-private-use: Likewise.
23249         * modules/unictype/property-punctuation: Likewise.
23250         * modules/unictype/property-quotation-mark: Likewise.
23251         * modules/unictype/property-radical: Likewise.
23252         * modules/unictype/property-sentence-terminal: Likewise.
23253         * modules/unictype/property-soft-dotted: Likewise.
23254         * modules/unictype/property-space: Likewise.
23255         * modules/unictype/property-terminal-punctuation: Likewise.
23256         * modules/unictype/property-test: Likewise.
23257         * modules/unictype/property-titlecase: Likewise.
23258         * modules/unictype/property-unassigned-code-value: Likewise.
23259         * modules/unictype/property-unified-ideograph: Likewise.
23260         * modules/unictype/property-uppercase: Likewise.
23261         * modules/unictype/property-variation-selector: Likewise.
23262         * modules/unictype/property-white-space: Likewise.
23263         * modules/unictype/property-xid-continue: Likewise.
23264         * modules/unictype/property-xid-start: Likewise.
23265         * modules/unictype/property-zero-width: Likewise.
23266         * modules/unictype/scripts: Likewise.
23267         * modules/unictype/syntax-c-ident: Likewise.
23268         * modules/unictype/syntax-c-whitespace: Likewise.
23269         * modules/unictype/syntax-java-ident: Likewise.
23270         * modules/unictype/syntax-java-whitespace: Likewise.
23271         * modules/unilbrk/u8-possible-linebreaks: Likewise.
23272         * modules/unilbrk/u8-width-linebreaks: Likewise.
23273         * modules/unilbrk/u16-possible-linebreaks: Likewise.
23274         * modules/unilbrk/u16-width-linebreaks: Likewise.
23275         * modules/unilbrk/u32-possible-linebreaks: Likewise.
23276         * modules/unilbrk/u32-width-linebreaks: Likewise.
23277         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
23278         * modules/unilbrk/ulc-width-linebreaks: Likewise.
23279         * modules/uniname/uniname: Likewise.
23280         * modules/uninorm/canonical-decomposition: Likewise.
23281         * modules/uninorm/composition: Likewise.
23282         * modules/uninorm/decomposing-form: Likewise.
23283         * modules/uninorm/decomposition: Likewise.
23284         * modules/uninorm/filter: Likewise.
23285         * modules/uninorm/nfc: Likewise.
23286         * modules/uninorm/nfd: Likewise.
23287         * modules/uninorm/nfkc: Likewise.
23288         * modules/uninorm/nfkd: Likewise.
23289         * modules/uninorm/u8-normalize: Likewise.
23290         * modules/uninorm/u8-normcmp: Likewise.
23291         * modules/uninorm/u8-normcoll: Likewise.
23292         * modules/uninorm/u8-normxfrm: Likewise.
23293         * modules/uninorm/u16-normalize: Likewise.
23294         * modules/uninorm/u16-normcmp: Likewise.
23295         * modules/uninorm/u16-normcoll: Likewise.
23296         * modules/uninorm/u16-normxfrm: Likewise.
23297         * modules/uninorm/u32-normalize: Likewise.
23298         * modules/uninorm/u32-normcmp: Likewise.
23299         * modules/uninorm/u32-normcoll: Likewise.
23300         * modules/uninorm/u32-normxfrm: Likewise.
23301         * modules/unistdio/u8-asnprintf: Likewise.
23302         * modules/unistdio/u8-asprintf: Likewise.
23303         * modules/unistdio/u8-snprintf: Likewise.
23304         * modules/unistdio/u8-sprintf: Likewise.
23305         * modules/unistdio/u8-u8-asnprintf: Likewise.
23306         * modules/unistdio/u8-u8-asprintf: Likewise.
23307         * modules/unistdio/u8-u8-snprintf: Likewise.
23308         * modules/unistdio/u8-u8-sprintf: Likewise.
23309         * modules/unistdio/u8-u8-vasnprintf: Likewise.
23310         * modules/unistdio/u8-u8-vasprintf: Likewise.
23311         * modules/unistdio/u8-u8-vsnprintf: Likewise.
23312         * modules/unistdio/u8-u8-vsprintf: Likewise.
23313         * modules/unistdio/u8-vasnprintf: Likewise.
23314         * modules/unistdio/u8-vasprintf: Likewise.
23315         * modules/unistdio/u8-vsnprintf: Likewise.
23316         * modules/unistdio/u8-vsprintf: Likewise.
23317         * modules/unistdio/u16-asnprintf: Likewise.
23318         * modules/unistdio/u16-asprintf: Likewise.
23319         * modules/unistdio/u16-snprintf: Likewise.
23320         * modules/unistdio/u16-sprintf: Likewise.
23321         * modules/unistdio/u16-u16-asnprintf: Likewise.
23322         * modules/unistdio/u16-u16-asprintf: Likewise.
23323         * modules/unistdio/u16-u16-snprintf: Likewise.
23324         * modules/unistdio/u16-u16-sprintf: Likewise.
23325         * modules/unistdio/u16-u16-vasnprintf: Likewise.
23326         * modules/unistdio/u16-u16-vasprintf: Likewise.
23327         * modules/unistdio/u16-u16-vsnprintf: Likewise.
23328         * modules/unistdio/u16-u16-vsprintf: Likewise.
23329         * modules/unistdio/u16-vasnprintf: Likewise.
23330         * modules/unistdio/u16-vasprintf: Likewise.
23331         * modules/unistdio/u16-vsnprintf: Likewise.
23332         * modules/unistdio/u16-vsprintf: Likewise.
23333         * modules/unistdio/u32-asnprintf: Likewise.
23334         * modules/unistdio/u32-asprintf: Likewise.
23335         * modules/unistdio/u32-snprintf: Likewise.
23336         * modules/unistdio/u32-sprintf: Likewise.
23337         * modules/unistdio/u32-u32-asnprintf: Likewise.
23338         * modules/unistdio/u32-u32-asprintf: Likewise.
23339         * modules/unistdio/u32-u32-snprintf: Likewise.
23340         * modules/unistdio/u32-u32-sprintf: Likewise.
23341         * modules/unistdio/u32-u32-vasnprintf: Likewise.
23342         * modules/unistdio/u32-u32-vasprintf: Likewise.
23343         * modules/unistdio/u32-u32-vsnprintf: Likewise.
23344         * modules/unistdio/u32-u32-vsprintf: Likewise.
23345         * modules/unistdio/u32-vasnprintf: Likewise.
23346         * modules/unistdio/u32-vasprintf: Likewise.
23347         * modules/unistdio/u32-vsnprintf: Likewise.
23348         * modules/unistdio/u32-vsprintf: Likewise.
23349         * modules/unistdio/ulc-asnprintf: Likewise.
23350         * modules/unistdio/ulc-asprintf: Likewise.
23351         * modules/unistdio/ulc-fprintf: Likewise.
23352         * modules/unistdio/ulc-snprintf: Likewise.
23353         * modules/unistdio/ulc-sprintf: Likewise.
23354         * modules/unistdio/ulc-vasnprintf: Likewise.
23355         * modules/unistdio/ulc-vasprintf: Likewise.
23356         * modules/unistdio/ulc-vfprintf: Likewise.
23357         * modules/unistdio/ulc-vsnprintf: Likewise.
23358         * modules/unistdio/ulc-vsprintf: Likewise.
23359         * modules/unistr/u8-check: Likewise.
23360         * modules/unistr/u8-chr: Likewise.
23361         * modules/unistr/u8-cmp: Likewise.
23362         * modules/unistr/u8-cmp2: Likewise.
23363         * modules/unistr/u8-cpy: Likewise.
23364         * modules/unistr/u8-cpy-alloc: Likewise.
23365         * modules/unistr/u8-endswith: Likewise.
23366         * modules/unistr/u8-mblen: Likewise.
23367         * modules/unistr/u8-mbsnlen: Likewise.
23368         * modules/unistr/u8-mbtouc: Likewise.
23369         * modules/unistr/u8-mbtouc-unsafe: Likewise.
23370         * modules/unistr/u8-mbtoucr: Likewise.
23371         * modules/unistr/u8-move: Likewise.
23372         * modules/unistr/u8-next: Likewise.
23373         * modules/unistr/u8-prev: Likewise.
23374         * modules/unistr/u8-set: Likewise.
23375         * modules/unistr/u8-startswith: Likewise.
23376         * modules/unistr/u8-stpcpy: Likewise.
23377         * modules/unistr/u8-stpncpy: Likewise.
23378         * modules/unistr/u8-strcat: Likewise.
23379         * modules/unistr/u8-strchr: Likewise.
23380         * modules/unistr/u8-strcmp: Likewise.
23381         * modules/unistr/u8-strcoll: Likewise.
23382         * modules/unistr/u8-strcpy: Likewise.
23383         * modules/unistr/u8-strcspn: Likewise.
23384         * modules/unistr/u8-strdup: Likewise.
23385         * modules/unistr/u8-strlen: Likewise.
23386         * modules/unistr/u8-strmblen: Likewise.
23387         * modules/unistr/u8-strmbtouc: Likewise.
23388         * modules/unistr/u8-strncat: Likewise.
23389         * modules/unistr/u8-strncmp: Likewise.
23390         * modules/unistr/u8-strncpy: Likewise.
23391         * modules/unistr/u8-strnlen: Likewise.
23392         * modules/unistr/u8-strpbrk: Likewise.
23393         * modules/unistr/u8-strrchr: Likewise.
23394         * modules/unistr/u8-strspn: Likewise.
23395         * modules/unistr/u8-strstr: Likewise.
23396         * modules/unistr/u8-strtok: Likewise.
23397         * modules/unistr/u8-to-u16: Likewise.
23398         * modules/unistr/u8-to-u32: Likewise.
23399         * modules/unistr/u8-uctomb: Likewise.
23400         * modules/unistr/u16-check: Likewise.
23401         * modules/unistr/u16-chr: Likewise.
23402         * modules/unistr/u16-cmp: Likewise.
23403         * modules/unistr/u16-cmp2: Likewise.
23404         * modules/unistr/u16-cpy: Likewise.
23405         * modules/unistr/u16-cpy-alloc: Likewise.
23406         * modules/unistr/u16-endswith: Likewise.
23407         * modules/unistr/u16-mblen: Likewise.
23408         * modules/unistr/u16-mbsnlen: Likewise.
23409         * modules/unistr/u16-mbtouc: Likewise.
23410         * modules/unistr/u16-mbtouc-unsafe: Likewise.
23411         * modules/unistr/u16-mbtoucr: Likewise.
23412         * modules/unistr/u16-move: Likewise.
23413         * modules/unistr/u16-next: Likewise.
23414         * modules/unistr/u16-prev: Likewise.
23415         * modules/unistr/u16-set: Likewise.
23416         * modules/unistr/u16-startswith: Likewise.
23417         * modules/unistr/u16-stpcpy: Likewise.
23418         * modules/unistr/u16-stpncpy: Likewise.
23419         * modules/unistr/u16-strcat: Likewise.
23420         * modules/unistr/u16-strchr: Likewise.
23421         * modules/unistr/u16-strcmp: Likewise.
23422         * modules/unistr/u16-strcoll: Likewise.
23423         * modules/unistr/u16-strcpy: Likewise.
23424         * modules/unistr/u16-strcspn: Likewise.
23425         * modules/unistr/u16-strdup: Likewise.
23426         * modules/unistr/u16-strlen: Likewise.
23427         * modules/unistr/u16-strmblen: Likewise.
23428         * modules/unistr/u16-strmbtouc: Likewise.
23429         * modules/unistr/u16-strncat: Likewise.
23430         * modules/unistr/u16-strncmp: Likewise.
23431         * modules/unistr/u16-strncpy: Likewise.
23432         * modules/unistr/u16-strnlen: Likewise.
23433         * modules/unistr/u16-strpbrk: Likewise.
23434         * modules/unistr/u16-strrchr: Likewise.
23435         * modules/unistr/u16-strspn: Likewise.
23436         * modules/unistr/u16-strstr: Likewise.
23437         * modules/unistr/u16-strtok: Likewise.
23438         * modules/unistr/u16-to-u32: Likewise.
23439         * modules/unistr/u16-to-u8: Likewise.
23440         * modules/unistr/u16-uctomb: Likewise.
23441         * modules/unistr/u32-check: Likewise.
23442         * modules/unistr/u32-chr: Likewise.
23443         * modules/unistr/u32-cmp: Likewise.
23444         * modules/unistr/u32-cmp2: Likewise.
23445         * modules/unistr/u32-cpy: Likewise.
23446         * modules/unistr/u32-cpy-alloc: Likewise.
23447         * modules/unistr/u32-endswith: Likewise.
23448         * modules/unistr/u32-mblen: Likewise.
23449         * modules/unistr/u32-mbsnlen: Likewise.
23450         * modules/unistr/u32-mbtouc: Likewise.
23451         * modules/unistr/u32-mbtouc-unsafe: Likewise.
23452         * modules/unistr/u32-mbtoucr: Likewise.
23453         * modules/unistr/u32-move: Likewise.
23454         * modules/unistr/u32-next: Likewise.
23455         * modules/unistr/u32-prev: Likewise.
23456         * modules/unistr/u32-set: Likewise.
23457         * modules/unistr/u32-startswith: Likewise.
23458         * modules/unistr/u32-stpcpy: Likewise.
23459         * modules/unistr/u32-stpncpy: Likewise.
23460         * modules/unistr/u32-strcat: Likewise.
23461         * modules/unistr/u32-strchr: Likewise.
23462         * modules/unistr/u32-strcmp: Likewise.
23463         * modules/unistr/u32-strcoll: Likewise.
23464         * modules/unistr/u32-strcpy: Likewise.
23465         * modules/unistr/u32-strcspn: Likewise.
23466         * modules/unistr/u32-strdup: Likewise.
23467         * modules/unistr/u32-strlen: Likewise.
23468         * modules/unistr/u32-strmblen: Likewise.
23469         * modules/unistr/u32-strmbtouc: Likewise.
23470         * modules/unistr/u32-strncat: Likewise.
23471         * modules/unistr/u32-strncmp: Likewise.
23472         * modules/unistr/u32-strncpy: Likewise.
23473         * modules/unistr/u32-strnlen: Likewise.
23474         * modules/unistr/u32-strpbrk: Likewise.
23475         * modules/unistr/u32-strrchr: Likewise.
23476         * modules/unistr/u32-strspn: Likewise.
23477         * modules/unistr/u32-strstr: Likewise.
23478         * modules/unistr/u32-strtok: Likewise.
23479         * modules/unistr/u32-to-u16: Likewise.
23480         * modules/unistr/u32-to-u8: Likewise.
23481         * modules/unistr/u32-uctomb: Likewise.
23482         * modules/uniwbrk/u8-wordbreaks: Likewise.
23483         * modules/uniwbrk/u16-wordbreaks: Likewise.
23484         * modules/uniwbrk/u32-wordbreaks: Likewise.
23485         * modules/uniwbrk/ulc-wordbreaks: Likewise.
23486         * modules/uniwbrk/wordbreak-property: Likewise.
23487         * modules/uniwidth/u8-strwidth: Likewise.
23488         * modules/uniwidth/u8-width: Likewise.
23489         * modules/uniwidth/u16-strwidth: Likewise.
23490         * modules/uniwidth/u16-width: Likewise.
23491         * modules/uniwidth/u32-strwidth: Likewise.
23492         * modules/uniwidth/u32-width: Likewise.
23493         * modules/uniwidth/width: Likewise.
23494         * modules/unicase/cased-tests (Makefile.am): Link all test programs
23495         with $(LIBUNISTRING).
23496         * modules/unicase/ignorable-tests: Likewise.
23497         * modules/unicase/locale-language-tests: Likewise.
23498         * modules/unicase/tolower-tests: Likewise.
23499         * modules/unicase/totitle-tests: Likewise.
23500         * modules/unicase/toupper-tests: Likewise.
23501         * modules/unicase/u8-casecmp-tests: Likewise.
23502         * modules/unicase/u8-casecoll-tests: Likewise.
23503         * modules/unicase/u8-casefold-tests: Likewise.
23504         * modules/unicase/u8-is-cased-tests: Likewise.
23505         * modules/unicase/u8-is-casefolded-tests: Likewise.
23506         * modules/unicase/u8-is-lowercase-tests: Likewise.
23507         * modules/unicase/u8-is-titlecase-tests: Likewise.
23508         * modules/unicase/u8-is-uppercase-tests: Likewise.
23509         * modules/unicase/u8-tolower-tests: Likewise.
23510         * modules/unicase/u8-totitle-tests: Likewise.
23511         * modules/unicase/u8-toupper-tests: Likewise.
23512         * modules/unicase/u16-casecmp-tests: Likewise.
23513         * modules/unicase/u16-casecoll-tests: Likewise.
23514         * modules/unicase/u16-casefold-tests: Likewise.
23515         * modules/unicase/u16-is-cased-tests: Likewise.
23516         * modules/unicase/u16-is-casefolded-tests: Likewise.
23517         * modules/unicase/u16-is-lowercase-tests: Likewise.
23518         * modules/unicase/u16-is-titlecase-tests: Likewise.
23519         * modules/unicase/u16-is-uppercase-tests: Likewise.
23520         * modules/unicase/u16-tolower-tests: Likewise.
23521         * modules/unicase/u16-totitle-tests: Likewise.
23522         * modules/unicase/u16-toupper-tests: Likewise.
23523         * modules/unicase/u32-casecmp-tests: Likewise.
23524         * modules/unicase/u32-casecoll-tests: Likewise.
23525         * modules/unicase/u32-casefold-tests: Likewise.
23526         * modules/unicase/u32-is-cased-tests: Likewise.
23527         * modules/unicase/u32-is-casefolded-tests: Likewise.
23528         * modules/unicase/u32-is-lowercase-tests: Likewise.
23529         * modules/unicase/u32-is-titlecase-tests: Likewise.
23530         * modules/unicase/u32-is-uppercase-tests: Likewise.
23531         * modules/unicase/u32-tolower-tests: Likewise.
23532         * modules/unicase/u32-totitle-tests: Likewise.
23533         * modules/unicase/u32-toupper-tests: Likewise.
23534         * modules/unicase/ulc-casecmp-tests: Likewise.
23535         * modules/unicase/ulc-casecoll-tests: Likewise.
23536         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
23537         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
23538         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
23539         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
23540         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
23541         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
23542         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
23543         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
23544         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
23545         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
23546         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
23547         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
23548         * modules/unictype/bidicategory-byname-tests: Likewise.
23549         * modules/unictype/bidicategory-name-tests: Likewise.
23550         * modules/unictype/bidicategory-of-tests: Likewise.
23551         * modules/unictype/bidicategory-test-tests: Likewise.
23552         * modules/unictype/block-list-tests: Likewise.
23553         * modules/unictype/block-of-tests: Likewise.
23554         * modules/unictype/block-test-tests: Likewise.
23555         * modules/unictype/category-C-tests: Likewise.
23556         * modules/unictype/category-Cc-tests: Likewise.
23557         * modules/unictype/category-Cf-tests: Likewise.
23558         * modules/unictype/category-Cn-tests: Likewise.
23559         * modules/unictype/category-Co-tests: Likewise.
23560         * modules/unictype/category-Cs-tests: Likewise.
23561         * modules/unictype/category-L-tests: Likewise.
23562         * modules/unictype/category-Ll-tests: Likewise.
23563         * modules/unictype/category-Lm-tests: Likewise.
23564         * modules/unictype/category-Lo-tests: Likewise.
23565         * modules/unictype/category-Lt-tests: Likewise.
23566         * modules/unictype/category-Lu-tests: Likewise.
23567         * modules/unictype/category-M-tests: Likewise.
23568         * modules/unictype/category-Mc-tests: Likewise.
23569         * modules/unictype/category-Me-tests: Likewise.
23570         * modules/unictype/category-Mn-tests: Likewise.
23571         * modules/unictype/category-N-tests: Likewise.
23572         * modules/unictype/category-Nd-tests: Likewise.
23573         * modules/unictype/category-Nl-tests: Likewise.
23574         * modules/unictype/category-No-tests: Likewise.
23575         * modules/unictype/category-P-tests: Likewise.
23576         * modules/unictype/category-Pc-tests: Likewise.
23577         * modules/unictype/category-Pd-tests: Likewise.
23578         * modules/unictype/category-Pe-tests: Likewise.
23579         * modules/unictype/category-Pf-tests: Likewise.
23580         * modules/unictype/category-Pi-tests: Likewise.
23581         * modules/unictype/category-Po-tests: Likewise.
23582         * modules/unictype/category-Ps-tests: Likewise.
23583         * modules/unictype/category-S-tests: Likewise.
23584         * modules/unictype/category-Sc-tests: Likewise.
23585         * modules/unictype/category-Sk-tests: Likewise.
23586         * modules/unictype/category-Sm-tests: Likewise.
23587         * modules/unictype/category-So-tests: Likewise.
23588         * modules/unictype/category-Z-tests: Likewise.
23589         * modules/unictype/category-Zl-tests: Likewise.
23590         * modules/unictype/category-Zp-tests: Likewise.
23591         * modules/unictype/category-Zs-tests: Likewise.
23592         * modules/unictype/category-and-not-tests: Likewise.
23593         * modules/unictype/category-and-tests: Likewise.
23594         * modules/unictype/category-byname-tests: Likewise.
23595         * modules/unictype/category-name-tests: Likewise.
23596         * modules/unictype/category-none-tests: Likewise.
23597         * modules/unictype/category-of-tests: Likewise.
23598         * modules/unictype/category-or-tests: Likewise.
23599         * modules/unictype/category-test-withtable-tests: Likewise.
23600         * modules/unictype/combining-class-tests: Likewise.
23601         * modules/unictype/ctype-alnum-tests: Likewise.
23602         * modules/unictype/ctype-alpha-tests: Likewise.
23603         * modules/unictype/ctype-blank-tests: Likewise.
23604         * modules/unictype/ctype-cntrl-tests: Likewise.
23605         * modules/unictype/ctype-digit-tests: Likewise.
23606         * modules/unictype/ctype-graph-tests: Likewise.
23607         * modules/unictype/ctype-lower-tests: Likewise.
23608         * modules/unictype/ctype-print-tests: Likewise.
23609         * modules/unictype/ctype-punct-tests: Likewise.
23610         * modules/unictype/ctype-space-tests: Likewise.
23611         * modules/unictype/ctype-upper-tests: Likewise.
23612         * modules/unictype/ctype-xdigit-tests: Likewise.
23613         * modules/unictype/decimal-digit-tests: Likewise.
23614         * modules/unictype/digit-tests: Likewise.
23615         * modules/unictype/mirror-tests: Likewise.
23616         * modules/unictype/numeric-tests: Likewise.
23617         * modules/unictype/property-alphabetic-tests: Likewise.
23618         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
23619         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
23620         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
23621         * modules/unictype/property-bidi-block-separator-tests: Likewise.
23622         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
23623         * modules/unictype/property-bidi-common-separator-tests: Likewise.
23624         * modules/unictype/property-bidi-control-tests: Likewise.
23625         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
23626         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
23627         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
23628         * modules/unictype/property-bidi-european-digit-tests: Likewise.
23629         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
23630         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
23631         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
23632         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
23633         * modules/unictype/property-bidi-pdf-tests: Likewise.
23634         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
23635         * modules/unictype/property-bidi-whitespace-tests: Likewise.
23636         * modules/unictype/property-byname-tests: Likewise.
23637         * modules/unictype/property-combining-tests: Likewise.
23638         * modules/unictype/property-composite-tests: Likewise.
23639         * modules/unictype/property-currency-symbol-tests: Likewise.
23640         * modules/unictype/property-dash-tests: Likewise.
23641         * modules/unictype/property-decimal-digit-tests: Likewise.
23642         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
23643         * modules/unictype/property-deprecated-tests: Likewise.
23644         * modules/unictype/property-diacritic-tests: Likewise.
23645         * modules/unictype/property-extender-tests: Likewise.
23646         * modules/unictype/property-format-control-tests: Likewise.
23647         * modules/unictype/property-grapheme-base-tests: Likewise.
23648         * modules/unictype/property-grapheme-extend-tests: Likewise.
23649         * modules/unictype/property-grapheme-link-tests: Likewise.
23650         * modules/unictype/property-hex-digit-tests: Likewise.
23651         * modules/unictype/property-hyphen-tests: Likewise.
23652         * modules/unictype/property-id-continue-tests: Likewise.
23653         * modules/unictype/property-id-start-tests: Likewise.
23654         * modules/unictype/property-ideographic-tests: Likewise.
23655         * modules/unictype/property-ids-binary-operator-tests: Likewise.
23656         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
23657         * modules/unictype/property-ignorable-control-tests: Likewise.
23658         * modules/unictype/property-iso-control-tests: Likewise.
23659         * modules/unictype/property-join-control-tests: Likewise.
23660         * modules/unictype/property-left-of-pair-tests: Likewise.
23661         * modules/unictype/property-line-separator-tests: Likewise.
23662         * modules/unictype/property-logical-order-exception-tests: Likewise.
23663         * modules/unictype/property-lowercase-tests: Likewise.
23664         * modules/unictype/property-math-tests: Likewise.
23665         * modules/unictype/property-non-break-tests: Likewise.
23666         * modules/unictype/property-not-a-character-tests: Likewise.
23667         * modules/unictype/property-numeric-tests: Likewise.
23668         * modules/unictype/property-other-alphabetic-tests: Likewise.
23669         * modules/unictype/property-other-default-ignorable-code-point-tests:
23670         Likewise.
23671         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
23672         * modules/unictype/property-other-id-continue-tests: Likewise.
23673         * modules/unictype/property-other-id-start-tests: Likewise.
23674         * modules/unictype/property-other-lowercase-tests: Likewise.
23675         * modules/unictype/property-other-math-tests: Likewise.
23676         * modules/unictype/property-other-uppercase-tests: Likewise.
23677         * modules/unictype/property-paired-punctuation-tests: Likewise.
23678         * modules/unictype/property-paragraph-separator-tests: Likewise.
23679         * modules/unictype/property-pattern-syntax-tests: Likewise.
23680         * modules/unictype/property-pattern-white-space-tests: Likewise.
23681         * modules/unictype/property-private-use-tests: Likewise.
23682         * modules/unictype/property-punctuation-tests: Likewise.
23683         * modules/unictype/property-quotation-mark-tests: Likewise.
23684         * modules/unictype/property-radical-tests: Likewise.
23685         * modules/unictype/property-sentence-terminal-tests: Likewise.
23686         * modules/unictype/property-soft-dotted-tests: Likewise.
23687         * modules/unictype/property-space-tests: Likewise.
23688         * modules/unictype/property-terminal-punctuation-tests: Likewise.
23689         * modules/unictype/property-test-tests: Likewise.
23690         * modules/unictype/property-titlecase-tests: Likewise.
23691         * modules/unictype/property-unassigned-code-value-tests: Likewise.
23692         * modules/unictype/property-unified-ideograph-tests: Likewise.
23693         * modules/unictype/property-uppercase-tests: Likewise.
23694         * modules/unictype/property-variation-selector-tests: Likewise.
23695         * modules/unictype/property-white-space-tests: Likewise.
23696         * modules/unictype/property-xid-continue-tests: Likewise.
23697         * modules/unictype/property-xid-start-tests: Likewise.
23698         * modules/unictype/property-zero-width-tests: Likewise.
23699         * modules/unictype/scripts-tests: Likewise.
23700         * modules/unictype/syntax-c-ident-tests: Likewise.
23701         * modules/unictype/syntax-c-whitespace-tests: Likewise.
23702         * modules/unictype/syntax-java-ident-tests: Likewise.
23703         * modules/unictype/syntax-java-whitespace-tests: Likewise.
23704         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
23705         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
23706         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
23707         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
23708         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
23709         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
23710         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
23711         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
23712         * modules/uniname/uniname-tests: Likewise.
23713         * modules/uninorm/canonical-decomposition-tests: Likewise.
23714         * modules/uninorm/compat-decomposition-tests: Likewise.
23715         * modules/uninorm/composition-tests: Likewise.
23716         * modules/uninorm/decomposing-form-tests: Likewise.
23717         * modules/uninorm/decomposition-tests: Likewise.
23718         * modules/uninorm/filter-tests: Likewise.
23719         * modules/uninorm/nfc-tests: Likewise.
23720         * modules/uninorm/nfd-tests: Likewise.
23721         * modules/uninorm/nfkc-tests: Likewise.
23722         * modules/uninorm/nfkd-tests: Likewise.
23723         * modules/uninorm/u8-normcmp-tests: Likewise.
23724         * modules/uninorm/u8-normcoll-tests: Likewise.
23725         * modules/uninorm/u16-normcmp-tests: Likewise.
23726         * modules/uninorm/u16-normcoll-tests: Likewise.
23727         * modules/uninorm/u32-normcmp-tests: Likewise.
23728         * modules/uninorm/u32-normcoll-tests: Likewise.
23729         * modules/unistdio/u8-asnprintf-tests: Likewise.
23730         * modules/unistdio/u8-vasnprintf-tests: Likewise.
23731         * modules/unistdio/u8-vasprintf-tests: Likewise.
23732         * modules/unistdio/u8-vsnprintf-tests: Likewise.
23733         * modules/unistdio/u8-vsprintf-tests: Likewise.
23734         * modules/unistdio/u16-asnprintf-tests: Likewise.
23735         * modules/unistdio/u16-vasnprintf-tests: Likewise.
23736         * modules/unistdio/u16-vasprintf-tests: Likewise.
23737         * modules/unistdio/u16-vsnprintf-tests: Likewise.
23738         * modules/unistdio/u16-vsprintf-tests: Likewise.
23739         * modules/unistdio/u32-asnprintf-tests: Likewise.
23740         * modules/unistdio/u32-vasnprintf-tests: Likewise.
23741         * modules/unistdio/u32-vasprintf-tests: Likewise.
23742         * modules/unistdio/u32-vsnprintf-tests: Likewise.
23743         * modules/unistdio/u32-vsprintf-tests: Likewise.
23744         * modules/unistdio/ulc-asnprintf-tests: Likewise.
23745         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
23746         * modules/unistdio/ulc-vasprintf-tests: Likewise.
23747         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
23748         * modules/unistdio/ulc-vsprintf-tests: Likewise.
23749         * modules/unistr/u8-check-tests: Likewise.
23750         * modules/unistr/u8-chr-tests: Likewise.
23751         * modules/unistr/u8-cmp-tests: Likewise.
23752         * modules/unistr/u8-cmp2-tests: Likewise.
23753         * modules/unistr/u8-cpy-alloc-tests: Likewise.
23754         * modules/unistr/u8-cpy-tests: Likewise.
23755         * modules/unistr/u8-mblen-tests: Likewise.
23756         * modules/unistr/u8-mbsnlen-tests: Likewise.
23757         * modules/unistr/u8-mbtouc-tests: Likewise.
23758         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
23759         * modules/unistr/u8-mbtoucr-tests: Likewise.
23760         * modules/unistr/u8-move-tests: Likewise.
23761         * modules/unistr/u8-next-tests: Likewise.
23762         * modules/unistr/u8-prev-tests: Likewise.
23763         * modules/unistr/u8-set-tests: Likewise.
23764         * modules/unistr/u8-stpcpy-tests: Likewise.
23765         * modules/unistr/u8-stpncpy-tests: Likewise.
23766         * modules/unistr/u8-strcat-tests: Likewise.
23767         * modules/unistr/u8-strcmp-tests: Likewise.
23768         * modules/unistr/u8-strcoll-tests: Likewise.
23769         * modules/unistr/u8-strcpy-tests: Likewise.
23770         * modules/unistr/u8-strdup-tests: Likewise.
23771         * modules/unistr/u8-strlen-tests: Likewise.
23772         * modules/unistr/u8-strmblen-tests: Likewise.
23773         * modules/unistr/u8-strmbtouc-tests: Likewise.
23774         * modules/unistr/u8-strncat-tests: Likewise.
23775         * modules/unistr/u8-strncmp-tests: Likewise.
23776         * modules/unistr/u8-strncpy-tests: Likewise.
23777         * modules/unistr/u8-strnlen-tests: Likewise.
23778         * modules/unistr/u8-to-u16-tests: Likewise.
23779         * modules/unistr/u8-to-u32-tests: Likewise.
23780         * modules/unistr/u8-uctomb-tests: Likewise.
23781         * modules/unistr/u16-check-tests: Likewise.
23782         * modules/unistr/u16-chr-tests: Likewise.
23783         * modules/unistr/u16-cmp-tests: Likewise.
23784         * modules/unistr/u16-cmp2-tests: Likewise.
23785         * modules/unistr/u16-cpy-alloc-tests: Likewise.
23786         * modules/unistr/u16-cpy-tests: Likewise.
23787         * modules/unistr/u16-mblen-tests: Likewise.
23788         * modules/unistr/u16-mbsnlen-tests: Likewise.
23789         * modules/unistr/u16-mbtouc-tests: Likewise.
23790         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
23791         * modules/unistr/u16-mbtoucr-tests: Likewise.
23792         * modules/unistr/u16-move-tests: Likewise.
23793         * modules/unistr/u16-next-tests: Likewise.
23794         * modules/unistr/u16-prev-tests: Likewise.
23795         * modules/unistr/u16-set-tests: Likewise.
23796         * modules/unistr/u16-stpcpy-tests: Likewise.
23797         * modules/unistr/u16-stpncpy-tests: Likewise.
23798         * modules/unistr/u16-strcat-tests: Likewise.
23799         * modules/unistr/u16-strcmp-tests: Likewise.
23800         * modules/unistr/u16-strcoll-tests: Likewise.
23801         * modules/unistr/u16-strcpy-tests: Likewise.
23802         * modules/unistr/u16-strdup-tests: Likewise.
23803         * modules/unistr/u16-strlen-tests: Likewise.
23804         * modules/unistr/u16-strmblen-tests: Likewise.
23805         * modules/unistr/u16-strmbtouc-tests: Likewise.
23806         * modules/unistr/u16-strncat-tests: Likewise.
23807         * modules/unistr/u16-strncmp-tests: Likewise.
23808         * modules/unistr/u16-strncpy-tests: Likewise.
23809         * modules/unistr/u16-strnlen-tests: Likewise.
23810         * modules/unistr/u16-to-u32-tests: Likewise.
23811         * modules/unistr/u16-to-u8-tests: Likewise.
23812         * modules/unistr/u16-uctomb-tests: Likewise.
23813         * modules/unistr/u32-check-tests: Likewise.
23814         * modules/unistr/u32-chr-tests: Likewise.
23815         * modules/unistr/u32-cmp-tests: Likewise.
23816         * modules/unistr/u32-cmp2-tests: Likewise.
23817         * modules/unistr/u32-cpy-alloc-tests: Likewise.
23818         * modules/unistr/u32-cpy-tests: Likewise.
23819         * modules/unistr/u32-mblen-tests: Likewise.
23820         * modules/unistr/u32-mbsnlen-tests: Likewise.
23821         * modules/unistr/u32-mbtouc-tests: Likewise.
23822         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
23823         * modules/unistr/u32-mbtoucr-tests: Likewise.
23824         * modules/unistr/u32-move-tests: Likewise.
23825         * modules/unistr/u32-next-tests: Likewise.
23826         * modules/unistr/u32-prev-tests: Likewise.
23827         * modules/unistr/u32-set-tests: Likewise.
23828         * modules/unistr/u32-stpcpy-tests: Likewise.
23829         * modules/unistr/u32-stpncpy-tests: Likewise.
23830         * modules/unistr/u32-strcat-tests: Likewise.
23831         * modules/unistr/u32-strcmp-tests: Likewise.
23832         * modules/unistr/u32-strcoll-tests: Likewise.
23833         * modules/unistr/u32-strcpy-tests: Likewise.
23834         * modules/unistr/u32-strdup-tests: Likewise.
23835         * modules/unistr/u32-strlen-tests: Likewise.
23836         * modules/unistr/u32-strmblen-tests: Likewise.
23837         * modules/unistr/u32-strmbtouc-tests: Likewise.
23838         * modules/unistr/u32-strncat-tests: Likewise.
23839         * modules/unistr/u32-strncmp-tests: Likewise.
23840         * modules/unistr/u32-strncpy-tests: Likewise.
23841         * modules/unistr/u32-strnlen-tests: Likewise.
23842         * modules/unistr/u32-to-u16-tests: Likewise.
23843         * modules/unistr/u32-to-u8-tests: Likewise.
23844         * modules/unistr/u32-uctomb-tests: Likewise.
23845         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
23846         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
23847         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
23848         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
23849         * modules/uniwidth/u8-strwidth-tests: Likewise.
23850         * modules/uniwidth/u8-width-tests: Likewise.
23851         * modules/uniwidth/u16-strwidth-tests: Likewise.
23852         * modules/uniwidth/u16-width-tests: Likewise.
23853         * modules/uniwidth/u32-strwidth-tests: Likewise.
23854         * modules/uniwidth/u32-width-tests: Likewise.
23855         * modules/uniwidth/width-tests: Likewise.
23856
23857 2010-05-18  Richard Jones  <rjones@redhat.com>
23858
23859         doc: users.txt: list hivex
23860         * users.txt: Add hivex.
23861
23862 2010-05-18  Richard Jones  <rjones@redhat.com>
23863
23864         doc: users.txt: list febootstrap
23865         * users.txt: Add febootstrap.
23866
23867 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
23868
23869         bootstrap: fix an error when gnulib is not used as a git submodule
23870         * build-aux/bootstrap (gnulib_path): If its length is zero then
23871         assign "gnulib" to it.
23872         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
23873
23874 2010-05-16  Bruno Haible  <bruno@clisp.org>
23875
23876         Avoid autoconf warnings about AM_ICONV.
23877         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
23878         2.64.
23879
23880 2010-05-16  Bruno Haible  <bruno@clisp.org>
23881
23882         absolute-header: Make the macro usable in more situations.
23883         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
23884         from gl_ABSOLUTE_HEADER.
23885         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
23886
23887 2010-05-16  James Youngman  <jay@gnu.org>
23888
23889         doc: update users.txt
23890         * users.txt: Add CSSC.
23891
23892 2010-05-16  Jim Meyering  <meyering@redhat.com>
23893
23894         init.sh: fix an error in the previous change; add more comments
23895         * tests/init.sh: Compare exit code in loop against 9, not 2.
23896         Patch by Bruno Haible.
23897         Make the two tests more similar by adding an empty "then" clause.
23898         Add comments.
23899
23900         init.sh: avoid unnecessary shell re-exec
23901         * tests/init.sh: Improve the re-exec-required check to first test the
23902         current shell.  If it passes the test, do not search for a shell that
23903         does pass, and do not re-exec.  This test is particularly contorted to
23904         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
23905         of $(...) evokes a syntax error and causes immediate shell exit with
23906         status 2.  Bruno Haible reported that the re-exec made it impossible
23907         to single-step through any init.sh-using script.
23908
23909 2010-05-16  Bruno Haible  <bruno@clisp.org>
23910
23911         Fix collision between gnulib's and libintl's printf replacements.
23912         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
23913         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
23914         (printf): When using GNU C, map the __printf__ function to rpl_printf
23915         via __asm__. When not using GNU C, define rpl_printf instead of
23916         __printf__.
23917         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
23918         commit.
23919         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
23920         commit.
23921         * m4/asm-underscore.m4: New file.
23922         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
23923         * modules/stdio (Files): Add m4/asm-underscore.m4.
23924         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
23925         Reported by Ben Pfaff.
23926
23927 2010-05-16  Bruno Haible  <bruno@clisp.org>
23928
23929         verify: Avoid skipping the test on openSUSE 11.0.
23930         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
23931
23932 2010-05-13  Bruno Haible  <bruno@clisp.org>
23933
23934         Avoid useless warnings from G++.
23935         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
23936         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
23937         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23938
23939 2010-05-11  Jim Meyering  <meyering@redhat.com>
23940
23941         maint.mk: tweak preceding change
23942         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
23943         regexps tighter by anchoring at EOL, and make the new group "shy"
23944         for slightly decreased overhead.
23945
23946 2010-05-11  Eric Blake  <eblake@redhat.com>
23947
23948         maint.mk: gnulib doesn't guarantee NSIG
23949         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
23950
23951 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23952
23953         test-pwrite.c: Remove unused variable declaration.
23954         * tests/test-pwrite.c (main): Remove read_buf declaration.
23955
23956         Remove useless test-pwrite.sh file.
23957         * tests/test-pwrite.sh: Delete file.
23958         * modules/pwrite-tests: Remove references.
23959         Reported by Bruno Haible.
23960
23961 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23962
23963         init.sh: fix a typo
23964         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
23965
23966 2010-05-10  Jim Meyering  <meyering@redhat.com>
23967
23968         maint.mk: avoid using a temporary file in the always-defined-macros check
23969         * top/maint.mk (.re-defmac): Remove rule.
23970         (gl_trap_): Remove definition.
23971         (sc_prohibit_always-defined_macros): Rewrite not to create and
23972         depend on a temporary file.  Instead, depend on GNU grep's ability
23973         to read a list of regular expressions from stdin when given "-f -".
23974
23975 2010-05-09  Bruno Haible  <bruno@clisp.org>
23976
23977         Update to GNU gettext 0.18, part 1.
23978         * m4/gettext.m4: Update to GNU gettext 0.18.
23979         * m4/intl.m4: Likewise.
23980         * m4/po.m4: Likewise.
23981         * modules/gettext (Files): Add m4/fcntl-o.m4.
23982         (configure.ac): Require gettext infrastructure from version 0.18.
23983
23984 2010-05-09  Jim Meyering  <meyering@redhat.com>
23985
23986         init.sh: enable MALLOC_PERTURB_
23987         * tests/init.sh: Enable glibc's malloc-perturbing option.
23988
23989         maint.mk: improve sc_cross_check_PATH_usage_in_tests
23990         With my recent change in init.sh from the two-line form:
23991             -#   : ${srcdir=.}
23992             -#   . "$srcdir/init.sh"; path_prepend_ .
23993             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
23994         I noticed that using the one-line form would cause this test
23995         to fail with a false-positive, or to stop working altogether,
23996         depending on whether help-version changed or all the tests did.
23997         * top/maint.mk (_hv_regex): Remove this definition.
23998         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
23999         (_hv_regex_strong): Use a stronger regex to check for conformance.
24000         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
24001         Give a separate diagnostic for lack of conforming use.
24002
24003         maint.mk: prohibit definition of symbols defined by gnulib
24004         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
24005         definition of symbols defined by gnulib.
24006
24007 2010-05-09  Bruno Haible  <bruno@clisp.org>
24008
24009         acl: Avoid test failure on Cygwin-hosted mingw.
24010         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
24011
24012 2010-05-09  Bruno Haible  <bruno@clisp.org>
24013
24014         error: Use system's fcntl function.
24015         * lib/error.c (fcntl): Undefine.
24016
24017 2010-05-09  Jim Meyering  <meyering@redhat.com>
24018
24019         verify: adjust formatting to be more consistent
24020         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
24021         argument-list '('s, and after one comma.
24022
24023 2010-05-09  Bruno Haible  <bruno@clisp.org>
24024
24025         error: More reliable output on mingw.
24026         * lib/error.c: Include <windows.h>.
24027         (is_open): New function.
24028         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
24029         defined.
24030
24031 2010-05-09  Bruno Haible  <bruno@clisp.org>
24032
24033         vasnprintf: Fix syntax errors in libintl build on mingw.
24034         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
24035         pad_ourselves and prec_ourselves after use.
24036
24037 2010-05-08  Bruno Haible  <bruno@clisp.org>
24038
24039         * lib/config.charset: Update comments for Cygwin 1.7.
24040         * lib/localcharset.c: Likewise.
24041
24042 2010-05-07  Jim Meyering  <meyering@redhat.com>
24043
24044         init.sh: improve comments
24045         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
24046         . "${srcdir=.}/init.sh"; path_prepend_ .
24047         Add a note about path_prepend_ and the alternative of using
24048         TESTS_ENVIRONMENT.
24049
24050 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
24051
24052         exclude: Unescape hashed patterns in wildcard mode.
24053         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
24054         to the hash list.
24055         * tests/test-exclude8.sh: New test case.
24056         * modules/exclude-tests: Add new test.
24057
24058 2010-05-05  Eric Blake  <eblake@redhat.com>
24059
24060         verify: automate tests
24061         * modules/verify-tests: New module.
24062         * tests/test-verify.sh: New file.
24063         * tests/test-verify.c: Guard each negative test with a unique id.
24064         Also avoid warning about unused left hand of comma expressions.
24065
24066 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
24067
24068         Further improvements to verify.h, suggested by Eric Blake.
24069         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
24070         the GL_* versions, to avoid collision with OpenGL.
24071         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
24072         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
24073         than testing merely whether it's defined.
24074
24075         Modify verify.h to pacify gcc -Wredundant_decls.
24076         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
24077         These use the prefix "GL_" since they're likely to be useful elsewhere.
24078         We may need to break them out into a different .h file.
24079         (__COUNTER__): Define to 0 if the compiler doesn't support it.
24080         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
24081         of verify_function__.
24082
24083 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
24084
24085         Tests for module pwrite.
24086         * modules/pwrite-tests: New file.
24087         * tests/test-pwrite.sh: New file.
24088         * tests/test-pwrite.c: New file.
24089
24090         New module pwrite.
24091         * lib/unistd.in.h (pwrite): New declaration.
24092         * lib/pwrite.c: New file, from glibc with modifications.
24093         * m4/pwrite.m4: New file.
24094         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
24095         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
24096         REPLACE_PWRITE.
24097         * modules/pwrite: New file.
24098         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
24099         REPLACE_PWRITE.
24100         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
24101         * doc/posix-functions/pwrite.texi: Mention the new module.
24102
24103 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
24104
24105         pread: Update documentation.
24106         * doc/posix-functions/pread.texi: Mention the 'pread' module.
24107
24108 2010-05-04  Eric Blake  <eblake@redhat.com>
24109
24110         docs: update cygwin progress
24111         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
24112         this bug.
24113         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
24114         Added in cygwin 1.7.2.
24115         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
24116         Likewise.
24117         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
24118         Likewise.
24119         * doc/glibc-functions/dup3.texi (dup3): Likewise.
24120         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
24121         * doc/glibc-functions/accept4.texi (accept4): Likewise.
24122         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
24123         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
24124         Mention nproc module.
24125         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
24126         bug in cygwin 1.7.5 addition.
24127         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
24128         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
24129         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
24130         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
24131         1.7.5.
24132         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
24133         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
24134         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
24135         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
24136         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
24137         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
24138         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
24139         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
24140         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
24141         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
24142         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
24143         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
24144         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
24145         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
24146         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
24147         Likewise.
24148         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
24149         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
24150         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
24151         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
24152         Likewise.
24153         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
24154         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
24155         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
24156         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
24157         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
24158         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
24159         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
24160         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
24161         Likewise.
24162         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
24163         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
24164         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
24165         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
24166         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
24167         Likewise.
24168         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
24169         Likewise.
24170         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
24171         Likewise.
24172         * doc/glibc-functions/xdrrec_endofrecord.texi
24173         (xdrrec_endofrecord): Likewise.
24174         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
24175         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
24176         Likewise.
24177         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
24178         Likewise.
24179
24180 2010-05-04  Jim Meyering  <meyering@redhat.com>
24181
24182         gendocs.sh: make its "-s FILE" option more useful
24183         * build-aux/gendocs.sh: When honoring the -s FILE option, update
24184         $PACKAGE to reflect the probably-different basename of "FILE".
24185
24186 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
24187
24188         bootstrap: don't ignore download_po_files failure
24189         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
24190         failure.
24191
24192 2010-05-03  Jim Meyering  <meyering@redhat.com>
24193
24194         maint.mk: allow to pass options to gendocs.sh
24195         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
24196         (gendocs_options_): New overridable variable.
24197
24198         gnu-web-doc-update: don't ignore configure or build failure
24199         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
24200
24201         announce-gen: backslash-escape '@'s in --help output
24202         * build-aux/announce-gen: Fix syntax errors.
24203
24204         maint.mk, announce-gen: allow project-specific announcement mail headers
24205         * top/maint.mk (translation_project_): Define default.
24206         (announcement_Cc_, announcement_mail_headers_): Likewise.
24207         (announcement): Invoke announce-gen with new --mail-headers option.
24208         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
24209
24210         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
24211         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
24212         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
24213         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
24214         line in the "err2" output file when running "make check" in verbose
24215         mode (i.e., with set -x enabled).
24216
24217 2010-05-03  Bruno Haible  <bruno@clisp.org>
24218
24219         wctob: Fix for weird platforms.
24220         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
24221         argument value.
24222
24223 2010-05-03  Jim Meyering  <meyering@redhat.com>
24224
24225         maint.mk: prohibit unwarranted use of <strings.h>
24226         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
24227         strings.h in a file that does not also use strcasecmp, strncasecmp,
24228         ffs or ffsll.
24229
24230         maint.mk: remove obsolete comments
24231         * top/maint.mk: Remove stale, commented-out rules.
24232
24233 2010-05-02  Bruno Haible  <bruno@clisp.org>
24234
24235         wcwidth: Declare also when it's aliased.
24236         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
24237         macro.
24238
24239 2010-05-02  Bruno Haible  <bruno@clisp.org>
24240
24241         Fix regression from 2010-04-25.
24242         * gnulib-tool (func_modules_transitive_closure): Check the status of
24243         all modules, not only of the tests that are of the form foo-tests where
24244         foo is a module.
24245
24246 2010-05-02  Bruno Haible  <bruno@clisp.org>
24247
24248         wctob: Work around nasty Cygwin 1.7.2 bug.
24249         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
24250         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
24251
24252 2010-05-01  Bruno Haible  <bruno@clisp.org>
24253
24254         fpurge: Sharper test.
24255         * tests/test-fpurge.c (main): Add one more ftell check.
24256         * modules/fpurge-tests (Depends-on): Add ftell.
24257         Suggested by Eric Blake.
24258
24259 2010-05-01  Bruno Haible  <bruno@clisp.org>
24260
24261         ftello: Another test.
24262         * tests/test-ftello3.c: New file.
24263         * modules/ftello-tests (Files): Add it.
24264         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
24265         MOSTLYCLEANFILES.
24266
24267         ftell: Another test.
24268         * tests/test-ftell3.c: New file.
24269         * modules/ftell-tests (Files): Add it.
24270         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
24271         MOSTLYCLEANFILES.
24272
24273 2010-05-01  Bruno Haible  <bruno@clisp.org>
24274
24275         ftell, ftello: Work around Solaris bug.
24276         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
24277         * lib/ftello.c: Include stdio-impl.h.
24278         (ftello): On Solaris, when _IOWRT is set, compute the result without
24279         looking at _IOREAD.
24280         * modules/ftello (Files): Add lib/stdio-impl.h.
24281         * doc/posix-functions/ftell.texi: Mention Solaris bug.
24282         * doc/posix-functions/ftello.texi: Likewise.
24283         Reported by Eric Blake.
24284
24285 2010-05-01  Bruno Haible  <bruno@clisp.org>
24286
24287         freading: Adapt to special meaning of _IOREAD flag on Solaris.
24288         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
24289         the _IOWRT flag is also set.
24290
24291 2010-05-01  Bruno Haible  <bruno@clisp.org>
24292
24293         Fix doc about a HP-UX stdio bug.
24294         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
24295         * doc/posix-functions/ftello.texi: Likewise.
24296
24297 2010-05-01  Bruno Haible  <bruno@clisp.org>
24298
24299         lseek test: Fix failure on Solaris.
24300         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
24301         output.
24302
24303 2010-04-30  Jim Meyering  <meyering@redhat.com>
24304
24305         bootstrap: don't ignore failure to generate po*/Makevars
24306         * build-aux/bootstrap (with_gettext): Don't ignore failure
24307         to create po/Makevars or runtime-po/Makevars.
24308
24309 2010-04-29  Eric Blake  <eblake@redhat.com>
24310
24311         headers: relax license to LGPLv2+
24312         * modules/fcntl-h (License): Relax license.
24313         * modules/getopt-posix (License): Likewise.
24314         * modules/locale (License): Likewise.
24315         * modules/math (License): Likewise.
24316         * modules/pty (License): Likewise.
24317         * modules/sched (License): Likewise.
24318         * modules/search (License): Likewise.
24319         * modules/spawn (License): Likewise.
24320         * modules/stdarg (License): Likewise.
24321         * modules/sysexits (License): Likewise.
24322
24323 2010-04-29  Jim Meyering  <meyering@redhat.com>
24324
24325         inttypes: relax license to LGPLv2+
24326         * modules/inttypes (License): Relax license.
24327
24328 2010-04-29  Simon Josefsson  <simon@josefsson.org>
24329
24330         * top/maint.mk (indent): Run twice to produce idempotent results.
24331
24332 2010-04-28  Bruno Haible  <bruno@clisp.org>
24333
24334         getdate: Generate getdate.c in the source directory.
24335         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
24336         MOSTLYCLEANFILES.
24337         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
24338
24339 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
24340
24341         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
24342         is not declared as a const *; avoid warnings in that case.
24343
24344 2010-04-28  Eric Blake  <eblake@redhat.com>
24345
24346         canonicalize-lgpl: avoid compiler warning
24347         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
24348         declaration' / 'extraneous semicolon' warning with some compilers.
24349         Reported by Andreas Gruenbacher.
24350
24351 2010-04-28  Jim Meyering  <meyering@redhat.com>
24352
24353         init.sh: ensure a more reliable exit status when exiting via trap
24354         * tests/init.sh (setup_): Don't rely on $? in signal handler.
24355         Inspired by patches from Dmitry V. Levin.
24356         Also trap on signal 3 (SIGQUIT).
24357
24358 2010-04-27  Bruno Haible  <bruno@clisp.org>
24359
24360         Update doc about utimes().
24361         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
24362         'utimens' module.
24363         Reported by Andreas Gruenbacher <agruen@suse.de>.
24364
24365 2010-04-27  Eric Blake  <eblake@redhat.com>
24366
24367         full-read, full-write: relax license
24368         * modules/full-read (License): Drop to LGPLv2+.
24369         * modules/full-write (License): Likewise.
24370         * modules/safe-read (License): Likewise.
24371         * modules/safe-write (License): Likewise.
24372
24373         pthread: mention library for linking
24374         * modules/pthread (Link): Mention $(LIB_PTHREAD).
24375
24376 2010-04-27  Jim Meyering  <meyering@redhat.com>
24377
24378         maint.mk: fix a bug introduced in last change
24379         * top/maint.mk (gl_assured_headers_): Now that all names are on
24380         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
24381         is not anchored to end of word, it should be adequate.
24382
24383         maint.mk: avoid side-effect in latest syntax-check
24384         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
24385         to run commands via $(shell...), and hence to incur cost only when
24386         the new rule is actually run.
24387
24388         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
24389         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
24390         and use that to create a regexp used to detect all #if HAVE_..._H uses.
24391         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
24392         (gl_assured_headers_, az_, AZ_): Define.
24393         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
24394
24395 2010-04-26  Jim Meyering  <jim@meyering.net>
24396             Bruno Haible  <bruno@clisp.org>
24397
24398         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
24399         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
24400         Prompted by an exchange with Gilles Espinasse.
24401
24402 2010-04-26  Jim Meyering  <meyering@redhat.com>
24403
24404         git-version-gen: aesthetic tweak
24405         * build-aux/git-version-gen: Use "$nl" rather than a literal,
24406         so that the command remains on a single line.
24407
24408 2010-04-26  Eric Blake  <eblake@redhat.com>
24409
24410         git-version-gen: allow use on EBCDIC hosts
24411         * build-aux/git-version-gen (dirty): Use literal rather than tying
24412         ourselves to ascii.
24413         Reported by Steve Goetze.
24414
24415 2010-04-25  Bruno Haible  <bruno@clisp.org>
24416
24417         netdb: Add support for GNULIB_POSIXCHECK.
24418         * lib/netdb.in.h: Include warn-on-use.h.
24419         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
24420         functions are used when GNULIB_POSIXCHECK is defined and the
24421         getaddrinfo module is not in use.
24422         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
24423         freeaddrinfo, gai_strerror, getnameinfo are declared.
24424         * modules/netdb (Depends-on): Add warn-on-use.
24425         (Makefile.am): Include warn-on-use.h in netdb.h.
24426
24427 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
24428
24429         build: avoid "make check" failure without .git/ directory
24430         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
24431         there is no .git/ directory.
24432
24433 2010-04-25  Bruno Haible  <bruno@clisp.org>
24434
24435         ptsname: Fix misuse of ttyname_r.
24436         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
24437         of errno.
24438
24439 2010-04-25  Bruno Haible  <bruno@clisp.org>
24440
24441         ttyname_r: Make it work on Solaris 10.
24442         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
24443         if the system function has the POSIX declaration. Test whether the
24444         function fails if the buffer is less than 128 bytes large.
24445         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
24446         system's ttyname_r function. Provide a reasonably large buffer.
24447         * modules/ttyname_r (Depends-on): Add extensions.
24448         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
24449
24450 2010-04-25  Bruno Haible  <bruno@clisp.org>
24451
24452         Use the 'extensions' module for some more functions on Solaris.
24453         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
24454         module.
24455         * doc/posix-functions/ctime_r.texi: Likewise.
24456         * doc/posix-functions/getgrgid_r.texi: Likewise.
24457         * doc/posix-functions/getgrnam_r.texi: Likewise.
24458         * doc/posix-functions/getpwnam_r.texi: Likewise.
24459         * doc/posix-functions/getpwuid_r.texi: Likewise.
24460         * doc/posix-functions/readdir_r.texi: Likewise.
24461         * doc/posix-functions/sigwait.texi: Likewise.
24462         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
24463         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
24464
24465 2010-04-25  Bruno Haible  <bruno@clisp.org>
24466
24467         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
24468         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
24469         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
24470         * lib/ttyname_r.c: Include <limits.h>.
24471         (ttyname_r): Define using the system's ttyname_r function, if it exists
24472         and not on Solaris.
24473         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
24474         set.
24475         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
24476         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
24477         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
24478         Reported by Simon Josefsson.
24479
24480 2010-04-25  Bruno Haible  <bruno@clisp.org>
24481
24482         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
24483         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
24484         * doc/posix-functions/ctime_r.texi: Likewise.
24485         * doc/posix-functions/getgrgid_r.texi: Likewise.
24486         * doc/posix-functions/getgrnam_r.texi: Likewise.
24487         * doc/posix-functions/getlogin_r.texi: Likewise.
24488         * doc/posix-functions/getpwnam_r.texi: Likewise.
24489         * doc/posix-functions/getpwuid_r.texi: Likewise.
24490         * doc/posix-functions/readdir_r.texi: Likewise.
24491         * doc/posix-functions/sigwait.texi: Likewise.
24492         * doc/posix-functions/ttyname_r.texi: Likewise.
24493         Reported by Simon Josefsson.
24494
24495 2010-04-25  Bruno Haible  <bruno@clisp.org>
24496
24497         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
24498         * gnulib-tool (func_usage): Document that --with-*-tests options apply
24499         also to --create-testdir.
24500         (func_acceptable): Don't consider the status of *-tests modules here.
24501         (func_modules_transitive_closure): Consider it here, before including a
24502         test module.
24503         (func_import, func_create_testdir): Set inc_all_direct_tests,
24504         inc_all_indirect_tests.
24505         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
24506         --create-testdir and --create-megatestdir.
24507
24508 2010-04-25  Bruno Haible  <bruno@clisp.org>
24509
24510         gnulib-tool: Add --without-*-tests options.
24511         * gnulib-tool (func_usage): Document the --without-*-tests options.
24512         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
24513         excl_unportable_tests): New variables.
24514         Fail if they are specified with --import or --update.
24515         (func_acceptable): Respect the excl_*_tests variables.
24516         (func_import): Set the excl_*_tests variables to empty.
24517
24518 2010-04-25  Simon Josefsson  <simon@josefsson.org>
24519             Bruno Haible  <bruno@clisp.org>
24520
24521         Work around a MacOS X 10.4 bug with openpty.
24522         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
24523         * tests/test-openpty.c (main): Close the master side explicitly.
24524
24525 2010-04-25  Bruno Haible  <bruno@clisp.org>
24526
24527         strnlen: Fix a C++ test error on MacOS X and Solaris.
24528         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
24529         the function is not declared.
24530         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
24531         Simon Josefsson.
24532
24533 2010-04-24  Bruno Haible  <bruno@clisp.org>
24534
24535         Avoid a gcc warning.
24536         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
24537         of correct type for %08lx directive.
24538         Reported by Eric Blake.
24539
24540 2010-04-24  Bruno Haible  <bruno@clisp.org>
24541
24542         vasnprintf: Correct errno value in case of out-of-memory.
24543         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
24544         or sprintf. Use the errno value from SNPRINTF or sprintf.
24545         Reported by Ian Beckwith <ianb@erislabs.net>.
24546
24547 2010-04-24  Bruno Haible  <bruno@clisp.org>
24548
24549         ansi-c++-opt: Find correct compiler when cross-compiling.
24550         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
24551         AC_CHECK_PROGS.
24552         Reported by Simon Josefsson.
24553
24554 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
24555
24556         vc-list-files: Add support for subversion
24557         * build-aux/vc-list-files: Use "svn list" to generate the list of
24558         files controlled by subversion.
24559
24560 2010-04-23  Jim Meyering  <meyering@redhat.com>
24561
24562         vc-list-files tests: convert to use init.sh
24563         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
24564         path_prepend_.
24565         Use Exit, not exit.
24566         Use skip_ rather than open coding it.
24567         Remove trap set-up and compare definitions.
24568         * tests/test-vc-list-files-git.sh: Likewise.
24569         * modules/vc-list-files-tests (Files): Add tests/init.sh.
24570
24571 2010-04-22  Simon Josefsson  <simon@josefsson.org>
24572
24573         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
24574         backup files.
24575
24576 2010-04-21  Simon Josefsson  <simon@josefsson.org>
24577
24578         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
24579
24580 2010-04-20  Eric Blake  <eblake@redhat.com>
24581
24582         tests: be robust to ignored SIGPIPE
24583         * tests/test-select-in.sh: Consume all output.
24584         * tests/test-lseek.sh: Check correct exit status, while avoiding
24585         EPIPE.
24586
24587 2010-04-20  Simon Josefsson  <simon@josefsson.org>
24588             Bruno Haible  <bruno@clisp.org>
24589
24590         visibility: Don't use -fvisibility if it leads to a warning.
24591         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
24592         yes, don't pretend that visibility works if it leads to a warning.
24593         Reported by Mike Gran <spk121@yahoo.com>.
24594
24595 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
24596
24597         * build-aux/bootstrap: Use "git -h" for testing for supported options
24598         instead of "git --help".  The short-form option only shows a summary,
24599         and doesn't layout the full man page.  Grep for the full option name
24600         in the summary, too.
24601
24602 2010-04-19  Bruno Haible  <bruno@clisp.org>
24603
24604         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
24605         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
24606         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
24607         mention of RELOCATABLE_STRIP.
24608         Reported by Sylvain Beucler <beuc@beuc.net>.
24609
24610 2010-04-19  Bruno Haible  <bruno@clisp.org>
24611
24612         * lib/diffseq.h: Fix typo in comment.
24613         Reported by Eric Blake.
24614
24615 2010-04-19  Bruno Haible  <bruno@clisp.org>
24616
24617         ioctl: Move autoconf macro to a .m4 file.
24618         * m4/ioctl.m4: New file, extracted from modules/ioctl.
24619         * modules/ioctl (Files): Add it.
24620         (configure.ac): Simply invoke gl_FUNC_IOCTL.
24621         Reported by Ian Beckwith <ianb@erislabs.net>.
24622
24623 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
24624             Bruno Haible  <bruno@clisp.org>
24625
24626         diffseq: Accommodate use-case with abstract arrays.
24627         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
24628         is not defined.
24629         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
24630         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
24631
24632 2010-04-18  Bruno Haible  <bruno@clisp.org>
24633
24634         * doc/posix-headers/stdbool.texi: More precise wording.
24635
24636 2010-04-17  Jim Meyering  <meyering@redhat.com>
24637
24638         maint.mk: use gnu-style indentation in an embedded perl script
24639         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
24640         Rename variable: s/two/last_two_bytes/
24641
24642 2010-04-16  Eric Blake  <eblake@redhat.com>
24643
24644         test-stdbool: skip test that fails with Solaris CC
24645         * tests/test-stdbool.c (f): Skip test that causes compilation
24646         error under buggy C++ compiler.
24647         * lib/stdbool.in.h: Document the limitation.
24648         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
24649
24650         setenv: allow compilation with C++
24651         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
24652         register keyword.
24653
24654         stdint: allow test to pass with C++
24655         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
24656
24657         getopt: allow compilation with C++
24658         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
24659         struct.
24660         * lib/getopt.c (_getopt_internal_r): Use correct type.
24661         Reported by Dagobert Michelson, via Joel E. Denny.
24662
24663 2010-04-16  Bruno Haible  <bruno@clisp.org>
24664
24665         Override netdb.h always.
24666         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
24667         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
24668         Reported by Ludovic Courtès <ludo@gnu.org>.
24669
24670 2010-04-15  Bruno Haible  <bruno@clisp.org>
24671
24672         openpty: Fix mistake from 2010-03-21.
24673         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
24674         Reported by Simon Josefsson.
24675
24676 2010-04-15  Eric Blake  <eblake@redhat.com>
24677
24678         test-forkpty: fix expected signature
24679         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
24680         Reported by Simon Josefsson.
24681
24682 2010-04-15  Jim Meyering  <meyering@redhat.com>
24683
24684         maint.mk: texinfo_suffix_re_: correct the default regexp
24685         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
24686
24687         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
24688         make it configurable via texinfo_suffix_re_.
24689
24690 2010-04-14  Eric Blake  <eblake@redhat.com>
24691
24692         strtok_r: relax license to LGPLv2+
24693         * modules/strtok_r (License): Relax license.
24694         Reported by Matthias Bolte.
24695
24696 2010-04-14  Simon Josefsson  <simon@josefsson.org>
24697
24698         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
24699         version 1.4.4 by default instead of requiring the libgcrypt
24700         version used during build.  This makes it possible to use the
24701         application with older but still binary compatible libgcrypt
24702         versions.
24703
24704 2010-04-13  Eric Blake  <eblake@redhat.com>
24705
24706         getopt-gnu: match recent glibc fixes and posix ruling
24707         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
24708         '+' handling, when requesting extensions.
24709         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
24710         'W;' handling.
24711         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
24712         * doc/posix-functions/getopt.texi (getopt): Document this.
24713         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
24714         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24715         Likewise.
24716
24717         getopt: merge bug fixes from glibc
24718         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
24719         diagnostics.  Honor '+:' correctly.  Reject ';'.
24720
24721         getopt-posix: detect MacOS bug
24722         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
24723         optind when missing a required argument.
24724         * doc/posix-functions/getopt.texi (getopt): Document the bug.
24725         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
24726         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24727         Likewise.
24728
24729         getopt-posix: avoid spurious failure on Solaris
24730         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
24731         an indicator that setting optind=1 is sufficient for reset.
24732
24733         getopt-posix: avoid spurious failure on FreeBSD
24734         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
24735         in POSIX mode, since the m4 test uses it.
24736
24737         gnulib-tool: silence warning on BSD sh
24738         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
24739
24740 2010-04-13  Jim Meyering  <meyering@redhat.com>
24741
24742         doc: users.txt: GNU patch now uses gnulib
24743         * users.txt: Add patch.
24744
24745 2010-04-12  Jim Meyering  <meyering@redhat.com>
24746
24747         maint.mk: generate more concise timing data for syntax-check rules
24748         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
24749         " done" from each line that reports a syntax-check test duration.
24750
24751 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
24752
24753         git-version-gen: use "git update-index..." rather than "git status"
24754         * build-aux/git-version-gen: Use git update-index --refresh, not
24755         "git status".  With some versions of git, "git status" would fail
24756         to update the index and result in an unwarranted "-dirty" suffix.
24757
24758 2010-04-11  Jim Meyering  <meyering@redhat.com>
24759
24760         openat: correct formatting (no semantic change)
24761         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
24762         Suggested by Bruno Haible.
24763
24764 2010-04-11  Bruno Haible  <bruno@clisp.org>
24765
24766         Stricter declaration checking in testdirs.
24767         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24768         If for_tests is true, augment AM_CPPFLAGS to define
24769         GNULIB_STRICT_CHECKING.
24770         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
24771         GNULIB_STRICT_CHECKING is defined, verify that the function is
24772         declared.
24773
24774 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
24775             Bruno Haible  <bruno@clisp.org>
24776
24777         libunistring: Improve configure output.
24778         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
24779         Don't say "consider installing GNU libunistring" when checking again
24780         with libiconv.
24781
24782 2010-04-11  Bruno Haible  <bruno@clisp.org>
24783
24784         libunistring: Correct value of $LTLIBUNISTRING.
24785         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
24786         correct the value of $LTLIBUNISTRING.
24787
24788 2010-04-11  Bruno Haible  <bruno@clisp.org>
24789
24790         havelib: Add static libraries to LIBS in the right order.
24791         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
24792         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
24793
24794 2010-04-11  Bruno Haible  <bruno@clisp.org>
24795
24796         libunistring: Detect libunistring also when it depends on libiconv.
24797         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
24798         the second AC_LIB_HAVE_LINKFLAGS invocation.
24799
24800 2010-04-11  James Youngman  <jay@gnu.org>
24801
24802         close-stream: declare local scalars to be "const"
24803         * lib/close-stream.c (close_stream): Make boolean variables const
24804         to document the fact that we set but do not change them.
24805
24806 2010-04-11  Bruno Haible  <bruno@clisp.org>
24807
24808         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
24809
24810 2010-04-11  Jim Meyering  <meyering@redhat.com>
24811
24812         maint.mk: don't include dist-check.mk
24813         * top/maint.mk: Remove bogus include directive.
24814
24815         maint.mk: improve empty-line-at-EOF check
24816         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
24817         solution, rather than tail+Perl-based one.  The latter would read
24818         a few kilobytes from the end of each file, and did not handle empty
24819         files properly.
24820
24821         maint.mk: print the elapsed time for each syntax-check rule
24822         * top/maint.mk (sc_m_rules_): Save start time in a file.
24823         (sc_z_rules_): New rules: remove temp file and print elapsed time.
24824         (local-check): Interpose the .z rules
24825
24826 2010-04-11  Jim Meyering  <meyering@redhat.com>
24827
24828         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
24829         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
24830         empty file with one that ends in an empty line.
24831
24832 2010-04-10  Bruno Haible  <bruno@clisp.org>
24833
24834         mkdir: Make it work on mingw64.
24835         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
24836         * lib/mkdir.c: Update comment.
24837         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
24838
24839 2010-04-10  Bruno Haible  <bruno@clisp.org>
24840
24841         Don't override improved macro from newer autoconf.
24842         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
24843         autoconf >= 2.62.
24844         Reported by Joel E. Denny <jdenny@clemson.edu>.
24845
24846 2010-04-10  Jim Meyering  <meyering@redhat.com>
24847
24848         maint.mk: new syntax-check rule: prohibit empty lines at end of file
24849         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
24850
24851         maint.mk: correct a diagnostic
24852         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
24853         in diagnostic; now use $prohibit.
24854
24855 2010-04-10  Bruno Haible  <address@hidden>
24856
24857         fchownat: Fix a C++ test error on Solaris 8.
24858         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
24859         the function does not exist.
24860
24861 2010-04-10  Bruno Haible  <bruno@clisp.org>
24862
24863         vasnprintf: Add more tests.
24864         * tests/test-vasnprintf-posix.c: Include <errno.h>.
24865         (test_function): Test converting an invalid wide string.
24866
24867         vasnprintf: Correct handling of unconvertible wide string arguments.
24868         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
24869         VASNPRINTF.
24870         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
24871         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
24872         smaller than the expected maximum need for the directive. Set errno to
24873         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
24874         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
24875         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
24876         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
24877         * modules/vasnprintf (Files): Add m4/printf.m4.
24878         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24879
24880 2010-04-10  Bruno Haible  <bruno@clisp.org>
24881
24882         vasnprintf: Fix crash in %ls directive.
24883         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
24884         string is passed as argument to %ls, with no precision and no width.
24885         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24886
24887 2010-04-10  Bruno Haible  <bruno@clisp.org>
24888
24889         vasnprintf: Fix multiple test failures on mingw.
24890         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
24891         _snprintf, or snwprintf, not _snwprintf.
24892
24893 2010-04-10  Bruno Haible  <bruno@clisp.org>
24894
24895         write: Fix a C++ test error on mingw.
24896         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
24897
24898 2010-04-10  Bruno Haible  <bruno@clisp.org>
24899
24900         vasnprintf test: Reduce code duplication.
24901         * tests/test-vasnprintf.c (test_function): New function, extracted from
24902         test_vasnprintf.
24903         (test_vasnprintf, test_asnprintf): Invoke it.
24904
24905 2010-04-10  Bruno Haible  <bruno@clisp.org>
24906
24907         strnlen: Fix warning in C++ mode on MacOS X.
24908         * lib/string.in.h (strnlen): Use the modern idiom.
24909         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
24910         defining strnlen as a macro already in <config.h>.
24911         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24912         REPLACE_STRNLEN.
24913         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
24914         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24915
24916 2010-04-08  James Youngman  <jay@gnu.org>
24917
24918         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
24919         the example.
24920
24921 2010-04-09  Jim Meyering  <meyering@redhat.com>
24922
24923         maint.mk: print better diagnostic when there is no $(_hv_file)
24924         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
24925         announce that when $(_hv_file) (aka help-version) does not exist.
24926
24927         init.sh: run tr in the "C" locale to avoid multibyte interpretation
24928         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
24929         not try to interpret its random input bytes.  Jarno Rajahalme reported
24930         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
24931         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
24932         (mktempd_): Likewise, just in case.
24933
24934         ftruncate: add two years to projected module removal date: 2012
24935         * m4/ftruncate.m4: Adjust comments.
24936
24937         ftruncate: mark module as obsolete; even MinGW provides it, now
24938         * modules/ftruncate (Status): Obsolete.
24939         (Notice): Say that.
24940         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
24941         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
24942
24943 2010-04-08  Bruno Haible  <bruno@clisp.org>
24944
24945         Fix side effects from tests-related modules.
24946         * modules/dprintf-posix (Comment): New section.
24947         * modules/fprintf-posix (Comment): Likewise.
24948         * modules/obstack-printf-posix (Comment): Likewise.
24949         * modules/printf-posix (Comment): Likewise.
24950         * modules/snprintf-posix (Comment): Likewise.
24951         * modules/sprintf-posix (Comment): Likewise.
24952         * modules/vasnprintf-posix (Comment): Likewise.
24953         * modules/vasprintf-posix (Comment): Likewise.
24954         * modules/vdprintf-posix (Comment): Likewise.
24955         * modules/vfprintf-posix (Comment): Likewise.
24956         * modules/vprintf-posix (Comment): Likewise.
24957         * modules/vsnprintf-posix (Comment): Likewise.
24958         * modules/vsprintf-posix (Comment): Likewise.
24959         * modules/xprintf-posix (Comment): Likewise.
24960         * modules/xvasprintf-posix (Comment): Likewise.
24961         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
24962         * modules/floorf-tests (Depends-on): Likewise.
24963         * modules/round-tests (Depends-on): Likewise.
24964         * modules/roundf-tests (Depends-on): Likewise.
24965         * modules/trunc-tests (Depends-on): Likewise.
24966         * modules/truncf-tests (Depends-on): Likewise.
24967         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
24968         'fprintf-posix' module is not present.
24969         * tests/test-floorf2.c (check): Likewise.
24970         * tests/test-trunc2.c (check): Likewise.
24971         * tests/test-truncf2.c (check): Likewise.
24972         * tests/test-round2.c (equal): Likewise.
24973         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24974
24975 2010-04-07  Karl Berry  <karl@gnu.org>
24976
24977         * config/srclist.txt,
24978         * config/srclistvars.sh,
24979         * config/srclist-update: doc fixes.
24980
24981 2010-04-07  Jim Meyering  <meyering@redhat.com>
24982
24983         maint.mk: add a PATH crosschecking syntax-check rule
24984         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
24985         Useful if you use a test like the one in help-version (coreutils,
24986         diffutils, grep, gzip) that ensures $(VERSION) matches what is
24987         printed by prog --version.
24988
24989 2010-04-06  Bruno Haible  <bruno@clisp.org>
24990
24991         Fix link error on mingw.
24992         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
24993         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
24994
24995 2010-04-06  Bruno Haible  <bruno@clisp.org>
24996
24997         Assume rmdir exists.
24998         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
24999
25000 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
25001
25002         doc: update users.txt
25003         * users.txt: Add gcal.
25004
25005 2010-04-06  Jim Meyering  <meyering@redhat.com>
25006
25007         init.sh: simply unset TMPDIR rather than risking env -i
25008         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
25009         although it probably works fine on all Unix-based systems, some
25010         systems (Cygwin?) cannot tolerate a totally cleared environment.
25011         Suggestion from Eric Blake.
25012
25013 2010-04-06  Jim Meyering  <meyering@redhat.com>
25014
25015         init.sh: portability fix: use env's POSIX-specified -i option not -u
25016         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
25017         than unportable env -u.  Solaris 5.11's env lacks support for -u.
25018
25019 2010-04-05  Bruno Haible  <bruno@clisp.org>
25020
25021         btowc: Work around Cygwin 1.7.2 bug.
25022         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
25023         does not map NUL to 0.
25024         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
25025
25026 2010-04-05  Bruno Haible  <bruno@clisp.org>
25027
25028         Make the multithread modules work on Cygwin 1.7.2.
25029         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
25030         imported symbols can be declared weak, so that it returns "no" on
25031         Cygwin 1.7.2.
25032
25033 2010-04-05  Bruno Haible  <bruno@clisp.org>
25034
25035         Use the module 'strncat'.
25036         * modules/unistr/u8-strncat (Depends-on): Add strncat.
25037
25038         Tests for module 'strncat'.
25039         * modules/strncat-tests: New file.
25040         * tests/test-strncat.c: New file.
25041
25042         New module 'strncat'.
25043         * lib/string.in.h (strncat): New declaration.
25044         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
25045         * m4/strncat.m4: New file, based on m4/memchr.m4.
25046         * modules/strncat: New file.
25047         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
25048         is declared.
25049         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
25050         REPLACE_STRNCAT.
25051         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
25052         REPLACE_STRNCAT.
25053         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
25054         module.
25055         * tests/test-string-c++.cc: Check signature of strncat.
25056
25057 2010-04-05  Jim Meyering  <meyering@redhat.com>
25058
25059         xstrtoumax-tests: convert to use init.sh
25060         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
25061         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25062         Use Exit, not exit.
25063         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25064
25065         xstrtoimax-tests: convert to use init.sh
25066         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
25067         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25068         Use Exit, not exit.
25069         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25070
25071 2010-04-05  Bruno Haible  <bruno@clisp.org>
25072
25073         sys_socket: Avoid #define replacements in C++ mode.
25074         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
25075         warning to the function if possible, rather than #defining the symbol
25076         to a dysfunctional alias.
25077
25078 2010-04-05  Bruno Haible  <bruno@clisp.org>
25079
25080         fseeko: Fix C++ test error on mingw.
25081         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
25082         gl_FUNC_FSEEKO.
25083         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
25084         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
25085         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
25086         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
25087
25088 2010-04-05  Bruno Haible  <bruno@clisp.org>
25089
25090         duplocale: Improve test output.
25091         * tests/test-duplocale.c (main): Print reason for skipped test.
25092
25093 2010-04-05  Bruno Haible  <bruno@clisp.org>
25094
25095         Assume rmdir exists.
25096         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
25097         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
25098
25099 2010-04-05  Bruno Haible  <bruno@clisp.org>
25100
25101         Fix link error on Solaris 8 with cc.
25102         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
25103
25104 2010-04-05  Bruno Haible  <bruno@clisp.org>
25105
25106         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
25107         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
25108
25109 2010-04-05  Bruno Haible  <bruno@clisp.org>
25110
25111         vasprintf: Update documentation.
25112         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
25113
25114 2010-04-05  Bruno Haible  <bruno@clisp.org>
25115
25116         ptsname: Improve test.
25117         * tests/test-ptsname.c (main): Also try the various master names of BSD
25118         systems.
25119
25120 2010-04-05  Bruno Haible  <bruno@clisp.org>
25121
25122         memchr: Avoid a possible C++ test error.
25123         * lib/string.in.h (memchr): Provide declaration if function is missing.
25124         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
25125         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
25126         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
25127         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
25128
25129 2010-04-05  Bruno Haible  <bruno@clisp.org>
25130
25131         strtok_r: Improve idiom.
25132         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
25133         AC_LIBOBJ is used.
25134
25135 2010-04-05  Bruno Haible  <bruno@clisp.org>
25136
25137         strdup: Improve idiom.
25138         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
25139         AC_LIBOBJ is used.
25140         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
25141         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
25142         when AC_LIBOBJ is used.
25143
25144 2010-04-05  Bruno Haible  <bruno@clisp.org>
25145
25146         mbsinit, mbrtowc, wcrtomb: Improve idioms.
25147         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
25148         don't set REPLACE_MBSINIT to 1.
25149         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
25150         don't set REPLACE_MBRTOWC to 1.
25151         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
25152         exist, don't set REPLACE_MBSRTOWCS to 1.
25153         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
25154         exist, don't set REPLACE_MBSNRTOWCS to 1.
25155         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
25156         don't set REPLACE_WCRTOMB to 1.
25157         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
25158         exist, don't set REPLACE_WCSRTOMBS to 1.
25159         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
25160         exist, don't set REPLACE_WCSNRTOMBS to 1.
25161
25162 2010-04-05  Bruno Haible  <bruno@clisp.org>
25163
25164         ldexpl: Improve idiom.
25165         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
25166         make sure to set HAVE_DECL_LDEXPL to 0.
25167
25168 2010-04-05  Jim Meyering  <meyering@redhat.com>
25169
25170         xstrtol-tests: convert to use init.sh
25171         * modules/xstrtol-tests (Files): Add tests/init.sh.
25172         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25173         Use Exit, not exit.
25174         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25175
25176         atexit-tests: convert to use init.sh
25177         * modules/atexit-tests (Files): Add tests/init.sh.
25178         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25179         Use Exit, not exit.
25180         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25181
25182         init.sh: fix typo
25183         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
25184
25185         init.sh: make it easier for a test script to write to the tty, ...
25186         when using automake's parallel-tests mode.
25187         * tests/init.sh (stderr_fileno_): Define overridable variable.
25188         (warn_): New function, to use it.
25189         (fail_, skip_, framework_failure_): Use warn_.
25190
25191 2010-04-04  Bruno Haible  <bruno@clisp.org>
25192
25193         btowc: Avoid warning.
25194         * lib/btowc.c: Include <stdlib.h>.
25195         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
25196
25197 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
25198             Bruno Haible  <bruno@clisp.org>
25199
25200         wchar: Port to NetBSD 1.5.
25201         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
25202         * lib/wctype.in.h (WEOF): Likewise.
25203
25204 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
25205             Bruno Haible  <bruno@clisp.org>
25206
25207         Port extended stdio to NetBSD 1.5.
25208         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
25209         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
25210         older.
25211
25212 2010-04-04  Bruno Haible  <bruno@clisp.org>
25213
25214         string: Remove unused substitution.
25215         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
25216         HAVE_DECL_STRERROR.
25217         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
25218
25219 2010-04-04  Bruno Haible  <bruno@clisp.org>
25220
25221         strtod: Avoid a possible C++ test error.
25222         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
25223         set REPLACE_STRTOD.
25224
25225 2010-04-04  Bruno Haible  <bruno@clisp.org>
25226
25227         strerror: Update documentation.
25228         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
25229
25230 2010-04-04  Bruno Haible  <bruno@clisp.org>
25231
25232         stdio: Fix some C++ test errors on Solaris 8 with GCC.
25233         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
25234         _GL_CXXALIAS_SYS_CAST.
25235
25236 2010-04-04  Bruno Haible  <bruno@clisp.org>
25237
25238         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
25239         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
25240         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
25241         REPLACE_FREXPL to 1.
25242         * doc/posix-functions/frexpl.texi: Update documentation.
25243
25244 2010-04-04  Bruno Haible  <bruno@clisp.org>
25245
25246         math: Fix some C++ test errors on Solaris 8 and Cygwin.
25247         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
25248
25249 2010-04-04  Bruno Haible  <bruno@clisp.org>
25250
25251         Implement nanosleep for native Windows.
25252         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
25253
25254 2010-04-04  Bruno Haible  <bruno@clisp.org>
25255
25256         math: Fix some C++ test errors on Solaris 8.
25257         * lib/math.in.h (truncf, trunc): Use simpler idiom.
25258
25259 2010-04-04  Bruno Haible  <bruno@clisp.org>
25260
25261         math: Fix some C++ test errors on Cygwin.
25262         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
25263         truncl): Provide declaration if the system does not have it.
25264         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
25265         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
25266         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
25267         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
25268         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
25269         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
25270         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
25271         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
25272         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
25273         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
25274         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
25275         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
25276         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
25277         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
25278         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
25279         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
25280         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
25281         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
25282         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
25283         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
25284         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
25285         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
25286
25287 2010-04-04  Bruno Haible  <bruno@clisp.org>
25288
25289         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
25290         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
25291         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
25292         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
25293         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
25294         * m4/isinf.m4 (gl_ISINF): Likewise.
25295         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25296
25297 2010-04-04  Bruno Haible  <bruno@clisp.org>
25298
25299         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
25300         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
25301
25302 2010-04-04  Bruno Haible  <bruno@clisp.org>
25303
25304         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
25305         * modules/tmpfile (configure.ac): Update.
25306
25307         tmpfile: Fix C++ test error on mingw.
25308         * lib/stdio.in.h (tmpfile): New declaration.
25309         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
25310         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
25311         * modules/tmpfile (Depends-on): Add stdio.
25312         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
25313         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
25314         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
25315         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
25316         REPLACE_TMPFILE.
25317         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
25318
25319 2010-04-04  Bruno Haible  <bruno@clisp.org>
25320
25321         ioctl: Fix C++ test error on mingw.
25322         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
25323         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
25324         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
25325
25326 2010-04-03  Bruno Haible  <bruno@clisp.org>
25327
25328         wcwidth: Fix C++ test error on mingw.
25329         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
25330         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
25331         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
25332
25333 2010-04-03  Bruno Haible  <bruno@clisp.org>
25334
25335         nanosleep: Fix C++ test error on mingw.
25336         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
25337         * lib/time.in.h (nanosleep): Use modern idiom.
25338         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
25339         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
25340         REPLACE_NANOSLEEP to 1.
25341         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
25342         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
25343
25344 2010-04-03  Bruno Haible  <bruno@clisp.org>
25345
25346         strptime: Fix C++ test error on mingw.
25347         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
25348         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
25349         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
25350         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
25351         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
25352         not REPLACE_STRPTIME.
25353         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
25354         REPLACE_STRPTIME.
25355
25356 2010-04-03  Bruno Haible  <bruno@clisp.org>
25357
25358         timegm: Fix C++ test error on mingw.
25359         * lib/time.in.h (timegm): Use modern idiom.
25360         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
25361         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
25362         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
25363         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
25364
25365 2010-04-03  Bruno Haible  <bruno@clisp.org>
25366
25367         timegm: Assume declaration if function exists.
25368         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
25369         if it exists. Don't clobber ac_cv_func_timegm.
25370
25371 2010-04-03  Bruno Haible  <bruno@clisp.org>
25372
25373         time_r: Fix C++ test error on mingw.
25374         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
25375         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
25376         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
25377         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
25378         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
25379
25380 2010-04-03  Bruno Haible  <bruno@clisp.org>
25381
25382         time_r: Minor updates.
25383         * modules/time_r (Description): Mention the provided functions.
25384         * lib/time_r.c: Don't include <string.h>.
25385         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
25386         * doc/posix-functions/localtime_r.texi: Likewise.
25387
25388 2010-04-03  Bruno Haible  <bruno@clisp.org>
25389
25390         time: Fix regression introduced on 2010-03-08.
25391         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
25392         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
25393
25394 2010-04-03  Jim Meyering  <meyering@redhat.com>
25395
25396         maint.mk: don't silently disable project-specific syntax-check rules
25397         * top/maint.mk (_prohibit_regexp): Define, to help people realize
25398         that they need to convert their project-specific syntax-check rules
25399         to use the new _sc_search_regexp.
25400
25401 2010-04-03  Bruno Haible  <bruno@clisp.org>
25402
25403         fchdir: Fix regression introduced on 2010-03-08.
25404         * lib/unistd.in.h (fchdir): Fix declaration.
25405         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
25406         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
25407         REPLACE_FCHDIR.
25408         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
25409         REPLACE_FCHDIR.
25410
25411 2010-04-03  Bruno Haible  <bruno@clisp.org>
25412
25413         getpagesize: Fix C++ test error on mingw.
25414         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
25415         system does not declare the function.
25416         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
25417         declared.
25418         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25419         HAVE_DECL_GETPAGESIZE.
25420         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
25421
25422 2010-04-03  Bruno Haible  <bruno@clisp.org>
25423
25424         stdio: Make C++ tests work on mingw.
25425         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
25426         does not declare the function.
25427
25428 2010-04-03  Bruno Haible  <bruno@clisp.org>
25429
25430         ftello: Fix C++ test error on mingw.
25431         * lib/stdio.in.h (ftello): Use modern idiom.
25432         * lib/ftello.c (ftello): Renamed from rpl_ftello.
25433         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
25434         is missing and that it needs to be replaced.
25435         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
25436         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
25437         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
25438
25439 2010-04-03  Bruno Haible  <bruno@clisp.org>
25440
25441         fseeko: Fix C++ test error on mingw.
25442         * lib/stdio.in.h (fseeko): Use modern idiom.
25443         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
25444         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
25445         is missing and that it needs to be replaced.
25446         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
25447         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
25448         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
25449
25450 2010-04-03  Bruno Haible  <bruno@clisp.org>
25451
25452         mkstemp: Fix C++ test error on mingw.
25453         * lib/stdlib.in.h (mkstemp): Use modern idiom.
25454         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
25455         function is missing and that it needs to be replaced.
25456         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
25457         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
25458
25459 2010-04-03  Bruno Haible  <bruno@clisp.org>
25460
25461         stpncpy: Fix C++ test error on mingw.
25462         * lib/string.in.h (stpncpy): Use modern idiom.
25463         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
25464         function is missing and that it needs to be replaced.
25465         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25466         REPLACE_STPNCPY.
25467         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
25468
25469 2010-04-03  Bruno Haible  <bruno@clisp.org>
25470
25471         sys_stat: Fix C++ test error on mingw.
25472         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
25473         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
25474
25475 2010-04-03  Bruno Haible  <bruno@clisp.org>
25476
25477         pty: Update doc.
25478         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
25479
25480 2010-04-03  Bruno Haible  <bruno@clisp.org>
25481
25482         unistd: Fix C++ test error on mingw.
25483         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
25484
25485 2010-04-03  Bruno Haible  <bruno@clisp.org>
25486
25487         Update doc regarding mingw.
25488         * doc/glibc-functions/openpty.texi: Update regarding mingw.
25489         * doc/glibc-functions/login_tty.texi: Likewise.
25490         * doc/glibc-functions/forkpty.texi: Likewise.
25491
25492 2010-04-03  Bruno Haible  <bruno@clisp.org>
25493
25494         stdlib: Avoid compilation failure of c-strtold on mingw.
25495         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
25496
25497 2010-04-03  Bruno Haible  <bruno@clisp.org>
25498
25499         locale: Make C++ tests work on Cygwin and mingw.
25500         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
25501         cannot provide the function.
25502         Reported by Simon Josefsson.
25503
25504 2010-04-03  Bruno Haible  <bruno@clisp.org>
25505
25506         localename: Port to MacOS X 10.6.
25507         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
25508         memory layout of the locales in MacOS X 10.6 as well.
25509         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
25510
25511 2010-04-02  Bruno Haible  <bruno@clisp.org>
25512
25513         gnulib-tool: Ensure that long-running tests are executed last.
25514         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
25515         running tests after the one for the other tests.
25516
25517 2010-04-02  Bruno Haible  <bruno@clisp.org>
25518
25519         gnulib-tool: Ensure the tests in the main directory are executed first.
25520         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
25521         start with the current directory.
25522
25523 2010-04-02  Bruno Haible  <bruno@clisp.org>
25524
25525         Tests for module 'havelib', moved here from GNU gettext.
25526         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
25527         modifications.
25528         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
25529         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
25530         with modifications.
25531         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
25532         modifications.
25533         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
25534         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
25535         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
25536         with modifications.
25537         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
25538         with modifications.
25539         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
25540         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
25541         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
25542         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
25543         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
25544         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
25545         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
25546         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
25547         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
25548         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
25549         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
25550         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
25551         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
25552         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
25553         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
25554         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
25555         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
25556         with modifications.
25557         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
25558         with modifications.
25559         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
25560         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
25561         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
25562         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
25563         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
25564         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
25565         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
25566         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
25567         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
25568         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
25569         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
25570         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
25571         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
25572         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
25573         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
25574         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
25575         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
25576         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
25577         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
25578         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
25579         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
25580         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
25581         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
25582         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
25583         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
25584         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
25585         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
25586         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
25587         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
25588         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
25589         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
25590         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
25591         * tests/havelib/rpathx/rpathx.c: New file, from
25592         gettext/autoconf-lib-link.
25593         * tests/havelib/rpathx/Makefile.am: New file, from
25594         gettext/autoconf-lib-link.
25595         * tests/havelib/rpathx/configure.ac: New file, from
25596         gettext/autoconf-lib-link with modifications.
25597         * tests/havelib/rpathy/rpathy.c: New file, from
25598         gettext/autoconf-lib-link.
25599         * tests/havelib/rpathy/Makefile.am: New file, from
25600         gettext/autoconf-lib-link.
25601         * tests/havelib/rpathy/configure.ac: New file, from
25602         gettext/autoconf-lib-link with modifications.
25603         * tests/havelib/rpathz/rpathz.c: New file, from
25604         gettext/autoconf-lib-link.
25605         * tests/havelib/rpathz/Makefile.am: New file, from
25606         gettext/autoconf-lib-link.
25607         * tests/havelib/rpathz/configure.ac: New file, from
25608         gettext/autoconf-lib-link with modifications.
25609         * tests/havelib/rpathlx/usex.c: New file, from
25610         gettext/autoconf-lib-link.
25611         * tests/havelib/rpathlx/Makefile.am: New file, from
25612         gettext/autoconf-lib-link.
25613         * tests/havelib/rpathlx/configure.ac: New file, from
25614         gettext/autoconf-lib-link with modifications.
25615         * tests/havelib/rpathly/usey.c: New file, from
25616         gettext/autoconf-lib-link.
25617         * tests/havelib/rpathly/Makefile.am: New file, from
25618         gettext/autoconf-lib-link.
25619         * tests/havelib/rpathly/configure.ac: New file, from
25620         gettext/autoconf-lib-link with modifications.
25621         * tests/havelib/rpathlz/usez.c: New file, from
25622         gettext/autoconf-lib-link.
25623         * tests/havelib/rpathlz/Makefile.am: New file, from
25624         gettext/autoconf-lib-link.
25625         * tests/havelib/rpathlz/configure.ac: New file, from
25626         gettext/autoconf-lib-link with modifications.
25627         * tests/havelib/rpathlyx/usey.c: New file, from
25628         gettext/autoconf-lib-link.
25629         * tests/havelib/rpathlyx/Makefile.am: New file, from
25630         gettext/autoconf-lib-link.
25631         * tests/havelib/rpathlyx/configure.ac: New file, from
25632         gettext/autoconf-lib-link with modifications.
25633         * tests/havelib/rpathlzyx/usez.c: New file, from
25634         gettext/autoconf-lib-link.
25635         * tests/havelib/rpathlzyx/Makefile.am: New file, from
25636         gettext/autoconf-lib-link.
25637         * tests/havelib/rpathlzyx/configure.ac: New file, from
25638         gettext/autoconf-lib-link with modifications.
25639         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
25640         with modifications.
25641
25642 2010-04-02  Bruno Haible  <bruno@clisp.org>
25643
25644         gnulib-tool: Create distributed built sources also for the tests.
25645         * gnulib-tool (func_create_testdir): Also generate distributed built
25646         sources in the tests directory.
25647
25648 2010-04-02  Bruno Haible  <bruno@clisp.org>
25649
25650         gnulib-tool: Obey user's environment variables.
25651         * gnulib-tool (func_create_testdir): When creating built sources,
25652         respect the environment variables for autoconf, automake, etc. given by
25653         the user.
25654
25655 2010-04-02  Bruno Haible  <bruno@clisp.org>
25656
25657         gnulib-tool: Provide the value of --m4-base to modules.
25658         * gnulib-tool (func_import, func_create_testdir): Emit a definition
25659         of gl_m4_base.
25660
25661 2010-04-02  Eric Blake  <eblake@redhat.com>
25662
25663         maint.mk: fix some fallout
25664         * NEWS: Document the incompatible change, and its effect on cfg.mk.
25665         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
25666
25667 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
25668
25669         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
25670         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
25671         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
25672         (sc_cast_of_x_alloc_return_value): Likewise.
25673         (sc_cast_of_alloca_return_value): Likewise.
25674         (sc_space_tab): Likewise.
25675         (sc_prohibit_atoi_atof): Likewise.
25676         (sc_prohibit_magic_number_exit): Likewise.
25677         (sc_error_exit_success): Likewise.
25678         (sc_file_system): Likewise.
25679         (sc_prohibit_have_config_h): Likewise.
25680         (sc_require_config_h): Likewise.
25681         (sc_prohibit_HAVE_MBRTOWC): Likewise.
25682         (sc_obsolete_symbols): Likewise.
25683         (sc_changelog): Likewise.
25684         (sc_program_name): Likewise.
25685         (sc_the_the): Likewise.
25686         (sc_trailing_blank): Likewise.
25687         (sc_two_space_separator_in_usage): Likewise.
25688         (sc_useless_cpp_parens): Likewise.
25689         (sc_GPL_version): Likewise.
25690         (sc_GFDL_version): Likewise.
25691         (sc_texinfo_acronym): Likewise.
25692         (sc_prohibit_cvs_keyword): Likewise.
25693         (sc_prohibit_stat_st_blocks): Likewise.
25694         (sc_prohibit_S_IS_definition): Likewise.
25695         (sc_redundant_const): Likewise.
25696         (sc_makefile_TAB_only_indentation): Likewise.
25697         (sc_m4_quote_check): Likewise.
25698         (sc_makefile_path_separator_check): Likewise.
25699         (sc_copyright_check): Likewise.
25700         (sc_Wundef_boolean): Likewise.
25701         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25702
25703         maint.mk: match 0 or more whitespace-before-function-call '('
25704         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
25705         that have zero or two-and-more spaces between the function name
25706         and the open parenthesis.
25707         (sc_error_message_warn_fatal): Likewise.
25708         (sc_error_message_uppercase): Likewise.
25709         (sc_error_message_period): Likewise.
25710
25711 2010-03-31  Eric Blake  <eblake@redhat.com>
25712
25713         maint.mk: check for [ as well as test
25714         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
25715         Based on a libvirt report by Matthias Bolte.
25716
25717         gnumakefile: don't squelch _version output
25718         * top/GNUmakefile (_version): Create one-shot dependency rather
25719         than using $(shell) when version must be regenerated.
25720         (_autoreconf): Run verbosely, by default.
25721
25722         sys_time: avoid compiler warnings
25723         * lib/sys_time.in.h (includes): Ensure gcc pragma is
25724         unconditional, fixing regression from 2010-03-29.
25725         Reported by Simon Josefsson.
25726
25727 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
25728
25729         maint.mk: s/_header_without_use/_sc_header_without_use/
25730         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
25731         (sc_prohibit_assert_without_use): Use the new name.
25732         (sc_prohibit_close_stream_without_use): Likewise.
25733         (sc_prohibit_getopt_without_use): Likewise.
25734         (sc_prohibit_quotearg_without_use): Likewise.
25735         (sc_prohibit_quote_without_use): Likewise.
25736         (sc_prohibit_long_options_without_use): Likewise.
25737         (sc_prohibit_inttostr_without_use): Likewise.
25738         (sc_prohibit_ignore_value_without_use): Likewise.
25739         (sc_prohibit_error_without_use): Likewise.
25740         (sc_prohibit_xalloc_without_use): Likewise.
25741         (sc_prohibit_hash_without_use): Likewise.
25742         (sc_prohibit_hash_pjw_without_use): Likewise.
25743         (sc_prohibit_safe_read_without_use): Likewise.
25744         (sc_prohibit_argmatch_without_use): Likewise.
25745         (sc_prohibit_canonicalize_without_use): Likewise.
25746         (sc_prohibit_root_dev_ino_without_use): Likewise.
25747         (sc_prohibit_openat_without_use): Likewise.
25748         (sc_prohibit_c_ctype_without_use): Likewise.
25749         (sc_prohibit_signal_without_use): Likewise.
25750         (sc_prohibit_intprops_without_use): Likewise.
25751
25752 2010-03-30  Eric Blake  <eblake@redhat.com>
25753
25754         maint: improve module indicators
25755         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
25756         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
25757         columns, and avoid extra macro expansion.
25758
25759         fdopendir: work around FreeBSD bug
25760         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
25761         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
25762         * modules/dirent (Makefile.am): Substitute it.
25763         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
25764         declaration.
25765         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
25766         fix.
25767         Reported by Christian Weisgerber <naddy@mips.inka.de>.
25768
25769 2010-03-29  Bruno Haible  <bruno@clisp.org>
25770
25771         Emit #pragma system_header after the inclusion guard, not before.
25772         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
25773         guard that spans the entire file, not before. This enables an
25774         optimization in GCC's preprocessor.
25775         * lib/ctype.in.h: Likewise.
25776         * lib/dirent.in.h: Likewise.
25777         * lib/errno.in.h: Likewise.
25778         * lib/float.in.h: Likewise.
25779         * lib/getopt.in.h: Likewise.
25780         * lib/iconv.in.h: Likewise.
25781         * lib/langinfo.in.h: Likewise.
25782         * lib/locale.in.h: Likewise.
25783         * lib/math.in.h: Likewise.
25784         * lib/netdb.in.h: Likewise.
25785         * lib/netinet_in.in.h: Likewise.
25786         * lib/pty.in.h: Likewise.
25787         * lib/sched.in.h: Likewise.
25788         * lib/se-selinux.in.h: Likewise.
25789         * lib/search.in.h: Likewise.
25790         * lib/spawn.in.h: Likewise.
25791         * lib/stdarg.in.h: Likewise.
25792         * lib/stdint.in.h: Likewise.
25793         * lib/string.in.h: Likewise.
25794         * lib/strings.in.h: Likewise.
25795         * lib/sys_file.in.h: Likewise.
25796         * lib/sys_ioctl.in.h: Likewise.
25797         * lib/sys_time.in.h: Likewise.
25798         * lib/sys_times.in.h: Likewise.
25799         * lib/sys_utsname.in.h: Likewise.
25800         * lib/sys_wait.in.h: Likewise.
25801         * lib/sysexits.in.h: Likewise.
25802         * lib/wctype.in.h: Likewise.
25803
25804 2010-03-28  James Youngman  <jay@gnu.org>
25805
25806         save-cwd: don't leak a file descriptor when the caller execs.
25807         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
25808         saved file descriptor.
25809         * modules/save-cwd (Depends-on): Depend on cloexec.
25810
25811 2010-03-29  Bruno Haible  <bruno@clisp.org>
25812
25813         Remove vestiges of fts-lgpl module.
25814         * lib/fts_.h: Assume GNULIB_FTS is 1.
25815         * lib/fts.c: Likewise.
25816         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25817
25818 2010-03-28  Bruno Haible  <bruno@clisp.org>
25819
25820         Fix definition of tests witness macro.
25821         * gnulib-tool (func_import): Fix definition of witness macro.
25822
25823 2010-03-28  Bruno Haible  <bruno@clisp.org>
25824
25825         Fix ioctl's protoype on glibc systems.
25826         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
25827         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
25828         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
25829         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
25830         signature. If not, arrange to replace the ioctl function.
25831         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
25832         REPLACE_IOCTL.
25833         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
25834         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
25835         Reported by Ludovic Courtès <ludo@gnu.org>.
25836
25837 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
25838
25839         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
25840         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
25841         made it so grep -r --include=GLOB* ... did not work.
25842
25843 2010-03-26  Jim Meyering  <meyering@redhat.com>
25844             Eric Blake  <eblake@redhat.com>
25845
25846         maint.mk: prohibit use of test's -o and -a operators
25847         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
25848
25849 2010-03-28  Bruno Haible  <bruno@clisp.org>
25850
25851         Remove unused GNULIB_XYZ macro definitions.
25852         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
25853         invocation.
25854
25855 2010-03-28  Bruno Haible  <bruno@clisp.org>
25856
25857         Mark privileged tests modules.
25858         * modules/idpriv-drop-tests (Status): New section.
25859         * modules/idpriv-droptemp-tests (Status): New section.
25860
25861 2010-03-28  Bruno Haible  <bruno@clisp.org>
25862
25863         Split C++ tests into separate tests modules.
25864         * modules/dirent-c++-tests: New file, extracted from
25865         modules/dirent-tests.
25866         * modules/dirent-tests: Depend on it.
25867         * modules/fcntl-h-c++-tests: New file, extracted from
25868         modules/fcntl-h-tests.
25869         * modules/fcntl-h-tests: Depend on it.
25870         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
25871         * modules/glob-tests: Depend on it.
25872         * modules/iconv-h-c++-tests: New file, extracted from
25873         modules/iconv-h-tests.
25874         * modules/iconv-h-tests: Depend on it.
25875         * modules/langinfo-c++-tests: New file, extracted from
25876         modules/langinfo-tests.
25877         * modules/langinfo-tests: Depend on it.
25878         * modules/locale-c++-tests: New file, extracted from
25879         modules/locale-tests.
25880         * modules/locale-tests: Depend on it.
25881         * modules/math-c++-tests: New file, extracted from modules/math-tests.
25882         * modules/math-tests: Depend on it.
25883         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
25884         * modules/pty-tests: Depend on it.
25885         * modules/search-c++-tests: New file, extracted from
25886         modules/search-tests.
25887         * modules/search-tests: Depend on it.
25888         * modules/signal-c++-tests: New file, extracted from
25889         modules/signal-tests.
25890         * modules/signal-tests: Depend on it.
25891         * modules/spawn-c++-tests: New file, extracted from
25892         modules/spawn-tests.
25893         * modules/spawn-tests: Depend on it.
25894         * modules/stdio-c++-tests: New file, extracted from
25895         modules/stdio-tests.
25896         * modules/stdio-tests: Depend on it.
25897         * modules/stdlib-c++-tests: New file, extracted from
25898         modules/stdlib-tests.
25899         * modules/stdlib-tests: Depend on it.
25900         * modules/string-c++-tests: New file, extracted from
25901         modules/string-tests.
25902         * modules/string-tests: Depend on it.
25903         * modules/sys_ioctl-c++-tests: New file, extracted from
25904         modules/sys_ioctl-tests.
25905         * modules/sys_ioctl-tests: Depend on it.
25906         * modules/sys_select-c++-tests: New file, extracted from
25907         modules/sys_select-tests.
25908         * modules/sys_select-tests: Depend on it.
25909         * modules/sys_socket-c++-tests: New file, extracted from
25910         modules/sys_socket-tests.
25911         * modules/sys_socket-tests: Depend on it.
25912         * modules/sys_stat-c++-tests: New file, extracted from
25913         modules/sys_stat-tests.
25914         * modules/sys_stat-tests: Depend on it.
25915         * modules/sys_time-c++-tests: New file, extracted from
25916         modules/sys_time-tests.
25917         * modules/sys_time-tests: Depend on it.
25918         * modules/time-c++-tests: New file, extracted from modules/time-tests.
25919         * modules/time-tests: Depend on it.
25920         * modules/unistd-c++-tests: New file, extracted from
25921         modules/unistd-tests.
25922         * modules/unistd-tests: Depend on it.
25923         * modules/wchar-c++-tests: New file, extracted from
25924         modules/wchar-tests.
25925         * modules/wchar-tests: Depend on it.
25926         * modules/wctype-c++-tests: New file, extracted from
25927         modules/wctype-tests.
25928         * modules/wctype-tests: Depend on it.
25929         Reported by Simon Josefsson.
25930
25931 2010-03-28  Bruno Haible  <bruno@clisp.org>
25932
25933         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
25934         * gnulib-tool (func_exists_module): New function, extracted from
25935         func_verify_module.
25936         (func_verify_module): Use it.
25937         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
25938         'foo' only if 'foo' exists.
25939         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
25940         module.
25941
25942 2010-03-28  Bruno Haible  <bruno@clisp.org>
25943
25944         gnulib-tool: Add support for special categories of tests.
25945         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
25946         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
25947         (func_usage): Document them.
25948         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
25949         inc_unportable_tests, inc_all_tests): New variables.
25950         (func_acceptable): Consider these variables.
25951         (func_modules_transitive_closure): Make it work when the 'Status' field
25952         consists of multiple words.
25953         (func_import): Store and restore the values of inc_cxx_tests,
25954         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
25955         inc_all_tests in gnulib-comp.m4.
25956         (func_create_testdir): Set inc_all_tests to true.
25957         * doc/gnulib.texi (Extra tests modules): New section.
25958         Suggested by Jim Meyering.
25959
25960 2010-03-28  Bruno Haible  <bruno@clisp.org>
25961
25962         ansi-c++-opt: Allow turning off the C++ build by default.
25963         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
25964         gl_CXX_CHOICE_DEFAULT_NO is defined.
25965         Requested by Eric Blake.
25966
25967 2010-03-28  Bruno Haible  <bruno@clisp.org>
25968
25969         unistd: Avoid #define replacements in C++ mode.
25970         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
25971         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
25972         setsockopt, shutdown, select): In C++, attach a warning to the function
25973         if possible, rather than #defining the symbol to a dysfunctional alias.
25974         Reported by John W. Eaton <jwe@gnu.org>.
25975
25976 2010-03-28  Bruno Haible  <bruno@clisp.org>
25977
25978         Fix link errors on mingw.
25979         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
25980         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
25981         $(LIBSOCKET).
25982         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
25983         $(LIBSOCKET).
25984
25985 2010-03-28  Bruno Haible  <bruno@clisp.org>
25986             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25987
25988         lib-ignore: Determine different options for different compilers.
25989         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
25990         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
25991         Add comments.
25992         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
25993         * NEWS: Mention the change.
25994
25995 2010-03-27  Bruno Haible  <bruno@clisp.org>
25996
25997         Remove unused GNULIB_XYZ macro definitions.
25998         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25999         * modules/fseek (configure.ac): Likewise.
26000         * modules/ioctl (configure.ac): Likewise.
26001         * modules/open (configure.ac): Likewise.
26002         * modules/stdlib-safer (configure.ac): Likewise.
26003
26004 2010-03-27  Bruno Haible  <bruno@clisp.org>
26005
26006         Add a remark about certain modules.
26007         * modules/malloc (Comment): New section.
26008         * modules/realloc (Comment): Likewise.
26009         * modules/sigpipe (Comment): Likewise.
26010
26011 2010-03-27  Bruno Haible  <bruno@clisp.org>
26012
26013         Resolve conflict between the two kinds of module indicators.
26014         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
26015         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
26016         * modules/canonicalize (configure.ac): Invoke
26017         gl_MODULE_INDICATOR_FOR_TESTS.
26018         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
26019         GNULIB_XYZ.
26020         * tests/test-dirent-c++.cc: Likewise.
26021         * tests/test-dirent-safer.c: Likewise.
26022         * tests/test-dup2.c: Likewise.
26023         * tests/test-fchdir.c: Likewise.
26024         * tests/test-fcntl-h-c++.cc: Likewise.
26025         * tests/test-getopt.c: Likewise.
26026         * tests/test-getopt.h: Likewise.
26027         * tests/test-langinfo-c++.cc: Likewise.
26028         * tests/test-locale-c++.cc: Likewise.
26029         * tests/test-math-c++.cc: Likewise.
26030         * tests/test-pty-c++.cc: Likewise.
26031         * tests/test-search-c++.cc: Likewise.
26032         * tests/test-signal-c++.cc: Likewise.
26033         * tests/test-spawn-c++.cc: Likewise.
26034         * tests/test-stdio-c++.cc: Likewise.
26035         * tests/test-stdlib-c++.cc: Likewise.
26036         * tests/test-string-c++.cc: Likewise.
26037         * tests/test-sys_ioctl-c++.cc: Likewise.
26038         * tests/test-sys_select-c++.cc: Likewise.
26039         * tests/test-sys_socket-c++.cc: Likewise.
26040         * tests/test-sys_stat-c++.cc: Likewise.
26041         * tests/test-sys_time-c++.cc: Likewise.
26042         * tests/test-time-c++.cc: Likewise.
26043         * tests/test-unistd-c++.cc: Likewise.
26044         * tests/test-wchar-c++.cc: Likewise.
26045         * tests/uninorm/test-u8-nfc.c: Likewise.
26046         * tests/uninorm/test-u8-nfd.c: Likewise.
26047         * tests/uninorm/test-u8-nfkc.c: Likewise.
26048         * tests/uninorm/test-u8-nfkd.c: Likewise.
26049         * tests/uninorm/test-u16-nfc.c: Likewise.
26050         * tests/uninorm/test-u16-nfd.c: Likewise.
26051         * tests/uninorm/test-u16-nfkc.c: Likewise.
26052         * tests/uninorm/test-u16-nfkd.c: Likewise.
26053         * tests/uninorm/test-u32-nfc.c: Likewise.
26054         * tests/uninorm/test-u32-nfc-big.c: Likewise.
26055         * tests/uninorm/test-u32-nfd.c: Likewise.
26056         * tests/uninorm/test-u32-nfd-big.c: Likewise.
26057         * tests/uninorm/test-u32-nfkc.c: Likewise.
26058         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
26059         * tests/uninorm/test-u32-nfkd.c: Likewise.
26060         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
26061         * tests/uninorm/test-u32-normalize-big.c: Likewise.
26062
26063 2010-03-27  Bruno Haible  <bruno@clisp.org>
26064
26065         Distinguish two kinds of module indicators.
26066         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
26067         gl_MODULE_INDICATOR.
26068         (gl_MODULE_INDICATOR): New macro.
26069         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
26070         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
26071         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
26072         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
26073         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
26074         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
26075         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
26076         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
26077         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
26078         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
26079         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
26080         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
26081         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
26082         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
26083         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
26084         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
26085         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
26086         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
26087         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
26088         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
26089         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
26090         * modules/cloexec (configure.ac): Likewise.
26091         * modules/getopt-gnu (configure.ac): Likewise.
26092         * modules/uninorm/u8-normalize (configure.ac): Likewise.
26093         * modules/uninorm/u16-normalize (configure.ac): Likewise.
26094         * modules/uninorm/u32-normalize (configure.ac): Likewise.
26095         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
26096
26097 2010-03-27  Bruno Haible  <bruno@clisp.org>
26098
26099         New module description field 'Comment'.
26100         * gnulib-tool: New option --extract-comment.
26101         (func_usage): Document it.
26102         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
26103         (func_get_comment): New function.
26104         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
26105
26106 2010-03-27  Bruno Haible  <bruno@clisp.org>
26107
26108         Addendum to 2010-02-07 commit.
26109         * gnulib-tool (func_usage): Document --extract-applicability option.
26110
26111 2010-03-27  Bruno Haible  <bruno@clisp.org>
26112
26113         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
26114         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
26115         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
26116         rather than link errors.
26117
26118 2010-03-27  Bruno Haible  <bruno@clisp.org>
26119
26120         Avoid side effects from tests-related modules on the compilation of lib.
26121         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
26122         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
26123         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
26124         parameter. Emit into AM_CPPFLAGS a definition of the designated C
26125         macro.
26126         (func_import): Define a witness macro. Assign it a value that depends
26127         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
26128         tests-related modules.
26129         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
26130         Reported by Jim Meyering.
26131
26132 2010-03-27  Bruno Haible  <bruno@clisp.org>
26133
26134         Factorize common .m4 code.
26135         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
26136         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
26137         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
26138         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
26139         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
26140         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
26141         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
26142         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
26143         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
26144         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
26145         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
26146         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
26147         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
26148         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
26149         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
26150         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
26151         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
26152         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
26153         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
26154         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
26155         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
26156         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
26157         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
26158         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
26159         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
26160         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
26161         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
26162         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
26163         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
26164         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
26165         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
26166         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
26167
26168 2010-03-27  Bruno Haible  <bruno@clisp.org>
26169
26170         Fix a compilation error on Cygwin with g++ >= 4.3.
26171         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
26172         if it is undefined or if we alias it to chmod.
26173         (lstat): Don't warn about the use of this function if it is undefined
26174         or if we alias it to stat.
26175         Reported by Simon Josefsson.
26176
26177 2010-03-27  Bruno Haible  <bruno@clisp.org>
26178
26179         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
26180         * modules/getlogin (configure.ac): Update.
26181
26182         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
26183         * modules/getlogin_r (configure.ac): Update.
26184
26185         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
26186         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
26187         * modules/inet_ntop (configure.ac): Update.
26188
26189         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
26190         * modules/inet_pton (configure.ac): Update.
26191
26192         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
26193         * modules/mbslen (configure.ac): Update.
26194
26195         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
26196         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
26197         * modules/forkpty (configure.ac): Update.
26198         * modules/openpty (configure.ac): Update.
26199
26200 2010-03-26  Simon Josefsson  <simon@josefsson.org>
26201
26202         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
26203         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
26204
26205 2010-03-25  Eric Blake  <eblake@redhat.com>
26206
26207         maint: use pragma consistently across replacement headers
26208         * lib/ctype.in.h (system_header): Hoist for consistent placement.
26209         * lib/dirent.in.h (system_header): Likewise.
26210         * lib/errno.in.h (system_header): Likewise.
26211         * lib/float.in.h (system_header): Likewise.
26212         * lib/getopt.in.h (system_header): Likewise.
26213         * lib/iconv.in.h (system_header): Likewise.
26214         * lib/inttypes.in.h (system_header): Likewise.
26215         * lib/langinfo.in.h (system_header): Likewise.
26216         * lib/locale.in.h (system_header): Likewise.
26217         * lib/math.in.h (system_header): Likewise.
26218         * lib/netdb.in.h (system_header): Likewise.
26219         * lib/netinet_in.in.h (system_header): Likewise.
26220         * lib/pty.in.h (system_header): Likewise.
26221         * lib/sched.in.h (system_header): Likewise.
26222         * lib/se-selinux.in.h (system_header): Likewise.
26223         * lib/search.in.h (system_header): Likewise.
26224         * lib/spawn.in.h (system_header): Likewise.
26225         * lib/stdarg.in.h (system_header): Likewise.
26226         * lib/stdint.in.h (system_header): Likewise.
26227         * lib/string.in.h (system_header): Likewise.
26228         * lib/strings.in.h (system_header): Likewise.
26229         * lib/sys_file.in.h (system_header): Likewise.
26230         * lib/sys_ioctl.in.h (system_header): Likewise.
26231         * lib/sys_socket.in.h (system_header): Likewise.
26232         * lib/sys_times.in.h (system_header): Likewise.
26233         * lib/sys_utsname.in.h (system_header): Likewise.
26234         * lib/sys_wait.in.h (system_header): Likewise.
26235         * lib/sysexits.in.h (system_header): Likewise.
26236         * lib/unistd.in.h (system_header): Likewise.
26237         * lib/wctype.in.h (system_header): Likewise.
26238
26239         arpa/inet: fix mingw compilation warning
26240         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
26241         Reported by Matthew Bolte.
26242
26243 2010-03-25  Bruno Haible  <bruno@clisp.org>
26244
26245         Avoid collision between gnulib wrapper and libintl wrapper.
26246         * lib/printf.c (printf): Don't define if a printf wrapper is already
26247         defined in intl/printf.c.
26248         Reported by Michel Boaventura <michel@michelboaventura.com>.
26249
26250 2010-03-25  Bruno Haible  <bruno@clisp.org>
26251
26252         Use ANSI C.
26253         * lib/readutmp.h (getutent): Provide ANSI C prototype.
26254
26255 2010-03-25  Bruno Haible  <bruno@clisp.org>
26256
26257         Minor formatting changes.
26258         * lib/acosl.c: Insert space before function argument list.
26259         * lib/argz.c: Likewise.
26260         * lib/asinl.c: Likewise.
26261         * lib/expl.c: Likewise.
26262         * lib/gen-uni-tables.c: Likewise.
26263         * lib/gettext.h: Likewise.
26264         * lib/glthread/lock.h: Likewise.
26265         * lib/tanl.c: Likewise.
26266         * lib/uniname/uniname.c: Likewise.
26267         * tests/test-idpriv-drop.c: Likewise.
26268         * tests/test-idpriv-droptemp.c: Likewise.
26269         * tests/test-lock.c: Likewise.
26270         * tests/test-tls.c: Likewise.
26271         * lib/argp-help.c: Insert space before function-like macro argument
26272         list.
26273         * lib/memcmp.c: Likewise.
26274         * tests/test-base64.c: Likewise.
26275         * lib/localename.c: Insert space before sizeof's argument list.
26276         * lib/safe-alloc.h: Likewise.
26277         * lib/file-set.h: Insert space before macro argument list.
26278         * tests/test-argp.c: Likewise.
26279         * lib/argp-namefrob.h: Insert space before function parameter list.
26280         * lib/getaddrinfo.c: Likewise.
26281         * lib/netdb.in.h: Likewise.
26282         * lib/parse-duration.h: Likewise.
26283         * lib/parse-duration.c: Likewise.
26284         * lib/poll.c: Likewise.
26285         * lib/select.c: Likewise.
26286         * lib/trim.h: Likewise.
26287         * tests/test-usleep.c: Likewise.
26288         * lib/ldexpl.c: Insert space before function parameter list and before
26289         function argument list.
26290         * lib/logl.c: Likewise.
26291         * lib/sqrtl.c: Likewise.
26292         * lib/trim.c: Likewise.
26293         * lib/cosl.c: Use GNU style indentation. Insert space before function
26294         argument list.
26295         * lib/sinl.c: Likewise.
26296         * lib/tsearch.c: Insert space after 'for'.
26297         Reported by Jim Meyering.
26298
26299 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
26300
26301         * maint.mk (sc_Wundef_boolean): Check for the presence of the
26302         config header before grepping, as it's not present before
26303         autoreconf/configure are run.  Reported by Simon Josefsson.
26304
26305 2010-03-23  Bruno Haible  <bruno@clisp.org>
26306
26307         pt_chown: Make it work with automake < 1.11.
26308         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
26309         Reported by Simon Josefsson.
26310
26311 2010-03-23  Bruno Haible  <bruno@clisp.org>
26312
26313         pt_chown: Don't depend on GPLed modules.
26314         * lib/pt_chown.c: Don't include idpriv.h.
26315         (main): Don't drop privileges.
26316         * modules/pt_chown (Depends-on): Remove idpriv-drop.
26317         Reported by Simon Josefsson.
26318
26319 2010-03-24  Simon Josefsson  <simon@josefsson.org>
26320
26321         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
26322         suggestions from karl@freefriends.org (Karl Berry).
26323
26324 2010-03-22  Eric Blake  <eblake@redhat.com>
26325
26326         gethostname: further tweaks
26327         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
26328         are overriding gethostname.
26329         Suggested by Bruno Haible.
26330
26331 2010-03-21  Bruno Haible  <bruno@clisp.org>
26332
26333         Fix comments.
26334         * lib/forkpty.c (rpl_forkpty): Fix comment.
26335         * lib/openpty.c (rpl_openpty): Likewise.
26336         Reported by Eric Blake.
26337
26338 2010-03-22  Eric Blake  <eblake@redhat.com>
26339
26340         gethostname: fix build on mingw
26341         * lib/unistd.in.h (includes): Work around fact that mingw
26342         <winsock2.h> re-includes <unistd.h>, by avoiding any
26343         redeclarations if we are being included by <winsock2.h>.
26344         Reported by Matthias Bolte.
26345
26346 2010-03-21  Bruno Haible  <bruno@clisp.org>
26347
26348         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
26349         * lib/forkpty.c (forkpty): New replacement function, from glibc with
26350         modifications.
26351         * lib/pty.in.h (forkpty): Update declaration. Add comments.
26352         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
26353         provide the replacement.
26354         * modules/forkpty (Depends-on): Add openpty, login_tty.
26355         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
26356         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
26357         * doc/glibc-functions/forkpty.texi: More supported platforms.
26358         * config/srclist.txt: Add forkpty.c (commented).
26359
26360 2010-03-21  Bruno Haible  <bruno@clisp.org>
26361
26362         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
26363         (Makefile.am): Verify that PTY_LIB is defined.
26364
26365         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
26366
26367 2010-03-21  Bruno Haible  <bruno@clisp.org>
26368
26369         Tests for module 'login_tty'.
26370         * modules/login_tty-tests: New file.
26371         * tests/test-login_tty.c: New file.
26372
26373         New module 'login_tty'.
26374         * lib/login_tty.c: New file.
26375         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
26376         * modules/login_tty: New file.
26377         * doc/glibc-functions/login_tty.texi: Mention the new module.
26378
26379 2010-03-21  Bruno Haible  <bruno@clisp.org>
26380
26381         login_tty: Documentation.
26382         * doc/glibc-functions/login_tty.texi: New file.
26383         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
26384
26385 2010-03-21  Bruno Haible  <bruno@clisp.org>
26386
26387         pty: Consistent macro naming.
26388         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
26389         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
26390         * modules/pty (configure.ac): Update.
26391
26392 2010-03-21  Bruno Haible  <bruno@clisp.org>
26393
26394         Tests for openpty: Make stricter.
26395         * tests/test-openpty.c (main): Add test of canonical processing and
26396         erase.
26397         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
26398
26399         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
26400         * lib/openpty.c (openpty): New replacement function.
26401         * lib/pty.in.h: Include <termios.h>.
26402         (openpty): Update declaration. Add comments.
26403         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
26404         is not declared, arrange to provide the replacement. Check for _getpty
26405         and posix_openpt.
26406         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
26407         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
26408         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
26409         * modules/pty-tests (test_pty_c___LDADD): New variable.
26410         * doc/glibc-functions/openpty.texi: More supported platforms.
26411
26412 2010-03-21  Bruno Haible  <bruno@clisp.org>
26413
26414         setenv: Tweaks.
26415         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
26416         the test program.
26417         * doc/posix-functions/setenv.texi: Update platforms list.
26418
26419 2010-03-21  Bruno Haible  <bruno@clisp.org>
26420
26421         New module 'unlockpt'.
26422         * lib/unlockpt.c: New file, from glibc with modifications.
26423         * m4/unlockpt.m4: New file.
26424         * modules/unlockpt: New file.
26425         * lib/stdlib.in.h (unlockpt): New declaration.
26426         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
26427         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
26428         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
26429         HAVE_UNLOCKPT.
26430         * doc/posix-functions/unlockpt.texi: Mention the new module.
26431         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
26432         * config/srclist.txt: Add unlockpt.c (commented).
26433
26434 2010-03-21  Jim Meyering  <meyering@redhat.com>
26435
26436         maint.mk: prohibit inclusion of "intprops.h" without use
26437         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
26438
26439 2010-03-21  Bruno Haible  <bruno@clisp.org>
26440
26441         New module 'grantpt'.
26442         * lib/grantpt.c: New file, from glibc with modifications.
26443         * m4/grantpt.m4: New file.
26444         * modules/grantpt: New file.
26445         * lib/stdlib.in.h (grantpt): New declaration.
26446         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
26447         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
26448         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
26449         HAVE_GRANTPT.
26450         * doc/posix-functions/grantpt.texi: Mention the new module.
26451         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
26452         * config/srclist.txt: Add grantpt.c (commented).
26453
26454 2010-03-21  Bruno Haible  <bruno@clisp.org>
26455
26456         New module 'pt_chown'.
26457         * lib/pt_chown.c: New file, from glibc with modifications.
26458         * lib/pty-private.h: New file, from glibc with modifications.
26459         * modules/pt_chown: New file.
26460         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
26461
26462 2010-03-21  Bruno Haible  <bruno@clisp.org>
26463
26464         Tests for module 'ptsname'.
26465         * modules/ptsname-tests: New file.
26466         * tests/test-ptsname.c: New file.
26467
26468         New module 'ptsname'.
26469         * lib/ptsname.c: New file, from glibc with modifications.
26470         * m4/ptsname.m4: New file.
26471         * modules/ptsname: New file.
26472         * lib/stdlib.in.h (ptsname): New declaration.
26473         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
26474         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
26475         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
26476         HAVE_PTSNAME.
26477         * doc/posix-functions/ptsname.texi: Mention the new module.
26478         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
26479         * config/srclist.txt: Add ptsname.c (commented).
26480
26481 2010-03-21  Bruno Haible  <bruno@clisp.org>
26482
26483         Tests for module 'ttyname_r'.
26484         * modules/ttyname_r-tests: New file.
26485         * tests/test-ttyname_r.c: New file.
26486
26487         New module 'ttyname_r'.
26488         * lib/ttyname_r.c: New file.
26489         * m4/ttyname_r.m4: New file.
26490         * modules/ttyname_r: New file.
26491         * lib/unistd.in.h (ttyname_r): New declaration.
26492         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
26493         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
26494         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
26495         HAVE_TTYNAME_R.
26496         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
26497         * doc/posix-functions/ttyname_r.texi: Mention the new module.
26498
26499 2010-03-20  Bruno Haible  <bruno@clisp.org>
26500
26501         signal: Undefine macro definitions in C++ mode.
26502         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
26503         sigfillset): Undefine macro definitions from the system header in C++
26504         mode.
26505         Reported by John W. Eaton <jwe@gnu.org>.
26506
26507 2010-03-20  Bruno Haible  <bruno@clisp.org>
26508
26509         Ensure no #include statements inside extern "C" { ... }.
26510         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
26511         contain #include statements.
26512         * lib/time.in.h: Likewise.
26513
26514 2010-03-20  Bruno Haible  <bruno@clisp.org>
26515
26516         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
26517         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
26518         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
26519         Reported by John W. Eaton <jwe@gnu.org>.
26520
26521 2010-03-20  Bruno Haible  <bruno@clisp.org>
26522
26523         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
26524         Reported by Jim Meyering.
26525
26526 2010-03-20  Bruno Haible  <bruno@clisp.org>
26527
26528         pipe: Set errno upon failure.
26529         * lib/pipe.h: Specify that when -1 is returned, errno is set.
26530         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
26531         errno value in error message.
26532
26533 2010-03-20  Bruno Haible  <bruno@clisp.org>
26534             Jim Meyering  <meyering@redhat.com>
26535
26536         lchown: Avoid "unused variable" warning.
26537         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
26538
26539 2010-03-20  Bruno Haible  <bruno@clisp.org>
26540
26541         Work around unlink() bug on MacOS X 10.5.6.
26542         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
26543         attempting to unlink a parent directory.
26544         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
26545         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
26546         activate for the replacement function.
26547         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
26548
26549 2010-03-20  Bruno Haible  <bruno@clisp.org>
26550
26551         Fix link errors on Solaris 8.
26552         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
26553         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
26554
26555 2010-03-19  Jim Meyering  <meyering@redhat.com>
26556
26557         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
26558         The _LIBC implementation of build_range_exp correctly honors the
26559         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
26560         However, the non-_LIBC implementation would ignore that syntax-bit
26561         flag and return REG_ERANGE unconditionally.
26562         This change makes it honor that flag.
26563         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
26564         Make two pointer parameters "const".
26565         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
26566         (parse_bracket_exp): Update caller.
26567
26568         regex.m4: correct the reversed range endpoint ([b-a]) test
26569         * m4/regex.m4: When requiring that [b-a] evoke failure,
26570         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
26571         test pass once again for x86-based systems.
26572
26573 2010-03-19  Bruno Haible  <bruno@clisp.org>
26574
26575         scandir: Fix link error on Solaris 8.
26576         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
26577         macros.
26578
26579 2010-03-19  Bruno Haible  <bruno@clisp.org>
26580
26581         getusershell: Fix documentation.
26582         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
26583         module.
26584         * doc/glibc-functions/setusershell.texi: Likewise.
26585
26586         getusershell: Provide declaration, missing on Solaris 9.
26587         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
26588         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
26589         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
26590         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
26591         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26592         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
26593         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
26594         HAVE_GETUSERSHELL.
26595         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
26596
26597 2010-03-19  Bruno Haible  <bruno@clisp.org>
26598
26599         wctype: Provide iswblank function.
26600         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
26601         exists and is fine.
26602         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
26603         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
26604         * tests/test-wctype.c (main): Re-enable the iswblank tests.
26605         * doc/posix-functions/iswblank.texi: Update.
26606
26607 2010-03-19  Bruno Haible  <bruno@clisp.org>
26608
26609         Tests of module 'pty' in C++ mode.
26610         * modules/pty-tests: New file.
26611         * tests/test-pty-c++.cc: New file.
26612         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26613
26614 2010-03-19  Eric Blake  <eblake@redhat.com>
26615
26616         logb: fix documentation
26617         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
26618         1.5 declaration bug.
26619
26620         forkpty, openpty: prefer glibc's const-safe prototype
26621         * lib/forkpty.c (rpl_forkpty): New file.
26622         * lib/openpty.c (rpl_openpty): Likewise.
26623         * modules/forkpty (Files): Distribute it.
26624         * modules/openpty (Files): Likewise.
26625         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
26626         check...
26627         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
26628         replacement for for non-const BSD signature.
26629         * modules/pty (Makefile.am): Substitute witnesses.
26630         * lib/pty.in.h (forkpty, openpty): Declare replacements.
26631         * tests/test-forkpty.c: Update signature check.
26632         * tests/test-openpty.c: Likewise.
26633         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
26634         * doc/glibc-functions/openpty.texi (openpty): Likewise.
26635
26636         forkpty, openpty: split functions into new modules
26637         * modules/pty (Makefile.am): Substitute new witnesses.
26638         (Libraries): Move library detection...
26639         * modules/forkpty: ...into new module.
26640         * modules/openpty: Another new module.
26641         * modules/pty-tests: Rename and split...
26642         * modules/forkpty-tests: ...to this...
26643         * modules/openpty-tests: ...and this.
26644         * tests/test-pty.c: Rename and split...
26645         * tests/test-forkpty.c: ...to this...
26646         * tests/test-openpty.c: ...and this.
26647         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
26648         (gl_PTY): Split library searching...
26649         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
26650         (gl_FORKPTY, gl_OPENPTY): New macros.
26651         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
26652         * NEWS: Mention the split.
26653         * MODULES.html.sh (Misc): Document the modules.
26654         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
26655         * doc/glibc-functions/openpty.texi (openpty): Likewise.
26656
26657         pty: improve replacement header
26658         * lib/pty.in.h: New file.
26659         * modules/pty (Files): Ship it.
26660         (Makefile.am): Always build replacement.
26661         * m4/pty.m4: Rename...
26662         * m4/pty_h.m4: ...to this.
26663         (gl_PTY): Modernize setting of witness macros; update check of
26664         forkpty to take proper advantage of cache.
26665         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
26666
26667         getopt: avoid compiler warning
26668         * lib/getopt.c (attribute_hidden): Remove unused macro.
26669
26670 2010-03-18  Bruno Haible  <bruno@clisp.org>
26671
26672         Fix link errors on Solaris 8.
26673         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
26674         * modules/search-tests (test_search_c___LDADD): Likewise.
26675         * modules/signal-tests (test_signal_c___LDADD): Likewise.
26676         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
26677         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
26678         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
26679         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
26680         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
26681         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
26682
26683 2010-03-18  Bruno Haible  <bruno@clisp.org>
26684
26685         Fix bug introduced on 2010-03-14.
26686         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
26687         (gl_SPAWN_H): Require it.
26688         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
26689         Reported by Simon Josefsson.
26690
26691 2010-03-18  Bruno Haible  <bruno@clisp.org>
26692
26693         Fix typo introduced on 2009-12-31.
26694         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
26695         posix_spawn_file_actions_adddup2.
26696
26697 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
26698         and Eric Blake  <eblake@redhat.com>
26699
26700         test-vc-list-files-git: make more robust
26701         * tests/test-vc-list-files-git.sh: Unset problematic environment
26702         variables.  Chain commands together.
26703
26704 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
26705
26706         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
26707         `AC_CHECK_DECL' invocation.
26708
26709 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
26710
26711         * lib/inttostr.c (inttostr): Make sure the invocation of verify
26712         appears before executable statements. Suggested by Petr Sumbera
26713         <Petr.Sumbera@Sun.COM>.
26714
26715 2010-03-14  Bruno Haible  <bruno@clisp.org>
26716
26717         * tests/test-flock.c (test_exclusive): Comment out a test that causes
26718         portability problems. Instead use a simpler test.
26719         (main): Check that invalid arguments are rejected only on Linux.
26720
26721 2010-03-14  Bruno Haible  <bruno@clisp.org>
26722
26723         Fix bug introduced on 2009-12-31.
26724         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
26725         gl_PREREQ_SYS_H_WINSOCK2 always.
26726         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
26727         SYS_SOCKET_H variable.
26728         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
26729         Update comments.
26730         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
26731         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26732         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26733         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26734         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
26735
26736 2010-03-14  Bruno Haible  <bruno@clisp.org>
26737
26738         Fix values returned by sinl, cosl.
26739         * lib/trigl.h: Add specification comments.
26740         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
26741         that combines the values from the precomputed table with the values of
26742         the Chebyshev polynomials.
26743
26744 2010-03-14  Bruno Haible  <bruno@clisp.org>
26745
26746         Fix compilation error when modules 'posix_spawn[p]' are not used.
26747         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
26748         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
26749
26750 2010-03-14  Bruno Haible  <bruno@clisp.org>
26751
26752         Fix compilation error on mingw when module 'time_r' is not used.
26753         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
26754         is 1.
26755         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
26756         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26757         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
26758         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
26759
26760 2010-03-14  Bruno Haible  <bruno@clisp.org>
26761
26762         Fix compilation error with Sun C.
26763         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
26764         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
26765         instead of GCC specific ULONG_LONG_MAX.
26766         * lib/xstrtoll.c: Likewise.
26767         * lib/xstrtoull.c: Likewise.
26768
26769 2010-03-13  Bruno Haible  <bruno@clisp.org>
26770
26771         Allow the user to disable C++ code and tests.
26772         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
26773         (gl_PROG_ANSI_CXX): Require it.
26774
26775 2010-03-13  Bruno Haible  <bruno@clisp.org>
26776
26777         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
26778         cases.
26779
26780 2010-03-13  Bruno Haible  <bruno@clisp.org>
26781
26782         Test that gnulib does not break the standard C++ headers.
26783         * tests/test-locale-c++2.cc: New file.
26784         * modules/locale-tests (Files): Add it.
26785         (Makefile.am): Compile it for test-locale-c++.
26786         * tests/test-math-c++2.cc: New file.
26787         * modules/math-tests (Files): Add it.
26788         (Makefile.am): Compile it for test-math-c++.
26789         * tests/test-signal-c++2.cc: New file.
26790         * modules/signal-tests (Files): Add it.
26791         (Makefile.am): Compile it for test-signal-c++.
26792         * tests/test-stdio-c++2.cc: New file.
26793         * modules/stdio-tests (Files): Add it.
26794         (Makefile.am): Compile it for test-stdio-c++.
26795         * tests/test-stdlib-c++2.cc: New file.
26796         * modules/stdlib-tests (Files): Add it.
26797         (Makefile.am): Compile it for test-stdlib-c++.
26798         * tests/test-string-c++2.cc: New file.
26799         * modules/string-tests (Files): Add it.
26800         (Makefile.am): Compile it for test-string-c++.
26801         * tests/test-time-c++2.cc: New file.
26802         * modules/time-tests (Files): Add it.
26803         (Makefile.am): Compile it for test-time-c++.
26804         Reported by John W. Eaton <jwe@gnu.org>.
26805
26806 2010-03-13  Bruno Haible  <bruno@clisp.org>
26807
26808         * gnulib-tool (func_usage): Clarify which options are available for
26809         --create-testdir and --create-megatestdir.
26810
26811 2010-03-13  Bruno Haible  <bruno@clisp.org>
26812
26813         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
26814         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
26815         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
26816         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
26817         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
26818         when appropriate.
26819         Reported by Jim Meyering.
26820
26821 2010-03-12  Simon Josefsson  <simon@josefsson.org>
26822
26823         * gnulib-tool (func_import): Explain origin of code.
26824
26825 2010-03-12  Bruno Haible  <bruno@clisp.org>
26826
26827         Fix problem with automake's definition of CXXLINK.
26828         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
26829         Reported by Simon Josefsson and Ludovic Courtès.
26830
26831 2010-03-12  Bruno Haible  <bruno@clisp.org>
26832
26833         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
26834         stable releases.
26835
26836 2010-03-11  Bruno Haible  <bruno@clisp.org>
26837
26838         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
26839         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
26840         whether the system provides one variant or multiple variants of the
26841         function.
26842         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
26843         C++ compilers.
26844         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
26845         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
26846         Reported by Jim Meyering.
26847
26848 2010-03-09  Simon Josefsson  <simon@josefsson.org>
26849
26850         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
26851
26852 2010-03-08  Bruno Haible  <bruno@clisp.org>
26853
26854         gnulib-tool: Add support for --libtool in --create-testdir.
26855         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
26856         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
26857
26858 2010-03-08  Eric Blake  <eblake@redhat.com>
26859
26860         gnulib-tool.texi: mention possibility of git submodule
26861         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
26862         submodules.
26863         * doc/.gitignore: Ignore another generated file.
26864
26865 2010-03-08  Karl Berry  <karl@gnu.org>
26866
26867         * doc/gnulib-tool.texi (VCS Issues): Mention third option
26868         of committing gnulib files while skipping others.
26869
26870 2010-03-07  Bruno Haible  <bruno@clisp.org>
26871
26872         Tests of module 'wctype' in C++ mode.
26873         * tests/test-wctype-c++.cc: New file.
26874         * modules/wctype-tests (Files): Add it and tests/signature.h.
26875         (Depends-on): Add ansi-c++-opt.
26876         (Makefile.am): Arrange to compile and run test-wctype-c++.
26877
26878         Tests of module 'wchar' in C++ mode.
26879         * tests/test-wchar-c++.cc: New file.
26880         * modules/wchar-tests (Files): Add it and tests/signature.h.
26881         (Depends-on): Add ansi-c++-opt.
26882         (Makefile.am): Arrange to compile and run test-wchar-c++.
26883         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
26884         gl_MODULE_INDICATOR.
26885
26886         Tests of module 'unistd' in C++ mode.
26887         * tests/test-unistd-c++.cc: New file.
26888         * modules/unistd-tests (Files): Add it and tests/signature.h.
26889         (Depends-on): Add ansi-c++-opt.
26890         (Makefile.am): Arrange to compile and run test-unistd-c++.
26891         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
26892         gl_MODULE_INDICATOR.
26893
26894         Tests of module 'time' in C++ mode.
26895         * tests/test-time-c++.cc: New file.
26896         * modules/time-tests (Files): Add it and tests/signature.h.
26897         (Depends-on): Add ansi-c++-opt.
26898         (Makefile.am): Arrange to compile and run test-time-c++.
26899         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26900
26901         Tests of module 'sys_time' in C++ mode.
26902         * tests/test-sys_time-c++.cc: New file.
26903         * modules/sys_time-tests (Files): Add it and tests/signature.h.
26904         (Depends-on): Add ansi-c++-opt.
26905         (Makefile.am): Arrange to compile and run test-sys_time-c++.
26906         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
26907         gl_MODULE_INDICATOR.
26908
26909         Tests of module 'sys_stat' in C++ mode.
26910         * tests/test-sys_stat-c++.cc: New file.
26911         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
26912         (Depends-on): Add ansi-c++-opt.
26913         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
26914         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
26915         gl_MODULE_INDICATOR.
26916
26917         Tests of module 'sys_socket' in C++ mode.
26918         * tests/test-sys_socket-c++.cc: New file.
26919         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
26920         (Depends-on): Add ansi-c++-opt.
26921         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
26922         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
26923         gl_MODULE_INDICATOR.
26924
26925         Tests of module 'sys_select' in C++ mode.
26926         * tests/test-sys_select-c++.cc: New file.
26927         * modules/sys_select-tests (Files): Add it and tests/signature.h.
26928         (Depends-on): Add ansi-c++-opt.
26929         (Makefile.am): Arrange to compile and run test-sys_select-c++.
26930         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
26931         gl_MODULE_INDICATOR.
26932
26933         Tests of module 'sys_ioctl' in C++ mode.
26934         * tests/test-sys_ioctl-c++.cc: New file.
26935         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
26936         (Depends-on): Add ansi-c++-opt.
26937         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
26938         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
26939         gl_MODULE_INDICATOR.
26940
26941         Tests of module 'string' in C++ mode.
26942         * tests/test-string-c++.cc: New file.
26943         * modules/string-tests (Files): Add it and tests/signature.h.
26944         (Depends-on): Add ansi-c++-opt.
26945         (Makefile.am): Arrange to compile and run test-string-c++.
26946         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
26947         gl_MODULE_INDICATOR.
26948
26949         Tests of module 'stdlib' in C++ mode.
26950         * tests/test-stdlib-c++.cc: New file.
26951         * modules/stdlib-tests (Files): Add it and tests/signature.h.
26952         (Depends-on): Add ansi-c++-opt.
26953         (Makefile.am): Arrange to compile and run test-stdlib-c++.
26954         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
26955         gl_MODULE_INDICATOR.
26956
26957         Tests of module 'stdio' in C++ mode.
26958         * tests/test-stdio-c++.cc: New file.
26959         * modules/stdio-tests (Files): Add it and tests/signature.h.
26960         (Depends-on): Add ansi-c++-opt.
26961         (Makefile.am): Arrange to compile and run test-stdio-c++.
26962         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
26963         gl_MODULE_INDICATOR.
26964
26965         Tests of module 'spawn' in C++ mode.
26966         * tests/test-spawn-c++.cc: New file.
26967         * modules/spawn-tests (Files): Add it and tests/signature.h.
26968         (Depends-on): Add ansi-c++-opt.
26969         (Makefile.am): Arrange to compile and run test-spawn-c++.
26970         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
26971         gl_MODULE_INDICATOR.
26972
26973         Tests of module 'signal' in C++ mode.
26974         * tests/test-signal-c++.cc: New file.
26975         * modules/signal-tests (Files): Add it and tests/signature.h.
26976         (Depends-on): Add ansi-c++-opt.
26977         (Makefile.am): Arrange to compile and run test-signal-c++.
26978         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
26979         gl_MODULE_INDICATOR.
26980
26981         Tests of module 'search' in C++ mode.
26982         * tests/test-search-c++.cc: New file.
26983         * modules/search-tests (Files): Add it and tests/signature.h.
26984         (Depends-on): Add ansi-c++-opt.
26985         (Makefile.am): Arrange to compile and run test-search-c++.
26986         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
26987         gl_MODULE_INDICATOR.
26988
26989         Tests of module 'math' in C++ mode.
26990         * tests/test-math-c++.cc: New file.
26991         * modules/math-tests (Files): Add it and tests/signature.h.
26992         (Depends-on): Add ansi-c++-opt.
26993         (Makefile.am): Arrange to compile and run test-math-c++.
26994         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26995
26996         Tests of module 'locale' in C++ mode.
26997         * tests/test-locale-c++.cc: New file.
26998         * modules/locale-tests (Files): Add it and tests/signature.h.
26999         (Depends-on): Add ansi-c++-opt.
27000         (Makefile.am): Arrange to compile and run test-locale-c++.
27001         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
27002         gl_MODULE_INDICATOR.
27003
27004         Tests of module 'langinfo' in C++ mode.
27005         * tests/test-langinfo-c++.cc: New file.
27006         * modules/langinfo-tests (Files): Add it and tests/signature.h.
27007         (Depends-on): Add ansi-c++-opt.
27008         (Makefile.am): Arrange to compile and run test-langinfo-c++.
27009         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
27010         gl_MODULE_INDICATOR.
27011
27012         Tests of module 'iconv-h' in C++ mode.
27013         * tests/test-iconv-h-c++.cc: New file.
27014         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
27015         (Depends-on): Add ansi-c++-opt.
27016         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
27017
27018         Tests of module 'glob' in C++ mode.
27019         * tests/test-glob-c++.cc: New file.
27020         * modules/glob-tests (Files): Add it.
27021         (Depends-on): Add ansi-c++-opt.
27022         (Makefile.am): Arrange to compile and run test-glob-c++.
27023
27024         Tests of module 'fcntl-h' in C++ mode.
27025         * tests/test-fcntl-h-c++.cc: New file.
27026         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
27027         (Depends-on): Add ansi-c++-opt.
27028         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
27029         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
27030         gl_MODULE_INDICATOR.
27031
27032         Tests of module 'dirent' in C++ mode.
27033         * tests/test-dirent-c++.cc: New file.
27034         * modules/dirent-tests (Files): Add it and tests/signature.h.
27035         (Depends-on): Add ansi-c++-opt.
27036         (Makefile.am): Arrange to compile and run test-dirent-c++.
27037         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
27038         gl_MODULE_INDICATOR.
27039
27040         New module 'ansi-c++-opt'.
27041         * modules/ansi-c++-opt: New file.
27042         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
27043
27044         Document C++ namespace mode.
27045         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
27046
27047         wctype: Avoid #define replacements in C++ mode.
27048         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
27049         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
27050         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
27051         In C++, define a namespaced alias symbol.
27052         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
27053         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
27054         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
27055         rule.
27056
27057         wchar: Avoid #define replacements in C++ mode.
27058         * lib/wchar.in.h: Include c++defs.h.
27059         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
27060         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
27061         symbol.
27062         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
27063         * modules/wchar (Depends-on): Add c++defs.
27064         (Makefile.am): Update wchar.h rule.
27065
27066         unistd: Avoid #define replacements in C++ mode.
27067         * lib/unistd.in.h: Include c++defs.h.
27068         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
27069         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
27070         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
27071         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
27072         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
27073         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
27074         symbol.
27075         (environ): Update.
27076         * modules/unistd (Depends-on): Add c++defs.
27077         (Makefile.am): Update unistd.h rule.
27078
27079         time: Avoid #define replacements in C++ mode.
27080         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
27081         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
27082         define a namespaced alias symbol.
27083         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
27084         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
27085         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
27086         * modules/time (Depends-on): Add c++defs, warn-on-use.
27087         (Makefile.am): Update time.h rule.
27088         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
27089         * modules/nanosleep (configure.ac): Likewise.
27090         * modules/strptime (configure.ac): Likewise.
27091         * modules/timegm (configure.ac): Likewise.
27092
27093         sys_time: Avoid #define replacements in C++ mode.
27094         * lib/sys_time.in.h: Include c++defs.h.
27095         (gettimeofday): In C++, define a namespaced alias symbol.
27096         * modules/sys_time (Depends-on): Add c++defs.
27097         (Makefile.am): Update sys/time.h rule.
27098
27099         sys_stat: Avoid #define replacements in C++ mode.
27100         * lib/sys_stat.in.h: Include c++defs.h.
27101         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
27102         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
27103         namespaced alias symbol.
27104         In C++, define a namespaced alias symbol.
27105         * modules/sys_stat (Depends-on): Add c++defs.
27106         (Makefile.am): Update sys/stat.h rule.
27107
27108         sys_socket: Avoid #define replacements in C++ mode.
27109         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
27110         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
27111         definitions also when the system has a <sys/socket.h>.
27112         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
27113         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
27114         In C++, define a namespaced alias symbol.
27115         * modules/sys_socket (Depends-on): Add c++defs.
27116         (Makefile.am): Update sys/socket.h rule.
27117
27118         sys_select: Avoid #define replacements in C++ mode.
27119         * lib/sys_select.in.h: Include c++defs.h. Enable the function
27120         definitions also when the system has a <sys/select.h>.
27121         (select): In C++, define a namespaced alias symbol.
27122         * modules/sys_select (Depends-on): Add c++defs.
27123         (Makefile.am): Update sys/select.h rule.
27124
27125         sys_ioctl: Avoid #define replacements in C++ mode.
27126         * lib/sys_ioctl.in.h: Include c++defs.h.
27127         (ioctl): In C++, define a namespaced alias symbol.
27128         * modules/sys_ioctl (Depends-on): Add c++defs.
27129         (Makefile.am): Update sys/ioctl.h rule.
27130
27131         string: Avoid #define replacements in C++ mode.
27132         * lib/string.in.h: Include c++defs.h.
27133         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
27134         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
27135         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
27136         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
27137         strsignal, strverscmp): In C++, define a namespaced alias symbol.
27138         * modules/string (Depends-on): Add c++defs.
27139         (Makefile.am): Update string.h rule.
27140
27141         stdlib: Avoid #define replacements in C++ mode.
27142         * lib/stdlib.in.h: Include c++defs.h.
27143         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
27144         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
27145         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
27146         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
27147         symbol.
27148         * modules/stdlib (Depends-on): Add c++defs.
27149         (Makefile.am): Update stdlib.h rule.
27150
27151         stdio: Avoid #define replacements in C++ mode.
27152         * lib/stdio.in.h: Include c++defs.h.
27153         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
27154         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
27155         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
27156         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
27157         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
27158         namespaced alias symbol.
27159         * modules/stdio (Depends-on): Add c++defs.
27160         (Makefile.am): Update stdio.h rule.
27161
27162         spawn: Avoid #define replacements in C++ mode.
27163         * lib/spawn.in.h: Include c++defs.h.
27164         (posix_spawn, posix_spawnp, posix_spawnattr_init,
27165         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
27166         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
27167         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
27168         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
27169         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
27170         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
27171         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
27172         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
27173         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
27174         In C++, define a namespaced alias symbol.
27175         * modules/spawn (Depends-on): Add c++defs.
27176         (Makefile.am): Update spawn.h rule.
27177
27178         signal: Avoid #define replacements in C++ mode.
27179         * lib/signal.in.h: Include c++defs.h.
27180         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
27181         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
27182         namespaced alias symbol.
27183         * modules/signal (Depends-on): Add c++defs.
27184         (Makefile.am): Update signal.h rule.
27185
27186         search: Avoid #define replacements in C++ mode.
27187         * lib/search.in.h: Include c++defs.h.
27188         (_gl_search_compar_fn, _gl_search_action_fn): New types.
27189         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
27190         symbol.
27191         * modules/search (Depends-on): Add c++defs.
27192         (Makefile.am): Update search.h rule.
27193
27194         math: Avoid #define replacements in C++ mode.
27195         * lib/math.in.h: Include c++defs.h.
27196         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
27197         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
27198         trunc, truncl): In C++, define a namespaced alias symbol.
27199         * modules/math (Depends-on): Add c++defs.
27200         (Makefile.am): Update math.h rule.
27201
27202         locale: Avoid #define replacements in C++ mode.
27203         * lib/locale.in.h: Include c++defs.h.
27204         (duplocale): In C++, define a namespaced alias symbol.
27205         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
27206         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
27207         * modules/locale (Depends-on): Add c++defs.
27208         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
27209
27210         langinfo: Avoid #define replacements in C++ mode.
27211         * lib/langinfo.in.h: Include c++defs.h.
27212         (nl_langinfo): In C++, define a namespaced alias symbol.
27213         * modules/langinfo (Depends-on): Add c++defs.
27214         (Makefile.am): Update langinfo.h rule.
27215
27216         iconv-h: Avoid #define replacements in C++ mode.
27217         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
27218         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
27219         symbol.
27220         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
27221         whenever iconv is present.
27222         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
27223         (Makefile.am): Update iconv.h rule.
27224
27225         glob: Avoid #define replacements in C++ mode.
27226         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
27227         (_gl_glob_errfunc_fn): New type.
27228         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
27229         symbol.
27230         * modules/glob (Depends-on): Add c++defs, warn-on-use.
27231         (Makefile.am): Update glob.h rule.
27232
27233         fcntl-h: Avoid #define replacements in C++ mode.
27234         * lib/fcntl.in.h: Include c++defs.h.
27235         (fcntl, open, openat): In C++, define a namespaced alias symbol.
27236         * modules/fcntl-h (Depends-on): Add c++defs.
27237         (Makefile.am): Update fcntl.h rule.
27238
27239         dirent: Avoid #define replacements in C++ mode.
27240         * lib/dirent.in.h: Include c++defs.h.
27241         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
27242         namespaced alias symbol.
27243         (dirfd): Update declaration.
27244         * modules/dirent (Depends-on): Add c++defs.
27245         (Makefile.am): Update dirent.h rule.
27246
27247         ctype: Make it usable in C++ code.
27248         * lib/ctype.in.h: Include c++defs.h.
27249         (isblank): Declare as extern "C".
27250         * modules/ctype (Depends-on): Add c++defs.
27251         (Makefile.am): Update ctype.h rule.
27252
27253         New module 'c++defs'.
27254         * modules/c++defs: New file.
27255         * build-aux/c++defs.h: New file.
27256         Reported by John W. Eaton <jwe@gnu.org>.
27257
27258 2010-03-07  Bruno Haible  <bruno@clisp.org>
27259
27260         logb: Provide missing declaration for Cygwin.
27261         * lib/math.in.h (logb): New declaration.
27262         * m4/logb.m4: New file.
27263         * modules/logb (Files): Add m4/logb.m4.
27264         (Depends-on): Add math.
27265         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
27266         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
27267         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
27268         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
27269         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
27270
27271 2010-03-07  Bruno Haible  <bruno@clisp.org>
27272
27273         Fix test-cond link error.
27274         * tests/test-cond.c: Include <stdio.h>.
27275
27276 2010-03-07  Bruno Haible  <bruno@clisp.org>
27277
27278         Fix test-dirent-safer link error.
27279         * modules/dirent-safer-tests (Makefile.am): Define
27280         test_dirent_safer_LDADD.
27281
27282 2010-03-07  Bruno Haible  <bruno@clisp.org>
27283
27284         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
27285         among default module list.
27286
27287 2010-03-07  Bruno Haible  <bruno@clisp.org>
27288
27289         Fix link error on platforms with GNU libiconv.
27290         * modules/unistr/u8-strcoll-tests (Makefile): Define
27291         test_u8_strcoll_LDADD.
27292         * modules/unistr/u16-strcoll-tests (Makefile): Define
27293         test_u16_strcoll_LDADD.
27294         * modules/unistr/u32-strcoll-tests (Makefile): Define
27295         test_u32_strcoll_LDADD.
27296
27297 2010-03-07  Bruno Haible  <bruno@clisp.org>
27298
27299         Use POSIX declarations for socket functions.
27300         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
27301         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
27302         rpl_sendto): Change declaration to match POSIX.
27303         * lib/connect.c (rpl_connect): Likewise.
27304         * lib/accept.c (rpl_accept): Likewise.
27305         * lib/bind.c (rpl_bind): Likewise.
27306         * lib/getpeername.c (rpl_getpeername): Likewise.
27307         * lib/getsockname.c (rpl_getsockname): Likewise.
27308         * lib/recv.c (rpl_recv): Likewise.
27309         * lib/send.c (rpl_send): Likewise.
27310         * lib/recvfrom.c (rpl_recvfrom): Likewise.
27311         * lib/sendto.c (rpl_sendto): Likewise.
27312
27313 2010-03-06  Bruno Haible  <bruno@clisp.org>
27314
27315         Clarify access, euidaccess, faccessat.
27316         * doc/posix-functions/faccessat.texi: Mention security problem under
27317         "Other problems", not "Portability problems".
27318         * doc/posix-functions/access.texi: Likewise. Mention a related security
27319         problem.
27320         * doc/glibc-functions/euidaccess.texi: Mention security problems.
27321         * lib/euidaccess.c: Add comments about platforms.
27322         * lib/unistd.in.h (access, euidaccess): Add warnings.
27323
27324 2010-03-07  Bruno Haible  <bruno@clisp.org>
27325
27326         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
27327         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
27328         (POSIX_SPAWN_SETSCHEDULER): Likewise.
27329         (POSIX_SPAWN_USEVFORK): Define in a way that works when
27330         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
27331         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
27332         declare when POSIX_SPAWN_SETSCHEDULER is zero.
27333         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
27334         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
27335         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
27336         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
27337         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
27338         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
27339         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
27340         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
27341         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
27342         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
27343         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
27344         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
27345         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
27346         Likewise.
27347         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
27348         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
27349         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
27350         Likewise.
27351         * tests/test-spawn.c (main): Make it work when
27352         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
27353
27354 2010-03-07  Bruno Haible  <bruno@clisp.org>
27355
27356         Fix incorrect Makefile.am generation in German locale.
27357         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27358         Execute sed command with character range in C locale.
27359
27360 2010-03-06  Bruno Haible  <bruno@clisp.org>
27361
27362         Tests for module 'iconv-h'.
27363         * modules/iconv-h-tests: New file.
27364         * tests/test-iconv-h.c: New file.
27365
27366         New module 'iconv-h'.
27367         * modules/iconv-h: New file.
27368         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
27369         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
27370         (configure.ac): Remove gl_ICONV_H.
27371         (Makefile.am): Remove rule for iconv.h.
27372
27373 2010-03-06  Bruno Haible  <bruno@clisp.org>
27374
27375         More consistent naming of *.m4 files.
27376         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
27377         * modules/wctype (Files): Update.
27378
27379         More consistent naming of *.m4 files.
27380         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
27381         * modules/wchar (Files): Update.
27382
27383 2010-03-06  Jim Meyering  <meyering@redhat.com>
27384
27385         euidaccess: relax license to LGPLv2+
27386         * modules/euidaccess (License): Relax to LGPLv2+.
27387
27388 2010-03-06  Bruno Haible  <bruno@clisp.org>
27389
27390         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
27391         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
27392         (Makefile.am): Augment lib_SOURCES instead.
27393
27394 2010-03-04  Jim Meyering  <meyering@redhat.com>
27395
27396         utime: remove obsolete module
27397         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
27398         unnecessary for years, and has been marked as obsolete for 10 months.
27399         * modules/utime: Remove file.
27400         * lib/utime.c: Remove file.
27401         * m4/utime.m4: Remove file.
27402         * m4/utimes-null.m4: Remove file.
27403         * doc/posix-functions/utime.texi (utime): Remove reference to
27404         the module.  Move the sole "fixed by gnulib" item into the
27405         "problems not fixed by Gnulib" list.
27406         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
27407
27408 2010-03-05  Simon Josefsson  <simon@josefsson.org>
27409
27410         * modules/exit (License): Relax license to LGPLv2+.
27411         (Status): Mark as obsolete.
27412         * NEWS: Mention deprecated 'exit' module.
27413         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
27414         of now obsolete 'exit'.
27415
27416 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27417
27418         fts-lgpl: remove unused module
27419         * modules/fts-lgpl: Remove.
27420         * MODULES.html.sh (func_all_modules): Adjust.
27421         * check-module (find_included_lib_files): Adjust.
27422         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
27423
27424 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
27425
27426         copy-acl: enhance Solaris ACL error handling
27427         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
27428         * lib/set-mode-acl.c (qset_acl): Likewise.
27429
27430 2010-03-02  Bruno Haible  <bruno@clisp.org>
27431
27432         spawn: Don't override the system defined values on FreeBSD 8.
27433         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
27434         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
27435         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
27436         if HAVE_POSIX_SPAWN is 1.
27437         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
27438
27439 2010-03-01  Bruno Haible  <bruno@clisp.org>
27440
27441         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
27442         regarding Automake.
27443
27444 2010-02-25  Bruno Haible  <bruno@clisp.org>
27445
27446         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
27447         * gnulib-tool: Define 'echo' as a function only before the ksh alias
27448         setting, not afterwards.
27449         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
27450
27451 2010-02-24  Eric Blake  <eblake@redhat.com>
27452
27453         bootstrap, git-version-gen: use timestamp
27454         * build-aux/git-version-gen (scriptversion): Force UTC.
27455         * build-aux/bootstrap (scriptversion): New variable.
27456
27457         bootstrap: allow older git
27458         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
27459         older than 1.6.4.  Requested by the libvirt project.
27460
27461 2010-02-23  Eric Blake  <eblake@redhat.com>
27462
27463         warn-on-use: work with old autoconf
27464         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
27465         AS_VAR semantics of autoconf 2.60.
27466         Reported by Bruno Haible.
27467
27468         bootstrap: improve some comments
27469         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
27470         clarification comments.
27471
27472         gettimeofday: provide correct function
27473         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
27474         when replacement is declared, otherwise provide gettimeofday.
27475         Reported by Michael Goffioul.
27476
27477 2010-02-23  Jim Meyering  <meyering@redhat.com>
27478
27479         lib-ignore: relax license to "unlimited", not LGPLv2+
27480         * modules/lib-ignore (License): Relax to "unlimited".
27481
27482 2010-02-23  Jim Meyering  <meyering@redhat.com>
27483
27484         lib-ignore: relax license to LGPLv2+
27485         * modules/lib-ignore (License): Relax to LGPLv2+.
27486
27487 2010-02-22  Eric Blake  <eblake@redhat.com>
27488
27489         lseek: avoid bash 3.2 broken pipe bug
27490         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
27491         warning from bash 3.2.
27492         Reported by Ben Pfaff, with analysis from Bruno Haible.
27493
27494         bootstrap: support non-FSF copyright holder
27495         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
27496         bootstrap.conf override of COPYRIGHT_HOLDER.
27497         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
27498
27499         bootstrap: interoperate with gettext 0.14.1
27500         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
27501
27502         bootstrap: allow for alternate submodule location
27503         * build-aux/bootstrap (gnulib_path): New variable; use instead of
27504         hardcoding submodule location.
27505         (gnulib_mk): Allow direct use of Makefile.am.
27506
27507         bootstrap: use GNULIB_SRCDIR to reduce disk usage
27508         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
27509         rather than reconfiguring where the submodule points.
27510
27511         gettimeofday: restore support for platforms that lack function
27512         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
27513         replacement if function is missing.
27514         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
27515         * modules/sys_time (Makefile.am): Substitute it.
27516         * lib/sys_time.in.h (gettimeofday): Check it.
27517         Reported by Michael Goffioul.
27518
27519 2010-02-21  Bruno Haible  <bruno@clisp.org>
27520
27521         * lib/stdio.in.h (obstack_printf): Fix typo.
27522
27523 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
27524
27525         vc-list-files: use bzr ls's -R option
27526         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
27527         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
27528
27529 2010-02-21  Jim Meyering  <meyering@redhat.com>
27530
27531         init.sh: fix EXEEXT shims to work also for names like test-prog
27532         * tests/init.sh: Re-exec a better shell, when needed.
27533         If the current shell lacks support for posix $(...), an init.sh-using
27534         test will now try to find a shell that supports that.  If EXEEXT is
27535         nonempty, we also require support for hyphen-in-alias-name and shell
27536         substitutions like ${var#glob}.  Failure to find such a shell results
27537         in a skipped test.
27538
27539 2010-02-21  Bruno Haible  <bruno@clisp.org>
27540
27541         Really work around around "broken pipe" error message from bash 3.2.
27542         * gnulib-tool (func_reset_sigpipe): Remove function.
27543         (echo): In bash 3.2, define to a function that uses printf.
27544         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
27545
27546 2010-02-20  Bruno Haible  <bruno@clisp.org>
27547
27548         Restore support for automake 1.9.6 with autoconf 2.61.
27549         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
27550         Reported by James Youngman <jay@gnu.org>.
27551
27552 2010-02-20  Bruno Haible  <bruno@clisp.org>
27553
27554         Improve *printf warning condition.
27555         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
27556         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
27557         and the function is overridden due to SIGPIPE emulation.
27558
27559 2010-02-20  Bruno Haible  <bruno@clisp.org>
27560
27561         * lib/stdio.in.h: Tweak comments.
27562
27563 2010-02-19  Bruno Haible  <bruno@clisp.org>
27564
27565         Make it easier to find modules. New gnulib-tool option '--find'.
27566         * gnulib-tool: New option --find.
27567         (func_usage): Document it.
27568         (func_sanitize_modulelist): New function, extracted from
27569         func_all_modules.
27570         (func_all_modules): Invoke it.
27571         * doc/gnulib-tool.texi (Which modules?): New node.
27572
27573 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
27574
27575         * lib/sys_select.in.h: Provide select replacement even if
27576         sys/select.h exists on a system, for Interix.
27577
27578 2010-02-18  Jim Meyering  <meyering@redhat.com>
27579
27580         init.sh: don't use $(...) just yet
27581         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
27582         to accommodate e.g., Solaris' /bin/sh.
27583
27584 2010-02-17  Bruno Haible  <bruno@clisp.org>
27585
27586         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
27587         Reported by Ludovic Courtès <ludo@gnu.org>.
27588
27589 2010-02-16  Simon Josefsson  <simon@josefsson.org>
27590
27591         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
27592         linking with -lintl.
27593
27594 2010-02-17  Simon Josefsson  <simon@josefsson.org>
27595
27596         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
27597         if not provided by the system's netdb.h.  Reported by
27598         ludo@gnu.org (Ludovic Courtès).
27599
27600 2010-02-15  Jim Meyering  <meyering@redhat.com>
27601
27602         init.sh: improve portability and efficiency
27603         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
27604         "dummy" in a for loop.
27605         Use '!', not '^' to select the complement of a character set used
27606         in a "case" statement.
27607         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
27608         Suggestions from Eric Blake.
27609
27610         init.sh: automatically accommodate programs with the .exe suffix
27611         Automatically arrange for an invocation of "prog" to execute the
27612         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
27613         may use the simpler "prog", yet still work when built on a system
27614         that requires specifying the added suffix.
27615         Do this by constructing a function named "prog" that invokes
27616         "prog.exe" for each .exe file in selected directories.
27617         * tests/init.sh (find_exe_basenames_): New function.
27618         (create_exe_shim_functions_): New function.
27619         (path_prepend_): Use it.
27620
27621         maint.mk: mark syntax-check sc_*.m rules as .PHONY
27622         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
27623         "make -t syntax-check" doesn't create a ton of sc_*.m files.
27624
27625 2010-02-14  Jim Meyering  <meyering@redhat.com>
27626
27627         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
27628         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
27629         (sc_prohibit_hash_pjw_without_use): New rule.
27630
27631         maint.mk: allow the default upload destination dir to be overridden
27632         * top/maint.mk (upload_dest_dir_): Define with a default that
27633         preserves the status quo.
27634         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
27635         Reported by Peter Simons.
27636
27637         maint.mk: prohibit inclusion of "hash.h" without_use
27638         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
27639
27640 2010-02-10  Jim Meyering  <meyering@redhat.com>
27641
27642         maint.mk: prohibit inclusion of "ignore-value.h" without_use
27643         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
27644
27645 2010-02-09  Eric Blake  <ebb9@byu.net>
27646         and Bruno Haible  <bruno@clisp.org>
27647
27648         obstack-printf-posix: ensure declaration
27649         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
27650         extracted from gl_FUNC_OBSTACK_PRINTF.
27651         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
27652         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
27653         Likewise.
27654         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
27655         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
27656         0.
27657
27658 2010-02-08  Bruno Haible  <bruno@clisp.org>
27659
27660         gnulib-tool: Fix typo in 2010-02-07 commit.
27661         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
27662         Reported by Eric Blake.
27663
27664 2010-02-07  Bruno Haible  <bruno@clisp.org>
27665
27666         gnulib-tool: Fix up caching patches.
27667         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
27668         option --no-cache. Use associative arrays when supported by the shell.
27669         (sed_comments): New variable.
27670         (modcache): Renamed from do_cache.
27671         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
27672         abbreviate unnecessarily.
27673         (have_associative): New variable.
27674         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
27675         way also for ksh and zsh.
27676         (func_init_sed_convert_to_cache_statements): New function, extracted
27677         from func_cache_lookup_module. Add support for associative arrays.
27678         Don't set the c_MODULE_cached variable here. Ignore all lines before
27679         the first field header. Remove only the final newline, not all trailing
27680         newlines. Support empty fields correctly. Limit the use of 'eval' to
27681         assignments.
27682         (func_get_description, func_get_status, func_get_notice,
27683         func_get_applicability, func_get_filelist, func_get_dependencies,
27684         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
27685         func_get_automake_snippet, func_get_include_directive,
27686         func_get_link_directive, func_get_license, func_get_maintainer):
27687         Update documentation. List the unoptimized code first. Add support for
27688         associative arrays. Limit the use of 'eval' to assignments.
27689         (func_get_applicability): Undo stylistic pessimisations.
27690         (func_get_automake_snippet, func_get_include_directive): Reduce code
27691         duplication.
27692         (func_modules_transitive_closure, func_modules_add_dummy,
27693         func_modules_notice, func_modules_to_filelist, func_add_file,
27694         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
27695         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
27696         func_create_testdir, func_create_megatestdir): Update documentation.
27697
27698 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27699
27700         * gnulib-tool (func_cache_lookup_module): Store the module name
27701         belonging to the cache variable; error out if two different
27702         module names map to the same cache variable name.
27703
27704 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27705
27706         gnulib-tool: Make caching optional.
27707         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
27708         Update matching short versions of --no-changelog.
27709         (func_usage): Update.
27710         (sed_extract_cache_prog): Renamed from ...
27711         (sed_extract_prog): ... this; revert to old extraction script.
27712         (func_get_description, func_get_status)
27713         (func_get_notice, func_get_applicability, func_get_filelist)
27714         (func_get_dependencies, func_get_autoconf_early_snippet)
27715         (func_get_autoconf_snippet, func_get_automake_snippet)
27716         (func_get_include_directive, func_get_link_directive)
27717         (func_get_license, func_get_maintainer): If $do_cache is false,
27718         use old, non-caching extraction scripts.
27719         Suggestion by Bruno Haible.
27720
27721 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27722
27723         gnulib-tool: cache module metainformation.
27724         * gnulib-tool (sed_extract_prog): Match newline before each
27725         header, and rewrite header to a shell variable suffix.
27726         (func_cache_var, func_cache_lookup_module): New functions,
27727         to turn a module name into a cache variable prefix, and to
27728         look up and cache module metainformation.
27729         (func_get_description, func_get_status)
27730         (func_get_notice, func_get_applicability, func_get_filelist)
27731         (func_get_dependencies, func_get_autoconf_early_snippet)
27732         (func_get_autoconf_snippet, func_get_automake_snippet)
27733         (func_get_include_directive, func_get_link_directive)
27734         (func_get_license, func_get_maintainer): Use
27735         func_cache_lookup_module.
27736
27737 2010-02-07  Bruno Haible  <bruno@clisp.org>
27738
27739         fnctl: Fix missing dependency.
27740         * modules/fcntl (Depends-on): Add getdtablesize.
27741         Reported by John W. Eaton <jwe@gnu.org>.
27742
27743 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27744
27745         Argp: fix recognition of short alias options.
27746
27747         * lib/argp-parse.c (convert_options): Fix improper use of
27748         `|' between character values.
27749         * tests/test-argp.c (group1_option): New alias option
27750         --read (-r).
27751         (group1_parser): Special handling for 'r'.
27752         (test15): New test case.
27753         (test_fun): Add test15.
27754         * tests/test-argp-2.sh: Update expected --help and --usage
27755         outputs.
27756
27757 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27758
27759         * tests/test-argp.c: Fix indentation.
27760
27761 2010-02-04  Eric Blake  <ebb9@byu.net>
27762
27763         gettimeofday: expose type of second argument
27764         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
27765         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
27766         * tests/test-gettimeofday.c: Use it to silence warning.
27767         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
27768         the issue.
27769
27770 2010-02-03  Jim Meyering  <meyering@redhat.com>
27771
27772         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
27773         * lib/regcomp.c (TYPE_SIGNED): Define.
27774         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
27775
27776         regcomp.c: avoid a new -Wshadow warning
27777         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
27778
27779 2010-02-01  Jim Meyering  <meyering@redhat.com>
27780
27781         removing useless parentheses in cpp #define directives
27782         For motivation, see commit c0221df4, "define STREQ(a,b)
27783         consistently, removing useless parentheses"
27784         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
27785         * lib/mountlist.c (MNT_IGNORE): Likewise.
27786         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
27787
27788 2010-02-01  Eric Blake  <ebb9@byu.net>
27789
27790         sys_time: use link-warning
27791         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
27792         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
27793         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
27794         * modules/sys_time (Depends-on): Add warn-on-use.
27795         (Makefile.am): Always build replacement.
27796         (configure.ac): Update substitutions.
27797         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
27798         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
27799         bother with SYS_TIME_H.
27800         * modules/gettimeofday (configure.ac): Declare indicator.
27801         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
27802         in use.
27803
27804         closein-tests: silence compiler warning
27805         * tests/test-closein.c (main): Ignore fread result.
27806         * modules/closein-tests (Depends-on): Add ignore-value.
27807
27808         tests: silence warning about system return
27809         * tests/test-areadlink-with-size.c (main): Ignore system result.
27810         * tests/test-areadlink.c (main): Likewise.
27811         * tests/test-areadlinkat-with-size.c (main): Likewise.
27812         * tests/test-areadlinkat.c (main): Likewise.
27813         * tests/test-canonicalize-lgpl.c (main): Likewise.
27814         * tests/test-canonicalize.c (main): Likewise.
27815         * tests/test-chown.c (main): Likewise.
27816         * tests/test-fchownat.c (main): Likewise.
27817         * tests/test-fdutimensat.c (main): Likewise.
27818         * tests/test-fstatat.c (main): Likewise.
27819         * tests/test-futimens.c (main): Likewise.
27820         * tests/test-lchown.c (main): Likewise.
27821         * tests/test-link.c (main): Likewise.
27822         * tests/test-linkat.c (main): Likewise.
27823         * tests/test-lstat.c (main): Likewise.
27824         * tests/test-mkdir.c (main): Likewise.
27825         * tests/test-mkdirat.c (main): Likewise.
27826         * tests/test-mkfifo.c (main): Likewise.
27827         * tests/test-mkfifoat.c (main): Likewise.
27828         * tests/test-mknod.c (main): Likewise.
27829         * tests/test-readlink.c (main): Likewise.
27830         * tests/test-remove.c (main): Likewise.
27831         * tests/test-rename.c (main): Likewise.
27832         * tests/test-renameat.c (main): Likewise.
27833         * tests/test-rmdir.c (main): Likewise.
27834         * tests/test-symlink.c (main): Likewise.
27835         * tests/test-symlinkat.c (main): Likewise.
27836         * tests/test-unlink.c (main): Likewise.
27837         * tests/test-unlinkat.c (main): Likewise.
27838         * tests/test-utimens.c (main): Likewise.
27839         * tests/test-utimensat.c (main): Likewise.
27840         * modules/areadlink-tests (Depends-on): Add ignore-value.
27841         * modules/areadlink-with-size-tests (Depends-on): Likewise.
27842         * modules/areadlinkat-tests (Depends-on): Likewise.
27843         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
27844         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27845         * modules/canonicalize-tests (Depends-on): Likewise.
27846         * modules/chown-tests (Depends-on): Likewise.
27847         * modules/fdutimensat-tests (Depends-on): Likewise.
27848         * modules/futimens-tests (Depends-on): Likewise.
27849         * modules/lchown-tests (Depends-on): Likewise.
27850         * modules/link-tests (Depends-on): Likewise.
27851         * modules/linkat-tests (Depends-on): Likewise.
27852         * modules/lstat-tests (Depends-on): Likewise.
27853         * modules/mkdir-tests (Depends-on): Likewise.
27854         * modules/mkfifo-tests (Depends-on): Likewise.
27855         * modules/mkfifoat-tests (Depends-on): Likewise.
27856         * modules/mknod-tests (Depends-on): Likewise.
27857         * modules/openat-tests (Depends-on): Likewise.
27858         * modules/readlink-tests (Depends-on): Likewise.
27859         * modules/remove-tests (Depends-on): Likewise.
27860         * modules/rename-tests (Depends-on): Likewise.
27861         * modules/renameat-tests (Depends-on): Likewise.
27862         * modules/rmdir-tests (Depends-on): Likewise.
27863         * modules/symlink-tests (Depends-on): Likewise.
27864         * modules/symlinkat-tests (Depends-on): Likewise.
27865         * modules/unlink-tests (Depends-on): Likewise.
27866         * modules/utimens-tests (Depends-on): Likewise.
27867         * modules/utimensat-tests (Depends-on): Likewise.
27868
27869 2010-01-31  Bruno Haible  <bruno@clisp.org>
27870
27871         Perform the same test for many <math.h> functions.
27872         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
27873         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
27874         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
27875         of gl_MATHFUNC.
27876         * modules/acos (configure.ac): Likewise.
27877         * modules/asin (configure.ac): Likewise.
27878         * modules/atan (configure.ac): Likewise.
27879         * modules/atan2 (configure.ac): Likewise.
27880         * modules/cbrt (configure.ac): Likewise.
27881         * modules/copysign (configure.ac): Likewise.
27882         * modules/cos (configure.ac): Likewise.
27883         * modules/cosh (configure.ac): Likewise.
27884         * modules/erf (configure.ac): Likewise.
27885         * modules/erfc (configure.ac): Likewise.
27886         * modules/exp (configure.ac): Likewise.
27887         * modules/fmod (configure.ac): Likewise.
27888         * modules/hypot (configure.ac): Likewise.
27889         * modules/j0 (configure.ac): Likewise.
27890         * modules/j1 (configure.ac): Likewise.
27891         * modules/jn (configure.ac): Likewise.
27892         * modules/lgamma (configure.ac): Likewise.
27893         * modules/log (configure.ac): Likewise.
27894         * modules/log10 (configure.ac): Likewise.
27895         * modules/log1p (configure.ac): Likewise.
27896         * modules/pow (configure.ac): Likewise.
27897         * modules/remainder (configure.ac): Likewise.
27898         * modules/sin (configure.ac): Likewise.
27899         * modules/sinh (configure.ac): Likewise.
27900         * modules/tan (configure.ac): Likewise.
27901         * modules/tanh (configure.ac): Likewise.
27902         * modules/y0 (configure.ac): Likewise.
27903         * modules/y1 (configure.ac): Likewise.
27904         * modules/yn (configure.ac): Likewise.
27905         Suggested by Paolo Bonzini.
27906
27907 2010-01-31  Bruno Haible  <bruno@clisp.org>
27908
27909         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
27910
27911 2010-01-31  Bruno Haible  <bruno@clisp.org>
27912
27913         Work around getdelim() bug on FreeBSD 8.0.
27914         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
27915         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
27916         not work.
27917         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
27918         is 1.
27919         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
27920         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
27921         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
27922         a non-zero size.
27923         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
27924
27925 2010-01-31  Bruno Haible  <bruno@clisp.org>
27926
27927         Work around getline() bug on FreeBSD 8.0.
27928         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
27929         and a non-zero size.
27930         * tests/test-getline.c (main): Likewise.
27931         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
27932         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
27933
27934 2010-01-28  Eric Blake  <ebb9@byu.net>
27935
27936         regex: fix build failure
27937         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
27938         platforms.
27939
27940 2010-01-28  Jim Meyering  <meyering@redhat.com>
27941
27942         regex: do not ignore memory allocation failure
27943         * lib/regex_internal.c (create_cd_newstate): Detect
27944         re_node_set_init_copy failure.   Extracted from glibc commit
27945         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27946
27947         regex: sync more white-space changes from libc
27948         * lib/regex_internal.c: White-space only changes.
27949         * lib/regexec.c: Likewise.
27950
27951         regex: add many uses of __attribute_warn_unused_result__
27952         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
27953         * lib/regexec.c: Likewise.
27954         Extracted from a messy glibc commit.
27955
27956         regcomp.c: spelling and merge-artifact from glibc
27957         * lib/regcomp.c: Merge remainder of glibc's
27958         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27959
27960         regcomp.c: sync white-space changes from glibc
27961         * lib/regcomp.c: Merge to accommodate white space
27962         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27963
27964         regcomp.c: do not ignore internal return values
27965         * lib/regcomp.c: Do not ignore internal return values.
27966         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
27967         but without its white-space changes and spelling fixes.
27968
27969         regex_internal.h: define __attribute_warn_unused_result__
27970         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
27971
27972         maint: add a syntax-check rule to check for vulnerable Makefile.in
27973         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
27974
27975 2010-01-27  Jim Meyering  <meyering@redhat.com>
27976
27977         ncftpput-ftp: clean up spaces
27978         * build-aux/ncftpput-ftp: Make Copyright line consistent.
27979         Remove trailing blanks.
27980
27981 2010-01-27  Simon Josefsson  <simon@josefsson.org>
27982
27983         * build-aux/git-version-gen: Fix copyright statement.
27984         * build-aux/gnupload: Likewise.
27985         * tests/test-arcfour.c: Likewise.
27986         * tests/test-arctwo.c: Likewise.
27987         * tests/test-count-one-bits.c: Likewise.
27988         * tests/test-crc.c: Likewise.
27989         * tests/test-des.c: Likewise.
27990         * tests/test-gc-arcfour.c: Likewise.
27991         * tests/test-gc-arctwo.c: Likewise.
27992         * tests/test-gc-des.c: Likewise.
27993         * tests/test-gc-hmac-md5.c: Likewise.
27994         * tests/test-gc-hmac-sha1.c: Likewise.
27995         * tests/test-gc-md2.c: Likewise.
27996         * tests/test-gc-md4.c: Likewise.
27997         * tests/test-gc-md5.c: Likewise.
27998         * tests/test-gc-pbkdf2-sha1.c: Likewise.
27999         * tests/test-gc-rijndael.c: Likewise.
28000         * tests/test-gc-sha1.c: Likewise.
28001         * tests/test-gc.c: Likewise.
28002         * tests/test-gethostname.c: Likewise.
28003         * tests/test-gettimeofday.c: Likewise.
28004         * tests/test-hash.c: Likewise.
28005         * tests/test-hmac-md5.c: Likewise.
28006         * tests/test-hmac-sha1.c: Likewise.
28007         * tests/test-md2.c: Likewise.
28008         * tests/test-md4.c: Likewise.
28009         * tests/test-md5.c: Likewise.
28010         * tests/test-memchr.c: Likewise.
28011         * tests/test-memchr2.c: Likewise.
28012         * tests/test-memcmp.c: Likewise.
28013         * tests/test-memmem.c: Likewise.
28014         * tests/test-memrchr.c: Likewise.
28015         * tests/test-rawmemchr.c: Likewise.
28016         * tests/test-read-file.c: Likewise.
28017         * tests/test-rijndael.c: Likewise.
28018         * tests/test-sockets.c: Likewise.
28019         * tests/test-strchrnul.c: Likewise.
28020         * tests/test-strstr.c: Likewise.
28021         * tests/test-strtod.c: Likewise.
28022         * build-aux/ncftpput-ftp: Likewise.
28023
28024 2010-01-26  Eric Blake  <ebb9@byu.net>
28025
28026         ignore-value: update recommended header name
28027         * modules/ignore-value (Include): Only use <> for headers that
28028         exist in glibc.
28029
28030 2010-01-26  Jim Meyering  <meyering@redhat.com>
28031
28032         test-userspec.c: avoid compiler warnings
28033         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
28034         and "initialization discards qualifiers..." warnings.
28035         Put the first "uid" in its own scope, and make char* members "const".
28036
28037 2010-01-25  Bruno Haible  <bruno@clisp.org>
28038
28039         gnulib-tool: Make warning diagnostics consistent.
28040         * gnulib-tool (func_warning): New function.
28041         Use it everywhere where gnulib-tool produces output to stderr and it is
28042         not a fatal error.
28043
28044 2010-01-25  Bruno Haible  <bruno@clisp.org>
28045
28046         Fix test dependencies.
28047         * modules/xstrtol-tests (Depends-on): Add inttypes.
28048         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
28049
28050 2010-01-25 Pádraig Brady <P@draigBrady.com>
28051
28052         syntax-check: detect incorrect boolean macro values in config.h
28053         * modules/maintainer-makefile (configure.ac): Parameterize the location
28054         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
28055         The logic is from Eric Blake and the location indicated by Jim Meyering.
28056         Note the more natural CONFIG_HEADER name is prohibited by automake
28057         for backwards compatibility reasons.
28058         * top/maint.mk (sc_Wundef_boolean): New rule.
28059
28060 2010-01-25  Jim Meyering  <meyering@redhat.com>
28061
28062         bootstrap: detect MacOS 10.6's shasum, too
28063         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
28064         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
28065
28066 2010-01-23  Jim Meyering  <meyering@redhat.com>
28067
28068         xstrtoll: new module
28069         * modules/xstrtoll: New file.
28070         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
28071         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
28072         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
28073         ./configure fails if you use this module and lack "long long".
28074         * modules/xstrtoll-tests: New module.
28075         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
28076         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
28077         new init.sh-based test framework.
28078
28079 2010-01-24  Bruno Haible  <bruno@clisp.org>
28080
28081         Tests for module 'yn'.
28082         * modules/yn-tests: New file.
28083         * tests/test-yn.c: New file.
28084
28085         Tests for module 'y1'.
28086         * modules/y1-tests: New file.
28087         * tests/test-y1.c: New file.
28088
28089         Tests for module 'y0'.
28090         * modules/y0-tests: New file.
28091         * tests/test-y0.c: New file.
28092
28093         Tests for module 'tanh'.
28094         * modules/tanh-tests: New file.
28095         * tests/test-tanh.c: New file.
28096
28097         Tests for module 'tan'.
28098         * modules/tan-tests: New file.
28099         * tests/test-tan.c: New file.
28100
28101         Tests for module 'sqrt'.
28102         * modules/sqrt-tests: New file.
28103         * tests/test-sqrt.c: New file.
28104
28105         Tests for module 'sinh'.
28106         * modules/sinh-tests: New file.
28107         * tests/test-sinh.c: New file.
28108
28109         Tests for module 'sin'.
28110         * modules/sin-tests: New file.
28111         * tests/test-sin.c: New file.
28112
28113         Tests for module 'rint'.
28114         * modules/rint-tests: New file.
28115         * tests/test-rint.c: New file.
28116
28117         Tests for module 'remainder'.
28118         * modules/remainder-tests: New file.
28119         * tests/test-remainder.c: New file.
28120
28121         Tests for module 'pow'.
28122         * modules/pow-tests: New file.
28123         * tests/test-pow.c: New file.
28124
28125         Tests for module 'nextafter'.
28126         * modules/nextafter-tests: New file.
28127         * tests/test-nextafter.c: New file.
28128
28129         Tests for module 'modf'.
28130         * modules/modf-tests: New file.
28131         * tests/test-modf.c: New file.
28132
28133         Tests for module 'logb'.
28134         * modules/logb-tests: New file.
28135         * tests/test-logb.c: New file.
28136
28137         Tests for module 'log1p'.
28138         * modules/log1p-tests: New file.
28139         * tests/test-log1p.c: New file.
28140
28141         Tests for module 'log10'.
28142         * modules/log10-tests: New file.
28143         * tests/test-log10.c: New file.
28144
28145         Tests for module 'log'.
28146         * modules/log-tests: New file.
28147         * tests/test-log.c: New file.
28148
28149         Tests for module 'lgamma'.
28150         * modules/lgamma-tests: New file.
28151         * tests/test-lgamma.c: New file.
28152
28153         Tests for module 'ldexp'.
28154         * modules/ldexp-tests: New file.
28155         * tests/test-ldexp.c: New file.
28156
28157         Tests for module 'jn'.
28158         * modules/jn-tests: New file.
28159         * tests/test-jn.c: New file.
28160
28161         Tests for module 'j1'.
28162         * modules/j1-tests: New file.
28163         * tests/test-j1.c: New file.
28164
28165         Tests for module 'j0'.
28166         * modules/j0-tests: New file.
28167         * tests/test-j0.c: New file.
28168
28169         Tests for module 'hypot'.
28170         * modules/hypot-tests: New file.
28171         * tests/test-hypot.c: New file.
28172
28173         Tests for module 'fmod'.
28174         * modules/fmod-tests: New file.
28175         * tests/test-fmod.c: New file.
28176
28177         Tests for module 'fabs'.
28178         * modules/fabs-tests: New file.
28179         * tests/test-fabs.c: New file.
28180
28181         Tests for module 'exp'.
28182         * modules/exp-tests: New file.
28183         * tests/test-exp.c: New file.
28184
28185         Tests for module 'erfc'.
28186         * modules/erfc-tests: New file.
28187         * tests/test-erfc.c: New file.
28188
28189         Tests for module 'erf'.
28190         * modules/erf-tests: New file.
28191         * tests/test-erf.c: New file.
28192
28193         Tests for module 'cosh'.
28194         * modules/cosh-tests: New file.
28195         * tests/test-cosh.c: New file.
28196
28197         Tests for module 'cos'.
28198         * modules/cos-tests: New file.
28199         * tests/test-cos.c: New file.
28200
28201         Tests for module 'copysign'.
28202         * modules/copysign-tests: New file.
28203         * tests/test-copysign.c: New file.
28204
28205         Tests for module 'cbrt'.
28206         * modules/cbrt-tests: New file.
28207         * tests/test-cbrt.c: New file.
28208
28209         Tests for module 'atan2'.
28210         * modules/atan2-tests: New file.
28211         * tests/test-atan2.c: New file.
28212
28213         Tests for module 'atan'.
28214         * modules/atan-tests: New file.
28215         * tests/test-atan.c: New file.
28216
28217         Tests for module 'asin'.
28218         * modules/asin-tests: New file.
28219         * tests/test-asin.c: New file.
28220
28221         Tests for module 'acos'.
28222         * modules/acos-tests: New file.
28223         * tests/test-acos.c: New file.
28224
28225 2010-01-24  Bruno Haible  <bruno@clisp.org>
28226
28227         Fix tests for common <math.h> functions.
28228         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
28229         code snippet that references the function pointer, rather than merely
28230         calling the function. Substitute the FUNC_LIBM variable.
28231         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
28232         * modules/acos (configure.ac): Likewise.
28233         * modules/asin (configure.ac): Likewise.
28234         * modules/atan (configure.ac): Likewise.
28235         * modules/atan2 (configure.ac): Likewise.
28236         * modules/cbrt (configure.ac): Likewise.
28237         * modules/copysign (configure.ac): Likewise.
28238         * modules/cos (configure.ac): Likewise.
28239         * modules/cosh (configure.ac): Likewise.
28240         * modules/erf (configure.ac): Likewise.
28241         * modules/erfc (configure.ac): Likewise.
28242         * modules/exp (configure.ac): Likewise.
28243         * modules/fabs (configure.ac): Likewise.
28244         * modules/fmod (configure.ac): Likewise.
28245         * modules/hypot (configure.ac): Likewise.
28246         * modules/j0 (configure.ac): Likewise.
28247         * modules/j1 (configure.ac): Likewise.
28248         * modules/jn (configure.ac): Likewise.
28249         * modules/ldexp (configure.ac): Likewise.
28250         * modules/lgamma (configure.ac): Likewise.
28251         * modules/log (configure.ac): Likewise.
28252         * modules/log10 (configure.ac): Likewise.
28253         * modules/log1p (configure.ac): Likewise.
28254         * modules/logb (configure.ac): Likewise.
28255         * modules/modf (configure.ac): Likewise.
28256         * modules/nextafter (configure.ac): Likewise.
28257         * modules/pow (configure.ac): Likewise.
28258         * modules/remainder (configure.ac): Likewise.
28259         * modules/rint (configure.ac): Likewise.
28260         * modules/sin (configure.ac): Likewise.
28261         * modules/sinh (configure.ac): Likewise.
28262         * modules/tan (configure.ac): Likewise.
28263         * modules/tanh (configure.ac): Likewise.
28264         * modules/y0 (configure.ac): Likewise.
28265         * modules/y1 (configure.ac): Likewise.
28266         * modules/yn (configure.ac): Likewise.
28267
28268 2010-01-24  Bruno Haible  <bruno@clisp.org>
28269
28270         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
28271         * tests/test-acosl.c (x): New variable.
28272         (main): Store argument in x and fetch it from x.
28273         * tests/test-asinl.c (x): New variable.
28274         (main): Store argument in x and fetch it from x.
28275         * tests/test-atanl.c (x): New variable.
28276         (main): Store argument in x and fetch it from x.
28277         * tests/test-cosl.c (x): New variable.
28278         (main): Store argument in x and fetch it from x.
28279         * tests/test-expl.c (x): New variable.
28280         (main): Store argument in x and fetch it from x.
28281         * tests/test-logl.c (x): New variable.
28282         (main): Store argument in x and fetch it from x.
28283         * tests/test-sinl.c (x): New variable.
28284         (main): Store argument in x and fetch it from x.
28285         * tests/test-sqrtl.c (x): New variable.
28286         (main): Store argument in x and fetch it from x.
28287         * tests/test-tanl.c (x): New variable.
28288         (main): Store argument in x and fetch it from x.
28289
28290 2010-01-24  Bruno Haible  <bruno@clisp.org>
28291
28292         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
28293         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
28294         assignments to the initial TESTS_ENVIRONMENT.
28295         * doc/gnulib.texi (Unit test modules): Document it.
28296         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
28297         TESTS_ENVIRONMENT.
28298         * modules/btowc-tests (Makefile.am): Likewise.
28299         * modules/c-stack-tests (Makefile.am): Likewise.
28300         * modules/c-strcase-tests (Makefile.am): Likewise.
28301         * modules/copy-file-tests (Makefile.am): Likewise.
28302         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
28303         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
28304         * modules/mbrtowc-tests (Makefile.am): Likewise.
28305         * modules/mbscasecmp-tests (Makefile.am): Likewise.
28306         * modules/mbscasestr-tests (Makefile.am): Likewise.
28307         * modules/mbschr-tests (Makefile.am): Likewise.
28308         * modules/mbscspn-tests (Makefile.am): Likewise.
28309         * modules/mbsinit-tests (Makefile.am): Likewise.
28310         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
28311         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
28312         * modules/mbspbrk-tests (Makefile.am): Likewise.
28313         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
28314         * modules/mbsrchr-tests (Makefile.am): Likewise.
28315         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
28316         * modules/mbsspn-tests (Makefile.am): Likewise.
28317         * modules/mbsstr-tests (Makefile.am): Likewise.
28318         * modules/nl_langinfo-tests (Makefile.am): Likewise.
28319         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
28320         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
28321         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
28322         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
28323         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
28324         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
28325         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
28326         * modules/wcrtomb-tests (Makefile.am): Likewise.
28327         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
28328         * modules/wcsrtombs-tests (Makefile.am): Likewise.
28329         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
28330         assignments from TESTS_ENVIRONMENT.
28331         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
28332         augmentation.
28333         * modules/argp-version-etc-tests (Makefile.am): Likewise.
28334         * modules/atexit-tests (Makefile.am): Likewise.
28335         * modules/binary-io-tests (Makefile.am): Likewise.
28336         * modules/closein-tests (Makefile.am): Likewise.
28337         * modules/dprintf-posix-tests (Makefile.am): Likewise.
28338         * modules/exclude-tests (Makefile.am): Likewise.
28339         * modules/fflush-tests (Makefile.am): Likewise.
28340         * modules/fpending-tests (Makefile.am): Likewise.
28341         * modules/fprintf-posix-tests (Makefile.am): Likewise.
28342         * modules/freadahead-tests (Makefile.am): Likewise.
28343         * modules/freadptr-tests (Makefile.am): Likewise.
28344         * modules/freadseek-tests (Makefile.am): Likewise.
28345         * modules/fseek-tests (Makefile.am): Likewise.
28346         * modules/fseeko-tests (Makefile.am): Likewise.
28347         * modules/ftell-tests (Makefile.am): Likewise.
28348         * modules/ftello-tests (Makefile.am): Likewise.
28349         * modules/idpriv-drop-tests (Makefile.am): Likewise.
28350         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
28351         * modules/lseek-tests (Makefile.am): Likewise.
28352         * modules/parse-duration-tests (Makefile.am): Likewise.
28353         * modules/perror-tests (Makefile.am): Likewise.
28354         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
28355         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
28356         * modules/pipe-tests (Makefile.am): Likewise.
28357         * modules/pread-tests (Makefile.am): Likewise.
28358         * modules/printf-posix-tests (Makefile.am): Likewise.
28359         * modules/select-tests (Makefile.am): Likewise.
28360         * modules/sigpipe-tests (Makefile.am): Likewise.
28361         * modules/tsearch-tests (Makefile.am): Likewise.
28362         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
28363         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
28364         * modules/uniname/uniname-tests (Makefile.am): Likewise.
28365         * modules/uniwidth/width-tests (Makefile.am): Likewise.
28366         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
28367         * modules/version-etc-tests (Makefile.am): Likewise.
28368         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
28369         * modules/vprintf-posix-tests (Makefile.am): Likewise.
28370         * modules/xalloc-die-tests (Makefile.am): Likewise.
28371         * modules/xprintf-posix-tests (Makefile.am): Likewise.
28372         * modules/xstrtoimax-tests (Makefile.am): Likewise.
28373         * modules/xstrtol-tests (Makefile.am): Likewise.
28374         * modules/xstrtoumax-tests (Makefile.am): Likewise.
28375         * modules/yesno-tests (Makefile.am): Likewise.
28376         Suggested by Jim Meyering.
28377
28378 2010-01-24  Bruno Haible  <bruno@clisp.org>
28379
28380         More documentation.
28381         * doc/gnulib.texi (Writing modules): New chapter.
28382         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
28383         the new chapter.
28384
28385 2010-01-24  Jim Meyering  <meyering@redhat.com>
28386
28387         maint.mk: do not prepend "./" after filtering
28388         * top/maint.mk (_prepend_srcdir_prefix): New variable
28389         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
28390         "./" when $(srcdir) is ".".
28391
28392         define STREQ(a,b) consistently, removing useless parentheses
28393         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
28394         since the only risk is that "a" or "b" contains an unparenthesized
28395         comma, but if either did that, STREQ would have 3 or more arguments.
28396         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
28397         * lib/fts.c (STREQ): Remove unnecessary parentheses.
28398         * lib/hash-triple.c (STREQ): Likewise.
28399         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
28400         * lib/getugroups.c (STREQ): Likewise.
28401
28402 2010-01-23  Jim Meyering  <meyering@redhat.com>
28403
28404         maint.mk: fix syntax-check in a non-srcdir build directory
28405         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
28406         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
28407
28408 2010-01-22  Jim Meyering  <meyering@redhat.com>
28409
28410         userspec: add unit tests
28411         * tests/test-userspec.c: New file.
28412         * modules/userspec-tests: Likewise.
28413
28414 2010-01-21  Jim Meyering  <meyering@redhat.com>
28415
28416         maint.mk: handle source file names containing "." robustly
28417         * top/maint.mk (_dot_escaped_srcdir): Define.
28418         (VC_LIST): Use it in LHS of sed substitution.
28419
28420 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
28421
28422         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
28423         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
28424         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
28425         from a non-srcdir build.
28426
28427 2010-01-20  Eric Blake  <ebb9@byu.net>
28428
28429         warn-on-use: use instead of link-warning
28430         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
28431         * modules/unistd (Depends-on, Makefile.am): Likewise.
28432         * modules/arpa_inet (Depends-on): Replace link-warning with
28433         warn-on-use.
28434         (Makefile.am): Update rules accordingly.
28435         * modules/ctype (Depends-on, Makefile.am): Likewise.
28436         * modules/dirent (Depends-on, Makefile.am): Likewise.
28437         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
28438         * modules/inttypes (Depends-on, Makefile.am): Likewise.
28439         * modules/langinfo (Depends-on, Makefile.am): Likewise.
28440         * modules/locale (Depends-on, Makefile.am): Likewise.
28441         * modules/math (Depends-on, Makefile.am): Likewise.
28442         * modules/search (Depends-on, Makefile.am): Likewise.
28443         * modules/signal (Depends-on, Makefile.am): Likewise.
28444         * modules/spawn (Depends-on, Makefile.am): Likewise.
28445         * modules/stdlib (Depends-on, Makefile.am): Likewise.
28446         * modules/string (Depends-on, Makefile.am): Likewise.
28447         * modules/strings (Depends-on, Makefile.am): Likewise.
28448         * modules/sys_file (Depends-on, Makefile.am): Likewise.
28449         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
28450         * modules/sys_select (Depends-on, Makefile.am): Likewise.
28451         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
28452         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
28453         * modules/sys_times (Depends-on, Makefile.am): Likewise.
28454         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
28455         * modules/wchar (Depends-on, Makefile.am): Likewise.
28456         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
28457         should be poisoned.
28458         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
28459         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
28460         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
28461         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
28462         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
28463         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
28464         * m4/math_h.m4 (gl_MATH_H): Likewise.
28465         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
28466         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
28467         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
28468         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
28469         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
28470         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
28471         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
28472         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
28473         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
28474         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28475         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
28476         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
28477         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28478         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
28479         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
28480         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28481         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
28482         GL_LINK_WARNING.
28483         * lib/ctype.in.h: Likewise.
28484         * lib/dirent.in.h: Likewise.
28485         * lib/fcntl.in.h: Likewise.
28486         * lib/inttypes.in.h: Likewise.
28487         * lib/langinfo.in.h: Likewise.
28488         * lib/locale.in.h: Likewise.
28489         * lib/math.in.h: Likewise.
28490         * lib/search.in.h: Likewise.
28491         * lib/signal.in.h: Likewise.
28492         * lib/spawn.in.h: Likewise.
28493         * lib/stdio.in.h: Likewise.
28494         * lib/stdlib.in.h: Likewise.
28495         * lib/string.in.h: Likewise.
28496         * lib/strings.in.h: Likewise.
28497         * lib/sys_file.in.h: Likewise.
28498         * lib/sys_ioctl.in.h: Likewise.
28499         * lib/sys_select.in.h: Likewise.
28500         * lib/sys_socket.in.h: Likewise.
28501         * lib/sys_stat.in.h: Likewise.
28502         * lib/sys_times.in.h: Likewise.
28503         * lib/sys_utsname.in.h: Likewise.
28504         * lib/unistd.in.h: Likewise.
28505         * lib/wchar.in.h: Likewise.
28506
28507 2010-01-20  Bruno Haible  <bruno@clisp.org>
28508
28509         Avoid duplicate -lm.
28510         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
28511         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
28512         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
28513         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
28514         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
28515         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
28516         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
28517         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
28518         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
28519         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
28520         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
28521         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
28522         Reported by Paolo Bonzini.
28523
28524 2010-01-19  Bruno Haible  <bruno@clisp.org>
28525
28526         langinfo, nl_langinfo: Relicense under LGPLv2+.
28527         * modules/langinfo (License): Change to LGPLv2+.
28528         * modules/nl_langinfo (License): Likewise.
28529         Patch by David Lutterkort <lutter@redhat.com>.
28530
28531 2010-01-19  Bruno Haible  <bruno@clisp.org>
28532
28533         Avoid compilation error with cc on OSF/1 5.1.
28534         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
28535         statement, not before.
28536         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28537
28538 2010-01-18  Bruno Haible  <bruno@clisp.org>
28539
28540         Avoid a link error due to the __printf__ symbol.
28541         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
28542         and 2.6.x.
28543         (__format__, __printf__): Remove definitions.
28544         * lib/argp-fmtstream.h: Likewise.
28545         * lib/argp.h: Likewise.
28546         * lib/error.h: Likewise.
28547         * lib/vasnprintf.h: Likewise.
28548         * lib/xprintf.h: Likewise.
28549         * lib/xvasprintf.h: Likewise.
28550         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28551
28552 2010-01-18  Bruno Haible  <bruno@clisp.org>
28553
28554         Tests for module 'tanl'.
28555         * modules/tanl-tests: New file.
28556         * tests/test-tanl.c: New file.
28557
28558         Tests for module 'sqrtl'.
28559         * modules/sqrtl-tests: New file.
28560         * tests/test-sqrtl.c: New file.
28561
28562         Tests for module 'sinl'.
28563         * modules/sinl-tests: New file.
28564         * tests/test-sinl.c: New file.
28565
28566         Tests for module 'logl'.
28567         * modules/logl-tests: New file.
28568         * tests/test-logl.c: New file.
28569
28570         Tests for module 'expl'.
28571         * modules/expl-tests: New file.
28572         * tests/test-expl.c: New file.
28573
28574         Tests for module 'cosl'.
28575         * modules/cosl-tests: New file.
28576         * tests/test-cosl.c: New file.
28577
28578         Tests for module 'atanl'.
28579         * modules/atanl-tests: New file.
28580         * tests/test-atanl.c: New file.
28581
28582         Tests for module 'asinl'.
28583         * modules/asinl-tests: New file.
28584         * tests/test-asinl.c: New file.
28585
28586         Tests for module 'acosl'.
28587         * modules/acosl-tests: New file.
28588         * tests/test-acosl.c: New file.
28589
28590         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
28591         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
28592         tanl): Use the standard gnulib idiom.
28593         * lib/cosl.c: Don't include trigl.c and sincosl.c.
28594         * lib/sinl.c: Likewise.
28595         * lib/tanl.c: Don't include trigl.c.
28596         (kernel_tanl): Make static.
28597         * lib/sincosl.c: Include trigl.h first.
28598         * lib/trigl.c: Likewise.
28599         * m4/acosl.m4: New file.
28600         * m4/asinl.m4: New file.
28601         * m4/atanl.m4: New file.
28602         * m4/cosl.m4: New file.
28603         * m4/expl.m4: New file.
28604         * m4/logl.m4: New file.
28605         * m4/sinl.m4: New file.
28606         * m4/sqrtl.m4: New file.
28607         * m4/tanl.m4: New file.
28608         * m4/mathl.m4: Remove file.
28609         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
28610         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
28611         Don't initialize GNULIB_MATHL.
28612         * modules/acosl: New file.
28613         * modules/asinl: New file.
28614         * modules/atanl: New file.
28615         * modules/cosl: New file.
28616         * modules/expl: New file.
28617         * modules/logl: New file.
28618         * modules/sinl: New file.
28619         * modules/sqrtl: New file.
28620         * modules/tanl: New file.
28621         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
28622         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
28623         substitute GNULIB_MATHL.
28624         * modules/mathl: Rewritten.
28625         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
28626         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
28627         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
28628         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
28629         * doc/posix-functions/expl.texi: Mention the 'expl' module.
28630         * doc/posix-functions/logl.texi: Mention the 'logl' module.
28631         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
28632         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
28633         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
28634
28635 2010-01-18  Bruno Haible  <bruno@clisp.org>
28636
28637         sqrt: Make gl_FUNC_SQRT requirable.
28638         * m4/sqrt.m4: New file.
28639         * modules/sqrt (Files): Add it.
28640         (configure.ac): Invoke gl_FUNC_SQRT.
28641
28642 2010-01-18  Bruno Haible  <bruno@clisp.org>
28643
28644         New modules for common <math.h> functions.
28645         * m4/mathfunc.m4: New file.
28646         * modules/acos: New file.
28647         * modules/asin: New file.
28648         * modules/atan: New file.
28649         * modules/atan2: New file.
28650         * modules/cbrt: New file.
28651         * modules/copysign: New file.
28652         * modules/cos: New file.
28653         * modules/cosh: New file.
28654         * modules/erf: New file.
28655         * modules/erfc: New file.
28656         * modules/exp: New file.
28657         * modules/fabs: New file.
28658         * modules/fmod: New file.
28659         * modules/hypot: New file.
28660         * modules/j0: New file.
28661         * modules/j1: New file.
28662         * modules/jn: New file.
28663         * modules/ldexp: New file.
28664         * modules/lgamma: New file.
28665         * modules/log: New file.
28666         * modules/log10: New file.
28667         * modules/log1p: New file.
28668         * modules/logb: New file.
28669         * modules/modf: New file.
28670         * modules/nextafter: New file.
28671         * modules/pow: New file.
28672         * modules/remainder: New file.
28673         * modules/rint: New file.
28674         * modules/sin: New file.
28675         * modules/sinh: New file.
28676         * modules/sqrt: New file.
28677         * modules/tan: New file.
28678         * modules/tanh: New file.
28679         * modules/y0: New file.
28680         * modules/y1: New file.
28681         * modules/yn: New file.
28682         * doc/posix-functions/acos.texi: Mention the 'acos' module.
28683         * doc/posix-functions/asin.texi: Mention the 'asin' module.
28684         * doc/posix-functions/atan.texi: Mention the 'atan' module.
28685         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
28686         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
28687         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
28688         * doc/posix-functions/cos.texi: Mention the 'cos' module.
28689         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
28690         * doc/posix-functions/erf.texi: Mention the 'erf' module.
28691         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
28692         * doc/posix-functions/exp.texi: Mention the 'exp' module.
28693         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
28694         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
28695         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
28696         * doc/posix-functions/j0.texi: Mention the 'j0' module.
28697         * doc/posix-functions/j1.texi: Mention the 'j1' module.
28698         * doc/posix-functions/jn.texi: Mention the 'jn' module.
28699         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
28700         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
28701         * doc/posix-functions/log.texi: Mention the 'log' module.
28702         * doc/posix-functions/log10.texi: Mention the 'log10' module.
28703         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
28704         * doc/posix-functions/logb.texi: Mention the 'logb' module.
28705         * doc/posix-functions/modf.texi: Mention the 'modf' module.
28706         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
28707         * doc/posix-functions/pow.texi: Mention the 'pow' module.
28708         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
28709         * doc/posix-functions/rint.texi: Mention the 'rint' module.
28710         * doc/posix-functions/sin.texi: Mention the 'sin' module.
28711         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
28712         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
28713         * doc/posix-functions/tan.texi: Mention the 'tan' module.
28714         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
28715         * doc/posix-functions/y0.texi: Mention the 'y0' module.
28716         * doc/posix-functions/y1.texi: Mention the 'y1' module.
28717         * doc/posix-functions/yn.texi: Mention the 'yn' module.
28718
28719 2010-01-18  Jim Meyering  <meyering@redhat.com>
28720
28721         ignore-value: relax license to LGPLv2+
28722         * modules/ignore-value (License): Relax to LGPLv2+.
28723
28724         getdate: don't leak when TZ contains two or more '"'s
28725         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
28726         double quote in TZ after the first one.
28727
28728         readtokens: do not leak internal token_lengths buffer
28729         * lib/readtokens.c (readtokens): Free the local, lengths,
28730         when the supplied "token_lengths" parameter is NULL.
28731
28732 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28733
28734         Fix a couple of missing LIBTHREAD link failures on AIX.
28735         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
28736         $(LIBTHREAD).
28737         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
28738
28739         Link test-poll against INET_PTON_LIB.
28740         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
28741         for inet_pton on Solaris 10.
28742
28743 2010-01-17  Bruno Haible  <bruno@clisp.org>
28744
28745         unistdio/*-sprintf: Fix typo in module description.
28746         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
28747         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
28748         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
28749         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
28750         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
28751         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
28752         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
28753         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28754
28755 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28756
28757         gnulib-tool: fix filelist for AIX, HP-UX ksh.
28758         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
28759         variables in shell case patterns, for AIX and HP-UX ksh.
28760
28761         Split large sed scripts, for HP-UX sed.
28762         * modules/stdio: Split sed scripts around 50 sed commands,
28763         to avoid HP-UX limit of 99 commands, in the near future.
28764         * modules/string: Likewise.
28765         * modules/unistd: Likewise.
28766
28767         gnulib-tool: avoid writing in the current directory.
28768         * gnulib-tool (func_emit_lib_Makefile_am)
28769         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
28770         not in the current directory, so concurrent gnulib-tool
28771         instances do not interfere.
28772
28773 2010-01-16  Jim Meyering  <meyering@redhat.com>
28774
28775         doc: update users.txt
28776         * users.txt: Add grep.
28777         (diffutils, gzip): Update URLs.
28778
28779 2010-01-12  Bruno Haible  <bruno@clisp.org>
28780
28781         posix_spawn: Avoid test failure on Cygwin.
28782         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
28783         characters.
28784         Reported by Simon Josefsson.
28785
28786 2010-01-12  Bruno Haible  <bruno@clisp.org>
28787
28788         * tests/test-cond.c (main): When skipping the test, show the reason.
28789
28790 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28791
28792         * lib/striconv.c (str_cd_iconv): Avoid if before free.
28793
28794 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28795
28796         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
28797         VC_LIST_ALWAYS_EXCLUDE_REGEX.
28798
28799 2010-01-12  Eric Blake  <ebb9@byu.net>
28800
28801         build: guarantee AS_VAR_IF
28802         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
28803         (gl_AS_VAR_IF): Move...
28804         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
28805         Reported by Simon Josefsson.
28806
28807 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28808
28809         * lib/stdio.in.h: Fix typo.
28810
28811 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28812
28813         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
28814         libgpg-error.
28815
28816 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28817
28818         * tests/test-xalloc-die.sh: Use $EXEEXT.
28819
28820 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28821             Bruno Haible  <bruno@clisp.org>
28822
28823         getlogin, getlogin_r: Avoid test failure.
28824         * tests/test-getlogin.c: Include <stdio.h>.
28825         (main): Skip the test when the function fails because stdin is not a
28826         tty.
28827         * tests/test-getlogin_r.c: Include <stdio.h>.
28828         (main): Skip the test when the function fails because stdin is not a
28829         tty.
28830
28831 2010-01-11  Eric Blake  <ebb9@byu.net>
28832
28833         tests: avoid more large file warnings
28834         * tests/test-fflush.c: Avoid warning about ftell use.
28835         * tests/test-fseek.c: Avoid warning about fseek use.
28836
28837 2010-01-10  Bruno Haible  <bruno@clisp.org>
28838
28839         nproc: Work better on Linux when /proc and /sys are not mounted.
28840         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
28841         as lower bound when, on glibc/Linux systems,
28842         sysconf (_SC_NPROCESSORS_CONF) returns 1.
28843         Suggested by Pádraig Brady <P@draigbrady.com>.
28844         Reported by Dmitry V. Levin <ldv@altlinux.org>.
28845
28846         nproc: Refactor.
28847         * lib/nproc.c (num_processors_via_affinity_mask): New function,
28848         extracted from num_processors.
28849         (num_processors): Call it.
28850
28851 2010-01-11  Jim Meyering  <meyering@redhat.com>
28852
28853         utimecmp: avoid new warning from upcoming gcc-4.5.0
28854         * lib/utimecmp.c (BILLION): Define using #define rather than an
28855         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
28856
28857 2010-01-11  Eric Blake  <ebb9@byu.net>
28858
28859         math: add portability warnings for classification macros
28860         * modules/math (Depends-on): Add warn-on-use.
28861         (Makefile.am): Provide new substitutions.
28862         * m4/math_h.m4 (gl_MATH_H): Require inline.
28863         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
28864         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
28865         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
28866         implement warnings.
28867
28868         unistd: warn on use of environ without module
28869         * modules/unistd (Depends-on): Add warn-on-use.
28870         (Makefile.am): Provide new substitutions.
28871         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
28872         * lib/unistd.in.h (environ): Wrap with a warning helper function.
28873
28874         stdio: warn on suspicious uses
28875         * modules/stdio (Depends-on): Add warn-on-use.
28876         (Makefile.am): Provide new substitutions.
28877         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
28878         fseeko.
28879         * lib/stdio.in.h (gets): Always warn on use.
28880         (fseek, ftell): Adjust when warnings are issued, and honor
28881         _GL_NO_LARGE_FILES as a way to silence the warning.
28882         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
28883         any warning about large file offsets.
28884         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
28885         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
28886         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
28887         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
28888         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
28889         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
28890         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
28891         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
28892
28893         warn-on-use: new module
28894         * modules/warn-on-use: New file.
28895         * build-aux/warn-on-use.h: Likewise.
28896         * m4/warn-on-use.m4: Likewise.
28897         * MODULES.html.sh (Support for building): Mention it.
28898
28899 2010-01-10  Bruno Haible  <bruno@clisp.org>
28900
28901         Tests for module 'unistr/u32-strdup'.
28902         * modules/unistr/u32-strdup-tests: New file.
28903         * tests/unistr/test-u32-strdup.c: New file.
28904
28905         Tests for module 'unistr/u16-strdup'.
28906         * modules/unistr/u16-strdup-tests: New file.
28907         * tests/unistr/test-u16-strdup.c: New file.
28908
28909         Tests for module 'unistr/u8-strdup'.
28910         * modules/unistr/u8-strdup-tests: New file.
28911         * tests/unistr/test-u8-strdup.c: New file.
28912         * tests/unistr/test-strdup.h: New file.
28913
28914         Tests for module 'unistr/u32-strncmp'.
28915         * modules/unistr/u32-strncmp-tests: New file.
28916         * tests/unistr/test-u32-strncmp.c: New file.
28917
28918         Tests for module 'unistr/u16-strncmp'.
28919         * modules/unistr/u16-strncmp-tests: New file.
28920         * tests/unistr/test-u16-strncmp.c: New file.
28921
28922         Tests for module 'unistr/u8-strncmp'.
28923         * modules/unistr/u8-strncmp-tests: New file.
28924         * tests/unistr/test-u8-strncmp.c: New file.
28925         * tests/unistr/test-strncmp.h: New file.
28926
28927         Tests for module 'unistr/u32-strcoll'.
28928         * modules/unistr/u32-strcoll-tests: New file.
28929         * tests/unistr/test-u32-strcoll.c: New file.
28930
28931         Tests for module 'unistr/u16-strcoll'.
28932         * modules/unistr/u16-strcoll-tests: New file.
28933         * tests/unistr/test-u16-strcoll.c: New file.
28934
28935         Tests for module 'unistr/u8-strcoll'.
28936         * modules/unistr/u8-strcoll-tests: New file.
28937         * tests/unistr/test-u8-strcoll.c: New file.
28938
28939         Tests for module 'unistr/u32-strcmp'.
28940         * modules/unistr/u32-strcmp-tests: New file.
28941         * tests/unistr/test-u32-strcmp.c: New file.
28942         * tests/unistr/test-u32-strcmp.h: New file.
28943
28944         Tests for module 'unistr/u16-strcmp'.
28945         * modules/unistr/u16-strcmp-tests: New file.
28946         * tests/unistr/test-u16-strcmp.c: New file.
28947         * tests/unistr/test-u16-strcmp.h: New file.
28948
28949         Tests for module 'unistr/u8-strcmp'.
28950         * modules/unistr/u8-strcmp-tests: New file.
28951         * tests/unistr/test-u8-strcmp.c: New file.
28952         * tests/unistr/test-u8-strcmp.h: New file.
28953         * tests/unistr/test-strcmp.h: New file.
28954
28955         Tests for module 'unistr/u32-strncat'.
28956         * modules/unistr/u32-strncat-tests: New file.
28957         * tests/unistr/test-u32-strncat.c: New file.
28958
28959         Tests for module 'unistr/u16-strncat'.
28960         * modules/unistr/u16-strncat-tests: New file.
28961         * tests/unistr/test-u16-strncat.c: New file.
28962
28963         Tests for module 'unistr/u8-strncat'.
28964         * modules/unistr/u8-strncat-tests: New file.
28965         * tests/unistr/test-u8-strncat.c: New file.
28966         * tests/unistr/test-strncat.h: New file.
28967
28968         Tests for module 'unistr/u32-strcat'.
28969         * modules/unistr/u32-strcat-tests: New file.
28970         * tests/unistr/test-u32-strcat.c: New file.
28971
28972         Tests for module 'unistr/u16-strcat'.
28973         * modules/unistr/u16-strcat-tests: New file.
28974         * tests/unistr/test-u16-strcat.c: New file.
28975
28976         Tests for module 'unistr/u8-strcat'.
28977         * modules/unistr/u8-strcat-tests: New file.
28978         * tests/unistr/test-u8-strcat.c: New file.
28979         * tests/unistr/test-strcat.h: New file.
28980
28981         Tests for module 'unistr/u32-stpncpy'.
28982         * modules/unistr/u32-stpncpy-tests: New file.
28983         * tests/unistr/test-u32-stpncpy.c: New file.
28984
28985         Tests for module 'unistr/u16-stpncpy'.
28986         * modules/unistr/u16-stpncpy-tests: New file.
28987         * tests/unistr/test-u16-stpncpy.c: New file.
28988
28989         Tests for module 'unistr/u8-stpncpy'.
28990         * modules/unistr/u8-stpncpy-tests: New file.
28991         * tests/unistr/test-u8-stpncpy.c: New file.
28992         * tests/unistr/test-stpncpy.h: New file.
28993
28994         Tests for module 'unistr/u32-strncpy'.
28995         * modules/unistr/u32-strncpy-tests: New file.
28996         * tests/unistr/test-u32-strncpy.c: New file.
28997
28998         Tests for module 'unistr/u16-strncpy'.
28999         * modules/unistr/u16-strncpy-tests: New file.
29000         * tests/unistr/test-u16-strncpy.c: New file.
29001
29002         Tests for module 'unistr/u8-strncpy'.
29003         * modules/unistr/u8-strncpy-tests: New file.
29004         * tests/unistr/test-u8-strncpy.c: New file.
29005         * tests/unistr/test-strncpy.h: New file.
29006
29007         Tests for module 'unistr/u32-stpcpy'.
29008         * modules/unistr/u32-stpcpy-tests: New file.
29009         * tests/unistr/test-u32-stpcpy.c: New file.
29010
29011         Tests for module 'unistr/u16-stpcpy'.
29012         * modules/unistr/u16-stpcpy-tests: New file.
29013         * tests/unistr/test-u16-stpcpy.c: New file.
29014
29015         Tests for module 'unistr/u8-stpcpy'.
29016         * modules/unistr/u8-stpcpy-tests: New file.
29017         * tests/unistr/test-u8-stpcpy.c: New file.
29018         * tests/unistr/test-stpcpy.h: New file.
29019
29020         Tests for module 'unistr/u32-strcpy'.
29021         * modules/unistr/u32-strcpy-tests: New file.
29022         * tests/unistr/test-u32-strcpy.c: New file.
29023
29024         Tests for module 'unistr/u16-strcpy'.
29025         * modules/unistr/u16-strcpy-tests: New file.
29026         * tests/unistr/test-u16-strcpy.c: New file.
29027
29028         Tests for module 'unistr/u8-strcpy'.
29029         * modules/unistr/u8-strcpy-tests: New file.
29030         * tests/unistr/test-u8-strcpy.c: New file.
29031         * tests/unistr/test-strcpy.h: New file.
29032
29033         Tests for module 'unistr/u32-strnlen'.
29034         * modules/unistr/u32-strnlen-tests: New file.
29035         * tests/unistr/test-u32-strnlen.c: New file.
29036
29037         Tests for module 'unistr/u16-strnlen'.
29038         * modules/unistr/u16-strnlen-tests: New file.
29039         * tests/unistr/test-u16-strnlen.c: New file.
29040
29041         Tests for module 'unistr/u8-strnlen'.
29042         * modules/unistr/u8-strnlen-tests: New file.
29043         * tests/unistr/test-u8-strnlen.c: New file.
29044         * tests/unistr/test-strnlen.h: New file.
29045
29046         Tests for module 'unistr/u32-strlen'.
29047         * modules/unistr/u32-strlen-tests: New file.
29048         * tests/unistr/test-u32-strlen.c: New file.
29049
29050         Tests for module 'unistr/u16-strlen'.
29051         * modules/unistr/u16-strlen-tests: New file.
29052         * tests/unistr/test-u16-strlen.c: New file.
29053
29054         Tests for module 'unistr/u8-strlen'.
29055         * modules/unistr/u8-strlen-tests: New file.
29056         * tests/unistr/test-u8-strlen.c: New file.
29057
29058         Tests for module 'unistr/u32-prev'.
29059         * modules/unistr/u32-prev-tests: New file.
29060         * tests/unistr/test-u32-prev.c: New file.
29061
29062         Tests for module 'unistr/u16-prev'.
29063         * modules/unistr/u16-prev-tests: New file.
29064         * tests/unistr/test-u16-prev.c: New file.
29065
29066         Tests for module 'unistr/u8-prev'.
29067         * modules/unistr/u8-prev-tests: New file.
29068         * tests/unistr/test-u8-prev.c: New file.
29069
29070         Tests for module 'unistr/u32-next'.
29071         * modules/unistr/u32-next-tests: New file.
29072         * tests/unistr/test-u32-next.c: New file.
29073
29074         Tests for module 'unistr/u16-next'.
29075         * modules/unistr/u16-next-tests: New file.
29076         * tests/unistr/test-u16-next.c: New file.
29077
29078         Tests for module 'unistr/u8-next'.
29079         * modules/unistr/u8-next-tests: New file.
29080         * tests/unistr/test-u8-next.c: New file.
29081
29082         Tests for module 'unistr/u32-strmbtouc'.
29083         * modules/unistr/u32-strmbtouc-tests: New file.
29084         * tests/unistr/test-u32-strmbtouc.c: New file.
29085
29086         Tests for module 'unistr/u16-strmbtouc'.
29087         * modules/unistr/u16-strmbtouc-tests: New file.
29088         * tests/unistr/test-u16-strmbtouc.c: New file.
29089
29090         Tests for module 'unistr/u8-strmbtouc'.
29091         * modules/unistr/u8-strmbtouc-tests: New file.
29092         * tests/unistr/test-u8-strmbtouc.c: New file.
29093
29094         Tests for module 'unistr/u32-strmblen'.
29095         * modules/unistr/u32-strmblen-tests: New file.
29096         * tests/unistr/test-u32-strmblen.c: New file.
29097
29098         Tests for module 'unistr/u16-strmblen'.
29099         * modules/unistr/u16-strmblen-tests: New file.
29100         * tests/unistr/test-u16-strmblen.c: New file.
29101
29102         Tests for module 'unistr/u8-strmblen'.
29103         * modules/unistr/u8-strmblen-tests: New file.
29104         * tests/unistr/test-u8-strmblen.c: New file.
29105
29106         Tests for module 'unistr/u32-cpy-alloc'.
29107         * modules/unistr/u32-cpy-alloc-tests: New file.
29108         * tests/unistr/test-u32-cpy-alloc.c: New file.
29109
29110         Tests for module 'unistr/u16-cpy-alloc'.
29111         * modules/unistr/u16-cpy-alloc-tests: New file.
29112         * tests/unistr/test-u16-cpy-alloc.c: New file.
29113
29114         Tests for module 'unistr/u8-cpy-alloc'.
29115         * modules/unistr/u8-cpy-alloc-tests: New file.
29116         * tests/unistr/test-u8-cpy-alloc.c: New file.
29117         * tests/unistr/test-cpy-alloc.h: New file.
29118
29119         Tests for module 'unistr/u32-mbsnlen'.
29120         * modules/unistr/u32-mbsnlen-tests: New file.
29121         * tests/unistr/test-u32-mbsnlen.c: New file.
29122
29123         Tests for module 'unistr/u16-mbsnlen'.
29124         * modules/unistr/u16-mbsnlen-tests: New file.
29125         * tests/unistr/test-u16-mbsnlen.c: New file.
29126
29127         Tests for module 'unistr/u8-mbsnlen'.
29128         * modules/unistr/u8-mbsnlen-tests: New file.
29129         * tests/unistr/test-u8-mbsnlen.c: New file.
29130
29131         Tests for module 'unistr/u32-chr'.
29132         * modules/unistr/u32-chr-tests: New file.
29133         * tests/unistr/test-u32-chr.c: New file.
29134
29135         Tests for module 'unistr/u16-chr'.
29136         * modules/unistr/u16-chr-tests: New file.
29137         * tests/unistr/test-u16-chr.c: New file.
29138
29139         Tests for module 'unistr/u8-chr'.
29140         * modules/unistr/u8-chr-tests: New file.
29141         * tests/unistr/test-u8-chr.c: New file.
29142         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
29143
29144         Tests for module 'unistr/u32-cmp2'.
29145         * modules/unistr/u32-cmp2-tests: New file.
29146         * tests/unistr/test-u32-cmp2.c: New file.
29147
29148         Tests for module 'unistr/u16-cmp2'.
29149         * modules/unistr/u16-cmp2-tests: New file.
29150         * tests/unistr/test-u16-cmp2.c: New file.
29151
29152         Tests for module 'unistr/u8-cmp2'.
29153         * modules/unistr/u8-cmp2-tests: New file.
29154         * tests/unistr/test-u8-cmp2.c: New file.
29155         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
29156
29157         Tests for module 'unistr/u32-cmp'.
29158         * modules/unistr/u32-cmp-tests: New file.
29159         * tests/unistr/test-u32-cmp.c: New file.
29160
29161         Tests for module 'unistr/u16-cmp'.
29162         * modules/unistr/u16-cmp-tests: New file.
29163         * tests/unistr/test-u16-cmp.c: New file.
29164
29165         Tests for module 'unistr/u8-cmp'.
29166         * modules/unistr/u8-cmp-tests: New file.
29167         * tests/unistr/test-u8-cmp.c: New file.
29168         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
29169
29170         Tests for module 'unistr/u32-set'.
29171         * modules/unistr/u32-set-tests: New file.
29172         * tests/unistr/test-u32-set.c: New file.
29173
29174         Tests for module 'unistr/u16-set'.
29175         * modules/unistr/u16-set-tests: New file.
29176         * tests/unistr/test-u16-set.c: New file.
29177
29178         Tests for module 'unistr/u8-set'.
29179         * modules/unistr/u8-set-tests: New file.
29180         * tests/unistr/test-u8-set.c: New file.
29181         * tests/unistr/test-set.h: New file.
29182
29183         Tests for module 'unistr/u32-move'.
29184         * modules/unistr/u32-move-tests: New file.
29185         * tests/unistr/test-u32-move.c: New file.
29186
29187         Tests for module 'unistr/u16-move'.
29188         * modules/unistr/u16-move-tests: New file.
29189         * tests/unistr/test-u16-move.c: New file.
29190
29191         Tests for module 'unistr/u8-move'.
29192         * modules/unistr/u8-move-tests: New file.
29193         * tests/unistr/test-u8-move.c: New file.
29194         * tests/unistr/test-move.h: New file.
29195
29196         Tests for module 'unistr/u32-cpy'.
29197         * modules/unistr/u32-cpy-tests: New file.
29198         * tests/unistr/test-u32-cpy.c: New file.
29199
29200         Tests for module 'unistr/u16-cpy'.
29201         * modules/unistr/u16-cpy-tests: New file.
29202         * tests/unistr/test-u16-cpy.c: New file.
29203
29204         Tests for module 'unistr/u8-cpy'.
29205         * modules/unistr/u8-cpy-tests: New file.
29206         * tests/unistr/test-u8-cpy.c: New file.
29207         * tests/unistr/test-cpy.h: New file.
29208
29209 2010-01-09  Bruno Haible  <bruno@clisp.org>
29210
29211         Tests for module 'unistr/u32-uctomb'.
29212         * modules/unistr/u32-uctomb-tests: New file.
29213         * tests/unistr/test-u32-uctomb.c: New file.
29214
29215         Tests for module 'unistr/u16-uctomb'.
29216         * modules/unistr/u16-uctomb-tests: New file.
29217         * tests/unistr/test-u16-uctomb.c: New file.
29218
29219         Tests for module 'unistr/u8-uctomb'.
29220         * modules/unistr/u8-uctomb-tests: New file.
29221         * tests/unistr/test-u8-uctomb.c: New file.
29222
29223         Tests for module 'unistr/u32-mbtoucr'.
29224         * modules/unistr/u32-mbtoucr-tests: New file.
29225         * tests/unistr/test-u32-mbtoucr.c: New file.
29226
29227         Tests for module 'unistr/u16-mbtoucr'.
29228         * modules/unistr/u16-mbtoucr-tests: New file.
29229         * tests/unistr/test-u16-mbtoucr.c: New file.
29230
29231         Tests for module 'unistr/u8-mbtoucr'.
29232         * modules/unistr/u8-mbtoucr-tests: New file.
29233         * tests/unistr/test-u8-mbtoucr.c: New file.
29234
29235         Tests for module 'unistr/u32-mbtouc'.
29236         * modules/unistr/u32-mbtouc-tests: New file.
29237         * tests/unistr/test-u32-mbtouc.c: New file.
29238
29239         Tests for module 'unistr/u16-mbtouc'.
29240         * modules/unistr/u16-mbtouc-tests: New file.
29241         * tests/unistr/test-u16-mbtouc.c: New file.
29242
29243         Tests for module 'unistr/u8-mbtouc'.
29244         * modules/unistr/u8-mbtouc-tests: New file.
29245         * tests/unistr/test-u8-mbtouc.c: New file.
29246
29247         Tests for module 'unistr/u32-mbtouc-unsafe'.
29248         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
29249         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
29250         * tests/unistr/test-u32-mbtouc.h: New file.
29251
29252         Tests for module 'unistr/u16-mbtouc-unsafe'.
29253         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
29254         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
29255         * tests/unistr/test-u16-mbtouc.h: New file.
29256
29257         Tests for module 'unistr/u8-mbtouc-unsafe'.
29258         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
29259         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
29260         * tests/unistr/test-u8-mbtouc.h: New file.
29261
29262         Tests for module 'unistr/u32-mblen'.
29263         * modules/unistr/u32-mblen-tests: New file.
29264         * tests/unistr/test-u32-mblen.c: New file.
29265
29266         Tests for module 'unistr/u16-mblen'.
29267         * modules/unistr/u16-mblen-tests: New file.
29268         * tests/unistr/test-u16-mblen.c: New file.
29269
29270         Tests for module 'unistr/u8-mblen'.
29271         * modules/unistr/u8-mblen-tests: New file.
29272         * tests/unistr/test-u8-mblen.c: New file.
29273
29274         Tests for module 'unistr/u32-to-u16'.
29275         * modules/unistr/u32-to-u16-tests: New file.
29276         * tests/unistr/test-u32-to-u16.c: New file.
29277
29278         Tests for module 'unistr/u32-to-u8'.
29279         * modules/unistr/u32-to-u8-tests: New file.
29280         * tests/unistr/test-u32-to-u8.c: New file.
29281
29282         Tests for module 'unistr/u16-to-u32'.
29283         * modules/unistr/u16-to-u32-tests: New file.
29284         * tests/unistr/test-u16-to-u32.c: New file.
29285
29286         Tests for module 'unistr/u16-to-u8'.
29287         * modules/unistr/u16-to-u8-tests: New file.
29288         * tests/unistr/test-u16-to-u8.c: New file.
29289
29290         Tests for module 'unistr/u8-to-u32'.
29291         * modules/unistr/u8-to-u32-tests: New file.
29292         * tests/unistr/test-u8-to-u32.c: New file.
29293
29294         Tests for module 'unistr/u8-to-u16'.
29295         * modules/unistr/u8-to-u16-tests: New file.
29296         * tests/unistr/test-u8-to-u16.c: New file.
29297
29298         Tests for module 'unistr/u32-check'.
29299         * modules/unistr/u32-check-tests: New file.
29300         * tests/unistr/test-u32-check.c: New file.
29301
29302         Tests for module 'unistr/u16-check'.
29303         * modules/unistr/u16-check-tests: New file.
29304         * tests/unistr/test-u16-check.c: New file.
29305
29306         Tests for module 'unistr/u8-check'.
29307         * modules/unistr/u8-check-tests: New file.
29308         * tests/unistr/test-u8-check.c: New file.
29309
29310         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
29311         (category_equals): New function.
29312         (main): Add more tests.
29313         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
29314
29315         * tests/unictype/test-bidi_byname.c (main): Add more tests.
29316
29317 2010-01-10  Bruno Haible  <bruno@clisp.org>
29318
29319         unistr/u*-strcoll: Try harder to distinguish different strings.
29320         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
29321         compare s1 and s2 to see if they are different.
29322
29323 2010-01-10  Bruno Haible  <bruno@clisp.org>
29324
29325         unistr/u*-stpncpy: Fix the return value.
29326         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
29327         description of the return value consistent with stpncpy in glibc.
29328         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
29329         written non-NUL unit.
29330
29331 2010-01-10  Bruno Haible  <bruno@clisp.org>
29332
29333         unistr/u*-next: Add missing dependencies.
29334         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
29335         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
29336         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
29337
29338 2010-01-10  Bruno Haible  <bruno@clisp.org>
29339
29340         unistr/u8-mbsnlen: Fix return value for incomplete character.
29341         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
29342         u8_mblen.
29343         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
29344         Remove unistr/u8-mblen.
29345         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
29346         u16_mblen.
29347         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
29348         Remove unistr/u16-mblen.
29349
29350 2010-01-10  Bruno Haible  <bruno@clisp.org>
29351
29352         wchar: Fix compilation error when <wchar.h> is used from coreutils.
29353         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
29354         Reported by Brian Gough <bjg@gnu.org> and
29355         Chris Clayton <chris2553@googlemail.com> via
29356         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
29357
29358 2010-01-09  Bruno Haible  <bruno@clisp.org>
29359
29360         unistr/u16-to-u32: Reject invalid input.
29361         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
29362         u16_mbtouc.
29363         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
29364         Remove unistr/u16-mbtouc.
29365
29366         unistr/u16-to-u8: Reject invalid input.
29367         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
29368         u16_mbtouc.
29369         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
29370         Remove unistr/u16-mbtouc.
29371
29372         unistr/u8-to-u32: Reject invalid input.
29373         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
29374         u8_mbtouc.
29375         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
29376         Remove unistr/u8-mbtouc.
29377
29378         unistr/u8-to-u16: Reject invalid input.
29379         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
29380         u8_mbtouc.
29381         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
29382         Remove unistr/u8-mbtouc.
29383
29384 2010-01-09  Bruno Haible  <bruno@clisp.org>
29385
29386         Tests for module 'getlogin'.
29387         * modules/getlogin-tests: New file.
29388         * tests/test-getlogin.c: New file.
29389
29390         New module 'getlogin'.
29391         * lib/unistd.in.h (getlogin): New declaration.
29392         * lib/getlogin.c: New file.
29393         * m4/getlogin.m4: New file.
29394         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
29395         HAVE_GETLOGIN.
29396         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
29397         HAVE_GETLOGIN.
29398         * modules/getlogin: New file.
29399         * doc/posix-functions/getlogin.texi: Mention the new module.
29400         Reported by John W. Eaton <jwe@gnu.org>.
29401
29402 2010-01-09  Bruno Haible  <bruno@clisp.org>
29403
29404         getlogin_r: Support for native Windows.
29405         * lib/getlogin_r.c: Include <windows.h>
29406         (getlogin_r): Implement for native Windows.
29407         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
29408         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
29409         via John W. Eaton <jwe@gnu.org>.
29410
29411 2010-01-09  Bruno Haible  <bruno@clisp.org>
29412
29413         getlogin_r: Small fixes.
29414         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
29415         succeeds.
29416         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
29417         before testing whether getlogin_r is declared. No need to set
29418         HAVE_DECL_GETLOGIN_R to 1.
29419         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
29420
29421 2010-01-09  Bruno Haible  <bruno@clisp.org>
29422
29423         * lib/unistd.in.h (getlogin_r): Add comment.
29424
29425 2010-01-09  Bruno Haible  <bruno@clisp.org>
29426
29427         Tests for module 'getlogin_r'.
29428         * modules/getlogin_r-tests: New file.
29429         * tests/test-getlogin_r.c: New file.
29430
29431 2010-01-09  Jim Meyering  <meyering@redhat.com>
29432
29433         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
29434         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
29435         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
29436
29437 2010-01-08  Simon Josefsson  <simon@josefsson.org>
29438
29439         * lib/dup2.c (rpl_dup2): Improve comment.
29440
29441 2010-01-08  Eric Blake  <ebb9@byu.net>
29442
29443         maint.mk: allow packages to add makefile @@ exceptions
29444         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
29445         (sc_makefile_check): Rename...
29446         (sc_makefile_at_at_check): ...to this, and use hook.
29447
29448         dup2: work around mingw bug
29449         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
29450         Reported by Simon Josefsson.
29451
29452 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
29453
29454         glob: Fix C++ compilation.
29455         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
29456         C++.
29457
29458 2010-01-07  Bruno Haible  <bruno@clisp.org>
29459
29460         Fix indentation of wctype.in.h, broken since 2007-01-06.
29461         * lib/wctype.in.h: Fix indentation of preprocessor directives.
29462
29463 2010-01-07  Bruno Haible  <bruno@clisp.org>
29464
29465         mbslen: Avoid collision with system function.
29466         * lib/string.in.h [MirBSD]: Include <wchar.h>.
29467         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
29468         * m4/mbslen.m4: New file.
29469         * modules/mbslen (Files): Add it.
29470         (configure.ac): Invoke gl_MBSLEN.
29471         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
29472         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
29473         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
29474         via Ian Beckwith <ianb@erislabs.net>.
29475
29476 2010-01-07  Bruno Haible  <bruno@clisp.org>
29477
29478         dirent: Document the last fix.
29479         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
29480
29481 2010-01-07  Bruno Haible  <bruno@clisp.org>
29482
29483         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
29484         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
29485         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
29486         va_list are defined.
29487         * doc/posix-headers/stdio.texi: Document the bug of missing types.
29488         Reported by Eric Blake.
29489
29490 2010-01-07  Bruno Haible  <bruno@clisp.org>
29491
29492         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
29493         * modules/xlist (Depends-on): Add 'list',
29494         * modules/xoset (Depends-on): Add 'oset'.
29495         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29496
29497 2010-01-07  Bruno Haible  <bruno@clisp.org>
29498
29499         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
29500         * doc/posix-functions/strncasecmp.texi: Likewise.
29501
29502 2010-01-07  Bruno Haible  <bruno@clisp.org>
29503
29504         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
29505
29506 2010-01-07  John W. Eaton  <jwe@octave.org>
29507
29508         wctype: allow C++ use
29509         * lib/wctype.in.h: Add extern "C" block for C++.
29510
29511 2010-01-06  Eric Blake  <ebb9@byu.net>
29512
29513         maint.mk: detect incorrect GFDL usage
29514         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
29515
29516 2010-01-06  Jim Meyering  <meyering@redhat.com>
29517         and Eric Blake  <ebb9@byu.net>
29518
29519         maint.mk: ignore multi-line copyright in NEWS
29520         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
29521
29522 2010-01-06  Eric Blake  <ebb9@byu.net>
29523
29524         select: add missing dependency
29525         * modules/select-tests (Depends-on): Move sockets dependency...
29526         * modules/select (Depends-on): ...here.
29527         Reported by Ian Beckwith.
29528
29529         doc: regenerate INSTALL
29530         * doc/INSTALL: Reflect recent autoconf update.
29531         * doc/INSTALL.ISO: Likewise.
29532         * doc/INSTALL.UTF-8: Likewise.
29533
29534         pread: fix compilation on glibc
29535         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
29536         Reported by Ralf Wildenhues.
29537
29538         dirent: fix test failure
29539         * lib/dirent.in.h (includes): Guarantee ino_t.
29540         Reported by Ralf Wildenhues.
29541
29542 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
29543
29544         linkat, renameat: avoid bad free
29545         * lib/at-func2.c (at_func2): Fix typo.
29546         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
29547
29548 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29549
29550         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
29551         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
29552         to avoid failure of symlink test later.
29553
29554 2010-01-06  Eric Blake  <ebb9@byu.net>
29555
29556         stdio, unistd: guarantee ssize_t
29557         * lib/unistd.in.h (includes): Ensure that types required by POSIX
29558         2008 are exposed when needed.
29559         * lib/stdio.in.h (includes): Likewise.
29560         Reported by Ralf Wildenhues.
29561
29562 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
29563
29564         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
29565         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
29566         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
29567
29568 2010-01-06  Jim Meyering  <meyering@redhat.com>
29569
29570         readtokens: this module *does* require xalloc.h
29571         It uses only functions that were omitted by the old syntax-check rule.
29572         * lib/readtokens.c: Include "xalloc.h" once again.
29573         * modules/readtokens (Depends-on): Add xalloc.
29574         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
29575
29576 2010-01-05  Eric Blake  <ebb9@byu.net>
29577
29578         maint: support 'make announcement' from a VPATH build
29579         * top/maint.mk (announcement): Look for correct NEWS file.
29580
29581 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
29582
29583         utimens (fdutimens): ignore a negative FD, per contract
29584         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
29585         when we have a valid file descriptor.  Otherwise, using a brand
29586         new glibc (with just-patched futimens that now fails with EBADF)
29587         would cause this function to fail with ENOSYS.
29588         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
29589         See also http://bugzilla.redhat.com/552320.
29590
29591 2010-01-05  Eric Blake  <ebb9@byu.net>
29592
29593         strcase: document what it provides
29594         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
29595         gnulib module.
29596         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
29597         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
29598
29599 2010-01-05  Jim Meyering  <meyering@redhat.com>
29600
29601         maint: remove useless inclusions of "xalloc.h"
29602         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
29603         * lib/readtokens.c: Likewise.
29604         * lib/same.c: Likewise.
29605         * modules/getloadavg (Depends-on): Remove xalloc.
29606         * modules/readtokens: Likewise.
29607         * modules/same: Likewise.
29608
29609         maint.mk: include 4 more function names in alloca.h-checking regexp
29610         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
29611         regexp.  Before, we would give a false-positive (saying alloca.h
29612         is included unnecessarily) when the only uses involved omitted symbols.
29613
29614         xalloc.h: use consistent formatting
29615         * lib/xalloc.h: Move declarations to start in the first column.
29616
29617 2010-01-05  Eric Blake  <ebb9@byu.net>
29618
29619         mkdir: avoid xalloc
29620         * lib/mkdir.c (includes): Drop unused header.
29621         Reported by John W. Eaton.
29622
29623 2010-01-04  Jim Meyering  <meyering@redhat.com>
29624
29625         nl_langinfo: avoid configure-time syntax error
29626         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
29627         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
29628         the empty string.  Don't let that provoke a shell syntax error.
29629
29630         regcomp, regexec, fnmatch: avoid array bounds read error
29631         * lib/regcomp.c (build_equiv_class): From glibc:
29632         Use only the low 24 bits of a findidx return value as an index
29633         into the weights array.  Patch by Ulrich Drepper:
29634         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
29635         * lib/regexec.c (check_node_accept_bytes): Likewise.
29636         * lib/fnmatch_loop.c (FCT): Likewise.
29637
29638         regcomp: skip collseq lookup when there are no rules
29639         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
29640         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
29641
29642         regcomp: recognize ill-formed { } expressions
29643         * lib/regcomp.c (parse_dup_op): From glibc:
29644         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
29645
29646         regcomp: fix typo in comment
29647         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
29648         s/satisfy/satisfies/.
29649
29650         regcomp: sync from glibc: remove dead store
29651         * lib/regcomp.c (duplicate_node_closure): Remove useless
29652         search_duplicated_node call and dead store.
29653
29654         regcomp: sync from glibc; always use nl_langinfo
29655         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
29656         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
29657         * modules/regex (Depends-on): Add nl_langinfo.
29658
29659 2010-01-04  Eric Blake  <ebb9@byu.net>
29660
29661         fdopendir: fix configure test
29662         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
29663
29664 2010-01-01  Bruno Haible  <bruno@clisp.org>
29665
29666         wchar: Remove unused configure check.
29667         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
29668
29669 2010-01-01  Eric Blake  <ebb9@byu.net>
29670
29671         headers: make check of system header explicit
29672         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
29673         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
29674         ourselves.
29675         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
29676         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29677         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
29678         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
29679         internals.
29680         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
29681         missing.
29682         Suggested by Bruno Haible.
29683
29684 2010-01-01  Jim Meyering  <meyering@redhat.com>
29685
29686         ChangeLog: tweak to eliminate unnecessary copyright line
29687         * ChangeLog: Remove a copyright line that was mistakenly updated
29688         by today's update-copyright run.  Reported by Eric Blake.
29689
29690         test-update-copyright: don't let envvar setting cause test failure
29691         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
29692
29693 2010-01-01  Bruno Haible  <bruno@clisp.org>
29694
29695         localename: Avoid gcc warning.
29696         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
29697         function if it is not used.
29698
29699 2010-01-01  Jim Meyering  <meyering@redhat.com>
29700
29701         update nearly all FSF copyright year lists to include 2010
29702         Use the same procedure as for 2009, outlined in
29703         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
29704
29705         version-etc: set COPYRIGHT_YEAR to 2010
29706         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
29707
29708 2009-12-31  Eric Blake  <ebb9@byu.net>
29709
29710         doc: correct availability of cygwin 1.5.x getopt
29711         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
29712         variables.
29713         * doc/posix-functions/opterr.texi (opterr): Likewise.
29714         * doc/posix-functions/optind.texi (optind): Likewise.
29715         * doc/posix-functions/optopt.texi (optopt): Likewise.
29716         * doc/posix-functions/tzname.texi (tzname): Likewise.
29717
29718         openat: update maintainer
29719         * modules/openat (Maintainer): Add myself.
29720
29721         utimens: avoid shadowing warning
29722         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
29723         buffers into one, to avoid shadowing, as well as avoiding a
29724         redundant stat.
29725         Reported by Jim Meyering.
29726
29727         test-dup2: avoid compiler warning
29728         * tests/test-dup2.c (is_inheritable): Only define if used.
29729
29730 2010-01-01  Bruno Haible  <bruno@clisp.org>
29731
29732         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
29733         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
29734         defined, use wctomb instead of wcrtomb.
29735
29736 2010-01-01  Bruno Haible  <bruno@clisp.org>
29737
29738         iconv: Reject native Solaris iconv.
29739         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
29740         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
29741
29742 2009-12-31  Bruno Haible  <bruno@clisp.org>
29743
29744         * tests/test-signal.c (main): Remove test of 'SIG'.
29745
29746 2009-12-31  Bruno Haible  <bruno@clisp.org>
29747
29748         spawn: Fix incomplete fix.
29749         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29750         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29751         warnings for GNULIB_POSIXCHECK again.
29752         Reported by Eric Blake.
29753
29754 2009-12-31  Bruno Haible  <bruno@clisp.org>
29755
29756         Avoid namespace pollution on glibc systems.
29757         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
29758         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
29759         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
29760         glibc systems.
29761
29762 2009-12-31  Bruno Haible  <bruno@clisp.org>
29763
29764         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
29765         (gl_REPLACE_WCHAR_H): Turn into a no-op.
29766         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
29767         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
29768         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
29769         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
29770         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
29771
29772 2009-12-31  Bruno Haible  <bruno@clisp.org>
29773
29774         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
29775         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
29776         afterwards.
29777
29778 2009-12-31  Bruno Haible  <bruno@clisp.org>
29779
29780         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
29781         SYS_UTSNAME_H.
29782
29783 2009-12-31  Bruno Haible  <bruno@clisp.org>
29784
29785         spawn: Fix misapplied patch.
29786         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29787         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29788         warnings for GNULIB_POSIXCHECK.
29789
29790 2009-12-31  Bruno Haible  <bruno@clisp.org>
29791
29792         times: Update after sys_times changed.
29793         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
29794         * modules/times (Files): Add it.
29795         (configure.ac): Invoke gl_FUNC_TIMES.
29796
29797 2009-12-31  Bruno Haible  <bruno@clisp.org>
29798
29799         Use AC_C_INLINE where necessary.
29800         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
29801         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
29802         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
29803         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
29804         * m4/mbfile.m4 (gl_MBFILE): Likewise.
29805         * m4/mbiter.m4 (gl_MBITER): Likewise.
29806         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
29807         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29808         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
29809         * modules/u64 (configure.ac): Likewise.
29810
29811 2009-12-31  Bruno Haible  <bruno@clisp.org>
29812
29813         Use AC_C_INLINE instead of module 'inline' where possible.
29814         * modules/inline (Description): Clarify purpose.
29815         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
29816         * modules/count-one-bits (Depends-on): Remove inline.
29817         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
29818         * modules/openat (Depends-on): Remove inline.
29819         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
29820         instead of depending on module 'inline'.
29821         * modules/filevercmp (Depends-on, configure.ac): Likewise.
29822         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
29823         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
29824         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
29825         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
29826         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
29827         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
29828         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
29829         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
29830         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
29831         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
29832         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
29833         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
29834         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
29835         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
29836         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
29837         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
29838         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
29839         Likewise.
29840         * modules/unictype/property-ascii-hex-digit (Depends-on,
29841         configure.ac): Likewise.
29842         * modules/unictype/property-bidi-arabic-digit (Depends-on,
29843         configure.ac): Likewise.
29844         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
29845         configure.ac): Likewise.
29846         * modules/unictype/property-bidi-block-separator (Depends-on,
29847         configure.ac): Likewise.
29848         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
29849         configure.ac): Likewise.
29850         * modules/unictype/property-bidi-common-separator (Depends-on,
29851         configure.ac): Likewise.
29852         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
29853         Likewise.
29854         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
29855         configure.ac): Likewise.
29856         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
29857         configure.ac): Likewise.
29858         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
29859         configure.ac): Likewise.
29860         * modules/unictype/property-bidi-european-digit (Depends-on,
29861         configure.ac): Likewise.
29862         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
29863         configure.ac): Likewise.
29864         * modules/unictype/property-bidi-left-to-right (Depends-on,
29865         configure.ac): Likewise.
29866         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
29867         configure.ac): Likewise.
29868         * modules/unictype/property-bidi-other-neutral (Depends-on,
29869         configure.ac): Likewise.
29870         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
29871         Likewise.
29872         * modules/unictype/property-bidi-segment-separator (Depends-on,
29873         configure.ac): Likewise.
29874         * modules/unictype/property-bidi-whitespace (Depends-on,
29875         configure.ac): Likewise.
29876         * modules/unictype/property-combining (Depends-on, configure.ac):
29877         Likewise.
29878         * modules/unictype/property-composite (Depends-on, configure.ac):
29879         Likewise.
29880         * modules/unictype/property-currency-symbol (Depends-on,
29881         configure.ac): Likewise.
29882         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
29883         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
29884         Likewise.
29885         * modules/unictype/property-default-ignorable-code-point (Depends-on,
29886         configure.ac): Likewise.
29887         * modules/unictype/property-deprecated (Depends-on, configure.ac):
29888         Likewise.
29889         * modules/unictype/property-diacritic (Depends-on, configure.ac):
29890         Likewise.
29891         * modules/unictype/property-extender (Depends-on, configure.ac):
29892         Likewise.
29893         * modules/unictype/property-format-control (Depends-on, configure.ac):
29894         Likewise.
29895         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
29896         Likewise.
29897         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
29898         Likewise.
29899         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
29900         Likewise.
29901         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
29902         Likewise.
29903         * modules/unictype/property-hyphen (Depends-on, configure.ac):
29904         Likewise.
29905         * modules/unictype/property-id-continue (Depends-on, configure.ac):
29906         Likewise.
29907         * modules/unictype/property-id-start (Depends-on, configure.ac):
29908         Likewise.
29909         * modules/unictype/property-ideographic (Depends-on, configure.ac):
29910         Likewise.
29911         * modules/unictype/property-ids-binary-operator (Depends-on,
29912         configure.ac): Likewise.
29913         * modules/unictype/property-ids-trinary-operator (Depends-on,
29914         configure.ac): Likewise.
29915         * modules/unictype/property-ignorable-control (Depends-on,
29916         configure.ac): Likewise.
29917         * modules/unictype/property-iso-control (Depends-on, configure.ac):
29918         Likewise.
29919         * modules/unictype/property-join-control (Depends-on, configure.ac):
29920         Likewise.
29921         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
29922         Likewise.
29923         * modules/unictype/property-line-separator (Depends-on, configure.ac):
29924         Likewise.
29925         * modules/unictype/property-logical-order-exception (Depends-on,
29926         configure.ac): Likewise.
29927         * modules/unictype/property-lowercase (Depends-on, configure.ac):
29928         Likewise.
29929         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
29930         * modules/unictype/property-non-break (Depends-on, configure.ac):
29931         Likewise.
29932         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
29933         Likewise.
29934         * modules/unictype/property-numeric (Depends-on, configure.ac):
29935         Likewise.
29936         * modules/unictype/property-other-alphabetic (Depends-on,
29937         configure.ac): Likewise.
29938         * modules/unictype/property-other-default-ignorable-code-point
29939         (Depends-on, configure.ac): Likewise.
29940         * modules/unictype/property-other-grapheme-extend (Depends-on,
29941         configure.ac): Likewise.
29942         * modules/unictype/property-other-id-continue (Depends-on,
29943         configure.ac): Likewise.
29944         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
29945         Likewise.
29946         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
29947         Likewise.
29948         * modules/unictype/property-other-math (Depends-on, configure.ac):
29949         Likewise.
29950         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
29951         Likewise.
29952         * modules/unictype/property-paired-punctuation (Depends-on,
29953         configure.ac): Likewise.
29954         * modules/unictype/property-paragraph-separator (Depends-on,
29955         configure.ac): Likewise.
29956         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
29957         Likewise.
29958         * modules/unictype/property-pattern-white-space (Depends-on,
29959         configure.ac): Likewise.
29960         * modules/unictype/property-private-use (Depends-on, configure.ac):
29961         Likewise.
29962         * modules/unictype/property-punctuation (Depends-on, configure.ac):
29963         Likewise.
29964         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
29965         Likewise.
29966         * modules/unictype/property-radical (Depends-on, configure.ac):
29967         Likewise.
29968         * modules/unictype/property-sentence-terminal (Depends-on,
29969         configure.ac): Likewise.
29970         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
29971         Likewise.
29972         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
29973         * modules/unictype/property-terminal-punctuation (Depends-on,
29974         configure.ac): Likewise.
29975         * modules/unictype/property-titlecase (Depends-on, configure.ac):
29976         Likewise.
29977         * modules/unictype/property-unassigned-code-value (Depends-on,
29978         configure.ac): Likewise.
29979         * modules/unictype/property-unified-ideograph (Depends-on,
29980         configure.ac): Likewise.
29981         * modules/unictype/property-uppercase (Depends-on, configure.ac):
29982         Likewise.
29983         * modules/unictype/property-variation-selector (Depends-on,
29984         configure.ac): Likewise.
29985         * modules/unictype/property-white-space (Depends-on, configure.ac):
29986         Likewise.
29987         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
29988         Likewise.
29989         * modules/unictype/property-xid-start (Depends-on, configure.ac):
29990         Likewise.
29991         * modules/unictype/property-zero-width (Depends-on, configure.ac):
29992         Likewise.
29993         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
29994         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
29995         Likewise.
29996
29997 2009-12-31  Bruno Haible  <bruno@clisp.org>
29998
29999         Remove unnecessary AC_C_INLINE invocation.
30000         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
30001         since 2009-08-21.
30002
30003 2009-12-31  Jim Meyering  <meyering@redhat.com>
30004
30005         maint.mk: don't require explicit gpg_key_ID in cfg.mk
30006         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
30007         With this change, we can all remove the gpg_key_ID = ... definition
30008         from our respective cfg.mk files.
30009
30010         maint.mk: create announcement template in ~/, not in /tmp
30011         * top/maint.mk (emit_upload_commands): Adjust.
30012         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
30013         Remove temporary file, .ci-msg.
30014
30015 2009-12-31  Eric Blake  <ebb9@byu.net>
30016
30017         link-warning: always build headers with link warnings
30018         * modules/arpa_inet (Makefile.am): Always build replacement
30019         header.
30020         * modules/ctype (Makefile.am): Likewise.
30021         * modules/dirent (Makefile.am): Likewise.
30022         * modules/inttypes (Makefile.am): Likewise.
30023         * modules/langinfo (Makefile.am): Likewise.
30024         * modules/locale (Makefile.am): Likewise.
30025         * modules/spawn (Makefile.am): Likewise.
30026         * modules/sys_file (Makefile.am): Likewise.
30027         * modules/sys_ioctl (Makefile.am): Likewise.
30028         * modules/sys_select (Makefile.am): Likewise.
30029         * modules/sys_socket (Makefile.am): Likewise.
30030         * modules/sys_times (Makefile.am): Likewise.
30031         * modules/sys_utsname (Makefile.am): Likewise.
30032         * modules/sys_wait (Makefile.am): Likewise.
30033         * modules/wchar (Makefile.am): Likewise.
30034         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
30035         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
30036         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
30037         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
30038         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
30039         Likewise.
30040         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
30041         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
30042         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
30043         Likewise.
30044         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
30045         Likewise.
30046         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
30047         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
30048         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
30049         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30050         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
30051         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
30052         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
30053         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
30054         (gl_WCHAR_H_DEFAULTS): Likewise.
30055
30056 2009-12-31  Eric Blake  <ebb9@byu.net>
30057
30058         signal, spawn: use link warnings
30059         * lib/signal.in.h (sigset_t): Make unconditional.
30060         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
30061         (sigpending, sigprocmask, sigaction): Add link warnings.
30062         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
30063         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
30064         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
30065         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
30066         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
30067         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
30068         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
30069         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
30070         (posix_spawn_file_actions_destroy)
30071         (posix_spawn_file_actions_addopen)
30072         (posix_spawn_file_actions_addclose)
30073         (posix_spawn_file_actions_adddup2): Likewise.
30074         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
30075         * tests/test-signal.c (main): Enhance test.
30076
30077         spawn: improve wrapper support
30078         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
30079         (gl_SPAWN_H_DEFAULTS): New defaults.
30080         * modules/spawn (Makefile.am): Substitute them.
30081         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
30082         Only declare if missing or broken.
30083
30084         sys_times, sys_utsname: use include_next
30085         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
30086         header.
30087         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
30088         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
30089         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
30090         * modules/sys_times (Depends-on): Add include_next.
30091         (Makefile.am): Substitute additional values.
30092         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
30093         * lib/sys_times.in.h (includes): Include native header, if
30094         available.
30095         * lib/sys_utsname.in.h (includes): Likewise.
30096         * tests/test-sys_times.c (main): Enhance test.
30097
30098         fdutimensat: revert prior patch
30099         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
30100         utimens.h.
30101         Reported by Bruno Haible.
30102
30103 2009-12-30  Eric Blake  <ebb9@byu.net>
30104
30105         sys_wait: drop link-warning dependency
30106         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
30107         link-warning efforts.
30108         * lib/sys_wait.in.h: Likewise.
30109
30110         fdutimensat: remove bogus dependency
30111         * modules/fdutimensat (Depends-on): Drop inline.
30112
30113         unistd: fix typo
30114         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
30115
30116 2009-12-30  Bruno Haible  <bruno@clisp.org>
30117
30118         Fix compilation error with Solaris cc.
30119         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
30120         * lib/unicase/u16-is-invariant.c: Likewise.
30121         * lib/unicase/u32-is-invariant.c: Likewise.
30122         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
30123
30124 2009-12-30  Bruno Haible  <bruno@clisp.org>
30125
30126         Fix test crash.
30127         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
30128         locales.
30129         Reported by Simon Josefsson <simon@josefsson.org>.
30130
30131 2009-12-30  Bruno Haible  <bruno@clisp.org>
30132
30133         Fix compilation error on most platforms.
30134         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
30135         Reported by Simon Josefsson <simon@josefsson.org>
30136         and Nelson H. F. Beebe <beebe@math.utah.edu>.
30137
30138 2009-12-30  Eric Blake  <ebb9@byu.net>
30139
30140         futimens, utimensat: work around ntfs-3g bug
30141         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
30142         a ctime bug is present, and expand workaround to cover ntfs-3g.
30143         * lib/utimens.c (fdutimens, lutimens): Likewise.
30144         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
30145         (validate_timespec): Adjust return value.
30146         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
30147         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
30148         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
30149
30150 2009-12-29  Eric Blake  <ebb9@byu.net>
30151
30152         link-warning: make usage consistent
30153         * modules/ctype (Depends-on): Add link-warning.
30154         (Makefile.am): Update rules accordingly.
30155         * modules/langinfo (Depends-on, Makefile.am): Likewise.
30156         * modules/locale (Depends-on, Makefile.am): Likewise.
30157         * modules/sys_file (Makefile.am): Likewise.
30158         * modules/getopt-posix (Makefile.am): Delete unused link warning
30159         efforts.
30160         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
30161         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
30162         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
30163         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
30164
30165         stdio: remove unused variables
30166         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
30167         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
30168         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
30169
30170         tests: test more substitute headers
30171         * modules/ctype-tests: New file.
30172         * modules/dirent-tests: Likewise.
30173         * modules/spawn-tests: Likewise.
30174         * modules/sys_file-tests: Likewise.
30175         * modules/sys_ioctl-tests: Likewise.
30176         * modules/sys_wait-tests: Likewise.
30177         * tests/test-ctype.c: Likewise.
30178         * tests/test-dirent.c: Likewise.
30179         * tests/test-spawn.c: Likewise.
30180         * tests/test-sys_file.c: Likewise.
30181         * tests/test-sys_ioctl.c: Likewise.
30182         * tests/test-sys_wait.c: Likewise.
30183         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
30184         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
30185         whether or not flock is in use.
30186
30187         tests: remove License section from module
30188         * modules/arpa_inet-tests: Remove unneeded section.
30189         * modules/byteswap-tests: Likewise.
30190         * modules/ceilf-tests: Likewise.
30191         * modules/ceill-tests: Likewise.
30192         * modules/crypto/des-tests: Likewise.
30193         * modules/crypto/gc-arcfour-tests: Likewise.
30194         * modules/crypto/gc-arctwo-tests: Likewise.
30195         * modules/crypto/gc-des-tests: Likewise.
30196         * modules/crypto/gc-hmac-md5-tests: Likewise.
30197         * modules/crypto/gc-hmac-sha1-tests: Likewise.
30198         * modules/crypto/gc-md2-tests: Likewise.
30199         * modules/crypto/gc-md4-tests: Likewise.
30200         * modules/crypto/gc-md5-tests: Likewise.
30201         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
30202         * modules/crypto/gc-rijndael-tests: Likewise.
30203         * modules/crypto/gc-sha1-tests: Likewise.
30204         * modules/crypto/gc-tests: Likewise.
30205         * modules/crypto/md2-tests: Likewise.
30206         * modules/crypto/md4-tests: Likewise.
30207         * modules/fcntl-h-tests: Likewise.
30208         * modules/floorf-tests: Likewise.
30209         * modules/floorl-tests: Likewise.
30210         * modules/frexp-nolibm-tests: Likewise.
30211         * modules/frexp-tests: Likewise.
30212         * modules/frexpl-nolibm-tests: Likewise.
30213         * modules/frexpl-tests: Likewise.
30214         * modules/getaddrinfo-tests: Likewise.
30215         * modules/inttypes-tests: Likewise.
30216         * modules/isfinite-tests: Likewise.
30217         * modules/isinf-tests: Likewise.
30218         * modules/ldexpl-tests: Likewise.
30219         * modules/locale-tests: Likewise.
30220         * modules/math-tests: Likewise.
30221         * modules/netdb-tests: Likewise.
30222         * modules/netinet_in-tests: Likewise.
30223         * modules/printf-frexp-tests: Likewise.
30224         * modules/printf-frexpl-tests: Likewise.
30225         * modules/priv-set-tests: Likewise.
30226         * modules/random_r-tests: Likewise.
30227         * modules/round-tests: Likewise.
30228         * modules/roundf-tests: Likewise.
30229         * modules/roundl-tests: Likewise.
30230         * modules/search-tests: Likewise.
30231         * modules/select-tests: Likewise.
30232         * modules/signal-tests: Likewise.
30233         * modules/stdbool-tests: Likewise.
30234         * modules/stddef-tests: Likewise.
30235         * modules/stdint-tests: Likewise.
30236         * modules/stdio-tests: Likewise.
30237         * modules/stdlib-tests: Likewise.
30238         * modules/string-tests: Likewise.
30239         * modules/strings-tests: Likewise.
30240         * modules/sys_select-tests: Likewise.
30241         * modules/sys_socket-tests: Likewise.
30242         * modules/sys_stat-tests: Likewise.
30243         * modules/sys_time-tests: Likewise.
30244         * modules/sys_utsname-tests: Likewise.
30245         * modules/sysexits-tests: Likewise.
30246         * modules/time-tests: Likewise.
30247         * modules/trunc-tests: Likewise.
30248         * modules/truncf-tests: Likewise.
30249         * modules/truncl-tests: Likewise.
30250         * modules/tsearch-tests: Likewise.
30251         * modules/unistd-tests: Likewise.
30252         * modules/wchar-tests: Likewise.
30253         * modules/wctype-tests: Likewise.
30254
30255         tests: fix license on several tests
30256         * tests/test-des.c: Update to GPLv3+.
30257         * tests/test-flock.c: Likewise.
30258         * tests/test-fsync.c: Likewise.
30259         * tests/test-futimens.h: Likewise.
30260         * tests/test-gc-arcfour.c: Likewise.
30261         * tests/test-gc-arctwo.c: Likewise.
30262         * tests/test-gc-des.c: Likewise.
30263         * tests/test-gc-hmac-md5.c: Likewise.
30264         * tests/test-gc-hmac-sha1.c: Likewise.
30265         * tests/test-gc-md2.c: Likewise.
30266         * tests/test-gc-md4.c: Likewise.
30267         * tests/test-gc-md5.c: Likewise.
30268         * tests/test-gc-pbkdf2-sha1.c: Likewise.
30269         * tests/test-gc-rijndael.c: Likewise.
30270         * tests/test-gc-sha1.c: Likewise.
30271         * tests/test-gc.c: Likewise.
30272         * tests/test-getcwd.c: Likewise.
30273         * tests/test-link.c: Likewise.
30274         * tests/test-link.h: Likewise.
30275         * tests/test-lutimens.h: Likewise.
30276         * tests/test-md2.c: Likewise.
30277         * tests/test-md4.c: Likewise.
30278         * tests/test-mkdir.h: Likewise.
30279         * tests/test-rename.c: Likewise.
30280         * tests/test-rename.h: Likewise.
30281         * tests/test-safe-alloc.c: Likewise.
30282         * tests/test-utimens-common.h: Likewise.
30283         * tests/test-utimens.h: Likewise.
30284
30285         maint: sync license texts
30286         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
30287         * doc/gpl-3.0.texi: Revert copyright year update.
30288         * doc/lgpl-3.0.texi: Likewise.
30289
30290 2009-12-29  Jim Meyering  <meyering@redhat.com>
30291
30292         update nearly all FSF copyright year lists to include 2009
30293         The files named by the following are exempted:
30294             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
30295               test -f "$dst" && { echo "$dst"; continue; }
30296               test -d "$dst" || continue
30297               echo "$dst"/$(basename "$src")
30298             done > exempt
30299             git ls-files tests/unictype >> exempt
30300         In the remaining files, convert to all-interval notation if
30301         - there is already at least one year interval like 2000-2003
30302         - the file is maintained by me
30303         - the file is in lib/uni*/, where that style already prevails
30304         Otherwise, use update-copyright's default.
30305
30306 2009-12-29  Simon Josefsson  <simon@josefsson.org>
30307         and Eric Blake  <ebb9@byu.net>
30308
30309         tests: don't require debug system() to pass
30310         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
30311         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30312         * tests/test-unlink.h (test_unlink_func): Likewise.
30313         * tests/test-fstatat.c (main): ...into callers.
30314         * tests/test-lstat.c (main): Likewise.
30315         * tests/test-rmdir.c (main): Likewise.
30316         * tests/test-unlink.c (main): Likewise.
30317         * tests/test-unlinkat.c (main): Likewise.
30318         * tests/test-areadlink-with-size.c (main): Don't require a
30319         debug-only system call to pass, aiding cross-testing to mingw.
30320         * tests/test-areadlink.c (main): Likewise.
30321         * tests/test-areadlinkat-with-size.c (main): Likewise.
30322         * tests/test-areadlinkat.c (main): Likewise.
30323         * tests/test-canonicalize-lgpl.c (main): Likewise.
30324         * tests/test-canonicalize.c (main): Likewise.
30325         * tests/test-chown.c (main): Likewise.
30326         * tests/test-fchownat.c (main): Likewise.
30327         * tests/test-lchown.c (main): Likewise.
30328         * tests/test-fdutimensat.c (main): Likewise.
30329         * tests/test-futimens.c (main): Likewise.
30330         * tests/test-link.c (main): Likewise.
30331         * tests/test-linkat.c (main): Likewise.
30332         * tests/test-mkdir.c (main): Likewise.
30333         * tests/test-mkdirat.c (main): Likewise.
30334         * tests/test-mkfifo.c (main): Likewise.
30335         * tests/test-mkfifoat.c (main): Likewise.
30336         * tests/test-mknod.c (main): Likewise.
30337         * tests/test-readlink.c (main): Likewise.
30338         * tests/test-remove.c (main): Likewise.
30339         * tests/test-rename.c (main): Likewise.
30340         * tests/test-renameat.c (main): Likewise.
30341         * tests/test-symlink.c (main): Likewise.
30342         * tests/test-symlinkat.c (main): Likewise.
30343         * tests/test-utimens.c (main): Likewise.
30344         * tests/test-utimensat.c (main): Likewise.
30345
30346 2009-12-29  Simon Josefsson  <simon@josefsson.org>
30347
30348         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
30349         on $(UNUSED_PARAMETER_H) to avoid build failure.
30350
30351 2009-12-28  Jim Meyering  <meyering@redhat.com>
30352
30353         update-copyright: you may specify a max. line length other than 72
30354         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
30355
30356         maint: use consistent FSF copyright line syntax
30357         * lib/posixtm.c: Add missing comma in FSF copyright line.
30358         * lib/posixtm.h: Likewise.
30359         * lib/getugroups.c: Add missing ", Inc.".
30360
30361         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
30362         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
30363         FSF copyright line.  Remove trailing blanks.
30364
30365 2009-12-28  Eric Blake  <ebb9@byu.net>
30366
30367         test-dup2: reduce dependencies
30368         * modules/cloexec (Configure.ac): Set witness.
30369         * modules/dup2-tests (Depends-on): Drop cloexec.
30370         * tests/test-dup2.c (main): Skip portion of test if cloexec module
30371         not present.
30372         Suggested by Bruno Haible.
30373
30374 2009-12-26  Bruno Haible  <bruno@clisp.org>
30375
30376         Remove an unneeded dependency.
30377         * modules/fseterr (Depends-on): Remove dup2.
30378
30379 2009-12-26  Eric Blake  <ebb9@byu.net>
30380
30381         tests: use macros.h in more places
30382         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
30383         (ASSERT_STREAM): Provide default of stderr.
30384         * tests/test-dirent-safer.c: Include macros.h, using alternate
30385         stream for assertions.
30386         * tests/test-dup-safer.c: Likewise.
30387         * tests/test-freopen-safer.c: Likewise.
30388         * tests/test-getopt.c: Likewise.
30389         * tests/test-openat-safer.c: Likewise.
30390         * tests/test-pipe.c: Likewise.
30391         * tests/test-popen-safer.c: Likewise.
30392         * modules/dirent-safer-tests (Files): Include macros.h.
30393         * modules/unistd-safer-tests (Files): Likewise.
30394         * modules/freopen-safer-tests (Files): Likewise.
30395         * modules/getopt-posix-tests (Files): Likewise.
30396         * modules/openat-safer-tests (Files): Likewise.
30397         * modules/pipe-tests (Files): Likewise.
30398
30399 2009-12-26  Bruno Haible  <bruno@clisp.org>
30400
30401         javacomp: Portability fix.
30402         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
30403         that it also works on Solaris.
30404
30405 2009-12-26  Bruno Haible  <bruno@clisp.org>
30406
30407         localename: Fix storage allocation of gl_locale_name_thread's result.
30408         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
30409         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
30410         all platforms that have 'uselocale'.
30411         (gl_locale_name_thread_unsafe): New function, extracted from
30412         gl_locale_name_thread.
30413         (gl_locale_name_thread): Call struniq on all platforms that have
30414         'uselocale'.
30415         * tests/test-localename.c (test_locale_name_thread): Check that the
30416         resulting strings are permanently allocated.
30417         * modules/localename-tests (Depends-on): Add strdup.
30418
30419 2009-12-26  Bruno Haible  <bruno@clisp.org>
30420
30421         * tests/test-localename.c (categories): Fill in the strings.
30422
30423 2009-12-26  Jim Meyering  <meyering@redhat.com>
30424
30425         isdir: complete the removal of m4/isdir.m4
30426         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
30427
30428         isdir: clean up, since at least grep still uses it
30429         * lib/isdir.c: Include "isdir.h".
30430         (S_ISDIR): Remove now-unneeded definition.
30431         * modules/isdir (Files): Add lib/isdir.h.
30432         * lib/isdir.h: New file, with declaration.
30433         * m4/isdir.m4: Remove file -- unneeded.
30434
30435 2009-12-25  Bruno Haible  <bruno@clisp.org>
30436
30437         selinux-h: Make generated .h files standalone.
30438         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
30439         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
30440         * lib/se-selinux.in.h: Likewise.
30441         * modules/selinux-h (Depends-on): Add unused-parameter.
30442         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
30443         selinux/selinux.h and selinux/context.h.
30444         Suggested by Eric Blake.
30445
30446 2009-12-25  Bruno Haible  <bruno@clisp.org>
30447
30448         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
30449         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
30450         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
30451         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
30452         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
30453
30454 2009-12-24  Bruno Haible  <bruno@clisp.org>
30455
30456         openat: Fix warning.
30457         * lib/openat-proc.c: Include <unistd.h>.
30458
30459 2009-12-24  Bruno Haible  <bruno@clisp.org>
30460
30461         New module 'unused-parameter'.
30462         * build-aux/unused-parameter.h: New file, extracted from earlier
30463         gnulib-common.m4.
30464         * modules/unused-parameter: New file.
30465         * lib/unistr.h: Include unused-parameter.h.
30466         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
30467         _GL_UNUSED.
30468         * modules/unistr/base (Depends-on): Add unused-parameter.
30469
30470 2009-12-24  Bruno Haible  <bruno@clisp.org>
30471
30472         Add missing dependencies to 'extensions' module.
30473         * m4/extensions.m4: Add comment.
30474         * modules/accept4 (Depends-on): Add extensions.
30475         * modules/dup3 (Depends-on): Likewise.
30476         * modules/fcntl (Depends-on): Likewise.
30477         * modules/futimens (Depends-on): Likewise.
30478         * modules/mknod (Depends-on): Likewise.
30479         * modules/pipe2 (Depends-on): Likewise.
30480         * modules/stat-time (Depends-on): Likewise.
30481         * modules/strcasestr-simple (Depends-on): Likewise.
30482         * modules/strsignal (Depends-on): Likewise.
30483         * modules/utimensat (Depends-on): Likewise.
30484         * modules/localcharset (Depends-on): Likewise. Needed because of
30485         gl_FCNTL_O_FLAGS.
30486         * modules/wcrtomb (Depends-on): Likewise. Needed because of
30487         AC_TYPE_MBSTATE_T.
30488         * modules/wcsnrtombs (Depends-on): Likewise.
30489         * modules/wcsrtombs (Depends-on): Likewise.
30490
30491 2009-12-24  Bruno Haible  <bruno@clisp.org>
30492
30493         binary-io: Avoid gcc warning due to SET_BINARY.
30494         * lib/binary-io.h (SET_BINARY): Cast the result to void.
30495         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
30496
30497 2009-12-24  Bruno Haible  <bruno@clisp.org>
30498
30499         Avoid future namespace pollution on glibc systems.
30500         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
30501         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
30502         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
30503         glibc systems.
30504
30505 2009-12-24  Bruno Haible  <bruno@clisp.org>
30506
30507         Refactor common macros used in tests.
30508         * tests/macros.h: New file.
30509         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
30510         and/or <stdlib.h>, if appropriate.
30511         (ASSERT, SIZEOF): Remove macros.
30512         * tests/test-areadlink-with-size.c: Likewise.
30513         * tests/test-areadlinkat.c: Likewise.
30514         * tests/test-areadlinkat-with-size.c: Likewise.
30515         * tests/test-argmatch.c: Likewise.
30516         * tests/test-argv-iter.c: Likewise.
30517         * tests/test-array-mergesort.c: Likewise.
30518         * tests/test-array_list.c: Likewise.
30519         * tests/test-array_oset.c: Likewise.
30520         * tests/test-avltree_list.c: Likewise.
30521         * tests/test-avltree_oset.c: Likewise.
30522         * tests/test-avltreehash_list.c: Likewise.
30523         * tests/test-base64.c: Likewise.
30524         * tests/test-binary-io.c: Likewise.
30525         * tests/test-bitrotate.c: Likewise.
30526         * tests/test-btowc.c: Likewise.
30527         * tests/test-byteswap.c: Likewise.
30528         * tests/test-c-ctype.c: Likewise.
30529         * tests/test-c-stack.c: Likewise.
30530         * tests/test-c-strcasecmp.c: Likewise.
30531         * tests/test-c-strcasestr.c: Likewise.
30532         * tests/test-c-strncasecmp.c: Likewise.
30533         * tests/test-c-strstr.c: Likewise.
30534         * tests/test-canonicalize-lgpl.c: Likewise.
30535         * tests/test-canonicalize.c: Likewise.
30536         * tests/test-carray_list.c: Likewise.
30537         * tests/test-ceilf1.c: Likewise.
30538         * tests/test-ceilf2.c: Likewise.
30539         * tests/test-ceill.c: Likewise.
30540         * tests/test-chown.c: Likewise.
30541         * tests/test-cloexec.c: Likewise.
30542         * tests/test-copy-acl.c: Likewise.
30543         * tests/test-copy-file.c: Likewise.
30544         * tests/test-count-one-bits.c: Likewise.
30545         * tests/test-dprintf-posix.c: Likewise.
30546         * tests/test-dup2.c: Likewise.
30547         * tests/test-dup3.c: Likewise.
30548         * tests/test-duplocale.c: Likewise.
30549         * tests/test-fbufmode.c: Likewise.
30550         * tests/test-fchdir.c: Likewise.
30551         * tests/test-fchownat.c: Likewise.
30552         * tests/test-fcntl-safer.c: Likewise.
30553         * tests/test-fcntl.c: Likewise.
30554         * tests/test-fdopendir.c: Likewise.
30555         * tests/test-fdutimensat.c: Likewise.
30556         * tests/test-fflush2.c: Likewise.
30557         * tests/test-file-has-acl.c: Likewise.
30558         * tests/test-filevercmp.c: Likewise.
30559         * tests/test-flock.c: Likewise.
30560         * tests/test-floorf1.c: Likewise.
30561         * tests/test-floorf2.c: Likewise.
30562         * tests/test-floorl.c: Likewise.
30563         * tests/test-fnmatch.c: Likewise.
30564         * tests/test-fopen.h: Likewise.
30565         * tests/test-fpending.c: Likewise.
30566         * tests/test-fprintf-posix.c: Likewise.
30567         * tests/test-fpurge.c: Likewise.
30568         * tests/test-freadable.c: Likewise.
30569         * tests/test-freadahead.c: Likewise.
30570         * tests/test-freading.c: Likewise.
30571         * tests/test-freadptr.c: Likewise.
30572         * tests/test-freadptr2.c: Likewise.
30573         * tests/test-freadseek.c: Likewise.
30574         * tests/test-freopen.c: Likewise.
30575         * tests/test-frexp.c: Likewise.
30576         * tests/test-frexpl.c: Likewise.
30577         * tests/test-fseek.c: Likewise.
30578         * tests/test-fseeko.c: Likewise.
30579         * tests/test-fstatat.c: Likewise.
30580         * tests/test-fstrcmp.c: Likewise.
30581         * tests/test-fsync.c: Likewise.
30582         * tests/test-ftell.c: Likewise.
30583         * tests/test-ftello.c: Likewise.
30584         * tests/test-func.c: Likewise.
30585         * tests/test-futimens.c: Likewise.
30586         * tests/test-fwritable.c: Likewise.
30587         * tests/test-fwriting.c: Likewise.
30588         * tests/test-getcwd.c: Likewise.
30589         * tests/test-getdate.c: Likewise.
30590         * tests/test-getdelim.c: Likewise.
30591         * tests/test-getdtablesize.c: Likewise.
30592         * tests/test-getgroups.c: Likewise.
30593         * tests/test-getline.c: Likewise.
30594         * tests/test-getndelim2.c: Likewise.
30595         * tests/test-glob.c: Likewise.
30596         * tests/test-hash.c: Likewise.
30597         * tests/test-i-ring.c: Likewise.
30598         * tests/test-iconv-utf.c: Likewise.
30599         * tests/test-iconv.c: Likewise.
30600         * tests/test-idpriv-drop.c: Likewise.
30601         * tests/test-idpriv-droptemp.c: Likewise.
30602         * tests/test-inet_ntop.c: Likewise.
30603         * tests/test-inet_pton.c: Likewise.
30604         * tests/test-isblank.c: Likewise.
30605         * tests/test-isfinite.c: Likewise.
30606         * tests/test-isinf.c: Likewise.
30607         * tests/test-isnan.c: Likewise.
30608         * tests/test-isnand.h: Likewise.
30609         * tests/test-isnanf.h: Likewise.
30610         * tests/test-isnanl.h: Likewise.
30611         * tests/test-lchown.c: Likewise.
30612         * tests/test-ldexpl.c: Likewise.
30613         * tests/test-link.c: Likewise.
30614         * tests/test-linkat.c: Likewise.
30615         * tests/test-linked_list.c: Likewise.
30616         * tests/test-linkedhash_list.c: Likewise.
30617         * tests/test-localename.c: Likewise.
30618         * tests/test-lseek.c: Likewise.
30619         * tests/test-lstat.c: Likewise.
30620         * tests/test-mbmemcasecmp.c: Likewise.
30621         * tests/test-mbmemcasecoll.c: Likewise.
30622         * tests/test-mbrtowc.c: Likewise.
30623         * tests/test-mbscasecmp.c: Likewise.
30624         * tests/test-mbscasestr1.c: Likewise.
30625         * tests/test-mbscasestr2.c: Likewise.
30626         * tests/test-mbscasestr3.c: Likewise.
30627         * tests/test-mbscasestr4.c: Likewise.
30628         * tests/test-mbschr.c: Likewise.
30629         * tests/test-mbscspn.c: Likewise.
30630         * tests/test-mbsinit.c: Likewise.
30631         * tests/test-mbsncasecmp.c: Likewise.
30632         * tests/test-mbsnrtowcs.c: Likewise.
30633         * tests/test-mbspbrk.c: Likewise.
30634         * tests/test-mbspcasecmp.c: Likewise.
30635         * tests/test-mbsrchr.c: Likewise.
30636         * tests/test-mbsrtowcs.c: Likewise.
30637         * tests/test-mbsspn.c: Likewise.
30638         * tests/test-mbsstr1.c: Likewise.
30639         * tests/test-mbsstr2.c: Likewise.
30640         * tests/test-mbsstr3.c: Likewise.
30641         * tests/test-memchr.c: Likewise.
30642         * tests/test-memchr2.c: Likewise.
30643         * tests/test-memcmp.c: Likewise.
30644         * tests/test-memmem.c: Likewise.
30645         * tests/test-memrchr.c: Likewise.
30646         * tests/test-mkdir.c: Likewise.
30647         * tests/test-mkdirat.c: Likewise.
30648         * tests/test-mkfifo.c: Likewise.
30649         * tests/test-mkfifoat.c: Likewise.
30650         * tests/test-mknod.c: Likewise.
30651         * tests/test-nanosleep.c: Likewise.
30652         * tests/test-nl_langinfo.c: Likewise.
30653         * tests/test-obstack-printf.c: Likewise.
30654         * tests/test-open.c: Likewise.
30655         * tests/test-openat.c: Likewise.
30656         * tests/test-pipe-filter-gi1.c: Likewise.
30657         * tests/test-pipe-filter-gi2-main.c: Likewise.
30658         * tests/test-pipe-filter-ii1.c: Likewise.
30659         * tests/test-pipe-filter-ii2-main.c: Likewise.
30660         * tests/test-pipe2.c: Likewise.
30661         * tests/test-popen.h: Likewise.
30662         * tests/test-posixtm.c: Likewise.
30663         * tests/test-pread.c: Likewise.
30664         * tests/test-printf-frexp.c: Likewise.
30665         * tests/test-printf-frexpl.c: Likewise.
30666         * tests/test-printf-posix.c: Likewise.
30667         * tests/test-priv-set.c: Likewise.
30668         * tests/test-quotearg.c: Likewise.
30669         * tests/test-random_r.c: Likewise.
30670         * tests/test-rawmemchr.c: Likewise.
30671         * tests/test-rbtree_list.c: Likewise.
30672         * tests/test-rbtree_oset.c: Likewise.
30673         * tests/test-rbtreehash_list.c: Likewise.
30674         * tests/test-readlink.c: Likewise.
30675         * tests/test-remove.c: Likewise.
30676         * tests/test-rename.c: Likewise.
30677         * tests/test-renameat.c: Likewise.
30678         * tests/test-rmdir.c: Likewise.
30679         * tests/test-round1.c: Likewise.
30680         * tests/test-roundf1.c: Likewise.
30681         * tests/test-roundl.c: Likewise.
30682         * tests/test-safe-alloc.c: Likewise.
30683         * tests/test-sameacls.c: Likewise.
30684         * tests/test-set-mode-acl.c: Likewise.
30685         * tests/test-setenv.c: Likewise.
30686         * tests/test-sigaction.c: Likewise.
30687         * tests/test-signbit.c: Likewise.
30688         * tests/test-sleep.c: Likewise.
30689         * tests/test-snprintf-posix.c: Likewise.
30690         * tests/test-snprintf.c: Likewise.
30691         * tests/test-sprintf-posix.c: Likewise.
30692         * tests/test-stat-time.c: Likewise.
30693         * tests/test-stat.c: Likewise.
30694         * tests/test-strcasestr.c: Likewise.
30695         * tests/test-strchrnul.c: Likewise.
30696         * tests/test-strerror.c: Likewise.
30697         * tests/test-striconv.c: Likewise.
30698         * tests/test-striconveh.c: Likewise.
30699         * tests/test-striconveha.c: Likewise.
30700         * tests/test-strsignal.c: Likewise.
30701         * tests/test-strstr.c: Likewise.
30702         * tests/test-strtod.c: Likewise.
30703         * tests/test-strverscmp.c: Likewise.
30704         * tests/test-symlink.c: Likewise.
30705         * tests/test-symlinkat.c: Likewise.
30706         * tests/test-trunc1.c: Likewise.
30707         * tests/test-trunc2.c: Likewise.
30708         * tests/test-truncf1.c: Likewise.
30709         * tests/test-truncf2.c: Likewise.
30710         * tests/test-truncl.c: Likewise.
30711         * tests/test-uname.c: Likewise.
30712         * tests/test-unlink.c: Likewise.
30713         * tests/test-unlinkat.c: Likewise.
30714         * tests/test-unsetenv.c: Likewise.
30715         * tests/test-usleep.c: Likewise.
30716         * tests/test-utimens.c: Likewise.
30717         * tests/test-utimensat.c: Likewise.
30718         * tests/test-vasnprintf-posix.c: Likewise.
30719         * tests/test-vasnprintf-posix2.c: Likewise.
30720         * tests/test-vasnprintf.c: Likewise.
30721         * tests/test-vasprintf-posix.c: Likewise.
30722         * tests/test-vasprintf.c: Likewise.
30723         * tests/test-vdprintf-posix.c: Likewise.
30724         * tests/test-vfprintf-posix.c: Likewise.
30725         * tests/test-vprintf-posix.c: Likewise.
30726         * tests/test-vsnprintf-posix.c: Likewise.
30727         * tests/test-vsnprintf.c: Likewise.
30728         * tests/test-vsprintf-posix.c: Likewise.
30729         * tests/test-wcrtomb.c: Likewise.
30730         * tests/test-wcsnrtombs.c: Likewise.
30731         * tests/test-wcsrtombs.c: Likewise.
30732         * tests/test-wctype.c: Likewise.
30733         * tests/test-wcwidth.c: Likewise.
30734         * tests/test-xfprintf-posix.c: Likewise.
30735         * tests/test-xmemdup0.c: Likewise.
30736         * tests/test-xprintf-posix.c: Likewise.
30737         * tests/test-xvasprintf.c: Likewise.
30738         * tests/unicase/test-locale-language.c: Likewise.
30739         * tests/unicase/test-mapping-part1.h: Likewise.
30740         * tests/unicase/test-predicate-part1.h: Likewise.
30741         * tests/unicase/test-u8-casecmp.c: Likewise.
30742         * tests/unicase/test-u8-casecoll.c: Likewise.
30743         * tests/unicase/test-u8-casefold.c: Likewise.
30744         * tests/unicase/test-u8-is-cased.c: Likewise.
30745         * tests/unicase/test-u8-is-casefolded.c: Likewise.
30746         * tests/unicase/test-u8-is-lowercase.c: Likewise.
30747         * tests/unicase/test-u8-is-titlecase.c: Likewise.
30748         * tests/unicase/test-u8-is-uppercase.c: Likewise.
30749         * tests/unicase/test-u8-tolower.c: Likewise.
30750         * tests/unicase/test-u8-totitle.c: Likewise.
30751         * tests/unicase/test-u8-toupper.c: Likewise.
30752         * tests/unicase/test-u16-casecmp.c: Likewise.
30753         * tests/unicase/test-u16-casecoll.c: Likewise.
30754         * tests/unicase/test-u16-casefold.c: Likewise.
30755         * tests/unicase/test-u16-is-cased.c: Likewise.
30756         * tests/unicase/test-u16-is-casefolded.c: Likewise.
30757         * tests/unicase/test-u16-is-lowercase.c: Likewise.
30758         * tests/unicase/test-u16-is-titlecase.c: Likewise.
30759         * tests/unicase/test-u16-is-uppercase.c: Likewise.
30760         * tests/unicase/test-u16-tolower.c: Likewise.
30761         * tests/unicase/test-u16-totitle.c: Likewise.
30762         * tests/unicase/test-u16-toupper.c: Likewise.
30763         * tests/unicase/test-u32-casecmp.c: Likewise.
30764         * tests/unicase/test-u32-casecoll.c: Likewise.
30765         * tests/unicase/test-u32-casefold.c: Likewise.
30766         * tests/unicase/test-u32-is-cased.c: Likewise.
30767         * tests/unicase/test-u32-is-casefolded.c: Likewise.
30768         * tests/unicase/test-u32-is-lowercase.c: Likewise.
30769         * tests/unicase/test-u32-is-titlecase.c: Likewise.
30770         * tests/unicase/test-u32-is-uppercase.c: Likewise.
30771         * tests/unicase/test-u32-tolower.c: Likewise.
30772         * tests/unicase/test-u32-totitle.c: Likewise.
30773         * tests/unicase/test-u32-toupper.c: Likewise.
30774         * tests/unicase/test-ulc-casecmp.c: Likewise.
30775         * tests/unicase/test-ulc-casecoll.c: Likewise.
30776         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30777         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
30778         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30779         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30780         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
30781         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
30782         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30783         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30784         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30785         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
30786         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30787         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30788         * tests/unictype/test-bidi_byname.c: Likewise.
30789         * tests/unictype/test-bidi_name.c: Likewise.
30790         * tests/unictype/test-bidi_of.c: Likewise.
30791         * tests/unictype/test-bidi_test.c: Likewise.
30792         * tests/unictype/test-block_list.c: Likewise.
30793         * tests/unictype/test-block_of.c: Likewise.
30794         * tests/unictype/test-block_test.c: Likewise.
30795         * tests/unictype/test-categ_and.c: Likewise.
30796         * tests/unictype/test-categ_and_not.c: Likewise.
30797         * tests/unictype/test-categ_byname.c: Likewise.
30798         * tests/unictype/test-categ_name.c: Likewise.
30799         * tests/unictype/test-categ_none.c: Likewise.
30800         * tests/unictype/test-categ_of.c: Likewise.
30801         * tests/unictype/test-categ_or.c: Likewise.
30802         * tests/unictype/test-categ_test_withtable.c: Likewise.
30803         * tests/unictype/test-combining.c: Likewise.
30804         * tests/unictype/test-decdigit.c: Likewise.
30805         * tests/unictype/test-digit.c: Likewise.
30806         * tests/unictype/test-mirror.c: Likewise.
30807         * tests/unictype/test-numeric.c: Likewise.
30808         * tests/unictype/test-pr_byname.c: Likewise.
30809         * tests/unictype/test-pr_test.c: Likewise.
30810         * tests/unictype/test-predicate-part1.h: Likewise.
30811         * tests/unictype/test-scripts.c: Likewise.
30812         * tests/unictype/test-sy_c_ident.c: Likewise.
30813         * tests/unictype/test-sy_java_ident.c: Likewise.
30814         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
30815         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
30816         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
30817         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
30818         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
30819         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
30820         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
30821         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
30822         * tests/uninorm/test-canonical-decomposition.c: Likewise.
30823         * tests/uninorm/test-compat-decomposition.c: Likewise.
30824         * tests/uninorm/test-composition.c: Likewise.
30825         * tests/uninorm/test-decomposing-form.c: Likewise.
30826         * tests/uninorm/test-decomposition.c: Likewise.
30827         * tests/uninorm/test-u8-nfc.c: Likewise.
30828         * tests/uninorm/test-u8-nfd.c: Likewise.
30829         * tests/uninorm/test-u8-nfkc.c: Likewise.
30830         * tests/uninorm/test-u8-nfkd.c: Likewise.
30831         * tests/uninorm/test-u8-normcmp.c: Likewise.
30832         * tests/uninorm/test-u8-normcoll.c: Likewise.
30833         * tests/uninorm/test-u16-nfc.c: Likewise.
30834         * tests/uninorm/test-u16-nfd.c: Likewise.
30835         * tests/uninorm/test-u16-nfkc.c: Likewise.
30836         * tests/uninorm/test-u16-nfkd.c: Likewise.
30837         * tests/uninorm/test-u16-normcmp.c: Likewise.
30838         * tests/uninorm/test-u16-normcoll.c: Likewise.
30839         * tests/uninorm/test-u32-nfc.c: Likewise.
30840         * tests/uninorm/test-u32-nfd.c: Likewise.
30841         * tests/uninorm/test-u32-nfkc.c: Likewise.
30842         * tests/uninorm/test-u32-nfkd.c: Likewise.
30843         * tests/uninorm/test-u32-normalize-big.c: Likewise.
30844         * tests/uninorm/test-u32-normcmp.c: Likewise.
30845         * tests/uninorm/test-u32-normcoll.c: Likewise.
30846         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
30847         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
30848         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
30849         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
30850         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
30851         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
30852         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
30853         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
30854         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
30855         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
30856         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
30857         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
30858         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
30859         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
30860         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
30861         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
30862         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
30863         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
30864         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
30865         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
30866         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
30867         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
30868         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
30869         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
30870         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
30871         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
30872         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
30873         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
30874         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
30875         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
30876         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
30877         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
30878         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
30879         * tests/uniwidth/test-u8-strwidth.c: Likewise.
30880         * tests/uniwidth/test-u8-width.c: Likewise.
30881         * tests/uniwidth/test-u16-strwidth.c: Likewise.
30882         * tests/uniwidth/test-u16-width.c: Likewise.
30883         * tests/uniwidth/test-u32-strwidth.c: Likewise.
30884         * tests/uniwidth/test-u32-width.c: Likewise.
30885         * tests/uniwidth/test-uc_width.c: Likewise.
30886         * tests/uniwidth/test-uc_width2.c: Likewise.
30887         * modules/acl-tests (Files): Add tests/macros.h.
30888         * modules/areadlink-tests (Files): Likewise.
30889         * modules/areadlink-with-size-tests (Files): Likewise.
30890         * modules/areadlinkat-tests (Files): Likewise.
30891         * modules/areadlinkat-with-size-tests (Files): Likewise.
30892         * modules/argmatch-tests (Files): Likewise.
30893         * modules/argv-iter-tests (Files): Likewise.
30894         * modules/array-list-tests (Files): Likewise.
30895         * modules/array-mergesort-tests (Files): Likewise.
30896         * modules/array-oset-tests (Files): Likewise.
30897         * modules/avltree-list-tests (Files): Likewise.
30898         * modules/avltree-oset-tests (Files): Likewise.
30899         * modules/avltreehash-list-tests (Files): Likewise.
30900         * modules/base64-tests (Files): Likewise.
30901         * modules/binary-io-tests (Files): Likewise.
30902         * modules/bitrotate-tests (Files): Likewise.
30903         * modules/btowc-tests (Files): Likewise.
30904         * modules/byteswap-tests (Files): Likewise.
30905         * modules/c-ctype-tests (Files): Likewise.
30906         * modules/c-stack-tests (Files): Likewise.
30907         * modules/c-strcase-tests (Files): Likewise.
30908         * modules/c-strcasestr-tests (Files): Likewise.
30909         * modules/c-strstr-tests (Files): Likewise.
30910         * modules/canonicalize-lgpl-tests (Files): Likewise.
30911         * modules/canonicalize-tests (Files): Likewise.
30912         * modules/carray-list-tests (Files): Likewise.
30913         * modules/ceilf-tests (Files): Likewise.
30914         * modules/ceill-tests (Files): Likewise.
30915         * modules/chown-tests (Files): Likewise.
30916         * modules/cloexec-tests (Files): Likewise.
30917         * modules/copy-file-tests (Files): Likewise.
30918         * modules/count-one-bits-tests (Files): Likewise.
30919         * modules/dprintf-posix-tests (Files): Likewise.
30920         * modules/dup2-tests (Files): Likewise.
30921         * modules/dup3-tests (Files): Likewise.
30922         * modules/duplocale-tests (Files): Likewise.
30923         * modules/fbufmode-tests (Files): Likewise.
30924         * modules/fchdir-tests (Files): Likewise.
30925         * modules/fcntl-safer-tests (Files): Likewise.
30926         * modules/fcntl-tests (Files): Likewise.
30927         * modules/fdopendir-tests (Files): Likewise.
30928         * modules/fdutimensat-tests (Files): Likewise.
30929         * modules/fflush-tests (Files): Likewise.
30930         * modules/filevercmp-tests (Files): Likewise.
30931         * modules/flock-tests (Files): Likewise.
30932         * modules/floorf-tests (Files): Likewise.
30933         * modules/floorl-tests (Files): Likewise.
30934         * modules/fnmatch-tests (Files): Likewise.
30935         * modules/fopen-safer-tests (Files): Likewise.
30936         * modules/fopen-tests (Files): Likewise.
30937         * modules/fpending-tests (Files): Likewise.
30938         * modules/fprintf-posix-tests (Files): Likewise.
30939         * modules/fpurge-tests (Files): Likewise.
30940         * modules/freadable-tests (Files): Likewise.
30941         * modules/freadahead-tests (Files): Likewise.
30942         * modules/freading-tests (Files): Likewise.
30943         * modules/freadptr-tests (Files): Likewise.
30944         * modules/freadseek-tests (Files): Likewise.
30945         * modules/freopen-tests (Files): Likewise.
30946         * modules/frexp-nolibm-tests (Files): Likewise.
30947         * modules/frexp-tests (Files): Likewise.
30948         * modules/frexpl-nolibm-tests (Files): Likewise.
30949         * modules/frexpl-tests (Files): Likewise.
30950         * modules/fseek-tests (Files): Likewise.
30951         * modules/fseeko-tests (Files): Likewise.
30952         * modules/fstrcmp-tests (Files): Likewise.
30953         * modules/fsync-tests (Files): Likewise.
30954         * modules/ftell-tests (Files): Likewise.
30955         * modules/ftello-tests (Files): Likewise.
30956         * modules/func-tests (Files): Likewise.
30957         * modules/futimens-tests (Files): Likewise.
30958         * modules/fwritable-tests (Files): Likewise.
30959         * modules/fwriting-tests (Files): Likewise.
30960         * modules/getcwd-tests (Files): Likewise.
30961         * modules/getdate-tests (Files): Likewise.
30962         * modules/getdelim-tests (Files): Likewise.
30963         * modules/getdtablesize-tests (Files): Likewise.
30964         * modules/getgroups-tests (Files): Likewise.
30965         * modules/getline-tests (Files): Likewise.
30966         * modules/getndelim2-tests (Files): Likewise.
30967         * modules/glob-tests (Files): Likewise.
30968         * modules/hash-tests (Files): Likewise.
30969         * modules/i-ring-tests (Files): Likewise.
30970         * modules/iconv-tests (Files): Likewise.
30971         * modules/iconv_open-utf-tests (Files): Likewise.
30972         * modules/idpriv-drop-tests (Files): Likewise.
30973         * modules/idpriv-droptemp-tests (Files): Likewise.
30974         * modules/inet_ntop-tests (Files): Likewise.
30975         * modules/inet_pton-tests (Files): Likewise.
30976         * modules/isblank-tests (Files): Likewise.
30977         * modules/isfinite-tests (Files): Likewise.
30978         * modules/isinf-tests (Files): Likewise.
30979         * modules/isnan-tests (Files): Likewise.
30980         * modules/isnand-nolibm-tests (Files): Likewise.
30981         * modules/isnand-tests (Files): Likewise.
30982         * modules/isnanf-nolibm-tests (Files): Likewise.
30983         * modules/isnanf-tests (Files): Likewise.
30984         * modules/isnanl-nolibm-tests (Files): Likewise.
30985         * modules/isnanl-tests (Files): Likewise.
30986         * modules/lchown-tests (Files): Likewise.
30987         * modules/ldexpl-tests (Files): Likewise.
30988         * modules/link-tests (Files): Likewise.
30989         * modules/linkat-tests (Files): Likewise.
30990         * modules/linked-list-tests (Files): Likewise.
30991         * modules/linkedhash-list-tests (Files): Likewise.
30992         * modules/localename-tests (Files): Likewise.
30993         * modules/lseek-tests (Files): Likewise.
30994         * modules/lstat-tests (Files): Likewise.
30995         * modules/mbmemcasecmp-tests (Files): Likewise.
30996         * modules/mbmemcasecoll-tests (Files): Likewise.
30997         * modules/mbrtowc-tests (Files): Likewise.
30998         * modules/mbscasecmp-tests (Files): Likewise.
30999         * modules/mbscasestr-tests (Files): Likewise.
31000         * modules/mbschr-tests (Files): Likewise.
31001         * modules/mbscspn-tests (Files): Likewise.
31002         * modules/mbsinit-tests (Files): Likewise.
31003         * modules/mbsncasecmp-tests (Files): Likewise.
31004         * modules/mbsnrtowcs-tests (Files): Likewise.
31005         * modules/mbspbrk-tests (Files): Likewise.
31006         * modules/mbspcasecmp-tests (Files): Likewise.
31007         * modules/mbsrchr-tests (Files): Likewise.
31008         * modules/mbsrtowcs-tests (Files): Likewise.
31009         * modules/mbsspn-tests (Files): Likewise.
31010         * modules/mbsstr-tests (Files): Likewise.
31011         * modules/memchr-tests (Files): Likewise.
31012         * modules/memchr2-tests (Files): Likewise.
31013         * modules/memcmp-tests (Files): Likewise.
31014         * modules/memmem-tests (Files): Likewise.
31015         * modules/memrchr-tests (Files): Likewise.
31016         * modules/mkdir-tests (Files): Likewise.
31017         * modules/mkfifo-tests (Files): Likewise.
31018         * modules/mkfifoat-tests (Files): Likewise.
31019         * modules/mknod-tests (Files): Likewise.
31020         * modules/nanosleep-tests (Files): Likewise.
31021         * modules/nl_langinfo-tests (Files): Likewise.
31022         * modules/obstack-printf-tests (Files): Likewise.
31023         * modules/open-tests (Files): Likewise.
31024         * modules/openat-tests (Files): Likewise.
31025         * modules/pipe-filter-gi-tests (Files): Likewise.
31026         * modules/pipe-filter-ii-tests (Files): Likewise.
31027         * modules/pipe2-tests (Files): Likewise.
31028         * modules/popen-safer-tests (Files): Likewise.
31029         * modules/popen-tests (Files): Likewise.
31030         * modules/posixtm-tests (Files): Likewise.
31031         * modules/pread-tests (Files): Likewise.
31032         * modules/printf-frexp-tests (Files): Likewise.
31033         * modules/printf-frexpl-tests (Files): Likewise.
31034         * modules/printf-posix-tests (Files): Likewise.
31035         * modules/priv-set-tests (Files): Likewise.
31036         * modules/quotearg-tests (Files): Likewise.
31037         * modules/random_r-tests (Files): Likewise.
31038         * modules/rawmemchr-tests (Files): Likewise.
31039         * modules/rbtree-list-tests (Files): Likewise.
31040         * modules/rbtree-oset-tests (Files): Likewise.
31041         * modules/rbtreehash-list-tests (Files): Likewise.
31042         * modules/readlink-tests (Files): Likewise.
31043         * modules/remove-tests (Files): Likewise.
31044         * modules/rename-tests (Files): Likewise.
31045         * modules/renameat-tests (Files): Likewise.
31046         * modules/rmdir-tests (Files): Likewise.
31047         * modules/round-tests (Files): Likewise.
31048         * modules/roundf-tests (Files): Likewise.
31049         * modules/roundl-tests (Files): Likewise.
31050         * modules/safe-alloc-tests (Files): Likewise.
31051         * modules/setenv-tests (Files): Likewise.
31052         * modules/sigaction-tests (Files): Likewise.
31053         * modules/signbit-tests (Files): Likewise.
31054         * modules/sleep-tests (Files): Likewise.
31055         * modules/snprintf-posix-tests (Files): Likewise.
31056         * modules/snprintf-tests (Files): Likewise.
31057         * modules/sprintf-posix-tests (Files): Likewise.
31058         * modules/stat-tests (Files): Likewise.
31059         * modules/stat-time-tests (Files): Likewise.
31060         * modules/strcasestr-tests (Files): Likewise.
31061         * modules/strchrnul-tests (Files): Likewise.
31062         * modules/strerror-tests (Files): Likewise.
31063         * modules/striconv-tests (Files): Likewise.
31064         * modules/striconveh-tests (Files): Likewise.
31065         * modules/striconveha-tests (Files): Likewise.
31066         * modules/strsignal-tests (Files): Likewise.
31067         * modules/strstr-tests (Files): Likewise.
31068         * modules/strtod-tests (Files): Likewise.
31069         * modules/strverscmp-tests (Files): Likewise.
31070         * modules/symlink-tests (Files): Likewise.
31071         * modules/symlinkat-tests (Files): Likewise.
31072         * modules/trunc-tests (Files): Likewise.
31073         * modules/truncf-tests (Files): Likewise.
31074         * modules/truncl-tests (Files): Likewise.
31075         * modules/uname-tests (Files): Likewise.
31076         * modules/unicase/cased-tests (Files): Likewise.
31077         * modules/unicase/ignorable-tests (Files): Likewise.
31078         * modules/unicase/locale-language-tests (Files): Likewise.
31079         * modules/unicase/tolower-tests (Files): Likewise.
31080         * modules/unicase/totitle-tests (Files): Likewise.
31081         * modules/unicase/toupper-tests (Files): Likewise.
31082         * modules/unicase/u8-casecmp-tests (Files): Likewise.
31083         * modules/unicase/u8-casecoll-tests (Files): Likewise.
31084         * modules/unicase/u8-casefold-tests (Files): Likewise.
31085         * modules/unicase/u8-is-cased-tests (Files): Likewise.
31086         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
31087         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
31088         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
31089         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
31090         * modules/unicase/u8-tolower-tests (Files): Likewise.
31091         * modules/unicase/u8-totitle-tests (Files): Likewise.
31092         * modules/unicase/u8-toupper-tests (Files): Likewise.
31093         * modules/unicase/u16-casecmp-tests (Files): Likewise.
31094         * modules/unicase/u16-casecoll-tests (Files): Likewise.
31095         * modules/unicase/u16-casefold-tests (Files): Likewise.
31096         * modules/unicase/u16-is-cased-tests (Files): Likewise.
31097         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
31098         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
31099         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
31100         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
31101         * modules/unicase/u16-tolower-tests (Files): Likewise.
31102         * modules/unicase/u16-totitle-tests (Files): Likewise.
31103         * modules/unicase/u16-toupper-tests (Files): Likewise.
31104         * modules/unicase/u32-casecmp-tests (Files): Likewise.
31105         * modules/unicase/u32-casecoll-tests (Files): Likewise.
31106         * modules/unicase/u32-casefold-tests (Files): Likewise.
31107         * modules/unicase/u32-is-cased-tests (Files): Likewise.
31108         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
31109         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
31110         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
31111         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
31112         * modules/unicase/u32-tolower-tests (Files): Likewise.
31113         * modules/unicase/u32-totitle-tests (Files): Likewise.
31114         * modules/unicase/u32-toupper-tests (Files): Likewise.
31115         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
31116         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
31117         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
31118         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
31119         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
31120         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
31121         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
31122         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
31123         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
31124         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
31125         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
31126         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
31127         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
31128         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
31129         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
31130         * modules/unictype/bidicategory-name-tests (Files): Likewise.
31131         * modules/unictype/bidicategory-of-tests (Files): Likewise.
31132         * modules/unictype/bidicategory-test-tests (Files): Likewise.
31133         * modules/unictype/block-list-tests (Files): Likewise.
31134         * modules/unictype/block-of-tests (Files): Likewise.
31135         * modules/unictype/block-test-tests (Files): Likewise.
31136         * modules/unictype/category-C-tests (Files): Likewise.
31137         * modules/unictype/category-Cc-tests (Files): Likewise.
31138         * modules/unictype/category-Cf-tests (Files): Likewise.
31139         * modules/unictype/category-Cn-tests (Files): Likewise.
31140         * modules/unictype/category-Co-tests (Files): Likewise.
31141         * modules/unictype/category-Cs-tests (Files): Likewise.
31142         * modules/unictype/category-L-tests (Files): Likewise.
31143         * modules/unictype/category-Ll-tests (Files): Likewise.
31144         * modules/unictype/category-Lm-tests (Files): Likewise.
31145         * modules/unictype/category-Lo-tests (Files): Likewise.
31146         * modules/unictype/category-Lt-tests (Files): Likewise.
31147         * modules/unictype/category-Lu-tests (Files): Likewise.
31148         * modules/unictype/category-M-tests (Files): Likewise.
31149         * modules/unictype/category-Mc-tests (Files): Likewise.
31150         * modules/unictype/category-Me-tests (Files): Likewise.
31151         * modules/unictype/category-Mn-tests (Files): Likewise.
31152         * modules/unictype/category-N-tests (Files): Likewise.
31153         * modules/unictype/category-Nd-tests (Files): Likewise.
31154         * modules/unictype/category-Nl-tests (Files): Likewise.
31155         * modules/unictype/category-No-tests (Files): Likewise.
31156         * modules/unictype/category-P-tests (Files): Likewise.
31157         * modules/unictype/category-Pc-tests (Files): Likewise.
31158         * modules/unictype/category-Pd-tests (Files): Likewise.
31159         * modules/unictype/category-Pe-tests (Files): Likewise.
31160         * modules/unictype/category-Pf-tests (Files): Likewise.
31161         * modules/unictype/category-Pi-tests (Files): Likewise.
31162         * modules/unictype/category-Po-tests (Files): Likewise.
31163         * modules/unictype/category-Ps-tests (Files): Likewise.
31164         * modules/unictype/category-S-tests (Files): Likewise.
31165         * modules/unictype/category-Sc-tests (Files): Likewise.
31166         * modules/unictype/category-Sk-tests (Files): Likewise.
31167         * modules/unictype/category-Sm-tests (Files): Likewise.
31168         * modules/unictype/category-So-tests (Files): Likewise.
31169         * modules/unictype/category-Z-tests (Files): Likewise.
31170         * modules/unictype/category-Zl-tests (Files): Likewise.
31171         * modules/unictype/category-Zp-tests (Files): Likewise.
31172         * modules/unictype/category-Zs-tests (Files): Likewise.
31173         * modules/unictype/category-and-not-tests (Files): Likewise.
31174         * modules/unictype/category-and-tests (Files): Likewise.
31175         * modules/unictype/category-byname-tests (Files): Likewise.
31176         * modules/unictype/category-name-tests (Files): Likewise.
31177         * modules/unictype/category-none-tests (Files): Likewise.
31178         * modules/unictype/category-of-tests (Files): Likewise.
31179         * modules/unictype/category-or-tests (Files): Likewise.
31180         * modules/unictype/category-test-withtable-tests (Files): Likewise.
31181         * modules/unictype/combining-class-tests (Files): Likewise.
31182         * modules/unictype/ctype-alnum-tests (Files): Likewise.
31183         * modules/unictype/ctype-alpha-tests (Files): Likewise.
31184         * modules/unictype/ctype-blank-tests (Files): Likewise.
31185         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
31186         * modules/unictype/ctype-digit-tests (Files): Likewise.
31187         * modules/unictype/ctype-graph-tests (Files): Likewise.
31188         * modules/unictype/ctype-lower-tests (Files): Likewise.
31189         * modules/unictype/ctype-print-tests (Files): Likewise.
31190         * modules/unictype/ctype-punct-tests (Files): Likewise.
31191         * modules/unictype/ctype-space-tests (Files): Likewise.
31192         * modules/unictype/ctype-upper-tests (Files): Likewise.
31193         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
31194         * modules/unictype/decimal-digit-tests (Files): Likewise.
31195         * modules/unictype/digit-tests (Files): Likewise.
31196         * modules/unictype/mirror-tests (Files): Likewise.
31197         * modules/unictype/numeric-tests (Files): Likewise.
31198         * modules/unictype/property-alphabetic-tests (Files): Likewise.
31199         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
31200         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
31201         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
31202         Likewise.
31203         * modules/unictype/property-bidi-block-separator-tests (Files):
31204         Likewise.
31205         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
31206         Likewise.
31207         * modules/unictype/property-bidi-common-separator-tests (Files):
31208         Likewise.
31209         * modules/unictype/property-bidi-control-tests (Files): Likewise.
31210         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
31211         Likewise.
31212         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
31213         Likewise.
31214         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
31215         Likewise.
31216         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
31217         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
31218         Likewise.
31219         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
31220         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
31221         Likewise.
31222         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
31223         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
31224         * modules/unictype/property-bidi-segment-separator-tests (Files):
31225         Likewise.
31226         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
31227         * modules/unictype/property-byname-tests (Files): Likewise.
31228         * modules/unictype/property-combining-tests (Files): Likewise.
31229         * modules/unictype/property-composite-tests (Files): Likewise.
31230         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
31231         * modules/unictype/property-dash-tests (Files): Likewise.
31232         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
31233         * modules/unictype/property-default-ignorable-code-point-tests (Files):
31234         Likewise.
31235         * modules/unictype/property-deprecated-tests (Files): Likewise.
31236         * modules/unictype/property-diacritic-tests (Files): Likewise.
31237         * modules/unictype/property-extender-tests (Files): Likewise.
31238         * modules/unictype/property-format-control-tests (Files): Likewise.
31239         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
31240         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
31241         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
31242         * modules/unictype/property-hex-digit-tests (Files): Likewise.
31243         * modules/unictype/property-hyphen-tests (Files): Likewise.
31244         * modules/unictype/property-id-continue-tests (Files): Likewise.
31245         * modules/unictype/property-id-start-tests (Files): Likewise.
31246         * modules/unictype/property-ideographic-tests (Files): Likewise.
31247         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
31248         * modules/unictype/property-ids-trinary-operator-tests (Files):
31249         Likewise.
31250         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
31251         * modules/unictype/property-iso-control-tests (Files): Likewise.
31252         * modules/unictype/property-join-control-tests (Files): Likewise.
31253         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
31254         * modules/unictype/property-line-separator-tests (Files): Likewise.
31255         * modules/unictype/property-logical-order-exception-tests (Files):
31256         Likewise.
31257         * modules/unictype/property-lowercase-tests (Files): Likewise.
31258         * modules/unictype/property-math-tests (Files): Likewise.
31259         * modules/unictype/property-non-break-tests (Files): Likewise.
31260         * modules/unictype/property-not-a-character-tests (Files): Likewise.
31261         * modules/unictype/property-numeric-tests (Files): Likewise.
31262         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
31263         * modules/unictype/property-other-default-ignorable-code-point-tests
31264         (Files): Likewise.
31265         * modules/unictype/property-other-grapheme-extend-tests (Files):
31266         Likewise.
31267         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
31268         * modules/unictype/property-other-id-start-tests (Files): Likewise.
31269         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
31270         * modules/unictype/property-other-math-tests (Files): Likewise.
31271         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
31272         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
31273         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
31274         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
31275         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
31276         * modules/unictype/property-private-use-tests (Files): Likewise.
31277         * modules/unictype/property-punctuation-tests (Files): Likewise.
31278         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
31279         * modules/unictype/property-radical-tests (Files): Likewise.
31280         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
31281         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
31282         * modules/unictype/property-space-tests (Files): Likewise.
31283         * modules/unictype/property-terminal-punctuation-tests (Files):
31284         Likewise.
31285         * modules/unictype/property-test-tests (Files): Likewise.
31286         * modules/unictype/property-titlecase-tests (Files): Likewise.
31287         * modules/unictype/property-unassigned-code-value-tests (Files):
31288         Likewise.
31289         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
31290         * modules/unictype/property-uppercase-tests (Files): Likewise.
31291         * modules/unictype/property-variation-selector-tests (Files): Likewise.
31292         * modules/unictype/property-white-space-tests (Files): Likewise.
31293         * modules/unictype/property-xid-continue-tests (Files): Likewise.
31294         * modules/unictype/property-xid-start-tests (Files): Likewise.
31295         * modules/unictype/property-zero-width-tests (Files): Likewise.
31296         * modules/unictype/scripts-tests (Files): Likewise.
31297         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
31298         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
31299         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
31300         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
31301         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
31302         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
31303         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
31304         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
31305         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
31306         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
31307         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
31308         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
31309         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
31310         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
31311         * modules/uninorm/composition-tests (Files): Likewise.
31312         * modules/uninorm/decomposing-form-tests (Files): Likewise.
31313         * modules/uninorm/decomposition-tests (Files): Likewise.
31314         * modules/uninorm/filter-tests (Files): Likewise.
31315         * modules/uninorm/nfc-tests (Files): Likewise.
31316         * modules/uninorm/nfd-tests (Files): Likewise.
31317         * modules/uninorm/nfkc-tests (Files): Likewise.
31318         * modules/uninorm/nfkd-tests (Files): Likewise.
31319         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
31320         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
31321         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
31322         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
31323         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
31324         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
31325         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
31326         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
31327         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
31328         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
31329         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
31330         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
31331         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
31332         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
31333         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
31334         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
31335         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
31336         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
31337         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
31338         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
31339         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
31340         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
31341         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
31342         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
31343         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
31344         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
31345         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
31346         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
31347         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
31348         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
31349         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
31350         * modules/uniwidth/u8-width-tests (Files): Likewise.
31351         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
31352         * modules/uniwidth/u16-width-tests (Files): Likewise.
31353         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
31354         * modules/uniwidth/u32-width-tests (Files): Likewise.
31355         * modules/uniwidth/width-tests (Files): Likewise.
31356         * modules/unlink-tests (Files): Likewise.
31357         * modules/unsetenv-tests (Files): Likewise.
31358         * modules/usleep-tests (Files): Likewise.
31359         * modules/utimens-tests (Files): Likewise.
31360         * modules/utimensat-tests (Files): Likewise.
31361         * modules/vasnprintf-posix-tests (Files): Likewise.
31362         * modules/vasnprintf-tests (Files): Likewise.
31363         * modules/vasprintf-posix-tests (Files): Likewise.
31364         * modules/vasprintf-tests (Files): Likewise.
31365         * modules/vdprintf-posix-tests (Files): Likewise.
31366         * modules/vfprintf-posix-tests (Files): Likewise.
31367         * modules/vprintf-posix-tests (Files): Likewise.
31368         * modules/vsnprintf-posix-tests (Files): Likewise.
31369         * modules/vsnprintf-tests (Files): Likewise.
31370         * modules/vsprintf-posix-tests (Files): Likewise.
31371         * modules/wcrtomb-tests (Files): Likewise.
31372         * modules/wcsnrtombs-tests (Files): Likewise.
31373         * modules/wcsrtombs-tests (Files): Likewise.
31374         * modules/wctype-tests (Files): Likewise.
31375         * modules/wcwidth-tests (Files): Likewise.
31376         * modules/xmemdup0-tests (Files): Likewise.
31377         * modules/xprintf-posix-tests (Files): Likewise.
31378         * modules/xvasprintf-tests (Files): Likewise.
31379
31380 2009-12-24  Eric Blake  <ebb9@byu.net>
31381
31382         test-nanosleep: fix typo
31383         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
31384         patch.
31385         Reported by Bruno Haible.
31386
31387 2009-12-24  Bruno Haible  <bruno@clisp.org>
31388
31389         Reduce namespace pollution on glibc systems.
31390         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
31391         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
31392         systems.
31393         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
31394         <getopt.h> on glibc systems.
31395         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
31396         systems.
31397         * lib/fcntl.c: Include <unistd.h> here instead.
31398
31399 2009-12-24  Bruno Haible  <bruno@clisp.org>
31400
31401         * lib/stdlib.in.h (includes): Fix typo in today's commit.
31402
31403 2009-12-24  Eric Blake  <ebb9@byu.net>
31404
31405         tests: add signature checks
31406         * tests/signature.h (SIGNATURE_CHECK): New file.
31407         * modules/atexit-tests (Files): Use it.
31408         * modules/btowc-tests (Files): Likewise.
31409         * modules/canonicalize-lgpl-tests (Files): Likewise.
31410         * modules/ceilf-tests (Files): Likewise.
31411         * modules/ceill-tests (Files): Likewise.
31412         * modules/chown-tests (Files): Likewise.
31413         * modules/dprintf-posix-tests (Files): Likewise.
31414         * modules/dup2-tests (Files): Likewise.
31415         * modules/dup3-tests (Files): Likewise.
31416         * modules/duplocale-tests (Files): Likewise.
31417         * modules/fchdir-tests (Files): Likewise.
31418         * modules/fcntl-tests (Files): Likewise.
31419         * modules/fdopendir-tests (Files): Likewise.
31420         * modules/fflush-tests (Files): Likewise.
31421         * modules/flock-tests (Files): Likewise.
31422         * modules/floorf-tests (Files): Likewise.
31423         * modules/floorl-tests (Files): Likewise.
31424         * modules/fnmatch-tests (Files): Likewise.
31425         * modules/fopen-tests (Files): Likewise.
31426         * modules/fprintf-posix-tests (Files): Likewise.
31427         * modules/freopen-tests (Files): Likewise.
31428         * modules/frexp-nolibm-tests (Files): Likewise.
31429         * modules/frexp-tests (Files): Likewise.
31430         * modules/frexpl-nolibm-tests (Files): Likewise.
31431         * modules/frexpl-tests (Files): Likewise.
31432         * modules/fseek-tests (Files): Likewise.
31433         * modules/fseeko-tests (Files): Likewise.
31434         * modules/fsync-tests (Files): Likewise.
31435         * modules/ftell-tests (Files): Likewise.
31436         * modules/ftello-tests (Files): Likewise.
31437         * modules/futimens-tests (Files): Likewise.
31438         * modules/getaddrinfo-tests (Files): Likewise.
31439         * modules/getcwd-tests (Files): Likewise.
31440         * modules/getdelim-tests (Files): Likewise.
31441         * modules/getdtablesize-tests (Files): Likewise.
31442         * modules/getgroups-tests (Files): Likewise.
31443         * modules/gethostname-tests (Files): Likewise.
31444         * modules/getline-tests (Files): Likewise.
31445         * modules/getopt-posix-tests (Files): Likewise.
31446         * modules/gettimeofday-tests (Files): Likewise.
31447         * modules/glob-tests (Files): Likewise.
31448         * modules/iconv-tests (Files): Likewise.
31449         * modules/inet_ntop-tests (Files): Likewise.
31450         * modules/inet_pton-tests (Files): Likewise.
31451         * modules/isblank-tests (Files): Likewise.
31452         * modules/lchown-tests (Files): Likewise.
31453         * modules/ldexpl-tests (Files): Likewise.
31454         * modules/link-tests (Files): Likewise.
31455         * modules/linkat-tests (Files): Likewise.
31456         * modules/lseek-tests (Files): Likewise.
31457         * modules/lstat-tests (Files): Likewise.
31458         * modules/mbrtowc-tests (Files): Likewise.
31459         * modules/mbsinit-tests (Files): Likewise.
31460         * modules/mbsnrtowcs-tests (Files): Likewise.
31461         * modules/mbsrtowcs-tests (Files): Likewise.
31462         * modules/memchr-tests (Files): Likewise.
31463         * modules/memcmp-tests (Files): Likewise.
31464         * modules/memmem-tests (Files): Likewise.
31465         * modules/memrchr-tests (Files): Likewise.
31466         * modules/mkdir-tests (Files): Likewise.
31467         * modules/mkfifo-tests (Files): Likewise.
31468         * modules/mkfifoat-tests (Files): Likewise.
31469         * modules/mknod-tests (Files): Likewise.
31470         * modules/nanosleep-tests (Files): Likewise.
31471         * modules/nl_langinfo-tests (Files): Likewise.
31472         * modules/obstack-printf-tests (Files): Likewise.
31473         * modules/open-tests (Files): Likewise.
31474         * modules/openat-tests (Files): Likewise.
31475         * modules/perror-tests (Files): Likewise.
31476         * modules/pipe2-tests (Files): Likewise.
31477         * modules/poll-tests (Files): Likewise.
31478         * modules/popen-tests (Files): Likewise.
31479         * modules/posix_spawn-tests (Files): Likewise.
31480         * modules/posix_spawnp-tests (Files): Likewise.
31481         * modules/pread-tests (Files): Likewise.
31482         * modules/printf-posix-tests (Files): Likewise.
31483         * modules/pty-tests (Files): Likewise.
31484         * modules/random_r-tests (Files): Likewise.
31485         * modules/rawmemchr-tests (Files): Likewise.
31486         * modules/readlink-tests (Files): Likewise.
31487         * modules/remove-tests (Files): Likewise.
31488         * modules/rename-tests (Files): Likewise.
31489         * modules/renameat-tests (Files): Likewise.
31490         * modules/rmdir-tests (Files): Likewise.
31491         * modules/round-tests (Files): Likewise.
31492         * modules/roundf-tests (Files): Likewise.
31493         * modules/roundl-tests (Files): Likewise.
31494         * modules/select-tests (Files): Likewise.
31495         * modules/setenv-tests (Files): Likewise.
31496         * modules/sigaction-tests (Files): Likewise.
31497         * modules/sleep-tests (Files): Likewise.
31498         * modules/snprintf-posix-tests (Files): Likewise.
31499         * modules/snprintf-tests (Files): Likewise.
31500         * modules/sprintf-posix-tests (Files): Likewise.
31501         * modules/stat-tests (Files): Likewise.
31502         * modules/strcasestr-tests (Files): Likewise.
31503         * modules/strchrnul-tests (Files): Likewise.
31504         * modules/strerror-tests (Files): Likewise.
31505         * modules/strsignal-tests (Files): Likewise.
31506         * modules/strstr-tests (Files): Likewise.
31507         * modules/strtod-tests (Files): Likewise.
31508         * modules/strverscmp-tests (Files): Likewise.
31509         * modules/symlink-tests (Files): Likewise.
31510         * modules/symlinkat-tests (Files): Likewise.
31511         * modules/times-tests (Files): Likewise.
31512         * modules/trunc-tests (Files): Likewise.
31513         * modules/truncf-tests (Files): Likewise.
31514         * modules/truncl-tests (Files): Likewise.
31515         * modules/tsearch-tests (Files): Likewise.
31516         * modules/uname-tests (Files): Likewise.
31517         * modules/unlink-tests (Files): Likewise.
31518         * modules/unsetenv-tests (Files): Likewise.
31519         * modules/usleep-tests (Files): Likewise.
31520         * modules/utimensat-tests (Files): Likewise.
31521         * modules/vasprintf-tests (Files): Likewise.
31522         * modules/vdprintf-posix-tests (Files): Likewise.
31523         * modules/vfprintf-posix-tests (Files): Likewise.
31524         * modules/vprintf-posix-tests (Files): Likewise.
31525         * modules/vsnprintf-posix-tests (Files): Likewise.
31526         * modules/vsnprintf-tests (Files): Likewise.
31527         * modules/vsprintf-posix-tests (Files): Likewise.
31528         * modules/wcrtomb-tests (Files): Likewise.
31529         * modules/wcsnrtombs-tests (Files): Likewise.
31530         * modules/wcsrtombs-tests (Files): Likewise.
31531         * modules/wcwidth-tests (Files): Likewise.
31532         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
31533         * tests/test-isinf.c (isinf): Likewise.
31534         * tests/test-isnan.c (isnan): Likewise.
31535         * tests/test-signbit.c (signbit): Likewise.
31536         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
31537         declaration, either as macro or with correct signature.
31538         (select): Ensure function under test is declared with correct
31539         signature in correct header.
31540         * tests/test-atexit.c (atexit): Likewise.
31541         * tests/test-btowc.c (btowc): Likewise.
31542         * tests/test-canonicalize-lgpl.c (realpath)
31543         (canonicalize_file_name): Likewise.
31544         * tests/test-ceilf1.c (ceilf): Likewise.
31545         * tests/test-ceill.c (ceill): Likewise.
31546         * tests/test-chown.c (chown): Likewise.
31547         * tests/test-dprintf-posix.c (dprintf): Likewise.
31548         * tests/test-dup2.c (dup2): Likewise.
31549         * tests/test-dup3.c (dup3): Likewise.
31550         * tests/test-duplocale.c (duplocale): Likewise.
31551         * tests/test-fchdir.c (fchdir): Likewise.
31552         * tests/test-fchownat.c (fchownat): Likewise.
31553         * tests/test-fcntl.c (fcntl): Likewise.
31554         * tests/test-fdopendir.c (fdopendir): Likewise.
31555         * tests/test-fflush.c (fflush): Likewise.
31556         * tests/test-flock.c (flock): Likewise.
31557         * tests/test-floorf1.c (floorf): Likewise.
31558         * tests/test-floorl.c (floorl): Likewise.
31559         * tests/test-fnmatch.c (fnmatch): Likewise.
31560         * tests/test-fopen.c (fopen): Likewise.
31561         * tests/test-fprintf-posix.c (fprintf): Likewise.
31562         * tests/test-freopen.c (freopen): Likewise.
31563         * tests/test-frexp.c (frexp): Likewise.
31564         * tests/test-frexpl.c (frexpl): Likewise.
31565         * tests/test-fseek.c (fseek): Likewise.
31566         * tests/test-fseeko.c (fseeko): Likewise.
31567         * tests/test-fstatat.c (fstatat): Likewise.
31568         * tests/test-fsync.c (fsync): Likewise.
31569         * tests/test-ftell.c (ftell): Likewise.
31570         * tests/test-ftello.c (ftello): Likewise.
31571         * tests/test-futimens.c (futimens): Likewise.
31572         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
31573         (gai_strerror): Likewise.
31574         * tests/test-getcwd.c (getcwd): Likewise.
31575         * tests/test-getdelim.c (getdelim): Likewise.
31576         * tests/test-getdtablesize.c (getdtablesize): Likewise.
31577         * tests/test-getgroups.c (getgroups): Likewise.
31578         * tests/test-gethostname.c (gethostname): Likewise.
31579         * tests/test-getline.c (getline): Likewise.
31580         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
31581         Likewise.
31582         * tests/test-gettimeofday.c (gettimeofday): Likewise.
31583         * tests/test-glob.c (glob, globfree): Likewise.
31584         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
31585         * tests/test-inet_ntop.c (inet_ntop): Likewise.
31586         * tests/test-inet_pton.c (inet_pton): Likewise.
31587         * tests/test-isblank.c (isblank): Likewise.
31588         * tests/test-lchown.c (lchown): Likewise.
31589         * tests/test-ldexpl.c (ldexpl): Likewise.
31590         * tests/test-link.c (link): Likewise.
31591         * tests/test-linkat.c (linkat): Likewise.
31592         * tests/test-lseek.c (lseek): Likewise.
31593         * tests/test-lstat.c (lstat): Likewise.
31594         * tests/test-mbrtowc.c (mbrtowc): Likewise.
31595         * tests/test-mbsinit.c (mbsinit): Likewise.
31596         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
31597         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
31598         * tests/test-memchr.c (memchr): Likewise.
31599         * tests/test-memcmp.c (memcmp): Likewise.
31600         * tests/test-memmem.c (memmem): Likewise.
31601         * tests/test-memrchr.c (memrchr): Likewise.
31602         * tests/test-mkdir.c (mkdir): Likewise.
31603         * tests/test-mkdirat.c (mkdirat): Likewise.
31604         * tests/test-mkfifo.c (mkfifo): Likewise.
31605         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
31606         * tests/test-mknod.c (mknod): Likewise.
31607         * tests/test-nanosleep.c (nanosleep): Likewise.
31608         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
31609         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
31610         Likewise.
31611         * tests/test-open.c (open): Likewise.
31612         * tests/test-openat.c (openat): Likewise.
31613         * tests/test-perror.c (perror): Likewise.
31614         * tests/test-pipe2.c (pipe2): Likewise.
31615         * tests/test-poll.c (poll): Likewise.
31616         * tests/test-popen.c (popen, pclose): Likewise.
31617         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
31618         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
31619         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
31620         (posix_spawn_file_actions_destroy)
31621         (posix_spawn_file_actions_addclose)
31622         (posix_spawn_file_actions_addopen)
31623         (posix_spawn_file_actions_adddup2): Likewise.
31624         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
31625         * tests/test-pread.c (pread): Likewise.
31626         * tests/test-printf-posix.c (printf): Likewise.
31627         * tests/test-pty.c (openpty, forkpty): Likewise.
31628         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
31629         (random_r): Likewise.
31630         * tests/test-rawmemchr.c (rawmemchr): Likewise.
31631         * tests/test-readlink.c (readlink): Likewise.
31632         * tests/test-remove.c (remove): Likewise.
31633         * tests/test-rename.c (rename): Likewise.
31634         * tests/test-renameat.c (renameat): Likewise.
31635         * tests/test-rmdir.c (rmdir): Likewise.
31636         * tests/test-round1.c (round): Likewise.
31637         * tests/test-roundf1.c (roundf): Likewise.
31638         * tests/test-roundl.c (roundl): Likewise.
31639         * tests/test-setenv.c (setenv): Likewise.
31640         * tests/test-sigaction.c (sigaction): Likewise.
31641         * tests/test-sleep.c (sleep): Likewise.
31642         * tests/test-snprintf.c (snprintf): Likewise.
31643         * tests/test-sprintf-posix.c (sprintf): Likewise.
31644         * tests/test-stat.c (stat): Likewise.
31645         * tests/test-stpncpy.c (stpncpy): Likewise.
31646         * tests/test-strcasestr.c (strcasestr): Likewise.
31647         * tests/test-strchrnul.c (strchrnul): Likewise.
31648         * tests/test-strerror.c (strerror): Likewise.
31649         * tests/test-strsignal.c (strsignal): Likewise.
31650         * tests/test-strstr.c (strstr): Likewise.
31651         * tests/test-strtod.c (strtod): Likewise.
31652         * tests/test-strverscmp.c (strverscmp): Likewise.
31653         * tests/test-symlink.c (symlink): Likewise.
31654         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
31655         * tests/test-times.c (times): Likewise.
31656         * tests/test-trunc1.c (trunc): Likewise.
31657         * tests/test-truncf1.c (truncf): Likewise.
31658         * tests/test-truncl.c (truncl): Likewise.
31659         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
31660         Likewise.
31661         * tests/test-uname.c (uname): Likewise.
31662         * tests/test-unlink.c (unlink): Likewise.
31663         * tests/test-unlinkat.c (unlinkat): Likewise.
31664         * tests/test-unsetenv.c (unsetenv): Likewise.
31665         * tests/test-usleep.c (usleep): Likewise.
31666         * tests/test-utimensat.c (utimensat): Likewise.
31667         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
31668         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
31669         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
31670         * tests/test-vprintf-posix.c (vprintf): Likewise.
31671         * tests/test-vsnprintf.c (vsnprintf): Likewise.
31672         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
31673         * tests/test-wcrtomb.c (wcrtomb): Likewise.
31674         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
31675         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
31676         * tests/test-wcwidth.c (wcwidth): Likewise.
31677
31678         build: pull in conditional headers during GNULIB_POSIXCHECK
31679         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
31680         definitions from any conditionally-included headers.
31681         * lib/stdlib.in.h (includes): Likewise.
31682         * lib/unistd.in.h (includes): Likewise.
31683
31684 2009-12-24  Bruno Haible  <bruno@clisp.org>
31685
31686         * tests/test-argv-iter.c: Include header file being tested immediately
31687         after config.h.
31688         * tests/test-base64.c: Likewise.
31689         * tests/test-flock.c: Likewise.
31690         * tests/test-fsync.c: Likewise.
31691         * tests/test-getdate.c: Likewise.
31692         * tests/test-getndelim2.c: Likewise.
31693         * tests/test-isfinite.c: Likewise.
31694         * tests/test-isinf.c: Likewise.
31695         * tests/test-strerror.c: Likewise.
31696         * tests/test-strsignal.c: Likewise.
31697
31698 2009-12-23  Eric Blake  <ebb9@byu.net>
31699
31700         unistd: work around cygwin bug
31701         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
31702         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
31703         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31704
31705 2009-12-23  Bruno Haible  <bruno@clisp.org>
31706
31707         localename: More tests.
31708         * tests/test-localename.c (SIZEOF): New macro.
31709         (categories): New variable.
31710         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
31711         test_locale_name_default): Add test w.r.t. thread locale.
31712         (test_locale_name_thread): New function.
31713         (main): Invoke it.
31714
31715         localename: Make aware of thread locale.
31716         * lib/localename.h (gl_locale_name_thread): New declaration.
31717         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
31718         behaviour with respect to thread locale.
31719         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
31720         <langinfo.h>, glthread/lock.h.
31721         (SIZE_BITS): New macro.
31722         (string_hash): New function.
31723         (struct hash_node): New type.
31724         (HASH_TABLE_SIZE): New macro.
31725         (struniq_hash_table, struniq_lock): New variables.
31726         (struniq): New function.
31727         (gl_locale_name_thread): New function.
31728         (gl_locale_name): Invoke it.
31729         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
31730         * modules/localename (Depends-on): Add lock.
31731         Reported by Mike Gran <spk121@yahoo.com>.
31732
31733 2009-12-23  Eric Blake  <ebb9@byu.net>
31734
31735         va-args: new module
31736         * modules/va-args: New file.
31737         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
31738         * MODULES.html.sh (Core language properties): Mention it.
31739
31740         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
31741         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
31742         named alias for __attribute__((__unused__)).
31743         * lib/chown.c: Update client.
31744         * lib/fchmodat.c: Likewise.
31745         * lib/fts.c: Likewise.
31746         * lib/getdate.y: Likewise.
31747         * lib/getgroups.c: Likewise.
31748         * lib/getopt.c: Likewise.
31749         * lib/getugroups.c: Likewise.
31750         * lib/mkdir.c: Likewise.
31751         * lib/mkfifo.c: Likewise.
31752         * lib/mkfifoat.c: Likewise.
31753         * lib/mknod.c: Likewise.
31754         * lib/mknodat.c: Likewise.
31755         * lib/readlink.c: Likewise.
31756         * lib/se-context.in.h: Likewise.
31757         * lib/se-selinux.in.h: Likewise.
31758         * lib/sockets.c: Likewise.
31759         * lib/symlink.c: Likewise.
31760         * lib/symlinkat.c: Likewise.
31761         * lib/unicodeio.c: Likewise.
31762         * lib/unistr.h: Likewise.
31763         * tests/test-areadlink.c: Likewise.
31764         * tests/test-areadlinkat.c: Likewise.
31765         * tests/test-filenamecat.c: Likewise.
31766         * tests/test-fseeko.c: Likewise.
31767         * tests/test-ftello.c: Likewise.
31768         * tests/test-getdate.c: Likewise.
31769         * tests/test-getgroups.c: Likewise.
31770         * tests/test-gethostname.c: Likewise.
31771         * tests/test-quotearg.c: Likewise.
31772         * tests/test-version-etc.c: Likewise.
31773         * tests/test-xalloc-die.c: Likewise.
31774         * tests/test-xfprintf-posix.c: Likewise.
31775         * tests/test-xprintf-posix.c: Likewise.
31776         * tests/test-xvasprintf.c: Likewise.
31777
31778         tests: avoid compiler warnings
31779         * tests/test-fcntl.c (main): Delete unused parameters.
31780         * tests/test-freopen-safer.c (main): Likewise.
31781         * tests/test-xalloc-die.c (main): Mark unused parameters.
31782         * tests/test-fseeko.c (main): Likewise.
31783         * tests/test-ftello.c (main): Likewise.
31784         * tests/test-nanosleep.c (main): Avoid declaration warning.
31785         * tests/test-sleep.c (main): Likewise.
31786         * tests/test-unsetenv.c (main): Silence warning about string
31787         literal.
31788         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
31789
31790 2009-12-23  Bruno Haible  <bruno@clisp.org>
31791
31792         * tests/test-localename.c (test_locale_name): New function, extracted
31793         from main. Also test mixed situations.
31794         (test_locale_name_posix, test_locale_name_environ,
31795         test_locale_name_default): New functions.
31796         (main): Invoke them all.
31797         * modules/localename-tests (configure.ac): Test for newlocale.
31798
31799 2009-12-23  Bruno Haible  <bruno@clisp.org>
31800
31801         unistd: Ensure getcwd gets declared before being overridden.
31802         * lib/unistd.in.h: Conditionally include <io.h>.
31803
31804 2009-12-22  Bruno Haible  <bruno@clisp.org>
31805
31806         wchar: Diagnose broken combination of glibc and gcc versions and flags.
31807         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
31808         (gl_WCHAR_H): Invoke it.
31809         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
31810         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
31811         Reported by Karl Berry <karl@freefriends.org>.
31812
31813 2009-12-22  Eric Blake  <ebb9@byu.net>
31814
31815         math, unistd: avoid redundant includes
31816         * lib/math.in.h (isnan): No need to re-include <math.h>.
31817         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
31818
31819         getsubopt: work around cygwin bug
31820         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
31821         avoid conflicting with system getsubopt.
31822         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
31823         bug.
31824
31825         getopt: synchronize from glibc
31826         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
31827         parameter order.  Adjust all callers.
31828         (_getopt_internal_r, main): Adjust quoting in error messages.
31829         Drop considerations for outdated POSIX 1003.2 error message.
31830         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
31831         callers.
31832         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
31833
31834         test-getopt: test stderr behavior
31835         * modules/getopt-posix-tests (Depends-on): Add dup2.
31836         * tests/test-getopt.c (ASSERT): Avoid stderr.
31837         (main): Move stderr to a temporary file.
31838         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
31839         Instead, add parameter to inform caller if output occurred.
31840         (test_getopt): Adjust all existing tests to expect silence, and
31841         add new tests of leading ":".
31842         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31843         glibc shortcomings with leading "-:" or "+:" in optstring.
31844         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31845         Likewise.
31846         * doc/posix-functions/getopt.texi (getopt): Likewise.
31847
31848         test-getopt: enhance test
31849         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
31850         supports optind=0.
31851         * tests/test-getopt.c (OPTIND_MIN): Move...
31852         * tests/test-getopt.h (OPTIND_MIN): ...here.
31853         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
31854         Require that optind=0 works, since modern BSD supports it in
31855         addition to optreset, and since coreutils expects it.
31856         (test_getopt_long_only): New test.
31857         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31858         glibc shortcomings with 'W;', and enforcement of optind=0.
31859         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31860         Likewise.
31861
31862 2009-12-21  Bruno Haible  <bruno@clisp.org>
31863
31864         localename: Improvements for MacOS X and Cygwin.
31865         * lib/localename.h (gl_locale_name_environ): New declaration.
31866         * lib/localename.c (gl_locale_name_environ): New function, extracted from
31867         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
31868         (gl_locale_name_posix): Invoke it.
31869         (gl_locale_name_default): Add comments. Use Windows native API also on
31870         Cygwin.
31871
31872 2009-12-21  Bruno Haible  <bruno@clisp.org>
31873
31874         Update list of Win32 locale ids.
31875         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
31876         (LANG_SAMI): Renamed from LANG_SAAMI.
31877         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
31878         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
31879         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
31880         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
31881         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
31882         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
31883         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
31884         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
31885         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
31886         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
31887         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
31888         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
31889         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
31890         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
31891         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
31892         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
31893         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
31894         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
31895         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
31896         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
31897         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
31898         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
31899         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
31900         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
31901         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
31902         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
31903         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
31904         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
31905         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
31906         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
31907         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
31908         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
31909         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
31910         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
31911         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
31912         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
31913         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
31914         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
31915         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
31916         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
31917         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
31918         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
31919         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
31920         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
31921         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
31922         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
31923         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
31924         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
31925         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
31926         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
31927         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
31928         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
31929         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
31930         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
31931         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
31932         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
31933         Add more languages and countries for Sami, Sorbian. Add more countries
31934         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
31935         for Pashto. Change country for Syriac, Tswana.
31936
31937 2009-12-21  Eric Blake  <ebb9@byu.net>
31938
31939         test-utimens: avoid spurious failure
31940         * tests/test-chown.h (nap): Factor...
31941         * tests/nap.h: ...into new file.
31942         * tests/test-lchown.h (nap): Avoid duplication.
31943         * tests/test-utimens-common.h (nap): Use shared implementation,
31944         necessary on file systems with 1-second resolution.
31945         * modules/chown-tests (Files): Include new file.
31946         * modules/fdutimensat-tests (Files): Likewise.
31947         * modules/futimens-tests (Files): Likewise.
31948         * modules/lchown-tests (Files): Likewise.
31949         * modules/openat-tests (Files): Likewise.
31950         * modules/utimens-tests (Files): Likewise.
31951         * modules/utimensat-tests (Files): Likewise.
31952
31953 2009-12-19  Eric Blake  <ebb9@byu.net>
31954
31955         futimens, utimensat: work around Linux bug
31956         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
31957         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31958         * lib/utimensat.c (rpl_utimensat): Work around it.
31959         * lib/futimens.c (rpl_futimens): Adjust comment.
31960
31961         utimens: work around Linux ctime bug
31962         * lib/utimens.c (detect_ctime_bug): New helper function.
31963         (update_timespec): Differentiate between workaround needed for
31964         this bug vs. what is needed for systems that lack utimensat.
31965         (fdutimens, lutimens): Work around bug.
31966
31967         utimens: check for ctime update
31968         * tests/test-utimens-common.h (check_ctime): Define.
31969         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
31970         * tests/test-futimens.h (test_futimens): Likewise.
31971         * tests/test-lutimens.h (test_lutimens): Likewise.
31972         * doc/posix-functions/futimens.texi (futimens): Document the bug.
31973         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31974
31975 2009-12-19  Bruno Haible  <bruno@clisp.org>
31976
31977         dprintf-posix: Check against memory leak fixed on 2009-12-15.
31978         * tests/test-dprintf-posix2.sh: New file.
31979         * tests/test-dprintf-posix2.c: New file.
31980         * modules/dprintf-posix-tests (Files): Add them.
31981         (configure.ac): Check for getrlimit and setrlimit.
31982         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31983
31984 2009-12-19  Bruno Haible  <bruno@clisp.org>
31985
31986         fprintf-posix: Check against memory leak fixed on 2009-12-15.
31987         * tests/test-fprintf-posix3.sh: New file.
31988         * tests/test-fprintf-posix3.c: New file.
31989         * modules/fprintf-posix-tests (Files): Add them.
31990         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31991
31992 2009-12-19  Eric Blake  <ebb9@byu.net>
31993
31994         dirfd: fix prototype
31995         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
31996         * lib/dirfd.c (dirfd): Likewise.
31997
31998         canonicalize: reduce memory usage
31999         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
32000         allocation to size.
32001         Reported by Solar Designer <solar@openwall.com>.
32002
32003 2009-12-19  Bruno Haible  <bruno@clisp.org>
32004
32005         New module attribute 'Applicability'.
32006         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
32007         * gnulib-tool: New option --extract-applicability.
32008         (func_usage): Document it.
32009         (sed_extract_prog): Recognize it.
32010         (func_get_applicability): New function.
32011         (func_import): Generalize handling of 'link-warning' module.
32012         * modules/link-warning (Applicability): New section.
32013         * modules/arg-nonnull (Applicability): New section.
32014         Repoted by Simon Josefsson <simon@josefsson.org>.
32015
32016 2009-12-19  Bruno Haible  <bruno@clisp.org>
32017
32018         fflush: tweak
32019         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
32020         * lib/fseeko.c (rpl_fseeko): Likewise.
32021
32022 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
32023
32024         * lib/gl_list.h: Fix typo in comment.
32025
32026 2009-12-16  Eric Blake  <ebb9@byu.net>
32027
32028         fcntl: use to simplify other modules
32029         * modules/cloexec (Depends-on): Add fcntl.
32030         * modules/fchdir (Depends-on): Likewise.
32031         * modules/fd-safer-flag (Depends-on): Likewise.
32032         * modules/unistd-safer (Depends-on): Likewise.
32033         * modules/dup3 (configure.ac): Set module indicator.
32034         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
32035         missing.
32036         * lib/fchdir.c (_gl_register_dup): Fix comment.
32037         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
32038         * lib/dup-safer.c (dup_safer): Likewise.
32039         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
32040         * lib/dup3.c (dup3): Likewise.
32041         * tests/test-fchdir.c (main): Enhance test.
32042         Fixes a dup_cloexec bug reported by Ondřej Vašík.
32043
32044         fcntl: port portions of fcntl to mingw
32045         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
32046         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
32047         replacement for mingw.
32048         * modules/fcntl (Description): Update.
32049         (Depends-on): Add dup2.
32050         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
32051         * modules/fcntl-h (Makefile.am): Substitute it.
32052         * lib/fcntl.in.h (fcntl): Update declaration.
32053         (F_DUPFD, F_GETFD): New macros, when needed.
32054         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32055         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
32056         * tests/test-fcntl.c (check_flags, main): Enhance test for items
32057         we now guarantee.
32058
32059         fcntl: work around cygwin bug in F_DUPFD
32060         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
32061         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
32062         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
32063         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
32064         * doc/posix-functions/fcntl.texi (fcntl): Document it.
32065
32066         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
32067         * modules/fcntl (Files): List new files.
32068         (configure.ac): Run a test.
32069         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
32070         * lib/fcntl.c (rpl_fcntl): Likewise.
32071         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
32072         (gl_FCNTL_H): Always replace fcntl.h.
32073         * modules/fcntl-h (Makefile.am): Substitute witnesses.
32074         * lib/fcntl.in.h (fcntl): Declare replacement.
32075         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
32076         needed, plus a witness.
32077         * doc/posix-functions/fcntl.texi (fcntl): Document this.
32078         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
32079         * tests/test-fcntl.c: New file.
32080         * modules/fcntl-tests: Likewise.
32081
32082         binary-io: avoid potential compilation warning
32083         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
32084         directives.
32085
32086         fflush: avoid compilation error on NetBSD
32087         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
32088         between off_t and fpos_t, since the latter is sometimes a struct.
32089         * lib/fseeko.c (rpl_fseeko): Likewise.
32090         Reported by Alexander Nasonov <alnsn@yandex.ru>.
32091
32092 2009-12-15  Eric Blake  <ebb9@byu.net>
32093
32094         fcntl-h, stdio, sys_ioctl: fix declarations
32095         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
32096         function must not take arguments.
32097         * lib/sys_ioctl.in.h (ioctl): Likewise.
32098         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
32099         (open): Add a link warning.
32100
32101 2009-12-15  Jim Meyering  <meyering@redhat.com>
32102
32103         areadlink, areadlink-with-size: relax license to LGPLv2+
32104         * modules/areadlink (License): Relax to LGPLv2+.
32105         * modules/areadlink-with-size (License): Likewise.
32106
32107 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
32108             Bruno Haible  <bruno@clisp.org>
32109
32110         *printf: Fix memory leak.
32111         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
32112         * lib/vfprintf.c (vfprintf): Likewise.
32113         * lib/dprintf.c (dprintf): Likewise.
32114         * lib/vdprintf.c (vdprintf): Likewise.
32115
32116 2009-12-14  Eric Blake  <ebb9@byu.net>
32117
32118         accept4: adjust module dependencies
32119         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
32120
32121         utimens: one more try at avoiding compiler warning
32122         * lib/utimens.c (lutimens): Lower scope of result.
32123
32124 2009-12-13  Bruno Haible  <bruno@clisp.org>
32125
32126         Move the malloc checking from module 'list' to new module 'xlist'.
32127         * modules/xlist: New file.
32128         * lib/gl_xlist.h: New file.
32129         * lib/gl_xlist.c: New file.
32130         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
32131         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
32132         gl_list_add_last, gl_list_add_before, gl_list_add_after,
32133         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
32134         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
32135         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
32136         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
32137         gl_sortedlist_nx_add): New declarations.
32138         (struct gl_list_implementation): Rename and change methods accordingly.
32139         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
32140         (gl_list_nx_create): Renamed from gl_list_create.
32141         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
32142         (gl_list_nx_set_at): Renamed from gl_list_set_at.
32143         (gl_list_nx_add_first): Renamed from gl_list_add_first.
32144         (gl_list_nx_add_last): Renamed from gl_list_add_last.
32145         (gl_list_nx_add_before): Renamed from gl_list_add_before.
32146         (gl_list_nx_add_after): Renamed from gl_list_add_after.
32147         (gl_list_nx_add_at): Renamed from gl_list_add_at.
32148         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
32149         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
32150         gl_list_create_empty.
32151         (gl_list_nx_create): Renamed from gl_list_create.
32152         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
32153         (gl_list_nx_set_at): Renamed from gl_list_set_at.
32154         (gl_list_nx_add_first): Renamed from gl_list_add_first.
32155         (gl_list_nx_add_last): Renamed from gl_list_add_last.
32156         (gl_list_nx_add_before): Renamed from gl_list_add_before.
32157         (gl_list_nx_add_after): Renamed from gl_list_add_after.
32158         (gl_list_nx_add_at): Renamed from gl_list_add_at.
32159         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
32160         * lib/gl_array_list.c: Don't include xalloc.h.
32161         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
32162         NULL upon out-of-memory.
32163         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
32164         out-of-memory.
32165         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
32166         Change return type to 'int'.
32167         (gl_array_nx_set_at): Renamed from gl_array_set_at.
32168         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
32169         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
32170         upon out-of-memory.
32171         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
32172         upon out-of-memory.
32173         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
32174         upon out-of-memory.
32175         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
32176         upon out-of-memory.
32177         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
32178         out-of-memory.
32179         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
32180         Update.
32181         (gl_array_list_implementation): Update.
32182         * lib/gl_carray_list.c: Don't include xalloc.h.
32183         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
32184         Return NULL upon out-of-memory.
32185         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
32186         out-of-memory.
32187         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
32188         Change return type to 'int'.
32189         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
32190         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
32191         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
32192         upon out-of-memory.
32193         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
32194         upon out-of-memory.
32195         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
32196         out-of-memory.
32197         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
32198         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
32199         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
32200         Update.
32201         (gl_carray_list_implementation): Update.
32202         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
32203         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
32204         gl_linked_create_empty. Return NULL upon out-of-memory.
32205         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
32206         out-of-memory.
32207         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
32208         Change return type to 'int'. Return -1 upon out-of-memory.
32209         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
32210         out-of-memory.
32211         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
32212         upon out-of-memory.
32213         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
32214         upon out-of-memory.
32215         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
32216         NULL upon out-of-memory.
32217         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
32218         upon out-of-memory.
32219         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
32220         out-of-memory.
32221         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
32222         Update.
32223         * lib/gl_linked_list.c: Don't include xalloc.h.
32224         (gl_linked_list_implementation): Update.
32225         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
32226         (add_to_bucket): Change return type to 'int'.
32227         (gl_linkedhash_list_implementation): Update.
32228         * lib/gl_anytree_list1.h (free_subtree): New function.
32229         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
32230         gl_tree_create_empty. Return NULL upon out-of-memory.
32231         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
32232         Change return type to 'int'. Return -1 upon out-of-memory.
32233         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
32234         out-of-memory.
32235         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
32236         (gl_tree_remove_node): New function, moved here from
32237         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
32238         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
32239         Update.
32240         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
32241         malloc, not xmalloc. Return NULL upon out-of-memory.
32242         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
32243         out-of-memory.
32244         (gl_tree_remove_node_from_tree): New function, extracted from
32245         gl_tree_remove_node.
32246         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
32247         upon out-of-memory.
32248         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
32249         out-of-memory.
32250         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
32251         upon out-of-memory.
32252         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
32253         upon out-of-memory.
32254         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
32255         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
32256         not xmalloc. Return NULL upon out-of-memory.
32257         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
32258         out-of-memory.
32259         (gl_tree_remove_node_from_tree): New function, extracted from
32260         gl_tree_remove_node.
32261         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
32262         upon out-of-memory.
32263         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
32264         out-of-memory.
32265         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
32266         upon out-of-memory.
32267         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
32268         upon out-of-memory.
32269         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
32270         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
32271         gl_anytree_list1.h before gl_anyavltree_list2.h.
32272         (gl_avltree_list_implementation): Update.
32273         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
32274         gl_anytree_list1.h before gl_anyavltree_list2.h.
32275         (gl_rbtree_list_implementation): Update.
32276         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
32277         Change return type to 'int'. Return -1 upon out-of-memory. Use
32278         __builtin_expect.
32279         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
32280         (gl_avltreehash_list_implementation): Update.
32281         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
32282         (gl_rbtreehash_list_implementation): Update.
32283         * modules/array-list (Depends-on): Remove xalloc.
32284         * modules/carray-list (Depends-on): Likewise.
32285         * modules/linked-list (Depends-on): Likewise.
32286         * modules/linkedhash-list (Depends-on): Likewise.
32287         * modules/avltree-list (Depends-on): Likewise.
32288         * modules/rbtree-list (Depends-on): Likewise.
32289         * modules/avltreehash-list (Depends-on): Likewise.
32290         * modules/rbtreehash-list (Depends-on): Likewise.
32291
32292         * modules/xsublist: New file.
32293         * lib/gl_xsublist.h: New file.
32294         * lib/gl_xsublist.c: New file.
32295         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
32296         (gl_sublist_nx_create): New declaration.
32297         * lib/gl_sublist.c: Don't include xalloc.h.
32298         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
32299         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
32300         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
32301         Change return type to 'int'. Return -1 upon out-of-memory.
32302         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
32303         upon out-of-memory.
32304         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
32305         NULL upon out-of-memory.
32306         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
32307         upon out-of-memory.
32308         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
32309         NULL upon out-of-memory.
32310         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
32311         NULL upon out-of-memory.
32312         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
32313         upon out-of-memory.
32314         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
32315         (gl_sublist_list_implementation): Update.
32316         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
32317         upon out-of-memory.
32318         * modules/sublist (Depends-on): Remove xalloc.
32319
32320         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
32321         * tests/test-carray_list.c: Likewise.
32322         * tests/test-linked_list.c: Likewise.
32323         * tests/test-linkedhash_list.c: Likewise.
32324         * tests/test-avltree_list.c: Likewise.
32325         * tests/test-rbtree_list.c: Likewise.
32326         * tests/test-avltreehash_list.c: Likewise.
32327         * tests/test-rbtreehash_list.c: Likewise.
32328         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
32329         * modules/carray-list-tests (Makefile.am): Likewise.
32330         * modules/linked-list-tests (Makefile.am): Likewise.
32331         * modules/linkedhash-list-tests (Makefile.am): Likewise.
32332         * modules/avltree-list-tests (Makefile.am): Likewise.
32333         * modules/rbtree-list-tests (Makefile.am): Likewise.
32334         * modules/avltreehash-list-tests (Makefile.am): Likewise.
32335         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
32336
32337         * NEWS: Mention the changes.
32338
32339         * lib/clean-temp.c: Include gl_xlist.h.
32340         * modules/clean-temp (Depends-on): Add xlist.
32341
32342         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
32343         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
32344
32345         * tests/test-array_oset.c: Include gl_xlist.h.
32346         * modules/array-oset-tests (Depends-on): Add xlist.
32347
32348         Reported by José E. Marchesi <jemarch@gnu.org>.
32349
32350 2009-12-13  Bruno Haible  <bruno@clisp.org>
32351
32352         Move the malloc checking from module 'oset' to new module 'xoset'.
32353         * modules/xoset: New file.
32354         * lib/gl_xoset.h: New file.
32355         * lib/gl_xoset.c: New file.
32356         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
32357         declarations.
32358         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
32359         (struct gl_oset_implementation): Rename and change methods accordingly.
32360         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
32361         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
32362         'int'. Mark as __warn_unused_result__.
32363         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
32364         gl_oset_create_empty.
32365         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
32366         'int'.
32367         * lib/gl_array_oset.c: Don't include xalloc.h.
32368         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
32369         malloc, not xmalloc.
32370         (grow): Change return type to 'int'. Don't call xalloc_die.
32371         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
32372         to 'int'.
32373         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
32374         'int'.
32375         (gl_array_oset_implementation): Update.
32376         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
32377         gl_tree_create_empty.
32378         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
32379         'int'.
32380         * lib/gl_avltree_oset.c: Don't include xalloc.h.
32381         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
32382         xmalloc.
32383         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
32384         not xmalloc.
32385         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
32386         xmalloc.
32387         (gl_avltree_oset_implementation): Update.
32388         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
32389         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
32390         xmalloc.
32391         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
32392         not xmalloc.
32393         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
32394         xmalloc.
32395         (gl_rbtree_oset_implementation): Update.
32396         * modules/array-oset (Depends-on): Remove xalloc.
32397         * modules/avltree-oset (Depends-on): Likewise.
32398         * modules/rbtree-oset (Depends-on): Likewise.
32399         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
32400         * tests/test-avltree_oset.c: Likewise.
32401         * tests/test-rbtree_oset.c: Likewise.
32402         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
32403         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
32404         * modules/rbtree-oset-tests (Makefile.am): Likewise.
32405         * NEWS: Mention the change.
32406
32407 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
32408
32409         maint.mk: allow a project to override release-prep commands
32410         * top/maint.mk (alpha, beta, stable): Move release-preparatory
32411         commands into a new rule.
32412         (release-prep): New rule.
32413         (release-prep-hook): New overridable variable.
32414
32415 2009-12-13  Bruno Haible  <bruno@clisp.org>
32416
32417         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
32418
32419 2009-12-13  Jim Meyering  <meyering@redhat.com>
32420
32421         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
32422         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
32423
32424 2009-12-12  Bruno Haible  <bruno@clisp.org>
32425
32426         duplocale: Tweak.
32427         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
32428
32429 2009-12-12  Karl Berry  <karl@gnu.org>
32430
32431         * config/srclist.txt (strtoll.c): tab changes, no more sync.
32432
32433 2009-12-12  Bruno Haible  <bruno@clisp.org>
32434
32435         * m4/po.m4: Undo incorrect untabification.
32436
32437 2009-12-12  Bruno Haible  <bruno@clisp.org>
32438
32439         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
32440         * modules/c-strtod (Depends-on): Add locale.
32441         * modules/c-strtold (Depends-on): Likewise.
32442
32443 2009-12-12  Bruno Haible  <bruno@clisp.org>
32444
32445         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
32446
32447 2009-12-11  Eric Blake  <ebb9@byu.net>
32448
32449         setenv: relax requirement in light of POSIX ruling
32450         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
32451         not NULL.
32452         * tests/test-setenv.c (main): Relax test.
32453         * tests/test-unsetenv.c (main): Likewise.
32454         * doc/posix-functions/setenv.texi (setenv): Document this.
32455         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
32456
32457 2009-12-11  Bruno Haible  <bruno@clisp.org>
32458
32459         New module 'fd-safer-flag'.
32460         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
32461         * lib/dup-safer.c (dup_safer_flag): Remove function.
32462         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
32463         * lib/fd-safer.c (fd_safer_flag): Remove function.
32464         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
32465         * modules/cloexec (configure.ac): Drop indicator macro.
32466         * modules/fd-safer-flag: New file.
32467         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
32468         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
32469         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
32470
32471 2009-12-11  Bruno Haible  <bruno@clisp.org>
32472
32473         Tests for module 'nl_langinfo'.
32474         * modules/nl_langinfo-tests: New file.
32475         * tests/test-nl_langinfo.sh: New file.
32476         * tests/test-nl_langinfo.c: New file.
32477
32478         New module 'nl_langinfo'.
32479         * lib/nl_langinfo.c: New file.
32480         * m4/nl_langinfo.m4: New file.
32481         * modules/nl_langinfo: New file.
32482         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
32483
32484 2009-12-11  Bruno Haible  <bruno@clisp.org>
32485
32486         Tests for module 'langinfo'.
32487         * modules/langinfo-tests: New file.
32488         * tests/test-langinfo.c: New file.
32489
32490         New module 'langinfo'.
32491         * lib/langinfo.in.h: New file.
32492         * m4/langinfo_h.m4: New file.
32493         * modules/langinfo: New file.
32494         * doc/posix-headers/langinfo.texi: Mention the new module.
32495
32496 2009-12-11  Bruno Haible  <bruno@clisp.org>
32497
32498         * lib/config.charset: Untabify.
32499
32500 2009-12-11  Bruno Haible  <bruno@clisp.org>
32501
32502         * modules/unistd-safer (configure.ac): Drop indicator macro.
32503
32504 2009-12-11  Bruno Haible  <bruno@clisp.org>
32505
32506         Move pipe2-safer code to its own file.
32507         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
32508         * lib/pipe-safer.c (pipe2_safer): Remove function.
32509         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
32510         (Makefile.am): Add it to lib_SOURCES.
32511
32512 2009-12-10  Bruno Haible  <bruno@clisp.org>
32513
32514         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
32515
32516 2009-12-10  Bruno Haible  <bruno@clisp.org>
32517
32518         Declare which arguments expect non-NULL values, for GCC and clang.
32519         * build-aux/arg-nonnull.h: New file.
32520         * modules/arg-nonnull: New file.
32521         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
32522         (inet_ntop, inet_pton): Use it.
32523         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
32524         (closedir, dirfd, opendir, scandir, alphasort): Use it.
32525         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
32526         (open, openat): Use it.
32527         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
32528         (fnmatch): Use it.
32529         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
32530         (getopt, getopt_long, getopt_long_only): Use it.
32531         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
32532         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
32533         Use it.
32534         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
32535         (iconv_open): Use it.
32536         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
32537         (strtoimax, strtoumax): Use it.
32538         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
32539         (duplocale): Use it.
32540         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
32541         (frexp, frexpl): Use it.
32542         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
32543         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
32544         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
32545         (tsearch, tfind, tdelete, twalk): Use it.
32546         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
32547         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
32548         sigpending): Use it.
32549         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
32550         (posix_spawn, posix_spawnp, posix_spawnattr_init,
32551         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
32552         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
32553         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
32554         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
32555         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
32556         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
32557         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
32558         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
32559         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
32560         Use it.
32561         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
32562         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
32563         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
32564         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
32565         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
32566         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
32567         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
32568         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
32569         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
32570         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
32571         strtoull, unsetenv): Use it.
32572         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
32573         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
32574         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
32575         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
32576         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
32577         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
32578         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
32579         (strcasecmp, strncasecmp): Use it.
32580         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
32581         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
32582         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
32583         rpl_setsockopt): Use it.
32584         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
32585         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
32586         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
32587         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
32588         (gettimeofday): Use it.
32589         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
32590         (times): Use it.
32591         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
32592         (uname): Use it.
32593         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
32594         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
32595         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
32596         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
32597         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
32598         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
32599         unlinkat, write): Use it.
32600         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
32601         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
32602         * lib/argv-iter.h: Include arg-nonnull.h.
32603         (_ATTRIBUTE_NONNULL_): Remove macro.
32604         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
32605         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
32606         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
32607         optimization.
32608         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
32609         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
32610         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
32611         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
32612         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
32613         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
32614         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
32615         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
32616         * modules/arpa_inet (Depends-on): Add arg-nonnull.
32617         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
32618         * modules/dirent (Depends-on): Add arg-nonnull.
32619         (Makefile.am): Insert arg-nonnull.h into dirent.h.
32620         * modules/fcntl-h (Depends-on): Add arg-nonnull.
32621         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
32622         * modules/fnmatch (Depends-on): Add arg-nonnull.
32623         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
32624         * modules/getopt-posix (Depends-on): Add arg-nonnull.
32625         (Makefile.am): Insert arg-nonnull.h into getopt.h.
32626         * modules/glob (Depends-on): Add arg-nonnull.
32627         (Makefile.am): Insert arg-nonnull.h into glob.h.
32628         * modules/iconv_open (Depends-on): Add arg-nonnull.
32629         (Makefile.am): Insert arg-nonnull.h into iconv.h.
32630         * modules/inttypes (Depends-on): Add arg-nonnull.
32631         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
32632         * modules/locale (Depends-on): Add arg-nonnull.
32633         (Makefile.am): Insert arg-nonnull.h into locale.h.
32634         * modules/math (Depends-on): Add arg-nonnull.
32635         (Makefile.am): Insert arg-nonnull.h into math.h.
32636         * modules/netdb (Depends-on): Add arg-nonnull.
32637         (Makefile.am): Insert arg-nonnull.h into netdb.h.
32638         * modules/search (Depends-on): Add arg-nonnull.
32639         (Makefile.am): Insert arg-nonnull.h into search.h.
32640         * modules/signal (Depends-on): Add arg-nonnull.
32641         (Makefile.am): Insert arg-nonnull.h into signal.h.
32642         * modules/spawn (Depends-on): Add arg-nonnull.
32643         (Makefile.am): Insert arg-nonnull.h into spawn.h.
32644         * modules/stdio (Depends-on): Add arg-nonnull.
32645         (Makefile.am): Insert arg-nonnull.h into stdio.h.
32646         * modules/stdlib (Depends-on): Add arg-nonnull.
32647         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
32648         * modules/string (Depends-on): Add arg-nonnull.
32649         (Makefile.am): Insert arg-nonnull.h into string.h.
32650         * modules/strings (Depends-on): Add arg-nonnull.
32651         (Makefile.am): Insert arg-nonnull.h into strings.h.
32652         * modules/sys_socket (Depends-on): Add arg-nonnull.
32653         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
32654         * modules/sys_stat (Depends-on): Add arg-nonnull.
32655         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
32656         * modules/sys_time (Depends-on): Add arg-nonnull.
32657         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
32658         * modules/sys_times (Depends-on): Add arg-nonnull.
32659         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
32660         * modules/sys_utsname (Depends-on): Add arg-nonnull.
32661         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
32662         * modules/time (Depends-on): Add arg-nonnull.
32663         (Makefile.am): Insert arg-nonnull.h into time.h.
32664         * modules/unistd (Depends-on): Add arg-nonnull.
32665         (Makefile.am): Insert arg-nonnull.h into unistd.h.
32666         * modules/wchar (Depends-on): Add arg-nonnull.
32667         (Makefile.am): Insert arg-nonnull.h into wchar.h.
32668         * modules/argv-iter (Depends-on): Add arg-nonnull.
32669         * tests/test-canonicalize.c (null_ptr): New function.
32670         (main): Use it.
32671         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
32672         (main): Use it.
32673         * tests/test-memmem.c (null_ptr): New function.
32674         (main): Use it.
32675         Reported by Jim Meyering.
32676
32677 2009-12-10  Bruno Haible  <bruno@clisp.org>
32678
32679         Use spaces for indentation, not tabs.
32680         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
32681         * m4/*.m4: Untabify.
32682         * build-aux/*.h: Untabify.
32683         * tests/**/*.[hc]: Untabify.
32684         * README: New section "Indent with spaces, not TABs", based on
32685         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
32686         * NEWS: Mention the change.
32687
32688 2009-12-10  Bruno Haible  <bruno@clisp.org>
32689
32690         pty test: Fix link error.
32691         * modules/pty-tests (Makefile.am): Add the default LDADD value to
32692         test_pty_LDADD.
32693
32694 2009-12-07  Simon Josefsson  <simon@josefsson.org>
32695
32696         * modules/pty: New file.
32697         * modules/pty-tests: New file.
32698         * m4/pty.m4: New file.
32699         * tests/test-pty.c: New file.
32700         * doc/glibc-headers/pty.texi: Modified.
32701         * doc/glibc-functions/forkpty.texi: Modified.
32702         * doc/glibc-functions/openpty.texi: Modified.
32703
32704 2009-12-10  Bruno Haible  <bruno@clisp.org>
32705
32706         Avoid syntax error in C++ mode.
32707         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
32708
32709 2009-12-10  Bruno Haible  <bruno@clisp.org>
32710
32711         Use sed with option -e.
32712         * gnulib-tool (func_version, func_emit_copyright_notice,
32713         func_emit_initmacro_end, func_import, func_create_testdir): Pass
32714         option -e to sed.
32715         * modules/link-warning (Makefile.am): Likewise.
32716
32717 2009-12-10  Jim Meyering  <meyering@redhat.com>
32718
32719         mgetgroups: do not write bytes beyond end of malloc'd buffer
32720         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
32721         username, we call getgroups with a one-element-shorter buffer,
32722         but still told it the length was original, max_n_groups.
32723
32724 2009-12-09  Eric Blake  <ebb9@byu.net>
32725
32726         cloexec: relax license
32727         * modules/cloexec (Maintainer): Add myself.
32728         (License): Use LGPL, not GPL.
32729
32730         link-warning: optimize generation
32731         * modules/link-warning (Makefile.am): Reduce process usage.
32732
32733 2009-12-09  Bruno Haible  <bruno@clisp.org>
32734
32735         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
32736         workaround was added on 2009-11-17.
32737
32738 2009-12-09  Jim Meyering  <meyering@redhat.com>
32739             Bruno Haible  <bruno@clisp.org>
32740
32741         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
32742         * modules/link-warning (Makefile.am): Make the comment-removing sed
32743         command more robust in the face of bootstrap-prepended comment lines.
32744
32745 2009-12-09  Bruno Haible  <bruno@clisp.org>
32746
32747         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
32748         most one group.
32749
32750 2009-12-09  Simon Josefsson <simon@josefsson.org>
32751             Bruno Haible  <bruno@clisp.org>
32752
32753         * build-aux/link-warning.h: Add copyright notice.
32754         * modules/link-warning (Makefile.am): Generate link-warning.h from
32755         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
32756         * NEWS: Mention change in link-warning module.
32757         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
32758         * modules/dirent (Makefile.am): Add dependency to dirent.h.
32759         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
32760         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
32761         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
32762         * modules/math (Makefile.am): Add dependency to math.h.
32763         * modules/search (Makefile.am): Add dependency to search.h.
32764         * modules/signal (Makefile.am): Add dependency to signal.h.
32765         * modules/spawn (Makefile.am): Add dependency to spawn.h.
32766         * modules/stdio (Makefile.am): Add dependency to stdio.h.
32767         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
32768         * modules/string (Makefile.am): Add dependency to string.h.
32769         * modules/strings (Makefile.am): Add dependency to strings.h.
32770         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
32771         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
32772         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
32773         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
32774         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
32775         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
32776         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
32777         * modules/unistd (Makefile.am): Add dependency to unistd.h.
32778         * modules/wchar (Makefile.am): Add dependency to wchar.h.
32779
32780 2009-12-09  Bruno Haible  <bruno@clisp.org>
32781
32782         fchdir: Optimize away rpl_fstat when possible.
32783         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
32784         REPLACE_OPEN_DIRECTORY.
32785         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
32786
32787 2009-12-09  Bruno Haible  <bruno@clisp.org>
32788
32789         * lib/fchdir.c: Update comment.
32790
32791 2009-12-09  Bruno Haible  <bruno@clisp.org>
32792
32793         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
32794
32795 2009-12-08  Eric Blake  <ebb9@byu.net>
32796
32797         fchdir: avoid memory leak on re-registration.
32798         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
32799
32800 2009-12-08  Jim Meyering  <meyering@redhat.com>
32801
32802         init.sh: avoid Solaris 10 /bin/sh portability problem
32803         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
32804         sourced script:
32805           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
32806           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
32807           bar
32808         tests/init.sh relied on that, accepting a --set-path=DIR argument,
32809         and two tests used that idiom.
32810         * tests/init.sh: Update suggested usage comments.
32811         (path_prepend_): New function, to be used in place
32812         of the --src-path=DIR option.
32813         (setup_): Move PATH-prepending code into path_prepend_.
32814         * tests/test-pread.sh: Adapt to new usage.
32815         * tests/test-xalloc-die.sh: Likewise.
32816
32817 2009-12-08  Simon Josefsson  <simon@josefsson.org>
32818
32819         * doc/gnulib.texi (Glibc pty.h): Add.
32820         * doc/glibc-functions/forkpty.texi: Add.
32821         * doc/glibc-functions/openpty.texi: Add.
32822         Suggested by Bruno Haible.
32823
32824 2009-12-08  Eric Blake  <ebb9@byu.net>
32825
32826         fchdir: fix logic bugs
32827         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
32828         * tests/test-fchdir.c (main): Enhance test.
32829         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
32830         is in use.
32831
32832         dup2: fix logic bugs
32833         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
32834         REPLACE_DUP2 to decide when rpl_dup2 is needed.
32835         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
32836         exists.
32837         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
32838
32839 2009-12-07  Eric Blake  <ebb9@byu.net>
32840
32841         unlink: fix m4 detection
32842         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
32843
32844         unistd-safer: add unit test
32845         * modules/unistd-safer-tests: New file.
32846         * tests/test-dup-safer.c: Likewise.
32847         * tests/test-cloexec.c (setmode): Avoid compiler warning.
32848         * tests/test-dup2.c (setmode): Likewise.
32849         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
32850
32851         cloexec: preserve text vs. binary across dup_cloexec
32852         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
32853         mode.
32854         * modules/dup2-tests (Depends-on): Add binary-io.
32855         * modules/cloexec-tests (Depends-on): Likewise.
32856         * tests/test-dup2.c (setmode, is_mode): New helpers.
32857         (main): Add tests that translation mode is preserved.
32858         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
32859         Reported by Bruno Haible.
32860
32861         mgetgroups: reduce duplicate listings
32862         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
32863         resulting array.
32864         * tests/test-chown.h (test_chown): Simplify client.
32865         * tests/test-lchown.h (test_lchown): Likewise.
32866
32867 2009-12-06  Bruno Haible  <bruno@clisp.org>
32868
32869         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
32870         value.
32871
32872 2009-12-06  Bruno Haible  <bruno@clisp.org>
32873
32874         * lib/progname.c: Include stdio.h, stdlib.h.
32875         (set_program_name): Reject a NULL argument.
32876
32877 2009-12-05  Eric Blake  <ebb9@byu.net>
32878
32879         pipe2-safer: new module
32880         * modules/pipe2-safer: New file.
32881         * lib/unistd-safer.h (pipe2_safer): New prototype.
32882         * lib/unistd--.h (pipe2): New wrapper.
32883         * lib/pipe-safer.c (pipe2_safer): New function.
32884         * modules/pipe (Depends-on): Add pipe2-safer.
32885         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
32886
32887         stdlib-safer: preserve cloexec flag for mkostemp[s]
32888         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
32889         fd_safer_flag.
32890
32891         unistd-safer: allow preservation of cloexec status via flag
32892         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
32893         prototypes.
32894         * lib/dup-safer.c (dup_safer_flag): New function.
32895         * lib/fd-safer.c (fd_safer_flag): Likewise.
32896         * modules/cloexec (configure.ac): Set witness.
32897
32898         test-dup2: enhance test
32899         * modules/dup2-tests (Depends-on): Add cloexec.
32900         * tests/test-dup2.c (main): Enhance test.
32901
32902         cloexec: add dup_cloexec
32903         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
32904         header and comments.
32905         * lib/cloexec.c (set_cloexec_flag): Add comments.
32906         (dup_cloexec): New function, with mingw implementation borrowed
32907         from...
32908         * lib/w32spawn.h (dup_noinherit): ...here.
32909         * modules/execute (Depends-on): Add cloexec.
32910         * modules/pipe (Depends-on): Likewise.
32911         * modules/cloexec (Depends-on): Add dup2.
32912         * modules/cloexec-tests (Files): New file.
32913         * tests/test-cloexec.c: Likewise.
32914
32915         test-xalloc-die: fix test for mingw
32916         * modules/xalloc-die-tests (Files): Add tests/init.sh.
32917         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
32918         directory and .exe suffix off argv[0] output.
32919
32920         test-fseeko: fix test for mingw
32921         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
32922         than undefining fseek, so test will pass on mingw.
32923
32924 2009-12-05  Bruno Haible  <bruno@clisp.org>
32925
32926         * lib/progname.h (set_program_name): Clarify specification.
32927         * lib/progname.c (set_program_name): Likewise.
32928         Reported by Jim Meyering.
32929
32930 2009-12-05  Jim Meyering  <meyering@redhat.com>
32931
32932         maint.mk: backslash-escape parens in default regexp
32933         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
32934         backslash-escape the literal parentheses.
32935
32936         maint.mk: news-date-check: use grep -E
32937         * top/maint.mk (today): Define a Make variable, not a...
32938         (news-date-check): ...shell variable.
32939         (news-date-regexp): Use the Make variable.
32940         Use grep's -E option.  Change the failing diagnostic to mention
32941         the variable, $(news-date-regexp).
32942
32943 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
32944
32945         maintainer-makefile: allow customization of NEWS entry format
32946         * top/maint.mk (news-date-regexp): New overridable variable.
32947         (news-date-check): Use it.
32948
32949 2009-12-04  Eric Blake  <ebb9@byu.net>
32950
32951         mgetgroups: add xgetgroups, and avoid ENOSYS failures
32952         * lib/mgetgroups.h (xgetgroups): New prototype.
32953         * lib/mgetgroups.c (xgetgroups): New wrapper.
32954         (mgetgroups): Handle ENOSYS.
32955         * modules/mgetgroups (Depends-on): Add realloc.
32956         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
32957
32958         mgetgroups: avoid argument promotion issues with -1
32959         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
32960         for invalid gid_t.
32961         * tests/test-chown.h (getegid, test_chown): Likewise.
32962         * tests/test-lchown.h (getegid, test_lchown): Likewise.
32963
32964 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
32965
32966         exclude: Fix header file problems.
32967         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
32968
32969 2009-12-01  Jim Meyering  <meyering@redhat.com>
32970
32971         fts: fts_open: do not let an empty string cause immediate failure
32972         This is required in support of GNU rm, for which the command
32973         "rm A '' B" must process and remove both A and B, in spite of
32974         the empty string argument.
32975         * lib/fts.c (fts_open): Do not let the presence of an empty string
32976         cause fts_open to fail immediately.  Most fts-using tools must be
32977         able to process all arguments, in order, and can be expected to
32978         diagnose such arguments themselves.
32979
32980 2009-11-30  Eric Blake  <ebb9@byu.net>
32981
32982         utimens: fix compilation error
32983         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
32984         Declare variable at right scope.
32985
32986 2009-11-29  Jim Meyering  <meyering@redhat.com>
32987
32988         bootstrap: handle perl-5.11's changed --version output
32989         * build-aux/bootstrap (get_version): Handle perl separately,
32990         since perl-5.11's --version output is different.
32991
32992 2009-11-28  Jim Meyering  <meyering@redhat.com>
32993
32994         userspec: depend on the inttostr module, too
32995         * modules/userspec (Depends-on): Add inttostr.
32996
32997         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
32998         * lib/userspec.c (parse_with_separator): Do not accept a user ID
32999         number of MAXUID when it evaluates to (uid_t) -1.
33000         Likewise for group ID.  Reported by Matt McCutchen in
33001         <http://savannah.gnu.org/bugs/?28113>
33002
33003         userspec: reformat to use spaces, not TABs
33004         * lib/userspec.c: Expand TABs to spaces.
33005         Add Emacs' "indent-tabs-mode: nil" hint.
33006
33007 2009-11-27  Eric Blake  <ebb9@byu.net>
33008
33009         getopt-gnu: flush out another BSD bug
33010         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
33011         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
33012         flush out BSD bug.
33013         * tests/test-getopt.h (test_getopt): End lists with NULL.
33014         * tests/test-getopt_long.h (test_getopt_long): Likewise.
33015         (test_getopt_long_posix): Enhance test.
33016         * modules/getopt-posix-tests (Depends-on): Add stdbool.
33017         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
33018         getopt-gnu.
33019         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33020         Likewise.
33021
33022 2009-11-27  Simon Josefsson  <simon@josefsson.org>
33023
33024         * modules/idpriv-droptemp-tests (Notice): Fix text.
33025
33026 2009-11-27  Jim Meyering  <meyering@redhat.com>
33027
33028         test-xalloc-die: avoid spurious failure due to libtool argv difference
33029         In a libtool-enabled project, this test would fail due to a difference
33030         in the emitted program name, e.g.,
33031         -test-xalloc-die: memory exhausted
33032         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
33033         Use program to avoid that.
33034         * modules/xalloc-die-tests (Depends-on): Add progname.
33035         * tests/test-xalloc-die.c: Include progname.h".
33036         (program_name): Remove decl.
33037         (main): Call set_program_name.
33038         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
33039
33040 2009-11-26  Richard Jones  <rjones@redhat.com>
33041
33042         w32sock: leave win32 error in place.
33043         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
33044
33045 2009-11-26  Eric Blake  <ebb9@byu.net>
33046
33047         init.sh: suggest to use skip_ and fail_ functions in comments
33048         * tests/init.sh: Add a sentence.
33049
33050 2009-11-25  Bruno Haible  <bruno@clisp.org>
33051
33052         init.sh: add documentation in comments
33053         * tests/init.sh: Add some developer and user documentation.
33054
33055 2009-11-26  Jim Meyering  <meyering@redhat.com>
33056
33057         init.sh: accommodate even those who specify bogus srcdir manually
33058         * tests/init.sh: Normally, srcdir is guaranteed by automake and
33059         configure-time tests to be sanitized, so that there is no need to
33060         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
33061         (with no double quotes) suffices.  However, since tests may be
33062         invoked manually, and since you may explicitly set srcdir to the
33063         name of a directory containing spaces, do quote its uses here.
33064         * tests/test-pread.sh: Likewise.
33065         Suggested by Bruno Haible.
33066
33067         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
33068         * tests/test-pread.sh: Write no data into the pipe, because
33069         test-pread actually reads none.  This avoids a diagnostic,
33070         "bash: echo: write error: Broken pipe", that arises in the unusual
33071         event something is ignoring SIGPIPE, and might be interpreted
33072         as some sort of failure.  Reported by Bruno Haible.
33073
33074 2009-11-25  Jim Meyering  <meyering@redhat.com>
33075
33076         test-pread: cover failure with ESPIPE and EINVAL
33077         * tests/test-pread.c (main): Test for failure, too.
33078         * tests/test-pread.sh: Invoke with stdin on a pipe.
33079         Suggested by Eric Blake.
33080
33081         pread: improvement and fix
33082         * modules/pread (Depends-on): Depend on lseek, for portability to
33083         e.g., mingw.  Suggested by Eric Blake.
33084         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
33085
33086         unistd.in.h: correct declaration of pread
33087         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
33088         Reported by Richard W.M. Jones.
33089
33090         test-pread.sh: distribute the test script
33091         * modules/pread-tests (Files): Include test-pread.sh.
33092
33093         test-pread.sh: clean up
33094         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
33095         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
33096         That is unnecessary, since it's always ".".
33097         Suggestion from Eric Blake.
33098
33099         test-pread.sh: make executable
33100         * tests/test-pread.sh: Set executable bit.
33101         Reported by Eric Blake.
33102
33103         correct typo in test-pread.sh
33104         * tests/test-pread.sh: Add #! line.
33105
33106         test pread
33107         * tests/test-pread.c: New file.
33108         * tests/test-pread.sh: Likewise.
33109         * modules/pread-tests: Likewise.
33110
33111         pread: new module
33112         * modules/pread: New file.
33113         * lib/unistd.in.h (pread): Define/declare.
33114         * lib/pread.c (pread): New file.
33115         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
33116         * modules/unistd (Makefile.am): Substitute witnesses.
33117         * doc/posix-functions/pread.texi (pread): Update.
33118         * MODULES.html.sh: Add pread.
33119
33120 2009-11-25  Jim Meyering  <meyering@redhat.com>
33121
33122         tests/init.sh: new file to be used via most *.sh tests
33123         * tests/init.sh: New file.
33124
33125 2009-11-25  Eric Blake  <ebb9@byu.net>
33126
33127         utimens: work around older Linux failure with symlinks
33128         * lib/utimens.c (lutimensat_works_really): New variable.
33129         (fdutimens, lutimens): Use it to manage kernels that support
33130         nanosecond times on files, but not on symlinks.
33131         Reported by Ondřej Vašík.
33132
33133         utimes: fix configure grammar
33134         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
33135
33136 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
33137
33138         regex: Fix fastmap for multibyte character ranges.
33139         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
33140         characters when a multibyte character range is included.
33141
33142 2009-11-22  Andy Wingo  <wingo@pobox.com>
33143
33144         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
33145         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
33146
33147 2009-11-24  Bruno Haible  <bruno@clisp.org>
33148
33149         doc: Most *_l functions exist in MacOS X 10.5.
33150         * doc/posix-functions/duplocale.texi: Update platforms list.
33151         * doc/posix-functions/freelocale.texi: Likewise.
33152         * doc/posix-functions/newlocale.texi: Likewise.
33153         * doc/posix-functions/uselocale.texi: Likewise.
33154         * doc/posix-functions/isalnum_l.texi: Likewise.
33155         * doc/posix-functions/isalpha_l.texi: Likewise.
33156         * doc/posix-functions/isblank_l.texi: Likewise.
33157         * doc/posix-functions/iscntrl_l.texi: Likewise.
33158         * doc/posix-functions/isdigit_l.texi: Likewise.
33159         * doc/posix-functions/isgraph_l.texi: Likewise.
33160         * doc/posix-functions/islower_l.texi: Likewise.
33161         * doc/posix-functions/isprint_l.texi: Likewise.
33162         * doc/posix-functions/ispunct_l.texi: Likewise.
33163         * doc/posix-functions/isspace_l.texi: Likewise.
33164         * doc/posix-functions/isupper_l.texi: Likewise.
33165         * doc/posix-functions/iswalnum_l.texi: Likewise.
33166         * doc/posix-functions/iswalpha_l.texi: Likewise.
33167         * doc/posix-functions/iswblank_l.texi: Likewise.
33168         * doc/posix-functions/iswcntrl_l.texi: Likewise.
33169         * doc/posix-functions/iswctype_l.texi: Likewise.
33170         * doc/posix-functions/iswdigit_l.texi: Likewise.
33171         * doc/posix-functions/iswgraph_l.texi: Likewise.
33172         * doc/posix-functions/iswlower_l.texi: Likewise.
33173         * doc/posix-functions/iswprint_l.texi: Likewise.
33174         * doc/posix-functions/iswpunct_l.texi: Likewise.
33175         * doc/posix-functions/iswspace_l.texi: Likewise.
33176         * doc/posix-functions/iswupper_l.texi: Likewise.
33177         * doc/posix-functions/iswxdigit_l.texi: Likewise.
33178         * doc/posix-functions/isxdigit_l.texi: Likewise.
33179         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
33180         * doc/posix-functions/strcasecmp_l.texi: Likewise.
33181         * doc/posix-functions/strcoll_l.texi: Likewise.
33182         * doc/posix-functions/strfmon_l.texi: Likewise.
33183         * doc/posix-functions/strftime_l.texi: Likewise.
33184         * doc/posix-functions/strncasecmp_l.texi: Likewise.
33185         * doc/posix-functions/strxfrm_l.texi: Likewise.
33186         * doc/posix-functions/tolower_l.texi: Likewise.
33187         * doc/posix-functions/toupper_l.texi: Likewise.
33188         * doc/posix-functions/towctrans_l.texi: Likewise.
33189         * doc/posix-functions/towlower_l.texi: Likewise.
33190         * doc/posix-functions/towupper_l.texi: Likewise.
33191         * doc/posix-functions/wcscoll_l.texi: Likewise.
33192         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
33193         * doc/posix-functions/wctrans_l.texi: Likewise.
33194         * doc/posix-functions/wctype_l.texi: Likewise.
33195         * doc/glibc-functions/strptime_l.texi: Likewise.
33196         * doc/glibc-functions/strtod_l.texi: Likewise.
33197         * doc/glibc-functions/strtof_l.texi: Likewise.
33198         * doc/glibc-functions/strtol_l.texi: Likewise.
33199         * doc/glibc-functions/strtold_l.texi: Likewise.
33200         * doc/glibc-functions/strtoll_l.texi: Likewise.
33201         * doc/glibc-functions/strtoul_l.texi: Likewise.
33202         * doc/glibc-functions/strtoull_l.texi: Likewise.
33203         * doc/glibc-functions/wcsftime_l.texi: Likewise.
33204         * doc/glibc-functions/wcstod_l.texi: Likewise.
33205         * doc/glibc-functions/wcstof_l.texi: Likewise.
33206         * doc/glibc-functions/wcstol_l.texi: Likewise.
33207         * doc/glibc-functions/wcstold_l.texi: Likewise.
33208         * doc/glibc-functions/wcstoll_l.texi: Likewise.
33209         * doc/glibc-functions/wcstoul_l.texi: Likewise.
33210         * doc/glibc-functions/wcstoull_l.texi: Likewise.
33211
33212 2009-11-24  Bruno Haible  <bruno@clisp.org>
33213
33214         duplocale: Fix logic bug.
33215         * lib/duplocale.c: Don't include <langinfo.h>.
33216         (_NL_LOCALE_NAME): Remove macro.
33217         (rpl_duplocale): Use setlocale instead of nl_langinfo.
33218         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
33219
33220 2009-11-23  Jim Meyering  <meyering@redhat.com>
33221
33222         test-update-copyright: don't hard-code /usr/bin/perl
33223         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
33224         perl to print the current year.  Gilles Espinasse reported that
33225         the replaced use of perl was hard-coded as /usr/bin/perl.
33226
33227 2009-11-23  Bruno Haible  <bruno@clisp.org>
33228
33229         duplocale: Add support for glibc 2.3.x.
33230         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
33231
33232 2009-11-22  Bruno Haible  <bruno@clisp.org>
33233
33234         vasnprintf: Tiny optimization.
33235         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
33236         MacOS X.
33237
33238 2009-11-22  Bruno Haible  <bruno@clisp.org>
33239
33240         Tests for module 'duplocale'.
33241         * modules/duplocale-tests: New file.
33242         * tests/test-duplocale.c: New file.
33243
33244         New module 'duplocale'.
33245         * m4/duplocale.m4: New file.
33246         * lib/locale.in.h (duplocale): New declaration.
33247         * lib/duplocale.c: New file.
33248         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
33249         gl_LOCALE_H_DEFAULTS): New macros.
33250         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
33251         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
33252         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
33253         REPLACE_DUPLOCALE.
33254         * modules/duplocale: New file.
33255         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
33256
33257 2009-11-22  Bruno Haible  <bruno@clisp.org>
33258
33259         * modules/locale-tests (configure.ac): Test for newlocale function.
33260         * tests/test-locale.c: When the system has extended locale functions,
33261         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
33262
33263         locale: Make locale_t available when possible.
33264         * lib/locale.in.h: Include <xlocale.h> when it exists.
33265         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
33266         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
33267         * modules/locale (Depends-on): Add extensions.
33268         (Makefile.am): Also substitute HAVE_XLOCALE_H.
33269         * doc/posix-headers/locale.texi: Document the problem with locale_t.
33270
33271 2009-11-22  Bruno Haible  <bruno@clisp.org>
33272
33273         Add comments.
33274         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
33275         invocation.
33276         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
33277         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33278         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33279
33280 2009-11-22  Bruno Haible  <bruno@clisp.org>
33281
33282         error: account for the possibility of freopen (stdout).
33283         * lib/error.c: Include <unistd.h>.
33284         (flush_stdout): New function, extracted from error and error_at_line.
33285         Determine stdout's fd dynamically.
33286         (error, error_at_line): Invoke flush_stdout.
33287         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
33288         * modules/error (Depends-on): Add unistd.
33289
33290 2009-11-22  Bruno Haible  <bruno@clisp.org>
33291
33292         diffseq: Add comment.
33293         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
33294
33295 2009-11-22  Jim Meyering  <meyering@redhat.com>
33296
33297         c-stack: avoid defining an unused static function
33298         * lib/c-stack.c (find_stack_direction): Do not define this function
33299         when it will not be used.
33300
33301         diffseq: avoid spurious gcc warnings
33302         * lib/diffseq.h (IF_LINT2): Define.
33303         (compareseq): Use it to initialize two members of "part".
33304         This avoids two used-uninitialized warnings.
33305
33306 2009-11-21  Jim Meyering  <meyering@redhat.com>
33307
33308         c-stack: avoid "ignoring return value of `write'" warning
33309         * lib/c-stack.c: Include "ignore-value.h".
33310         (die): Explicitly ignore each write return value.
33311         * modules/c-stack (Depends-on): Add ignore-value.
33312
33313 2009-11-21  Bruno Haible  <bruno@clisp.org>
33314
33315         diffseq: reduce scope of variable 'best'.
33316         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
33317         variable, earlier used for two different purposes.
33318
33319 2009-11-21  Jim Meyering  <meyering@redhat.com>
33320
33321         diffseq: remove useless assignment to "best"
33322         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
33323         assignment.  At that point "best" is already guaranteed to be zero.
33324
33325 2009-11-20  Eric Blake  <ebb9@byu.net>
33326
33327         build: mention ftp redirector in release announcements
33328         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
33329         values that used to come from cfg.mk; mention FTP redirect URL.
33330         * build-aux/announce-gen: Mention the mirror list.
33331         Suggested by Karl Berry.
33332
33333         nanosleep: improve port to mingw
33334         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
33335         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
33336         LIB_NANOSLEEP, but only when needed.
33337         * modules/select (Link): Document LIBSOCKET.
33338         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
33339         enough.
33340
33341         nanosleep: work around cygwin bug
33342         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
33343         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
33344         bug.
33345         (getnow): Delete, not needed.
33346         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
33347         LIB_CLOCK_GETTIME.
33348         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
33349         clock-time, gettime.
33350         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
33351         bug.
33352         * modules/nanosleep-tests: New test.
33353         * tests/test-nanosleep.c: New file.
33354
33355         sleep: work around cygwin bug
33356         * lib/sleep.c (rpl_sleep): Work around the bug.
33357         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
33358         (gl_PREREQ_SLEEP): Delete unused macro.
33359         * modules/sleep (Depends-on): Add verify.
33360         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
33361         * modules/unistd (Makefile.am): Substitute witness.
33362         * lib/unistd.in.h (sleep): Update prototype.
33363         * doc/posix-functions/sleep.texi (sleep): Document the bug.
33364         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
33365         * modules/sleep-tests (Depends-on): Check for alarm.
33366
33367 2009-11-20  Jim Meyering  <meyering@redhat.com>
33368
33369         maint.mk: improve sc_prohibit_magic_number_exit
33370         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
33371         so it does not match uses like System.exit(1).
33372         Add comments showing how to correct all offenders.
33373
33374 2009-11-19  Eric Blake  <ebb9@byu.net>
33375
33376         xalloc-die-tests: add missing library
33377         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
33378
33379         test-xvasprintf: silence compiler warnings
33380         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
33381         empty string from gcc.
33382
33383 2009-11-19  Jim Meyering  <meyering@redhat.com>
33384
33385         xfreopen: new module, from coreutils
33386         * modules/xfreopen: New module.
33387         * lib/xfreopen.c: New file.
33388         * lib/xfreopen.h: New file.
33389         * MODULES.html.sh (File stream based Input/Output"): Add it.
33390
33391 2009-11-19  Eric Blake  <ebb9@byu.net>
33392
33393         manywarnings: depend on warnings
33394         * modules/manywarnings (Depends-on): Add warnings.
33395
33396         build: avoid compiler warnings
33397         * lib/select.c (rpl_select): Delete unused variable.
33398         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
33399
33400 2009-11-18  Eric Blake  <ebb9@byu.net>
33401
33402         tests: avoid false negative with --with-packager
33403         * tests/test-version-etc.sh: Discard packager information.
33404         * tests/test-argp-version-etc-1.sh: Likewise.
33405         Reported by Mike Frysinger.
33406
33407         utimens: fix regression on Solaris
33408         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
33409         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
33410         can only change fd timestamps via futimesat.  Instead, use an
33411         additional witness macro to avoid BSD bug.
33412         Reported by Jim Meyering.
33413
33414 2009-11-17  Eric Blake  <ebb9@byu.net>
33415
33416         usleep: use it to simplify tests
33417         * modules/stat-time-tests (Depends-on): Add usleep.
33418         (configure.ac): Drop usleep check.
33419         * modules/chown-tests (Depends-on, configure.ac): Likewise.
33420         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
33421         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
33422         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
33423         * modules/openat-tests (Depends-on, configure.ac): Likewise.
33424         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
33425         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
33426         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
33427         Likewise.
33428         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
33429         * tests/test-lchown.h (nap): Likewise.
33430         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
33431         * tests/test-stat-time.c (nap): Likewise.
33432         * tests/test-utimens-common.h (nap): Update comments.
33433
33434         usleep: new module
33435         * modules/usleep: New file.
33436         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
33437         * lib/usleep.c (usleep): Likewise.
33438         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
33439         * modules/unistd (Makefile.am): Substitute witnesses.
33440         * lib/unistd.in.h (usleep): Add declaration.
33441         * doc/pastposix-functions/usleep.texi (usleep): Document this.
33442         * MODULES.html.sh (Date and time): Likewise.
33443         * modules/usleep-tests (Depends-on): New test.
33444         * tests/test-usleep.c: New file.
33445
33446         chown: work around OpenBSD bug
33447         * lib/chown.c (rpl_chown): Work around the bug.
33448         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
33449         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
33450         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
33451         * modules/chown (Depends-on): Add stdbool.
33452         * modules/lchown (Depends-on): Likewise.
33453         * doc/posix-functions/chown.texi (chown): Document the bug.
33454         * doc/posix-functions/lchown.texi (lchown): Likewise.
33455         * tests/test-lchown.h (test_chown): Relax test.
33456
33457         mkstemp: avoid conflict with C++ keyword template
33458         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
33459         * lib/mkostemp.c (mkostemp): Likewise.
33460         * lib/mkostemps.c (mkostemps): Likewise.
33461         * lib/mkstemp.c (mkstemp): Likewise.
33462         * lib/mkstemps.c (mkstemps): Likewise.
33463
33464         xalloc-die-tests: optimize
33465         * tests/test-xalloc-die.sh: Reduce number of processes.
33466
33467 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33468
33469         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
33470         patch from ludo@gnu.org (Ludovic Courtès).
33471
33472 2009-11-17  Jim Meyering  <meyering@redhat.com>
33473
33474         version-etc: use proper license string
33475         * modules/version-etc (License): Use LGPL, not LGPLv3+.
33476         * modules/version-etc-fsf: Likewise.
33477
33478 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33479
33480         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
33481         printed to stdout.  Deal with EOL differences.
33482
33483 2009-11-17  Eric Blake  <ebb9@byu.net>
33484
33485         unsetenv: work around Solaris bug
33486         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
33487         * lib/unsetenv.c (rpl_unsetenv): Work around it.
33488         Reported by Jim Meyering.
33489
33490         vasnprintf: avoid compiler warnings
33491         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
33492         variables.
33493         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
33494
33495 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33496
33497         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
33498         settings since xalloc-die is no longer the self test,
33499         xalloc-die.sh is.
33500
33501 2009-11-17  Jim Meyering  <meyering@redhat.com>
33502
33503         test-xalloc-die.sh: make the code agree with the commit log
33504         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
33505         at the end, just in case you happen to have a test-xalloc-die
33506         program in some other PATH directory.
33507
33508         test-xalloc-die.sh: fix a portability bug
33509         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
33510         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
33511         Otherwise, argv[0] (as often seen in diagnostics) would be too
33512         system-dependent, sometimes with, and sometimes without the leading "./".
33513
33514         version-etc-fsf: relax license to LGPLv3+
33515         * modules/version-etc-fsf (License): Relax license.
33516
33517 2009-11-16  Eric Blake  <ebb9@byu.net>
33518
33519         xalloc-die-tests: avoid printing null pointer
33520         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
33521         shell script.
33522         * tests/test-xalloc-die.c (program_name): Declare.
33523         * tests/test-xalloc-die.sh (tmpfiles): New file.
33524
33525         setenv, unsetenv: work around various bugs
33526         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
33527         (setenv) [HAVE_SETENV]: Work around bugs.
33528         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
33529         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
33530         for bugs.
33531         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
33532         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
33533         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
33534         * modules/stdlib (Makefile.am): Update substitutions.
33535         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
33536         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
33537         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
33538         * modules/setenv-tests: New test.
33539         * modules/unsetenv-tests: Likewise.
33540         * tests/test-setenv.c: New file.
33541         * tests/test-unsetenv.c: Likewise.
33542
33543 2009-11-16  Jim Meyering  <meyering@redhat.com>
33544
33545         version-etc: relax license to LGPLv3+
33546         * modules/version-etc (License): Relax license.
33547
33548         better AC_REQUIRE expanded-before-required-warning avoidance
33549         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
33550         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
33551         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
33552         which is no longer needed.
33553
33554 2009-11-16  Eric Blake  <ebb9@byu.net>
33555
33556         test-freading: clean up temporary file
33557         * tests/test-freading.c (main): Remove file on success, and use
33558         ASSERT more liberally.
33559         Reported by Jim Meyering.
33560
33561 2009-11-16  Jim Meyering  <meyering@redhat.com>
33562
33563         avoid new AC_REQUIRE expanded-before-required warnings
33564         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
33565         merely using it.
33566         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
33567         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
33568
33569 2009-11-15  Simon Josefsson  <simon@josefsson.org>
33570
33571         * tests/test-xalloc-die.c: New file.
33572         * modules/xalloc-die-tests: New file.
33573         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
33574         XFAIL_TESTS so it can be appended by modules.
33575
33576 2009-11-15  Simon Josefsson  <simon@josefsson.org>
33577
33578         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
33579         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
33580
33581 2009-11-14  Eric Blake  <ebb9@byu.net>
33582
33583         fnmatch: avoid compiler warning
33584         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
33585         to silence compiler warning about mismatch signedness in ?:.
33586         Reported by Robert Millan.
33587
33588         intprops: add double-inclusion guard
33589         * lib/intprops.h: Allow idempotent includes.
33590         Suggested by Bruce Korb.
33591
33592         openat: detect Solaris fchownat bug
33593         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
33594         penalizing glibc chownat when only lchownat is broken.
33595         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
33596         trailing slash bugs.
33597         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
33598         * modules/openat-tests (Files): Include more files.
33599         (Depends-on): Add mgetgroups, sleep, stat-time.
33600         (configure.ac): Add additional checks.
33601         (Makefile.am): Build new test.
33602         * tests/test-fchownat.c: New file.
33603
33604         lchown: detect Solaris and FreeBSD bug
33605         * lib/lchown.c (rpl_lchown): Work around bug.
33606         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
33607         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33608         * modules/unistd (Makefile.am): Populate it.
33609         * lib/unistd.in.h (lchown): Update declaration.
33610         * doc/posix-functions/lchown.texi (lchown): Document the bug.
33611         * modules/lchown-tests: New file.
33612         * tests/test-lchown.h (test_lchown): Likewise.
33613         * tests/test-lchown.c (main): Likewise.
33614
33615         chown: detect Solaris and FreeBSD bug
33616         * lib/chown.c (rpl_chown): Work around bug.
33617         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
33618         (gl_PREREQ_CHOWN): Delete.
33619         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33620         * modules/unistd (Makefile.am): Populate it.
33621         * lib/unistd.in.h (chown): Update declaration.
33622         * lib/lchown.c (chown): Update client.
33623         * modules/lchown (Depends-on): Add lstat.
33624         * doc/posix-functions/chown.texi (chown): Document the bug.
33625         * doc/posix-functions/getgroups.texi (getgroups): Document
33626         getgroups pitfall.
33627         * modules/chown-tests: New file.
33628         * tests/test-chown.h (test_chown): Likewise.
33629         * tests/test-chown.c (main): Likewise.
33630
33631 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
33632
33633         gnulib-tool: correctly detect absence of m4 directories
33634         * gnulib-tool: Avoid extra newline on data passed to wc -l.
33635
33636 2009-11-14  Jim Meyering  <meyering@redhat.com>
33637
33638         maint.mk: Prohibit inclusion of "xalloc.h" without use.
33639         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33640
33641 2009-11-14  John W. Eaton  <jwe@gnu.org>
33642
33643         strftime.h: wrap funtion declaration in extern "C" block
33644         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
33645
33646 2009-11-13  Eric Blake  <ebb9@byu.net>
33647
33648         getgroups: avoid compiler warning
33649         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
33650
33651         getgroups: work around FreeBSD bug
33652         * lib/getgroups.c (rpl_getgroups): Work around the bug.
33653         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
33654         * doc/posix-functions/getgroups.texi (getgroups): Document it.
33655         * tests/test-getgroups.c (main): Fix buffer overrun.
33656
33657         getgroups: avoid compilation failure
33658         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
33659         * modules/getgroups (Depends-on): Add stdint.
33660
33661 2009-11-13  Jim Meyering  <meyering@redhat.com>
33662
33663         test-getgroups: avoid compilation failure
33664         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
33665
33666 2009-11-13  Eric Blake  <ebb9@byu.net>
33667
33668         mgetgroups: new module, taken from coreutils
33669         * modules/mgetgroups: New file.
33670         * lib/mgetgroups.h: Likewise.
33671         * lib/mgetgroups.c (mgetgroups): Likewise.
33672         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
33673         * MODULES.html.sh (Users and groups): Mention it.
33674
33675         getgroups: don't expose GETGROUPS_T to user
33676         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
33677         an element at a time if GETGROUPS_T is wrong size.
33678         * lib/getugroups.h (getugroups): Change signature.
33679         * lib/unistd.in.h (getgroups): Likewise.
33680         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
33681         signature needs fixing.
33682         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
33683         AC_TYPE_GETGROUPS.
33684         * modules/group-member (Depends-on): Add getgroups.
33685         * lib/group-member.c (group_info, get_group_info): Use gid_t.
33686         (group_member): Rely on getgroups replacement.
33687         * lib/getugroups.c (getugroups): Use gid_t.
33688         * tests/test-getgroups.c (main): Likewise.
33689         * NEWS: Mention the signature change.
33690         * doc/posix-functions/getgroups.texi (getgroups): Mention the
33691         problem with signature.
33692         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
33693         GETGROUPS_T is still useful for setgroups.
33694
33695         getgroups, getugroups: provide stubs for mingw
33696         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
33697         * lib/getugroups.c (getugroups): Likewise.
33698         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
33699         function.  Modernize replacement scheme.
33700         (gl_PREREQ_GETGROUPS): Delete.
33701         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
33702         * modules/getgroups (configure.ac): Declare witness.
33703         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
33704         * modules/unistd (Depends-on): Substitute witness.
33705         * lib/unistd.in.h (getgroups): Declare replacement.
33706
33707         getgroups: avoid calling exit
33708         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
33709         drop xalloc.
33710         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
33711         dependencies.
33712         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
33713         exiting, in the rare case of malloc failure.
33714
33715         getgroups: fix logic error
33716         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
33717         has more than 20 groups.
33718         * modules/getgroups-tests: New test.
33719         * tests/test-getgroups.c: New file.
33720
33721 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33722
33723         * tests/test-base64.c: Improve.
33724
33725 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33726
33727         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
33728         Blake <ebb9@byu.net>.
33729
33730 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33731
33732         * tests/test-xvasprintf.c: Add %s%s related checks.
33733
33734 2009-11-12  Eric Blake  <ebb9@byu.net>
33735
33736         version-etc: match standards.texi style
33737         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
33738         and use <> only for URLs.
33739
33740 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
33741
33742         fts: do not fail on a submount during traversal
33743         * lib/fts.c (fts_build): Read the stat info again after opening
33744         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
33745         Original report at http://bugzilla.redhat.com/501848.
33746
33747 2009-11-12  Jim Meyering  <meyering@redhat.com>
33748
33749         bootstrap: sync from coreutils
33750         * build-aux/bootstrap (bootstrap_epilogue): New function.
33751         Use git_modules_config in one more place.  This make bootstrap's
33752         --gnulib-srcdir option more useful for testing.
33753
33754         bootstrap: generalize autoheader check
33755         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
33756         AC_CONFIG_HEADERS.
33757
33758 2009-11-11  Eric Blake  <ebb9@byu.net>
33759
33760         mkfifoat: use new modules for Solaris and BSD bugs
33761         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
33762         * lib/mkfifoat.c (mknodat): Split...
33763         * lib/mknodat.c (mknodat): ...into new file.
33764         * modules/mkfifoat (Files): Ship new file.
33765         (Depends-on): Add mkfifo, mknod.
33766         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
33767         (Depends-on): Add symlink.
33768         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
33769         redundant with test_mkfifo.h.
33770         (do_mkfifoat, do_mknodat): New helpers.
33771
33772         mknod: new module
33773         * modules/mknod: New file.
33774         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
33775         * lib/mknod.c (mknod): Likewise.
33776         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33777         defaults.
33778         * modules/sys_stat (Makefile.am): Substitute them.
33779         * lib/sys_stat.in.h (mknod): Declare replacement.
33780         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33781         Document it.
33782         * doc/posix-functions/mknod.texi (mknod): Likewise.
33783         * modules/mknod-tests: New test.
33784         * tests/test-mknod.c: Likewise.
33785
33786         mkfifo: new module
33787         * modules/mkfifo: New file.
33788         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
33789         * lib/mkfifo.c (mkfifo): Likewise.
33790         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33791         defaults.
33792         * modules/sys_stat (Makefile.am): Substitute them.
33793         * lib/sys_stat.in.h (mkfifo): Declare replacement.
33794         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33795         Document it.
33796         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
33797         * modules/mkfifo-tests: New test.
33798         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
33799         from test-mkfifoat.c.
33800         * tests/test-mkfifo.c: New file.
33801
33802         readlink: detect FreeBSD bug
33803         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
33804         slash on symlink.
33805         * doc/posix-functions/readlink.texi (readlink): Document the bug.
33806         * tests/test-readlink.h (test_readlink): Enhance test.
33807
33808         symlink: detect FreeBSD bug
33809         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
33810         slash on symlink.
33811         * doc/posix-functions/symlink.texi (symlink): Document the bug.
33812         * tests/test-symlink.h (test_symlink): Enhance test.
33813
33814 2009-11-10  Eric Blake  <ebb9@byu.net>
33815
33816         link: detect FreeBSD bug
33817         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
33818         symlink.
33819         * doc/posix-functions/link.texi (link): Document the bug.
33820         * tests/test-link.h (test_link): Enhance test.
33821         * tests/test-linkat.c (main): Update caller.
33822
33823         unlink, remove: detect FreeBSD bug
33824         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
33825         slash on symlink.
33826         * doc/posix-functions/unlink.texi (unlink): Document the bug.
33827         * doc/posix-functions/remove.texi (remove): Likewise.
33828         * tests/test-unlink.h (test_unlink): Enhance test.
33829         * tests/test-remove.c (main): Likewise.
33830
33831 2009-11-09  Eric Blake  <ebb9@byu.net>
33832
33833         rename: detect FreeBSD bug
33834         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
33835         slash on symlink.
33836         * modules/renameat-tests (Depends-on): Add filenamecat.
33837         * tests/test-rename.h (test_rename): Allow one more errno.
33838         * tests/test-renameat.c (main): Likewise.
33839         * doc/posix-functions/rename.texi (rename): Document the bug.
33840
33841         open: detect FreeBSD bug
33842         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
33843         symlink.
33844         * doc/posix-functions/open.texi (open): Document the bug.
33845         * doc/posix-functions/utimes.texi (utimes): Likewise.
33846         * tests/test-open.h (test_open): Add parameters, and test symlink
33847         handling.
33848         * tests/test-open.c (main): Adjust caller.
33849         * tests/test-fcntl-safer.c (main): Likewise.
33850         * modules/open-tests (Depends-on): Add stdbool, symlink.
33851         * modules/fcntl-safer-tests (Depends-on): Likewise.
33852         * tests/test-openat.c (main): Add test-open tests.
33853
33854         stat: detect FreeBSD bug
33855         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
33856         symlink.
33857         * doc/posix-functions/stat.texi (stat): Document the bug.
33858         * tests/test-stat.h (test_stat_func): Add argument.
33859         * tests/test-stat.c (main): Adjust caller.
33860         * tests/test-fstatat.c (main): Likewise.
33861         * modules/stat-tests (Depends-on): Add stdbool, symlink.
33862         Reported by Jim Meyering.
33863
33864 2009-11-09  James Youngman  <jay@gnu.org>
33865
33866         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
33867         * lib/strftime.c: Correct placement of #include "ignore-value.h".
33868
33869 2009-11-08  Jim Meyering  <meyering@redhat.com>
33870
33871         utimens: remove invalid futimesat call
33872         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
33873         It used the file descriptor of the target file as the DIR_FD
33874         parameter and NULL as the file name.  That caused failure with
33875         errno == EFAULT on FreeBSD-8.0-rc2
33876
33877 2009-11-07  Eric Blake  <ebb9@byu.net>
33878
33879         fflush, freadseek: use fseeko, not fseek
33880         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
33881         (clear_ungetc_buffer): Avoid potential problems on large files.
33882         * lib/freadseek.c (freadseek): Likewise.
33883         * modules/freadseek (Depends-on): Add fseeko.
33884         * modules/fseek (configure.ac): Set a witness.
33885         * tests/test-fflush.c (main): Use fseeko.
33886         * tests/test-fpurge.c (fseek): Disable link warning.
33887         * tests/test-freadable.c (fseek): Likewise.
33888         * tests/test-freading.c (fseek): Likewise.
33889         * tests/test-fseeko.c (fseek): Likewise.
33890         * tests/test-ftell.c (fseek): Likewise.
33891         * tests/test-ftello.c (fseek): Likewise.
33892         * tests/test-fwritable.c (fseek): Likewise.
33893         * tests/test-fwriting.c (fseek): Likewise.
33894
33895 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33896
33897         * modules/memchr (Depends-on): Drop getpagesize dependency.
33898
33899 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33900
33901         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
33902         Reported by Ludovic Courtès.
33903         * build-aux/pmccabe2html: Improve example usage.
33904         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
33905
33906 2009-11-06  Jim Meyering  <meyering@redhat.com>
33907
33908         do-release-commit-and-tag: New module.
33909         Automate the release-commit and tag process.
33910         * build-aux/do-release-commit-and-tag: New script, from coreutils.
33911         * modules/do-release-commit-and-tag: New file.
33912         * MODULES.html.sh (Support for maintaining and releasing): Add it.
33913
33914 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33915
33916         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
33917         because test-select.c uses inet_pton.
33918
33919 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33920
33921         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
33922         GETADDRINFO_LIB.  Bump serial number.
33923         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
33924         Suggested by Eric Blake <ebb9@byu.net>.
33925
33926 2009-11-05  Eric Blake  <ebb9@byu.net>
33927
33928         strtod: detect darwin bug
33929         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
33930         Reported by Leo Davis.
33931
33932         freopen-safer: new module
33933         * modules/freopen-safer: New module.
33934         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
33935         * lib/freopen-safer.c (freopen_safer): New file.
33936         * lib/stdio-safer.h (freopen_safer): New declaration.
33937         * lib/stdio--.h (freopen): New override.
33938         * MODULES.html.sh (File stream based Input/Output): Mention it.
33939         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
33940         freopen-safer module.
33941         * doc/posix-functions/stderr.texi (stderr): Likewise.
33942         * doc/posix-functions/stdin.texi (stdin): Likewise.
33943         * doc/posix-functions/stdout.texi (stdout): Likewise.
33944         * modules/freopen-safer-tests: New test.
33945         * tests/test-reopen-safer.c: New file.
33946
33947 2009-11-05  Jim Meyering  <meyering@redhat.com>
33948
33949         maint.mk: Prohibit inclusion of "close-stream.h" without use.
33950         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33951
33952 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33953
33954         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
33955
33956 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33957
33958         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
33959
33960 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33961
33962         Fix link error.
33963         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33964         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33965
33966 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33967
33968         * tests/test-func.c: Also test value of __func__.
33969
33970 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33971
33972         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
33973         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
33974
33975 2009-11-05  Bruno Haible  <bruno@clisp.org>
33976
33977         Fix link error.
33978         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33979         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33980         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
33981
33982 2009-11-05  Bruno Haible  <bruno@clisp.org>
33983
33984         Tests for module 'inet_pton'.
33985         * modules/inet_pton-tests: New file.
33986         * tests/test-inet_pton.c: New file.
33987
33988 2009-11-05  Bruno Haible  <bruno@clisp.org>
33989
33990         Tests for module 'inet_ntop'.
33991         * modules/inet_ntop-tests: New file.
33992         * tests/test-inet_ntop.c: New file.
33993
33994 2009-11-04  Eric Blake  <ebb9@byu.net>
33995
33996         stdlib-safer: wrap all mkstemp variants
33997         * modules/mkostemp (configure.ac): Set witness.
33998         * modules/mkostemps (configure.ac): Likewise.
33999         * modules/mkstemps (configure.ac): Likewise.
34000         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
34001         (mkstemps_safer): Wrap more functions.
34002         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
34003         wrapping.
34004         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
34005         (mkstemps_safer): Implement the wrappers.
34006
34007         mkstemps, mkostemps: new modules
34008         * modules/mkostemps: New module.
34009         * modules/mkstemps: Likewise.
34010         * lib/mkostemps.c (mkostemps): New file.
34011         * lib/mkstemps.c (mkstemps): Likewise.
34012         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
34013         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
34014         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
34015         * modules/stdlib (Makefile.am): Substitute them.
34016         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
34017         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
34018         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
34019         * doc/gnulib.texi (Glibc stdlib.h): Include them.
34020         * MODULES.html.sh (File system functions): Mention them.
34021
34022         tempname: resync from glibc
34023         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
34024         same values for __GT_FILE as glibc.  Abort even when assertions
34025         are disabled.
34026         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
34027         match its value otherwise.  Allow idempotent inclusion.
34028         * lib/mkdtemp.c (mkdtemp): Adjust caller.
34029         * lib/mkostemp.c (mkostemp): Likewise.
34030         * lib/mkstemp.c (mkstemp): Likewise.
34031         * lib/tmpfile.c (tmpfile): Likewise.
34032         * NEWS: Document this.
34033
34034         utimens: fix use of futimens on older Linux
34035         * lib/utimens.c (fdutimens): Use updated, rather than original,
34036         timespec to avoid bug in older Linux kernel.
34037         Reported by Simon Josefsson.
34038
34039 2009-11-04  Bruno Haible  <bruno@clisp.org>
34040
34041         Make num_processors more flexible and consistent.
34042         * lib/nproc.h (enum nproc_query): New type.
34043         (num_processors): Add a 'query' argument.
34044         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
34045         (num_processors): Add a 'query' argument. Test the value of the
34046         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
34047         mingw, count the number of CPUs available for the current process.
34048         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
34049         Check for sched_getaffinity and sched_getaffinity_np.
34050         * modules/nproc (Depends-on): Add c-ctype, extensions.
34051         * NEWS: Mention the change.
34052
34053 2009-11-03  Bruno Haible  <bruno@clisp.org>
34054
34055         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
34056
34057 2009-11-03  Jim Meyering  <meyering@redhat.com>
34058
34059         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
34060         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
34061         if it is defined.
34062
34063 2009-11-02  Eric Blake  <ebb9@byu.net>
34064
34065         mktime, timegm: share common declaration
34066         * lib/mktime-internal.h: New file.
34067         * lib/mktime.c: Use it rather than open-coding a declaration.
34068         * lib/timegm.c: Likewise.
34069         * modules/mktime (Files): Ship it.
34070         * modules/timegm (Files): Likewise.
34071         Suggested by Bruno Haible.
34072
34073         test-update-copyright: update test to match script changes
34074         * tests/test-update-copyright.sh: Avoid hard-coding perl
34075         location.  Don't update *.bak created by earlier runs.
34076
34077 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
34078             Simon Josefsson  <simon@josefsson.org>
34079             Bruno Haible  <bruno@clisp.org>
34080
34081         Fix link error on Solaris 8.
34082         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
34083         also in libnsl. Define also INET_PTON_LIB.
34084         * modules/inet_pton (Link): New section.
34085
34086 2009-11-02  Simon Josefsson  <simon@josefsson.org>
34087             Bruno Haible  <bruno@clisp.org>
34088
34089         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
34090         * modules/inet_ntop (Link): New section.
34091         Reported by Boyan Kasarov <bkasarov@gmail.com>.
34092
34093 2009-11-02  Eric Blake  <ebb9@byu.net>
34094
34095         maint: avoid compiler warnings in m4 macros
34096         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
34097         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
34098
34099 2009-11-02  Simon Josefsson  <simon@josefsson.org>
34100
34101         * m4/pmccabe2html.m4: Remove file.
34102         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
34103         function.  Change maintainer.
34104         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
34105         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
34106         Courtès).
34107
34108 2009-10-31  Eric Blake  <ebb9@byu.net>
34109
34110         fseeko: fix m4 regression
34111         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
34112         regression from 2009-10-27.
34113         Reported by Ralf Wildenhues.
34114
34115 2009-10-31  Jim Meyering  <meyering@redhat.com>
34116
34117         inttostr: aesthetics and improved (compile-time) safety
34118         Define inttype_is_signed rather than inttype_is_unsigned,
34119         since the sole use is via "#if inttype_is_signed".
34120         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
34121         inttype_is_unsigned.
34122         * lib/offtostr.c (inttype_is_signed): Likewise.
34123         * lib/uinttostr.c (inttype_is_signed): Likewise.
34124         * lib/umaxtostr.c (inttype_is_signed): Likewise.
34125         * lib/inttostr.c (inttostr): Use verify to cross-check the
34126         inttype_is_signed value and the signedness of the actual type.
34127         * modules/inttostr (Depends-on): Add verify.
34128
34129 2009-10-30  Eric Blake  <ebb9@byu.net>
34130
34131         build: avoid compiler warnings
34132         * lib/fchmodat.c (lchmod): Mark unused variables.
34133         * lib/getopt.c (_getopt_initialize): Likewise.
34134         * lib/mktime.c (__mktime_internal): Provide prototype.
34135         * lib/inttostr.c (inttostr): Avoid compiler warning even with
34136         older gcc that do not understand #pragma GCC diagnostic.
34137         * lib/uinttostr.c (inttype_is_unsigned): Define.
34138         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
34139
34140 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
34141
34142         stat: fix compilation on AIX
34143         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
34144         only see struct stat64.
34145
34146 2009-10-30  Eric Blake  <ebb9@byu.net>
34147
34148         exclude: make more robust
34149         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
34150         rather than masking a coding bug.
34151         Suggested by Bruno Haible.
34152
34153 2009-10-30  Jim Meyering  <meyering@redhat.com>
34154
34155         perl scripts: remove #!/usr/bin/perl in favor of more portable...
34156         Rather than putting #!/usr/bin/perl on the first line,
34157         start with a variant of what's recommended by "man perlrun" that
34158         invokes the first "perl" program from your shell's search path.
34159         * build-aux/gitlog-to-changelog: Replace #!... as above.
34160         Add a "Local Variables" perl mode setting.
34161         Prompted by a patch from Ludovic Courtès.
34162         Improved by Eric Blake.
34163         * build-aux/useless-if-before-free: Likewise.
34164         * build-aux/announce-gen: Likewise.
34165         * build-aux/update-copyright: Likewise.
34166
34167 2009-10-29  Eric Blake  <ebb9@byu.net>
34168
34169         filenamecat-lgpl: adjust clients
34170         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
34171         filenamecat.
34172         * modules/renameat (Depends-on): Likewise.
34173
34174         filenamecat: split into filenamecat-lgpl
34175         * modules/filenamecat-lgpl: New module.
34176         * modules/filenamecat (Files): Move library-safe files into
34177         filenamecat-lgpl.
34178         (Depends-on): Add filenamecat-lgpl.
34179         (configure.ac): Declare witness.
34180         * lib/filenamecat.h (file_name_concat): Only declare when using
34181         GPL module.
34182         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
34183         Move...
34184         * lib/filenamecat-lgpl.c: ...into new file.
34185         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
34186         (gl_FILE_NAME_CONCAT): Use it.
34187         * MODULES.html.sh (File system functions): Mention new module.
34188
34189         argp: avoid memory leak
34190         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
34191         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
34192         base_name, since the latter malloc()s and can call exit().
34193         Leak introduced 2006-07-03.
34194
34195         dirname-lgpl: adjust clients that don't need full dirname
34196         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
34197         * modules/filenamecat (Depends-on): Likewise.
34198         * modules/linkat (Depends-on): Likewise.
34199         * modules/mkancesdirs (Depends-on): Likewise.
34200         * modules/mkdir (Depends-on): Likewise.
34201         * modules/openat (Depends-on): Likewise.
34202         * modules/savewd (Depends-on): Likewise.
34203         * modules/rename (Depends-on): Likewise.
34204         (License): Relax license.
34205         * modules/mkdir-tests (Depends-on): Drop progname.
34206         (Makefile.am): Delete unneeded LDADD.
34207         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
34208
34209         dirname: split into dirname-lgpl
34210         * modules/dirname-lgpl: New module.
34211         * modules/dirname (Files): Move library-safe files into
34212         dirname-lgpl.
34213         (Depends-on): Add dirname-lgpl.
34214         (configure.ac): Declare witness.
34215         * modules/double-slash-root (License): Relax license.
34216         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
34217         module.
34218         * lib/dirname.c (dir_len, mdir_name): Move...
34219         * lib/dirname-lgpl.c: ...into new file.
34220         * lib/basename.c (last_component, base_len): Move...
34221         * lib/basename-lgpl.c: ...into new file.
34222         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
34223         (gl_DIRNAME): Use it.
34224         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
34225         Mention new module.
34226         * modules/dirname-tests (Depends-on): Add progname.
34227         * tests/test-dirname.c (program_name): Delete.
34228
34229         mkdir: make safe for libraries
34230         * modules/mkdir (Depends-on): Drop xalloc.
34231         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
34232         exit.
34233
34234         tests: avoid some compiler warnings
34235         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
34236         literals.
34237         * tests/test-memchr.c (main): Avoid type mismatch.
34238         * tests/test-arpa_inet.c (main): Avoid unused parameters.
34239         * tests/test-base64.c (main): Likewise.
34240         * tests/test-getdelim.c (main): Likewise.
34241         * tests/test-gethostname.c (main): Likewise.
34242         * tests/test-getline.c (main): Likewise.
34243         * tests/test-netinet_in.c (main): Likewise.
34244         * tests/test-select.c (open_server_socket, main): Likewise.
34245         * tests/test-select-stdin.c (main): Likewise.
34246         * tests/test-sockets.c (main): Likewise.
34247         * tests/test-strsignal.c (main): Likewise.
34248         * tests/test-sys_select.c (main): Likewise.
34249         * tests/test-sys_socket.c (main): Likewise.
34250         * tests/test-u64.c (main): Likewise.
34251         * tests/test-xfprintf-posix.c (main): Likewise.
34252         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
34253
34254         sockets: avoid compiler warning
34255         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
34256
34257         maint: detect usage(1) and other suspicious exits
34258         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
34259
34260 2009-10-29  Jim Meyering  <meyering@redhat.com>
34261
34262         timespec: long-to-int truncation could make timespec_cmp malfunction
34263         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
34264         a multiple of 2^32 nanoseconds as no difference.
34265
34266 2009-10-28  Jim Meyering  <meyering@redhat.com>
34267
34268         fprintftime: wrap macro code argument in "do {...} while(0)"
34269         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
34270         cpy macro must be a statement that can be followed by a semicolon.
34271         Now that the else clause contains a comment and is hence longer
34272         than one line, I require curly braces.  That in turn requires
34273         that we wrap this code block in the standard do...while(0).
34274
34275         fprintftime: remove stray semicolon from previous change
34276         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
34277
34278         fprintftime: avoid a warning about ignored fwrite return value
34279         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
34280         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
34281         that is unsafe.
34282         * modules/fprintftime (Depends-on): Add ignore-value.
34283
34284         exclude: avoid an unwarranted warning
34285         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
34286
34287 2009-10-27  Eric Blake  <ebb9@byu.net>
34288
34289         fseek: avoid compilation failure when fflush is replaced
34290         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
34291         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
34292         module is in use.
34293         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
34294         module is not in use; since REPLACE_FSEEK worked otherwise.
34295         (GNULIB_FTELLO): Likewise for ftell.
34296         Reported by Ian Beckwith and others.
34297
34298 2009-10-27  Bruno Haible  <bruno@clisp.org>
34299
34300         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
34301         Reported by Jim Meyering.
34302
34303 2009-10-27  Jim Meyering  <jim@meyering.net>
34304             Bruno Haible  <bruno@clisp.org>
34305
34306         Avoid warning despite dropping the return value of fwrite.
34307         * lib/unicodeio.c: Include ignore-value.h.
34308         (fwrite_success_callback): Explicitly ignore fwrite's return value.
34309         * modules/unicodeio (Depends-on): Add ignore-value.
34310
34311 2009-10-26  Eric Blake  <ebb9@byu.net>
34312
34313         areadlinkat: fix fallback path
34314         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
34315         pointer and zero.
34316
34317 2009-10-22  Pádraig Brady  <P@draigBrady.com>
34318
34319         Use a better IO block size for modern systems
34320         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
34321         * lib/md2.c: Likewise.
34322         * lib/md4.c: Likewise.
34323         * lib/md5.c: Likewise.
34324         * lib/sha1.c: Likewise.
34325         * lib/sha256.c: Likewise.
34326         * lib/sha512.c: Likewise.
34327
34328 2009-10-22  Eric Blake  <ebb9@byu.net>
34329
34330         tests: avoid several compiler warnings
34331         * tests/test-getcwd.c (main): Avoid buffer underflow.
34332         * tests/test-getdate.c (main): String literals are not safe with
34333         putenv, so use setenv.  Declare unused argument.
34334         * modules/getdate-tests (Depends-on): Add setenv.
34335         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
34336         problems with string literals in char *.
34337         * tests/test-hash.c (main): Avoid shadowing declaration.
34338         (insert_new): Treat string literals as char const *.
34339         * tests/test-getopt.h (test_getopt): Likewise.
34340         (getopt_loop): Alter types to minimize casting elsewhere.
34341         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
34342         (test_getopt_long_posix): Likewise.
34343         (do_getopt_long): Add wrapper to minimize casting.
34344         * tests/test-atexit.c (clear_temp_file): Use void.
34345         * tests/test-areadlink-with-size.c (main): Declare unused
34346         arguments.
34347         * tests/test-areadlink.c (main): Likewise.
34348         * tests/test-areadlinkat-with-size.c (main): Likewise.
34349         * tests/test-areadlinkat.c (main): Likewise.
34350         * tests/test-canonicalize-lgpl.c (main): Likewise.
34351         * tests/test-canonicalize.c (main): Likewise.
34352         * tests/test-dirent-safer.c (main): Likewise.
34353         * tests/test-dirname.c (main): Likewise.
34354         * tests/test-dup2.c (main): Likewise.
34355         * tests/test-fchdir.c (main): Likewise.
34356         * tests/test-fcntl-h.c (main): Likewise.
34357         * tests/test-fcntl-safer.c (main): Likewise.
34358         * tests/test-fdopendir.c (main): Likewise.
34359         * tests/test-fdutimensat.c (main): Likewise.
34360         * tests/test-fflush.c (main): Likewise.
34361         * tests/test-filenamecat.c (main): Likewise.
34362         * tests/test-filevercmp.c (main): Likewise.
34363         * tests/test-fopen-safer.c (main): Likewise.
34364         * tests/test-fopen.c (main): Likewise.
34365         * tests/test-fpending.c (main): Likewise.
34366         * tests/test-fpurge.c (main): Likewise.
34367         * tests/test-freading.c (main): Likewise.
34368         * tests/test-fstatat.c (main): Likewise.
34369         * tests/test-fsync.c (main): Likewise.
34370         * tests/test-futimens.c (main): Likewise.
34371         * tests/test-getndelim2.c (main): Likewise.
34372         * tests/test-gettimeofday.c (main): Likewise.
34373         * tests/test-getopt.c (main): Likewise.
34374         * tests/test-i-ring.c (main): Likewise.
34375         * tests/test-inttypes.c (main): Likewise.
34376         * tests/test-link.c (main): Likewise.
34377         * tests/test-lstat.c (main): Likewise.
34378         * tests/test-math.c (main): Likewise.
34379         * tests/test-md5.c (main): Likewise.
34380         * tests/test-memchr2.c (main): Likewise.
34381         * tests/test-memrchr.c (main): Likewise.
34382         * tests/test-mkdir.c (main): Likewise.
34383         * tests/test-mkdirat.c (main): Likewise.
34384         * tests/test-mkfifoat.c (main): Likewise.
34385         * tests/test-open.c (main): Likewise.
34386         * tests/test-openat-safer.c (main): Likewise.
34387         * tests/test-openat.c (main): Likewise.
34388         * tests/test-quotearg.c (main): Likewise.
34389         * tests/test-rawmemchr.c (main): Likewise.
34390         * tests/test-readlink.c (main): Likewise.
34391         * tests/test-remove.c (main): Likewise.
34392         * tests/test-rename.c (main): Likewise.
34393         * tests/test-renameat.c (main): Likewise.
34394         * tests/test-rmdir.c (main): Likewise.
34395         * tests/test-sha1.c (main): Likewise.
34396         * tests/test-signal.c (main): Likewise.
34397         * tests/test-sigaction.c (main): Likewise.
34398         * tests/test-stat.c (main): Likewise.
34399         * tests/test-stat-time.c (main): Likewise.
34400         * tests/test-stddef.c (main): Likewise.
34401         * tests/test-stdint.c (main): Likewise.
34402         * tests/test-stdio.c (main): Likewise.
34403         * tests/test-stdlib.c (main): Likewise.
34404         * tests/test-strchrnul.c (main): Likewise.
34405         * tests/test-strerror.c (main): Likewise.
34406         * tests/test-string.c (main): Likewise.
34407         * tests/test-strtod.c (main): Likewise.
34408         * tests/test-strverscmp.c (main): Likewise.
34409         * tests/test-symlink.c (main): Likewise.
34410         * tests/test-symlinkat.c (main): Likewise.
34411         * tests/test-sys_stat.c (main): Likewise.
34412         * tests/test-sys_time.c (main): Likewise.
34413         * tests/test-time.c (main): Likewise.
34414         * tests/test-unistd.c (main): Likewise.
34415         * tests/test-unlink.c (main): Likewise.
34416         * tests/test-unlinkat.c (main): Likewise.
34417         * tests/test-utimens.c (main): Likewise.
34418         * tests/test-utimensat.c (main): Likewise.
34419         * tests/test-version-etc.c (main): Likewise.
34420         * tests/test-wchar.c (main): Likewise.
34421         * tests/test-wctype.c (main): Likewise.
34422         * tests/test-xprintf-posix.c (main): Likewise.
34423         * tests/test-posixtm.c (main): Likewise.
34424         (STREQ): Delete unused macro.
34425         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
34426         shadowed variables.
34427         * tests/test-memchr.c (main): Likewise.
34428
34429 2009-10-21  Eric Blake  <ebb9@byu.net>
34430
34431         areadlinkat: avoid failure on older glibc
34432         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
34433         rather than mis-comparing 0 against FUNC_RESULT of char*.
34434
34435 2009-10-21  Bruno Haible  <bruno@clisp.org>
34436
34437         * modules/stpncpy (License): Relicense under LGPLv2+.
34438         Reported by David Lutterkort <lutter@redhat.com>.
34439
34440 2009-10-20  Eric Blake  <ebb9@byu.net>
34441
34442         utimensat: work around Solaris 9 bug
34443         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
34444         has trailing slash bugs.
34445         * tests/test-lutimens.h (test_lutimens): Enhance test.
34446         * tests/test-utimens.h (test_utimens): Likewise.
34447         * doc/posix-functions/utime.texi (utime): Enhance documentation.
34448         * doc/posix-functions/utimes.texi (utimes): Likewise.
34449         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34450         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
34451         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
34452         * doc/posix-functions/futimens.texi (futimens): Likewise.
34453
34454         fdutimensat: new module
34455         * modules/fdutimensat: New file.
34456         * lib/fdutimensat.c (fdutimensat): Likewise.
34457         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
34458         * MODULES.html.sh (File system functions): Mention module.
34459         * modules/fdutimensat-tests: New test.
34460         * tests/test-fdutimensat.c: Likewise.
34461
34462         doc: regenerate INSTALL
34463         * doc/INSTALL: Reflect recent autoconf update.
34464         * doc/INSTALL.ISO: Likewise.
34465         * doc/INSTALL.UTF-8: Likewise.
34466
34467 2009-10-20  Pádraig Brady  <P@draigBrady.com>
34468
34469         acl: warn if ACL support is not detected
34470         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
34471
34472 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
34473
34474         * lib/nproc.h: Add extern "C" block for C++.
34475
34476 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
34477             Bruno Haible  <bruno@clisp.org>
34478
34479         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
34480         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
34481         * doc/posix-functions/isalpha.texi: Likewise.
34482         * doc/posix-functions/isblank.texi: Likewise.
34483         * doc/posix-functions/iscntrl.texi: Likewise.
34484         * doc/posix-functions/isdigit.texi: Likewise.
34485         * doc/posix-functions/isgraph.texi: Likewise.
34486         * doc/posix-functions/islower.texi: Likewise.
34487         * doc/posix-functions/isprint.texi: Likewise.
34488         * doc/posix-functions/ispunct.texi: Likewise.
34489         * doc/posix-functions/isspace.texi: Likewise.
34490         * doc/posix-functions/isupper.texi: Likewise.
34491         * doc/posix-functions/isxdigit.texi: Likewise.
34492
34493 2009-10-18  Bruno Haible  <bruno@clisp.org>
34494
34495         Tests for module 'isblank'.
34496         * modules/isblank-tests: New file.
34497         * tests/test-isblank.c: New file.
34498
34499         New module 'isblank'.
34500         * lib/isblank.c: New file.
34501         * m4/isblank.m4: New file.
34502         * modules/isblank: New file.
34503         * doc/posix-functions/isblank.texi: Mention the new module.
34504
34505 2009-10-18  Bruno Haible  <bruno@clisp.org>
34506
34507         New module 'ctype'.
34508         * lib/ctype.in.h: New file.
34509         * m4/ctype.m4: New file.
34510         * modules/ctype: New file.
34511         * doc/posix-headers/ctype.texi: Mention the new module.
34512
34513 2009-10-18  Jim Meyering  <meyering@redhat.com>
34514
34515         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
34516         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
34517         right after its initialization, rather than farther down.
34518         Keeping these in close proximity makes it easier to ensure
34519         that each such variable is initialized.  E.g.,
34520
34521             LIB_CLOCK_GETTIME=
34522             AC_SUBST([LIB_CLOCK_GETTIME])
34523
34524         This change also increments these serial numbers.
34525         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
34526         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
34527         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
34528
34529 2009-10-18  Bruno Haible  <bruno@clisp.org>
34530
34531         Don't let environment variables perturb build.
34532         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
34533         (gl_PREREQ_GETHRXTIME): ... not here.
34534
34535 2009-10-18  Bruno Haible  <bruno@clisp.org>
34536
34537         Avoid symlink attack in localcharset module.
34538         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
34539         (O_NOFOLLOW): Define fallback.
34540         (get_charset_aliases): Don't open the file if it is a symbolic link.
34541         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
34542         gl_FCNTL_H.
34543         (gl_FCNTL_H): Require it.
34544         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
34545         * modules/localcharset (Files): Add m4/fcntl_h.m4.
34546         Reported by Fergal Glynn <fglynn@veracode.com>.
34547
34548 2009-10-18  Bruno Haible  <bruno@clisp.org>
34549
34550         Implement nproc for mingw.
34551         * lib/nproc.c: Include <windows.h>
34552         (num_processors): On native Windows platforms, try GetSystemInfo.
34553
34554 2009-10-18  Bruno Haible  <bruno@clisp.org>
34555
34556         Implement nproc for IRIX.
34557         * lib/nproc.c: Include <sys/sysmp.h>.
34558         (num_processors): On IRIX systems, try sysmp.
34559         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
34560
34561 2009-10-18  Bruno Haible  <bruno@clisp.org>
34562
34563         Implement nproc for HP-UX.
34564         * lib/nproc.c: Include <sys/pstat.h>
34565         (num_processors): On HP-UX systems, try pstat_getdynamic.
34566         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
34567         pstat_getdynamic.
34568
34569 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
34570             Bruno Haible  <bruno@clisp.org>
34571
34572         Implement nproc for NetBSD, OpenBSD.
34573         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
34574         (ARRAY_SIZE): New macro.
34575         (num_processors): On BSD systems, try sysctl of HW_NCPU.
34576         * m4/nproc.m4: New file.
34577         * modules/nproc (Files): Add m4/nproc.m4.
34578         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
34579         (Makefile.am): Instead, augment lib_SOURCES.
34580
34581 2009-10-18  Bruno Haible  <bruno@clisp.org>
34582
34583         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
34584         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
34585         sys/param.h.
34586
34587 2009-10-16  Eric Blake  <ebb9@byu.net>
34588
34589         utimensat: new module
34590         * modules/utimensat: New file.
34591         * lib/utimensat.c (utimensat): Likewise.
34592         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34593         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
34594         so we can work around Linux bugs.
34595         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34596         * modules/sys_stat (Makefile.am): Substitute them.
34597         * lib/sys_stat.in.h (utimensat): Declare it.
34598         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34599         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34600         * modules/utimensat-tests: New test.
34601         * tests/test-utimensat.c: Likewise.
34602
34603         utimens: let lutimens work on non-symlinks
34604         * lib/utimens.c (lutimens): Fall back to utimens rather than
34605         failing with ENOSYS, when file is not a symlink.
34606         (utimens): Reduce redirection.
34607         * tests/test-lutimens.h (test_lutimens): Update test to cover
34608         non-symlinks.
34609         * tests/test-utimens.h (test_utimens): Update test to cover
34610         symlinks.
34611         * tests/test-utimens.c (main): Update caller.
34612
34613         utimens: cache whether utimensat syscall works
34614         * lib/utimens.c (utimensat_works_really): New cache variable.
34615         (fdutimens, lutimens): Use it to avoid failing syscall.
34616
34617         test-stat-time, test-utimens: improve portability
34618         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
34619         ext4 on alpha, and for cygwin.
34620         * tests/test-utimens-common.h: New file.
34621         (nap): Factor delays into single function.
34622         * tests/test-lutimens.h (test_lutimens): Use new header.
34623         * tests/test-futimens.h (test_futimens): Likewise.
34624         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
34625         timestamps to occur from same machine, as was done previously for
34626         test_utimens.
34627         * modules/utimens-tests (Files): Ship new file.
34628         * modules/futimens-tests (Files): Likewise.
34629         Reported in part by Jim Meyering.
34630
34631         sys_stat: sort replacement declarations
34632         * lib/sys_stat.in.h: Sort declarations.
34633         * lib/futimens.c (futimens): Fix typo.
34634
34635 2009-10-15  Jim Meyering  <meyering@redhat.com>
34636
34637         don't let environment settings perturb build
34638         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
34639         could cause a configure-time and/or build-time malfunction.
34640         Typically, a configure-time function-in-library test is performed
34641         via code like this:
34642
34643           LIB_VAR=
34644           AC_SUBST([LIB_VAR])
34645           prefix_saved_LIBS=$LIBS
34646             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
34647                        [test "$ac_cv_search_FUNC" = "none required" ||
34648                         LIB_VAR=$ac_cv_search_FUNC])
34649           LIBS=$prefix_saved_LIBS
34650
34651         However, in each of the files affected by this change, the LIB_VAR=
34652         initialization was omitted.  Thus, when set in the environment, its
34653         value would propagate into generated Makefiles when FUNC is not found
34654         in LIB_NAME.
34655         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
34656         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
34657         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
34658
34659 2009-10-14  Eric Blake  <ebb9@byu.net>
34660
34661         fchdir: avoid infinite recursion in mingw
34662         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
34663         recursing.
34664
34665         test-stat-time: port to mingw
34666         * tests/test-stat-time.c (force_unlink): Return a value.
34667         (test_ctime) [W32]: Fix compilation error.
34668         (nap): Don't call usleep with too large an argument.  Use
34669         force_unlink.
34670         * doc/pastposix-functions/usleep.texi (usleep): Document the
34671         portability issue.
34672
34673 2009-10-13  Jim Meyering  <meyering@redhat.com>
34674
34675         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
34676         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
34677         * modules/pipe-filter-ii: Likewise.
34678         * modules/sys_socket-tests: Likewise.
34679         * modules/tsearch-tests: Likewise.
34680         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
34681         (check): Depend on it.
34682
34683 2009-10-12  Eric Blake  <ebb9@byu.net>
34684
34685         utimens-tests: port to NFS file systems
34686         * tests/test-utimens.h (test_utimens): Refactor utimecmp
34687         comparisons to avoid spurious failures from timestamp drift
34688         between NFS machines.
34689
34690 2009-10-12  Eric Blake  <ebb9@byu.net>
34691
34692         stat-time-tests: minor cleanups
34693         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
34694         * tests/test-stat-time.c (nap): Separate assignment from call.
34695         Suggested by Paolo Bonzini and Bruno Haible.
34696
34697         sys_stat: guarantee struct timespec
34698         * lib/sys_stat.in.h (includes): Always include <time.h>
34699         * modules/sys_stat (Depends-on): Add time.
34700         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
34701         mode_t permission values.
34702         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
34703         get at subsecond timestamps.
34704
34705 2009-10-10  Eric Blake  <ebb9@byu.net>
34706
34707         futimens: new module
34708         * modules/futimens: New file.
34709         * lib/futimens.c (futimens): Likewise.
34710         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
34711         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
34712         we can work around Linux bugs.
34713         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34714         * modules/sys_stat (Makefile.am): Substitute them.
34715         * lib/sys_stat.in.h (futimens): Declare it.
34716         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34717         * doc/posix-functions/futimens.texi (futimens): Likewise.
34718         * modules/futimens-tests: New test.
34719         * tests/test-futimens.c: Likewise.
34720
34721         utimens: introduce fdutimens
34722         * lib/utimens.h (fdutimens): New prototype.
34723         * lib/utimens.c (gl_futimens): Move guts...
34724         (fdutimens): ...to new interface.
34725         * tests/test-utimens.c (do_fdutimens): Use it.
34726
34727         utimens: add UTIME_NOW and UTIME_OMIT support
34728         * lib/utimens.c (validate_timespec, update_timespec): New helper
34729         functions.
34730         (gl_futimens, lutimens): Use them.
34731         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
34732         stdbool, sys_stat.
34733         (Link): Mention resulting library dependency.
34734         * modules/utimecmp (Link): Likewise.
34735         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
34736         (Makefile.am): Pick up library dependency.
34737         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
34738         definition.
34739         * tests/test-sys_stat.c: Test the definitions.
34740         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
34741         * NEWS: Document library dependency.
34742
34743         utimecmp: support symlink timestamps
34744         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
34745         hashing when possible.  Use pathconf when available.
34746         (SYSCALL_RESOLUTION): Recognize tighter resolution.
34747         * modules/utimecmp (Depends-on): Add lstat.
34748
34749         utimens: add lutimens interface
34750         * lib/utimens.c (lutimens): New function.
34751         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
34752         * lib/utimens.h (lutimens): Declare new interface.
34753         * tests/test-utimens.c (main): Enhance test.
34754         * tests/test-lutimens.h (test_lutimens): New file.
34755         * modules/utimens-tests (Files): Distribute it.
34756         (Depends-on): Add symlink.
34757         (configure.ac): Check for usleep.
34758
34759         utimens: validate futimens usage
34760         * lib/utimens.c (gl_futimens): Require valid fd up front, using
34761         fewer syscalls on failure later on.  Avoid compiler warning on
34762         mingw.
34763         * modules/utimens (Depends-on): Add dup2.
34764
34765         utimens: add test
34766         * modules/utimens-tests: New test.
34767         * tests/test-utimens.h: New file.
34768         * tests/test-futimens.h: Likewise.
34769         * tests/test-utimens.c: Likewise.
34770
34771         doc: mention timestamp portability issues
34772         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
34773         instead.
34774         * doc/posix-functions/utime.texi (utime): Likewise.
34775         * doc/posix-functions/utimes.texi (utimes): Likewise.
34776         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
34777         instead.
34778         * doc/posix-functions/futimens.texi (futimens): Mention utimens
34779         module.
34780         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34781         Mention weakness with symlink timestamps.
34782         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
34783         to utimensat/futimens instead.
34784         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
34785
34786         test-dup2: enhance test
34787         * tests/test-dup2.c (main): Also check AT_FDCWD.
34788
34789         test-stat-time: avoid more spurious failures
34790         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
34791         xfs; and avoid race if the two timestamps cross quantization edge.
34792
34793         relocatable: prefer 'file system' over 'filesystem'
34794         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
34795         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
34796         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
34797         * doc/relocatable.texi (Enabling Relocatability): Likewise.
34798         * lib/relocatable.c (compute_curr_prefix): Likewise.
34799
34800 2009-10-10  Jim Meyering  <meyering@redhat.com>
34801
34802         stat-time-tests: check for the usleep function
34803         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
34804
34805 2009-10-10  Bruno Haible  <bruno@clisp.org>
34806
34807         * modules/xnanosleep: Put the Link section after the Include section.
34808
34809 2009-10-09  Eric Blake  <ebb9@byu.net>
34810
34811         dup2: work around FreeBSD 6.1 bug
34812         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
34813         * doc/posix-functions/dup2.texi (dup2): Document it.
34814         Reported by Nelson H. F. Beebe and Jim Meyering.
34815
34816         test-stat-time: port to buggy NFS clients
34817         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
34818         (test_ctime): Also skip test if mtime and ctime are skewed.
34819
34820         maint: prefer 'file system' over 'filesystem'
34821         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
34822         * doc/posix-functions/lstat.texi (lstat): Likewise.
34823         * lib/file-has-acl.c (file_has_acl): Likewise.
34824         * lib/fwriteerror.c [TEST]: Likewise.
34825         * tests/test-areadlink.h (test_areadlink): Likewise.
34826         * tests/test-areadlinkat-with-size.c (main): Likewise.
34827         * tests/test-areadlinkat.c (main): Likewise.
34828         * tests/test-canonicalize-lgpl.c (main): Likewise.
34829         * tests/test-canonicalize.c (main): Likewise.
34830         * tests/test-fstatat.c (main): Likewise.
34831         * tests/test-linkat.c (main): Likewise.
34832         * tests/test-lstat.h (test_lstat_func): Likewise.
34833         * tests/test-mkdir.h (test_mkdir): Likewise.
34834         * tests/test-readlink.h (test_readlink): Likewise.
34835         * tests/test-remove.c (main): Likewise.
34836         * tests/test-rename.h (test_rename): Likewise.
34837         * tests/test-renameat.c (main): Likewise.
34838         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34839         * tests/test-symlink.h (test_symlink): Likewise.
34840         * tests/test-symlinkat.c (main): Likewise.
34841         * tests/test-unlink.h (test_unlink_func): Likewise.
34842         * tests/test-unlinkat.c (main): Likewise.
34843
34844         maint: make realtime library usage explicit
34845         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
34846         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
34847         * modules/settime (Link): Likewise.
34848         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
34849
34850         test-stat-time: speed up execution
34851         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
34852         warning on mingw.
34853         (nap): New helper function.
34854         (prepare_test): Use it to reduce sleep time.
34855         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
34856         execution.
34857         * modules/stat-time-tests (configure.ac): Check for usleep.
34858
34859 2009-10-09  Jim Meyering  <meyering@redhat.com>
34860
34861         selinux-h: always use getfilecon wrappers
34862         * lib/getfilecon.c: New file.
34863         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
34864         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
34865         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
34866         (fgetfilecon): Provide a stub.
34867         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
34868         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
34869         file unconditionally.
34870         When <selinux/selinux.h> is found, arrange to use wrappers.
34871         * modules/selinux-h (Files): Add getfilecon.c.
34872         (Makefile.am): Substitute include-next-related bits
34873         into the now-always-generated selinux/selinux.h file.
34874         * doc/glibc-functions/lgetfilecon.texi: New file.
34875         * doc/glibc-functions/fgetfilecon.texi: New file.
34876         * doc/glibc-functions/getfilecon.texi: New file.
34877         * doc/glibc-functions/getfilecon-desc.texi: New file.
34878         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
34879         which to pull in the new files.
34880         * MODULES.html.sh (Misc): Add selinux-h.
34881
34882 2009-10-08  Jim Meyering  <meyering@redhat.com>
34883
34884         unistd: fix comment typo
34885         * lib/unistd.in.h (euidaccess): Fix a comment typo.
34886
34887 2009-10-08  Eric Blake  <ebb9@byu.net>
34888
34889         areadlink: use SIZE_MAX consistently
34890         * modules/areadlink (Depends-on): Add stdint.
34891         * modules/areadlink-with-size (Depends-on): Likewise.
34892         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
34893         gives NULL; drop sys/types, since unistd gives size_t; and add
34894         stdint for SIZE_MAX.
34895         (SIZE_MAX): Rely on headers.
34896         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
34897         and add stdint.
34898         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
34899         (SIZE_MAX): Likewise.
34900         (INITIAL_BUF_SIZE): Turn into enum.
34901         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
34902
34903 2009-10-08  Jim Meyering  <meyering@redhat.com>
34904
34905         areadlinkat: avoid compilation failure
34906         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
34907         Fix typo in comment.
34908
34909 2009-10-07  Eric Blake  <ebb9@byu.net>
34910
34911         areadlinkat-with-size: new module
34912         * modules/areadlinkat-with-size: New module.
34913         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
34914         * lib/areadlink.h (areadlinkat): Declare it.
34915         * MODULES.html.sh (File system functions): Mention it.
34916         * modules/areadlinkat-with-size-tests: New test.
34917         * tests/test-areadlinkat-with-size.c: New file.
34918
34919         xreadlinkat: new module
34920         * modules/xreadlinkat: New module.
34921         * lib/xreadlinkat.c (xreadlinkat): New file.
34922         * lib/xreadlink.h (xreadlinkat): Declare it.
34923         * MODULES.html.sh (File system functions): Mention it.
34924
34925         areadlinkat: new module
34926         * lib/at-func.c (FUNC_FAIL): New define.
34927         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
34928         * modules/areadlinkat: New module.
34929         * lib/linkat.c (areadlinkat): Move...
34930         * lib/areadlinkat.c (areadlinkat): ...to new file.
34931         * lib/areadlink.h (areadlinkat): Declare it.
34932         * modules/linkat (Depends-on): Add areadlinkat.
34933         * MODULES.html.sh (File system functions): Mention it.
34934         * modules/areadlinkat-tests: New test.
34935         * tests/test-areadlinkat.c: New file.
34936
34937         areadlink, areadlink-with-size: add tests
34938         * modules/areadlink-tests: New test.
34939         * modules/areadlink-with-size-tests: Likewise.
34940         * tests/test-areadlink.h: New file.
34941         * tests/test-areadlink.c: Likewise.
34942         * tests/test-areadlink-with-size.c: Likewise.
34943
34944         maint: minor cleanups
34945         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
34946         _UNUSED_PARAMETER_ instead.
34947         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
34948         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
34949         * modules/linkat-tests (Files): Distribute test-link.h.
34950
34951         openat, utimens: whitespace cleanup
34952         * lib/openat.c: Prefer space throughout, rather than mix of 8
34953         spaces vs. tabs.
34954         * lib/at-func.c: Likewise.
34955         * lib/utimens.c: Likewise.
34956
34957         openat: avoid using wrong fd
34958         * lib/openat.c (openat_permissive): Reject user's fd if saving the
34959         working directory chooses same fd.
34960         * lib/at-func.c (AT_FUNC_NAME): Likewise.
34961
34962         mkdir, mkdirat: fix cygwin 1.5.x bug
34963         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
34964         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
34965         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
34966         bug.
34967         (gl_PREREQ_MKDIR): Delete unused macro.
34968         * modules/mkdir (Files): Track file rename.
34969         (configure.ac): Update macro name.
34970         * modules/openat (Depends-on): Add mkdir.
34971         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
34972
34973         mkdir, mkdirat: add tests
34974         * modules/mkdir-tests: New test.
34975         * tests/test-mkdir.h: New file.
34976         * tests/test-mkdir.c: Likewise.
34977         * tests/test-mkdirat.c: Likewise.
34978         * modules/openat-tests (Files): Add new files.
34979         (Makefile.am): Run new test.
34980
34981 2009-10-06  Eric Blake  <ebb9@byu.net>
34982
34983         doc: tweak *at function documentation
34984         * doc/posix-functions/faccessat.texi (faccessat): Mention
34985         known issue with replacement.
34986         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
34987         * doc/posix-functions/linkat.texi (linkat): Likewise.
34988         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
34989         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
34990         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34991         * doc/posix-functions/renameat.texi (renameat): Likewise.
34992         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
34993
34994         openat: fix GNU/Hurd bug in unlinkat
34995         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
34996         broken.
34997         * doc/posix-functions/unlink.texi (unlink): Document this.
34998         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
34999
35000         fdopendir: fix GNU/Hurd bug
35001         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
35002         allowing non-directory fds.
35003         * lib/fdopendir.c (rpl_fdopendir): Work around it.
35004         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
35005         * modules/dirent (Makefile.am): Substitute it.
35006         * lib/dirent.in.h (fdopendir): Declare replacement.
35007         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
35008         * tests/test-fdopendir.c (main): Test something other than
35009         /dev/null, since on Hurd that behaves like a directory.
35010
35011         test-symlink: port to GNU/Hurd
35012         * tests/test-symlink.h (test_symlink): Relax expected errno.
35013
35014         doc: tweak more cygwin information
35015         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
35016         now compatible with glibc.
35017         * doc/posix-functions/getopt.texi (getopt): Likewise.
35018
35019         getopt-gnu: add another test
35020         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
35021         guarantee behavior relied on by m4.
35022         * tests/test-getopt.c (main): Use it.
35023         * modules/getopt-posix-tests (Depends-on): Add setenv.
35024         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
35025
35026         getopt: fix compilation on darwin
35027         * lib/getopt.in.h (includes): Leave breadcrumbs during system
35028         include.
35029         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
35030         Reported by Ludovic Courtès.
35031
35032 2009-10-06  Bruno Haible  <bruno@clisp.org>
35033
35034         * modules/size_max (Description): Discourage its use.
35035         Reported by Simon Josefsson.
35036
35037 2009-10-06  Jim Meyering  <meyering@redhat.com>
35038
35039         linkat: avoid compilation failure
35040         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
35041
35042 2009-10-05  Eric Blake  <ebb9@byu.net>
35043
35044         linkat: support Linux 2.6.17
35045         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
35046         linkat on Linux, but allow cache variable override.
35047         * lib/linkat.c (rpl_linkat): Define override.
35048         * modules/linkat (Depends-on): Add symlinkat.
35049         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
35050         * modules/unistd (Makefile.am): Substitute it.
35051         * lib/unistd.in.h (linkat): Declare replacement.
35052         Reported by Pádraig Brady.
35053
35054         quotearg: port test to systems with C.UTF-8 locale
35055         * tests/test-quotearg.c (struct result_strings): Add another
35056         member, differentiating between C.ASCII and C.UTF-8 handling.
35057         (compare_strings): Add parameter.
35058         (main): Adjust all callers.
35059
35060         getopt: avoid clash with FreeBSD _getopt_internal
35061         * lib/getopt.in.h (_getopt_internal): Override the name.
35062         * lib/getopt_int.h (includes): Pick up any overrides.
35063         Reported by Reuben Thomas.
35064
35065         hash: allow C89 compilation
35066         * lib/hash.c (check_tuning): Move declaration before statement.
35067         Reported by Reuben Thomas.
35068
35069 2009-10-05  Karl Berry  <karl@gnu.org>
35070
35071         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
35072
35073 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
35074             Bruno Haible  <bruno@clisp.org>
35075
35076         * lib/uname.c (uname): Use a table-driven algorithm to compute
35077         Windows NT versions.
35078
35079 2009-10-04  Bruno Haible  <bruno@clisp.org>
35080
35081         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
35082         program_invocation_short_name.
35083         * modules/progname (configure.ac): Test for presence of
35084         program_invocation_short_name.
35085         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
35086
35087 2009-10-04  Bruno Haible  <bruno@clisp.org>
35088
35089         * lib/progname.c (set_program_name): Fix comment.
35090         Reported by Jim Meyering.
35091
35092 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
35093             Bruno Haible  <bruno@clisp.org>
35094
35095         * lib/uname.c: Include <string.h>.
35096         (uname): Do only one call to GetVersionEx in the common case.
35097
35098 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
35099             Bruno Haible  <bruno@clisp.org>
35100
35101         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
35102         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
35103         (uname): Add support for Windows CE and various non-x86 CPU types.
35104
35105 2009-10-03  Bruno Haible  <bruno@clisp.org>
35106
35107         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
35108         invocation to tests/configure.ac.
35109         Reported by Ian Beckwith <ianb@erislabs.net>.
35110
35111 2009-10-02  Eric Blake  <ebb9@byu.net>
35112
35113         fchdir: avoid compiler warning
35114         * lib/fchdir.c (canonicalize_file_name)
35115         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
35116
35117         test-open: support mingw errno values
35118         * tests/test-open.h (test_open): Relax test.
35119         * tests/test-fopen.h (test_fopen): Likewise.
35120         * tests/test-openat-safer.c (main): Likewise.
35121
35122         open: fix opening directory on mingw
35123         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
35124
35125         test-open: on GNU/Hurd, /dev/null is a directory
35126         * tests/test-fopen.h (main): Rename...
35127         (test_fopen): ...to this.  Use a guaranteed non-directory when
35128         confirming open behavior on trailing slash.
35129         * tests/test-openat-safer.c (main): Likewise.
35130         * tests/test-open.h (main): Likewise....
35131         (test_open): ...to this.
35132         * tests/test-fopen.c (main): Adjust caller.
35133         * tests/test-fopen-safer.c (main): Likewise.
35134         * tests/test-open.c (main): Likewise.
35135         * tests/test-fcntl-safer.c (main): Likewise.
35136         Reported by Samuel Thibault.
35137
35138         rename, fchdir: don't ignore chdir failure
35139         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
35140         * lib/rename.c (rpl_rename) [W32]: Likewise.
35141         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
35142         an empty destination directory if source cannot be renamed,
35143         although there is still possibility for failure.
35144         * doc/posix-functions/rename.texi (rename): Document the race.
35145         Reported by Jim Meyering.
35146
35147         maint: cleanup whitespace in recent commits
35148         * lib/rename.c (rpl_rename): Remove tabs.
35149         * tests/test-link.h (test_link): Likewise.
35150         * lib/fchdir.c (get_name): Likewise.
35151         Reported by Jim Meyering.
35152
35153 2009-10-02  Ben Pfaff  <blp@gnu.org>
35154
35155         relocatable-prog-wrapper: Add missing dependency on
35156         double-slash-root.
35157         * modules/relocatable-prog-wrapper: Add dependency.
35158         Reported by Ian Beckwith <ianb@erislabs.net>.
35159
35160 2009-10-02  Eric Blake  <ebb9@byu.net>
35161
35162         renameat: fix Solaris bugs
35163         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
35164         needed fixing.
35165         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
35166         * modules/stdio (Makefile.am): Substitute it.
35167         * lib/stdio.in.h (renameat): Declare replacement.
35168         * lib/renameat.c (rpl_renameat): Implement fix.
35169
35170         renameat: new module
35171         * modules/renameat: New file.
35172         * lib/renameat.c (renameat): Likewise.
35173         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
35174         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
35175         * modules/stdio (Makefile.am): Substitute them.
35176         * lib/stdio.in.h (renameat): Declare it.
35177         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35178         * doc/posix-functions/renameat.texi (renameat): Likewise.
35179         * modules/renameat-tests: New test.
35180         * tests/test-renameat.c: Likewise.
35181
35182         rename: fix mingw bugs
35183         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
35184         directory overwrite bugs.
35185
35186         rename: fix another cygwin 1.5 bug
35187         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
35188         checks.
35189         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
35190         unnecessary cygwin workarounds.  Also work around bug with moving
35191         full directory onto an empty one.
35192         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
35193
35194         rename-dest-slash: merge into rename module
35195         * modules/rename-dest-slash (Status): Mark obsolete.
35196         (Depends-on): Add rename.
35197         (Files): Let rename do it all.
35198         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
35199         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
35200         * m4/rename-dest-slash.m4: ...so this file can be deleted.
35201         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
35202         * lib/rename.c (rpl_rename): Update comments.
35203
35204         rename: fix cygwin 1.5.x bugs
35205         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
35206         * lib/rename.c (rpl_rename): Work around them.
35207         * modules/rename (Depends-on): Add same-inode.
35208
35209         rename: fix Solaris 10 bug
35210         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
35211         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
35212         was the only bug.
35213
35214         rename: fix Solaris 9 bug
35215         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
35216         on non-directory.  Avoid calling exit.
35217         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
35218         strdup.
35219         * modules/rename-tests (Depends-on): Drop lstat.
35220         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
35221         (gl_PREREQ_RENAME): Delete unused macro.
35222
35223         rename-dest-slash: fix NetBSD bug
35224         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
35225         links.
35226         * modules/rename-dest-slash (Depends-on): Add same-inode.
35227
35228         rename-tests: new test, exposes several platform bugs
35229         * modules/rename-tests: New file.
35230         * tests/test-rename.h: Likewise.
35231         * tests/test-rename.c: Likewise.
35232         * doc/posix-functions/rename.texi (rename): Improve documentation,
35233         including bugs that will eventually be fixed in gnulib.
35234
35235 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
35236
35237         * lib/uname.c: Include <stdlib.h>
35238         (uname): Assume version info is available.
35239
35240 2009-10-02  Jim Meyering  <meyering@redhat.com>
35241
35242         gnu-web-doc-update: correct --help output
35243         * build-aux/gnu-web-doc-update: Make --help output relevant.
35244
35245         gnu-web-doc-update: add standard options
35246         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
35247
35248         gnu-web-doc-update: New module.
35249         Use this script to automatically update the on-line web documentation
35250         for your GNU project at http://www.gnu.org/software/$pkg/manual/
35251         * modules/gnu-web-doc-update: New file, from coreutils.
35252         * build-aux/gnu-web-doc-update: New script.
35253
35254 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
35255
35256         link: LoadLibrary is not needed.
35257         * lib/link.c: Use GetModuleHandle.
35258
35259 2009-10-01  Eric Blake  <ebb9@byu.net>
35260
35261         getopt: bump serial number
35262         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
35263         change.
35264
35265         tests: tighten link, rmdir, and remove tests
35266         * tests/test-link.h (includes): No need to use <config.h> here.
35267         Clean up if directory hard link was created, otherwise test for
35268         trailing '.'.
35269         * tests/test-linkat.c (main): Simplify.
35270         * tests/test-remove.c (main): Enhance test for trailing '.'.
35271         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35272
35273 2009-10-01  Jim Meyering  <meyering@redhat.com>
35274
35275         maint.mk: requiring "make major" was annoying, for a "minor" release.
35276         What is intended is "stable", to contrast with alpha and beta,
35277         so require "make stable", not "make major".
35278         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
35279         (get_tool_versions): Likewise.
35280         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
35281
35282 2009-09-30  Ben Pfaff  <blp@gnu.org>
35283
35284         Fix broken build of replacement for Windows tmpfile().
35285         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
35286         flags argument added along with the 'mkostemp' module.
35287
35288 2009-09-28  Bruno Haible  <bruno@clisp.org>
35289
35290         Avoid identifier clash with POSIX function 'remove' defined as a macro.
35291         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
35292         to 'remove_elt'.
35293         (gl_list_remove): Update.
35294         * lib/gl_list.c (gl_list_remove): Update.
35295         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
35296         to 'remove_elt'.
35297         (gl_oset_remove): Update.
35298         * lib/gl_list.c (gl_oset_remove): Update.
35299         Reported by Eric Blake.
35300
35301 2009-09-28  Eric Blake  <ebb9@byu.net>
35302
35303         doc: mention yet more cygwin 1.7 status
35304         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
35305         cygwin.
35306         * doc/glibc-functions/execvpe.texi (execvpe): New file.
35307         * doc/gnulib.texi (Glibc unistd.h): Mention it.
35308
35309         argp: fix test failure
35310         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
35311         that are not upper-case.  Pass correct range to tolower.
35312
35313 2009-09-27  Jim Meyering  <meyering@redhat.com>
35314
35315         test-yesno: work around sparc-dash here-document infelicity
35316         Without this change, the literal \177 byte in a here document
35317         would make dash 0.5.5.1-3 access uninitialized memory.
35318         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
35319         Instead, use a marker, "@", and filter through tr to create the desired
35320         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
35321
35322 2009-09-27  Bruno Haible  <bruno@clisp.org>
35323
35324         Disable untested support for new flavours of ACLs on AIX.
35325         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
35326         progress.
35327         * lib/set-mode-acl.c (qset_acl): Likewise.
35328
35329 2008-12-07  Bruno Haible  <bruno@clisp.org>
35330
35331         Add support for new flavours of ACLs on AIX. (Untested.)
35332         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
35333         (file_has_acl): Add support for newer AIX.
35334         * lib/set-mode-acl.c (qset_acl): Likewise.
35335         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
35336         Rainer Tammer <tammer@tammer.net>.
35337
35338 2009-09-26  Eric Blake  <ebb9@byu.net>
35339
35340         argp: fix compilation of getopt
35341         * lib/getopt.in.h (includes): Use different guard than glibc.
35342         Reported by Sergey Poznyakoff.
35343
35344         doc: mention more cygwin 1.7 status
35345         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
35346         bug.
35347         * doc/posix-functions/execl.texi (execl): Likewise.
35348         * doc/posix-functions/execle.texi (execle): Likewise.
35349         * doc/posix-functions/execlp.texi (execlp): Likewise.
35350         * doc/posix-functions/execv.texi (execv): Likewise.
35351         * doc/posix-functions/execve.texi (execve): Likewise.
35352         * doc/posix-functions/execvp.texi (execvp): Likewise.
35353         * doc/glibc-functions/canonicalize_file_name.texi
35354         (canonicalize_file_name): Cygwin 1.7 now provides this.
35355         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
35356         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
35357         on AT_SYMLINK_NOFOLLOW.
35358
35359 2009-09-24  Eric Blake  <ebb9@byu.net>
35360
35361         test-linkat: make test more robust
35362         * tests/test-linkat.c (main): Avoid collision with EEXIST.
35363
35364         getopt: fix inclusion guards for cygwin
35365         * modules/getopt-posix (Depends-on): Add include-next.
35366         (Makefile.am): Substitute more items in replacement header.
35367         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
35368         <getopt.h>.
35369         * lib/getopt.in.h (includes): Use split inclusion guard, and
35370         prefer <getopt.h> over include <unistd.h> when one is present.
35371         (option): Also override name of 'struct option'.
35372
35373         same-inode: revert prior change; it is not yet ready
35374         * NEWS: Undo mention of this change.
35375         * lib/same-inode.h (same-inode.h): Undo tri-state change.
35376         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
35377         * lib/cycle-check.c (cycle_check): Likewise.
35378         * lib/same.c (same_name): Likewise.
35379         * lib/at-func2.c (at_func2): Likewise.
35380
35381 2009-09-23  Eric Blake  <ebb9@byu.net>
35382
35383         linkat: new module
35384         * modules/linkat: New file.
35385         * lib/at-func2.c (at_func2): Likewise.
35386         * lib/linkat.c (linkat): Likewise.
35387         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
35388         * lib/openat-priv.h (at_func2): Add declaration.
35389         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35390         * modules/unistd (Makefile.am): Substitute them.
35391         * lib/unistd.in.h (linkat): Declare it.
35392         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35393         * doc/posix-functions/linkat.texi (linkat): Likewise.
35394         * doc/posix-functions/link.texi (link): Tweak wording.
35395         * tests/test-link.c (main): Move guts...
35396         * tests/test-link.h (test_link): ...into new file.
35397         * modules/linkat-tests: New test.
35398         * tests/test-linkat.c: Likewise.
35399         * modules/link-tests (Files): Ship new file.
35400         (Depends-on): Add stdbool.
35401
35402         dirname: add library-safe mdir_name
35403         * lib/dirname.h (mdir_name): New prototype.
35404         * lib/dirname.c (dir_name): Move guts...
35405         (mdir_name): ...to new function that avoids xalloc_die.
35406
35407         fchdir: another mingw fix
35408         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
35409         * lib/fchdir.c (get_name): New helper method; skips canonicalize
35410         on mingw (where it has not yet been ported), and make it optional
35411         elsewhere.
35412         (_gl_register_fd): Use it.
35413
35414         same-inode: make SAME_INODE tri-state, to port to mingw
35415         * NEWS: Mention this change.
35416         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
35417         st_ino always being 0.
35418         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
35419         * lib/cycle-check.c (cycle_check): Likewise.
35420         * lib/same.c (same_name): Likewise.
35421
35422         lstat: avoid mingw compilation error
35423         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
35424         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
35425         lstat ourselves.
35426         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
35427         was adequate.
35428         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
35429         the checks for lstat.
35430         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
35431
35432         link: fix test failure on Solaris 9
35433         * lib/link.c (rpl_link): Don't assume link will catch bogus
35434         trailing slash on source.
35435
35436         test-symlinkat: enhance test
35437         * tests/test-readlink.c (main): Move guts...
35438         * tests/test-readlink.h (test_readlink): ...into new file.
35439         * tests/test-symlink.c (main): Move guts...
35440         * tests/test-symlink.h (test_symlink): ...into new file.
35441         * tests/test-symlinkat.c (main): Use new files for further
35442         coverage.
35443         (do_symlink, do_readlink): New helper functions.
35444         * modules/symlink-tests (Files): Ship new file.
35445         (Depends-on): Add stdbool.
35446         * modules/readlink-tests (Files): Ship new file.
35447         (Depends-on): Add stdbool.
35448         * modules/symlinkat-tests (Files): Use new files.
35449
35450 2009-09-23  Eric Blake  <ebb9@byu.net>
35451
35452         readlink: document portability issue with symlink length
35453         * doc/posix-functions/lstat.texi (lstat): Mention that some file
35454         systems have bogus st_size on symlinks, and mention the
35455         areadlink-with-size module.
35456         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
35457         * doc/posix-functions/readlink.texi (readlink): Mention the
35458         areadlink module, and ERANGE failure.
35459         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35460         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
35461
35462         readlink: fix Solaris 9 bug with trailing slash
35463         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
35464         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
35465         * doc/posix-functions/readlink.texi (readlink): Document this.
35466         * modules/readlink-tests: New test.
35467         * tests/test-readlink.c: Likewise.
35468
35469         readlink: fix cygwin 1.5.x bug with return type
35470         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
35471         * lib/unistd.in.h (readlink): Use ssize_t.
35472         * lib/readlink.c (readlink): Likewise.
35473         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35474         * modules/unistd (Makefile.am): Substitute it.
35475         * lib/unistd.in.h (readlink): Declare replacement.
35476         * doc/posix-functions/readlink.texi (readlink): Document this.
35477
35478         symlink: use throughout gnulib
35479         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
35480         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
35481         symlink is not used.
35482         * modules/symlinkat (Depends-on): Add symlink.
35483         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35484         * modules/canonicalize-tests (Depends-on): Likewise.
35485         * modules/lstat-tests (Depends-on): Likewise.
35486         * modules/openat-tests (Depends-on): Likewise.
35487         * modules/remove-tests (Depends-on): Likewise.
35488         * modules/rmdir-tests (Depends-on): Likewise.
35489         * modules/unlink-tests (Depends-on): Likewise.
35490         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
35491         * tests/test-canonicalize.c (symlink): Likewise.
35492         * tests/test-fstatat.c (symlink): Likewise.
35493         * tests/test-lstat.c (symlink): Likewise.
35494         * tests/test-remove.c (symlink): Likewise.
35495         * tests/test-rmdir.c (symlink): Likewise.
35496         * tests/test-unlink.c (symlink): Likewise.
35497         * tests/test-unlinkat.c (symlink): Likewise.
35498
35499         symlink: new module, for Solaris 9 bug
35500         * modules/symlink: New file.
35501         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
35502         * lib/symlink.c: Likewise.
35503         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
35504         * modules/unistd (Makefile.am): Substitute them.
35505         * lib/unistd.in.h (symlink): Declare replacement.
35506         * MODULES.html.sh (File system functions): Mention it.
35507         * doc/posix-functions/symlink.texi (symlink): Likewise.
35508         * modules/symlink-tests: New test.
35509         * tests/test-symlink.c: Likewise.
35510
35511 2009-09-23  Bruno Haible  <bruno@clisp.org>
35512
35513         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
35514         when needed.
35515         Test case: gnulib-tool --import --with-tests atexit inttypes.
35516         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
35517
35518 2009-09-23  Bruno Haible  <bruno@clisp.org>
35519
35520         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
35521         subcommand, not in a subshell.
35522
35523 2009-09-22  Eric Blake  <ebb9@byu.net>
35524
35525         unistd: sort replacement declarations
35526         * lib/unistd.in.h: Sort declarations.
35527
35528         open, openat: minor optimization
35529         * lib/open.c (open): If open succeeded, len is non-zero.
35530         * lib/openat.c (rpl_openat): Likewise.
35531
35532         link-follow: ensure correct result
35533         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
35534         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
35535         distinguish between possible failures.
35536
35537 2009-09-21  Eric Blake  <ebb9@byu.net>
35538
35539         fts: avoid compiler warning
35540         * lib/fts.c (dirent_inode_sort_may_be_useful)
35541         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
35542
35543 2009-09-19  Bruno Haible  <bruno@clisp.org>
35544
35545         * lib/progreloc.c (canonicalize_file_name): New declaration.
35546
35547 2009-09-19  Eric Blake  <ebb9@byu.net>
35548
35549         link: fix quoting
35550         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
35551
35552         openat: fix openat bugs on Solaris 9
35553         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
35554         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
35555         * modules/openat (Depends-on): Add open.
35556         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
35557         * modules/fcntl-h (Makefile.am): Substitute it.
35558         * lib/fcntl.in.h (openat): Declare replacement.
35559         * doc/posix-functions/openat.texi (openat): Document this.
35560
35561         openat: move fstatat and unlinkat into correct files
35562         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
35563         compiled.
35564         * lib/openat.c (fstatat, unlinkat): Move...
35565         * lib/fstatat.c (fstatat): ...into correct files.
35566         * lib/unlinkat.c (unlinkat): Likewise.
35567
35568         openat: fix unlinkat bugs on Solaris 9
35569         * lib/unlinkat.c (unlinkat): New file.
35570         * modules/openat (Depends-on): Add unlink.
35571         (Files): Distribute it.
35572         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
35573         trailing slash behavior is broken.
35574         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35575         * modules/unistd (Makefile.am): Substitute it.
35576         * lib/unistd.in.h (unlinkat): Declare replacement.
35577         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
35578
35579         openat: fix fstatat bugs on Solaris 9
35580         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
35581         stat.
35582         * doc/posix-functions/fstatat.texi (fstatat): Document this.
35583
35584         test-unlinkat: enhance test, to expose Solaris 9 bug
35585         * tests/test-unlink.c (main): Factor guts...
35586         * tests/test-unlink.h (test_rmdir_func): ...into new file.
35587         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
35588         * tests/test-rmdir.c (main): Adjust caller.
35589         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
35590         (unlinker): New helper function.
35591         (rmdirat): Enhance check.
35592         * modules/rmdir-tests (Depends-on): Add stdbool.
35593         * modules/unlink-tests (Depends-on): Likewise.
35594         (Files): Add test-unlink.h.
35595         * modules/openat-tests (Files): Likewise.
35596         (Depends-on): Add unlinkdir.
35597
35598         test-fstatat: new test, to expose Solaris 9 bugs
35599         * tests/test-stat.c (main): Factor guts...
35600         * tests/test-stat.h (test_stat_func): ...into new file.
35601         * tests/test-lstat.c (main): Factor guts...
35602         * tests/test-lstat.h (test_lstat_func): ...into new file.
35603         * tests/test-fstatat.c: New file.
35604         * modules/stat-tests (Files): Add test-stat.h.
35605         * modules/lstat-tests (Files): Add test-lstat.h.
35606         (Depends-on): Add stdbool.
35607         * modules/openat-tests (Depends-on): Add pathmax.
35608         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
35609         (Makefile.am): Run new test.
35610
35611         remove: new module, for mingw and Solaris 9 bugs
35612         * modules/remove: New file.
35613         * lib/remove.c: Likewise.
35614         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
35615         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
35616         * modules/stdio (Makefile.am): Use them.
35617         * lib/stdio.in.h (remove): Declare replacement.
35618         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35619         * doc/posix-functions/remove.texi (remove): Likewise.
35620         * modules/remove-tests: New test.
35621         * tests/test-remove.c: Likewise.
35622
35623         unlink: new module, for Solaris 9 bug
35624         * modules/unlink: New file.
35625         * lib/unlink.c: Likewise.
35626         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
35627         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35628         * modules/unistd (Makefile.am): Use them.
35629         * lib/unistd.in.h (stat): Declare replacement.
35630         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35631         * doc/posix-functions/unlink.texi (unlink): Likewise.
35632         * modules/unlink-tests: New test.
35633         * tests/test-unlink.c: Likewise.
35634
35635         lstat: fix Solaris 9 bug
35636         * lib/lstat.c (lstat): Also check for trailing slash on
35637         non-symlink, non-directories.  Use stat module to simplify logic.
35638         * doc/posix-functions/lstat.texi (lstat): Document it.
35639         * modules/lstat-tests (Depends-on): Add errno, same-inode.
35640         (configure.ac): Check for symlink.
35641         * tests/test-lstat.c (main): Add more tests.
35642
35643         stat: add as dependency to other modules
35644         * modules/chown (Depends-on): Add stat.
35645         * modules/euidaccess (Depends-on): Likewise.
35646         * modules/fchdir (Depends-on): Likewise.
35647         * modules/isdir (Depends-on): Likewise.
35648         * modules/link (Depends-on): Likewise.
35649         * modules/lstat (Depends-on): Likewise.
35650         * modules/mkdir-p (Depends-on): Likewise.
35651         * modules/modechange (Depends-on): Likewise.
35652         * modules/open (Depends-on): Likewise.
35653         * modules/readlink (Depends-on): Likewise.
35654         * modules/same (Depends-on): Likewise.
35655
35656         stat: fix Solaris 9 bug
35657         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
35658         slash.
35659         * lib/stat.c (rpl_stat): Work around it.
35660         * doc/posix-functions/stat.texi (stat): Update documentation.
35661
35662         stat: new module, for mingw bug
35663         * modules/stat: New file.
35664         * lib/stat.c: Likewise.
35665         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
35666         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35667         * modules/sys_stat (Makefile.am): Use them.
35668         * lib/sys_stat.in.h (stat): Declare replacement.
35669         * lib/openat.c (fstatat): Deal with lstat and stat being function
35670         macros.
35671         * modules/openat (Depends-on): Add inline.
35672         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35673         * doc/posix-functions/stat.texi (stat): Likewise.
35674         * modules/stat-tests: New test.
35675         * tests/test-stat.c: Likewise.
35676
35677 2009-09-19  Jim Meyering  <meyering@redhat.com>
35678
35679         syntax-check: detect unnecessary inclusion of canonicalize.h
35680         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
35681
35682 2009-09-19  Eric Blake  <ebb9@byu.net>
35683
35684         canonicalize-lgpl: adjust clients to use correct header
35685         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35686         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
35687         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
35688         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
35689         * lib/progreloc.c (includes): Likewise.
35690
35691 2009-09-19  Jim Meyering  <meyering@redhat.com>
35692
35693         test-posixtm.c: correct a comment
35694         * tests/test-posixtm.c: Correct first-line comment.
35695         Spotted by Eric Blake.
35696
35697 2009-09-16  Jim Meyering  <meyering@redhat.com>
35698
35699         posixtm-tests: make T const-correct; add a test case
35700         * tests/test-posixtm.c (T): Declare const.
35701         Add a test for -(2^31+1).
35702         Remove useless can-succeed-only-in-2002 test.
35703
35704         posixtm-tests: adjust the sole failing test
35705         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
35706         expected output matches what mktime now produces.  Cross-checked via
35707         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
35708
35709         posixtm: move #ifdef'd tests into a new module
35710         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
35711         * tests/test-posixtm.c: ... this new file.
35712         * modules/posixtm-tests: New module.
35713
35714 2009-09-19  Eric Blake  <ebb9@byu.net>
35715
35716         openat: simplify use of at-func.c
35717         * lib/at-func.c (includes): Include prerequisites here, to
35718         simplify requirements on client files.
35719         * lib/openat-priv.h: Add double-inclusion guard.
35720         * lib/faccessat.c (includes): Simplify.
35721         * lib/fchmodat.c (includes): Likewise.
35722         * lib/fchownat.c (includes): Likewise.
35723         * lib/mkdirat.c (includes): Likewise.
35724         * lib/mkfifoat.c (includes): Likewise.
35725         * lib/symlinkat.c (includes): Likewise.
35726
35727         openat: allow return of fd 0
35728         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
35729         * modules/save-cwd (Depends-on): Replace fcntl-safer with
35730         unistd-safer.
35731         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
35732         <fcntl.h>; this module does not leak fds.
35733         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
35734         must be allowed to return 0, leaving openat_safer to add the
35735         safety.
35736         (openat_permissive): Avoid writing to just-opened fd 2 if
35737         restoring the current directory fails.
35738         * lib/openat-die.c (openat_restore_fail): Add comment.
35739         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
35740         (save_cwd): Guarantee safe fd, but without use of open_safer.
35741         * tests/test-openat.c: New test.
35742         * modules/openat-tests (Files, Makefile.am): Distribute and build
35743         new file.
35744
35745         relocatable-prog-wrapper: fix build
35746         * modules/relocatable-prog-wrapper (Files): Update name of
35747         canonicalize m4 file, broken on 2009-09-17.
35748         Reported by emad hajjar <aleppos@hotmail.com>.
35749
35750 2009-09-19  Bruno Haible  <bruno@clisp.org>
35751
35752         * lib/safe-alloc.h: Use the standard header with GPL copyright.
35753         * lib/safe-alloc.c: Likewise.
35754         Reported by Ian Beckwith <ianb@erislabs.net>.
35755
35756 2009-09-18  Bruno Haible  <bruno@clisp.org>
35757
35758         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
35759         Reported by <erobles@sensacd.com.mx>.
35760
35761 2009-09-17  Eric Blake  <ebb9@byu.net>
35762
35763         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
35764         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
35765         slashes when checking if last component is missing.
35766         * tests/test-canonicalize.c (main): Test this.
35767
35768         canonicalize, canonicalize-lgpl: honor // if distinct from /
35769         * modules/canonicalize (Files): Add double-slash-root.m4.
35770         * modules/canonicalize-lgpl (Files): Likewise.
35771         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35772         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
35773         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
35774         fallback definition.
35775         (canonicalize_filename_mode): Use it to protect //.
35776         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
35777         (__realpath): Likewise.
35778         * tests/test-canonicalize.c (main): Test this.
35779         * tests/test-canonicalize-lgpl.c (main): Likewise.
35780         * modules/canonicalize-tests (Depends-on): Add same-inode.
35781         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35782
35783         canonicalize-lgpl: fix glibc bug with trailing slash
35784         * m4/canonicalize-lgpl.m4: Move contents...
35785         * m4/canonicalize.m4: ...here.
35786         (gl_CANONICALIZE_LGPL): Factor realpath check...
35787         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
35788         glibc 2.3.5 bug, fixed 2005-04-27.
35789         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
35790         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
35791         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
35792         * modules/canonicalize-lgpl (Files): Manage file rename.
35793         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35794         * modules/stdlib (Makefile.am): Substitute witness.
35795         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
35796         is needed.
35797         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
35798         replacement is required.
35799         * lib/canonicalize.c (canonicalize_file_name): Likewise.
35800         * doc/glibc-functions/canonicalize_file_name.texi
35801         (canonicalize_file_name): Document this.
35802         * doc/posix-functions/realpath.texi (realpath): Likewise.
35803
35804         canonicalize-lgpl: reject non-directory with trailing slash
35805         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
35806         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
35807         catches failures in glibc 2.3.5.
35808         * tests/test-canonicalize.c (main): Likewise.
35809
35810         canonicalize-lgpl: use native realpath if it works
35811         * lib/canonicalize-lgpl.c (realpath): Guard with
35812         FUNC_REALPATH_WORKS.
35813         * lib/stdlib.in.h (realpath): Make declaration optional based on
35814         HAVE_REALPATH.
35815         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
35816         native realpath works.
35817         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35818         * modules/stdlib (Makefile.am): Substitute witness.
35819
35820         canonicalize, canonicalize-lgpl: use <stdlib.h>
35821         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
35822         (Include): Mention <stdlib.h>.
35823         (configure.ac): Mention functions we provide.
35824         * modules/canonicalize (configure.ac): Likewise.
35825         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
35826         realpath if canonicalize_file_name is missing.
35827         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
35828         * modules/stdlib (Makefile.am): Substitute witnesses.
35829         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
35830         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
35831         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
35832         * NEWS: Document this.
35833         * doc/glibc-functions/canonicalize_file_name.texi
35834         (canonicalize_file_name): Likewise.
35835         * doc/posix-functions/realpath.texi (realpath): Likewise.
35836         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
35837
35838         test-canonicalize: consolidate into single C program
35839         * tests/test-canonicalize.sh: Delete; move setup into...
35840         * tests/test-canonicalize.c (main): ...the program, making it
35841         easier to run in debugger.  Add some tests.
35842         * modules/canonicalize-tests (Files): Remove unused file.
35843         (Depends-on): Add progname.
35844         (configure.ac, Makefile.am): Simplify.
35845
35846         test-canonicalize-lgpl: consolidate into single C program
35847         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
35848         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
35849         easier to run in debugger.  Add some tests.
35850         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
35851         (configure.ac, Makefile.am): Simplify.
35852
35853         canonicalize: avoid resolvepath
35854         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
35855         unnecessary checks.
35856         * lib/canonicalize.c (includes): Simplify.
35857         (canonicalize_file_name): Drop resolvepath implementation.
35858         * modules/canonicalize (Depends-on): Drop filenamecat.
35859
35860         canonicalize: don't lose errno
35861         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
35862         over calls to free.
35863
35864         canonicalize: simplify errno handling
35865         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
35866         assignment.
35867
35868         canonicalize, canonicalize-lgpl: update module dependencies
35869         * modules/canonicalize (Depends-on): Add extensions, lstat,
35870         pathmax, stdlib.
35871         (Files): Drop pathmax.h.
35872         (configure.ac): Adjust macro name.
35873         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
35874         lstat, stdlib, sys_stat.
35875         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
35876         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
35877         extensions.
35878         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
35879         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
35880         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
35881         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
35882         declaration, if available.
35883         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
35884         we can rely on the readlink module.
35885         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
35886         (includes): Use <unistd.h> unconditionally.
35887
35888 2009-09-17  Eric Blake  <ebb9@byu.net>
35889
35890         maint: make Include sections of modules consistent
35891         * modules/alloca: Use only header name; no need to list #include.
35892         * modules/alloca-opt: Likewise.
35893         * modules/arpa_inet: Likewise.
35894         * modules/canon-host: Likewise.
35895         * modules/configmake: Likewise.
35896         * modules/dirent: Likewise.
35897         * modules/eealloc: Likewise.
35898         * modules/environ: Likewise.
35899         * modules/fchdir: Likewise.
35900         * modules/fcntl: Likewise.
35901         * modules/fcntl-h: Likewise.
35902         * modules/gethrxtime: Likewise.
35903         * modules/gettime: Likewise.
35904         * modules/ignore-value: Likewise.
35905         * modules/inet_ntop: Likewise.
35906         * modules/inet_pton: Likewise.
35907         * modules/inttypes: Likewise.
35908         * modules/isnand-nolibm: Likewise.
35909         * modules/isnanf-nolibm: Likewise.
35910         * modules/mbchar: Likewise.
35911         * modules/mbfile: Likewise.
35912         * modules/mbiter: Likewise.
35913         * modules/mbuiter: Likewise.
35914         * modules/netdb: Likewise.
35915         * modules/netinet_in: Likewise.
35916         * modules/nproc: Likewise.
35917         * modules/pagealign_alloc: Likewise.
35918         * modules/poll: Likewise.
35919         * modules/printf-frexp: Likewise.
35920         * modules/pthread: Likewise.
35921         * modules/putenv: Likewise.
35922         * modules/random_r: Likewise.
35923         * modules/relocatable-prog: Likewise.
35924         * modules/search: Likewise.
35925         * modules/select: Likewise.
35926         * modules/selinux-h: Likewise.
35927         * modules/settime: Likewise.
35928         * modules/signal: Likewise.
35929         * modules/size_max: Likewise.
35930         * modules/socklen: Likewise.
35931         * modules/ssize_t: Likewise.
35932         * modules/stdarg: Likewise.
35933         * modules/stdbool: Likewise.
35934         * modules/stddef: Likewise.
35935         * modules/stdint: Likewise.
35936         * modules/stdio: Likewise.
35937         * modules/stdlib: Likewise.
35938         * modules/string: Likewise.
35939         * modules/strings: Likewise.
35940         * modules/sys_file: Likewise.
35941         * modules/sys_ioctl: Likewise.
35942         * modules/sys_select: Likewise.
35943         * modules/sys_socket: Likewise.
35944         * modules/sys_stat: Likewise.
35945         * modules/sys_time: Likewise.
35946         * modules/sys_times: Likewise.
35947         * modules/sys_utsname: Likewise.
35948         * modules/sys_wait: Likewise.
35949         * modules/sysexits: Likewise.
35950         * modules/time: Likewise.
35951         * modules/times: Likewise.
35952         * modules/tmpfile: Likewise.
35953         * modules/trim: Likewise.
35954         * modules/unistd: Likewise.
35955         * modules/wchar: Likewise.
35956         * modules/wctype: Likewise.
35957
35958 2009-09-17  Bruno Haible  <bruno@clisp.org>
35959
35960         Make getdate.y compile on QNX and NetBSD 5 / i386.
35961         * m4/getdate.m4 (gl_GETDATE): Conditionally define
35962         TIME_T_FITS_IN_LONG_INT.
35963         * lib/getdate.y (long_time_t): New type.
35964         (relative_time): Change type of 'seconds' field to long_time_t.
35965         (get_date): Update types of local variables. Check against overflow
35966         during conversion from long_time_t to time_t.
35967         Reported by Matt Kraai <kraai@ftbfs.org>
35968         and Hasso Tepper <hasso@netbsd.org>.
35969
35970 2009-09-17  Bruno Haible  <bruno@clisp.org>
35971
35972         * modules/COPYING: Update copyright years.
35973         * modules/README: Likeiwse.
35974         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
35975         Reported by Ian Beckwith <ianb@erislabs.net>.
35976
35977 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35978
35979         * users.txt: Update references for gnuit package.
35980
35981 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35982
35983         * m4/getdelim.m4: Fix typo in copyright line.
35984
35985 2009-09-17  Bruno Haible  <bruno@clisp.org>
35986
35987         * lib/atoll.c: Use the standard header with GPL copyright.
35988         * lib/argz.in.h: Likewise.
35989         * lib/glob.c: Likewise.
35990         * lib/glob-libc.h: Likewise.
35991         * lib/random_r.c: Likewise.
35992         * lib/siglist.h: Likewise.
35993         * lib/strsignal.c: Likewise.
35994         Reported by Ian Beckwith <ianb@erislabs.net>.
35995
35996 2009-09-17  Eric Blake  <ebb9@byu.net>
35997
35998         rmdir: ensure correct dependency order
35999         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
36000
36001 2009-09-17  Bruno Haible  <bruno@clisp.org>
36002
36003         Disable assertion that fails on NetBSD 5 / i386.
36004         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
36005         Reported by Sam Steingold <sds@gnu.org>
36006         and Hasso Tepper <hasso@netbsd.org>.
36007
36008 2009-09-16  Eric Blake  <ebb9@byu.net>
36009
36010         unlinkdir: port to mingw
36011         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
36012         on which no one can unlink a directory.
36013
36014         stdlib: sort witness names
36015         * modules/stdlib (Makefile.am): Sort replacements.
36016         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
36017         * lib/stdlib.in.h: Likewise.
36018
36019         parse-duration-tests: avoid link failure
36020         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
36021         LIBINTL.
36022         Reported by Tom G. Christensen.
36023
36024         openat-tests: ensure unlinkat behaves like rmdir
36025         * tests/test-rmdir.c (main): Factor guts...
36026         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
36027         * modules/rmdir-tests (Files): Ship new file.
36028         * modules/openat-tests: New test.
36029         * tests/test-unlinkat.c: Likewise.
36030
36031         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
36032         * modules/rmdir-errno (Status, Notice): Now obsolete.
36033
36034         rmdir: work around cygwin 1.5.x and mingw bugs
36035         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
36036         * lib/rmdir.c (rmdir): Work around it.
36037         * modules/rmdir (Status, Notice): No longer obsolete.
36038         (Files): Add dos.m4.
36039         (Depends-on): Add unistd.
36040         (configure.ac): Set witnesses.
36041         (License): Relax to LGPLv2+.
36042         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
36043         * modules/unistd (Makefile.am): Substitute witnesses.
36044         * lib/unistd.in.h (rmdir): Declare replacement.
36045         * doc/posix-functions/rmdir.texi (rmdir): Document this.
36046         * modules/rmdir-tests: New tests.
36047         * tests/test-rmdir.c: Likewise.
36048
36049 2009-09-15  Eric Blake  <ebb9@byu.net>
36050
36051         fchdir: improve use of replacement functions
36052         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
36053         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
36054         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
36055         REPLACE_CLOSEDIR.
36056         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
36057         * modules/sys_stat (Makefile.am): Substitute correct witness.
36058         * modules/dirent (Makefile.am): Likewise.
36059         * modules/unistd (Makefile.am): Likewise.
36060         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
36061         * lib/unistd.in.h (dup): Likewise.
36062         * lib/sys_stat.in.h (fstat): Likewise.
36063
36064         maint: ignore gnulib-tool temp files
36065         * .gitignore: Ignore files created during gnulib-tool --test.
36066
36067 2009-09-13  Jim Meyering  <meyering@redhat.com>
36068
36069         posixtm: don't reject a time that specify "60" as the number of seconds
36070         * lib/posixtm.c (posixtime): The code to reject invalid dates
36071         would also reject a time specified with the .60 suffix.
36072         But POSIX allows that, in order to accommodate leap seconds.
36073         So don't reject it.
36074         (main): Adjust tests accordingly.
36075         * modules/posixtm (Depends-on): Add stpcpy.
36076
36077 2009-09-11  Jim Meyering  <meyering@redhat.com>
36078
36079         announce-gen: include [$release_type] in emitted Subject:
36080         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
36081         e.g., [stable] in the emitted Subject: line.
36082
36083 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36084
36085         Remove obsolete macros from several modules.
36086         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
36087         obsolete Autoconf macros with their modern counterparts.
36088         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
36089         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
36090         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
36091         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
36092         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
36093         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
36094         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
36095         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
36096         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
36097         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
36098         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
36099         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
36100         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
36101         * m4/sockets.m4 (gl_SOCKETS): Likewise.
36102         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
36103         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
36104         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
36105         * m4/time_r.m4 (gl_TIME_R): Likewise.
36106         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
36107         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
36108         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
36109
36110         Fix copyright header in build-aux scripts.
36111         * build-aux/git-version-gen: Fix copyright header to match GPLv3
36112         recommendation.
36113         * build-aux/ncftpput-ftp: Likewise.
36114         * build-aux/update-copyright: Likewise.
36115
36116 2009-09-09  Eric Blake  <ebb9@byu.net>
36117
36118         test-link: allow Linux choice of errno
36119         * tests/test-link.c (main): Relax test for alternate error.
36120
36121         strndup: fix improper m4 caching
36122         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
36123         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
36124         (gl_PREREQ_STRNDUP): Delete.
36125         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
36126         * modules/string (Makefile.am): Substitute it.
36127         * lib/string.in.h (strndup): Modernize prototype.
36128
36129         getcwd: port to mingw
36130         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
36131         different from the POSIX assumptions made throughout the getcwd
36132         module; fortunately, the mingw getcwd does not need replacement.
36133         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
36134         * modules/getcwd-tests: New test.
36135         * tests/test-getcwd.c: Likewise.
36136
36137         link: fix platform bugs
36138         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
36139         * lib/link.c (link): Work around them.  Fix related mingw bug.
36140         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
36141         * modules/unistd (Makefile.am): Substitute it.
36142         * lib/unistd.in.h (link): Declare replacement.
36143         * doc/posix-functions/link.texi (link): Document this.
36144         * modules/link (Depends-on): Add strdup-posix, sys_stat.
36145
36146         test-link: consolidate into single C program, test more cases
36147         * tests/test-link.sh: Delete.
36148         * tests/test-link.c: Test more error conditions.  Exposes bugs on
36149         at least Cygwin and Solaris.
36150         * modules/link-tests (Files): Remove unused file.
36151         (Depends-on): Add errno, sys_stat.
36152         (Makefile.am): Simplify.
36153
36154 2009-09-08  Bruno Haible  <bruno@clisp.org>
36155
36156         Work around towlower, towupper bug on mingw.
36157         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
36158         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
36159         * doc/posix-functions/towlower.texi: Mention the mingw bug.
36160         * doc/posix-functions/towupper.texi: Likewise.
36161         Reported by Eric Blake.
36162
36163 2009-09-08  Jim Meyering  <meyering@redhat.com>
36164
36165         build: don't try to run autoheader if we don't use it
36166         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
36167         is not used in configure.ac.
36168
36169 2009-09-08  Eric Blake  <ebb9@byu.net>
36170
36171         euidaccess: fix compilation error
36172         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
36173
36174         rawmemchr: relax license
36175         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
36176         okay.
36177         Reported by Jim Meyering.
36178
36179         mkfifoat: new module
36180         * modules/mkfifoat: New file.
36181         * lib/mkfifoat.c: Likewise.
36182         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
36183         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36184         * modules/sys_stat (Makefile.am): Use them.
36185         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
36186         * MODULES.html.sh (File system functions): Mention module.
36187         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
36188         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
36189         * modules/mkfifoat-tests: New test.
36190         * tests/test-mkfifoat.c: Likewise.
36191
36192         strchrnul: relax license
36193         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
36194         okay.
36195         Reported by Jim Meyering.
36196
36197 2009-09-08  Eric Blake  <ebb9@byu.net>
36198
36199         fstatat: fix compilation on Solaris
36200         * lib/fstatat.c (includes): Add fcntl.h.
36201         Reported by Pádraig Brady.
36202
36203 2009-09-07  Eric Blake  <ebb9@byu.net>
36204
36205         rename: modernize replacement
36206         * modules/rename (Depends-on): Add stdio.
36207         (configure.ac): Declare witness.
36208         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
36209         stdio take care of replacement.
36210         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
36211         * modules/stdio (Makefile.am): Substitute them.
36212         * lib/stdio.in.h (rename): Declare replacement.
36213         * lib/rename.c (includes): Allow cross-compilation to non-windows
36214         machines.
36215         * doc/posix-functions/rename.texi (rename): Improve
36216         documentation.
36217
36218         stdio: sort witness names
36219         * modules/stdio (Makefile.am): Sort replacements.
36220         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36221         * lib/stdio.in.h: Likewise.
36222
36223         getcwd: minor cleanups
36224         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
36225         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
36226
36227         openat: provide more convenience names
36228         * modules/faccessat (configure.ac): Add C witness.
36229         * lib/unistd.in.h (readlinkat): Fix typo.
36230         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
36231         convenience wrappers.
36232         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
36233         wrappers in syntax checks.
36234
36235 2009-09-06  Eric Blake  <ebb9@byu.net>
36236
36237         doc: fix comments in recent patches
36238         * lib/faccessat.c: Mention correct function.
36239         * lib/fchmodat.c: Likewise.
36240         * lib/fchownat.c: Likewise.
36241         * lib/symlinkat.c: Likewise.
36242         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
36243         constants.
36244
36245         faccessat, symlinkat: continue cleanup of previous patch
36246         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
36247         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
36248         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
36249         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
36250         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
36251         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
36252         set.
36253
36254 2009-09-06  Bruno Haible  <bruno@clisp.org>
36255
36256         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
36257         (fstatat): Declare if GNULIB_FSTATAT is set.
36258         (mkdirat): Declare if GNULIB_MKDIRAT is set.
36259         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
36260         (unlinkat): Declare if GNULIB_UNLINKAT is set.
36261         * modules/fcntl-h (Files): Remove m4/openat.m4.
36262         * modules/sys_stat (Files): Remove m4/openat.m4.
36263         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
36264         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
36265         * modules/unistd (Files): Remove m4/openat.m4.
36266         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
36267         GNULIB_OPENAT.
36268         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
36269         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
36270         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
36271         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
36272         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
36273         gl_OPENAT_DEFAULTS.
36274         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
36275         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
36276         Don't require gl_OPENAT_DEFAULTS.
36277         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
36278         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
36279         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
36280         (gl_OPENAT_DEFAULTS): Remove macro.
36281
36282 2009-09-06  Bruno Haible  <bruno@clisp.org>
36283
36284         * modules/openat (configure.ac): Remove unneeded witness.
36285
36286 2009-09-06  Bruno Haible  <bruno@clisp.org>
36287
36288         Set errno to ENOSYS when a function is entirely unsupported.
36289         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
36290         EOPNOTSUPP.
36291         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
36292         * modules/chown (Depends-on): Remove errno.
36293
36294 2009-09-06  Bruno Haible  <bruno@clisp.org>
36295
36296         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
36297
36298 2009-09-06  Bruno Haible  <bruno@clisp.org>
36299
36300         * lib/sys_stat.in.h: Fix preprocessor command indentation.
36301
36302 2009-09-06  Ben Pfaff  <blp@gnu.org>
36303             Bruno Haible  <bruno@clisp.org>
36304
36305         Work around a glibc bug in strtok_r.
36306         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
36307         Undefine if UNDEFINE_STRTOK_R is set.
36308         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
36309         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36310         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
36311         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
36312         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
36313         UNDEFINE_STRTOK_R.
36314         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
36315
36316 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
36317
36318         exclude: minor fix
36319         * lib/exclude.c: Include wctype.h
36320
36321 2009-09-06  Akim Demaille  <demaille@gostai.com>
36322
36323         bootstrap: improve error message
36324         * build-aux/bootstrap (find_tool): Upon failure, report the list
36325         of candidates.
36326         Honor the initial value of the envvar.
36327
36328 2009-09-05  Eric Blake  <ebb9@byu.net>
36329
36330         symlinkat: new module
36331         * modules/symlinkat: New file.
36332         * lib/symlinkat.c: Likewise.
36333         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
36334         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36335         * modules/unistd (Makefile.am): Use them.
36336         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
36337         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
36338         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
36339         * MODULES.html.sh (File system functions): Mention module.
36340         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36341         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
36342         * modules/symlinkat-tests: New test.
36343         * tests/test-symlinkat.c: Likewise.
36344
36345         test-openat-safer: add more checks
36346         * tests/test-openat-safer.c (main): Check more code paths.
36347
36348 2009-09-05  Jim Meyering  <meyering@redhat.com>
36349
36350         syntax-check: detect unnecessary inclusion of openat.h
36351         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
36352
36353 2009-09-05  Bruno Haible  <bruno@clisp.org>
36354
36355         Support towlower, towupper.
36356         * doc/posix-functions/towlower.texi: Mention module wctype.
36357         * doc/posix-functions/towupper.texi: Likewise.
36358         * lib/wctype.in.h (towlower, towupper): New functions.
36359         * tests/test-wctype.c: Include stdio.h, stdlib.h.
36360         (ASSERT): New macro.
36361         (e): New variable.
36362         (main): Test also towlower, towupper. Test WEOF argument.
36363         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36364
36365 2009-09-05  Bruno Haible  <bruno@clisp.org>
36366
36367         Fix conversion behaviour when the input is invalid.
36368         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
36369         mark occurring in first pass of indirect conversion.
36370         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
36371         input.
36372         Found by clang's static analyzer.
36373
36374 2009-09-05  Bruno Haible  <bruno@clisp.org>
36375
36376         * tests/test-striconveh.c (main): Test indirect conversion on platforms
36377         where direct conversion is possible.
36378
36379 2009-09-04  Eric Blake  <ebb9@byu.net>
36380
36381         openat: fail with ENOENT on empty name
36382         * lib/openat-proc.c (openat_proc_name): Special-case the empty
36383         buffer.
36384
36385         link-follow: fix logic bug in prior patch
36386         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
36387         reversed sense of yes and no in prior patch.  Avoid confusing
36388         compilation failure with desired semantics.
36389
36390         link-follow: accomodate mingw and cross-compilation
36391         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
36392         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
36393         cross-compilation results to -1, to make linkat easier to
36394         implement when cross-compiling.  Trivially support mingw.
36395         * modules/link-follow (configure.ac): Call new name.
36396         * NEWS: Mention this.
36397
36398 2009-09-03  Eric Blake  <ebb9@byu.net>
36399
36400         faccessat: compile replacement
36401         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
36402         needed.
36403
36404         fts: fix compilation error
36405         * lib/fts.c (includes): Re-add "openat.h", for
36406         openat_needs_fchdir.
36407
36408         faccessat: new module
36409         * modules/faccessat: New file.
36410         * lib/faccessat.c: Likewise.
36411         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
36412         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36413         * modules/unistd (Makefile.am): Use it.
36414         * lib/unistd.in.h (faccessat): Declare it.
36415         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
36416         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
36417         * MODULES.html.sh (File system functions): Mention it.
36418         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
36419         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
36420
36421         euidaccess: prefer POSIX over non-standard implementation
36422         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
36423         * lib/euidaccess.c (euidaccess): Use it if available.
36424
36425         openat: make template easier to use
36426         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
36427         AT_FUNC_F2 to be undefined.
36428         (VALIDATE_FLAG): New macro; use it to reject bad flags.
36429         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
36430         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
36431         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
36432         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
36433         Likewise.
36434         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
36435         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
36436         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
36437         Likewise.
36438
36439         openat: declare in POSIX headers
36440         * NEWS: Mention this.
36441         * modules/openat (configure.ac): Declare witnesses.
36442         (Depends-on): Add fcntl-h, sys_stat, unistd.
36443         (Include): Mention correct headers.
36444         * modules/fcntl-h (Depends-on): Add link-warning.
36445         (Files): Add openat.m4.
36446         (Makefile.am): Substitute witnesses.
36447         * modules/sys_stat (Files, Makefile.am): Likewise.
36448         * modules/unistd (Files, Makefile.am): Likewise.
36449         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
36450         (gl_OPENAT_DEFAULTS): New macro.
36451         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
36452         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
36453         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
36454         (SYS_STAT_H): Remove unused variable.
36455         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
36456         * lib/fcntl--.h (includes): Remove unneeded header.
36457         * lib/openat-safer.c (includes): Likewise.
36458         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
36459         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
36460         appropriate headers.
36461         (__OPENAT_PREFIX): Delete.
36462         * lib/fcntl.in.h (openat): Provide declaration.
36463         (AT_FDCWD): Fix Solaris bug.
36464         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
36465         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
36466         * lib/fchmodat.c (includes):  Adjust to find declaration.
36467         * lib/fchownat.c (includes): Likewise.
36468         * lib/mkdirat.c (includes): Likewise.
36469         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
36470         still visible.
36471
36472 2009-09-02  Eric Blake  <ebb9@byu.net>
36473
36474         errno: use consistently
36475         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
36476         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
36477         * lib/canonicalize.c (ELOOP): Likewise.
36478         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
36479         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
36480         * lib/lchown.c (EOPNOTSUPP): Likewise.
36481         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
36482         * lib/savewd.c (ESTALE): Likewise.
36483         * lib/settime.c (ENOSYS): Likewise.
36484         * lib/utimens.c (ENOSYS): Likewise.
36485         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
36486         * lib/chdir-safer.c (ELOOP): Likewise.
36487         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
36488         * modules/c-stack (Depends-on): Add errno.
36489         * modules/canonicalize (Depends-on): Likewise.
36490         * modules/chdir-safer (Depends-on): Likewise.
36491         * modules/fdopendir (Depends-on): Likewise.
36492         * modules/inet_ntop (Depends-on): Likewise.
36493         * modules/inet_pton (Depends-on): Likewise.
36494         * modules/lchown (Depends-on): Likewise.
36495         * modules/openat (Depends-on): Likewise.
36496         * modules/savewd (Depends-on): Likewise.
36497         * modules/settime (Depends-on): Likewise.
36498         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
36499
36500         fts: avoid leaking fds
36501         * modules/fts (Depends-on): Add cloexec.
36502         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
36503         flag.
36504
36505         fts: make directory fds more robust
36506         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
36507         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
36508
36509         backupfile, chdir-long, fts, savedir: make safer
36510         * lib/backupfile.c (includes): Use "dirent--.h", since
36511         numbered_backup can write to stderr during readdir.
36512         * lib/savedir.c (includes): Likewise.
36513         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
36514         emulation can write to stderr on failure.
36515         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
36516         * lib/getcwd.c: Document why opendir_safer is unused.
36517         * lib/glob.c: Likewise.
36518         * lib/scandir.c: Likewise.
36519         * lib/openat-proc.c: Likewise, for open_safer.
36520         * modules/backupfile (Depends-on): Add dirent-safer.
36521         * modules/savedir (Depends-on): Likewise.
36522         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
36523         * modules/chdir-long (Depends-on): Add openat-safer.
36524
36525         openat-safer: new module
36526         * modules/openat-safer: New file.
36527         * lib/openat-safer.c: Likewise.
36528         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
36529         * lib/fcntl-safer.h (openat_safer): Declare.
36530         * lib/fcntl--.h (openat): Override.
36531         * MODULES.html.sh (File descriptor based I/O): Mention it.
36532         * lib/openat.h: Add double-inclusion guards.
36533         * lib/openat.c (includes): Only include "fcntl-safer.h", not
36534         "fcntl--.h", so we can implement openat.
36535         * modules/openat-safer-tests: New test.
36536         * tests/test-openat-safer.c: New file.
36537
36538         dirent-safer: new module
36539         * modules/dirent-safer: New file.
36540         * lib/dirent--.h: Likewise.
36541         * lib/dirent-safer.h: Likewise.
36542         * lib/opendir-safer.c: Likewise.
36543         * m4/dirent-safer.m4: Likewise.
36544         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
36545         * modules/dirent-safer-tests: New test.
36546         * tests/test-dirent-safer.c: New file.
36547         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
36548
36549         fdopendir: optimize on mingw
36550         * lib/unistd.in.h (_gl_directory_name): New prototype.
36551         * lib/fchdir.c (_gl_directory_name): Implement it.
36552         (fchdir): Use it to simplify implementation.
36553         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
36554         fchdir, when available, to avoid calling [f]chdir().
36555
36556         fdopendir: split into its own module
36557         * lib/openat.c (fdopendir): Move...
36558         * lib/fdopendir.c: ...into new file.
36559         * modules/fdopendir: New module.
36560         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
36561         * modules/openat (Depends-on): Add fdopendir.
36562         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
36563         fdopendir here.
36564         * modules/savedir (Depends-on): Only need fdopendir, not full
36565         openat.
36566         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
36567         * lib/openat.h (fdopendir): Drop prototype.
36568         * lib/dirent.in.h (fdopendir): Provide prototype.
36569         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
36570         * modules/dirent (Makefile.am): Substitute them.
36571         * MODULES.html.sh (File system functions): Mention it.
36572         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
36573         * modules/fdopendir-tests: New file.
36574         * tests/test-fdopendir.c: Likewise.
36575
36576         fchdir: use more consistent macro convention
36577         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
36578         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
36579         REPLACE_FCHDIR, rather than relying on config.h macros.
36580         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
36581         inside a single make-time REPLACE_FCHDIR block, rather than using
36582         the config.h FCHDIR_REPLACEMENT.
36583         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
36584         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
36585         Manage fstat replacement.
36586         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
36587         REPLACE_FCHDIR.
36588         * modules/sys_stat (Files): Add m4/unistd_h.m4.
36589         (Makefile.am): Substitute REPLACE_FCHDIR.
36590         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
36591         FCHDIR_REPLACEMENT.
36592         * lib/dup-safer.c (dup_safer): Likewise.
36593         * lib/dup2.c (rpl_dup2): Likewise.
36594         * lib/dup3.c (rpl_dup3): Likewise.
36595         * lib/open.c (rpl_open): Likewise.
36596
36597         fchdir: simplify error handling, and support dup3
36598         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
36599         stdbool, malloc-posix, realloc-posix.
36600         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
36601         (ensure_dirs_slot): Return false on allocation failure.
36602         (rpl_dup2): Delete.
36603         (_gl_register_dup): New function.
36604         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
36605         (_gl_register_fd): Close fd on allocation failure.
36606         * lib/fcntl.in.h (_gl_register_fd): Update signature.
36607         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
36608         prototype.
36609         (rpl_dup2_fchdir): Delete prototype.
36610         * lib/open.c (open): Update caller.
36611         * lib/dup2.c (dup2): Track fchdir metadata.
36612         * lib/dup3.c (dup3): Likewise.
36613         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
36614         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
36615
36616 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36617
36618         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
36619         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
36620         don't pass arguments to AC_OUTPUT.
36621
36622 2009-09-02  Bruno Haible  <bruno@clisp.org>
36623
36624         * modules/mkdtemp (License): Relicense under LGPLv2+.
36625         Reported by Paolo Bonzini.
36626
36627 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36628
36629         Replace uses of obsolete autoconf macros in Jim's modules.
36630         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
36631         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
36632         can evoke a warning from autoconf when run with -Wobsolete
36633         enabled.  They were declared obsolete for good reasons (see
36634         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
36635         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
36636         should not continue using the deprecated macros.
36637         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
36638         obsolete Autoconf macros with modern counterparts.
36639         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
36640         * m4/dos.m4 (gl_AC_DOS): Likewise.
36641         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
36642         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
36643         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
36644         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
36645         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
36646         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
36647         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
36648         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
36649         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
36650         Likewise.
36651         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
36652         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
36653         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
36654         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
36655         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
36656         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
36657
36658 2009-09-01  Eric Blake  <ebb9@byu.net>
36659
36660         fchdir: fix off-by-one bug in previous patch
36661         * lib/fchdir.c (rpl_fstat): Use correct bounds.
36662         (_gl_unregister_fd): Delete useless if.
36663
36664 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
36665
36666         maint.mk: sort the list of syntax-check rules
36667         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
36668         easier to get a sense of progress when the rules are run sequentially
36669         and take a long time.
36670
36671 2009-09-01  Simon Josefsson  <simon@josefsson.org>
36672
36673         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
36674         * modules/netinet_in: Likewise.
36675         * modules/sys_file: Likewise.
36676         * modules/sys_ioctl: Likewise.
36677         * modules/sys_select: Likewise.
36678         * modules/sys_socket: Likewise.
36679         * modules/sys_stat: Likewise.
36680         * modules/sys_time: Likewise.
36681         * modules/sys_times: Likewise.
36682         * modules/sys_utsname: Likewise.
36683         * modules/sys_wait: Likewise.
36684
36685 2009-09-01  Jim Meyering  <meyering@redhat.com>
36686
36687         fts: help ensure that return values are not ignored
36688         * lib/fts_.h (__GNUC_PREREQ): Define.
36689         (__attribute_warn_unused_result__): Define.
36690         (fts_children, fts_close, fts_open, fts_read): Declare with
36691         __attribute_warn_unused_result__.
36692
36693         fts: fts_close now fails also when closing a dir file descriptor fails
36694         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
36695         and propagate to caller, along with errno.
36696
36697         announce-gen: correct formatting in --help output
36698         * build-aux/announce-gen (usage): Move the one-line description in
36699         --help output "up", to where it belongs, just after Usage:.
36700
36701 2009-08-31  Eric Blake  <ebb9@byu.net>
36702
36703         fchdir: port to mingw
36704         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
36705         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
36706         opened, then use a substitute.
36707         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
36708         replacement.
36709         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
36710         (_gl_register_fd): No need to check stat if open already filters
36711         all directories.
36712         (fchdir): Fix error condition to match POSIX.
36713         * modules/fchdir (Depends-on): Add sys_stat.
36714         * doc/posix-functions/open.texi (open): Document the limitation.
36715         * modules/fchdir-tests: New file.
36716         * tests/test-fchdir.c: Likewise.
36717
36718         canonicalize: allow cross-testing from cygwin to mingw
36719         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
36720         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
36721         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
36722         Likewise.
36723         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
36724         target does not support symlinks.
36725         * tests/test-canonicalize-lgpl.sh: Likewise.
36726
36727         chown: avoid compilation warning on mingw
36728         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
36729         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
36730         mingw.
36731         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
36732         * modules/chown (Depends-on): Add errno.
36733
36734 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
36735
36736         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
36737         command.
36738
36739 2009-08-31  Jim Meyering  <meyering@redhat.com>
36740
36741         canonicalize: remove useless initialization
36742         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
36743         initialization of local, "end".
36744
36745 2009-08-30  Bruno Haible  <bruno@clisp.org>
36746
36747         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
36748         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
36749         ENOSYS.
36750
36751 2009-08-30  Bruno Haible  <bruno@clisp.org>
36752
36753         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
36754         /usr/xpg4/bin/tr when it exists.
36755         * tests/test-pipe-filter-gi1.sh: Likewise.
36756
36757 2009-08-30  Bruno Haible  <bruno@clisp.org>
36758
36759         Work around deficient /usr/bin/id program on Solaris.
36760         * tests/test-file-has-acl.sh (ID): New variable.
36761         * tests/test-set-mode-acl.sh (ID): Likewise.
36762         * tests/test-copy-acl.sh (ID): Likewise.
36763         * tests/test-copy-file.sh (ID): Likewise.
36764
36765 2009-08-30  Bruno Haible  <bruno@clisp.org>
36766
36767         New module 'xstriconveh'.
36768         * lib/xstriconveh.h: New file.
36769         * lib/xstriconveh.c: New file.
36770         * modules/xstriconveh: New file.
36771
36772 2009-08-30  Bruno Haible  <bruno@clisp.org>
36773
36774         Make it easier to use mem_cd_iconveh.
36775         * lib/striconveh.h (iconveh_t): New type.
36776         (iconveh_open, iconveh_close): New declarations.
36777         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36778         with a single 'const iconveh_t *' argument.
36779         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
36780         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36781         with a single 'const iconveh_t *' argument.
36782         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
36783         * tests/test-striconveh.c (main): Update.
36784         * NEWS: Mention the change.
36785
36786 2009-08-30  Bruno Haible  <bruno@clisp.org>
36787
36788         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
36789         problem.
36790
36791 2009-08-30  Bruno Haible  <bruno@clisp.org>
36792
36793         Work around iconv_open problem on Solaris.
36794         * lib/iconv_open-solaris.gperf: New file.
36795         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
36796         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
36797         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
36798         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
36799         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
36800         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
36801
36802 2009-08-29  Jim Meyering  <meyering@redhat.com>
36803
36804         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
36805         * top/maint.mk (cvs-check): Remove target; it was just an alias
36806         to the better-named vc-diff-check.
36807         (maintainer-distcheck): Remove rule.  It was used only from
36808         the (alpha/beta/major) target, and all of its commands but one
36809         were coreutils-specific.
36810         (vc-dist): Remove rule.
36811         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
36812         Run vc-diff-check, not vc-dist.
36813         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
36814
36815 2009-08-27  Bruno Haible  <bruno@clisp.org>
36816
36817         * tests/test-bitrotate.c (main): Remove test that uses a shift count
36818         of 0.
36819
36820 2009-08-27  Bruno Haible  <bruno@clisp.org>
36821
36822         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
36823         compilers.
36824         * doc/func.texi: Document the SunPRO C bug.
36825
36826 2009-08-27  Bruno Haible  <bruno@clisp.org>
36827
36828         Fix link error on Solaris.
36829         * tests/test-parse-duration.c (xstrdup): Remove function.
36830
36831 2009-08-26  Pádraig Brady  <P@draigbrady.com>
36832
36833         ignore-value: handle pointer types, too
36834         * lib/ignore-value.h (__attribute__): Remove definition.
36835         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
36836         of a more concise and more-often effective "(void) i" statement.
36837         (ignore_ptr): New function to suppress warnings from functions that
36838         return pointers, and to make it explicit that one function doesn't
36839         handle all cases.
36840
36841 2009-08-25  Bruno Haible  <bruno@clisp.org>
36842
36843         dup2: work around a Linux bug.
36844         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
36845         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
36846         * doc/posix-functions/dup2.texi: Mention the Linux bug.
36847         Reported by Simon Josefsson.
36848
36849 2009-08-25  Jim Meyering  <meyering@redhat.com>
36850
36851         libguestfs uses gnulib
36852         * users.txt: Add libguestfs.
36853
36854 2009-08-24  Eric Blake  <ebb9@byu.net>
36855
36856         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
36857         * lib/pipe2.c (includes): Add binary-io.h.
36858         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
36859
36860 2009-08-24  Bruno Haible  <bruno@clisp.org>
36861
36862         Tolerate declared but missing accept4 syscall.
36863         * lib/accept4.c (accept4): Invoke original accept4 function first, if
36864         available.
36865         * lib/sys_socket.in.h (accept4): If the function is already present,
36866         override it.
36867         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
36868         * modules/accept4 (Makefile.am): Compile accept4.c always.
36869         Reported by Paolo Bonzini and Eric Blake.
36870
36871 2009-08-23  Bruno Haible  <bruno@clisp.org>
36872
36873         New module 'accept4'.
36874         * lib/sys_socket.in.h (accept4): New declaration.
36875         * lib/accept4.c: New file.
36876         * m4/accept4.m4: New file.
36877         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
36878         GNULIB_ACCEPT4, HAVE_ACCEPT4.
36879         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
36880         HAVE_ACCEPT4.
36881         * modules/accept4: New file.
36882         * doc/glibc-functions/accept4.texi: Mention the new module.
36883
36884 2009-08-24  Jim Meyering  <meyering@redhat.com>
36885
36886         progname: also set global program_invocation_name, when possible
36887         Before this change, a libtool-enabled program that calls glibc's
36888         error function would report the program name as
36889         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
36890         * modules/progname (configure.ac): Check for a declaration of
36891         program_invocation_name.
36892         * lib/progname.c:  Include <errno.h>.
36893         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
36894         Set program_invocation_name.
36895
36896 2009-08-23  Bruno Haible  <bruno@clisp.org>
36897
36898         * lib/dup3.c: Include <string.h>.
36899
36900 2009-08-23  Bruno Haible  <bruno@clisp.org>
36901
36902         * lib/dup3.c (dup3): Test only once whether the system actually exists.
36903         * lib/pipe2.c (pipe2): Likewise.
36904         Suggested by Eric Blake.
36905
36906 2009-08-23  Bruno Haible  <bruno@clisp.org>
36907
36908         Tolerate declared but missing dup3 syscall.
36909         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
36910         * lib/unistd.in.h (dup3): If the function is already present,
36911         override it.
36912         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
36913         * modules/dup3 (Makefile.am): Compile dup3.c always.
36914         Reported by Paolo Bonzini.
36915
36916 2009-08-23  Bruno Haible  <bruno@clisp.org>
36917
36918         Tolerate declared but missing pipe2 syscall.
36919         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
36920         available.
36921         * lib/unistd.in.h (pipe2): If the function is already present,
36922         override it.
36923         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
36924         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
36925         Reported by Paolo Bonzini.
36926
36927 2009-08-23  Bruno Haible  <bruno@clisp.org>
36928
36929         * lib/pipe2.c (pipe2): Move #ifs inside function.
36930
36931 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36932
36933         quotearg: document limitations of quote_these_too
36934         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
36935         those limitations are created.
36936         * lib/quotearg.h (set_char_quoting): Document that digits and
36937         letters that are special after backslash are not permitted.
36938         (quotearg_char): Cross-reference set_char_quoting documentation.
36939
36940 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
36941
36942         quotearg: implement custom_quoting_style
36943         * lib/quotearg.c: (struct quoting_options): Add left_quote and
36944         right_quote fields.
36945         (set_custom_quoting): New public function.
36946         (quotearg_buffer_restyled): Add left_quote and right_quote
36947         arguments, handle them very much like locale quoting, and update
36948         all uses.
36949         (quotearg_n_custom): New public function.
36950         (quotearg_n_custom_mem): New public function.
36951         (quotearg_custom): New public function.
36952         (quotearg_custom_mem): New public function.
36953         * lib/quotearg.h: Prototype and document new public functions.
36954         (enum quoting_style): For escape_quoting_style and
36955         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
36956         ignored even though they're otherwise like c_quoting_style.
36957         Add custom_quoting_style member and document with comparison to
36958         clocale_quoting_style.
36959         * tests/test-quotearg.c (custom_quotes): New array.
36960         (custom_results): New array.
36961         (main): Extend to test custom quoting.
36962
36963 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36964
36965         quotearg: fix right quote escaping when it's in quote_these_too
36966         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
36967         quote, be sure to prepend only one backslash.
36968         * tests/test-quotearg.c (use_quote_double_quotes): New function.
36969         (main): Test it.
36970
36971 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36972
36973         quotearg-tests: test escaping of embedded locale quotes
36974         * tests/test-quotearg.c (struct result_strings): Add member for
36975         new input.
36976         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
36977         (inputs): Add new input.
36978         (results_g): Add expected results.
36979         (flag_results): Likewise.
36980         (locale_results): Likewise.
36981         (compare_strings): Check those.
36982
36983 2009-08-23  Bruno Haible  <bruno@clisp.org>
36984
36985         Tests for module 'dup3'.
36986         * modules/dup3-tests: New file.
36987         * tests/test-dup3.c: New file.
36988
36989         New module 'dup3'.
36990         * lib/unistd.in.h (dup3): New declaration.
36991         * lib/dup3.c: New file.
36992         * m4/dup3.m4: New file.
36993         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
36994         HAVE_DUP3.
36995         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
36996         * modules/dup3: New file.
36997         * doc/glibc-functions/dup3.texi: Mention the new module.
36998
36999 2009-08-23  Bruno Haible  <bruno@clisp.org>
37000
37001         Tweak the dup2 test.
37002         * tests/test-dup2.c (main): Create the test file empty. Verify that an
37003         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
37004         the test file is still empty. Fix argument order of lseek.
37005
37006 2009-08-23  Bruno Haible  <bruno@clisp.org>
37007
37008         Avoid test link errors when the modules getopt-gnu, gettext are used.
37009         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
37010         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37011
37012 2009-08-23  Bruno Haible  <bruno@clisp.org>
37013
37014         Fix getdtablesize() on mingw.
37015         * lib/getdtablesize.c (getdtablesize): Implement differently.
37016         * lib/unistd.in.h (getdtablesize): Improve comment.
37017
37018 2009-08-23  Bruno Haible  <bruno@clisp.org>
37019
37020         New module 'mkostemp'.
37021         Based on Ulrich Drepper's 2007-08-10 change in glibc.
37022         * lib/stdlib.in.h (mksotemp): New declaration.
37023         * lib/mkostemp.c: New file, from glibc with modifications.
37024         * lib/tempname.h (GT_FILE): Remove outdated comment.
37025         (gen_tempname): Add flags argument.
37026         * lib/tempname.c (__GT_BIGFILE): Remove macro.
37027         (__GT_FILE): Map to 1.
37028         (small_open, large_open): Remove macros.
37029         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
37030         * lib/mkstemp.c (mkstemp): Update.
37031         * lib/mkdtemp.c (mkdtemp): Likewise.
37032         * m4/mkostemp.m4: New file.
37033         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
37034         HAVE_MKOSTEMP.
37035         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
37036         HAVE_MKOSTEMP.
37037         * modules/mkostemp: New file, based on modules/mkstemp.
37038         * doc/glibc-functions/mkostemp.texi: Mention the new module.
37039         * NEWS: Mention the change.
37040
37041 2009-08-23  Bruno Haible  <bruno@clisp.org>
37042
37043         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
37044         Reported by Eric Blake.
37045
37046 2009-08-23  Bruno Haible  <bruno@clisp.org>
37047
37048         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
37049         Reported by Eric Blake.
37050
37051 2009-08-23  Bruno Haible  <bruno@clisp.org>
37052
37053         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
37054         * modules/pipe2 (Depends-on): Likewise.
37055
37056 2009-08-23  Eric Blake  <ebb9@byu.net>
37057
37058         fcntl-h: add O_TTY_INIT support
37059         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
37060         * tests/test-fcntl-h.c (o): Test it.
37061         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37062
37063         fcntl-h: rename from fcntl, in preparation for fcntl(2)
37064         * modules/fcntl: Move <fcntl.h> header replacement...
37065         * modules/fcntl-h: ...to new name, so as not to collide with
37066         like-named function.
37067         * tests/test-fcntl.c: Rename...
37068         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
37069         * modules/fcntl-tests: Rename...
37070         * modules/fcntl-h-tests: ...to this.  Update test file name.
37071         * modules/chdir-long (Depends-on): Update clients.
37072         * modules/chdir-safer (Depends-on): Likewise.
37073         * modules/fcntl-safer (Depends-on): Likewise.
37074         * modules/fts (Depends-on): Likewise.
37075         * modules/mkancesdirs (Depends-on): Likewise.
37076         * modules/mkdir-p (Depends-on): Likewise.
37077         * modules/open (Depends-on): Likewise.
37078         * modules/savewd (Depends-on): Likewise.
37079         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
37080         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37081
37082 2009-08-22  Bruno Haible  <bruno@clisp.org>
37083
37084         * modules/binary-io (License): Relicense under LGPL.
37085         * modules/pipe2 (License): Likewise.
37086
37087 2009-08-22  Bruno Haible  <bruno@clisp.org>
37088
37089         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
37090         return value.
37091         * lib/pipe-filter-gi.c (filter_init): Likewise.
37092         Reported by Eric Blake.
37093
37094 2009-08-22  Bruno Haible  <bruno@clisp.org>
37095
37096         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
37097         * modules/pipe (Depends-on): Add pipe2.
37098
37099 2009-08-22  Bruno Haible  <bruno@clisp.org>
37100
37101         Tests for module 'pipe2'.
37102         * modules/pipe2-tests: New file.
37103         * tests/test-pipe2.c: New file.
37104
37105         New module 'pipe2'.
37106         * lib/unistd.in.h (pipe2): New declaration.
37107         * lib/pipe2.c: New file.
37108         * m4/pipe2.m4: New file.
37109         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
37110         HAVE_PIPE2.
37111         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
37112         * modules/pipe2: New file.
37113         * doc/glibc-functions/pipe2.texi: Mention the new module.
37114
37115 2009-08-22  Bruno Haible  <bruno@clisp.org>
37116
37117         Reference some new glibc functions.
37118         * doc/glibc-functions/accept4.texi: New file.
37119         * doc/glibc-functions/dup3.texi: New file.
37120         * doc/glibc-functions/mkostemp.texi: New file.
37121         * doc/glibc-functions/pipe2.texi: New file.
37122         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
37123         (Glibc sys/socket.h): Refer to accept4.
37124         (Glibc unistd.h): Refer to dup3, pipe2.
37125         Reported by Eric Blake.
37126
37127 2009-08-22  Jim Meyering  <meyering@redhat.com>
37128             Bruno Haible  <bruno@clisp.org>
37129
37130         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
37131         This makes it so packages using automake-1.11's silent-rules option
37132         can print e.g., a single "GEN    configmake.h" line, rather than
37133         the 30+ statements that perform the job.  If you want to see the
37134         actual commands, you can still run "make V=1".
37135         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
37136         so that make output is abbreviated when those variables are defined
37137         appropriately.
37138         * modules/argz: Likewise.
37139         * modules/arpa_inet: Likewise.
37140         * modules/byteswap: Likewise.
37141         * modules/configmake: Likewise.
37142         * modules/dirent: Likewise.
37143         * modules/errno: Likewise.
37144         * modules/fcntl: Likewise.
37145         * modules/float: Likewise.
37146         * modules/fnmatch: Likewise.
37147         * modules/getopt-posix: Likewise.
37148         * modules/glob: Likewise.
37149         * modules/iconv_open: Likewise.
37150         * modules/inttypes: Likewise.
37151         * modules/localcharset: Likewise.
37152         * modules/locale: Likewise.
37153         * modules/math: Likewise.
37154         * modules/netdb: Likewise.
37155         * modules/netinet_in: Likewise.
37156         * modules/poll: Likewise.
37157         * modules/posix_spawnp-tests: Likewise.
37158         * modules/sched: Likewise.
37159         * modules/search: Likewise.
37160         * modules/selinux-h: Likewise.
37161         * modules/signal: Likewise.
37162         * modules/spawn: Likewise.
37163         * modules/stdarg: Likewise.
37164         * modules/stdbool: Likewise.
37165         * modules/stddef: Likewise.
37166         * modules/stdint: Likewise.
37167         * modules/stdio: Likewise.
37168         * modules/stdlib: Likewise.
37169         * modules/string: Likewise.
37170         * modules/strings: Likewise.
37171         * modules/sys_file: Likewise.
37172         * modules/sys_ioctl: Likewise.
37173         * modules/sys_select: Likewise.
37174         * modules/sys_socket: Likewise.
37175         * modules/sys_stat: Likewise.
37176         * modules/sys_time: Likewise.
37177         * modules/sys_times: Likewise.
37178         * modules/sys_utsname: Likewise.
37179         * modules/sys_wait: Likewise.
37180         * modules/sysexits: Likewise.
37181         * modules/time: Likewise.
37182         * modules/unistd: Likewise.
37183         * modules/wchar: Likewise.
37184         * modules/wctype: Likewise.
37185
37186 2009-08-22  Jim Meyering  <meyering@redhat.com>
37187
37188         announce-gen: detect write failure
37189         * build-aux/announce-gen: Add Coda at end.
37190         Remove equivalent-but-more-verbose block at top.
37191
37192 2009-08-19  Akim Demaille  <demaille@gostai.com>
37193
37194         bootstrap: --help to stdout.
37195         * bootstrap (usage): Don't send --help to stderr.
37196         Use a here doc instead of a long string.
37197
37198 2009-08-21  Eric Blake  <ebb9@byu.net>
37199
37200         test-popen-safer: split from test-popen
37201         * tests/test-popen.c (main): Move...
37202         * tests/test-popen.h: ...into new file.
37203         * tests/test-popen-safer2.c: New file.
37204         * modules/popen-tests (Files): Add test-popen.h.
37205         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
37206         Suggested by Bruno Haible.
37207
37208         test-fcntl-safer: split from test-open
37209         * tests/test-open.c (main): Move...
37210         * tests/test-open.h: ...into new file.
37211         * tests/test-fcntl-safer.c: New file.
37212         * modules/open-tests (Files): Add test-open.h.
37213         * modules/fcntl-safer-tests: New file.
37214         Suggested by Bruno Haible.
37215
37216         test-fopen-safer: split from test-fopen
37217         * tests/test-fopen.c (main): Move...
37218         * tests/test-fopen.h: ...into new file.
37219         * tests/test-fopen-safer.c: New file.
37220         * modules/fopen-tests (Files): Add test-fopen.h.
37221         * modules/fopen-safer-tests: New file.
37222         Suggested by Bruno Haible.
37223
37224 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
37225
37226         popen-safer: test O_CLOEXEC at run-time.
37227         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
37228
37229 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
37230
37231         fcntl: move more flags to the header
37232         * lib/cloexec.c: Do not define FD_CLOEXEC here.
37233         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
37234         * lib/fcntl.in.h: Do both things here.
37235
37236 2009-08-21  Jim Meyering  <meyering@redhat.com>
37237
37238         consistently remove $@-t before redirecting to it
37239         * modules/argz: Remove $@-t and $@ before redirecting to the former.
37240         * modules/alloca-opt: Likewise.
37241         * modules/byteswap: Likewise.
37242         * modules/fnmatch: Likewise.
37243         * modules/getopt-posix: Likewise.
37244         * modules/glob: Likewise.
37245         * modules/poll: Likewise.
37246         * modules/posix_spawnp-tests: Likewise.
37247         * modules/sys_socket: Likewise.
37248         * modules/sysexits: Likewise.
37249
37250 2009-08-21  Eric Blake  <ebb9@byu.net>
37251
37252         popen: simplify access to original popen
37253         * lib/popen.c (rpl_popen): No need to worry about popen being a
37254         macro.
37255         Reported by Bruno Haible.
37256
37257 2009-08-20  Eric Blake  <ebb9@byu.net>
37258
37259         build: avoid some compiler warnings
37260         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
37261         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
37262         type.
37263         (new_exclude_segment, excluded_file_pattern_p)
37264         (excluded_file_name_p): Reduce scope.
37265         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
37266         old-style declaration.
37267
37268 2009-08-20  Simon Josefsson  <simon@josefsson.org>
37269
37270         * tests/test-exclude1.sh: Handle Windows EOL.
37271         * tests/test-exclude2.sh: Likewise.
37272         * tests/test-exclude3.sh: Likewise.
37273         * tests/test-exclude4.sh: Likewise.
37274         * tests/test-exclude5.sh: Likewise.
37275         * tests/test-exclude6.sh: Likewise.
37276         * tests/test-exclude7.sh: Likewise.
37277
37278 2009-08-19  Akim Demaille  <demaille@gostai.com>
37279
37280         bootstrap: find sha1sum when named gsha1sum.
37281         * bootstrap (find_tool): New.
37282         ($SHA1SUM): New.
37283         Use it.
37284
37285 2009-08-20  Jim Meyering  <meyering@redhat.com>
37286
37287         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
37288         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
37289         expression that converts "." in a file name to "\." in the resulting
37290         regexp.  Start with a dummy statement, so that prior shell variable
37291         definitions are expanded portably.  Reported by Simon Josefsson.
37292
37293 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
37294
37295         Fix polling for writeability of a screen buffer.
37296         * lib/poll.c: Distinguish input and screen buffers for the
37297         Win32 implementation.
37298         * lib/select.c: Likewise.
37299
37300 2009-08-19  Eric Blake  <ebb9@byu.net>
37301
37302         popen-safer: prevent popen from clobbering std descriptors
37303         * modules/popen-safer: New file.
37304         * lib/popen-safer.c: Likewise.
37305         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
37306         * lib/stdio--.h (popen): Provide override.
37307         * lib/stdio-safer.h (popen_safer): Provide declaration.
37308         * tests/test-popen.c (includes): Partially test this.
37309         * modules/popen-safer-tests: New file, for more tests.
37310         * tests/test-popen-safer.c: Likewise.
37311         * MODULES.html.sh (file stream based Input/Output): Mention it.
37312
37313         tests: test some of the *-safer modules
37314         * modules/fopen-safer (Depends-on): Add fopen.
37315         * modules/fcntl-safer (Depends-on): Add fcntl.
37316         * modules/stdlib-safer (Depends-on): Add stdlib.
37317         (configure.ac): Set indicator.
37318         * modules/unistd-safer (configure.ac): Likewise.
37319         * modules/tmpfile-safer (configure.ac): Likewise.
37320         (Depends-on): Add tmpfile.
37321         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
37322         active.
37323         * tests/test-fopen.c (includes): Test safer versions when they are
37324         in use.
37325         * tests/test-open.c (includes): Likewise.
37326
37327         popen: fix cygwin 1.5 bug when stdin closed
37328         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
37329         * modules/popen: New file.
37330         * modules/popen-tests: Likewise.
37331         * tests/test-popen.c: Likewise.
37332         * m4/popen.m4: Likewise.
37333         * lib/popen.c: Likewise.
37334         * lib/stdio.in.h (popen): New declaration.
37335         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
37336         * modules/stdio (Makefile.am): Likewise.
37337         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
37338
37339 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
37340
37341         maint.mk: give full control over update-copyright exclusions
37342         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
37343         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
37344         (update-copyright): Don't force inclusion of top-level
37345         ChangeLog.  Don't force exclusion of all COPYING files, but make
37346         them the default exclusion instead.
37347
37348 2009-08-16  Bruno Haible  <bruno@clisp.org>
37349
37350         Fix test failures on Solaris 10.
37351         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
37352         tests when Solaris iconv() is used.
37353         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
37354         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
37355         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
37356         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
37357         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
37358
37359 2009-08-16  Bruno Haible  <bruno@clisp.org>
37360
37361         Fix test failures on Solaris 10.
37362         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
37363         'tr' program and pass it as first argument.
37364         * tests/test-pipe-filter-gi1.sh: Likewise.
37365         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
37366         program as first argument.
37367         * tests/test-pipe-filter-gi1.c (main): Likewise.
37368
37369 2009-08-16  Eric Blake  <ebb9@byu.net>
37370
37371         fpurge: fix previous commits
37372         * modules/fpurge (Makefile.am): Make replacement conditional,
37373         partially reverting 2007-04-29 change; missed in previous
37374         attempt.
37375         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
37376         is missing.
37377
37378 2009-08-16  Bruno Haible  <bruno@clisp.org>
37379
37380         Clarify fpurge's effect on the file position.
37381         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
37382         * tests/test-fpurge.c (main): Make a second pass for checking the file
37383         position.
37384
37385 2009-08-16  Bruno Haible  <bruno@clisp.org>
37386
37387         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
37388         declaration of fpurge is missing.
37389         * tests/test-fpurge.c (main): Check that the file has not more contents
37390         than expected. Close the file before removing it.
37391
37392 2009-08-15  Eric Blake  <ebb9@byu.net>
37393
37394         fpurge: don't wrap working cygwin implementation
37395         * lib/fpurge.c (fpurge): Fix comment typo.
37396         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
37397         1.7 to avoid replacement.
37398         * tests/test-fpurge.c (main): Enhance test.
37399
37400 2009-08-15  Eric Blake  <ebb9@byu.net>
37401         and Jim Meyering  <meyering@redhat.com>
37402
37403         test-update-copyright: skip if perl is insufficient
37404         * tests/test-update-copyright.sh: Failure to run maintainer tool
37405         should not cause testsuite failure on cygwin 1.5.
37406
37407 2009-08-14  Eric Blake  <ebb9@byu.net>
37408
37409         doc: mention more functions added in cygwin 1.7.0
37410         * doc/posix-headers/limits.texi (limits.h): Update for recent
37411         cygwin additions.
37412         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
37413         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
37414         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
37415         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
37416         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
37417
37418 2009-08-14  Eric Blake  <ebb9@byu.net>
37419
37420         maint.mk: simplify update-copyright rule
37421         * top/maint.mk (update-copyright-local): Delete, and document how
37422         to do it in cfg.mk instead.
37423         (update-copyright-exclude-regexp): Delete, and document how to do
37424         it in .x-update-copyright instead.
37425         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
37426         exclude ChangeLog.
37427
37428 2009-08-14  Bruno Haible  <bruno@clisp.org>
37429
37430         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
37431
37432 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37433
37434         maint.mk: support update-copyright-env
37435         * top/maint.mk (update-copyright-env): Define place-holder.
37436         (update-copyright): Expand $(update-copyright-env) before
37437         invoking update-copyright.
37438
37439 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37440
37441         update-copyright: implement forced reformatting
37442         * build-aux/update-copyright: Implement and document
37443         UPDATE_COPYRIGHT_FORCE.
37444         * tests/test-update-copyright.sh: Test it.
37445
37446 2009-08-14  Eric Blake  <ebb9@byu.net>
37447         and Bruno Haible  <bruno@clisp.org>
37448
37449         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
37450         * tests/test-locale.c: Revert previous patch related to NULL.
37451         * tests/test-stdio.c: Likewise.
37452         * tests/test-stdlib.c: Likewise.
37453         * tests/test-string.c: Likewise.
37454         * tests/test-unistd.c: Likewise.
37455         * modules/time-tests (Depends-on): Add verify.
37456         * modules/wchar-tests (Depends-on): Likewise.
37457         * tests/test-time.c: Test for NULL compliance.
37458         * tests/test-wchar.c: Likewise.
37459         * modules/locale (Depends-on): Add stddef.
37460         * modules/stdio (Depends-on): Likewise.
37461         * modules/stdlib (Depends-on): Likewise.
37462         * modules/string (Depends-on): Likewise.
37463         * modules/time (Depends-on): Likewise.
37464         * modules/unistd (Depends-on): Likewise.
37465         * modules/wchar (Depends-on): Likewise.
37466         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
37467         * lib/stdlib.in.h (includes): Likewise.
37468         * lib/string.in.h (includes): Likewise.
37469         * lib/time.in.h (includes): Likewise.
37470         * lib/unistd.in.h (includes): Likewise.
37471         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
37472         replaced.
37473         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37474         * m4/stddef_h.m4: New file.
37475         * modules/stddef: Likewise.
37476         * lib/stddef.in.h: Likewise.
37477         * modules/stddef-tests: Likewise.
37478         * tests/test-stddef.c: Likewise.
37479         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
37480         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
37481         * doc/posix-headers/locale.texi (locale.h): Likewise.
37482         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
37483         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
37484         * doc/posix-headers/string.texi (string.h): Likewise.
37485         * doc/posix-headers/time.texi (time.h): Likewise.
37486         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
37487         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
37488
37489 2009-08-14  Eric Blake  <ebb9@byu.net>
37490
37491         doc: improve git diff of texinfo files
37492         * .gitattributes: Add rule for *.texi files, with hint on how to
37493         use it.
37494         Copied from m4, and based on a report by Bruno Haible.
37495
37496 2009-08-14  Bruno Haible  <bruno@clisp.org>
37497
37498         Disable multithread support by default on Cygwin 1.5.x for real.
37499         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
37500
37501 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37502
37503         update-copyright: much ado about intervals
37504         * build-aux/update-copyright: Implement and document
37505         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
37506         of copyright year intervals.
37507         Also, document UPDATE_COPYRIGHT_YEAR.
37508         * tests/test-update-copyright.sh: Test it.
37509
37510         update-copyright: convert 2-digit to 4-digit years
37511         * build-aux/update-copyright: Implement and document.
37512         * tests/test-update-copyright.sh: Update.
37513
37514 2009-08-14  Jim Meyering  <meyering@redhat.com>
37515
37516         test-exclude: avoid coreutils "make check" failure
37517         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
37518         just as in test-argmatch.c.
37519
37520 2009-08-13  Eric Blake  <ebb9@byu.net>
37521
37522         test-dup2: fix bad assumption
37523         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
37524         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
37525
37526         test-version-etc: fix CRLF portability issue
37527         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
37528         recognize \r.
37529         * tests/test-argp-version-etc-1.sh: Likewise.
37530
37531         getopt: update client modules
37532         * modules/argp (Depends-on): Use getopt-gnu.
37533         * modules/git-merge-changelog (Depends-on): Likewise.
37534         * modules/long-options (Depends-on): Likewise.
37535         * modules/xstrtol (Depends-on): Likewise.
37536
37537 2009-08-13  Simon Josefsson  <simon@josefsson.org>
37538
37539         * tests/test-version-etc.sh: Don't fail on different
37540         project/version.  Don't fail on CRLF differences.  Rewrite to use
37541         multiple -e instead of multiple sed forks, suggested by Eric Blake
37542         <ebb9@byu.net>.
37543         * tests/test-argp-version-etc-1.sh: Likewise.
37544
37545 2009-08-13  Simon Josefsson  <simon@josefsson.org>
37546
37547         * tests/test-version-etc.sh: Don't fail on different
37548         project/version.
37549
37550 2009-08-12  Bruno Haible  <bruno@clisp.org>
37551
37552         Tests for modules 'getopt-posix', 'getopt-gnu'.
37553         * modules/getopt-posix-tests: New file.
37554         * tests/test-getopt.c: New file.
37555         * tests/test-getopt.h: New file.
37556         * tests/test-getopt_long.h: New file.
37557
37558         New modules 'getopt-posix', 'getopt-gnu'.
37559         * modules/getopt-gnu: New file, renamed from modules/getopt.
37560         * modules/getopt-posix: New file.
37561         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
37562         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
37563         (gl_GETOPT): Remove macro.
37564         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
37565         Disable the test against BSD systems that declare optreset. Test
37566         against mingw bug. Test against lack of support of optional arguments
37567         on many platforms.
37568         * doc/glibc-headers/getopt.texi: Update module name and list of
37569         relevant platforms.
37570         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
37571         'getopt-gnu' and more portability problems.
37572         * NEWS: Mention the changes.
37573
37574 2009-08-12  Bruno Haible  <bruno@clisp.org>
37575
37576         Ensure that optarg etc. get declared by <unistd.h>.
37577         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
37578         AC_USE_SYSTEM_EXTENSIONS.
37579         * modules/getopt (Depends-on): Add 'extensions'.
37580
37581 2009-08-12  Bruno Haible  <bruno@clisp.org>
37582
37583         Avoid test link errors.
37584         * modules/pipe-filter-ii-tests (Makefile.am): Define
37585         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
37586         * modules/pipe-filter-gi-tests (Makefile.am): Define
37587         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
37588         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37589
37590 2009-08-12  Bruno Haible  <bruno@clisp.org>
37591
37592         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
37593         gl_GETOPT_SUBSTITUTE before.
37594         (gl_GETOPT): Use it.
37595         * m4/argp.m4 (gl_ARGP): Update.
37596         Reported by Sergey Poznyakoff.
37597
37598         * m4/getopt.m4: Reorder macros.
37599         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
37600         (gl_GETOPT_SUBSTITUTE): Remove macro.
37601
37602 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37603
37604         Minor improvement in gitlog-to-changelog
37605
37606         * build-aux/gitlog-to-changelog: New option `--format' makes
37607         output format string configurable.
37608
37609 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37610
37611         Optimize exclude: use hash tables for non-wildcard patterns.
37612
37613         * lib/exclude.c: Include hash.h and mbuiter.h
37614         (struct exclude_pattern, exclude_segment): New data types.
37615         (struct exclude): Rewrite.
37616         (fnmatch_pattern_has_wildcards): New function.
37617         (new_exclude_segment, free_exclude_segment): New functions.
37618         (excluded_file_pattern_p, excluded_file_name_p): New functions.
37619         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
37620         * lib/exclude.h (is_fnmatch_pattern): New prototype.
37621         * modules/exclude: Depend on hash and mbuiter.
37622
37623         * modules/exclude-tests: New file.
37624         * tests/test-exclude.c: New file.
37625         * tests/test-exclude1.sh: New file.
37626         * tests/test-exclude2.sh: New file.
37627         * tests/test-exclude3.sh: New file.
37628         * tests/test-exclude4.sh: New file.
37629         * tests/test-exclude5.sh: New file.
37630         * tests/test-exclude6.sh: New file.
37631         * tests/test-exclude7.sh: New file.
37632
37633 2009-08-12  Bruno Haible  <bruno@clisp.org>
37634
37635         Ensure that getopt() gets declared by <unistd.h>.
37636         * lib/unistd.in.h: Conditionally include getopt.h.
37637         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
37638         Set GNULIB_UNISTD_H_GETOPT.
37639         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37640         GNULIB_UNISTD_H_GETOPT.
37641         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
37642
37643 2009-08-12  Bruno Haible  <bruno@clisp.org>
37644
37645         Clarify logic.
37646         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
37647         gl_replace_getopt instead of GETOPT_H.
37648
37649 2009-08-12  Bruno Haible  <bruno@clisp.org>
37650
37651         * m4/getopt.m4: Add comments.
37652
37653 2009-08-12  Bruno Haible  <bruno@clisp.org>
37654
37655         Disable multithread support by default on Cygwin 1.5.x.
37656         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
37657         set gl_use_threads=no if not specified otherwise.
37658
37659 2009-08-11  Bruno Haible  <bruno@clisp.org>
37660
37661         Avoid compilation error on NetBSD 5.0.
37662         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
37663         * tests/test-stdio.c: Likewise.
37664         * tests/test-stdlib.c: Likewise.
37665         * tests/test-string.c: Likewise.
37666         * tests/test-unistd.c: Likewise.
37667         Reported by Greg Troxel <gdt@ir.bbn.com>
37668         at <https://savannah.gnu.org/support/?106973>.
37669
37670 2009-08-11  Bruno Haible  <bruno@clisp.org>
37671
37672         * modules/dup2-tests (Depends-on): Remove close.
37673
37674         Undo 2009-07-19 commit.
37675         * modules/acl-tests (Depends-on): Remove close.
37676         * modules/binary-io-tests (Depends-on): Likewise.
37677         * modules/closein-tests (Depends-on): Likewise.
37678         * modules/flock-tests (Depends-on): Likewise.
37679         * modules/fsync-tests (Depends-on): Likewise.
37680         * modules/lseek-tests (Depends-on): Likewise.
37681         * modules/pipe-tests (Depends-on): Likewise.
37682         * modules/posix_spawn-tests (Depends-on): Likewise.
37683         * modules/posix_spawnp-tests (Depends-on): Likewise.
37684         * modules/stat-time-tests (Depends-on): Likewise.
37685         * modules/yesno-tests (Depends-on): Likewise.
37686
37687 2009-08-10  Bruno Haible  <bruno@clisp.org>
37688
37689         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
37690
37691 2009-08-10  Bruno Haible  <bruno@clisp.org>
37692
37693         Fix a gcc warning.
37694         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
37695
37696 2009-08-10  Bruno Haible  <bruno@clisp.org>
37697
37698         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
37699         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
37700         not only the first time.
37701         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
37702         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
37703         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
37704         is 1, not only the the first time.
37705
37706 2009-08-10  Bruno Haible  <bruno@clisp.org>
37707
37708         Make it possible to use module 'gethostname' without module 'close'.
37709         * lib/unistd.in.h (close): Evoke a link error only if
37710         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37711         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37712         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37713         * modules/unistd (Makefile.am): Substitute
37714         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37715         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
37716         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37717         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
37718         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37719         * modules/sys_ioctl (Makefile.am): Substitute
37720         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37721         * modules/socket (configure.ac): On native Windows, set
37722         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
37723         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37724         Reported by Sam Steingold <sds@gnu.org>.
37725
37726 2009-08-10  Bruno Haible  <bruno@clisp.org>
37727
37728         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
37729         * modules/ioctl (configure.ac): Likewise.
37730
37731 2009-08-10  Bruno Haible  <bruno@clisp.org>
37732
37733         Avoid collision between gnulib wrapper and libintl wrapper.
37734         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
37735         already defined in intl/printf.c.
37736         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
37737         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
37738
37739 2009-08-09  Bruno Haible  <bruno@clisp.org>
37740
37741         Make <sys/select.h> really self-contained, also on Solaris 10.
37742         * lib/sys_select.in.h: Include <string.h>.
37743         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
37744         Solaris 10 problem.
37745         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
37746         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
37747         Reported by Jim Meyering.
37748
37749 2009-08-09  Bruno Haible  <bruno@clisp.org>
37750
37751         Avoid warnings from 'aclocal' that are due to a use of macro name
37752         AM_XGETTEXT_OPTION that is not defined in automake.
37753         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
37754         automake.
37755         * modules/error (configure.ac): Likewise.
37756         * modules/propername (configure.ac): Likewise.
37757         * modules/vasprintf (configure.ac): Likewise.
37758         * modules/verror (configure.ac): Likewise.
37759         * modules/xprintf (configure.ac): Likewise.
37760         * modules/xvasprintf (configure.ac): Likewise.
37761
37762 2009-08-08  Bruno Haible  <bruno@clisp.org>
37763
37764         Avoid compilation error in C++ mode.
37765         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
37766         Reported by Sam Steingold <sds@gnu.org>.
37767
37768 2009-08-08  Bruno Haible  <bruno@clisp.org>
37769
37770         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
37771         for the various Unix platforms.
37772         * doc/posix-headers/limits.texi: Update platforms list regarding
37773         HOST_NAME_MAX.
37774         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37775
37776 2009-08-07  Jim Meyering  <meyering@redhat.com>
37777
37778         selinux-at: fix typo in a comment
37779         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
37780         Spotted by Paolo Bonzini.
37781
37782         selinux-at: remove redundant m4 code, add documentation
37783         * modules/selinux-at (configure.ac): Remove redundant code.
37784         LIB_SELINUX is already set via the dependent module, selinux-h.
37785         (Include): Add quotes around selinux-at.h.
37786         * lib/selinux-at.h: Add documentation.
37787         Reported by Bruno Haible in
37788         http://marc.info/?l=gnulib-bug&m=124958988300749
37789
37790 2009-08-07  Bruno Haible  <bruno@clisp.org>
37791
37792         Avoid link error on MacOS X 10.3 and 10.4.
37793         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
37794         on non-ELF systems.
37795         * lib/argp-pv.c (argp_program_version): Likewise.
37796         Reported by Simon Josefsson.
37797
37798 2009-08-07  Simon Josefsson  <simon@josefsson.org>
37799
37800         * tests/test-version-etc.sh: Use $EXEEXT.
37801
37802 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
37803
37804         update-copyright: update documentation to point to maint.mk
37805         * build-aux/update-copyright: Here.
37806
37807 2009-08-06  Jim Meyering  <meyering@redhat.com>
37808
37809         maint.mk: support update-copyright-local
37810         * top/maint.mk (update-copyright-local): Define place-holder.
37811         (update-copyright): Depend on $(update-copyright-local).
37812
37813 2009-08-06  Jim Meyering  <meyering@redhat.com>
37814
37815         selinux-at: new module
37816         Initially written for coreutils, this module will soon be
37817         used by findutils, too.
37818         * MODULES.html.sh [Misc]: Add selinux-at.
37819         * lib/selinux-at.h: New file, from coreutils.
37820         * lib/selinux-at.c: Likewise.
37821         * modules/selinux-at: Likewise.
37822         (License): Change from LGPL to GPL, since it depends
37823         on the GPL'd openat module.
37824
37825         doc: update README
37826         * README: Remove references to cogito.
37827         Remove cvs-repo-updating instructions from 2007.
37828         Don't imply that CVS is better if you have limited disk space.
37829
37830 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37831
37832         update-copyright: support C-style comments
37833         * build-aux/update-copyright: Implement and document.
37834         * tests/test-update-copyright.sh: Test.
37835
37836 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37837
37838         update-copyright: support omitted "(C)"
37839         * build-aux/update-copyright: Implement and document.  Also,
37840         allow variable whitespace before "(C)".
37841         * tests/test-update-copyright.sh: Test.
37842
37843 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37844
37845         update-copyright: don't trip on non-FSF copyright statements
37846         * build-aux/update-copyright: Fix so that the first correctly
37847         formatted FSF copyright statement is recognized no matter what
37848         appears before it.  Update documentation.
37849         * tests/test-update-copyright.sh: Test that.
37850
37851 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37852
37853         update-copyright: clean up code a little
37854         * build-aux/update-copyright: Append "_re" to the name of any
37855         variable holding a regular expression.
37856         Replace "old" and "new" with "stmt" in variable names.
37857         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
37858         handled correctly.
37859         Format code more consistently.
37860
37861 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37862
37863         update-copyright-tests: improve portability
37864         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
37865         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
37866
37867 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37868
37869         update-copyright: support @copyright{} and &copy;
37870         * build-aux/update-copyright: Implement and document.
37871         * tests/test-update-copyright.sh: Test.
37872
37873 2009-08-04  Jim Meyering  <meyering@redhat.com>
37874
37875         update-copyright-tests: correctly test EOL=\r\n handling
37876         * tests/test-update-copyright.sh: Put \r at the end of some lines
37877         for the dos-eol tests.  Based on a patch by Joel E. Denny.
37878
37879         maint.mk: make update-copyright exclusion list more configurable
37880         * top/maint.mk (update-copyright): Default to excluding COPYING,
37881         but allow an override, in case someone does want to update that file.
37882
37883         maint.mk: don't update copyright date in COPYING
37884         * top/maint.mk (update-copyright): Exclude COPYING.
37885
37886         maint.mk: add a copyright-updating rule
37887         * top/maint.mk (update-copyright): New rule.
37888         Derived from coreutils/Makefile.am.
37889
37890         update-copyright: rename some variables
37891         * build-aux/update-copyright: Rename a few variables for clarity.
37892         Tweak syntax.  List Joel E. Denny as coauthor.
37893
37894 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37895
37896         update-copyright: fix bug for 2-digit last year and add tests
37897         * build-aux/update-copyright: Fix bug.
37898         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
37899         specified.
37900         * modules/update-copyright-tests: New
37901         * tests/test-update-copyright.sh: New.
37902
37903 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37904
37905         update-copyright: handle leading tabs in line prefix
37906         * build-aux/update-copyright: Count leading tabs as 8 spaces
37907         when computing margin.  This helps with the formatting of
37908         ChangeLogs, for example.
37909         Fix documentation a little.
37910
37911 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37912
37913         update-copyright: support EOL=\r\n
37914         * build-aux/update-copyright: Implement that.
37915
37916 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37917
37918         update-copyright: automatically format copyright statements
37919         * build-aux/update-copyright: Implement that.
37920         Also, be a little more predictable and safer by always failing
37921         when the full copyright format is not perfectly recognized as an
37922         unbroken whole.  Discussed at
37923         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
37924         Rewrite documentation.
37925
37926 2009-08-03  Bruno Haible  <bruno@clisp.org>
37927
37928         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
37929
37930 2009-08-02  Bruno Haible  <bruno@clisp.org>
37931
37932         Tests for module 'uname'.
37933         * modules/uname-tests: New file.
37934         * tests/test-uname.c: New file.
37935
37936         New module 'uname'.
37937         * lib/uname.c: New file.
37938         * m4/uname.m4: New file.
37939         * modules/uname: New file.
37940         * doc/posix-functions/uname.texi: Mention the new module.
37941
37942 2009-08-02  Bruno Haible  <bruno@clisp.org>
37943
37944         Tests for module 'sys_utsname'.
37945         * modules/sys_utsname-tests: New file.
37946         * tests/test-sys_utsname.c: New file.
37947
37948         New module 'sys_utsname'.
37949         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
37950         * m4/sys_utsname_h.m4: New file.
37951         * modules/sys_utsname: New file.
37952         * doc/posix-headers/sys_utsname.texi: Mention the new module.
37953
37954 2009-08-02  Bruno Haible  <bruno@clisp.org>
37955
37956         Implicitly initialize the sockets library.
37957         * lib/gethostname.c: Include sockets.h.
37958         (rpl_gethostname): Invoke gl_sockets_startup.
37959         * lib/socket.c: Include sockets.h.
37960         (rpl_socket): Invoke gl_sockets_startup.
37961         * modules/gethostname (Depends-on): Add sockets.
37962         * modules/socket (Depends-on): Likewise.
37963         * tests/test-poll.c: Don't include sockets.h.
37964         (main): Don't invoke gl_sockets_startup.
37965         * tests/test-select.c: Don't include sockets.h.
37966         (main): Don't invoke gl_sockets_startup.
37967
37968 2009-08-02  Bruno Haible  <bruno@clisp.org>
37969
37970         Allow multiple calls to gl_sockets_startup.
37971         * lib/sockets.c (initialized_sockets_version): New variable.
37972         (gl_sockets_startup): Do nothing if already called for this or a higher
37973         version.
37974         (gl_sockets_cleanup): Reset initialized_sockets_version.
37975
37976 2009-08-03  Simon Josefsson  <simon@josefsson.org>
37977
37978         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
37979         different project/version.
37980
37981 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
37982             Bruno Haible  <bruno@clisp.org>
37983
37984         Tests for module 'pipe-filter-gi'.
37985         * modules/pipe-filter-gi-tests: New file.
37986         * tests/test-pipe-filter-gi1.sh: New file.
37987         * tests/test-pipe-filter-gi1.c: New file.
37988         * tests/test-pipe-filter-gi2.sh: New file.
37989         * tests/test-pipe-filter-gi2-main.c: New file.
37990         * tests/test-pipe-filter-gi2-child.c: New file.
37991
37992         New module 'pipe-filter-gi'.
37993         * lib/pipe-filter-gi.c: New file.
37994         * modules/pipe-filter-gi: New file.
37995
37996 2009-08-02  Bruno Haible  <bruno@clisp.org>
37997             Paolo Bonzini  <bonzini@gnu.org>
37998
37999         Tests for module 'pipe-filter-ii'.
38000         * modules/pipe-filter-ii-tests: New file.
38001         * tests/test-pipe-filter-ii1.sh: New file.
38002         * tests/test-pipe-filter-ii1.c: New file.
38003         * tests/test-pipe-filter-ii2.sh: New file.
38004         * tests/test-pipe-filter-ii2-main.c: New file.
38005         * tests/test-pipe-filter-ii2-child.c: New file.
38006
38007         New module 'pipe-filter-ii'.
38008         * lib/pipe-filter.h: New file.
38009         * lib/pipe-filter-ii.c: New file.
38010         * lib/pipe-filter-aux.h: New file.
38011         * modules/pipe-filter-ii: New file.
38012
38013 2009-08-02  Simon Josefsson  <simon@josefsson.org>
38014
38015         * lib/gc-libgcrypt.c: Change copyright to FSF.
38016         * lib/gc-gnulib.c: Likewise.
38017
38018 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
38019
38020         * lib/gethostname.c: Include limits.h.
38021
38022 2009-08-02  Simon Josefsson  <simon@josefsson.org>
38023             Bruno Haible  <bruno@clisp.org>
38024
38025         Ensure HOST_NAME_MAX as part of the gethostname module.
38026         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
38027         define also HOST_NAME_MAX.
38028         * tests/test-gethostname.c: Include <limits.h>.
38029         (main): Check also HOST_NAME_MAX.
38030         * doc/posix-headers/limits.texi: Document the mingw problem.
38031
38032 2009-08-02  Bruno Haible  <bruno@clisp.org>
38033
38034         * lib/gethostname.c (gethostname): Fix handling of large len argument.
38035         Add comments.
38036
38037 2009-03-31  Simon Josefsson  <simon@josefsson.org>
38038
38039         * lib/gethostname.c: Add Windows wrapper.
38040         * m4/gethostname.m4: Look for gethostname in -lws2_32.
38041         * modules/gethostname: Depend on sys_socket & errno, for also
38042         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
38043         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
38044
38045 2009-07-31  Jim Meyering  <meyering@redhat.com>
38046
38047         getloadavg: fix symbol name in comment
38048         * lib/getloadavg.c: Correct a typo I introduced when adding
38049         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
38050         Matt Kraai spotted the problem.
38051
38052 2009-07-29  Matt Kraai  <mkraai@beckman.com>
38053
38054         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
38055         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
38056         code also if ! defined N_NAME_POINTER.
38057         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
38058         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
38059         but the n_name member is a 12-byte array.
38060
38061 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
38062
38063         update-copyright: generalize comment handling
38064         * build-aux/update-copyright: Handle copyright statements
38065         within more comment styles.
38066         Document usage.
38067         Report any file with an external copyright holder or parse failure.
38068
38069 2009-07-29  Jim Meyering  <meyering@redhat.com>
38070
38071         mktime: correct setting of REPLACE_MKTIME
38072         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
38073
38074         update-copyright: new module
38075         * modules/update-copyright: New file.
38076         * build-aux/update-copyright: New file.
38077         * MODULES.html.sh (maint+release support): Add update-copyright.
38078
38079 2009-07-27  Bruno Haible  <bruno@clisp.org>
38080
38081         Fix compilation error when <ctime> is used and mktime is replaced.
38082         * lib/time.in.h (mktime): New declaration.
38083         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
38084         REPLACE_MKTIME instead of defining mktime in config.h.
38085         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
38086         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
38087         Reported by Ross McFarland <rwmcfa1@neces.com>.
38088
38089 2009-07-27  Bruno Haible  <bruno@clisp.org>
38090
38091         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
38092         Reported by Matt Kraai <mkraai@beckman.com>.
38093
38094 2009-07-25  Jim Meyering  <meyering@redhat.com>
38095
38096         maint.mk: avoid warnings about missing files
38097         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
38098         diagnostic when .prev-version does not exist.
38099         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
38100         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
38101         nonexistent cfg.mk.
38102         Suggestions from Simon Josefsson.
38103
38104 2009-07-25  Bruno Haible  <bruno@clisp.org>
38105
38106         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
38107         defined as macros. Needed on QNX 6.4.1.
38108         Reported by Matt Kraai <mkraai@beckman.com>.
38109
38110 2009-07-23  Jim Meyering  <meyering@redhat.com>
38111
38112         maint.mk: invoke "make dist" with a working value of XZ_OPT
38113         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
38114
38115 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
38116
38117         Make fseeko.c compile on QNX.
38118         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
38119
38120 2009-07-22  Peter Simons  <simons@cryp.to>
38121
38122         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
38123         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
38124         * lib/md4.h: Likewise.
38125         * lib/md5.h: Likewise.
38126         * lib/sha1.h: Likewise.
38127         * lib/sha256.h: Likewise.
38128         * lib/sha512.h: Likewise.
38129
38130         tests-sha1: don't assign literal string to 'char *' variable
38131         * tests/test-sha1.c (main): Declare locals with "const" to match
38132         attributes of the right hand side.
38133
38134 2009-07-21  Eric Blake  <ebb9@byu.net>
38135
38136         dup2: fix more mingw problems
38137         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
38138         fd to itself.
38139         * doc/posix-functions/dup2.texi (dup2): Document the bug.
38140         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
38141         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
38142         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
38143         care of mingw bugs.
38144
38145 2009-07-21  Jim Meyering  <meyering@redhat.com>
38146
38147         vc-list-files: avoid failure when /bin/sh is dash
38148         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
38149         On some Debian based systems, /bin/sh is a symlink to dash, and running
38150         this command would omit the "/" following each 'tests' prefix:
38151           dash -x build-aux/vc-list-files -C . tests
38152         That is because bash and dash work differently:
38153           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
38154           bash ok
38155           dash odd
38156
38157 2009-07-21  Eric Blake  <ebb9@byu.net>
38158
38159         dup2-tests: test previous patch
38160         * modules/dup2-tests: New file.
38161         * tests/test-dup2.c: Likewise.
38162         * tests/test-open.c (main): Avoid unspecified behavior.
38163         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
38164         test.
38165
38166         dup2: work around mingw and cygwin 1.5 bug
38167         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
38168         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38169         * modules/unistd (Makefile.am): Substitute it.
38170         * lib/unistd.in.h (dup2): Declare the replacement.
38171         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
38172         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
38173         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
38174         * modules/execute (Depends-on): Add dup2.
38175         * modules/fseterr (Depends-on): Likewise.
38176         * modules/pipe (Depends-on): Likewise.
38177         * modules/posix_spawn-internal (Depends-on): Likewise.
38178
38179 2009-07-21  Bruno Haible  <bruno@clisp.org>
38180
38181         * modules/.gitattributes: New file.
38182
38183 2009-07-20  Bruno Haible  <bruno@clisp.org>
38184
38185         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
38186         (main): Use it.
38187
38188 2009-07-20  Eric Blake  <ebb9@byu.net>
38189
38190         test-pipe: make a bit more robust.
38191         * tests/test-pipe.c (myerr): Allow error messages regardless of
38192         what we do to stderr.
38193         (test_pipe): Rearrange to avoid deadlock.
38194         (child_main): Try a larger read, to ensure we avoided deadlock.
38195         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
38196         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
38197         if misused.
38198
38199 2009-07-19  Jim Meyering  <meyering@redhat.com>
38200
38201         fts: avoid false-positive cycle-detection
38202         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
38203         for each new command line argument.
38204
38205 2009-07-19  Bruno Haible  <bruno@clisp.org>
38206
38207         Fix build error on mingw with the modules sys_select and unistd.
38208         * modules/acl-tests (Depends-on): Add close.
38209         * modules/binary-io-tests (Depends-on): Likewise.
38210         * modules/closein-tests (Depends-on): Likewise.
38211         * modules/flock-tests (Depends-on): Likewise.
38212         * modules/fsync-tests (Depends-on): Likewise.
38213         * modules/lseek-tests (Depends-on): Likewise.
38214         * modules/pipe-tests (Depends-on): Likewise.
38215         * modules/posix_spawn-tests (Depends-on): Likewise.
38216         * modules/posix_spawnp-tests (Depends-on): Likewise.
38217         * modules/stat-time-tests (Depends-on): Likewise.
38218         * modules/yesno-tests (Depends-on): Likewise.
38219
38220 2009-07-19  Bruno Haible  <bruno@clisp.org>
38221
38222         Unify conditionals.
38223         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
38224         macros, not at the compiler macros.
38225         * lib/pipe.c: Likewise.
38226         * lib/execute.c: Likewise.
38227         * lib/spawni.c: Likewise.
38228
38229 2009-07-19  Bruno Haible  <bruno@clisp.org>
38230
38231         Fix handling of closed stdin/stdout/stderr on mingw.
38232         * lib/w32spawn.h: Include unistd.h.
38233         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
38234         file descriptor with O_NOINHERIT flag.
38235         (fd_safer_noinherit): New function, based on fd-safer.c.
38236         (dup_safer_noinherit): New function, based on dup-safer.c.
38237         (undup_safer_noinherit): New function.
38238         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
38239         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
38240         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
38241         instead of fd_safer.
38242         * tests/test-pipe.c: Include <windows.h>.
38243         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
38244         result.
38245
38246         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
38247         from main.
38248         (test_pipe): Pass an extra argument for disambiguation.
38249         (main): Invoke parent_main or child_main.
38250
38251         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
38252         consistently.
38253
38254 2009-07-18  Eric Blake  <ebb9@byu.net>
38255
38256         test-pipe: fix mingw build
38257         * tests/test-pipe.c (main): Avoid fcntl on mingw.
38258
38259 2009-07-18  Bruno Haible  <bruno@clisp.org>
38260
38261         * modules/pipe-tests (Makefile.am): Fix typo.
38262
38263 2009-07-18  Eric Blake  <ebb9@byu.net>
38264
38265         error: fix mingw build
38266         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
38267         Reported by Bruno Haible.
38268
38269         error: avoid undefined use of stdout
38270         * lib/error.c (error, error_at_line): Check that fd 1 is open
38271         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
38272         is handling faults and the close_stdout module wants to report the
38273         detection of closed stdout as an error.
38274
38275 2009-07-17  Eric Blake  <ebb9@byu.net>
38276
38277         pipe: be robust in face of closed fds
38278         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
38279         should cause child to misbehave.
38280         * modules/pipe-tests: New module.
38281         * tests/test-pipe.c: New file.
38282         * tests/test-pipe.sh: New file.
38283         Reported by Akim Demaille.
38284
38285 2009-07-14  Bruno Haible  <bruno@clisp.org>
38286
38287         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
38288         Reported by anonymous kc.
38289
38290 2009-07-07  Jim Meyering  <meyering@redhat.com>
38291
38292         maint.mk: don't look for translatable strings in *.m4 or *.mk
38293         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
38294         when searching for translatable strings.
38295
38296 2009-07-05  Jim Meyering  <meyering@redhat.com>
38297
38298         remove superfluous parentheses in STREQ definition
38299         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
38300         * lib/getugroups.c (STREQ): Likewise.
38301         * lib/fnmatch.c (STREQ): Likewise.
38302         Spotted by Bruno Haible.
38303
38304 2009-07-04  Jim Meyering  <meyering@redhat.com>
38305
38306         argv-iter: new module
38307         * MODULES.html.sh: Add argv-iter.
38308         * lib/argv-iter.c, lib/argv-iter.h: New files.
38309         * modules/argv-iter: New file.
38310         * modules/argv-iter-tests: New file.
38311         * tests/test-argv-iter.c: Test it.
38312
38313 2009-07-04  Bruno Haible  <bruno@clisp.org>
38314
38315         Fix assertion.
38316         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
38317         contains more exact copies of a given entry than file2, leave the extra
38318         copies unpaired rather than aborting.
38319         Reported by Eric Blake.
38320
38321 2009-07-02  Bruno Haible  <bruno@clisp.org>
38322
38323         Speedup git-merge-changelog for git cherry-pick.
38324         * lib/git-merge-changelog.c (struct entries_mapping): New type.
38325         (entries_mapping_get): New function, extracted from compute_mapping.
38326         (entries_mapping_reverse_get): New function.
38327         (compute_mapping): Add a 'full' argument. Return the result in a
38328         'struct entries_mapping'.
38329         (main): Update. Access the mappings through entries_mapping_get.
38330         Reported by Eric Blake.
38331
38332 2009-07-02  Bruno Haible  <bruno@clisp.org>
38333
38334         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
38335         best_i.
38336
38337 2009-07-02  Bruno Haible  <bruno@clisp.org>
38338
38339         Speed up approximate search for matching ChangeLog entries.
38340         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
38341         argument. Call fstrcmp_bounded instead of fstrcmp.
38342         (compute_mapping, try_split_merged_entry, main): Update callers.
38343
38344 2009-07-02  Bruno Haible  <bruno@clisp.org>
38345
38346         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
38347
38348 2009-06-30  Bruno Haible  <bruno@clisp.org>
38349
38350         Reduce the number of uc_is_cased calls.
38351         * lib/unicase.h (casing_suffix_context_t): Add
38352         'first_char_except_ignorable' field.
38353         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
38354         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
38355         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
38356         Update initializer.
38357         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
38358         case-ignorable characters.
38359         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
38360         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
38361         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
38362         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
38363         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
38364
38365 2009-06-30  Bruno Haible  <bruno@clisp.org>
38366
38367         Tests for module 'unicase/ignorable'.
38368         * modules/unicase/ignorable-tests: New file.
38369         * tests/unicase/test-ignorable.c: New file, generated by
38370         gen-uni-tables.
38371
38372         Tests for module 'unicase/cased'.
38373         * modules/unicase/cased-tests: New file.
38374         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
38375         * tests/unicase/test-predicate-part1.h: New file, derived from
38376         tests/unictype/test-predicate-part1.h.
38377         * tests/unicase/test-predicate-part2.h: New file, same as
38378         tests/unictype/test-predicate-part2.h.
38379
38380         Fix evaluation of "Before C" condition of FINAL_SIGMA.
38381         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
38382         (output_casing_properties): New function.
38383         (main): Call it.
38384         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
38385         * lib/unicase/cased.c: Include unictype/bitmap.h.
38386         (uc_is_cased): Define through a bitmap lookup.
38387         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
38388         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
38389         (uc_is_case_ignorable): Define through a bitmap lookup.
38390         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
38391         lib/unictype/bitmap.h.
38392         (Depends-on): Add inline. Clean up.
38393         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
38394         lib/unictype/bitmap.h.
38395         (Depends-on): Add inline. Clean up.
38396         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
38397         recognition.
38398         * tests/unicase/test-u16-tolower.c (main): Likewise.
38399         * tests/unicase/test-u32-tolower.c (main): Likewise.
38400
38401 2009-06-30  Bruno Haible  <bruno@clisp.org>
38402
38403         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
38404         * lib/unicase/u16-casemap.c: Likewise.
38405         * lib/unicase/u32-casemap.c: Likewise.
38406
38407 2009-06-29  Bruno Haible  <bruno@clisp.org>
38408
38409         Define u32_casefold as a wrapper around u32_ct_casefold.
38410         * lib/unicase/u32-casefold.c: Update.
38411         * modules/unicase/u32-casefold (Depends-on): Add
38412         unicase/u32-ct-casefold, unicase/empty-prefix-context,
38413         unicase/empty-suffix-context. Clean up.
38414
38415         Define u16_casefold as a wrapper around u16_ct_casefold.
38416         * lib/unicase/u16-casefold.c: Update.
38417         * modules/unicase/u16-casefold (Depends-on): Add
38418         unicase/u16-ct-casefold, unicase/empty-prefix-context,
38419         unicase/empty-suffix-context. Clean up.
38420
38421         Define u8_casefold as a wrapper around u8_ct_casefold.
38422         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
38423         * lib/unicase/u8-casefold.c: Update.
38424         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
38425         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38426
38427         Define u32_totitle as a wrapper around u32_ct_totitle.
38428         * lib/unicase/u32-totitle.c: Update.
38429         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
38430         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38431
38432         Define u16_totitle as a wrapper around u16_ct_totitle.
38433         * lib/unicase/u16-totitle.c: Update.
38434         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
38435         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38436
38437         Define u8_totitle as a wrapper around u8_ct_totitle.
38438         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
38439         functions.
38440         (FUNC): Delegate to U_CT_TOTITLE.
38441         * lib/unicase/u8-totitle.c: Update.
38442         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
38443         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38444
38445         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
38446         invocation.
38447         * modules/unicase/u32-tolower (Depends-on): Add
38448         unicase/empty-prefix-context, unicase/empty-suffix-context.
38449
38450         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
38451         invocation.
38452         * modules/unicase/u16-tolower (Depends-on): Add
38453         unicase/empty-prefix-context, unicase/empty-suffix-context.
38454
38455         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
38456         * modules/unicase/u8-tolower (Depends-on): Add
38457         unicase/empty-prefix-context, unicase/empty-suffix-context.
38458
38459         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
38460         invocation.
38461         * modules/unicase/u32-toupper (Depends-on): Add
38462         unicase/empty-prefix-context, unicase/empty-suffix-context.
38463
38464         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
38465         invocation.
38466         * modules/unicase/u16-toupper (Depends-on): Add
38467         unicase/empty-prefix-context, unicase/empty-suffix-context.
38468
38469         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
38470         * modules/unicase/u8-toupper (Depends-on): Add
38471         unicase/empty-prefix-context, unicase/empty-suffix-context.
38472
38473         New module 'unicase/u32-ct-casefold'.
38474         * lib/unicase/u32-ct-casefold.c: New file.
38475         * modules/unicase/u32-ct-casefold: New file.
38476
38477         New module 'unicase/u16-ct-casefold'.
38478         * lib/unicase/u16-ct-casefold.c: New file.
38479         * modules/unicase/u16-ct-casefold: New file.
38480
38481         New module 'unicase/u8-ct-casefold'.
38482         * lib/unicase/u8-ct-casefold.c: New file.
38483         * lib/unicase/u-ct-casefold.h: New file, derived from
38484         lib/unicase/u-casefold.h.
38485         * modules/unicase/u8-ct-casefold: New file.
38486
38487         New module 'unicase/u32-ct-totitle'.
38488         * lib/unicase/u32-ct-totitle.c: New file.
38489         * modules/unicase/u32-ct-totitle: New file.
38490
38491         New module 'unicase/u16-ct-totitle'.
38492         * lib/unicase/u16-ct-totitle.c: New file.
38493         * modules/unicase/u16-ct-totitle: New file.
38494
38495         New module 'unicase/u8-ct-totitle'.
38496         * lib/unicase/u8-ct-totitle.c: New file.
38497         * lib/unicase/u-ct-totitle.h: New file, derived from
38498         lib/unicase/u-totitle.h.
38499         * modules/unicase/u8-ct-totitle: New file.
38500
38501         New module 'unicase/u32-ct-tolower'.
38502         * lib/unicase/u32-ct-tolower.c: New file.
38503         * modules/unicase/u32-ct-tolower: New file.
38504
38505         New module 'unicase/u16-ct-tolower'.
38506         * lib/unicase/u16-ct-tolower.c: New file.
38507         * modules/unicase/u16-ct-tolower: New file.
38508
38509         New module 'unicase/u8-ct-tolower'.
38510         * lib/unicase/u8-ct-tolower.c: New file.
38511         * modules/unicase/u8-ct-tolower: New file.
38512
38513         New module 'unicase/u32-ct-toupper'.
38514         * lib/unicase/u32-ct-toupper.c: New file.
38515         * modules/unicase/u32-ct-toupper: New file.
38516
38517         New module 'unicase/u16-ct-toupper'.
38518         * lib/unicase/u16-ct-toupper.c: New file.
38519         * modules/unicase/u16-ct-toupper: New file.
38520
38521         New module 'unicase/u8-ct-toupper'.
38522         * lib/unicase/u8-ct-toupper.c: New file.
38523         * modules/unicase/u8-ct-toupper: New file.
38524
38525         Add context arguments to u*_casemap functions.
38526         * lib/unicase/unicasemap.h: Include unicase.h.
38527         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
38528         suffix_context arguments.
38529         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
38530         functions.
38531         (FUNC): Add prefix_context and suffix_context arguments. Use
38532         uc_is_cased and uc_is_case_ignorable.
38533         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
38534         * lib/unicase/u16-casemap.c: Likewise.
38535         * lib/unicase/u32-casemap.c: Likewise.
38536         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
38537         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38538         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
38539         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38540         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
38541         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38542
38543         New module 'unicase/u32-suffix-context'.
38544         * lib/unicase/u32-suffix-context.c: New file.
38545         * modules/unicase/u32-suffix-context: New file.
38546
38547         New module 'unicase/u16-suffix-context'.
38548         * lib/unicase/u16-suffix-context.c: New file.
38549         * modules/unicase/u16-suffix-context: New file.
38550
38551         New module 'unicase/u8-suffix-context'.
38552         * lib/unicase/u8-suffix-context.c: New file.
38553         * lib/unicase/u-suffix-context.h: New file.
38554         * modules/unicase/u8-suffix-context: New file.
38555
38556         New module 'unicase/empty-suffix-context'.
38557         * lib/unicase/empty-suffix-context.c: New file.
38558         * modules/unicase/empty-suffix-context: New file.
38559
38560         New module 'unicase/u32-prefix-context'.
38561         * lib/unicase/u32-prefix-context.c: New file.
38562         * modules/unicase/u32-prefix-context: New file.
38563
38564         New module 'unicase/u16-prefix-context'.
38565         * lib/unicase/u16-prefix-context.c: New file.
38566         * modules/unicase/u16-prefix-context: New file.
38567
38568         New module 'unicase/u8-prefix-context'.
38569         * lib/unicase/u8-prefix-context.c: New file.
38570         * lib/unicase/u-prefix-context.h: New file.
38571         * lib/unicase/context.h: New file.
38572         * modules/unicase/u8-prefix-context: New file.
38573
38574         New module 'unicase/empty-prefix-context'.
38575         * lib/unicase/empty-prefix-context.c: New file.
38576         * modules/unicase/empty-prefix-context: New file.
38577
38578         New module 'unicase/ignorable'.
38579         * lib/unicase/ignorable.c: New file.
38580         * modules/unicase/ignorable: New file.
38581
38582         New module 'unicase/cased'.
38583         * lib/unicase/caseprop.h: New file.
38584         * lib/unicase/cased.c: New file.
38585         * modules/unicase/cased: New file.
38586
38587         New functions for case mapping of substrings.
38588         * lib/unicase.h (casing_prefix_context_t): New type.
38589         (unicase_empty_prefix_context): New variable.
38590         (u8_casing_prefix_context, u16_casing_prefix_context,
38591         u32_casing_prefix_context, u8_casing_prefixes_context,
38592         u16_casing_prefixes_context, u32_casing_prefixes_context): New
38593         declarations.
38594         (casing_suffix_context_t): New type.
38595         (unicase_empty_suffix_context): New variable.
38596         (u8_casing_suffix_context, u16_casing_suffix_context,
38597         u32_casing_suffix_context, u8_casing_suffixes_context,
38598         u16_casing_suffixes_context, u32_casing_suffixes_context,
38599         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
38600         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
38601         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
38602         declarations.
38603
38604 2009-06-28  Jim Meyering  <meyering@redhat.com>
38605
38606         boostrap: indent only with spaces
38607         * build-aux/bootstrap: Indent only with spaces, never TABs.
38608
38609         bootstrap: split long lines
38610         * build-aux/bootstrap: Keep line length < 80.
38611
38612         bootstrap: sync from coreutils
38613         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
38614         just as autoreconf does.  Verify a list of prerequisite
38615         package-name,version-number pairs if defined in bootstrap.conf.
38616         Refer to README-prereq, if prerequisites are not satisfied.
38617
38618 2009-06-27  Eric Blake  <ebb9@byu.net>
38619
38620         tests: add test for bogus NULL definition
38621         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
38622         * tests/test-stdlib.c: Likewise.
38623         * tests/test-string.c: Likewise.
38624         * tests/test-locale.c: Likewise.
38625         * tests/test-unistd.c: Likewise.
38626         * modules/stdio-tests (Depends-on): Add verify.
38627         * modules/stdlib-tests (Depends-on): Likewise.
38628         * modules/string-tests (Depends-on): Likewise.
38629         * modules/locale-tests (Depends-on): Likewise.
38630         * modules/unistd-tests (Depends-on): Likewise.
38631
38632 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
38633
38634         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
38635         self-explaining comment.
38636         * m4/selinux-selinux-h: Update serial.
38637         (gl_LIBSELINUX): New macro, adding a warning for missing development
38638         packages to code extracted from...
38639         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
38640         Add warning for missing development packages here, too.
38641
38642 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
38643
38644         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
38645
38646 2009-06-25  Eric Blake  <ebb9@byu.net>
38647
38648         version-etc: fix regression
38649         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
38650         gcc.
38651         (version_etc): Use it, to catch bugs with trailing NULL.
38652         * lib/version-etc.c (version_etc_arn): Delete unused argument.
38653         (version_etc_va): Fix logic bug.
38654         * modules/version-etc-tests: Add test.
38655         * tests/test-version-etc.c: New file.
38656         * tests/test-version-etc.sh: Likewise.
38657
38658 2009-06-25  Sam Steingold  <sds@gnu.org>
38659
38660         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
38661         mbtowc declaration.
38662
38663 2009-06-25  Eric Blake  <ebb9@byu.net>
38664
38665         fpurge: migrate into <stdio.h>
38666         * lib/fpurge.h: Delete...
38667         * lib/stdio.in.h (fpurge): ...and declare here, instead.
38668         * lib/fpurge.c (fpurge): Change declaring header.
38669         * modules/fpurge (Files): Drop deleted file.
38670         (Depends-on): Add stdio.
38671         (configure.ac): Set witness.
38672         * modules/stdio (Makefile.am): Support fpurge macros.
38673         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38674         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
38675         * lib/fflush.c: Update client.
38676         * tests/test-fpurge.c: Likewise.
38677         * NEWS: Mention the change.
38678
38679 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38680
38681         * lib/argp-version-etc.c (program_authors): Add const
38682         qualifier.
38683         * lib/version-etc.c: Fix typos in the comments.
38684         * modules/argp-version-etc: Depends on version-etc.
38685
38686 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38687
38688         argp-version-etc: new module.
38689
38690         * lib/argp-version-etc.c: New file.
38691         * lib/argp-version-etc.h: New file.
38692         * modules/argp-version-etc: New file.
38693         * modules/argp-version-etc-tests: New file.
38694         * tests/test-argp-version-etc.c: New test.
38695         * tests/test-argp-version-etc-1.sh: New test.
38696
38697 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38698
38699         Provide additional interfaces and documentation for version-etc
38700         module.
38701
38702         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
38703         interfaces.
38704         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
38705         prototypes.
38706
38707 2009-06-24  Bruno Haible  <bruno@clisp.org>
38708
38709         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
38710         HAVE_LIB${NAME} macro.
38711         Reported by Sam Steingold <sds@gnu.org>.
38712
38713 2009-06-23  Simon Josefsson  <simon@josefsson.org>
38714
38715         * modules/hash-tests (test_hash_LDADD): Link to libintl when
38716         needed.
38717
38718 2009-06-21  Bruno Haible  <bruno@clisp.org>
38719
38720         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
38721         work.
38722         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
38723         together with LIB${NAME}, LTLIB${NAME}.
38724         Reported by Sam Steingold <sds@gnu.org>.
38725
38726 2009-06-20  Jim Meyering  <meyering@redhat.com>
38727
38728         tests: make sc_require_test_exit_idiom more generic
38729         * top/maint.mk (Exit_witness_file): New overridable variable.
38730         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
38731         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
38732
38733 2009-06-19  Jim Meyering  <meyering@redhat.com>
38734
38735         hash: reverse order of src/dst parameters in an internal interface
38736         * lib/hash.c (transfer_entries): Reverse order of parameters to
38737         put DST before SRC.  Adjust callers.
38738
38739         tests: test-hash: avoid wholesale duplication
38740         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
38741         Instead, use a loop and add a single conditional.
38742
38743         tests: test-hash: allow seed selection via a command line argument
38744         * tests/test-hash.c (get_seed): New function.
38745         (main): Use it.
38746
38747 2009-06-19  Eric Blake  <ebb9@byu.net>
38748
38749         hash: avoid memory leak on allocation failure
38750         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
38751         failure.  Factor repeated algorithm...
38752         (transfer_entries): ...into new helper routine.
38753         (hash_delete): React to hash_rehash return value.
38754
38755         hash: reduce memory pressure in hash_rehash no-op case
38756         * lib/hash.c (next_prime): Avoid overflow.
38757         (hash_initialize): Factor bucket size computation...
38758         (compute_bucket_size): ...into new helper function.
38759         (hash_rehash): Use new function and open coding to reduce memory
38760         pressure, and avoid a memory leak in USE_OBSTACK code.
38761         Reported by Jim Meyering.
38762
38763 2009-06-18  Eric Blake  <ebb9@byu.net>
38764
38765         hash: make rotation more obvious
38766         * modules/hash (Depends-on): Add bitrotate and stdint.
38767         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
38768         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
38769         (SIZE_MAX): Rely on headers for definition.
38770         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
38771         (raw_hasher): Use rotr_sz.
38772         Suggested by Jim Meyering.
38773
38774         hash: fix memory leak in last patch
38775         * lib/hash.c (hash_rehash): Avoid memory leak.
38776
38777         hash: avoid no-op rehashing
38778         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
38779
38780         hash: provide default callback functions
38781         * lib/hash.c (raw_hasher, raw_comparator): New functions.
38782         (hash_initialize): Use them as defaults.
38783         * tests/test-hash.c (main): Test this.
38784
38785         hash: minor optimization
38786         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
38787         when possible.
38788         (hash_initialize): Document this promise.
38789         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
38790         * tests/test-hash.c (hash_compare_strings): Test this.
38791
38792 2009-06-18  Bruno Haible  <bruno@clisp.org>
38793
38794         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
38795         going to be replaced anyway.
38796
38797 2009-06-18  Bruno Haible  <bruno@clisp.org>
38798
38799         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
38800         in one place.
38801         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
38802         be replaced anyway.
38803
38804 2009-06-18  Eric Blake  <ebb9@byu.net>
38805
38806         hash: check for resize before insertion
38807         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
38808         threshold before insertion, so that a pathological hash_rehash
38809         that fills every bucket can still trigger another rehash.
38810
38811 2009-06-18  Jim Meyering  <meyering@redhat.com>
38812
38813         hash-tests: add a loop around the small tests
38814         * tests/test-hash.c (main): Repeat small tests with selected
38815         small initial table sizes.
38816
38817 2009-06-17  Eric Blake  <ebb9@byu.net>
38818
38819         hash: minor cleanups
38820         * lib/hash.h (hash_entry): Make opaque, by moving...
38821         * lib/hash.c (hash_entry): ...here.
38822         (hash_insert): Clarify restrictions on what can be inserted.
38823         (hash_get_next): Clarify when it is safe to remove an element
38824         during traversal.
38825         (check_tuning): Skip verification when tuning is known safe.
38826         (hash_initialize): Clarify restrictions on tuning.
38827
38828 2009-06-17  Jim Meyering  <jim@meyering.net>
38829         and Eric Blake  <ebb9@byu.net>
38830
38831         hash-tests: new module
38832         * modules/hash-tests: New file.
38833         * tests/test-hash.c: New file.
38834
38835 2009-06-17  Eric Blake  <ebb9@byu.net>
38836
38837         strstr-simple: document new module
38838         * MODULES.html.sh: Document new module.
38839
38840         strstr, strcasestr: replace on platforms with broken memchr
38841         * modules/strstr: Split into...
38842         * modules/strstr-simple: ...new module that does not care about
38843         performance, but does care about glibc bug.
38844         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
38845         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
38846         if platform memchr is broken, per Debian bug 521737.
38847         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
38848         memchr.
38849         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
38850         * doc/posix-functions/strstr.texi (strstr): Document the fix.
38851         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
38852         * modules/mountlist (Depends-on): Add strstr-simple.
38853         * modules/gen-uni-tables (Depends-on): Likewise.
38854         * modules/argz (Depends-on): Add strstr.
38855
38856 2009-06-17  Bruno Haible  <bruno@clisp.org>
38857
38858         * modules/posix_spawn-internal (Depends-on): Add errno.
38859
38860 2009-06-17  Bruno Haible  <bruno@clisp.org>
38861
38862         Define missing ESTALE on Interix 3.5.
38863         * lib/errno.in.h (ESTALE): Assign a value if missing.
38864         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
38865         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
38866         missing.
38867         * doc/posix-headers/errno.texi: Mention the Interix bug.
38868         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
38869
38870 2009-06-15  Eric Blake  <ebb9@byu.net>
38871
38872         memchr, memchr2: add valgrind exception
38873         * lib/memchr.valgrind: New file.
38874         * lib/memchr2.valgrind: New file.
38875         * modules/memchr (Files): Distribute valgrind file.
38876         * modules/memchr2 (Files): Likewise.
38877
38878         docs: memchr is no longer obsolete
38879         * MODULES.html.sh: Move memchr from obsolete to string.h section.
38880         * lib/string.in.h (memchr): Simplify logic.
38881
38882 2009-06-14  Jim Meyering  <meyering@redhat.com>
38883
38884         link-follow: fix the "checking..." message to not mention trailing slash
38885         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
38886         never considered trailing slashes.
38887
38888 2009-06-14  Bruno Haible  <bruno@clisp.org>
38889
38890         * m4/memchr.m4: Mention also the bug on IA-64.
38891         * doc/posix-functions/memchr.texi: Likewise.
38892
38893 2009-06-12  Eric Blake  <ebb9@byu.net>
38894
38895         memchr: detect broken x86_64 and alpha implementations
38896         * modules/memchr-tests (Depends-on): Move mmap detection...
38897         * modules/memchr (Depends-on): ...here.
38898         (configure.ac): Set indicator.
38899         * lib/string.in.h (memchr): Declare replacement.
38900         * modules/string (Makefile.am): Trigger replacement.
38901         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
38902         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
38903         bugs.
38904         * doc/posix-functions/memchr.texi (memchr): Document the bug.
38905         * modules/getpagesize (License): Relax license.
38906
38907 2009-06-11  Bruno Haible  <bruno@clisp.org>
38908
38909         * lib/idpriv.h: Add more references.
38910
38911 2009-06-08  Bruno Haible  <bruno@clisp.org>
38912
38913         Tests for module 'idpriv-droptemp'.
38914         * modules/idpriv-droptemp-tests: New file.
38915         * tests/test-idpriv-droptemp.sh: New file.
38916         * tests/test-idpriv-droptemp.su.sh: New file.
38917         * tests/test-idpriv-droptemp.c: New file.
38918
38919         New module 'idpriv-droptemp'.
38920         * lib/idpriv-droptemp.c: New file.
38921         * modules/idpriv-droptemp: New file.
38922
38923 2009-06-08  Bruno Haible  <bruno@clisp.org>
38924
38925         Tests for module 'idpriv-drop'.
38926         * modules/idpriv-drop-tests: New file.
38927         * tests/test-idpriv-drop.sh: New file.
38928         * tests/test-idpriv-drop.su.sh: New file.
38929         * tests/test-idpriv-drop.c: New file.
38930
38931         New module 'idpriv-drop'.
38932         * lib/idpriv.h: New file.
38933         * lib-idpriv-drop.c: New file.
38934         * m4/idpriv.m4: New file.
38935         * modules/idpriv-drop: New file.
38936
38937 2009-06-08  Bruno Haible  <bruno@clisp.org>
38938
38939         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
38940         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38941         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38942         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38943         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38944         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38945         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38946
38947 2009-06-08  Eric Blake  <ebb9@byu.net>
38948
38949         test-strstr: use memory fence, when possible
38950         * tests/test-strstr.c (main): Use memory fence, in order to be
38951         more likely to trigger Debian bug 521737.
38952         * modules/strstr-tests (Files): Pull in additional files.
38953
38954         memchr: no longer obsolete, for wider field testing
38955         * modules/memchr (Status, Notice): Delete, this module is no
38956         longer obsolete.
38957         * modules/vasnprintf (Depends-on): Add memchr.
38958
38959 2009-06-07  Jim Meyering  <meyering@redhat.com>
38960
38961         hash: declare some functions with the warn_unused_result attribute
38962         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
38963
38964 2009-06-07  Bruno Haible  <bruno@clisp.org>
38965
38966         * tests/test-alignof.c: Don't test int64_t if it does not exist.
38967         Reported by Eric Blake.
38968
38969 2009-06-06  Eric Blake  <ebb9@byu.net>
38970
38971         test-alignof: fix typo with long double
38972         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
38973         compiler error.
38974
38975 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
38976
38977         Escape non-texinfo { and }s.
38978         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
38979         markup error.
38980
38981 2009-06-04  Jim Meyering  <meyering@redhat.com>
38982
38983         gitlog-to-changelog: don't infloop on an empty commit log
38984         * build-aux/gitlog-to-changelog: Warn about an empty log message.
38985         Reported by Boris Petersen <transacid@centerim.org>.
38986
38987 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
38988
38989         version-etc: extend for packagers
38990         Add three new configure options, intended for packagers:
38991           --with-packager="packager name"
38992           --with-packager-version="packager-specific version"
38993           --with-packager-bug-reports="packager bug reporting"
38994         An example with coreutils:
38995           $ ./configure \
38996             --with-packager=Gentoo \
38997             --with-packager-bug-report=http://bugs.gentoo.org/ \
38998             --with-packager-version="patchset 1.6"
38999           $ ./src/ls --version | head -n2
39000           ls (GNU coreutils) 7.1-dirty
39001           Packaged by Gentoo (patchset 1.6)
39002         Note that the bug reporting info via --help doesn't show up because
39003         coreutils uses its own custom emit_bug_reporting_address() implementation
39004         in src/system.h.  If it didn't, it'd look like:
39005           $ ./src/ls --help | tail -n4
39006           Report bugs to <bug-coreutils@gnu.org>.
39007           Report Gentoo bugs to <http://bugs.gentoo.org/>.
39008           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
39009           General help using GNU software: <http://www.gnu.org/gethelp/>.
39010         * lib/version-etc.c: Print new information, if provided.
39011         * m4/version-etc.m4: New file.
39012         * modules/version-etc (Files): Add m4/version-etc.m4.
39013         (configure.ac): Add gl_VERSION_ETC.
39014
39015 2009-05-31  Bruno Haible  <bruno@clisp.org>
39016
39017         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
39018         and 'int64_t'.
39019         * modules/alignof-tests (Dependencies): Add stdint.
39020         Reported by Eric Blake.
39021
39022 2009-05-31  Bruno Haible  <bruno@clisp.org>
39023
39024         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
39025         restriction due to compiler bugs.
39026         Reported by Eric Blake.
39027
39028 2009-05-31  Simon Josefsson  <simon@josefsson.org>
39029             Bruno Haible  <bruno@clisp.org>
39030
39031         Fix test-alignof failure.
39032         * lib/alignof.h (alignof_slot): New macro.
39033         (alignof_type): New macro, with the same semantics as the previous
39034         'alignof'.
39035         (alignof): Alias to alignof_slot.
39036         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
39037         check that the results are usable as constant expressions.
39038
39039 2009-05-31  Bruno Haible  <bruno@clisp.org>
39040
39041         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
39042         * tests/test-memchr.c (main): Check that memchr does not read past the
39043         first occurrence of the byte.
39044         * tests/test-strstr.c (main): Update comment.
39045         Suggested by Eric Blake.
39046
39047 2009-05-30  Bruno Haible  <bruno@clisp.org>
39048
39049         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
39050         detail how to use dumpbin.
39051         Reported by David Byron <dbyron@dbyron.com>.
39052
39053 2009-06-02  Simon Josefsson  <simon@josefsson.org>
39054
39055         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
39056
39057 2009-06-02  Simon Josefsson  <simon@josefsson.org>
39058
39059         * m4/manywarnings.m4: Add GCC 4.4 warnings.
39060
39061 2009-05-28  Bruno Haible  <bruno@clisp.org>
39062
39063         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
39064         build-aux/ files.
39065
39066 2009-05-28  Simon Josefsson  <simon@josefsson.org>
39067
39068         * gnulib-tool (func_import): Transform license on build-aux/ files too.
39069
39070 2009-05-27  Simon Josefsson  <simon@josefsson.org>
39071
39072         * gnulib-tool (sed_transform_main_lib_file)
39073         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
39074         regexps.
39075
39076 2009-05-26  Simon Josefsson  <simon@josefsson.org>
39077
39078         * tests/test-strstr.c: Add another self-test.
39079         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
39080         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
39081
39082 2009-05-23  Bruno Haible  <bruno@clisp.org>
39083
39084         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
39085         change.
39086
39087 2009-05-21  Bruno Haible  <bruno@clisp.org>
39088
39089         Simplify use of mode_t varargs.
39090         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
39091         uses 'mode_t' or 'int'.
39092         * lib/openat.c (openat): Likewise.
39093         * lib/open-safer.c (open_safer): Likewise.
39094         * m4/mode_t.m4: New file.
39095         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
39096         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
39097         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
39098         * modules/open (Files): Add m4/mode_t.m4.
39099         * modules/openat (Files): Likewise.
39100         * modules/fcntl-safer (Files): Likewise.
39101         Suggested by Eric Blake.
39102
39103 2009-05-21  Pádraig Brady  <P@draigbrady.com>
39104
39105         * doc/glibc-functions/fallocate.texi: New file.
39106         * doc/gnulib.texi: Include it.
39107
39108 2009-05-21  Eric Blake  <ebb9@byu.net>
39109             Bruno Haible  <bruno@clisp.org>
39110
39111         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
39112         invocations.
39113         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
39114
39115 2009-05-21  Eric Blake  <ebb9@byu.net>
39116             Bruno Haible  <bruno@clisp.org>
39117
39118         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
39119         include_next. Fix of 2008-11-20 commit.
39120         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
39121         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
39122         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
39123         NEXT_MATH_H.
39124         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
39125         instead of NEXT_MATH_H.
39126
39127 2009-05-21  Bruno Haible  <bruno@clisp.org>
39128
39129         Avoid redefinition warnings for SIZE_MAX.
39130         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
39131         Reported by Simon Josefsson.
39132
39133 2009-05-21  Bruno Haible  <bruno@clisp.org>
39134
39135         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
39136         AC_CACHE_VAL.
39137
39138 2009-05-20  Bruno Haible  <bruno@clisp.org>
39139
39140         Make zeroptr.h work on mingw.
39141         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
39142         mprotect.
39143         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
39144         * modules/memchr2-tests (configure.ac): Likewise.
39145         * modules/memcmp-tests (configure.ac): Likewise.
39146         * modules/memmem-tests (configure.ac): Likewise.
39147         * modules/memrchr-tests (configure.ac): Likewise.
39148         Reported by Simon Josefsson.
39149
39150 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39151
39152         * tests/test-glob.c: Include string.h for strcmp prototype.
39153
39154 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39155
39156         * modules/getdelim (Depends-on): Add explicit stdint, although it
39157         was implicitly already pulled in via realloc-posix.
39158         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
39159
39160 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39161
39162         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
39163         G. Christensen" <tgc@jupiterrise.com>.
39164         * m4/sys_socket_h.m4: Check for sa_family_t.
39165         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
39166         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
39167         * tests/test-sys_socket.c: Check that sa_family_t works.
39168
39169 2009-05-18  Eric Blake  <ebb9@byu.net>
39170
39171         maint.mk: allow gnulib_dir in VPATH build
39172         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
39173
39174 2009-05-15  Jim Meyering  <meyering@redhat.com>
39175
39176         maint.mk: Give gnulib_dir a default definition.
39177         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
39178         Thus, most packages no longer need to specify this variable in cfg.mk
39179
39180 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
39181
39182         rename.m4: fix typos that would make non-mingw cross-configure fail
39183         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
39184
39185 2009-05-13  Eric Blake  <ebb9@byu.net>
39186
39187         mmap-anon: avoid out-of-order autoconf expansion
39188         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
39189         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
39190         * modules/memchr-tests (Depends-on): Add extensions.
39191         * modules/memchr2-tests (Depends-on): Add extensions.
39192         * modules/memcmp-tests (Depends-on): Add extensions.
39193         * modules/memmem-tests (Depends-on): Add extensions.
39194         * modules/memrchr-tests (Depends-on): Add extensions.
39195
39196 2009-05-13  Bruno Haible  <bruno@clisp.org>
39197
39198         Make some tests ISO C 99 compliant.
39199         * tests/zerosize-ptr.h: New file.
39200         * tests/test-memchr.c: Include zerosize-ptr.h.
39201         (main): Use a zero-size object pointer instead of NULL.
39202         * tests/test-memchr2.c: Include zerosize-ptr.h.
39203         (main): Use a zero-size object pointer instead of NULL.
39204         * tests/test-memcmp.c: Include zerosize-ptr.h.
39205         (main): Use a zero-size object pointer instead of NULL.
39206         * tests/test-memmem.c: Include zerosize-ptr.h.
39207         (main): Use a zero-size object pointer instead of NULL.
39208         * tests/test-memrchr.c: Include zerosize-ptr.h.
39209         (main): Use a zero-size object pointer instead of NULL.
39210         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
39211         m4/mmap-anon.m4.
39212         (Depends-on): Add getpagesize.
39213         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39214         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
39215         m4/mmap-anon.m4.
39216         (Depends-on): Add getpagesize.
39217         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39218         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
39219         m4/mmap-anon.m4.
39220         (Depends-on): Add getpagesize.
39221         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39222         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
39223         m4/mmap-anon.m4.
39224         (Depends-on): Add getpagesize.
39225         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39226         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
39227         m4/mmap-anon.m4.
39228         (Depends-on): Add getpagesize.
39229         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39230
39231 2009-05-12  Bruno Haible  <bruno@clisp.org>
39232
39233         Tests for module 'alignof'.
39234         * modules/alignof-tests: New file.
39235         * tests/test-alignof.c: New file.
39236
39237 2009-05-12  Bruno Haible  <bruno@clisp.org>
39238
39239         Fix alignof macro.
39240         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
39241         vendor compilers that are always correct.
39242
39243 2009-05-12  Bruno Haible  <bruno@clisp.org>
39244
39245         Make the MAP_ANONYMOUS detection work on HP-UX 11.
39246         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
39247         not whether its fully works.
39248
39249 2009-05-12  Bruno Haible  <bruno@clisp.org>
39250
39251         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
39252
39253 2009-05-12  Jim Meyering  <meyering@redhat.com>
39254
39255         * top/maint.mk: Adjust backslash alignment.
39256
39257 2009-05-11  Simon Josefsson  <simon@josefsson.org>
39258
39259         * top/maint.mk: Make $(srcdir)/build-aux configurable.
39260
39261 2009-05-11  Eric Blake  <ebb9@byu.net>
39262
39263         argp: avoid undefined behavior
39264         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
39265         macros.
39266
39267 2009-05-08  Simon Josefsson  <simon@josefsson.org>
39268
39269         * tests/test-vc-list-files-git.sh: Do git config of user.email and
39270         user.name to prevent git commit from complaining.
39271
39272 2009-05-10  Bruno Haible  <bruno@clisp.org>
39273
39274         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
39275         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
39276         it rewrites every file name only once.
39277         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
39278
39279 2009-05-08  Bruno Haible  <bruno@clisp.org>
39280
39281         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
39282         instead of 'max'.
39283
39284 2009-05-08  Simon Josefsson  <simon@josefsson.org>
39285
39286         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
39287         sockaddr_storage test.
39288
39289 2009-05-07  Simon Josefsson  <simon@josefsson.org>
39290
39291         * modules/sys_socket (Makefile.am): Substitute
39292         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
39293         * m4/sys_socket_h.m4: Check for sockaddr_storage.
39294         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
39295         * tests/test-sys_socket.c: Check sockaddr_storage.
39296
39297 2009-05-08  Bruno Haible  <bruno@clisp.org>
39298
39299         New module 'alignof'.
39300         * lib/alignof.h: New file.
39301         * modules/alignof: New file.
39302
39303 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39304             Bruno Haible  <bruno@clisp.org>
39305
39306         Fix test-file-has-acl on FreeBSD.
39307         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
39308         mask is implicitly added.
39309         * tests/test-file-has-acl.c: Include <signal.h>.
39310         (main): Terminate the test after 5 seconds.
39311         * modules/acl-tests (configure.ac): Check for alarm function.
39312
39313 2009-05-04  Bruno Haible  <bruno@clisp.org>
39314
39315         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
39316         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
39317         * modules/errno (configure.ac): Drop AC_REQUIRE.
39318         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
39319         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
39320
39321 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39322
39323         * modules/glob-tests: New module.
39324         * tests/test-glob.c: Add.
39325
39326 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39327
39328         * modules/fnmatch-tests: New module.
39329         * tests/test-fnmatch.c: Add.
39330
39331 2009-05-04  Eric Blake  <ebb9@byu.net>
39332
39333         maint: make the new no-submodule-changes rule VPATH-safe
39334         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
39335
39336 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39337             Bruno Haible  <bruno@clisp.org>
39338
39339         acl: Fix infinite loop on FreeBSD.
39340         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
39341         of return value from acl_get_entry.
39342         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
39343         Likewise.
39344
39345 2009-05-03  Bruno Haible  <bruno@clisp.org>
39346
39347         * lib/acl-internal.h (acl_entries): Clarify return value.
39348         * lib/acl_entries.c (acl_entries): Likewise.
39349
39350 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39351
39352         Bug fix in acl module.
39353         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
39354
39355 2009-05-03  Bruno Haible  <bruno@clisp.org>
39356
39357         Create gperf-generated file in the source dir, not in the build dir.
39358         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
39359         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
39360         * modules/unicase/locale-language (unicase/locale-languages.h):
39361         Likewise.
39362         * modules/unicase/special-casing (unicase/special-casing-table.h):
39363         Likewise.
39364         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
39365         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
39366         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
39367         Reported by Ralf Wildenhues.
39368
39369 2009-05-03  Bruno Haible  <bruno@clisp.org>
39370
39371         * modules/fnmatch (Description, configure.ac): Taken from
39372         fnmatch-posix.
39373         * modules/fnmatch-posix: Turn into a symbolic reference to the
39374         'fnmatch' module, and deprecate.
39375         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
39376
39377 2009-05-03  Bruno Haible  <bruno@clisp.org>
39378
39379         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
39380         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
39381         Reported by Ralf Wildenhues.
39382
39383 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39384
39385         * m4/fnmatch.m4: Fix fnmatch re-define.
39386
39387 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39388
39389         priv-set: new module and tests; adapt write-any-file
39390         * lib/priv-set.c: New file.
39391         * lib/priv-set.h: New file.
39392         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
39393         * lib/write-any-file.c: Simplify by using priv-set module.
39394         * m4/priv-set.m4: New file.
39395         * modules/priv-set: New file.
39396         * modules/unlinkdir: Add dependency on priv-set module.
39397         * modules/write-any-file: Likewise.
39398
39399         Tests for module 'priv-set'.
39400         * modules/priv-set-tests: New file.
39401         * tests/test-priv-set.c: New file.
39402
39403 2009-05-03  Jim Meyering  <meyering@redhat.com>
39404             Bruno Haible  <bruno@clisp.org>
39405
39406         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
39407         use the converted UTF-8 variant of the name instead.
39408
39409 2009-05-03  Jim Meyering  <meyering@redhat.com>
39410
39411         tests: tighten some getdate tests
39412         * tests/test-getdate.c (main): Tighten tests: require equality,
39413         not just greater than.  Set TZ envvar to UTC0.
39414
39415 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
39416
39417         getdate: correctly interpret "next monday" when run on a Monday
39418         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
39419         that e.g., "next tues" (when run on a tuesday) results in a date
39420         that is one week in the future, and not today's date.
39421         I.e., add a week when the wday is the same as the current one.
39422         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
39423         and earlier by Martin Bernreuther and Jan Minář.
39424         * tests/test-getdate.c (main): Check that "next DAY" is always in
39425         the future and that "last DAY" is always in the past.
39426
39427 2009-05-02  Jim Meyering  <meyering@redhat.com>
39428
39429         build: ensure that a release build fails when a submodule is unclean
39430         * top/maint.mk (no-submodule-changes): New rule.
39431         (alpha beta major): Depend on it.
39432
39433 2009-05-02  Bruno Haible  <bruno@clisp.org>
39434
39435         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
39436         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
39437         shell variable gl_fnmatch_required to detect which variant is
39438         requested.
39439         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
39440         gl_FUNC_FNMATCH_POSIX.
39441         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
39442         exclude fnmatch-posix.
39443
39444 2009-05-02  Bruno Haible  <bruno@clisp.org>
39445
39446         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
39447         * modules/mbsrtowcs (License): Change to LGPLv2+.
39448         * modules/strnlen1 (License): Likewise.
39449         Reported by Simon Josefsson.
39450
39451 2009-05-02  Bruno Haible  <bruno@clisp.org>
39452
39453         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
39454         "cross".
39455         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
39456         gnulib-tool was called with option --source-base=lib.
39457
39458 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39459
39460         Use automake *-local hooks without commands, for extensibility.
39461         * modules/localcharset (Makefile.am): Rename install-exec-local
39462         rule to install-exec-localcharset, and make it a prerequisite of
39463         install-exec-local.  Likewise, rename the uninstall-local rule to
39464         uninstall-localcharset, and make it a prerequisite of the former.
39465
39466 2009-05-01  Bruno Haible  <bruno@clisp.org>
39467
39468         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
39469         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
39470         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
39471         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
39472         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
39473         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
39474         m4/locale-zh.m4, m4/codeset.m4.
39475
39476         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
39477         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
39478         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
39479         m4/locale-zh.m4.
39480
39481         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
39482         REPLACE_WCRTOMB if mbstate_t must be replaced.
39483         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
39484         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
39485
39486 2009-05-01  Bruno Haible  <bruno@clisp.org>
39487
39488         Avoid compiler warnings when redefining macros defined by <libintl.h>.
39489         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
39490         dngettext, dcngettext, textdomain, bindtextdomain,
39491         bind_textdomain_codeset): Undefine before redefining.
39492
39493 2009-04-30  Bruno Haible  <bruno@clisp.org>
39494
39495         Fix bug introduced on 2009-04-25.
39496         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
39497         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
39498         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
39499         is defined.
39500         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
39501         is defined.
39502         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
39503         is defined.
39504         Reported by Elbert_Pol <elbert.pol@gmail.com>.
39505
39506 2009-04-28  Bruno Haible  <bruno@clisp.org>
39507
39508         Comment tweaks.
39509         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
39510         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
39511         * lib/unicase.h (u*_casexfrm): Likewise.
39512         Reported by Paolo Bonzini.
39513
39514 2009-04-28  Bruno Haible  <bruno@clisp.org>
39515
39516         Fix a compilation error.
39517         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
39518         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
39519         Reported by Jim Meyering.
39520
39521 2009-04-27  Bruno Haible  <bruno@clisp.org>
39522
39523         New module 'libunistring'.
39524         * modules/libunistring: New file.
39525         * m4/libunistring.m4: New file.
39526         * MODULES.html.sh (Unicode string functions): Add it.
39527
39528 2009-04-27  Eric Blake  <ebb9@byu.net>
39529
39530         maint.mk: allow package-specific header to provide <config.h>
39531         * top/maint.mk (sc_require_config_h): New variable.
39532         (sc_require_config_h, sc_require_config_h_first): Use it.
39533
39534 2009-04-27  Simon Josefsson  <simon@josefsson.org>
39535
39536         * top/maint.mk (sc_avoid_if_before_free): Except
39537         useless-if-before-free script.
39538
39539 2009-04-27  Eric Blake  <ebb9@byu.net>
39540
39541         maintainer-makefile: depend on all required helper scripts
39542         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
39543         useless-if-before-free.
39544         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
39545         version, rather than assuming gnulib checkout is available.
39546         Reported by Simen Josefsson.
39547
39548 2009-04-26  Bruno Haible  <bruno@clisp.org>
39549
39550         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
39551         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
39552         "../" or "..".
39553
39554 2009-04-26  Bruno Haible  <bruno@clisp.org>
39555
39556         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
39557         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
39558         AC_LIB_HAVE_LINKFLAGS.
39559
39560 2009-04-26  Bruno Haible  <bruno@clisp.org>
39561
39562         Simplify calling convention of u*_conv_from_encoding.
39563         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
39564         u32_conv_from_encoding): Expect a resultbuf argument and return the
39565         result directly as a pointer.
39566         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
39567         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
39568         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
39569         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
39570         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
39571         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
39572         Update.
39573         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
39574         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
39575         * lib/vasnprintf.c (VASNPRINTF): Update.
39576         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
39577         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
39578         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
39579         * NEWS: Mention the change.
39580
39581 2009-04-26  Bruno Haible  <bruno@clisp.org>
39582
39583         Simplify calling convention of u*_conv_to_encoding.
39584         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
39585         u32_conv_to_encoding): Expect a resultbuf argument and return the
39586         result directly as a pointer.
39587         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
39588         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
39589         freeing scaled_offsets if mem_iconveha failed.
39590         * lib/unicase/u-casexfrm.h (FUNC): Update.
39591         * lib/uninorm/u-normxfrm.h (FUNC): Update.
39592         * lib/vasnprintf.c (VASNPRINTF): Update.
39593         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
39594         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
39595         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
39596         * NEWS: Mention the change.
39597
39598 2009-04-26  Bruno Haible  <bruno@clisp.org>
39599
39600         Avoid test failures on AIX and OSF/1.
39601         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
39602         malloc(0).
39603         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
39604         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
39605         Likewise.
39606         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
39607         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
39608         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
39609         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
39610         * doc/posix-functions/malloc.texi: Document the portability problem
39611         related to malloc(0).
39612
39613 2009-04-26  Bruno Haible  <bruno@clisp.org>
39614
39615         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
39616         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
39617         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
39618
39619 2009-04-25  Bruno Haible  <bruno@clisp.org>
39620
39621         Avoid link error when creating a namespace clean library.
39622         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
39623         as macro with arguments if already defined as an alias.
39624         * lib/signbitf.c (gl_signbitf): Don't undefine.
39625         * lib/signbitd.c (gl_signbitd): Don't undefine.
39626         * lib/signbitl.c (gl_signbitl): Don't undefine.
39627
39628 2009-04-25  Jim Meyering  <meyering@redhat.com>
39629
39630         vc-list-files: fix another quoting bug
39631         * build-aux/vc-list-files: Avoid sed backslash expansion
39632         of pathological directory names.
39633
39634 2009-04-25  Eric Blake  <ebb9@byu.net>
39635
39636         vc-list-files: fix shell quoting error
39637         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
39638         timestamp.
39639
39640 2009-04-25  Jim Meyering  <meyering@redhat.com>
39641
39642         vc-list-files: restore lost functionality with subdir argument
39643         * build-aux/vc-list-files: When given a non-"." sub-directory
39644         argument, substitute the $dir/ prefix back onto each resulting name.
39645         Otherwise, coreutils' root_tests check would fail.
39646
39647 2009-04-24  Eric Blake  <ebb9@byu.net>
39648
39649         vc-list-files: ignore git symlinks
39650         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
39651         than ls-files, to ignore git symlinks.
39652
39653         maint.mk: import improvements from m4
39654         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
39655         (move_if_change): Delete unused macro.
39656         (news-date-check, vc-diff-check): Support VPATH builds.
39657         (announcement): Likewise.  Split --bootstrap-tools list...
39658         (boostrap-tools): ...into separate list, which can be overridden
39659         in cfg.mk.
39660         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
39661         requiring dependency on useless-if-before-free module.
39662         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
39663         Support VPATH builds.
39664
39665 2009-04-24  Jim Meyering  <meyering@redhat.com>
39666
39667         maint.mk: remove coreutils-specific rules and variables
39668         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
39669         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
39670         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
39671
39672         maint.mk: remove obsolete rule
39673         * top/maint.mk (rel-check): Remove rule.
39674         (WGET, WGETFLAGS): Remove now-unused variables.
39675
39676 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39677
39678         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
39679         consistency.
39680
39681         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
39682         '$(PATH_SEPARATOR)' instead of ':'.
39683
39684 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39685
39686         * lib/getopt1.c (main): Use 'const' for static array.
39687
39688 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39689
39690         * top/maint.mk: Sync with coreutils.
39691         * NEWS: Explain incompatibilities.
39692
39693 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39694             Bruno Haible  <bruno@clisp.org>
39695
39696         Fix cross-compilation results.
39697         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
39698         statement, as third argument of AC_TRY_RUN.
39699         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
39700         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
39701         Likewise.
39702         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
39703         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
39704         Likewise.
39705         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
39706         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
39707         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
39708
39709 2009-04-20  Bruno Haible  <bruno@clisp.org>
39710
39711         Avoid test failure on mingw.
39712         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
39713
39714 2009-04-20  Bruno Haible  <bruno@clisp.org>
39715
39716         Avoid compilation error on mingw.
39717         * modules/localename-tests (Depends-on): Add locale.
39718
39719 2009-04-19  Bruno Haible  <bruno@clisp.org>
39720
39721         Support for building a shared library on Windows platforms.
39722         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
39723         (main): Test the presence of UNINORM_NFC here.
39724         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
39725         (main): Test the presence of UNINORM_NFD here.
39726         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
39727         (main): Test the presence of UNINORM_NFKC here.
39728         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
39729         (main): Test the presence of UNINORM_NFKD here.
39730
39731 2009-04-19  Bruno Haible  <bruno@clisp.org>
39732
39733         Avoid a compiler warning.
39734         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
39735         Change type of variable 'sequence'.
39736
39737 2009-04-19  Bruno Haible  <bruno@clisp.org>
39738
39739         * modules/configmake (Makefile.am): When the contents of configmake.h
39740         does not change, arrange to preserve its modification time.
39741
39742 2009-04-17  Simon Josefsson  <simon@josefsson.org>
39743
39744         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
39745         gettext domain.
39746
39747 2009-04-16  Jim Meyering  <meyering@redhat.com>
39748
39749         useless-if-before-free: improve conversion code
39750         * build-aux/useless-if-before-free: Adjust code-in-comment to match
39751         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
39752
39753 2009-04-14  Bruno Haible  <bruno@clisp.org>
39754
39755         * modules/fcntl (Depends-on): Add extensions.
39756         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
39757
39758 2009-04-12  Ben Pfaff  <blp@gnu.org>
39759
39760         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
39761         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
39762
39763 2009-03-20  Ben Pfaff  <blp@gnu.org>
39764
39765         Make rename replace existing destinations on Windows.
39766         * m4/rename.m4: Add test for Mingw.
39767         * lib/rename.c: Add rename replacement that uses MoveFileEx with
39768         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
39769         * doc/posix-functions/rename.texi: Document.
39770
39771 2009-04-10  Bruno Haible  <bruno@clisp.org>
39772
39773         New include file "iconveh.h".
39774         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
39775         * lib/striconveh.h: Include it.
39776         (enum iconv_ilseq_handler): Remove definition.
39777         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
39778         striconveh.h.
39779         * lib/striconveha.c: Include striconveh.h.
39780         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
39781         * modules/striconveh (Files): Add lib/iconveh.h.
39782         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
39783         lib/striconveh.h.
39784
39785 2009-04-10  Bruno Haible  <bruno@clisp.org>
39786
39787         * lib/uniconv.h: Update comment.
39788
39789 2009-04-10  Bruno Haible  <bruno@clisp.org>
39790
39791         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
39792         always.
39793         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
39794         * lib/unistr/u16-mbtouc-aux.c: Likewise.
39795         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
39796         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
39797         "unistring-notinline.h", so that the function gets defined always.
39798         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
39799         * lib/unistr/u8-uctomb.c: Likewise.
39800         * lib/unistr/u16-mbtouc.c: Likewise.
39801         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
39802         * lib/unistr/u16-uctomb.c: Likewise.
39803         * lib/unistr/u32-mbtouc.c: Likewise.
39804         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
39805         * lib/unistr/u32-uctomb.c: Likewise.
39806
39807 2009-04-10  Bruno Haible  <bruno@clisp.org>
39808
39809         Mark 'utime' obsolete.
39810         * modules/utime (Status, Notice): New sections.
39811         Suggested by Jim Meyering.
39812
39813         Fix cross-compile guess for utime test.
39814         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
39815         autoconf.
39816         * doc/posix-functions/utime.texi: Give more precisions.
39817         Reported by Jan <ipif@ymail.com>.
39818
39819 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
39820
39821         filevercmp: correct today's change
39822         * lib/filevercmp.c: Also handle coreutils' test inputs.
39823         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
39824
39825         Fix regression in 'filevercmp' module. Thanks Sven Joachim
39826         for reporting it.
39827         * lib/filevercmp.c: Special handle for "", "." and "..".
39828         * tests/test-filevercmp.c: Enlarge the set suite.
39829
39830 2009-04-07  Jim Meyering  <meyering@redhat.com>
39831
39832         useless-if-before-free: show how to remove braced useless free, too
39833         * build-aux/useless-if-before-free: still only in a comment, though.
39834
39835 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
39836
39837         maint.mk: import changes to syntax-check macros from coreutils
39838         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
39839         Use them in the relevant macros.
39840
39841 2009-04-06  Bruno Haible  <bruno@clisp.org>
39842
39843         Fix unportable use of bit-fields.
39844         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
39845         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
39846         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
39847
39848 2009-04-06  Bruno Haible  <bruno@clisp.org>
39849
39850         Avoid test failures on AIX and OSF/1.
39851         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
39852         that malloc(0) = NULL.
39853         * tests/unicase/test-u8-tolower.c (check): Likewise.
39854         * tests/unicase/test-u8-totitle.c (check): Likewise.
39855         * tests/unicase/test-u8-toupper.c (check): Likewise.
39856         * tests/unicase/test-u16-casefold.c (check): Likewise.
39857         * tests/unicase/test-u16-tolower.c (check): Likewise.
39858         * tests/unicase/test-u16-totitle.c (check): Likewise.
39859         * tests/unicase/test-u16-toupper.c (check): Likewise.
39860         * tests/unicase/test-u32-casefold.c (check): Likewise.
39861         * tests/unicase/test-u32-tolower.c (check): Likewise.
39862         * tests/unicase/test-u32-totitle.c (check): Likewise.
39863         * tests/unicase/test-u32-toupper.c (check): Likewise.
39864         * tests/uninorm/test-u8-nfc.c (check): Likewise.
39865         * tests/uninorm/test-u8-nfd.c (check): Likewise.
39866         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
39867         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
39868         * tests/uninorm/test-u16-nfc.c (check): Likewise.
39869         * tests/uninorm/test-u16-nfd.c (check): Likewise.
39870         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
39871         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
39872         * tests/uninorm/test-u32-nfc.c (check): Likewise.
39873         * tests/uninorm/test-u32-nfd.c (check): Likewise.
39874         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
39875         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
39876
39877 2009-04-05  Bruno Haible  <bruno@clisp.org>
39878
39879         Work around an autoconf limitation.
39880         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
39881         comment line if it would be longer than 3 KB.
39882
39883 2009-04-05  Bruno Haible  <bruno@clisp.org>
39884
39885         Avoid test failure with libiconv-1.13.
39886         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
39887         of the expected test results.
39888
39889 2009-04-05  Bruno Haible  <bruno@clisp.org>
39890
39891         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
39892         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
39893         that it should be installed.
39894
39895 2009-04-05  Bruno Haible  <bruno@clisp.org>
39896
39897         * gnulib-tool: New option --copy-file.
39898         (func_usage): Document it.
39899         (func_dest_tmpfilename): Moved out of func_import.
39900         (func_add_file, func_update_file): New functions, extracted from
39901         func_import.
39902         (func_import): Update.
39903
39904 2009-04-05  Karl Berry  <karl@gnu.org>
39905
39906         * README: prominently mention gnulib-tool.
39907         Rearrange sections so getting the code is near the top.
39908
39909 2009-04-05  Bruno Haible  <bruno@clisp.org>
39910
39911         * lib/unicase.h: Mention u*_cmp2.
39912         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39913         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
39914         * lib/unicase/ulc-casecmp.c: Likewise.
39915         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
39916         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
39917         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
39918         unistr/u8-cmp.
39919         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
39920         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
39921         unistr/u16-cmp.
39922         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
39923         unistr/u32-cmp.
39924
39925         * lib/uninorm.h: Mention u*_cmp2.
39926         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39927         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
39928         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
39929         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
39930         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
39931         unistr/u8-cmp.
39932         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
39933         unistr/u16-cmp.
39934         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
39935         unistr/u32-cmp.
39936
39937         New module 'unistr/u32-cmp2'.
39938         * lib/unistr/u32-cmp2.c: New file.
39939         * modules/unistr/u32-cmp2: New file.
39940
39941         New module 'unistr/u16-cmp2'.
39942         * lib/unistr/u16-cmp2.c: New file.
39943         * modules/unistr/u16-cmp2: New file.
39944
39945         New module 'unistr/u8-cmp2'.
39946         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
39947         * lib/unistr/u8-cmp2.c: New file.
39948         * lib/unistr/u-cmp2.h: New file.
39949         * modules/unistr/u8-cmp2: New file.
39950
39951 2009-04-05  Bruno Haible  <bruno@clisp.org>
39952
39953         * lib/unictype.h (uc_property_is_valid): New macro.
39954         * tests/unictype/test-pr_byname.c (main): Use it.
39955
39956         * lib/unistr.h: Doc fixes.
39957         * lib/uniconv.h: Doc fixes.
39958         * lib/unictype.h: Doc fixes.
39959
39960 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
39961
39962         Port coreutils 7.2 to Solaris 8.
39963
39964         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
39965         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
39966         for Solaris 8.  This is a bit of a hack, as it means it's the
39967         caller's responsibility to add -lnsl if needed, but most likely it
39968         won't be needed since only getaddrinfo uses this and getaddrinfo
39969         isn't needed on Solaris 8.
39970
39971         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
39972         problem to Solaris 8 encountered with coreutils 7.2, which
39973         resulted in a message "fnmatch.c:292: warning: passing argument 4
39974         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
39975         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
39976
39977 2009-04-03  Simon Josefsson  <simon@josefsson.org>
39978
39979         * m4/ld-version-script.m4: Add FIXME comment.
39980
39981 2009-04-02  Simon Josefsson  <simon@josefsson.org>
39982
39983         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
39984         SOVERSION variable.
39985
39986 2009-04-02  Bruno Haible  <bruno@clisp.org>
39987
39988         * Makefile (info, html, dvi, pdf): Combine the rules.
39989         Suggested by Jim Meyering.
39990
39991 2009-04-01  Bruno Haible  <bruno@clisp.org>
39992
39993         * Makefile (info, html, dvi, pdf): New targets.
39994         Reported by Reuben Thomas <rrt@sc3d.org>.
39995
39996 2009-04-01  Bruno Haible  <bruno@clisp.org>
39997
39998         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
39999         can be put into PATH.
40000         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
40001
40002 2009-04-01  Bruno Haible  <bruno@clisp.org>
40003
40004         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
40005
40006 2009-04-01  Bruno Haible  <bruno@clisp.org>
40007
40008         Rename module 'visibility'.
40009         * modules/lib-symbol-visibility: Renamed from modules/visibility.
40010         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
40011         * doc/gnulib.texi: Update.
40012         * MODULES.html.sh (Misc): Update.
40013         * NEWS: Mention the change.
40014
40015 2009-04-01  Simon Josefsson  <simon@josefsson.org>
40016
40017         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
40018         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
40019         Eric Blake <ebb9@byu.net> for review.
40020         * MODULES.html.sh: Add lib-msvc-compat.
40021         * doc/gnulib.texi: Link to new section.
40022         * m4/ld-output-def.m4: New file.
40023         * doc/ld-output-def.texi: New file.
40024
40025 2009-04-01  Simon Josefsson  <simon@josefsson.org>
40026
40027         Rename ld-version-script to lib-symbol-versions.  Suggested by
40028         Bruno Haible <bruno@clisp.org>.
40029         * modules/ld-version-script: Renamed to lib-symbol-versions.
40030         * doc/ld-version-script.texi: Fix module name.
40031         * MODULES.html.sh: Add lib-symbol-versions.
40032
40033 2009-03-31  Simon Josefsson  <simon@josefsson.org>
40034
40035         * modules/u64-tests: New file.
40036         * tests/test-u64.c: New file.
40037
40038 2009-03-04  Simon Josefsson  <simon@josefsson.org>
40039
40040         * MODULES.html.sh: Mention u64.
40041         * modules/u64: New module.
40042         * modules/crypto/sha512: Depend on u64 module instead of providing
40043         u64.h.
40044
40045 2009-03-27  Eric Blake  <ebb9@byu.net>
40046
40047         test-strerror: make debugging EAI_SYSTEM easier
40048         * modules/getaddrinfo-tests (Depends-on): Add strerror.
40049         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
40050         failure was EAI_SYSTEM.
40051
40052 2009-03-25  Bruno Haible  <bruno@clisp.org>
40053
40054         Fix a problem with --enable-relocatable on Solaris 7.
40055         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
40056         since 2008-02-24.
40057
40058 2009-03-25  Eric Blake  <ebb9@byu.net>
40059
40060         test-sockets: avoid gcc warning
40061         * tests/test-sockets.c (main): Silence compiler warning.
40062
40063 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
40064
40065         New modules nproc, pthread, contributed by Glen Lenker.
40066
40067         * MODULES.html.sh: Add pthread, nproc.
40068         * lib/nproc.c: New file.
40069         * lib/nproc.h: New file.
40070         * lib/pthread.in.h: New file.
40071         * m4/pthread.m4: New file.
40072         * modules/nproc: New file.
40073         * modules/pthread: New file.
40074
40075 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40076
40077         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
40078         New variable.
40079
40080 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
40081
40082         filevercmp: handle simple~ and numbered.~3~ backup suffixes
40083         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
40084         * tests/test-filevercmp.c: Add tests for backup suffixes.
40085
40086 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40087
40088         * modules/stdlib (Depends-on): Add stdint, needed when defining
40089         struct random_data on, for example, HP-UX 10.20.  Reported by
40090         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40091
40092 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40093
40094         * lib/readline.c (readline): Call fflush on stdout after printing
40095         prompt.
40096
40097 2009-03-20  Bruno Haible  <bruno@clisp.org>
40098
40099         Remove dependency from 'close' module to -lws2_32 on native Windows.
40100         * lib/close-hook.h: New file.
40101         * lib/close-hook.c: New file.
40102         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
40103         w32sock.h.
40104         (_gl_close_fd_maybe_socket): Remove function.
40105         (rpl_close): Invoke execute_all_close_hooks instead of
40106         _gl_close_fd_maybe_socket.
40107         * lib/sockets.c: Include close-hook.h, w32sock.h.
40108         (close_fd_maybe_socket): New function, essentially from lib/close.c.
40109         (close_sockets_hook): New variable.
40110         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
40111         (gl_sockets_cleanup): Unregister it.
40112         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
40113         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
40114         * modules/close-hook: New file.
40115         * modules/close (Files): Remove lib/w32sock.h.
40116         (Depends-on): Add close-hook.
40117         (Link): Remove section.
40118         * modules/sockets (Files): Add lib/w32sock.h.
40119         (Depends-on): Add close-hook.
40120         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
40121         invocation.
40122         * NEWS: Mention that LIB_CLOSE is gone.
40123
40124 2009-03-23  Eric Blake  <ebb9@byu.net>
40125
40126         signal-tests: test previous patch
40127         * tests/test-signal.c: New file.
40128         * modules/signal-tests: Likewise.
40129
40130         signal.h: always support 'volatile sig_atomic_t'
40131         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
40132         (gl_SIGNAL_H_DEFAULTS): Add a default.
40133         * modules/signal (Makefile.am): Substitute if needed.
40134         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
40135         users can blindly add volatile.
40136         * doc/posix-headers/signal.texi (signal.h): Document it.
40137         Reported by Matthew Woehlke.
40138
40139 2009-03-23  Jim Meyering  <meyering@redhat.com>
40140
40141         pathmax: PATH_MAX: use pathconf only when available
40142         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
40143         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
40144         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
40145         This avoids a link failure in a PSP cross-compilation environment
40146         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
40147
40148         * lib/vasnprintf.c (divide): Fix typo in comment.
40149
40150 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40151
40152         * gnulib-tool (func_filter_filelist): Fix comment.
40153
40154 2009-03-20  Bruno Haible  <bruno@clisp.org>
40155
40156         Make sockets.h self-contained.
40157         * lib/sockets.c: Include sockets.h first.
40158         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
40159
40160 2009-03-19  Eric Blake  <ebb9@byu.net>
40161
40162         doc: mention more functions added in cygwin 1.7.0
40163         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
40164         addition.
40165         * doc/posix-functions/log2f.texi: Likewise.
40166
40167 2009-03-19  Jim Meyering  <meyering@redhat.com>
40168
40169         fsusage: avoid syntax error due to statement-before-declaration
40170         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
40171         after all declarations.  Reported by Matthew Woehlke in
40172         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
40173
40174 2009-03-18  Eric Blake  <ebb9@byu.net>
40175
40176         build-aux/compile: sync from automake
40177         * build-aux/compile: New file, from automake.
40178         * config/srclist.txt: Mention build-aux/compile.
40179
40180 2009-03-17  Bruno Haible  <bruno@clisp.org>
40181
40182         * lib/git-merge-changelog.c: Fix typo in comment.
40183         Reported by Reuben Thomas <rrt@sc3d.org>.
40184
40185 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
40186
40187         * m4/regex.m4: update and improve help for
40188         --without-included-regex.
40189
40190 2009-03-17  Simon Josefsson  <simon@josefsson.org>
40191
40192         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
40193         failure on missing include files.
40194
40195 2009-03-17  Eric Blake  <ebb9@byu.net>
40196
40197         doc: mention more functions added in cygwin 1.7.0
40198         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
40199         addition.
40200         * doc/posix-functions/fwscanf.texi: Likewise.
40201         * doc/posix-functions/swprintf.texi: Likewise.
40202         * doc/posix-functions/swscanf.texi: Likewise.
40203         * doc/posix-functions/vfwprintf.texi: Likewise.
40204         * doc/posix-functions/vfwscanf.texi: Likewise.
40205         * doc/posix-functions/vswprintf.texi: Likewise.
40206         * doc/posix-functions/vswscanf.texi: Likewise.
40207         * doc/posix-functions/vwprintf.texi: Likewise.
40208         * doc/posix-functions/vwscanf.texi: Likewise.
40209         * doc/posix-functions/wcscasecmp.texi: Likewise.
40210         * doc/posix-functions/wcsdup.texi: Likewise.
40211         * doc/posix-functions/wcsftime.texi: Likewise.
40212         * doc/posix-functions/wcsncasecmp.texi: Likewise.
40213         * doc/posix-functions/wprintf.texi: Likewise.
40214         * doc/posix-functions/wscanf.texi: Likewise.
40215         * doc/glibc-functions/gethostbyname2.texi: Likewise.
40216
40217 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40218
40219         maint.mk: really add $(AM_MAKEFLAGS)
40220         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
40221         was inadvertently omitted in the last commit.
40222         Spotted by Bruno Haible.
40223
40224         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
40225         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
40226         $(AM_MAKEFLAGS)' rather than plain `make'.
40227
40228         gnulib-tool: execute $MAKE not make
40229         * gnulib-tool: Default $MAKE to 'make'.
40230         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
40231         than make.  Initialize $MAKE in the do-autobuild script.
40232
40233         gnulib-tool: use $MAKE not make in generated files
40234         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
40235         make, in generated files.  Initialize $MAKE in the do-autobuild
40236         script.
40237
40238         * top/GNUmakefile (_have-git-version-gen): Fix typo.
40239
40240         GNUmakefile: disable parallelism only for multiple, recursive targets
40241         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
40242         additions in the Makefile.
40243         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
40244         by Automake.
40245         (.NOTPARALLEL): Only disable parallel builds if multiple targets
40246         are listed on the command line and at least one of them is
40247         listed in $(ALL_RECURSIVE_TARGETS).
40248
40249 2009-03-14  Bruno Haible  <bruno@clisp.org>
40250
40251         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
40252         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
40253         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
40254         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
40255         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
40256         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
40257         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
40258         unistr/u8-uctomb.
40259         * modules/unistr/u8-strchr (Depends-on): Likewise.
40260         * modules/unistr/u8-strrchr (Depends-on): Likewise.
40261         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
40262         unistr/u16-uctomb.
40263         * modules/unistr/u16-strchr (Depends-on): Likewise.
40264         * modules/unistr/u16-strrchr (Depends-on): Likewise.
40265
40266 2009-03-12  Bruno Haible  <bruno@clisp.org>
40267
40268         Work around select() bug on Interix 3.5.
40269         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
40270         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
40271         * m4/select.m4: New file.
40272         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
40273         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
40274         * modules/select (Files): Add m4/select.m4.
40275         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
40276         * modules/nanosleep (Depends-on): Add select.
40277         * modules/poll (Depends-on): Likewise.
40278         * doc/posix-functions/select.texi: Mention the Interix bug.
40279         Reported by Markus Duft <mduft@gentoo.org>.
40280
40281         * lib/select.c: Renamed from lib/winsock-select.c.
40282         * modules/select (Files): Add lib/select.c, remove
40283         lib/winsock-select.c.
40284         (configure.ac): Update.
40285
40286 2009-03-12  Jim Meyering  <meyering@redhat.com>
40287
40288         avoid gcc warnings about unused macro definitions
40289         * lib/readtokens.c (STREQ): Remove unused definition.
40290         * lib/xmalloc.c (SIZE_MAX): Likewise.
40291         * lib/openat-die.c (N_): Likewise.
40292         * lib/mountlist.c (SIZE_MAX): Remove definition.
40293         Instead, include <stdint.h>.
40294         * lib/readutmp.c: Likewise.
40295         * modules/readutmp (Depends-on): Add stdint.
40296         * modules/mountlist (Depends-on): Add stdint.
40297         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
40298
40299 2009-03-10  Bruno Haible  <bruno@clisp.org>
40300
40301         Tests for module 'mbmemcasecoll'.
40302         * modules/mbmemcasecoll-tests: New file.
40303         * tests/test-mbmemcasecoll1.sh: New file.
40304         * tests/test-mbmemcasecoll2.sh: New file.
40305         * tests/test-mbmemcasecoll3.sh: New file.
40306         * tests/test-mbmemcasecoll.c: New file.
40307
40308         New module 'mbmemcasecoll'.
40309         * lib/mbmemcasecoll.h: New file.
40310         * lib/mbmemcasecoll.c: New file.
40311         * modules/mbmemcasecoll: New file.
40312
40313         * tests/test-mbmemcasecmp.h: New file, extracted from
40314         tests/test-mbmemcasecmp.c.
40315         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
40316         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
40317         (main): Update.
40318         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
40319
40320 2009-03-09  Bruno Haible  <bruno@clisp.org>
40321
40322         Tests for module 'mbmemcasecmp'.
40323         * modules/mbmemcasecmp-tests: New file.
40324         * tests/test-mbmemcasecmp1.sh: New file.
40325         * tests/test-mbmemcasecmp2.sh: New file.
40326         * tests/test-mbmemcasecmp3.sh: New file.
40327         * tests/test-mbmemcasecmp.c: New file.
40328
40329         New module 'mbmemcasecmp'.
40330         * lib/mbmemcasecmp.h: New file.
40331         * lib/mbmemcasecmp.c: New file.
40332         * modules/mbmemcasecmp: New file.
40333
40334 2009-03-09  Bruno Haible  <bruno@clisp.org>
40335
40336         Tests for module 'unicase/ulc-casecoll'.
40337         * modules/unicase/ulc-casecoll-tests: New file.
40338         * tests/unicase/test-ulc-casecoll1.sh: New file.
40339         * tests/unicase/test-ulc-casecoll2.sh: New file.
40340         * tests/unicase/test-ulc-casecoll.c: New file.
40341
40342         New module 'unicase/ulc-casecoll'.
40343         * lib/unicase.h (ulc_casecoll): New declaration.
40344         * lib/unicase/ulc-casecoll.c: New file.
40345         * modules/unicase/ulc-casecoll: New file.
40346
40347         New module 'unicase/ulc-casexfrm'.
40348         * lib/unicase.h (ulc_casexfrm): New declaration.
40349         * lib/unicase/ulc-casexfrm.c: New file.
40350         * modules/unicase/ulc-casexfrm: New file.
40351
40352 2009-03-09  Bruno Haible  <bruno@clisp.org>
40353
40354         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
40355         invocations.
40356
40357         * m4/mbscasecmp.m4: Remove file.
40358         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
40359         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
40360
40361         * m4/mbscasestr.m4: Remove file.
40362         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
40363         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
40364
40365         * m4/mbschr.m4: Remove file.
40366         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
40367         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
40368
40369         * m4/mbscspn.m4: Remove file.
40370         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
40371         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
40372
40373         * m4/mbslen.m4: Remove file.
40374         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
40375         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
40376
40377         * m4/mbsncasecmp.m4: Remove file.
40378         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
40379         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
40380
40381         * m4/mbsnlen.m4: Remove file.
40382         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
40383         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
40384
40385         * m4/mbspbrk.m4: Remove file.
40386         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
40387         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
40388
40389         * m4/mbspcasecmp.m4: Remove file.
40390         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
40391         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
40392
40393         * m4/mbsrchr.m4: Remove file.
40394         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
40395         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
40396
40397         * m4/mbssep.m4: Remove file.
40398         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
40399         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
40400
40401         * m4/mbsspn.m4: Remove file.
40402         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
40403         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
40404
40405         * m4/mbsstr.m4: Remove file.
40406         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
40407         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
40408
40409         * m4/mbstok_r.m4: Remove file.
40410         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
40411         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
40412
40413         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
40414
40415         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
40416         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
40417
40418         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
40419
40420 2009-03-08  Bruno Haible  <bruno@clisp.org>
40421
40422         Tests for module 'unicase/ulc-casecmp'.
40423         * modules/unicase/ulc-casecmp-tests: New file.
40424         * tests/unicase/test-ulc-casecmp1.sh: New file.
40425         * tests/unicase/test-ulc-casecmp2.sh: New file.
40426         * tests/unicase/test-ulc-casecmp.c: New file.
40427
40428         New module 'unicase/ulc-casecmp'.
40429         * lib/unicase.h (ulc_casecmp): New declaration.
40430         * lib/unicase/ulc-casecmp.c: New file.
40431         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
40432         'const SRC_UNIT *'.
40433         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
40434         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
40435         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
40436         * modules/unicase/ulc-casecmp: New file.
40437
40438         Tests for module 'unicase/u32-is-cased'.
40439         * modules/unicase/u32-is-cased-tests: New file.
40440         * tests/unicase/test-u32-is-cased.c: New file.
40441
40442         Tests for module 'unicase/u16-is-cased'.
40443         * modules/unicase/u16-is-cased-tests: New file.
40444         * tests/unicase/test-u16-is-cased.c: New file.
40445
40446         Tests for module 'unicase/u8-is-cased'.
40447         * modules/unicase/u8-is-cased-tests: New file.
40448         * tests/unicase/test-u8-is-cased.c: New file.
40449         * tests/unicase/test-is-cased.h: New file.
40450
40451         New module 'unicase/u32-is-cased'.
40452         * lib/unicase/u32-is-cased.c: New file.
40453         * modules/unicase/u32-is-cased: New file.
40454
40455         New module 'unicase/u16-is-cased'.
40456         * lib/unicase/u16-is-cased.c: New file.
40457         * modules/unicase/u16-is-cased: New file.
40458
40459         New module 'unicase/u8-is-cased'.
40460         * lib/unicase/u8-is-cased.c: New file.
40461         * lib/unicase/u-is-cased.h: New file.
40462         * modules/unicase/u8-is-cased: New file.
40463
40464         Tests for module 'unicase/u32-is-casefolded'.
40465         * modules/unicase/u32-is-casefolded-tests: New file.
40466         * tests/unicase/test-u32-is-casefolded.c: New file.
40467
40468         Tests for module 'unicase/u16-is-casefolded'.
40469         * modules/unicase/u16-is-casefolded-tests: New file.
40470         * tests/unicase/test-u16-is-casefolded.c: New file.
40471
40472         Tests for module 'unicase/u8-is-casefolded'.
40473         * modules/unicase/u8-is-casefolded-tests: New file.
40474         * tests/unicase/test-u8-is-casefolded.c: New file.
40475         * tests/unicase/test-is-casefolded.h: New file.
40476
40477         New module 'unicase/u32-is-casefolded'.
40478         * lib/unicase/u32-is-casefolded.c: New file.
40479         * modules/unicase/u32-is-casefolded: New file.
40480
40481         New module 'unicase/u16-is-casefolded'.
40482         * lib/unicase/u16-is-casefolded.c: New file.
40483         * modules/unicase/u16-is-casefolded: New file.
40484
40485         New module 'unicase/u8-is-casefolded'.
40486         * lib/unicase/u8-is-casefolded.c: New file.
40487         * modules/unicase/u8-is-casefolded: New file.
40488
40489         Tests for module 'unicase/u32-is-titlecase'.
40490         * modules/unicase/u32-is-titlecase-tests: New file.
40491         * tests/unicase/test-u32-is-titlecase.c: New file.
40492
40493         Tests for module 'unicase/u16-is-titlecase'.
40494         * modules/unicase/u16-is-titlecase-tests: New file.
40495         * tests/unicase/test-u16-is-titlecase.c: New file.
40496
40497         Tests for module 'unicase/u8-is-titlecase'.
40498         * modules/unicase/u8-is-titlecase-tests: New file.
40499         * tests/unicase/test-u8-is-titlecase.c: New file.
40500         * tests/unicase/test-is-titlecase.h: New file.
40501
40502         New module 'unicase/u32-is-titlecase'.
40503         * lib/unicase/u32-is-titlecase.c: New file.
40504         * modules/unicase/u32-is-titlecase: New file.
40505
40506         New module 'unicase/u16-is-titlecase'.
40507         * lib/unicase/u16-is-titlecase.c: New file.
40508         * modules/unicase/u16-is-titlecase: New file.
40509
40510         New module 'unicase/u8-is-titlecase'.
40511         * lib/unicase/u8-is-titlecase.c: New file.
40512         * modules/unicase/u8-is-titlecase: New file.
40513
40514         Tests for module 'unicase/u32-is-lowercase'.
40515         * modules/unicase/u32-is-lowercase-tests: New file.
40516         * tests/unicase/test-u32-is-lowercase.c: New file.
40517
40518         Tests for module 'unicase/u16-is-lowercase'.
40519         * modules/unicase/u16-is-lowercase-tests: New file.
40520         * tests/unicase/test-u16-is-lowercase.c: New file.
40521
40522         Tests for module 'unicase/u8-is-lowercase'.
40523         * modules/unicase/u8-is-lowercase-tests: New file.
40524         * tests/unicase/test-u8-is-lowercase.c: New file.
40525         * tests/unicase/test-is-lowercase.h: New file.
40526
40527         New module 'unicase/u32-is-lowercase'.
40528         * lib/unicase/u32-is-lowercase.c: New file.
40529         * modules/unicase/u32-is-lowercase: New file.
40530
40531         New module 'unicase/u16-is-lowercase'.
40532         * lib/unicase/u16-is-lowercase.c: New file.
40533         * modules/unicase/u16-is-lowercase: New file.
40534
40535         New module 'unicase/u8-is-lowercase'.
40536         * lib/unicase/u8-is-lowercase.c: New file.
40537         * modules/unicase/u8-is-lowercase: New file.
40538
40539         Tests for module 'unicase/u32-is-uppercase'.
40540         * modules/unicase/u32-is-uppercase-tests: New file.
40541         * tests/unicase/test-u32-is-uppercase.c: New file.
40542
40543         Tests for module 'unicase/u16-is-uppercase'.
40544         * modules/unicase/u16-is-uppercase-tests: New file.
40545         * tests/unicase/test-u16-is-uppercase.c: New file.
40546
40547         Tests for module 'unicase/u8-is-uppercase'.
40548         * modules/unicase/u8-is-uppercase-tests: New file.
40549         * tests/unicase/test-u8-is-uppercase.c: New file.
40550         * tests/unicase/test-is-uppercase.h: New file.
40551
40552         New module 'unicase/u32-is-uppercase'.
40553         * lib/unicase/u32-is-uppercase.c: New file.
40554         * modules/unicase/u32-is-uppercase: New file.
40555
40556         New module 'unicase/u16-is-uppercase'.
40557         * lib/unicase/u16-is-uppercase.c: New file.
40558         * modules/unicase/u16-is-uppercase: New file.
40559
40560         New module 'unicase/u8-is-uppercase'.
40561         * lib/unicase/u8-is-uppercase.c: New file.
40562         * modules/unicase/u8-is-uppercase: New file.
40563
40564         New module 'unicase/u32-is-invariant'.
40565         * lib/unicase/u32-is-invariant.c: New file.
40566         * modules/unicase/u32-is-invariant: New file.
40567
40568         New module 'unicase/u16-is-invariant'.
40569         * lib/unicase/u16-is-invariant.c: New file.
40570         * modules/unicase/u16-is-invariant: New file.
40571
40572         New module 'unicase/u8-is-invariant'.
40573         * lib/unicase/u8-is-invariant.c: New file.
40574         * lib/unicase/invariant.h: New file.
40575         * lib/unicase/u-is-invariant.h: New file.
40576         * modules/unicase/u8-is-invariant: New file.
40577
40578         Tests for module 'unicase/u32-casecoll'.
40579         * modules/unicase/u32-casecoll-tests: New file.
40580         * tests/unicase/test-u32-casecoll.c: New file.
40581
40582         Tests for module 'unicase/u16-casecoll'.
40583         * modules/unicase/u16-casecoll-tests: New file.
40584         * tests/unicase/test-u16-casecoll.c: New file.
40585
40586         Tests for module 'unicase/u8-casecoll'.
40587         * modules/unicase/u8-casecoll-tests: New file.
40588         * tests/unicase/test-u8-casecoll.c: New file.
40589
40590         New module 'unicase/u32-casecoll'.
40591         * lib/unicase/u32-casecoll.c: New file.
40592         * modules/unicase/u32-casecoll: New file.
40593
40594         New module 'unicase/u16-casecoll'.
40595         * lib/unicase/u16-casecoll.c: New file.
40596         * modules/unicase/u16-casecoll: New file.
40597
40598         New module 'unicase/u8-casecoll'.
40599         * lib/unicase/u8-casecoll.c: New file.
40600         * lib/unicase/u-casecoll.h: New file.
40601         * modules/unicase/u8-casecoll: New file.
40602
40603         New module 'unicase/u32-casexfrm'.
40604         * lib/unicase/u32-casexfrm.c: New file.
40605         * modules/unicase/u32-casexfrm: New file.
40606
40607         New module 'unicase/u16-casexfrm'.
40608         * lib/unicase/u16-casexfrm.c: New file.
40609         * modules/unicase/u16-casexfrm: New file.
40610
40611         New module 'unicase/u8-casexfrm'.
40612         * lib/unicase/u8-casexfrm.c: New file.
40613         * lib/unicase/u-casexfrm.h: New file.
40614         * modules/unicase/u8-casexfrm: New file.
40615
40616         Tests for module 'unicase/u32-casecmp'.
40617         * modules/unicase/u32-casecmp-tests: New file.
40618         * tests/unicase/test-u32-casecmp.c: New file.
40619
40620         Tests for module 'unicase/u16-casecmp'.
40621         * modules/unicase/u16-casecmp-tests: New file.
40622         * tests/unicase/test-u16-casecmp.c: New file.
40623
40624         Tests for module 'unicase/u8-casecmp'.
40625         * modules/unicase/u8-casecmp-tests: New file.
40626         * tests/unicase/test-u8-casecmp.c: New file.
40627         * tests/unicase/test-casecmp.h: New file.
40628
40629         New module 'unicase/u32-casecmp'.
40630         * lib/unicase/u32-casecmp.c: New file.
40631         * modules/unicase/u32-casecmp: New file.
40632
40633         New module 'unicase/u16-casecmp'.
40634         * lib/unicase/u16-casecmp.c: New file.
40635         * modules/unicase/u16-casecmp: New file.
40636
40637         New module 'unicase/u8-casecmp'.
40638         * lib/unicase/u8-casecmp.c: New file.
40639         * lib/unicase/u-casecmp.h: New file.
40640         * modules/unicase/u8-casecmp: New file.
40641
40642         Tests for module 'unicase/u32-casefold'.
40643         * modules/unicase/u32-casefold-tests: New file.
40644         * tests/unicase/test-u32-casefold.c: New file.
40645
40646         Tests for module 'unicase/u16-casefold'.
40647         * modules/unicase/u16-casefold-tests: New file.
40648         * tests/unicase/test-u16-casefold.c: New file.
40649
40650         Tests for module 'unicase/u8-casefold'.
40651         * modules/unicase/u8-casefold-tests: New file.
40652         * tests/unicase/test-u8-casefold.c: New file.
40653
40654         New module 'unicase/u32-casefold'.
40655         * lib/unicase/u32-casefold.c: New file.
40656         * modules/unicase/u32-casefold: New file.
40657
40658         New module 'unicase/u16-casefold'.
40659         * lib/unicase/u16-casefold.c: New file.
40660         * modules/unicase/u16-casefold: New file.
40661
40662         New module 'unicase/u8-casefold'.
40663         * lib/unicase/u8-casefold.c: New file.
40664         * lib/unicase/u-casefold.h: New file.
40665         * modules/unicase/u8-casefold: New file.
40666
40667         New module 'unicase/tocasefold'.
40668         * lib/unicase/casefold.h: New file.
40669         * lib/unicase/tocasefold.c: New file.
40670         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
40671         * modules/unicase/tocasefold: New file.
40672
40673         Tests for module 'unicase/u32-totitle'.
40674         * modules/unicase/u32-totitle-tests: New file.
40675         * tests/unicase/test-u32-totitle.c: New file.
40676
40677         Tests for module 'unicase/u16-totitle'.
40678         * modules/unicase/u16-totitle-tests: New file.
40679         * tests/unicase/test-u16-totitle.c: New file.
40680
40681         Tests for module 'unicase/u8-totitle'.
40682         * modules/unicase/u8-totitle-tests: New file.
40683         * tests/unicase/test-u8-totitle.c: New file.
40684
40685         New module 'unicase/u32-totitle'.
40686         * lib/unicase/u32-totitle.c: New file.
40687         * modules/unicase/u32-totitle: New file.
40688
40689         New module 'unicase/u16-totitle'.
40690         * lib/unicase/u16-totitle.c: New file.
40691         * modules/unicase/u16-totitle: New file.
40692
40693         New module 'unicase/u8-totitle'.
40694         * lib/unicase/u8-totitle.c: New file.
40695         * lib/unicase/u-totitle.h: New file.
40696         * modules/unicase/u8-totitle: New file.
40697
40698         Tests for module 'unicase/u32-tolower'.
40699         * modules/unicase/u32-tolower-tests: New file.
40700         * tests/unicase/test-u32-tolower.c: New file.
40701
40702         Tests for module 'unicase/u16-tolower'.
40703         * modules/unicase/u16-tolower-tests: New file.
40704         * tests/unicase/test-u16-tolower.c: New file.
40705
40706         Tests for module 'unicase/u8-tolower'.
40707         * modules/unicase/u8-tolower-tests: New file.
40708         * tests/unicase/test-u8-tolower.c: New file.
40709
40710         New module 'unicase/u32-tolower'.
40711         * lib/unicase/u32-tolower.c: New file.
40712         * modules/unicase/u32-tolower: New file.
40713
40714         New module 'unicase/u16-tolower'.
40715         * lib/unicase/u16-tolower.c: New file.
40716         * modules/unicase/u16-tolower: New file.
40717
40718         New module 'unicase/u8-tolower'.
40719         * lib/unicase/u8-tolower.c: New file.
40720         * modules/unicase/u8-tolower: New file.
40721
40722         Tests for module 'unicase/u32-toupper'.
40723         * modules/unicase/u32-toupper-tests: New file.
40724         * tests/unicase/test-u32-toupper.c: New file.
40725
40726         Tests for module 'unicase/u16-toupper'.
40727         * modules/unicase/u16-toupper-tests: New file.
40728         * tests/unicase/test-u16-toupper.c: New file.
40729
40730         Tests for module 'unicase/u8-toupper'.
40731         * modules/unicase/u8-toupper-tests: New file.
40732         * tests/unicase/test-u8-toupper.c: New file.
40733
40734         New module 'unicase/u32-toupper'.
40735         * lib/unicase/u32-toupper.c: New file.
40736         * modules/unicase/u32-toupper: New file.
40737
40738         New module 'unicase/u16-toupper'.
40739         * lib/unicase/u16-toupper.c: New file.
40740         * modules/unicase/u16-toupper: New file.
40741
40742         New module 'unicase/u8-toupper'.
40743         * lib/unicase/u8-toupper.c: New file.
40744         * modules/unicase/u8-toupper: New file.
40745
40746         New module 'unicase/u32-casemap'.
40747         * lib/unicase/u32-casemap.c: New file.
40748         * modules/unicase/u32-casemap: New file.
40749
40750         New module 'unicase/u16-casemap'.
40751         * lib/unicase/u16-casemap.c: New file.
40752         * modules/unicase/u16-casemap: New file.
40753
40754         New module 'unicase/u8-casemap'.
40755         * lib/unicase/unicasemap.h: New file.
40756         * lib/unicase/u8-casemap.c: New file.
40757         * lib/unicase/u-casemap.h: New file.
40758         * modules/unicase/u8-casemap: New file.
40759
40760         New module 'unicase/special-casing'.
40761         * lib/unicase/special-casing.h: New file.
40762         * lib/unicase/special-casing.c: New file.
40763         * lib/unicase/special-casing-table.gperf: New file, generated by
40764         gen-uni-tables.c.
40765         * modules/unicase/special-casing: New file.
40766
40767         Tests for module 'unicase/locale-language'.
40768         * modules/unicase/locale-language-tests: New file.
40769         * tests/unicase/test-locale-language.sh: New file.
40770         * tests/unicase/test-locale-language.c: New file.
40771
40772         New module 'unicase/locale-language'.
40773         * lib/unicase/locale-language.c: New file.
40774         * lib/unicase/locale-languages.gperf: New file.
40775         * modules/unicase/locale-language: New file.
40776
40777         Generate more tables for case conversion and case folding.
40778         * lib/gen-uni-tables.c (SCC_*): New enum items.
40779         (struct special_casing_rule): New type.
40780         (casing_rules, num_casing_rules, allocated_casing_rules): New
40781         variables.
40782         (add_casing_rule, fill_casing_rules): New functions.
40783         (struct casefold_rule): New type.
40784         (casefolding_rules, num_casefolding_rules,
40785         allocated_casefolding_rules): New variables.
40786         (fill_casefolding_rules): New function.
40787         (unicode_casefold): New variable.
40788         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
40789         sort_casing_rules, output_casing_rules): New functions.
40790         (main): Accept to more arguments: SpecialCasing.txt and
40791         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
40792         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
40793         Output mapping for casefolding.
40794
40795         * lib/unicase.h: Include stdbool.h, uninorm.h.
40796         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
40797         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
40798         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
40799         arguments.
40800         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
40801         resultp arguments.
40802         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
40803         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
40804         resultp arguments.
40805         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
40806         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
40807         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
40808         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
40809         declarations.
40810         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
40811
40812 2009-03-08  Bruno Haible  <bruno@clisp.org>
40813
40814         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40815         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
40816         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
40817         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40818
40819 2009-03-07  Bruno Haible  <bruno@clisp.org>
40820
40821         Adjust u*_normcmp, u*_normcoll API.
40822         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40823         u16_normcoll, u32_normcoll): Change failure conventions.
40824         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
40825         errno and return -1.
40826         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40827
40828 2009-03-07  Bruno Haible  <bruno@clisp.org>
40829
40830         Tests for module 'uninorm/u32-normcoll'.
40831         * modules/uninorm/u32-normcoll-tests: New file.
40832         * tests/uninorm/test-u32-normcoll.c: New file.
40833
40834         Tests for module 'uninorm/u16-normcoll'.
40835         * modules/uninorm/u16-normcoll-tests: New file.
40836         * tests/uninorm/test-u16-normcoll.c: New file.
40837
40838         Tests for module 'uninorm/u8-normcoll'.
40839         * modules/uninorm/u8-normcoll-tests: New file.
40840         * tests/uninorm/test-u8-normcoll.c: New file.
40841
40842 2009-03-07  Bruno Haible  <bruno@clisp.org>
40843
40844         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
40845         tests/uninorm/test-u32-normcmp.c.
40846         * tests/uninorm/test-u32-normcmp.c: Include it.
40847         (test_nonascii): New function, extracted from main. Add some more
40848         tests.
40849         (main): Invoke test_ascii and test_nonascii.
40850         * modules/uninorm/u32-normcmp-tests (Files): Add
40851         tests/uninorm/test-u32-normcmp.h.
40852         (Depends-on): Remove uninorm/u32-normcmp.
40853
40854         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
40855         tests/uninorm/test-u16-normcmp.c.
40856         * tests/uninorm/test-u16-normcmp.c: Include it.
40857         (test_nonascii): New function, extracted from main. Add some more
40858         tests.
40859         (main): Invoke test_ascii and test_nonascii.
40860         * modules/uninorm/u16-normcmp-tests (Files): Add
40861         tests/uninorm/test-u16-normcmp.h.
40862         (Depends-on): Remove uninorm/u16-normcmp.
40863
40864         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
40865         tests/uninorm/test-u8-normcmp.c.
40866         * tests/uninorm/test-u8-normcmp.c: Include it.
40867         (test_nonascii): New function, extracted from main. Add some more
40868         tests.
40869         (main): Invoke test_ascii and test_nonascii.
40870         * modules/uninorm/u8-normcmp-tests (Files): Add
40871         tests/uninorm/test-u8-normcmp.h.
40872         (Depends-on): Remove uninorm/u8-normcmp.
40873
40874 2009-03-07  Bruno Haible  <bruno@clisp.org>
40875
40876         New module 'uninorm/u32-normcoll'.
40877         * lib/uninorm/u32-normcoll.c: New file.
40878         * modules/uninorm/u32-normcoll: New file.
40879
40880         New module 'uninorm/u16-normcoll'.
40881         * lib/uninorm/u16-normcoll.c: New file.
40882         * modules/uninorm/u16-normcoll: New file.
40883
40884         New module 'uninorm/u8-normcoll'.
40885         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
40886         declarations.
40887         * lib/uninorm/u8-normcoll.c: New file.
40888         * lib/uninorm/u-normcoll.h: New file.
40889         * modules/uninorm/u8-normcoll: New file.
40890
40891         New module 'uninorm/u32-normxfrm'.
40892         * lib/uninorm/u32-normxfrm.c: New file.
40893         * modules/uninorm/u32-normxfrm: New file.
40894
40895         New module 'uninorm/u16-normxfrm'.
40896         * lib/uninorm/u16-normxfrm.c: New file.
40897         * modules/uninorm/u16-normxfrm: New file.
40898
40899         New module 'uninorm/u8-normxfrm'.
40900         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
40901         declarations.
40902         * lib/uninorm/u8-normxfrm.c: New file.
40903         * lib/uninorm/u-normxfrm.h: New file.
40904         * modules/uninorm/u8-normxfrm: New file.
40905
40906 2009-03-07  Bruno Haible  <bruno@clisp.org>
40907
40908         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
40909         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
40910         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
40911
40912 2009-03-07  Bruno Haible  <bruno@clisp.org>
40913
40914         New module 'memxfrm'.
40915         * lib/memxfrm.h: New file.
40916         * lib/memxfrm.c: New file.
40917         * modules/memxfrm: New file.
40918
40919 2009-03-07  Bruno Haible  <bruno@clisp.org>
40920
40921         New module 'memcmp2'.
40922         * lib/memcmp2.h: New file.
40923         * lib/memcmp2.c: New file.
40924         * modules/memcmp2: New file.
40925
40926 2009-03-07  Bruno Haible  <bruno@clisp.org>
40927
40928         Tests for module 'uninorm/decomposing-form'.
40929         * modules/uninorm/decomposing-form-tests: New file.
40930         * tests/uninorm/test-decomposing-form.c: New file.
40931
40932         New module 'uninorm/decomposing-form'.
40933         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
40934         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
40935         Add 'decomposing_variant' field.
40936         * lib/uninorm/decomposing-form.c: New file.
40937         * lib/uninorm/nfc.c (uninorm_nfc): Update.
40938         * lib/uninorm/nfd.c (uninorm_nfd): Update.
40939         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
40940         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
40941         * modules/uninorm/decomposing-form: New file.
40942         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
40943         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
40944
40945 2009-03-07  Bruno Haible  <bruno@clisp.org>
40946
40947         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
40948         strings.
40949
40950 2009-03-06  Bruno Haible  <bruno@clisp.org>
40951
40952         Tests for module 'uninorm/u32-normcmp'.
40953         * tests/uninorm/test-u32-normcmp.c: New file.
40954         * modules/uninorm/u32-normcmp-tests: New file.
40955
40956         Tests for module 'uninorm/u16-normcmp'.
40957         * tests/uninorm/test-u16-normcmp.c: New file.
40958         * modules/uninorm/u16-normcmp-tests: New file.
40959
40960         Tests for module 'uninorm/u8-normcmp'.
40961         * tests/uninorm/test-u8-normcmp.c: New file.
40962         * modules/uninorm/u8-normcmp-tests: New file.
40963
40964         New module 'uninorm/u32-normcmp'.
40965         * lib/uninorm/u32-normcmp.c: New file.
40966         * modules/uninorm/u32-normcmp: New file.
40967
40968         New module 'uninorm/u16-normcmp'.
40969         * lib/uninorm/u16-normcmp.c: New file.
40970         * modules/uninorm/u16-normcmp: New file.
40971
40972         New module 'uninorm/u8-normcmp'.
40973         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
40974         declarations.
40975         * lib/uninorm/u8-normcmp.c: New file.
40976         * lib/uninorm/u-normcmp.h: New file.
40977         * modules/uninorm/u8-normcmp: New file.
40978
40979 2009-03-06  Bruno Haible  <bruno@clisp.org>
40980
40981         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
40982         Reported by Eric Blake.
40983
40984 2009-03-06  Eric Blake  <ebb9@byu.net>
40985             Bruno Haible  <bruno@clisp.org>
40986
40987         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
40988         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
40989         condition.
40990         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40991         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
40992         condition.
40993         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40994
40995 2009-03-06  Eric Blake  <ebb9@byu.net>
40996
40997         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
40998         to avoid compiler warnings.
40999         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
41000
41001 2009-03-05  Bruno Haible  <bruno@clisp.org>
41002
41003         * tests/test-ftell.c (main): Disable test beyond end of file on
41004         FreeMiNT.
41005         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
41006
41007 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
41008
41009         * lib/filevercmp.c: Move hidden files up in ordering.
41010         * tests/test-filevercmp.c: Add tests for hidden files.
41011
41012 2009-03-04  Bruno Haible  <bruno@clisp.org>
41013
41014         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
41015         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
41016         AM_CFLAGS.
41017         Reported by Simon Josefsson.
41018
41019 2009-03-03  Bruno Haible  <bruno@clisp.org>
41020
41021         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
41022         Reported by Simon Josefsson.
41023
41024         * doc/ld-version-script.texi: Update node reference.
41025
41026 2009-03-03  Bruno Haible  <bruno@clisp.org>
41027
41028         * modules/visibility (License): Change to 'unlimited'.
41029         Suggested by Simon Josefsson.
41030
41031 2009-03-03  Jim Meyering  <meyering@redhat.com>
41032
41033         unlinkdir: cannot_unlink_dir may modify process state
41034         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
41035         it's neither thread-safe nor appropriate for use in a library.
41036
41037 2009-03-03  Eric Blake  <ebb9@byu.net>
41038
41039         test-closein: silence test under Darwin
41040         * tests/test-closein.sh: Ignore stderr from cat, since we don't
41041         care if it dies from EPIPE or EBADF.
41042
41043 2009-03-03  Bruno Haible  <bruno@clisp.org>
41044
41045         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
41046         earlier.
41047         * doc/visibility.texi: Fix @node and @section.
41048
41049 2009-03-03  Simon Josefsson  <simon@josefsson.org>
41050
41051         * doc/gnulib.texi: Link to sections for ld version script and
41052         visibility.
41053         * doc/visibility.texi: Add @node and @section.
41054         * modules/ld-version-script: New module.
41055         * m4/ld-version-script.m4: New file.
41056         * doc/ld-version-script.texi: New file.
41057
41058 2009-03-02  David Lutterkort  <lutter@redhat.com>
41059
41060         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
41061         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41062
41063 2009-03-02  Bruno Haible  <bruno@clisp.org>
41064
41065         * doc/visibility.texi: Mention libtool's -export-symbols option.
41066
41067 2009-03-02  Jim Meyering  <meyering@redhat.com>
41068
41069         announce-gen: new option: --no-print-checksums
41070         * build-aux/announce-gen (usage): Describe it.
41071         (print_checksums): Print a newline here, not in the [*] footnote.
41072         (main): Honor it.
41073
41074 2009-03-01  Bruno Haible  <bruno@clisp.org>
41075
41076         Use socklen_t in the native Windows replacements prototypes.
41077         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
41078         instead of 'int'.
41079         * lib/getsockopt.c (rpl_getsockopt): Likewise.
41080         * lib/setsockopt.c (rpl_setsockopt): Likewise.
41081         * modules/getsockopt (Depends-on): Add socklen.
41082         * modules/setsockopt (Depends-on): Add socklen.
41083
41084 2009-03-01  Bruno Haible  <bruno@clisp.org>
41085
41086         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
41087         least 4.2.
41088
41089 2009-03-01  Eric Blake  <ebb9@byu.net>
41090             Bruno Haible  <bruno@clisp.org>
41091
41092         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
41093         error messages.
41094         * lib/wait-process.c (wait_subprocess): Omit error message about
41095         deadly signal sent to the child of termsigp != NULL.
41096
41097 2009-03-01  Eric Blake  <ebb9@byu.net>
41098
41099         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
41100
41101 2009-03-01  Bruno Haible  <bruno@clisp.org>
41102
41103         Avoid a gcc warning.
41104         * tests/test-sched.c (b): Make global.
41105         Reported by Eric Blake.
41106
41107 2009-01-19  Martin Lambers  <marlam@marlam.de>
41108
41109         Provide POSIX semantics for socket timeout options on W32.
41110         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
41111         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
41112         * modules/setsockopt: Depend on sys_time module for struct timeval.
41113         * modules/getsockopt: Depend on sys_time module for struct timeval.
41114
41115 2009-03-01  Simon Josefsson  <simon@josefsson.org>
41116
41117         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
41118         __USE_GNU, for consistency with netdb.in.h.
41119         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41120
41121 2009-03-01  Bruno Haible  <bruno@clisp.org>
41122
41123         More support for FreeMiNT.
41124         * lib/fseeko.c (rpl_fseeko): Complete last commit.
41125         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41126
41127 2009-03-01  Bruno Haible  <bruno@clisp.org>
41128
41129         More support for FreeMiNT.
41130         * lib/fpurge.c (fpurge): Correct last commit.
41131         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41132
41133 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41134
41135         Fix unportable awk script in vc-list-files.
41136         * build-aux/vc-list-files: In the replacement awk script, use
41137         substr with a second argument of 1, not zero.
41138         Report by Simon Josefsson.
41139
41140 2009-02-28  Bruno Haible  <bruno@clisp.org>
41141
41142         More support for FreeMiNT.
41143         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
41144         to FreeMiNT today.
41145         * lib/fwriting.c (fwriting): Likewise.
41146         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
41147
41148 2009-02-28  Bruno Haible  <bruno@clisp.org>
41149
41150         * tests/test-freadseek.c (main): Disable test beyond end of file on
41151         FreeMiNT.
41152         * tests/test-ftello.c (main): Likewise.
41153         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
41154
41155 2009-02-28  Bruno Haible  <bruno@clisp.org>
41156
41157         Add tentative support for FreeMiNT.
41158         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
41159         * lib/fpurge.c (fpurge): Likewise.
41160         * lib/freadable.c (freadable): Likewise.
41161         * lib/freading.c (freading): Likewise.
41162         * lib/freadptr.c (freadptr): Likewise.
41163         * lib/freadseek.c (freadptrinc): Likewise.
41164         * lib/fseeko.c (rpl_fseeko): Likewise.
41165         * lib/fseterr.c (fseterr): Likewise.
41166         * lib/fwritable.c (fwritable): Likewise.
41167         * lib/fwriting.c (fwriting): Likewise.
41168         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
41169         Hourihane.
41170         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41171
41172 2009-02-28  Bruno Haible  <bruno@clisp.org>
41173
41174         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
41175         SIGCHLD.
41176         Reported by Jim Meyering.
41177
41178 2009-02-28  Bruno Haible  <bruno@clisp.org>
41179
41180         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
41181         Mention the results of these tests on various platforms.
41182         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
41183         order.
41184         * doc/posix-functions/printf.texi: Likewise.
41185         * doc/posix-functions/snprintf.texi: Likewise.
41186         * doc/posix-functions/sprintf.texi: Likewise.
41187         * doc/posix-functions/vfprintf.texi: Likewise.
41188         * doc/posix-functions/vprintf.texi: Likewise.
41189         * doc/posix-functions/vsnprintf.texi: Likewise.
41190         * doc/posix-functions/vsprintf.texi: Likewise.
41191         * doc/glibc-functions/obstack_printf.texi: Likewise.
41192         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
41193
41194 2009-02-28  Bruno Haible  <bruno@clisp.org>
41195
41196         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
41197         Reported by Loïc Minier <lool@dooz.org>.
41198
41199 2009-02-27  Bruno Haible  <bruno@clisp.org>
41200
41201         * gnulib-tool (func_import): Make the sed expression used to create the
41202         sed script for updating the .gitignore file POSIX compliant.
41203         Reported by Eric Blake.
41204
41205 2009-02-27  Bruno Haible  <bruno@clisp.org>
41206
41207         * gnulib-tool (sed): Don't alias as "sed --posix".
41208         Reported by Eric Blake.
41209
41210 2009-02-27  Bruno Haible  <bruno@clisp.org>
41211
41212         Avoid test link errors.
41213         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
41214         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
41215         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
41216         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
41217         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41218
41219 2009-02-27  Bruno Haible  <bruno@clisp.org>
41220
41221         Avoid spurious "(cached)" in configure output.
41222         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
41223         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
41224         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
41225         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
41226         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
41227         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
41228         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
41229         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
41230         Reported by Eric Blake.
41231
41232 2009-02-27  Eric Blake  <ebb9@byu.net>
41233
41234         printf: fix regression in previous patch
41235         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
41236
41237 2009-02-27  Bruno Haible  <bruno@clisp.org>
41238
41239         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
41240         value.
41241         * lib/stdint.in.h: Likewise.
41242         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
41243
41244 2009-02-27  Eric Blake  <ebb9@byu.net>
41245
41246         doc: mention more functions added in cygwin 1.7.0
41247         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
41248         addition.
41249         * doc/posix-functions/open_wmemstream.texi: Likewise.
41250         * doc/posix-functions/wcsnlen.texi: Likewise.
41251         * doc/posix-functions/wcsnrtombs.texi: Likewise.
41252         * doc/posix-functions/wcstod.texi: Likewise.
41253         * doc/posix-functions/wcstof.texi: Likewise.
41254         * doc/posix-functions/wcstoimax.texi: Likewise.
41255         * doc/posix-functions/wcstok.texi: Likewise.
41256         * doc/posix-functions/wcstoumax.texi: Likewise.
41257
41258         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
41259         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
41260         * doc/posix-functions/fprintf.texi: Update.
41261         * doc/posix-functions/printf.texi: Update.
41262         * doc/posix-functions/snprintf.texi: Update.
41263         * doc/posix-functions/sprintf.texi: Update.
41264         * doc/posix-functions/vfprintf.texi: Update.
41265         * doc/posix-functions/vprintf.texi: Update.
41266         * doc/posix-functions/vsnprintf.texi: Update.
41267         * doc/posix-functions/vsprintf.texi: Update.
41268         * doc/glibc-functions/obstack_printf.texi: Update.
41269         * doc/glibc-functions/obstack_vprintf.texi: Update.
41270
41271 2009-02-26  Eric Blake  <ebb9@byu.net>
41272
41273         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
41274         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
41275         compilation bug by using runtime conversion.
41276         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
41277         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
41278         * modules/ceill-tests (Files): Use nan.h.
41279         * modules/floorl-tests (Files): Likewise.
41280         * modules/frexpl-tests (Files): Likewise.
41281         * modules/isnanl-tests (Files): Likewise.
41282         * modules/ldexpl-tests (Files): Likewise.
41283         * modules/roundl-tests (Files): Likewise.
41284         * modules/truncl-tests (Files): Likewise.
41285         * tests/test-ceill.c (main): Use a working NaN.
41286         * tests/test-floorl.c (main): Likewise.
41287         * tests/test-frexpl.c (main): Likewise.
41288         * tests/test-isnan.c (test_long_double): Likewise.
41289         * tests/test-isnanl.h (main): Likewise.
41290         * tests/test-ldexpl.h (main): Likewise.
41291         * tests/test-roundl.h (main): Likewise.
41292         * tests/test-truncl.h (main): Likewise.
41293         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
41294
41295 2009-02-26  Eric Blake  <ebb9@byu.net>
41296             Bruno Haible  <bruno@clisp.org>
41297
41298         Work around a *printf bug with %ls on Solaris.
41299         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
41300         precision is specified, sprintf stops converting the wide string
41301         argument when the number of bytes that have been produced by this
41302         conversion equals or exceeds the precision.
41303         * doc/posix-functions/fprintf.texi: Update.
41304         * doc/posix-functions/printf.texi: Update.
41305         * doc/posix-functions/snprintf.texi: Update.
41306         * doc/posix-functions/sprintf.texi: Update.
41307         * doc/posix-functions/vfprintf.texi: Update.
41308         * doc/posix-functions/vprintf.texi: Update.
41309         * doc/posix-functions/vsnprintf.texi: Update.
41310         * doc/posix-functions/vsprintf.texi: Update.
41311         * doc/glibc-functions/obstack_printf.texi: Update.
41312         * doc/glibc-functions/obstack_vprintf.texi: Update.
41313
41314 2009-02-26  Eric Blake  <ebb9@byu.net>
41315
41316         stdlib: favor compiler check of random.h
41317         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
41318         to avoid an ObjC random.h installed by Swarm.
41319
41320 2009-02-26  Bruno Haible  <bruno@clisp.org>
41321
41322         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
41323         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
41324         Reported by Gary V. Vaughan <gary@gnu.org>.
41325
41326 2009-02-26  Bruno Haible  <bruno@clisp.org>
41327
41328         Fix *printf behaviour regarding the %ls directive.
41329         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
41330         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
41331         NEED_PRINTF_DIRECTIVE_LS.
41332         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
41333         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
41334         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41335         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
41336         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
41337         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
41338         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
41339         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41340         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41341         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41342         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41343         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
41344         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41345         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41346         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41347         * doc/posix-functions/fprintf.texi: Update.
41348         * doc/posix-functions/printf.texi: Update.
41349         * doc/posix-functions/snprintf.texi: Update.
41350         * doc/posix-functions/sprintf.texi: Update.
41351         * doc/posix-functions/vfprintf.texi: Update.
41352         * doc/posix-functions/vprintf.texi: Update.
41353         * doc/posix-functions/vsnprintf.texi: Update.
41354         * doc/posix-functions/vsprintf.texi: Update.
41355         * doc/glibc-functions/obstack_printf.texi: Update.
41356         * doc/glibc-functions/obstack_vprintf.texi: Update.
41357         Reported by Eric Blake.
41358
41359 2009-02-25  Bruno Haible  <bruno@clisp.org>
41360
41361         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
41362         with known value.
41363         Reported by Gary V. Vaughan <gary@gnu.org>.
41364
41365 2009-02-25  Bruno Haible  <bruno@clisp.org>
41366
41367         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
41368         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
41369         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
41370         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
41371         Reported by Gary V. Vaughan <gary@gnu.org>.
41372
41373 2009-02-25  Bruno Haible  <bruno@clisp.org>
41374
41375         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
41376         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
41377         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
41378         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
41379         Reported by Gary V. Vaughan <gary@gnu.org>.
41380
41381 2009-02-25  Eric Blake  <ebb9@byu.net>
41382
41383         tests: skip fseek/ftell tests if ungetc is broken
41384         * m4/ungetc.m4: New file.
41385         * modules/fseek-tests: Split test, so ungetc dependency is
41386         separate from rest of test.
41387         * modules/fseeko-tests: Likewise.
41388         * modules/ftell-tests: Likewise.
41389         * modules/ftello-tests: Likewise.
41390         * tests/test-fseek.c (main): Isolate ungetc dependency.
41391         * tests/test-fseeko.c (main): Likewise.
41392         * tests/test-ftell.c (main): Likewise.
41393         * tests/test-ftello.c (main): Likewise.
41394         * tests/test-fseek2.sh: New file.
41395         * tests/test-fseeko2.sh: Likewise.
41396         * tests/test-ftell2.sh: Likewise.
41397         * tests/test-ftello2.sh: Likewise.
41398
41399 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
41400
41401         test-getaddrinfo: fix usage of skip return code 77
41402         * tests/test-gettaddrinfo.c: Return skip code 77 only
41403         for first occurance of skip (4x77 is not 77)
41404
41405 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
41406
41407         strtod: avoid C99 decl-after-statement
41408         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
41409
41410 2009-02-24  Eric Blake  <ebb9@byu.net>
41411
41412         strtod: detect HP-UX 11.31 bug
41413         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
41414         Reported by Gary V. Vaughan.
41415
41416 2009-02-23  Bruno Haible  <bruno@clisp.org>
41417
41418         Fix invalid read past end of memory block.
41419         * lib/vasnprintf.c (DCHAR_SET): Define.
41420         (local_wcslen): Define only when needed.
41421         (local_strnlen, local_wcsnlen): New functions.
41422         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
41423         directives that involve a conversion ourselves.
41424         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
41425         wcsnlen, mbrtowc, wcrtomb.
41426         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
41427         * tests/test-vasprintf-posix.c (test_function): Likewise.
41428         * tests/test-snprintf-posix.h (test_function): Likewise.
41429         * tests/test-sprintf-posix.h (test_function): Likewise.
41430         Reported by Ben Pfaff <blp@cs.stanford.edu>.
41431
41432 2009-02-22  Bruno Haible  <bruno@clisp.org>
41433
41434         Implement new clarified decomposition of Hangul syllables.
41435         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
41436         of type LTV, return only a pairwise decomposition.
41437         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
41438         Likewise.
41439         * tests/uninorm/test-decomposition.c (main): Updated expected result.
41440         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
41441         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
41442
41443 2009-02-22  Bruno Haible  <bruno@clisp.org>
41444
41445         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
41446         zero-length results and shrink excess allocated memory.
41447         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
41448         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
41449         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
41450         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
41451         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
41452         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
41453         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
41454         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
41455         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
41456         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
41457         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
41458         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
41459
41460 2009-02-21  Bruno Haible  <bruno@clisp.org>
41461
41462         * doc/gnulib.texi: Include safe-alloc.texi earlier.
41463         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
41464         spaces after a period. Put a space between a macro name and its
41465         argument list. Trivial rewordings.
41466         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
41467         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
41468         (main): Return 0 explicitly.
41469
41470 2009-02-21  Bruno Haible  <bruno@clisp.org>
41471
41472         Tests for module 'uninorm/filter'.
41473         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
41474         * modules/uninorm/filter-tests: New file.
41475
41476         New module 'uninorm/filter'.
41477         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
41478         uninorm_filter_flush, uninorm_filter_free): New declarations.
41479         * lib/uninorm/uninorm-filter.c: New file.
41480         * modules/uninorm/filter: New file.
41481
41482 2009-02-21  Bruno Haible  <bruno@clisp.org>
41483
41484         Tests for module 'uninorm/nfkc'.
41485         * tests/uninorm/test-nfkc.c: New file.
41486         * tests/uninorm/test-u8-nfkc.c: New file.
41487         * tests/uninorm/test-u16-nfkc.c: New file.
41488         * tests/uninorm/test-u32-nfkc.c: New file.
41489         * tests/uninorm/test-u32-nfkc-big.sh: New file.
41490         * tests/uninorm/test-u32-nfkc-big.c: New file.
41491         * modules/uninorm/nfkc-tests: New file.
41492
41493         New module 'uninorm/nfkc'.
41494         * lib/uninorm/nfkc.c: New file.
41495         * modules/uninorm/nfkc: New file.
41496
41497         Tests for module 'uninorm/nfkd'.
41498         * tests/uninorm/test-nfkd.c: New file.
41499         * tests/uninorm/test-u8-nfkd.c: New file.
41500         * tests/uninorm/test-u16-nfkd.c: New file.
41501         * tests/uninorm/test-u32-nfkd.c: New file.
41502         * tests/uninorm/test-u32-nfkd-big.sh: New file.
41503         * tests/uninorm/test-u32-nfkd-big.c: New file.
41504         * modules/uninorm/nfkd-tests: New file.
41505
41506         New module 'uninorm/nfkd'.
41507         * lib/uninorm/nfkd.c: New file.
41508         * modules/uninorm/nfkd: New file.
41509
41510         Tests for module 'uninorm/nfc'.
41511         * tests/uninorm/test-nfc.c: New file.
41512         * tests/uninorm/test-u8-nfc.c: New file.
41513         * tests/uninorm/test-u16-nfc.c: New file.
41514         * tests/uninorm/test-u32-nfc.c: New file.
41515         * tests/uninorm/test-u32-nfc-big.sh: New file.
41516         * tests/uninorm/test-u32-nfc-big.c: New file.
41517         * modules/uninorm/nfc-tests: New file.
41518
41519         New module 'uninorm/nfc'.
41520         * lib/uninorm/nfc.c: New file.
41521         * modules/uninorm/nfc: New file.
41522
41523         Tests for module 'uninorm/nfd'.
41524         * tests/uninorm/test-nfd.c: New file.
41525         * tests/uninorm/test-u8-nfd.c: New file.
41526         * tests/uninorm/test-u16-nfd.c: New file.
41527         * tests/uninorm/test-u32-nfd.c: New file.
41528         * tests/uninorm/test-u32-nfd-big.sh: New file.
41529         * tests/uninorm/test-u32-nfd-big.c: New file.
41530         * tests/uninorm/test-u32-normalize-big.h: New file.
41531         * tests/uninorm/test-u32-normalize-big.c: New file.
41532         * tests/uninorm/NormalizationTest.txt: New file, created from
41533         Unicode 5.1.0 NormalizationTest.txt.
41534         * modules/uninorm/nfd-tests: New file.
41535
41536         New module 'uninorm/nfd'.
41537         * lib/uninorm/nfd.c: New file.
41538         * modules/uninorm/nfd: New file.
41539
41540         New module 'uninorm/u32-normalize'.
41541         * lib/uninorm/u32-normalize.c: New file.
41542         * modules/uninorm/u32-normalize: New file.
41543
41544         New module 'uninorm/u16-normalize'.
41545         * lib/uninorm/u16-normalize.c: New file.
41546         * modules/uninorm/u16-normalize: New file.
41547
41548         New module 'uninorm/u8-normalize'.
41549         * lib/uninorm/u8-normalize.c: New file.
41550         * lib/uninorm/normalize-internal.h: New file.
41551         * lib/uninorm/u-normalize-internal.h: New file.
41552         * modules/uninorm/u8-normalize: New file.
41553
41554         New module 'uninorm/decompose-internal'.
41555         * lib/uninorm/decompose-internal.c: New file.
41556         * modules/uninorm/decompose-internal: New file.
41557
41558         Tests for module 'uninorm/composition'.
41559         * tests/uninorm/test-composition.c: New file.
41560         * modules/uninorm/composition-tests: New file.
41561
41562         New module 'uninorm/composition'.
41563         * lib/uninorm/composition.c: New file.
41564         * lib/uninorm/composition-table.gperf: New file, generated by
41565         gen-uni-tables.
41566         * modules/uninorm/composition: New file.
41567
41568         Tests for module 'uninorm/compat-decomposition'.
41569         * tests/uninorm/test-compat-decomposition.c: New file.
41570         * modules/uninorm/compat-decomposition-tests: New file.
41571
41572         New module 'uninorm/compat-decomposition'.
41573         * lib/uninorm/decompose-internal.h: New file.
41574         * lib/uninorm/compat-decomposition.c: New file.
41575         * modules/uninorm/compat-decomposition: New file.
41576
41577         Tests for module 'uninorm/canonical-decomposition'.
41578         * tests/uninorm/test-canonical-decomposition.c: New file.
41579         * modules/uninorm/canonical-decomposition-tests: New file.
41580
41581         New module 'uninorm/canonical-decomposition'.
41582         * lib/uninorm/canonical-decomposition.c: New file.
41583         * modules/uninorm/canonical-decomposition: New file.
41584
41585         Tests for module 'uninorm/decomposition'.
41586         * tests/uninorm/test-decomposition.c: New file.
41587         * modules/uninorm/decomposition-tests: New file.
41588
41589         New module 'uninorm/decomposition'.
41590         * lib/uninorm/decomposition.c: New file.
41591         * modules/uninorm/decomposition: New file.
41592
41593         New module 'uninorm/decomposition-table'.
41594         * lib/uninorm/decomposition-table.h: New file.
41595         * lib/uninorm/decomposition-table.c: New file.
41596         * lib/uninorm/decomposition-table1.h: New file, generated by
41597         gen-uni-tables.
41598         * lib/uninorm/decomposition-table2.h: New file, generated by
41599         gen-uni-tables.
41600         * modules/uninorm/decomposition-table: New file.
41601
41602         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
41603         (UC_DECOMP_*): New enumeration items.
41604         (get_decomposition): New function.
41605         (struct decomp_table): New type.
41606         (output_decomposition, output_decomposition_tables): New functions.
41607         (unicode_composition_exclusions): New variable.
41608         (fill_composition_exclusions, debug_output_composition_tables): New
41609         functions.
41610         (main): Accept one more argument. Invoke fill_composition_exclusions.
41611         Output decomposition and composition tables.
41612
41613         New module 'uninorm/base'.
41614         * lib/uninorm.h: New file.
41615         * lib/unictype.h: Update comment.
41616         * modules/uninorm/base: New file.
41617
41618 2009-02-21  David Lutterkort  <lutter@redhat.com>
41619
41620         Tests for module 'safe-alloc'.
41621         * tests/test-safe-alloc.c: New file.
41622         * modules/safe-alloc-tests: New file.
41623
41624         New module 'safe-alloc'.
41625         * lib/safe-alloc.h: New file.
41626         * lib/safe-alloc.c: New file.
41627         * m4/safe-alloc.m4: New file.
41628         * modules/safe-alloc: New file.
41629         * doc/safe-alloc.texi: New file.
41630         * doc/gnulib.texi: Include it.
41631         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
41632         safe-alloc.
41633
41634 2009-02-18  Bruno Haible  <bruno@clisp.org>
41635
41636         Fix link error on non-glibc systems.
41637         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
41638         variable.
41639         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41640
41641 2009-02-18  Jim Meyering  <meyering@redhat.com>
41642
41643         fts: avoid used-uninitialized error due to recent change
41644         * lib/fts.c (fts_read): Guard uses of the new member,
41645         parent->fts_n_dirs_remaining, since it's not relevant for
41646         the parent of a directory specified on the command-line.
41647
41648 2009-02-17  James Youngman  <jay@gnu.org>
41649             Bruno Haible  <bruno@clisp.org>
41650
41651         * m4/include_next.m4: Reformulate comment.
41652
41653 2009-02-16  Jim Meyering  <meyering@redhat.com>
41654
41655         fts: add #if guards so that the fts_lgpl module still builds
41656         * lib/fts.c: Guard just-added hash-table-using parts with
41657         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
41658         Reported by Simon Josefsson.
41659
41660 2009-02-15  Bruno Haible  <bruno@clisp.org>
41661
41662         * modules/array-mergesort-tests: New file.
41663         * tests/test-array-mergesort.c: New file.
41664
41665         New module 'array-mergesort'.
41666         * modules/array-mergesort: New file.
41667         * lib/array-mergesort.h: New file.
41668
41669 2009-02-15  Bruno Haible  <bruno@clisp.org>
41670
41671         Fix 2009-02-07 commit.
41672         * lib/gen-uni-tables.c (output_predicate, output_category,
41673         output_combclass, output_bidi_category, output_decimal_digit,
41674         output_digit, output_numeric, output_mirror, output_scripts,
41675         output_ident_category, output_simple_mapping): Fix format directives.
41676         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
41677
41678 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
41679
41680         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
41681         fixes are available from IBM.
41682
41683 2009-02-13  Jim Meyering  <meyering@redhat.com>
41684
41685         fts: arrange not to stat non-directories in more cases
41686         This makes GNU find (when it doesn't need to stat each file)
41687         *much* more efficient at traversing reiserfs file systems.
41688         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
41689         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
41690         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
41691         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
41692         (leaf_optimization_applies): New function.
41693         (LCO_hash, LCO_compare): New helper functions.
41694         (link_count_optimize_ok): New function.
41695         (fts_stat): Initialize new member (if dir).
41696         (fts_read): Decrement parent's fts_n_dirs_remaining count if
41697         we've just stat'ed a directory.  Skip the stat call when possible.
41698         ---
41699         Note this AFS-related exchange:
41700         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
41701         and note find's pioctl call in find/fstype.c.
41702         But that is necessary only if you want to enable the
41703         optimization for AFS, and for now, I don't.
41704
41705         fts: move a function definition "up" (no semantic change)
41706         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
41707         "up" to precede upcoming use of a related function.
41708
41709 2009-02-11  Jim Meyering  <meyering@redhat.com>
41710
41711         fts: correct internal computation of nlinks (optimization-related)
41712         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
41713         whether the current entry is a directory, so don't test it.
41714
41715 2009-02-10  Bruno Haible  <bruno@clisp.org>
41716
41717         Tests for module 'uniwbrk/ulc-wordbreaks'.
41718         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
41719         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
41720         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
41721
41722         Tests for module 'uniwbrk/u32-wordbreaks'.
41723         * modules/uniwbrk/u32-wordbreaks-tests: New file.
41724         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
41725
41726         Tests for module 'uniwbrk/u16-wordbreaks'.
41727         * modules/uniwbrk/u16-wordbreaks-tests: New file.
41728         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
41729
41730         Tests for module 'uniwbrk/u8-wordbreaks'.
41731         * modules/uniwbrk/u8-wordbreaks-tests: New file.
41732         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
41733
41734 2009-02-10  Bruno Haible  <bruno@clisp.org>
41735
41736         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
41737         property.
41738         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
41739         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
41740         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
41741
41742 2009-02-10  Simon Josefsson  <simon@josefsson.org>
41743
41744         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
41745         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
41746
41747 2009-02-10  Bruno Haible  <bruno@clisp.org>
41748
41749         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
41750         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
41751         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
41752         * lib/unilbrk/u8-possible-linebreaks.c: Update.
41753         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
41754         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
41755
41756 2009-02-09  Simon Josefsson  <simon@josefsson.org>
41757
41758         * lib/sockets.h (gl_fd_to_handle): New function.
41759
41760         * tests/test-sockets.c: Call gl_fd_to_handle.
41761
41762 2009-02-09  Bruno Haible  <bruno@clisp.org>
41763
41764         * doc/havelib.texi: Document the conventions on bi-arch systems.
41765
41766 2009-02-08  Bruno Haible  <bruno@clisp.org>
41767
41768         Document the AC_LIB_LINKFLAGS macro.
41769         * doc/havelib.texi: New file, mostly written on 2005-05-24.
41770         * doc/gnulib.texi: Include it.
41771
41772 2009-02-08  Bruno Haible  <bruno@clisp.org>
41773
41774         Fix wrong order of sections, compared to TOC.
41775         * doc/gnulib.texi: Include relocatable-maint.texi after the
41776         "Regular expressions" node, not before.
41777
41778 2009-02-08  Bruno Haible  <bruno@clisp.org>
41779
41780         Tests for module 'unicase/totitle'.
41781         * modules/unicase/totitle-tests: New file.
41782
41783         Tests for module 'unicase/tolower'.
41784         * modules/unicase/tolower-tests: New file.
41785
41786         Tests for module 'unicase/toupper'.
41787         * modules/unicase/toupper-tests: New file.
41788         * tests/unicase/test-mapping-part1.h: New file.
41789         * tests/unicase/test-mapping-part2.h: New file.
41790
41791         New module 'unicase/totitle'.
41792         * modules/unicase/totitle: New file.
41793         * lib/unicase/totitle.c: New file.
41794
41795         New module 'unicase/tolower'.
41796         * modules/unicase/tolower: New file.
41797         * lib/unicase/tolower.c: New file.
41798
41799         New module 'unicase/toupper'.
41800         * modules/unicase/toupper: New file.
41801         * lib/unicase/toupper.c: New file.
41802         * lib/unicase/simple-mapping.h: New file.
41803
41804         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
41805         (mapping_table): New structure.
41806         (output_simple_mapping): New function.
41807         (main): Invoke output_simple_mapping_test and output_simple_mapping.
41808         * modules/gen-uni-tables (Description): Update.
41809         * lib/unicase/toupper.h: New file, automatically generated by
41810         gen-uni-tables.
41811         * lib/unicase/tolower.h: New file, automatically generated by
41812         gen-uni-tables.
41813         * lib/unicase/totitle.h: New file, automatically generated by
41814         gen-uni-tables.
41815         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
41816         gen-uni-tables.
41817         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
41818         gen-uni-tables.
41819         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
41820         gen-uni-tables.
41821
41822         New module 'unicase/base'.
41823         * modules/unicase/base: New file.
41824         * lib/unicase.h: New file.
41825
41826 2009-02-08  Bruno Haible  <bruno@clisp.org>
41827
41828         New module 'uniwbrk/ulc-wordbreaks'.
41829         * modules/uniwbrk/ulc-wordbreaks: New file.
41830         * lib/uniwbrk/ulc-wordbreaks.c: New file.
41831
41832         New module 'uniwbrk/u32-wordbreaks'.
41833         * modules/uniwbrk/u32-wordbreaks: New file.
41834         * lib/uniwbrk/u32-wordbreaks.c: New file.
41835
41836         New module 'uniwbrk/u16-wordbreaks'.
41837         * modules/uniwbrk/u16-wordbreaks: New file.
41838         * lib/uniwbrk/u16-wordbreaks.c: New file.
41839
41840         New module 'uniwbrk/u8-wordbreaks'.
41841         * modules/uniwbrk/u8-wordbreaks: New file.
41842         * lib/uniwbrk/u8-wordbreaks.c: New file.
41843         * lib/uniwbrk/u-wordbreaks.h: New file.
41844
41845         New module 'uniwbrk/table'.
41846         * modules/uniwbrk/table: New file.
41847         * lib/uniwbrk/wbrktable.h: New file.
41848         * lib/uniwbrk/wbrktable.c: New file.
41849
41850         New module 'uniwbrk/wordbreak-property'.
41851         * modules/uniwbrk/wordbreak-property: New file.
41852         * lib/uniwbrk/wordbreak-property.c: New file.
41853
41854         * lib/gen-uni-tables.c (WBP_*): New enum items.
41855         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
41856         (unicode_org_wbp): New variable.
41857         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
41858         New functions.
41859         (wbp_table): New structure.
41860         (output_wbp, output_wbrk_tables): New functions.
41861         (main): Accept additional argument. Invoke fill_org_wbp,
41862         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
41863         output_wbrk_tables.
41864         * modules/gen-uni-tables (Description): Update.
41865         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
41866         gen-uni-tables.
41867
41868         New module 'uniwbrk/base'.
41869         * modules/uniwbrk/base: New file.
41870         * lib/uniwbrk.h: New file.
41871
41872 2009-02-08  Bruno Haible  <bruno@clisp.org>
41873
41874         Update to Unicode 5.1.0.
41875         * lib/gen-uni-tables.c (is_property_alphabetic): Include
41876         U+2185..U+2188.
41877         (is_property_default_ignorable_code_point): Don't include characters
41878         of category Cc or Cs and not-a-characters.
41879         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
41880         U+0D79, U+109E, U+109F, U+A60C.
41881         * lib/unictype/bidi_of.h: Regenerated.
41882         * lib/unictype/blocks.h: Regenerated.
41883         * lib/unictype/categ_C.h: Regenerated.
41884         * lib/unictype/categ_Cf.h: Regenerated.
41885         * lib/unictype/categ_Cn.h: Regenerated.
41886         * lib/unictype/categ_L.h: Regenerated.
41887         * lib/unictype/categ_Ll.h: Regenerated.
41888         * lib/unictype/categ_Lm.h: Regenerated.
41889         * lib/unictype/categ_Lo.h: Regenerated.
41890         * lib/unictype/categ_Lu.h: Regenerated.
41891         * lib/unictype/categ_M.h: Regenerated.
41892         * lib/unictype/categ_Mc.h: Regenerated.
41893         * lib/unictype/categ_Me.h: Regenerated.
41894         * lib/unictype/categ_Mn.h: Regenerated.
41895         * lib/unictype/categ_N.h: Regenerated.
41896         * lib/unictype/categ_Nd.h: Regenerated.
41897         * lib/unictype/categ_Nl.h: Regenerated.
41898         * lib/unictype/categ_No.h: Regenerated.
41899         * lib/unictype/categ_P.h: Regenerated.
41900         * lib/unictype/categ_Pd.h: Regenerated.
41901         * lib/unictype/categ_Pe.h: Regenerated.
41902         * lib/unictype/categ_Pf.h: Regenerated.
41903         * lib/unictype/categ_Pi.h: Regenerated.
41904         * lib/unictype/categ_Po.h: Regenerated.
41905         * lib/unictype/categ_Ps.h: Regenerated.
41906         * lib/unictype/categ_S.h: Regenerated.
41907         * lib/unictype/categ_Sk.h: Regenerated.
41908         * lib/unictype/categ_Sm.h: Regenerated.
41909         * lib/unictype/categ_So.h: Regenerated.
41910         * lib/unictype/categ_of.h: Regenerated.
41911         * lib/unictype/combining.h: Regenerated.
41912         * lib/unictype/ctype_alnum.h: Regenerated.
41913         * lib/unictype/ctype_alpha.h: Regenerated.
41914         * lib/unictype/ctype_graph.h: Regenerated.
41915         * lib/unictype/ctype_lower.h: Regenerated.
41916         * lib/unictype/ctype_print.h: Regenerated.
41917         * lib/unictype/ctype_punct.h: Regenerated.
41918         * lib/unictype/ctype_upper.h: Regenerated.
41919         * lib/unictype/decdigit.h: Regenerated.
41920         * lib/unictype/digit.h: Regenerated.
41921         * lib/unictype/mirror.h: Regenerated.
41922         * lib/unictype/numeric.h: Regenerated.
41923         * lib/unictype/pr_alphabetic.h: Regenerated.
41924         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
41925         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
41926         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
41927         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
41928         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
41929         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
41930         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
41931         * lib/unictype/pr_combining.h: Regenerated.
41932         * lib/unictype/pr_dash.h: Regenerated.
41933         * lib/unictype/pr_decimal_digit.h: Regenerated.
41934         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
41935         * lib/unictype/pr_deprecated.h: Regenerated.
41936         * lib/unictype/pr_diacritic.h: Regenerated.
41937         * lib/unictype/pr_extender.h: Regenerated.
41938         * lib/unictype/pr_format_control.h: Regenerated.
41939         * lib/unictype/pr_grapheme_base.h: Regenerated.
41940         * lib/unictype/pr_grapheme_extend.h: Regenerated.
41941         * lib/unictype/pr_grapheme_link.h: Regenerated.
41942         * lib/unictype/pr_id_continue.h: Regenerated.
41943         * lib/unictype/pr_id_start.h: Regenerated.
41944         * lib/unictype/pr_ideographic.h: Regenerated.
41945         * lib/unictype/pr_ignorable_control.h: Regenerated.
41946         * lib/unictype/pr_lowercase.h: Regenerated.
41947         * lib/unictype/pr_math.h: Regenerated.
41948         * lib/unictype/pr_numeric.h: Regenerated.
41949         * lib/unictype/pr_other_alphabetic.h: Regenerated.
41950         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
41951         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
41952         * lib/unictype/pr_other_id_continue.h: Regenerated.
41953         * lib/unictype/pr_other_lowercase.h: Regenerated.
41954         * lib/unictype/pr_other_math.h: Regenerated.
41955         * lib/unictype/pr_punctuation.h: Regenerated.
41956         * lib/unictype/pr_sentence_terminal.h: Regenerated.
41957         * lib/unictype/pr_soft_dotted.h: Regenerated.
41958         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
41959         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
41960         * lib/unictype/pr_unified_ideograph.h: Regenerated.
41961         * lib/unictype/pr_uppercase.h: Regenerated.
41962         * lib/unictype/pr_xid_continue.h: Regenerated.
41963         * lib/unictype/pr_xid_start.h: Regenerated.
41964         * lib/unictype/pr_zero_width.h: Regenerated.
41965         * lib/unictype/scripts.h: Regenerated.
41966         * lib/unictype/scripts_byname.gperf: Regenerated.
41967         * lib/unictype/sy_java_ident.h: Regenerated.
41968         * lib/unilbrk/lbrkprop1.h: Regenerated.
41969         * lib/unilbrk/lbrkprop2.h: Regenerated.
41970         * tests/unictype/test-categ_C.c: Regenerated.
41971         * tests/unictype/test-categ_Cf.c: Regenerated.
41972         * tests/unictype/test-categ_Cn.c: Regenerated.
41973         * tests/unictype/test-categ_L.c: Regenerated.
41974         * tests/unictype/test-categ_Ll.c: Regenerated.
41975         * tests/unictype/test-categ_Lm.c: Regenerated.
41976         * tests/unictype/test-categ_Lo.c: Regenerated.
41977         * tests/unictype/test-categ_Lu.c: Regenerated.
41978         * tests/unictype/test-categ_M.c: Regenerated.
41979         * tests/unictype/test-categ_Mc.c: Regenerated.
41980         * tests/unictype/test-categ_Me.c: Regenerated.
41981         * tests/unictype/test-categ_Mn.c: Regenerated.
41982         * tests/unictype/test-categ_N.c: Regenerated.
41983         * tests/unictype/test-categ_Nd.c: Regenerated.
41984         * tests/unictype/test-categ_Nl.c: Regenerated.
41985         * tests/unictype/test-categ_No.c: Regenerated.
41986         * tests/unictype/test-categ_P.c: Regenerated.
41987         * tests/unictype/test-categ_Pd.c: Regenerated.
41988         * tests/unictype/test-categ_Pe.c: Regenerated.
41989         * tests/unictype/test-categ_Pf.c: Regenerated.
41990         * tests/unictype/test-categ_Pi.c: Regenerated.
41991         * tests/unictype/test-categ_Po.c: Regenerated.
41992         * tests/unictype/test-categ_Ps.c: Regenerated.
41993         * tests/unictype/test-categ_S.c: Regenerated.
41994         * tests/unictype/test-categ_Sk.c: Regenerated.
41995         * tests/unictype/test-categ_Sm.c: Regenerated.
41996         * tests/unictype/test-categ_So.c: Regenerated.
41997         * tests/unictype/test-ctype_alnum.c: Regenerated.
41998         * tests/unictype/test-ctype_alpha.c: Regenerated.
41999         * tests/unictype/test-ctype_graph.c: Regenerated.
42000         * tests/unictype/test-ctype_lower.c: Regenerated.
42001         * tests/unictype/test-ctype_print.c: Regenerated.
42002         * tests/unictype/test-ctype_punct.c: Regenerated.
42003         * tests/unictype/test-ctype_upper.c: Regenerated.
42004         * tests/unictype/test-decdigit.h: Regenerated.
42005         * tests/unictype/test-digit.h: Regenerated.
42006         * tests/unictype/test-numeric.h: Regenerated.
42007         * tests/unictype/test-pr_alphabetic.c: Regenerated.
42008         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
42009         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
42010         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
42011         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
42012         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
42013         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
42014         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
42015         * tests/unictype/test-pr_combining.c: Regenerated.
42016         * tests/unictype/test-pr_dash.c: Regenerated.
42017         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
42018         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
42019         * tests/unictype/test-pr_deprecated.c: Regenerated.
42020         * tests/unictype/test-pr_diacritic.c: Regenerated.
42021         * tests/unictype/test-pr_extender.c: Regenerated.
42022         * tests/unictype/test-pr_format_control.c: Regenerated.
42023         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
42024         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
42025         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
42026         * tests/unictype/test-pr_id_continue.c: Regenerated.
42027         * tests/unictype/test-pr_id_start.c: Regenerated.
42028         * tests/unictype/test-pr_ideographic.c: Regenerated.
42029         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
42030         * tests/unictype/test-pr_lowercase.c: Regenerated.
42031         * tests/unictype/test-pr_math.c: Regenerated.
42032         * tests/unictype/test-pr_numeric.c: Regenerated.
42033         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
42034         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
42035         Regenerated.
42036         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
42037         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
42038         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
42039         * tests/unictype/test-pr_other_math.c: Regenerated.
42040         * tests/unictype/test-pr_punctuation.c: Regenerated.
42041         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
42042         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
42043         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
42044         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
42045         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
42046         * tests/unictype/test-pr_uppercase.c: Regenerated.
42047         * tests/unictype/test-pr_xid_continue.c: Regenerated.
42048         * tests/unictype/test-pr_xid_start.c: Regenerated.
42049         * tests/unictype/test-pr_zero_width.c: Regenerated.
42050
42051         Update to Unicode 5.1.0.
42052         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
42053         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
42054         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
42055         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
42056         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
42057         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
42058         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
42059         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
42060         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
42061         (nonspacing_table_ind): Update.
42062         * tests/uniwidth/test-uc_width2.sh: Update expected result.
42063
42064         Update to Unicode 5.1.0.
42065         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
42066         code transform.
42067         * lib/uniname/uniname.c (unicode_character_name,
42068         unicode_name_character): Add the range 0x1Fxxx to the code transform.
42069         * lib/uniname/uninames.h: Regenerated.
42070         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
42071
42072 2009-02-07  Bruno Haible  <bruno@clisp.org>
42073
42074         Merge gen-ctype and gen-lbrk into a single program.
42075         * lib/gen-uni-tables.c: New file, incorporating
42076         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
42077         Add directory prefixes to the names of the generated files.
42078         * lib/unictype/gen-ctype.c: Remove file.
42079         * lib/unilbrk/gen-lbrk.c: Remove file.
42080         * modules/gen-uni-tables: New file.
42081         * modules/unictype/gen-ctype: Remove file.
42082         * modules/unilbrk/gen-lbrk: Remove file.
42083
42084 2009-02-07  Bruno Haible  <bruno@clisp.org>
42085
42086         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
42087
42088         New module 'unistr/u32-strcoll'.
42089         * modules/unistr/u32-strcoll: New file.
42090         * lib/unistr/u32-strcoll.c: New file.
42091
42092         New module 'unistr/u16-strcoll'.
42093         * modules/unistr/u16-strcoll: New file.
42094         * lib/unistr/u16-strcoll.c: New file.
42095
42096         New module 'unistr/u8-strcoll'.
42097         * modules/unistr/u8-strcoll: New file.
42098         * lib/unistr/u8-strcoll.c: New file.
42099         * lib/unistr/u-strcoll.h: New file.
42100
42101 2009-02-07  Bruno Haible  <bruno@clisp.org>
42102
42103         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
42104         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
42105         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
42106         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
42107         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
42108         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
42109
42110 2009-02-07  Bruno Haible  <bruno@clisp.org>
42111
42112         Make 64-bit clean.
42113         * lib/unictype/gen-ctype.c (output_predicate, output_category,
42114         output_combclass, output_bidi_category, output_decimal_digit,
42115         output_digit, output_numeric, output_mirror, output_scripts,
42116         output_ident_category): Use proper width specifier in format strings.
42117
42118 2009-02-07  Bruno Haible  <bruno@clisp.org>
42119
42120         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
42121         failure behaviour.
42122
42123 2009-02-07  Jim Meyering  <meyering@redhat.com>
42124
42125         regex: avoid compilation failure with upcoming gcc-4.4
42126         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
42127         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
42128         "... error: integer overflow in preprocessor expression".
42129
42130 2009-02-05  Ben Pfaff  <blp@gnu.org>
42131
42132         Fix link errors on Windows when close module is used.
42133         * modules/close: Add $(LIB_CLOSE) to Link section.
42134         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
42135         $(LIB_CLOSE) on Windows.
42136
42137 2009-02-05  Jim Meyering  <meyering@redhat.com>
42138
42139         still avoid unused-parameter warnings, but do it cleanly
42140         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
42141         (get_fs_usage): Cast to void instead.
42142         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
42143         (dev_from_mount_options, read_file_system_list): Cast to void.
42144         Prompted by Bruno Haible.
42145
42146 2009-02-04  Jim Meyering  <meyering@redhat.com>
42147
42148         fsusage.c: correct copyright year
42149         * lib/fsusage.c: Reflect year in which the change is pushed into
42150
42151         avoid misc. warnings
42152         * lib/fsusage.c (UNUSED_PARAM): Define.
42153         (get_fs_usage): Mark parameter "disk" as unused.
42154         * lib/getugroups.c (getgrent): Use "void" in prototype.
42155         * lib/mountlist.c: Mark unused parameters.
42156         (read_file_system_list): Declare a local with "const".
42157         * lib/nanosleep.c (getnow): Declare static.
42158         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
42159
42160         dirfd: set errno upon failure
42161         * lib/dirfd.c: Include <errno.h>.
42162         Set errno to ENOTSUP when returning -1.
42163         * modules/dirfd (Depends-on): Add errno.
42164         Suggested by John Kodis <kodis@comcast.net>.
42165
42166 2009-02-01  Bruno Haible  <bruno@clisp.org>
42167
42168         Don't assume sizeof (long) >= sizeof (void *).
42169         * lib/memcmp.c: Include stdint.h.
42170         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
42171         srcp2 to 'const byte *'.
42172         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
42173         types to uintptr_t.
42174         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
42175         * modules/memcmp (Depends-on): Add stdint.
42176         Reported by Ozkan Sezer <sezeroz@gmail.com>.
42177
42178 2009-01-30  Eric Blake  <ebb9@byu.net>
42179
42180         fix more require-before-expand issues
42181         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
42182         expand, AC_PROG_AWK.
42183         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
42184
42185 2009-01-28  Eric Blake  <ebb9@byu.net>
42186
42187         version-etc: use consistent URL formatting
42188         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
42189         Improve formatting.  Use fputs for string without %.
42190
42191 2009-01-28  Jim Meyering  <meyering@redhat.com>
42192
42193         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
42194         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
42195         "underquoted definition of NAME" from autoconf-2.59.
42196
42197 2009-01-28  Bruno Haible  <bruno@clisp.org>
42198
42199         * doc/gnulib.texi: Add "Obsolete modules" to index.
42200
42201 2009-01-28  Jim Meyering  <meyering@redhat.com>
42202
42203         useless-if-before-free: recognize more variants
42204         * build-aux/useless-if-before-free: Also recognize e.g.,
42205         if (NULL != p) free (p);
42206
42207 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
42208
42209         test-getaddrinfo: skip (don't fail) this test when there's no network
42210         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
42211         on the presumption that it means you lack network access.
42212
42213 2009-01-26  Jim Meyering  <meyering@redhat.com>
42214
42215         fflush: avoid warnings on modern systems
42216         * lib/fflush.c (rpl_fflush): Move declarations of locals,
42217         pos and result, into scopes where they're used.
42218
42219 2009-01-26  Eric Blake  <ebb9@byu.net>
42220
42221         Silence warning reintroduced by recent extensions patch.
42222         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
42223         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
42224         autoconf.
42225
42226         Backport improved autoconf semantics of AC_DEFUN_ONCE.
42227         * m4/00gnulib.m4: New file.
42228         * gnulib-tool (func_get_filelist): Always use it.
42229         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
42230         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
42231
42232 2009-01-25  Bruno Haible  <bruno@clisp.org>
42233
42234         Make test-quotearg work on MacOS X and AIX.
42235         * tests/test-quotearg.sh: New file.
42236         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
42237         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
42238         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
42239         include <libintl.h>.
42240         (fake_locale): Remove variable.
42241         (gettext, dgettext, dcgettext): Remove functions.
42242         (main): Instead of setting a fake locale, set a real locale. Call
42243         textdomain and bindtextdomain.
42244         * modules/quotearg-tests (Files): Add the new files.
42245         (Depends-on): Add gettext, setenv, unsetenv.
42246         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
42247         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
42248         Augment TESTS_ENVIRONMENT.
42249
42250 2009-01-25  Bruno Haible  <bruno@clisp.org>
42251
42252         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
42253         fr_FR.ISO8859-1 locale on MacOS X.
42254         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
42255         ja_JP.eucJP locale on MacOS X.
42256         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
42257         zh_CN.GB18030 locale on MacOS X.
42258
42259 2009-01-25  Bruno Haible  <bruno@clisp.org>
42260
42261         Avoid link errors on MacOS X 10.3.
42262         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
42263         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
42264
42265 2009-01-25  Bruno Haible  <bruno@clisp.org>
42266
42267         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
42268         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
42269         * modules/pipe (Files): Remove m4/posix_spawn.m4.
42270         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
42271         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
42272         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
42273         posix_spawnattr_init, posix_spawnattr_setsigmask,
42274         posix_spawnattr_setflags, posix_spawnattr_destroy.
42275
42276         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
42277         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
42278         * modules/execute (Files): Remove m4/posix_spawn.m4.
42279         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
42280         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
42281         posix_spawnattr_init, posix_spawnattr_setsigmask,
42282         posix_spawnattr_setflags, posix_spawnattr_destroy.
42283
42284 2009-01-25  Bruno Haible  <bruno@clisp.org>
42285
42286         * lib/glthread/threadlib.c: Include <stdlib.h>.
42287
42288 2009-01-25  Bruno Haible  <bruno@clisp.org>
42289
42290         * lib/glthread/threadlib.c (dummy): New declaration.
42291
42292 2009-01-25  Bruno Haible  <bruno@clisp.org>
42293
42294         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
42295         multibyte characters also for the GB18030 encoding. Don't crash when
42296         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
42297
42298 2009-01-25  Bruno Haible  <bruno@clisp.org>
42299
42300         Avoid redefining 'struct random_data' on OSF/1 5.1.
42301         * lib/stdlib.in.h: Include <random.h> if it exists.
42302         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
42303         HAVE_RANDOM_H. Include <random.h> when testing whether
42304         'struct random_data' exists.
42305         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
42306
42307 2009-01-25  Bruno Haible  <bruno@clisp.org>
42308
42309         Don't install charset.alias on MacOS X >= 10.3.
42310         * lib/localcharset.c (DARWIN7): New macro.
42311         (get_charset_aliases): Hardcode the result for Darwin7.
42312         * modules/localcharset (install-exec-local): Don't install
42313         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
42314
42315 2009-01-25  Bruno Haible  <bruno@clisp.org>
42316
42317         Don't install charset.alias on mingw and Cygwin.
42318         * modules/localcharset (install-exec-local): Don't install
42319         charset.alias on mingw and Cygwin, if the file does not yet exist.
42320         The result for these platforms is hardcoded in localcharset.c.
42321
42322 2009-01-25  Bruno Haible  <bruno@clisp.org>
42323
42324         Make it possible again to use AC_GNU_SOURCE together with gnulib.
42325         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
42326         before requiring AC_USE_SYSTEM_EXTENSIONS.
42327
42328 2009-01-25  Jim Meyering  <meyering@redhat.com>
42329
42330         c-strtod: avoid warnings
42331         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
42332         "assignment discards qualifiers from pointer target type" warnings.
42333
42334 2009-01-24  Bruno Haible  <bruno@clisp.org>
42335
42336         Add support for non-UTF-8 locales on MacOS X.
42337         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
42338         canonical encodings. For Darwin 7 and newer, don't map traditional
42339         encodings to UTF-8.
42340         Reported by Vincent Lefevre <vincent@vinc17.org>
42341         at <http://savannah.gnu.org/bugs/?25235>.
42342
42343 2009-01-24  Bruno Haible  <bruno@clisp.org>
42344
42345         * doc/gnulib.texi (Obsolete modules): New section.
42346         Reported by Mike Frysinger <vapier@gentoo.org>.
42347
42348 2009-01-24  Bruno Haible  <bruno@clisp.org>
42349
42350         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
42351         (%.dvi): New rule.
42352
42353 2009-01-24  Bruno Haible  <bruno@clisp.org>
42354
42355         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
42356         Reported by Eric Blake.
42357
42358 2009-01-24  Bruno Haible  <bruno@clisp.org>
42359
42360         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
42361         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
42362         Reported by Gary V. Vaughan <gary@gnu.org>.
42363
42364 2009-01-24  Bruno Haible  <bruno@clisp.org>
42365
42366         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
42367
42368 2009-01-23  Bruno Haible  <bruno@clisp.org>
42369
42370         Make c-strtod, c-strtold usable in libraries.
42371         * lib/c-strtod.c: Include string.h instead of xalloc.h.
42372         (C_STRTOD): Call strdup instead of xstrdup.
42373         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
42374         * modules/c-strtold (Depends-on): Likewise.
42375         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
42376         * NEWS: Mention the change.
42377         Reported by Michael Gold <mgold@ncf.ca>.
42378
42379 2009-01-23  Jim Meyering  <meyering@redhat.com>
42380
42381         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
42382         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
42383         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
42384
42385 2009-01-23  Simon Josefsson  <simon@josefsson.org>
42386
42387         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
42388         GNU CoreUtils.
42389         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
42390         * modules/version-etc (Description): Update.
42391
42392 2009-01-22  Bruno Haible  <bruno@clisp.org>
42393
42394         Cache the C locale object.
42395         * lib/c-strtod.c (c_locale_cache): New variable.
42396         (c_locale): New function.
42397         (C_STRTOD): Use it, and don't call freelocale.
42398         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
42399         Suggested by Paolo Bonzini.
42400
42401 2009-01-21  Bruno Haible  <bruno@clisp.org>
42402
42403         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
42404         conditions other than overflow.
42405
42406 2009-01-21  Bruno Haible  <bruno@clisp.org>
42407
42408         * lib/c-strtod.c: Include errno.h.
42409         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
42410         value from STRTOD_L and STRTOD.
42411
42412 2009-01-21  Bruno Haible  <bruno@clisp.org>
42413         and Jim Meyering  <meyering@redhat.com>
42414
42415         nanosleep: skip configure test (fail it) for apple universal builds
42416         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
42417         universal builds, assume that nanosleep does not work.
42418         * modules/nanosleep (Depends-on): Add multiarch.
42419
42420         mktime: skip configure test (fail it) for apple universal builds
42421         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
42422         universal builds, assume that mktime does not work.
42423         * modules/mktime (Depends-on): Add multiarch.
42424
42425 2009-01-21  Eric Blake  <ebb9@byu.net>
42426
42427         multiarch: avoid expand-before-require warning
42428         * modules/multiarch (configure.ac): Require, rather than expand,
42429         gl_MULTIARCH.
42430         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
42431         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
42432         enforce that all clients require it.  Partial reversion of
42433         2008-12-29 patch.
42434
42435         error: avoid expand-before-require warning
42436         * modules/errno (configure.ac): Require, rather than expand,
42437         gl_HEADER_ERRNO_H.
42438         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
42439         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
42440         enforce that all clients require it.
42441
42442         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
42443         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
42444         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
42445         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
42446
42447 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
42448
42449         Revert:
42450         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
42451
42452         regex: do not depend on obsolete modules.
42453         * modules/regex: Remove memcmp and memmove.
42454
42455 2009-01-20  Bruno Haible  <bruno@clisp.org>
42456
42457         Make the 'link' module link on Windows NT 4.
42458         * lib/link.c (_WIN32_WINNT): Don't define.
42459         (CreateHardLinkFuncType): New type.
42460         (CreateHardLinkFunc, initialized): New variables.
42461         (initialize): New function.
42462         (link): Invoke CreateHardLink indirectly through the function pointer.
42463
42464 2009-01-20  Bruno Haible  <bruno@clisp.org>
42465
42466         Fix compilation failure on mingw.
42467         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
42468
42469 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
42470
42471         * doc/c-strtod.texi: Mention a couple of restrictions.
42472
42473 2009-01-20  Jim Meyering  <meyering@redhat.com>
42474
42475         gettimeofday: move more declarations out of functions
42476         * lib/gettimeofday.c: Move extern declarations of tzset and
42477         gmtime out of containing functions.  Prompted by Bruno Haible.
42478
42479 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
42480
42481         regex: do not depend on obsolete modules.
42482         * modules/regex: Remove memcmp and memmove.
42483
42484 2009-01-19  Bruno Haible  <bruno@clisp.org>
42485
42486         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
42487         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
42488         gl_BIGENDIAN, not AC_C_BIGENDIAN.
42489         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
42490         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
42491
42492 2009-01-19  Bruno Haible  <bruno@clisp.org>
42493
42494         * tests/test-link.c: Include <errno.h>.
42495         (main): Exit with code 77 when a hard link cannot be created due to
42496         the file system.
42497         * tests/test-link.sh: Skip test when a hard link cannot be created due
42498         to the file system.
42499         Suggested by Eric Blake.
42500
42501 2009-01-19  Martin Lambers  <marlam@marlam.de>
42502
42503         * modules/link-tests: New file.
42504         * tests/test-link.sh: New file.
42505         * tests/test-link.c: New file.
42506
42507 2009-01-19  Eric Blake  <ebb9@byu.net>
42508
42509         doc: mention another function added in cygwin 1.7.0
42510         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
42511         Another new function in cygwin 1.7.
42512
42513 2009-01-19  Bruno Haible  <bruno@clisp.org>
42514
42515         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
42516         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
42517         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
42518         gl_BIGENDIAN, not AC_C_BIGENDIAN.
42519         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
42520         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
42521         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
42522         * m4/md4.m4 (gl_MD4): Likewise.
42523         * m4/md5.m4 (gl_MD5): Likewise.
42524         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
42525         * m4/sha1.m4 (gl_SHA1): Likewise.
42526         * m4/sha256.m4 (gl_SHA256): Likewise.
42527         * m4/sha512.m4 (gl_SHA512): Likewise.
42528
42529 2009-01-19  Bruno Haible  <bruno@clisp.org>
42530
42531         * modules/uniname/uniname-tests (Depends-on): Add progname.
42532         * tests/uniname/test-uninames.c: Include progname.h.
42533         (main): Call set_program_name.
42534
42535         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
42536         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
42537         (main): Call set_program_name.
42538
42539         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
42540         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
42541         (main): Call set_program_name.
42542
42543         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
42544         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
42545         (main): Call set_program_name.
42546
42547         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
42548         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
42549         (main): Call set_program_name.
42550
42551         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
42552         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
42553         (main): Call set_program_name.
42554
42555         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
42556         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
42557         (main): Call set_program_name.
42558
42559         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
42560         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
42561         (main): Call set_program_name.
42562
42563         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
42564         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
42565         (main): Call set_program_name.
42566
42567 2009-01-19  Eric Blake  <ebb9@byu.net>
42568
42569         test-unistd: test previous patch
42570         * tests/test-unistd.c: Test *_FILENO macros.
42571
42572         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
42573         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42574         Guarantee a definition.
42575         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
42576         * modules/unistd-safer (Depends-on): Add dependency on unistd.
42577         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
42578         * lib/dup-safer.c (STDERR_FILENO): Likewise.
42579         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42580         Likewise.
42581         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
42582         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
42583         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42584         Likewise.
42585         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
42586         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
42587         (STDERR_FILENO): Likewise.
42588         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
42589         (STDERR_FILENO): Likewise.
42590         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
42591         (STDERR_FILENO): Likewise.
42592         Reported by Elbert Pol.
42593
42594 2009-01-19  Eric Blake  <ebb9@byu.net>
42595
42596         doc: mention more functions added in cygwin 1.7.0
42597         * doc/posix-functions/abort.texi (abort): Update wording related
42598         to cygwin.
42599         * doc/posix-functions/daylight.texi (daylight): Likewise.
42600         * doc/posix-functions/optarg.texi (optarg): Likewise.
42601         * doc/posix-functions/optarg.texi (opterr): Likewise.
42602         * doc/posix-functions/optarg.texi (optind): Likewise.
42603         * doc/posix-functions/optarg.texi (optopt): Likewise.
42604         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
42605         worked in 1.5.x, and was withdrawn in 1.7.
42606         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
42607         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
42608         cygwin versions.
42609         * doc/posix-functions/perror.texi (perror): Likewise.
42610         * doc/posix-functions/printf.texi (printf): Likewise.
42611         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
42612         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
42613         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
42614         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
42615         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
42616         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
42617         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
42618         Likewise.
42619         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
42620         Likewise.
42621         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
42622         this function.
42623         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
42624         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
42625         Likewise.
42626         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
42627         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
42628         * doc/posix-functions/confstr.texi (confstr): Likewise.
42629         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
42630         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
42631         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
42632         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
42633         * doc/posix-functions/fputws.texi (fputws): Likewise.
42634         * doc/posix-functions/fwide.texi (fwide): Likewise.
42635         * doc/posix-functions/getwc.texi (getwc): Likewise.
42636         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
42637         * doc/posix-functions/putwc.texi (putwc): Likewise.
42638         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
42639         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
42640         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
42641         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
42642         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
42643         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
42644         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
42645         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
42646         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
42647         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
42648         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
42649
42650 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
42651
42652         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
42653         * lib/ioctl.c: Include <sys/ioctl.h>.
42654
42655 2009-01-19  Simon Josefsson  <simon@josefsson.org>
42656
42657         * modules/getdate-tests (Depends-on): Add progname.
42658         * tests/test-getdate.c: Use progname module, to avoid link errors
42659         on non-glibc systems.
42660
42661 2009-01-18  Simon Josefsson  <simon@josefsson.org>
42662
42663         * modules/filenamecat-tests (Depends-on): Add progname.
42664         * modules/fstrcmp-tests (Depends-on): Likewise.
42665
42666         * tests/test-filenamecat.c: Use progname module, to avoid link
42667         errors on non-glibc systems.
42668         * tests/test-fstrcmp.c: Likewise.
42669
42670 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
42671
42672         gettimeofday: avoid warning: nested extern declaration of 'localtime'
42673         * lib/gettimeofday.c: Move extern declaration out of function.
42674
42675 2009-01-18  Bruno Haible  <bruno@clisp.org>
42676
42677         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
42678         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
42679         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
42680
42681 2009-01-18  Bruno Haible  <bruno@clisp.org>
42682
42683         * lib/strftime.c (MEMPCPY): Remove unused macro.
42684         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
42685
42686 2009-01-18  Martin Lambers  <marlam@marlam.de>
42687
42688         New module 'link'.
42689         * lib/unistd.in.h (link): New declaration.
42690         * lib/link.c: New file.
42691         * m4/link.m4: New file.
42692         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
42693         HAVE_LINK.
42694         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
42695         * modules/link: New file.
42696         * doc/posix-functions/link.texi: Mention the new module.
42697
42698 2009-01-18  Bruno Haible  <bruno@clisp.org>
42699
42700         * tests/test-avltree_list.c (main): Call set_program_name.
42701         * tests/test-avltree_oset.c (main): Likewise.
42702         * tests/test-obstack-printf.c: Include progname.h.
42703         (main): Call set_program_name.
42704         * tests/test-quotearg.c: Include progname.h.
42705         (main): Call set_program_name.
42706         * tests/test-xmemdup0.c: Include progname.h.
42707         (main): Call set_program_name.
42708
42709 2009-01-18  Bruno Haible  <bruno@clisp.org>
42710
42711         New module 'alphasort'.
42712         * lib/dirent.in.h (alphasort): New declaration.
42713         * lib/alphasort.c: New file, from glibc with modifications.
42714         * m4/alphasort.m4: New file.
42715         * modules/alphasort: New file.
42716         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
42717         HAVE_ALPHASORT.
42718         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
42719         HAVE_ALPHASORT.
42720         * doc/posix-functions/alphasort.texi: Mention the new module and the
42721         portability problems.
42722
42723 2009-01-18  Bruno Haible  <bruno@clisp.org>
42724
42725         New module 'scandir'.
42726         * lib/dirent.in.h (scandir): New declaration.
42727         * lib/scandir.c: New file, from glibc with modifications.
42728         * m4/scandir.m4: New file.
42729         * modules/scandir: New file.
42730         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
42731         HAVE_SCANDIR.
42732         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
42733         HAVE_SCANDIR.
42734         * doc/posix-functions/scandir.texi: Mention the new module and the
42735         portability problems.
42736
42737 2009-01-17  Bruno Haible  <bruno@clisp.org>
42738
42739         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
42740         Update documentation.
42741         (func_remove_suffix): Escape all dots in the suffix. Update
42742         documentation.
42743         (func_filter_filelist): Update documentation.
42744         Reported by Ralf Wildenhues.
42745
42746 2009-01-17  Bruno Haible  <bruno@clisp.org>
42747
42748         * modules/dprintf-posix-tests: New file.
42749         * tests/test-dprintf-posix.sh: New file.
42750         * tests/test-dprintf-posix.c: New file.
42751
42752         New modules 'dprintf', 'dprintf-posix'.
42753         * lib/stdio.in.h (dprintf): New declaration.
42754         * lib/dprintf.c: New file.
42755         * m4/dprintf.m4: New file.
42756         * m4/dprintf-posix.m4: New file.
42757         * modules/dprintf: New file.
42758         * modules/dprintf-posix: New file.
42759         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
42760         HAVE_DPRINTF, REPLACE_DPRINTF.
42761         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
42762         HAVE_DPRINTF, REPLACE_DPRINTF.
42763         * doc/posix-functions/dprintf.texi: Mention the new modules.
42764
42765 2009-01-17  Bruno Haible  <bruno@clisp.org>
42766
42767         * modules/vdprintf-posix-tests: New file.
42768         * tests/test-vdprintf-posix.sh: New file.
42769         * tests/test-vdprintf-posix.c: New file.
42770
42771         New modules 'vdprintf', 'vdprintf-posix'.
42772         * lib/stdio.in.h (vdprintf): New declaration.
42773         * lib/vdprintf.c: New file.
42774         * m4/vdprintf.m4: New file.
42775         * m4/vdprintf-posix.m4: New file.
42776         * modules/vdprintf: New file.
42777         * modules/vdprintf-posix: New file.
42778         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
42779         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42780         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
42781         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42782         * doc/posix-functions/vdprintf.texi: Mention the new modules.
42783
42784 2009-01-17  Bruno Haible  <bruno@clisp.org>
42785
42786         Fix replacement of fopen on mingw.
42787         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
42788         mingw.
42789
42790 2009-01-17  Bruno Haible  <bruno@clisp.org>
42791
42792         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
42793         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
42794
42795 2009-01-17  Bruno Haible  <bruno@clisp.org>
42796
42797         Avoid test-fflush2.sh failure on mingw.
42798         * tests/test-fflush2.c: Include binary-io.h.
42799         (main): Put standard input into binary mode.
42800         * modules/fflush-tests (Depends-on): Add binary-io.
42801
42802 2009-01-17  Bruno Haible  <bruno@clisp.org>
42803
42804         * lib/wchar.in.h: In another particular situation, include only the
42805         system's <wchar.h> file.
42806         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
42807         Reported by Albert Chin-A-Young <china@thewrittenword.com>
42808         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
42809
42810 2009-01-17  Bruno Haible  <bruno@clisp.org>
42811
42812         Support for stripping executables in --enable-relocatable.
42813         * build-aux/install-reloc: Expect one more argument, or an environment
42814         variable RELOC_STRIP_PROG. If set, strip the destination program and
42815         its wrapper.
42816         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
42817         RELOC_STRIP_PROG.
42818         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
42819         to set RELOCATABLE_STRIP.
42820         * NEWS: Mention the new Makefile requirement.
42821
42822 2009-01-17  Bruno Haible  <bruno@clisp.org>
42823
42824         * build-aux/install-reloc: Remove debugging information left over by
42825         C compiler on MacOS X.
42826
42827 2009-01-17  Bruno Haible  <bruno@clisp.org>
42828
42829         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
42830         * lib/progreloc.c (find_executable): Fix type of pointer passed to
42831         _NSGetExecutablePath.
42832
42833 2009-01-16  Jim Meyering  <meyering@redhat.com>
42834
42835         strerror: avoid warnings about discarding "const"
42836         * lib/strerror.c (rpl_strerror): Instead of returning a const
42837         string from each and every "case", use a variable, and add a single
42838         cast after the switch.
42839
42840 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
42841
42842         * lib/arpa_inet.in.h: Add extern "C" block for C++.
42843
42844 2009-01-16  Bruno Haible  <bruno@clisp.org>
42845
42846         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
42847         array initializer syntax that also works in C++ mode.
42848         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42849
42850 2009-01-16  Jim Meyering  <meyering@redhat.com>
42851
42852         poll: suppress a warning
42853         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
42854         to ignore "...unsigned expression < 0 is always false" warnings.
42855
42856 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
42857
42858         poll: remove declarations of unused variables
42859         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
42860         sockbuf and optlen.
42861
42862 2009-01-15  Bruno Haible  <bruno@clisp.org>
42863
42864         Make fflush-after-ungetc POSIX compliant on BSD systems.
42865         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
42866         (clear_ungetc_buffer): Implement also for other systems.
42867         (rpl_fflush): On glibc systems, invoke
42868         clear_ungetc_buffer_preserving_position. Otherwise, invoke
42869         clear_ungetc_buffer after fetching the stream's position, not before.
42870
42871 2009-01-15  Bruno Haible  <bruno@clisp.org>
42872
42873         Make fflush-after-ungetc POSIX compliant on glibc systems.
42874         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
42875         after ungetc.
42876         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
42877         (rpl_fflush): On glibc systems, simply call the system's fflush
42878         function after clearing the ungetc buffer.
42879         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
42880         Instead, lseek only to the end of file, then use the system's fseeko
42881         for the rest. On glibc systems, reset the EOF indicator bit.
42882
42883 2009-01-15  Jim Meyering  <meyering@redhat.com>
42884
42885         openmp.m4: revert quote-adding change, for portability to older autoconf
42886         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
42887         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
42888         Simon Josefsson noticed the problem when using autoconf-2.61.
42889
42890 2009-01-15  Bruno Haible  <bruno@clisp.org>
42891
42892         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
42893         * tests/test-fflush2.c (ASSERT): Always fail.
42894         (main): Add two tests for fflush() after ungetc(), taking into account
42895         the Austin Group's clarification.
42896         Suggested by Eric Blake.
42897
42898 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
42899
42900         mktime.m4: remove K&R-style function prototypes
42901         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
42902         for the Sun C++ compiler.
42903
42904 2009-01-14  Bruno Haible  <bruno@clisp.org>
42905
42906         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
42907         while including <wchar.h>.
42908         * lib/wchar.in.h: In two particular situations on HP-UX, include only
42909         the system's <wchar.h> file.
42910         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42911
42912 2009-01-14  Bruno Haible  <bruno@clisp.org>
42913
42914         * m4/csharp.m4: Don't mention gettext on the serial number line.
42915         * m4/csharpexec.m4: Likewise.
42916         * m4/eaccess.m4: Likewise.
42917         * m4/javaexec.m4: Likewise.
42918         * m4/sig_atomic_t.m4: Likewise.
42919         * m4/tmpdir.m4: Likewise.
42920         * m4/intldir.m4: Bump gettext version.
42921         * m4/lib-ld.m4: Likewise.
42922
42923 2009-01-14  Bruno Haible  <bruno@clisp.org>
42924
42925         * lib/progname.c (set_program_name): Add more comments.
42926         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
42927
42928 2009-01-14  Simon Josefsson  <simon@josefsson.org>
42929
42930         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
42931         were sys/stat.h does not define it.
42932
42933 2009-01-14  Jim Meyering  <meyering@redhat.com>
42934
42935         many *.m4 files: improve m4 quoting
42936         99% of this change was performed by running the following commands:
42937         git ls-files | grep '\.m4$' | xargs perl -pi \
42938           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
42939           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42940           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42941           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
42942         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
42943         The remainder were to add Copyright dates, increment serial numbers,
42944         undo some changes in comments, exclude m4/intl.m4, and add quotes
42945         around the "1" in ",1" where the unusual spacing prohibited the
42946         above regexps from doing the job.  For more details, see
42947         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
42948         * m4/acl.m4: Modified.
42949         * m4/afs.m4: Likewise.
42950         * m4/alloca.m4: Likewise.
42951         * m4/argp.m4: Likewise.
42952         * m4/argz.m4: Likewise.
42953         * m4/atexit.m4: Likewise.
42954         * m4/bison-i18n.m4: Likewise.
42955         * m4/bison.m4: Likewise.
42956         * m4/byteswap.m4: Likewise.
42957         * m4/c-stack.m4: Likewise.
42958         * m4/c-strtod.m4: Likewise.
42959         * m4/calloc.m4: Likewise.
42960         * m4/canonicalize-lgpl.m4: Likewise.
42961         * m4/chown.m4: Likewise.
42962         * m4/clock_time.m4: Likewise.
42963         * m4/codeset.m4: Likewise.
42964         * m4/copy-file.m4: Likewise.
42965         * m4/csharp.m4: Likewise.
42966         * m4/csharpcomp.m4: Likewise.
42967         * m4/csharpexec.m4: Likewise.
42968         * m4/d-ino.m4: Likewise.
42969         * m4/d-type.m4: Likewise.
42970         * m4/dirfd.m4: Likewise.
42971         * m4/double-slash-root.m4: Likewise.
42972         * m4/eaccess.m4: Likewise.
42973         * m4/eealloc.m4: Likewise.
42974         * m4/environ.m4: Likewise.
42975         * m4/errno_h.m4: Likewise.
42976         * m4/euidaccess.m4: Likewise.
42977         * m4/execute.m4: Likewise.
42978         * m4/fatal-signal.m4: Likewise.
42979         * m4/fchdir.m4: Likewise.
42980         * m4/fcntl_h.m4: Likewise.
42981         * m4/fileblocks.m4: Likewise.
42982         * m4/filenamecat.m4: Likewise.
42983         * m4/findprog.m4: Likewise.
42984         * m4/flexmember.m4: Likewise.
42985         * m4/fnmatch.m4: Likewise.
42986         * m4/fopen.m4: Likewise.
42987         * m4/fpending.m4: Likewise.
42988         * m4/fprintf-posix.m4: Likewise.
42989         * m4/free.m4: Likewise.
42990         * m4/frexp.m4: Likewise.
42991         * m4/frexpl.m4: Likewise.
42992         * m4/fsusage.m4: Likewise.
42993         * m4/ftruncate.m4: Likewise.
42994         * m4/gc-camellia.m4: Likewise.
42995         * m4/gc-random.m4: Likewise.
42996         * m4/gc.m4: Likewise.
42997         * m4/getaddrinfo.m4: Likewise.
42998         * m4/getcwd-abort-bug.m4: Likewise.
42999         * m4/getcwd-path-max.m4: Likewise.
43000         * m4/getdate.m4: Likewise.
43001         * m4/getdomainname.m4: Likewise.
43002         * m4/getgroups.m4: Likewise.
43003         * m4/gethostname.m4: Likewise.
43004         * m4/gethrxtime.m4: Likewise.
43005         * m4/getline.m4: Likewise.
43006         * m4/getloadavg.m4: Likewise.
43007         * m4/getndelim2.m4: Likewise.
43008         * m4/getpass.m4: Likewise.
43009         * m4/gettext.m4: Likewise.
43010         * m4/gettime.m4: Likewise.
43011         * m4/gettimeofday.m4: Likewise.
43012         * m4/gnulib-common.m4: Likewise.
43013         * m4/group-member.m4: Likewise.
43014         * m4/host-os.m4: Likewise.
43015         * m4/iconv.m4: Likewise.
43016         * m4/iconv_open.m4: Likewise.
43017         * m4/inet_ntop.m4: Likewise.
43018         * m4/inet_pton.m4: Likewise.
43019         * m4/inline.m4: Likewise.
43020         * m4/intldir.m4: Likewise.
43021         * m4/intlmacosx.m4: Likewise.
43022         * m4/intmax.m4: Likewise.
43023         * m4/intmax_t.m4: Likewise.
43024         * m4/inttypes.m4: Likewise.
43025         * m4/inttypes_h.m4: Likewise.
43026         * m4/inttypes-pri.m4: Likewise.
43027         * m4/isapipe.m4: Likewise.
43028         * m4/isnand.m4: Likewise.
43029         * m4/isnanf.m4: Likewise.
43030         * m4/isnanl.m4: Likewise.
43031         * m4/javacomp.m4: Likewise.
43032         * m4/javaexec.m4: Likewise.
43033         * m4/jm-winsz1.m4: Likewise.
43034         * m4/jm-winsz2.m4: Likewise.
43035         * m4/lchown.m4: Likewise.
43036         * m4/lcmessage.m4: Likewise.
43037         * m4/ldexpl.m4: Likewise.
43038         * m4/lib-ld.m4: Likewise.
43039         * m4/lib-link.m4: Likewise.
43040         * m4/libsigsegv.m4: Likewise.
43041         * m4/link-follow.m4: Likewise.
43042         * m4/localcharset.m4: Likewise.
43043         * m4/locale-fr.m4: Likewise.
43044         * m4/locale-ja.m4: Likewise.
43045         * m4/locale-tr.m4: Likewise.
43046         * m4/locale-zh.m4: Likewise.
43047         * m4/lock.m4: Likewise.
43048         * m4/longlong.m4: Likewise.
43049         * m4/ls-mntd-fs.m4: Likewise.
43050         * m4/lstat.m4: Likewise.
43051         * m4/malloc.m4: Likewise.
43052         * m4/mathl.m4: Likewise.
43053         * m4/mbrtowc.m4: Likewise.
43054         * m4/mbstate_t.m4: Likewise.
43055         * m4/mbswidth.m4: Likewise.
43056         * m4/memchr.m4: Likewise.
43057         * m4/memcmp.m4: Likewise.
43058         * m4/memcpy.m4: Likewise.
43059         * m4/memmem.m4: Likewise.
43060         * m4/memmove.m4: Likewise.
43061         * m4/mempcpy.m4: Likewise.
43062         * m4/memrchr.m4: Likewise.
43063         * m4/memset.m4: Likewise.
43064         * m4/minmax.m4: Likewise.
43065         * m4/mkdir-slash.m4: Likewise.
43066         * m4/mkdtemp.m4: Likewise.
43067         * m4/mktime.m4: Likewise.
43068         * m4/mmap-anon.m4: Likewise.
43069         * m4/mountlist.m4: Likewise.
43070         * m4/nanosleep.m4: Likewise.
43071         * m4/nls.m4: Likewise.
43072         * m4/nocrash.m4: Likewise.
43073         * m4/open.m4: Likewise.
43074         * m4/openat.m4: Likewise.
43075         * m4/openmp.m4: Likewise.
43076         * m4/pathmax.m4: Likewise.
43077         * m4/perl.m4: Likewise.
43078         * m4/physmem.m4: Likewise.
43079         * m4/pipe.m4: Likewise.
43080         * m4/po.m4: Likewise.
43081         * m4/poll.m4: Likewise.
43082         * m4/posixtm.m4: Likewise.
43083         * m4/posixver.m4: Likewise.
43084         * m4/printf-frexp.m4: Likewise.
43085         * m4/printf-frexpl.m4: Likewise.
43086         * m4/printf-posix.m4: Likewise.
43087         * m4/printf-posix-rpl.m4: Likewise.
43088         * m4/printf.m4: Likewise.
43089         * m4/progtest.m4: Likewise.
43090         * m4/putenv.m4: Likewise.
43091         * m4/readline.m4: Likewise.
43092         * m4/readlink.m4: Likewise.
43093         * m4/readutmp.m4: Likewise.
43094         * m4/realloc.m4: Likewise.
43095         * m4/regex.m4: Likewise.
43096         * m4/relocatable.m4: Likewise.
43097         * m4/relocatable-lib.m4: Likewise.
43098         * m4/rename-dest-slash.m4: Likewise.
43099         * m4/rename.m4: Likewise.
43100         * m4/rmdir-errno.m4: Likewise.
43101         * m4/rmdir.m4: Likewise.
43102         * m4/roundf.m4: Likewise.
43103         * m4/roundl.m4: Likewise.
43104         * m4/rpmatch.m4: Likewise.
43105         * m4/save-cwd.m4: Likewise.
43106         * m4/selinux-selinux-h.m4: Likewise.
43107         * m4/setenv.m4: Likewise.
43108         * m4/settime.m4: Likewise.
43109         * m4/sig2str.m4: Likewise.
43110         * m4/sig_atomic_t.m4: Likewise.
43111         * m4/signalblocking.m4: Likewise.
43112         * m4/signbit.m4: Likewise.
43113         * m4/sigpipe.m4: Likewise.
43114         * m4/sockets.m4: Likewise.
43115         * m4/sockpfaf.m4: Likewise.
43116         * m4/st_dm_mode.m4: Likewise.
43117         * m4/stat-time.m4: Likewise.
43118         * m4/stdbool.m4: Likewise.
43119         * m4/stdint.m4: Likewise.
43120         * m4/stdint_h.m4: Likewise.
43121         * m4/stpcpy.m4: Likewise.
43122         * m4/stpncpy.m4: Likewise.
43123         * m4/strcase.m4: Likewise.
43124         * m4/strchrnul.m4: Likewise.
43125         * m4/strcspn.m4: Likewise.
43126         * m4/strdup.m4: Likewise.
43127         * m4/strftime.m4: Likewise.
43128         * m4/strndup.m4: Likewise.
43129         * m4/strnlen.m4: Likewise.
43130         * m4/strpbrk.m4: Likewise.
43131         * m4/strptime.m4: Likewise.
43132         * m4/strsep.m4: Likewise.
43133         * m4/strtod.m4: Likewise.
43134         * m4/strtoimax.m4: Likewise.
43135         * m4/strtok_r.m4: Likewise.
43136         * m4/strtol.m4: Likewise.
43137         * m4/strtoll.m4: Likewise.
43138         * m4/strtoul.m4: Likewise.
43139         * m4/strtoull.m4: Likewise.
43140         * m4/strtoumax.m4: Likewise.
43141         * m4/strverscmp.m4: Likewise.
43142         * m4/threadlib.m4: Likewise.
43143         * m4/timegm.m4: Likewise.
43144         * m4/tm_gmtoff.m4: Likewise.
43145         * m4/tmpdir.m4: Likewise.
43146         * m4/tmpfile.m4: Likewise.
43147         * m4/tzset.m4: Likewise.
43148         * m4/uintmax_t.m4: Likewise.
43149         * m4/unlinkdir.m4: Likewise.
43150         * m4/unlocked-io.m4: Likewise.
43151         * m4/uptime.m4: Likewise.
43152         * m4/userspec.m4: Likewise.
43153         * m4/utimbuf.m4: Likewise.
43154         * m4/utime.m4: Likewise.
43155         * m4/utimes-null.m4: Likewise.
43156         * m4/utimes.m4: Likewise.
43157         * m4/vararrays.m4: Likewise.
43158         * m4/vasnprintf.m4: Likewise.
43159         * m4/vfprintf-posix.m4: Likewise.
43160         * m4/vprintf-posix.m4: Likewise.
43161         * m4/wait-process.m4: Likewise.
43162         * m4/wchar_t.m4: Likewise.
43163         * m4/wint_t.m4: Likewise.
43164         * m4/write-any-file.m4: Likewise.
43165         * m4/yield.m4: Likewise.
43166
43167 2009-01-13  Bruno Haible  <bruno@clisp.org>
43168
43169         Avoid test-copy-file.sh failures when ACL support insufficient.
43170         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
43171         TESTS_ENVIRONMENT.
43172         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
43173         Reported by Jim Meyering.
43174
43175 2009-01-13  Bruno Haible  <bruno@clisp.org>
43176
43177         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
43178         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
43179         * modules/unistdio/u8-printf-parse (Files): Likewise.
43180         * modules/unistdio/u32-printf-parse (Files): Likewise.
43181         * modules/unistdio/ulc-printf-parse (Files): Likewise.
43182
43183 2009-01-13  Simon Josefsson  <simon@josefsson.org>
43184
43185         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
43186         and m4/inttypes_h.m4 too.
43187
43188 2009-01-12  Eric Blake  <ebb9@byu.net>
43189
43190         tests: IRIX 6.2 cc can't compile -0.0 into .data
43191         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
43192         rather than at compile-time.
43193         * tests/test-floorl.c (minus_zero): Likewise.
43194         * tests/test-frexpl.c (minus_zero): Likewise.
43195         * tests/test-isnan.c (minus_zerol): Likewise.
43196         * tests/test-isnanl.h (minus_zero): Likewise.
43197         * tests/test-ldexpl.c (minus_zero): Likewise.
43198         * tests/test-roundl.c (minus_zero): Likewise.
43199         * tests/test-signbit.c (minus_zerol): Likewise.
43200         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
43201         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
43202         * tests/test-truncl.c (minus_zero): Likewise.
43203         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
43204         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
43205         Reported by Tom G. Christensen and Nelson H. F. Beebe.
43206
43207 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43208
43209         regex: fix glibc bug 9697
43210         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
43211         handling.
43212
43213 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43214
43215         regex: fix glibc bug 697
43216         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
43217         being NULL also if there are no backreferences.
43218
43219 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43220
43221         regex: merge glibc changes
43222         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
43223         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
43224         re_string_skip_chars, re_string_reconstruct): Likewise.
43225         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
43226
43227 2009-01-07  Jim Meyering  <meyering@redhat.com>
43228
43229         poll: filter through cppi
43230         * lib/poll.c: Indent cpp directives to reflect nesting.
43231
43232 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
43233
43234         poll: don't return uninitialized
43235         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
43236
43237 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
43238
43239         avoid compile failure on AIX 6.1
43240         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
43241         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
43242
43243 2009-01-04  Jim Meyering  <meyering@redhat.com>
43244
43245         remove duplicate inclusion of <stdio.h>
43246         * tests/test-fprintf-posix.c: Likewise.
43247         * tests/test-printf-posix.c: Likewise.
43248         * tests/test-snprintf-posix.c: Likewise.
43249         * tests/test-sprintf-posix.c: Likewise.
43250         * tests/test-vasprintf-posix.c: Likewise.
43251         * tests/test-vfprintf-posix.c: Likewise.
43252         * tests/test-vprintf-posix.c: Likewise.
43253         * tests/test-vsnprintf-posix.c: Likewise.
43254         * tests/test-vsprintf-posix.c: Likewise.
43255
43256 2009-01-03  Jim Meyering  <meyering@redhat.com>
43257
43258         gnulib-tool: fix sed-based filtering
43259         * gnulib-tool (func_filter_filelist): Remove extra backslash
43260         in sed_fff_filter definition.
43261
43262 2009-01-02  Jim Meyering  <meyering@redhat.com>
43263
43264         strftime: avoid compilation failure on Solaris 2.6
43265         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
43266         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
43267         Don't #define mbrlen or mbsinit, since now they're guaranteed to
43268         be available.  Reported by Tom G. Christensen.  Details in
43269         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
43270
43271 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43272             Bruno Haible  <bruno@clisp.org>
43273
43274         Speed up gnulib-tool by doing more string processing through shell
43275         built-ins.
43276         * gnulib-tool (fast_func_append): New variable.
43277         (func_remove_prefix, func_remove_suffix): New functions.
43278         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
43279         (func_filter_filelist): New function.
43280         (func_get_dependencies): Use func_remove_suffix instead of sed.
43281         (func_get_automake_snippet): Use func_filter_filelist instead of a
43282         subshell and sed invocation.
43283
43284 2009-01-01  Bruno Haible  <bruno@clisp.org>
43285
43286         Fix a security bug.
43287         * gnulib-tool (func_import, import, update): Don't allow the characters
43288         '"', '$', '`', '\' in macro arguments that become part of commands that
43289         are evaluated.
43290
43291 2009-01-01  Bruno Haible  <bruno@clisp.org>
43292
43293         * gnulib-tool (func_reset_sigpipe): Add more comments.
43294
43295 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43296
43297         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
43298         func_emit_tests_Makefile_am, func_import): Abort loops early if we
43299         already know the answer.
43300
43301 2009-01-01  Jim Meyering  <meyering@redhat.com>
43302
43303         * lib/version-etc.c (version_etc_va): Update copyright year.
43304
43305 2008-12-30  Bruno Haible  <bruno@clisp.org>
43306
43307         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
43308         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
43309         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
43310
43311 2008-12-29  Eric Blake  <ebb9@byu.net>
43312
43313         multiarch: avoid autoconf AC_REQUIRE bug
43314         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
43315         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
43316         2.63 and older.
43317         Reported by Bruno Haible, and analyzed in
43318         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
43319
43320 2008-12-29  Bruno Haible  <bruno@clisp.org>
43321
43322         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
43323         files in subdirectories correctly.
43324         Reported by Ralf Wildenhues.
43325
43326 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43327
43328         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
43329         rather than 'join FILE -', for Solaris join.
43330
43331 2008-12-29  Bruno Haible  <bruno@clisp.org>
43332
43333         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
43334         quoting.
43335         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
43336         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
43337         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
43338         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
43339         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
43340         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
43341         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
43342         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
43343         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
43344         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
43345         * m4/nls.m4 (AM_NLS): Likewise.
43346         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
43347         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
43348         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
43349         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
43350         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
43351         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
43352         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
43353         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
43354         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
43355         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
43356         * m4/xsize.m4 (gl_XSIZE): Likewise.
43357         Suggested by Jim Meyering.
43358
43359 2008-11-17  Bruce Korb  <bkorb@gnu.org>
43360
43361         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
43362         * lib/parse-duration.c: use a switch instead of cascading if's.
43363
43364 2008-12-29  Eric Blake  <ebb9@byu.net>
43365
43366         wchar.h: supply WEOF on Irix 5.3
43367         * lib/wchar.in.h (wint_t): Also supply WEOF.
43368         * lib/wctype.in.h (wint_t): Likewise.
43369         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
43370         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
43371         Reported by Tom G. Christensen.
43372
43373 2008-12-26  Bruno Haible  <bruno@clisp.org>
43374
43375         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
43376         i486, i586, i686.
43377
43378 2008-12-26  Bruno Haible  <bruno@clisp.org>
43379
43380         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
43381
43382 2008-12-26  Bruno Haible  <bruno@clisp.org>
43383
43384         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
43385         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
43386         not __STDC_CONSTANT_MACROS.
43387         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
43388
43389 2008-12-25  Bruno Haible  <bruno@clisp.org>
43390
43391         Add support for universal builds to vasnprintf.
43392         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
43393         universal builds, guess no.
43394         * modules/vasnprintf-posix (Depends-on): Add multiarch.
43395         * modules/vasprintf-posix (Depends-on): Likewise.
43396         * modules/fprintf-posix (Depends-on): Likewise.
43397         * modules/vfprintf-posix (Depends-on): Likewise.
43398         * modules/snprintf-posix (Depends-on): Likewise.
43399         * modules/vsnprintf-posix (Depends-on): Likewise.
43400         * modules/sprintf-posix (Depends-on): Likewise.
43401         * modules/vsprintf-posix (Depends-on): Likewise.
43402         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43403         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43404         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43405         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43406         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43407         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43408         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43409
43410         Add support for universal builds to <inttypes.h>.
43411         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
43412         _SCNu64_PREFIX): In Apple
43413         universal builds, define directly, using _LP64.
43414         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
43415         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
43416         * modules/inttypes (Depends-on): Add multiarch.
43417         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
43418
43419         Add support for universal builds to <stdint.h>.
43420         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
43421         universal builds, define directly, using _LP64.
43422         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
43423         Apple universal builds, don't test for the size and suffix of ptrdiff_t
43424         and size_t.
43425         * modules/stdint (Depends-on): Add multiarch.
43426         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
43427
43428         New module 'multiarch'.
43429         * modules/multiarch: New file.
43430         * m4/multiarch.m4: New file.
43431
43432 2008-12-25  Bruno Haible  <bruno@clisp.org>
43433
43434         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
43435
43436 2008-12-25  Bruno Haible  <bruno@clisp.org>
43437
43438         * modules/btowc (License): Relicense under LGPLv2+.
43439         * modules/mbsinit (License): Likewise.
43440         * modules/mbrtowc (License): Likewise.
43441         * modules/wcrtomb (License): Likewise.
43442         * modules/streq (License): Likewise.
43443         Reported by David Lutterkort <lutter@redhat.com>.
43444
43445 2008-12-23  Bruno Haible  <bruno@clisp.org>
43446
43447         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
43448
43449 2008-12-23  Bruno Haible  <bruno@clisp.org>
43450
43451         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
43452         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
43453         GETADDRINFO_LIB, not in LIBS.
43454         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
43455         * modules/canon-host (Link): Likewise.
43456         * NEWS: Mention the change.
43457         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
43458         GETADDRINFO_LIB.
43459
43460 2008-12-22  Bruno Haible  <bruno@clisp.org>
43461
43462         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
43463         * doc/posix-functions/iswalpha_l.texi: Likewise.
43464         * doc/posix-functions/iswblank_l.texi: Likewise.
43465         * doc/posix-functions/iswcntrl_l.texi: Likewise.
43466         * doc/posix-functions/iswctype_l.texi: Likewise.
43467         * doc/posix-functions/iswdigit_l.texi: Likewise.
43468         * doc/posix-functions/iswgraph_l.texi: Likewise.
43469         * doc/posix-functions/iswlower_l.texi: Likewise.
43470         * doc/posix-functions/iswprint_l.texi: Likewise.
43471         * doc/posix-functions/iswpunct_l.texi: Likewise.
43472         * doc/posix-functions/iswspace_l.texi: Likewise.
43473         * doc/posix-functions/iswupper_l.texi: Likewise.
43474         * doc/posix-functions/iswxdigit_l.texi: Likewise.
43475         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
43476         * doc/posix-functions/open_wmemstream.texi: Likewise.
43477         * doc/posix-functions/swscanf.texi: Likewise.
43478         * doc/posix-functions/towctrans_l.texi: Likewise.
43479         * doc/posix-functions/towlower.texi: Likewise.
43480         * doc/posix-functions/towlower_l.texi: Likewise.
43481         * doc/posix-functions/towupper.texi: Likewise.
43482         * doc/posix-functions/towupper_l.texi: Likewise.
43483         * doc/posix-functions/vfwprintf.texi: Likewise.
43484         * doc/posix-functions/vfwscanf.texi: Likewise.
43485         * doc/posix-functions/vswscanf.texi: Likewise.
43486         * doc/posix-functions/vwprintf.texi: Likewise.
43487         * doc/posix-functions/vwscanf.texi: Likewise.
43488         * doc/posix-functions/wcpcpy.texi: Likewise.
43489         * doc/posix-functions/wcpncpy.texi: Likewise.
43490         * doc/posix-functions/wcscasecmp.texi: Likewise.
43491         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
43492         * doc/posix-functions/wcscoll_l.texi: Likewise.
43493         * doc/posix-functions/wcsdup.texi: Likewise.
43494         * doc/posix-functions/wcsncasecmp.texi: Likewise.
43495         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
43496         * doc/posix-functions/wcsnlen.texi: Likewise.
43497         * doc/posix-functions/wcsnrtombs.texi: Likewise.
43498         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
43499         * doc/posix-functions/wctrans_l.texi: Likewise.
43500         * doc/posix-functions/wctype_l.texi: Likewise.
43501         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
43502         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
43503         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
43504         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
43505         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
43506         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
43507         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
43508         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
43509         * doc/glibc-functions/wcschrnul.texi: Likewise.
43510         * doc/glibc-functions/wcsftime_l.texi: Likewise.
43511         * doc/glibc-functions/wcstod_l.texi: Likewise.
43512         * doc/glibc-functions/wcstof_l.texi: Likewise.
43513         * doc/glibc-functions/wcstol_l.texi: Likewise.
43514         * doc/glibc-functions/wcstold_l.texi: Likewise.
43515         * doc/glibc-functions/wcstoll_l.texi: Likewise.
43516         * doc/glibc-functions/wcstoq.texi: Likewise.
43517         * doc/glibc-functions/wcstoul_l.texi: Likewise.
43518         * doc/glibc-functions/wcstoull_l.texi: Likewise.
43519         * doc/glibc-functions/wcstouq.texi: Likewise.
43520         * doc/glibc-functions/wmempcpy.texi: Likewise.
43521
43522 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
43523             Eric Blake  <ebb9@byu.net>
43524             Paolo Bonzini  <bonzini@gnu.org>
43525             Bruno Haible  <bruno@clisp.org>
43526
43527         Make c-stack work on Haiku.
43528         * lib/c-stack.c (SA_ONSTACK): Define fallback.
43529         (c_stack_action): Use SA_ONSTACK flag.
43530
43531 2008-12-22  Bruno Haible  <bruno@clisp.org>
43532
43533         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
43534
43535 2008-12-22  Bruno Haible  <bruno@clisp.org>
43536
43537         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
43538         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
43539         being overridden.
43540         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
43541         New macros.
43542         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
43543         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
43544         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
43545         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
43546
43547 2008-12-22  Bruno Haible  <bruno@clisp.org>
43548
43549         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
43550         from test code.
43551
43552 2008-12-22  Eric Blake  <ebb9@byu.net>
43553
43554         Avoid gcc warnings on cygwin.
43555         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
43556         Avoid unused variable.
43557         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
43558         Likewise.
43559
43560 2008-12-22  Bruno Haible  <bruno@clisp.org>
43561
43562         Remove HAVE_MBRTOWC conditionals.
43563         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
43564         (mbscasecmp): Assume mbrtowc function.
43565         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
43566         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
43567         * lib/mbschr.c: Include mbuiter.h unconditionally.
43568         (mbschr): Assume mbrtowc function.
43569         * lib/mbscspn.c: Include mbuiter.h unconditionally.
43570         (mbscspn): Assume mbrtowc function.
43571         * lib/mbslen.c: Include mbuiter.h unconditionally.
43572         (mbslen): Assume mbrtowc function.
43573         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
43574         (mbsncasecmp): Assume mbrtowc function.
43575         * lib/mbsnlen.c: Include mbiter.h unconditionally.
43576         (mbsnlen): Assume mbrtowc function.
43577         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
43578         (mbspbrk): Assume mbrtowc function.
43579         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
43580         (mbspcasecmp): Assume mbrtowc function.
43581         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
43582         (mbsrchr): Assume mbrtowc function.
43583         * lib/mbssep.c: Include mbuiter.h unconditionally.
43584         (mbssep): Assume mbrtowc function.
43585         * lib/mbsspn.c: Include mbuiter.h unconditionally.
43586         (mbsspn): Assume mbrtowc function.
43587         * lib/mbsstr.c: Include mbuiter.h unconditionally.
43588         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
43589         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
43590         (mbstok_r): Assume mbrtowc function.
43591         * lib/propername.c: Include mbuiter.h unconditionally.
43592         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
43593         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
43594         (trim2): Assume mbrtowc function.
43595         * lib/mbswidth.c (mbsinit): Remove fallback definition.
43596         (mbsnwidth): Assume mbrtowc function.
43597         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
43598         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
43599         fallback definitions.
43600         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
43601
43602 2008-12-22  Bruno Haible  <bruno@clisp.org>
43603
43604         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
43605
43606 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
43607
43608         * modules/regex: Request emulations for the mb*/wc* functions we need.
43609         * m4/regex.m4: Don't look for those functions here.
43610         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
43611
43612 2008-12-22  Bruno Haible  <bruno@clisp.org>
43613
43614         * modules/fnmatch (Depends-on): Remove duplicated dependency.
43615
43616 2008-12-21  Bruno Haible  <bruno@clisp.org>
43617
43618         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
43619         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
43620         (Include): Remove conditionalization.
43621         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
43622         (Include): Remove conditionalization.
43623         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
43624         (Include): Remove conditionalization.
43625         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
43626         * m4/mbfile.m4 (gl_MBFILE): Likewise.
43627         * NEWS: Mention the change.
43628         Reported by Alan Hourihane <alanh@fairlite.co.uk>
43629         via Sergey Poznyakoff <gray@gnu.org.ua>.
43630
43631 2008-12-21  Bruno Haible  <bruno@clisp.org>
43632
43633         * MODULES.html.sh (Extended multibyte and wide character utilities
43634         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
43635         wcrtomb, wcsrtombs.
43636         (Support for systems lacking POSIX:2008): Add accept, bind, close,
43637         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
43638         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
43639         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
43640
43641 2008-12-21  Bruno Haible  <bruno@clisp.org>
43642
43643         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
43644
43645 2008-12-21  Bruno Haible  <bruno@clisp.org>
43646
43647         * modules/wcsnrtombs-tests: New file.
43648         * tests/test-wcsnrtombs1.sh: New file.
43649         * tests/test-wcsnrtombs2.sh: New file.
43650         * tests/test-wcsnrtombs3.sh: New file.
43651         * tests/test-wcsnrtombs4.sh: New file.
43652         * tests/test-wcsnrtombs.c: New file.
43653
43654         New module 'wcsnrtombs'.
43655         * lib/wchar.in.h (wcsnrtombs): New declaration.
43656         * lib/wcsnrtombs.c: New file.
43657         * lib/wcsrtombs-state.c: New file.
43658         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
43659         (internal_state): Remove variable.
43660         * m4/wcsnrtombs.m4: New file.
43661         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
43662         compilation units.
43663         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
43664         HAVE_WCSNRTOMBS.
43665         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
43666         HAVE_WCSNRTOMBS.
43667         * modules/wcsnrtombs: New file.
43668         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
43669         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
43670
43671 2008-12-21  Bruno Haible  <bruno@clisp.org>
43672
43673         * modules/wcsrtombs-tests: New file.
43674         * tests/test-wcsrtombs1.sh: New file.
43675         * tests/test-wcsrtombs2.sh: New file.
43676         * tests/test-wcsrtombs3.sh: New file.
43677         * tests/test-wcsrtombs4.sh: New file.
43678         * tests/test-wcsrtombs.c: New file.
43679
43680         New module 'wcsrtombs'.
43681         * lib/wchar.in.h (wcsrtombs): New declaration.
43682         * lib/wcsrtombs.c: New file.
43683         * m4/wcsrtombs.m4: New file.
43684         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
43685         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
43686         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
43687         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
43688         * modules/wcsrtombs: New file.
43689         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
43690         bugs.
43691
43692 2008-12-21  Bruno Haible  <bruno@clisp.org>
43693
43694         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
43695         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
43696         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
43697         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
43698         if not correct.
43699         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
43700         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
43701         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43702         m4/locale-zh.m4, m4/codeset.m4.
43703         * doc/posix-functions/wcrtomb.texi: Document the bug.
43704
43705 2008-12-21  Bruno Haible  <bruno@clisp.org>
43706
43707         Work around a btowc() bug on IRIX 6.5.
43708         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
43709         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
43710         REPLACE_WTOBC if not.
43711         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
43712         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
43713         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
43714
43715 2008-12-21  Bruno Haible  <bruno@clisp.org>
43716
43717         * modules/wcrtomb-tests: New file.
43718         * tests/test-wcrtomb.sh: New file.
43719         * tests/test-wcrtomb.c: New file.
43720
43721         New module 'wcrtomb'.
43722         * lib/wchar.in.h (wcrtomb): New declaration.
43723         * lib/wcrtomb.c: New file.
43724         * m4/wcrtomb.m4: New file.
43725         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
43726         HAVE_WCRTOMB.
43727         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
43728         HAVE_WCRTOMB.
43729         * modules/wcrtomb: New file.
43730         * doc/posix-functions/wcrtomb.texi: Mention the new module.
43731
43732 2008-12-21  Bruno Haible  <bruno@clisp.org>
43733
43734         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
43735         * modules/mbsrtowcs (Files): Likewise.
43736         * modules/wctob (Files): Likewise.
43737         * modules/c-strcase-tests (Files): Likewise.
43738         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
43739         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
43740         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
43741         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
43742         * modules/vasnprintf-posix-tests (Files): Likewise.
43743
43744 2008-12-21  William Pursell  <bill.pursell@gmail.com>
43745
43746         gitlog-to-changelog: pass all command-line arguments to git-log
43747         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
43748         it is sometimes convenient to filter the commits in various ways.
43749         gitlog-to-changelog only allows --since to specify a start date,
43750         but git-log itself supports many other filtering mechanisms.
43751         At the moment, I want to filter by branch name.  Rather than
43752         adding a --branch option to gitlog-to-changelog, it seems more
43753         flexible to simply pass all options directly to git-log and let
43754         git do the work.  Notice that this effectively makes --since a
43755         redundant option for gitlog-to-changelog, but removing it would
43756         require current usage to change since calls would then require
43757         an additional '--'.
43758
43759 2008-12-21  Bruno Haible  <bruno@clisp.org>
43760
43761         * modules/mbsnrtowcs-tests: New file.
43762         * tests/test-mbsnrtowcs1.sh: New file.
43763         * tests/test-mbsnrtowcs2.sh: New file.
43764         * tests/test-mbsnrtowcs3.sh: New file.
43765         * tests/test-mbsnrtowcs4.sh: New file.
43766         * tests/test-mbsnrtowcs.c: New file.
43767
43768         New module 'mbsnrtowcs'.
43769         * lib/wchar.in.h (mbsnrtowcs): New declaration.
43770         * lib/mbsnrtowcs.c: New file.
43771         * lib/mbsrtowcs-state.c: New file.
43772         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
43773         (internal_state): Remove variable.
43774         * m4/mbsnrtowcs.m4: New file.
43775         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
43776         compilation units.
43777         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
43778         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43779         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
43780         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43781         * modules/mbsnrtowcs: New file.
43782         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
43783         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
43784         portability problem.
43785
43786 2008-12-21  Bruno Haible  <bruno@clisp.org>
43787
43788         Work around mbsrtowcs bug.
43789         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
43790         (gl_FUNC_MBSRTOWCS): Invoke it.
43791         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43792         m4/locale-zh.m4.
43793         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
43794
43795 2008-12-21  Bruno Haible  <bruno@clisp.org>
43796
43797         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
43798
43799 2008-12-21  Bruno Haible  <bruno@clisp.org>
43800
43801         Update doc for AIX.
43802         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
43803         16-bit wchar_t type.
43804         * doc/posix-functions/btowc.texi: Likewise.
43805         * doc/posix-functions/fgetwc.texi: Likewise.
43806         * doc/posix-functions/fgetws.texi: Likewise.
43807         * doc/posix-functions/fputwc.texi: Likewise.
43808         * doc/posix-functions/fputws.texi: Likewise.
43809         * doc/posix-functions/fwide.texi: Likewise.
43810         * doc/posix-functions/fwprintf.texi: Likewise.
43811         * doc/posix-functions/fwscanf.texi: Likewise.
43812         * doc/posix-functions/getwchar.texi: Likewise.
43813         * doc/posix-functions/getwc.texi: Likewise.
43814         * doc/posix-functions/iswalnum.texi: Likewise.
43815         * doc/posix-functions/iswalpha.texi: Likewise.
43816         * doc/posix-functions/iswblank.texi: Likewise.
43817         * doc/posix-functions/iswcntrl.texi: Likewise.
43818         * doc/posix-functions/iswctype.texi: Likewise.
43819         * doc/posix-functions/iswdigit.texi: Likewise.
43820         * doc/posix-functions/iswgraph.texi: Likewise.
43821         * doc/posix-functions/iswlower.texi: Likewise.
43822         * doc/posix-functions/iswprint.texi: Likewise.
43823         * doc/posix-functions/iswpunct.texi: Likewise.
43824         * doc/posix-functions/iswspace.texi: Likewise.
43825         * doc/posix-functions/iswupper.texi: Likewise.
43826         * doc/posix-functions/iswxdigit.texi: Likewise.
43827         * doc/posix-functions/mbrtowc.texi: Likewise.
43828         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43829         * doc/posix-functions/mbstowcs.texi: Likewise.
43830         * doc/posix-functions/mbtowc.texi: Likewise.
43831         * doc/posix-functions/putwchar.texi: Likewise.
43832         * doc/posix-functions/putwc.texi: Likewise.
43833         * doc/posix-functions/swprintf.texi: Likewise.
43834         * doc/posix-functions/tolower.texi: Likewise.
43835         * doc/posix-functions/toupper.texi: Likewise.
43836         * doc/posix-functions/towctrans.texi: Likewise.
43837         * doc/posix-functions/ungetwc.texi: Likewise.
43838         * doc/posix-functions/vswprintf.texi: Likewise.
43839         * doc/posix-functions/wcrtomb.texi: Likewise.
43840         * doc/posix-functions/wcscat.texi: Likewise.
43841         * doc/posix-functions/wcschr.texi: Likewise.
43842         * doc/posix-functions/wcscmp.texi: Likewise.
43843         * doc/posix-functions/wcscoll.texi: Likewise.
43844         * doc/posix-functions/wcscpy.texi: Likewise.
43845         * doc/posix-functions/wcscspn.texi: Likewise.
43846         * doc/posix-functions/wcsftime.texi: Likewise.
43847         * doc/posix-functions/wcslen.texi: Likewise.
43848         * doc/posix-functions/wcsncat.texi: Likewise.
43849         * doc/posix-functions/wcsncmp.texi: Likewise.
43850         * doc/posix-functions/wcsncpy.texi: Likewise.
43851         * doc/posix-functions/wcspbrk.texi: Likewise.
43852         * doc/posix-functions/wcsrchr.texi: Likewise.
43853         * doc/posix-functions/wcsrtombs.texi: Likewise.
43854         * doc/posix-functions/wcsspn.texi: Likewise.
43855         * doc/posix-functions/wcsstr.texi: Likewise.
43856         * doc/posix-functions/wcstod.texi: Likewise.
43857         * doc/posix-functions/wcstof.texi: Likewise.
43858         * doc/posix-functions/wcstoimax.texi: Likewise.
43859         * doc/posix-functions/wcstok.texi: Likewise.
43860         * doc/posix-functions/wcstold.texi: Likewise.
43861         * doc/posix-functions/wcstoll.texi: Likewise.
43862         * doc/posix-functions/wcstol.texi: Likewise.
43863         * doc/posix-functions/wcstombs.texi: Likewise.
43864         * doc/posix-functions/wcstoull.texi: Likewise.
43865         * doc/posix-functions/wcstoul.texi: Likewise.
43866         * doc/posix-functions/wcstoumax.texi: Likewise.
43867         * doc/posix-functions/wcswidth.texi: Likewise.
43868         * doc/posix-functions/wcsxfrm.texi: Likewise.
43869         * doc/posix-functions/wctob.texi: Likewise.
43870         * doc/posix-functions/wctomb.texi: Likewise.
43871         * doc/posix-functions/wctrans.texi: Likewise.
43872         * doc/posix-functions/wctype.texi: Likewise.
43873         * doc/posix-functions/wcwidth.texi: Likewise.
43874         * doc/posix-functions/wmemchr.texi: Likewise.
43875         * doc/posix-functions/wmemcmp.texi: Likewise.
43876         * doc/posix-functions/wmemcpy.texi: Likewise.
43877         * doc/posix-functions/wmemmove.texi: Likewise.
43878         * doc/posix-functions/wmemset.texi: Likewise.
43879         * doc/posix-functions/wprintf.texi: Likewise.
43880         * doc/posix-functions/wscanf.texi: Likewise.
43881
43882 2008-12-21  Bruno Haible  <bruno@clisp.org>
43883
43884         Update doc for HP-UX 11.11.
43885         * doc/posix-functions/btowc.texi: Clarify that the function is missing
43886         in HP-UX version 11.00, not in all versions of HP-UX 11.
43887         * doc/posix-functions/fwide.texi: Likewise.
43888         * doc/posix-functions/fwprintf.texi: Likewise.
43889         * doc/posix-functions/fwscanf.texi: Likewise.
43890         * doc/posix-functions/inet_ntop.texi: Likewise.
43891         * doc/posix-functions/inet_pton.texi: Likewise.
43892         * doc/posix-functions/mbrlen.texi: Likewise.
43893         * doc/posix-functions/mbrtowc.texi: Likewise.
43894         * doc/posix-functions/mbsinit.texi: Likewise.
43895         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43896         * doc/posix-functions/swprintf.texi: Likewise.
43897         * doc/posix-functions/swscanf.texi: Likewise.
43898         * doc/posix-functions/towctrans.texi: Likewise.
43899         * doc/posix-functions/vfwprintf.texi: Likewise.
43900         * doc/posix-functions/vswprintf.texi: Likewise.
43901         * doc/posix-functions/vwprintf.texi: Likewise.
43902         * doc/posix-functions/wcrtomb.texi: Likewise.
43903         * doc/posix-functions/wcsrtombs.texi: Likewise.
43904         * doc/posix-functions/wcsstr.texi: Likewise.
43905         * doc/posix-functions/wctob.texi: Likewise.
43906         * doc/posix-functions/wctrans.texi: Likewise.
43907         * doc/posix-functions/wmemchr.texi: Likewise.
43908         * doc/posix-functions/wmemcmp.texi: Likewise.
43909         * doc/posix-functions/wmemcpy.texi: Likewise.
43910         * doc/posix-functions/wmemmove.texi: Likewise.
43911         * doc/posix-functions/wmemset.texi: Likewise.
43912         * doc/posix-functions/wprintf.texi: Likewise.
43913         * doc/posix-functions/wscanf.texi: Likewise.
43914
43915 2008-12-21  Bruno Haible  <bruno@clisp.org>
43916
43917         Work around a portability problem.
43918         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
43919         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
43920
43921 2008-12-20  Bruno Haible  <bruno@clisp.org>
43922
43923         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
43924         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
43925         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
43926         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
43927         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
43928
43929         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
43930         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
43931         set.
43932         (GNULIB_defined_mbstate_t): New macro.
43933         (mbsinit): Redefine if REPLACE_MBSINIT is set.
43934         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
43935         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
43936         reuses the system's mbrtowc function but works around the bugs.
43937         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
43938         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
43939         macros.
43940         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
43941         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
43942         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
43943         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
43944         REPLACE_MBSINIT if mbsinit needs to be overridden.
43945         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
43946         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43947         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
43948         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43949         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43950         m4/locale-zh.m4.
43951         (Depends): Add mbsinit.
43952         * modules/mbsinit (Depends): Add mbrtowc.
43953         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
43954
43955 2008-12-20  Bruno Haible  <bruno@clisp.org>
43956
43957         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
43958         so that there are no conversion errors on AIX.
43959         * tests/test-mbsrtowcs.c (main): LIkewise.
43960
43961 2008-12-20  Bruno Haible  <bruno@clisp.org>
43962
43963         Work around wctob bug on Solaris <= 9.
43964         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
43965         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
43966         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
43967         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
43968         * modules/wctob (Files): Add m4/locale-fr.m4.
43969         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
43970
43971 2008-12-20  Bruno Haible  <bruno@clisp.org>
43972
43973         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
43974         /dev/null.
43975         * tests/test-select-in.sh: Likewise.
43976         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43977
43978 2008-12-20  Bruno Haible  <bruno@clisp.org>
43979
43980         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
43981         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
43982         Cygwin 1.5.x.
43983
43984 2008-12-20  Bruno Haible  <bruno@clisp.org>
43985
43986         Ensure mbstate_t is defined on HP-UX 11.11.
43987         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
43988         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
43989         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
43990         AC_USE_SYSTEM_EXTENSIONS.
43991         * modules/fnmatch (Depends-on): Add extensions.
43992         * modules/mbrlen (Depends-on): Likewise.
43993         * modules/mbrtowc (Depends-on): Likewise.
43994         * modules/mbsinit (Depends-on): Likewise.
43995         * modules/mbsrtowcs (Depends-on): Likewise.
43996         * modules/mbswidth (Depends-on): Likewise.
43997         * modules/quotearg (Depends-on): Likewise.
43998         * modules/strftime (Depends-on): Likewise.
43999
44000 2008-12-20  Bruno Haible  <bruno@clisp.org>
44001
44002         Ensure wctob is declared on IRIX 6.5.
44003         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
44004         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
44005         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
44006         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
44007         of HAVE_WCTOB.
44008         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
44009         HAVE_WCTOB.
44010         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
44011
44012 2008-12-19  Bruno Haible  <bruno@clisp.org>
44013
44014         * modules/mbsrtowcs-tests: New file.
44015         * tests/test-mbsrtowcs1.sh: New file.
44016         * tests/test-mbsrtowcs2.sh: New file.
44017         * tests/test-mbsrtowcs3.sh: New file.
44018         * tests/test-mbsrtowcs4.sh: New file.
44019         * tests/test-mbsrtowcs.c: New file.
44020
44021         New module 'mbsrtowcs'.
44022         * lib/wchar.in.h (mbsrtowcs): New declaration.
44023         * lib/mbsrtowcs.c: New file.
44024         * m4/mbsrtowcs.m4: New file.
44025         * modules/mbsrtowcs: New file.
44026         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
44027         HAVE_MBSRTOWCS.
44028         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
44029         HAVE_MBSRTOWCS.
44030         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
44031
44032 2008-12-19  Bruno Haible  <bruno@clisp.org>
44033
44034         New module 'mbrlen'.
44035         * lib/wchar.in.h (mbrlen): New declaration.
44036         * lib/mbrlen.c: New file.
44037         * m4/mbrlen.m4: New file.
44038         * modules/mbrlen: New file.
44039         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
44040         HAVE_MBRLEN.
44041         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
44042         HAVE_MBRLEN.
44043         * doc/posix-functions/mbrlen.texi: Document the new module.
44044
44045 2008-12-19  Bruno Haible  <bruno@clisp.org>
44046
44047         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
44048         * modules/mbrtowc (Depends-on): Add verify.
44049         Suggested by Paul Eggert.
44050
44051 2008-12-18  Bruno Haible  <bruno@clisp.org>
44052
44053         * modules/mbsinit-tests: New file.
44054         * tests/test-mbsinit.sh: New file.
44055         * tests/test-mbsinit.c: New file.
44056
44057 2008-12-18  Bruno Haible  <bruno@clisp.org>
44058
44059         * modules/mbrtowc-tests: New file.
44060         * tests/test-mbrtowc1.sh: New file.
44061         * tests/test-mbrtowc2.sh: New file.
44062         * tests/test-mbrtowc3.sh: New file.
44063         * tests/test-mbrtowc4.sh: New file.
44064         * tests/test-mbrtowc.c: New file.
44065
44066         New module 'mbrtowc'.
44067         * lib/wchar.in.h (mbstate_t): Override when the system does not have
44068         mbsinit and mbrtowc.
44069         (mbrtowc): New declaration.
44070         * lib/mbrtowc.c: New file.
44071         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
44072         * modules/mbrtowc: New file.
44073         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
44074         HAVE_MBRTOWC.
44075         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
44076         HAVE_MBRTOWC.
44077         * doc/posix-functions/mbrtowc.texi: Document the new module.
44078
44079 2008-12-18  Bruno Haible  <bruno@clisp.org>
44080
44081         New module 'wctob'.
44082         * lib/wchar.in.h (wctob): New declaration.
44083         * lib/wctob.c: New file.
44084         * m4/wctob.m4: New file.
44085         * modules/wctob: New file.
44086         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
44087         HAVE_WCTOB.
44088         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
44089         * doc/posix-functions/wctob.texi: Document the new module.
44090
44091 2008-12-18  Bruno Haible  <bruno@clisp.org>
44092
44093         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
44094         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
44095
44096 2008-12-18  Simon Josefsson  <simon@josefsson.org>
44097
44098         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
44099         G. Christensen" <tgc@jupiterrise.com>.
44100
44101         * lib/flock.c: Need to include errno.h.  Reported by "Tom
44102         G. Christensen" <tgc@jupiterrise.com>.
44103
44104         * lib/flock.c: Need to include string.h.  Reported by "Tom
44105         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
44106         <ebb9@byu.net>.
44107
44108 2008-12-18  Bruno Haible  <bruno@clisp.org>
44109
44110         * m4/locale-ja.m4: New file, from GNU gettext.
44111
44112 2008-12-17  Bruno Haible  <bruno@clisp.org>
44113
44114         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
44115         Suggested by Eric Blake.
44116
44117 2008-12-17  Bruno Haible  <bruno@clisp.org>
44118
44119         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
44120
44121 2008-12-17  Bruno Haible  <bruno@clisp.org>
44122
44123         * lib/mbsinit.c: Include verify.h. Verify an assumption.
44124         * modules/mbsinit (Depends-on): Add verify.
44125         Suggested by Paul Eggert.
44126
44127 2008-12-17  Bruno Haible  <bruno@clisp.org>
44128
44129         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
44130         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
44131         gl_FUNC_MBRTOWC.
44132         * m4/mbiter.m4 (gl_MBITER): LIkewise.
44133         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
44134         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
44135         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
44136         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
44137         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
44138         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
44139         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
44140         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
44141         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
44142         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
44143         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
44144         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
44145         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
44146         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
44147         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
44148         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
44149         * modules/trim (configure.ac): Likewise.
44150
44151 2008-12-17  Bruno Haible  <bruno@clisp.org>
44152
44153         * modules/btowc-tests: New file.
44154         * tests/test-btowc1.sh: New file.
44155         * tests/test-btowc2.sh: New file.
44156         * tests/test-btowc.c: New file.
44157
44158         New module 'btowc'.
44159         * lib/wchar.in.h (btowc): New declaration.
44160         * lib/btowc.c: New file.
44161         * m4/btowc.m4: New file.
44162         * modules/btowc: New file.
44163         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
44164         HAVE_BTOWC.
44165         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
44166         * doc/posix-functions/btowc.texi: Document the new module.
44167
44168 2008-12-17  Bruno Haible  <bruno@clisp.org>
44169
44170         New module 'mbsinit'.
44171         * lib/wchar.in.h (mbsinit): New declaration.
44172         * lib/mbsinit.c: New file.
44173         * m4/mbsinit.m4: New file.
44174         * modules/mbsinit: New file.
44175         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
44176         HAVE_MBSINIT.
44177         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
44178         HAVE_MBSINIT.
44179         * doc/posix-functions/mbsinit.texi: Document the new module.
44180
44181 2008-12-16  Bruno Haible  <bruno@clisp.org>
44182
44183         * lib/unistd.in.h: Add comment.
44184         * tests/test-environ.c: Don't include <stdlib.h>.
44185
44186 2008-12-16  Bruno Haible  <bruno@clisp.org>
44187
44188         * lib/parse-duration.h (parse_duration): Document return value
44189         convention.
44190         * lib/parse-duration.c: Include specification header first. Add
44191         comments.
44192         (_): Remove macro.
44193         (parse_year_month_day, parse_hour_minute_second): Move side effects
44194         outside of strchr call.
44195         (parse_non_iso8601): Move side effects outside of isspace call.
44196         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
44197         call.
44198
44199 2008-12-16  Bruno Haible  <bruno@clisp.org>
44200
44201         * tests/test-parse-duration.sh: Produce no output when the test
44202         succeeds.
44203
44204 2008-12-16  Bruno Haible  <bruno@clisp.org>
44205
44206         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
44207         expressions.
44208
44209 2008-12-15  Bruno Haible  <bruno@clisp.org>
44210
44211         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
44212         * doc/glibc-functions/flistxattr.texi: Likewise.
44213         * doc/glibc-functions/fopencookie.texi: Likewise.
44214         * doc/glibc-functions/fremovexattr.texi: Likewise.
44215         * doc/glibc-functions/fsetxattr.texi: Likewise.
44216         * doc/glibc-functions/getxattr.texi: Likewise.
44217         * doc/glibc-functions/lgetxattr.texi: Likewise.
44218         * doc/glibc-functions/listxattr.texi: Likewise.
44219         * doc/glibc-functions/llistxattr.texi: Likewise.
44220         * doc/glibc-functions/lremovexattr.texi: Likewise.
44221         * doc/glibc-functions/lsetxattr.texi: Likewise.
44222         * doc/glibc-functions/removexattr.texi: Likewise.
44223         * doc/glibc-functions/setxattr.texi: Likewise.
44224         * doc/posix-functions/open_memstream.texi: Likewise.
44225
44226 2008-12-15  Eric Blake  <ebb9@byu.net>
44227
44228         Update doc for cygwin 1.7.
44229         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
44230         functions.
44231         * doc/posix-functions/fchmodat.texi: Likewise.
44232         * doc/posix-functions/fchownat.texi: Likewise.
44233         * doc/posix-functions/fdopendir.texi: Likewise.
44234         * doc/posix-functions/fmemopen.texi: Likewise.
44235         * doc/posix-functions/freeaddrinfo.texi: Likewise.
44236         * doc/posix-functions/fstatat.texi: Likewise.
44237         * doc/posix-functions/futimens.texi: Likewise.
44238         * doc/posix-functions/gai_strerror.texi: Likewise.
44239         * doc/posix-functions/getaddrinfo.texi: Likewise.
44240         * doc/posix-functions/getnameinfo.texi: Likewise.
44241         * doc/posix-functions/if_freenameindex.texi: Likewise.
44242         * doc/posix-functions/if_indextoname.texi: Likewise.
44243         * doc/posix-functions/if_nameindex.texi: Likewise.
44244         * doc/posix-functions/if_nametoindex.texi: Likewise.
44245         * doc/posix-functions/insque.texi: Likewise.
44246         * doc/posix-functions/linkat.texi: Likewise.
44247         * doc/posix-functions/llrint.texi: Likewise.
44248         * doc/posix-functions/llrintf.texi: Likewise.
44249         * doc/posix-functions/llrintl.texi: Likewise.
44250         * doc/posix-functions/lockf.texi: Likewise.
44251         * doc/posix-functions/lrintl.texi: Likewise.
44252         * doc/posix-functions/mkdirat.texi: Likewise.
44253         * doc/posix-functions/mkfifoat.texi: Likewise.
44254         * doc/posix-functions/mknodat.texi: Likewise.
44255         * doc/posix-functions/mq_close.texi: Likewise.
44256         * doc/posix-functions/mq_getattr.texi: Likewise.
44257         * doc/posix-functions/mq_notify.texi: Likewise.
44258         * doc/posix-functions/mq_open.texi: Likewise.
44259         * doc/posix-functions/mq_receive.texi: Likewise.
44260         * doc/posix-functions/mq_send.texi: Likewise.
44261         * doc/posix-functions/mq_setattr.texi: Likewise.
44262         * doc/posix-functions/mq_timedreceive.texi: Likewise.
44263         * doc/posix-functions/mq_timedsend.texi: Likewise.
44264         * doc/posix-functions/mq_unlink.texi: Likewise.
44265         * doc/posix-functions/open_memstream.texi: Likewise.
44266         * doc/posix-functions/openat.texi: Likewise.
44267         * doc/posix-functions/posix_fadvise.texi: Likewise.
44268         * doc/posix-functions/posix_fallocate.texi: Likewise.
44269         * doc/posix-functions/posix_madvise.texi: Likewise.
44270         * doc/posix-functions/posix_memalign.texi: Likewise.
44271         * doc/posix-functions/posix_openpt.texi: Likewise.
44272         * doc/posix-functions/readlinkat.texi: Likewise.
44273         * doc/posix-functions/remque.texi: Likewise.
44274         * doc/posix-functions/renameat.texi: Likewise.
44275         * doc/posix-functions/rintl.texi: Likewise.
44276         * doc/posix-functions/sem_unlink.texi: Likewise.
44277         * doc/posix-functions/shm_open.texi: Likewise.
44278         * doc/posix-functions/shm_unlink.texi: Likewise.
44279         * doc/posix-functions/signgam.texi: Likewise.
44280         * doc/posix-functions/sigset.texi: Likewise.
44281         * doc/posix-functions/stpcpy.texi: Likewise.
44282         * doc/posix-functions/stpncpy.texi: Likewise.
44283         * doc/posix-functions/strerror.texi: Likewise.
44284         * doc/posix-functions/strtod.texi: Likewise.
44285         * doc/posix-functions/symlinkat.texi: Likewise.
44286         * doc/posix-functions/unlinkat.texi: Likewise.
44287         * doc/posix-functions/utimensat.texi: Likewise.
44288         * doc/glibc-functions/bindresvport.texi: Likewise.
44289         * doc/glibc-functions/dn_expand.texi: Likewise.
44290         * doc/glibc-functions/exp10.texi: Likewise.
44291         * doc/glibc-functions/exp10f.texi: Likewise.
44292         * doc/glibc-functions/fgetxattr.texi: Likewise.
44293         * doc/glibc-functions/flistxattr.texi: Likewise.
44294         * doc/glibc-functions/fopencookie.texi: Likewise.
44295         * doc/glibc-functions/freeifaddrs.texi: Likewise.
44296         * doc/glibc-functions/fremovexattr.texi: Likewise.
44297         * doc/glibc-functions/fsetxattr.texi: Likewise.
44298         * doc/glibc-functions/getifaddrs.texi: Likewise.
44299         * doc/glibc-functions/getxattr.texi: Likewise.
44300         * doc/glibc-functions/lgetxattr.texi: Likewise.
44301         * doc/glibc-functions/listxattr.texi: Likewise.
44302         * doc/glibc-functions/llistxattr.texi: Likewise.
44303         * doc/glibc-functions/lremovexattr.texi: Likewise.
44304         * doc/glibc-functions/lsetxattr.texi: Likewise.
44305         * doc/glibc-functions/pow10.texi: Likewise.
44306         * doc/glibc-functions/pow10f.texi: Likewise.
44307         * doc/glibc-functions/rcmd_af.texi: Likewise.
44308         * doc/glibc-functions/removexattr.texi: Likewise.
44309         * doc/glibc-functions/res_init.texi: Likewise.
44310         * doc/glibc-functions/res_mkquery.texi: Likewise.
44311         * doc/glibc-functions/res_query.texi: Likewise.
44312         * doc/glibc-functions/res_querydomain.texi: Likewise.
44313         * doc/glibc-functions/res_send.texi: Likewise.
44314         * doc/glibc-functions/rresvport_af.texi: Likewise.
44315         * doc/glibc-functions/setxattr.texi: Likewise.
44316         * doc/glibc-functions/strcasestr.texi: Likewise.
44317
44318 2008-12-15  Bruno Haible  <bruno@clisp.org>
44319
44320         Fix compilation error on OSF/1 4.0.
44321         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
44322         <sys/time.h>, simply delegate to the system header.
44323         Reported by Daniel Richard G. <oss@teragram.com>.
44324
44325 2008-12-15  Bruno Haible  <bruno@clisp.org>
44326
44327         * doc/posix-functions/openat.texi: Mention the 'openat' module.
44328         * doc/posix-functions/fchmodat.texi: Likewise.
44329         * doc/posix-functions/fchownat.texi: Likewise.
44330         * doc/posix-functions/fdopendir.texi: Likewise.
44331         * doc/posix-functions/fstatat.texi: Likewise.
44332         * doc/posix-functions/mkdirat.texi: Likewise.
44333         * doc/posix-functions/unlinkat.texi: Likewise.
44334
44335 2008-12-14  Bruno Haible  <bruno@clisp.org>
44336
44337         Update doc for POSIX:2008.
44338         * doc/posix-functions/faccessat.texi: New file.
44339         * doc/posix-functions/fchmodat.texi: New file.
44340         * doc/posix-functions/fchownat.texi: New file.
44341         * doc/posix-functions/fdopendir.texi: New file.
44342         * doc/posix-functions/fstatat.texi: New file.
44343         * doc/posix-functions/futimens.texi: New file.
44344         * doc/posix-functions/linkat.texi: New file.
44345         * doc/posix-functions/mkdirat.texi: New file.
44346         * doc/posix-functions/mkfifoat.texi: New file.
44347         * doc/posix-functions/mknodat.texi: New file.
44348         * doc/posix-functions/open_wmemstream.texi: New file.
44349         * doc/posix-functions/openat.texi: New file.
44350         * doc/posix-functions/psiginfo.texi: New file.
44351         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
44352         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
44353         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
44354         * doc/posix-functions/readlinkat.texi: New file.
44355         * doc/posix-functions/renameat.texi: New file.
44356         * doc/posix-functions/strerror_l.texi: New file.
44357         * doc/posix-functions/symlinkat.texi: New file.
44358         * doc/posix-functions/unlinkat.texi: New file.
44359         * doc/posix-functions/utimensat.texi: New file.
44360         * doc/gnulib.texi (Function Substitutes): Add these subsections.
44361
44362 2008-12-14  Bruno Haible  <bruno@clisp.org>
44363
44364         Update doc for POSIX:2008.
44365         * doc/posix-functions/alphasort.texi: Renamed from
44366         doc/glibc-functions/alphasort.texi.
44367         * doc/posix-functions/dirfd.texi: Renamed from
44368         doc/glibc-functions/dirfd.texi.
44369         * doc/posix-functions/dprintf.texi: Renamed from
44370         doc/glibc-functions/dprintf.texi.
44371         * doc/posix-functions/duplocale.texi: Renamed from
44372         doc/glibc-functions/duplocale.texi.
44373         * doc/posix-functions/fexecve.texi: Renamed from
44374         doc/glibc-functions/fexecve.texi.
44375         * doc/posix-functions/fmemopen.texi: Renamed from
44376         doc/glibc-functions/fmemopen.texi.
44377         * doc/posix-functions/freelocale.texi: Renamed from
44378         doc/glibc-functions/freelocale.texi.
44379         * doc/posix-functions/getdate_err.texi: Renamed from
44380         doc/glibc-functions/getdate_err.texi.
44381         * doc/posix-functions/isalnum_l.texi: Renamed from
44382         doc/glibc-functions/isalnum_l.texi.
44383         * doc/posix-functions/isalpha_l.texi: Renamed from
44384         doc/glibc-functions/isalpha_l.texi.
44385         * doc/posix-functions/isblank_l.texi: Renamed from
44386         doc/glibc-functions/isblank_l.texi.
44387         * doc/posix-functions/iscntrl_l.texi: Renamed from
44388         doc/glibc-functions/iscntrl_l.texi.
44389         * doc/posix-functions/isdigit_l.texi: Renamed from
44390         doc/glibc-functions/isdigit_l.texi.
44391         * doc/posix-functions/isgraph_l.texi: Renamed from
44392         doc/glibc-functions/isgraph_l.texi.
44393         * doc/posix-functions/islower_l.texi: Renamed from
44394         doc/glibc-functions/islower_l.texi.
44395         * doc/posix-functions/isprint_l.texi: Renamed from
44396         doc/glibc-functions/isprint_l.texi.
44397         * doc/posix-functions/ispunct_l.texi: Renamed from
44398         doc/glibc-functions/ispunct_l.texi.
44399         * doc/posix-functions/isspace_l.texi: Renamed from
44400         doc/glibc-functions/isspace_l.texi.
44401         * doc/posix-functions/isupper_l.texi: Renamed from
44402         doc/glibc-functions/isupper_l.texi.
44403         * doc/posix-functions/iswalnum_l.texi: Renamed from
44404         doc/glibc-functions/iswalnum_l.texi.
44405         * doc/posix-functions/iswalpha_l.texi: Renamed from
44406         doc/glibc-functions/iswalpha_l.texi.
44407         * doc/posix-functions/iswblank_l.texi: Renamed from
44408         doc/glibc-functions/iswblank_l.texi.
44409         * doc/posix-functions/iswcntrl_l.texi: Renamed from
44410         doc/glibc-functions/iswcntrl_l.texi.
44411         * doc/posix-functions/iswctype_l.texi: Renamed from
44412         doc/glibc-functions/iswctype_l.texi.
44413         * doc/posix-functions/iswdigit_l.texi: Renamed from
44414         doc/glibc-functions/iswdigit_l.texi.
44415         * doc/posix-functions/iswgraph_l.texi: Renamed from
44416         doc/glibc-functions/iswgraph_l.texi.
44417         * doc/posix-functions/iswlower_l.texi: Renamed from
44418         doc/glibc-functions/iswlower_l.texi.
44419         * doc/posix-functions/iswprint_l.texi: Renamed from
44420         doc/glibc-functions/iswprint_l.texi.
44421         * doc/posix-functions/iswpunct_l.texi: Renamed from
44422         doc/glibc-functions/iswpunct_l.texi.
44423         * doc/posix-functions/iswspace_l.texi: Renamed from
44424         doc/glibc-functions/iswspace_l.texi.
44425         * doc/posix-functions/iswupper_l.texi: Renamed from
44426         doc/glibc-functions/iswupper_l.texi.
44427         * doc/posix-functions/iswxdigit_l.texi: Renamed from
44428         doc/glibc-functions/iswxdigit_l.texi.
44429         * doc/posix-functions/isxdigit_l.texi: Renamed from
44430         doc/glibc-functions/isxdigit_l.texi.
44431         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
44432         doc/glibc-functions/mbsnrtowcs.texi.
44433         * doc/posix-functions/mkdtemp.texi: Renamed from
44434         doc/glibc-functions/mkdtemp.texi.
44435         * doc/posix-functions/newlocale.texi: Renamed from
44436         doc/glibc-functions/newlocale.texi.
44437         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
44438         doc/glibc-functions/nl_langinfo_l.texi.
44439         * doc/posix-functions/open_memstream.texi: Renamed from
44440         doc/glibc-functions/open_memstream.texi.
44441         * doc/posix-functions/opterr.texi: Renamed from
44442         doc/glibc-functions/opterr.texi.
44443         * doc/posix-functions/optind.texi: Renamed from
44444         doc/glibc-functions/optind.texi.
44445         * doc/posix-functions/optopt.texi: Renamed from
44446         doc/glibc-functions/optopt.texi.
44447         * doc/posix-functions/psignal.texi: Renamed from
44448         doc/glibc-functions/psignal.texi.
44449         * doc/posix-functions/scandir.texi: Renamed from
44450         doc/glibc-functions/scandir.texi.
44451         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
44452         doc/glibc-functions/sched_get_priority_min.texi.
44453         * doc/posix-functions/signgam.texi: Renamed from
44454         doc/glibc-functions/signgam.texi.
44455         * doc/posix-functions/stpcpy.texi: Renamed from
44456         doc/glibc-functions/stpcpy.texi.
44457         * doc/posix-functions/stpncpy.texi: Renamed from
44458         doc/glibc-functions/stpncpy.texi.
44459         * doc/posix-functions/strcasecmp_l.texi: Renamed from
44460         doc/glibc-functions/strcasecmp_l.texi.
44461         * doc/posix-functions/strcoll_l.texi: Renamed from
44462         doc/glibc-functions/strcoll_l.texi.
44463         * doc/posix-functions/strfmon_l.texi: Renamed from
44464         doc/glibc-functions/strfmon_l.texi.
44465         * doc/posix-functions/strftime_l.texi: Renamed from
44466         doc/glibc-functions/strftime_l.texi.
44467         * doc/posix-functions/strncasecmp_l.texi: Renamed from
44468         doc/glibc-functions/strncasecmp_l.texi.
44469         * doc/posix-functions/strndup.texi: Renamed from
44470         doc/glibc-functions/strndup.texi.
44471         * doc/posix-functions/strnlen.texi: Renamed from
44472         doc/glibc-functions/strnlen.texi.
44473         * doc/posix-functions/strsignal.texi: Renamed from
44474         doc/glibc-functions/strsignal.texi.
44475         * doc/posix-functions/strxfrm_l.texi: Renamed from
44476         doc/glibc-functions/strxfrm_l.texi.
44477         * doc/posix-functions/timer_gettime.texi: Renamed from
44478         doc/glibc-functions/timer_gettime.texi.
44479         * doc/posix-functions/tolower_l.texi: Renamed from
44480         doc/glibc-functions/tolower_l.texi.
44481         * doc/posix-functions/toupper_l.texi: Renamed from
44482         doc/glibc-functions/toupper_l.texi.
44483         * doc/posix-functions/towctrans_l.texi: Renamed from
44484         doc/glibc-functions/towctrans_l.texi.
44485         * doc/posix-functions/towlower_l.texi: Renamed from
44486         doc/glibc-functions/towlower_l.texi.
44487         * doc/posix-functions/towupper_l.texi: Renamed from
44488         doc/glibc-functions/towupper_l.texi.
44489         * doc/posix-functions/uselocale.texi: Renamed from
44490         doc/glibc-functions/uselocale.texi.
44491         * doc/posix-functions/vdprintf.texi: Renamed from
44492         doc/glibc-functions/vdprintf.texi.
44493         * doc/posix-functions/wcpcpy.texi:
44494         Renamed from doc/glibc-functions/wcpcpy.texi.
44495         * doc/posix-functions/wcpncpy.texi: Renamed from
44496         doc/glibc-functions/wcpncpy.texi.
44497         * doc/posix-functions/wcscasecmp.texi: Renamed from
44498         doc/glibc-functions/wcscasecmp.texi.
44499         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
44500         doc/glibc-functions/wcscasecmp_l.texi.
44501         * doc/posix-functions/wcscoll_l.texi: Renamed from
44502         doc/glibc-functions/wcscoll_l.texi.
44503         * doc/posix-functions/wcsdup.texi: Renamed from
44504         doc/glibc-functions/wcsdup.texi.
44505         * doc/posix-functions/wcsncasecmp.texi: Renamed from
44506         doc/glibc-functions/wcsncasecmp.texi.
44507         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
44508         doc/glibc-functions/wcsncasecmp_l.texi.
44509         * doc/posix-functions/wcsnlen.texi: Renamed from
44510         doc/glibc-functions/wcsnlen.texi.
44511         * doc/posix-functions/wcsnrtombs.texi: Renamed from
44512         doc/glibc-functions/wcsnrtombs.texi.
44513         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
44514         doc/glibc-functions/wcsxfrm_l.texi.
44515         * doc/posix-functions/wctrans_l.texi: Renamed from
44516         doc/glibc-functions/wctrans_l.texi.
44517         * doc/posix-functions/wctype_l.texi: Renamed from
44518         doc/glibc-functions/wctype_l.texi.
44519         * doc/gnulib.texi (Function Substitutes): Add these subsections.
44520         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
44521         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
44522         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
44523         these subsections.
44524         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
44525         Remove sections.
44526
44527 2008-12-14  Bruno Haible  <bruno@clisp.org>
44528
44529         Update doc for POSIX:2008.
44530         * doc/posix-functions/*.texi: Update URL of POSIX specification.
44531
44532 2008-12-14  Bruno Haible  <bruno@clisp.org>
44533
44534         Update doc for POSIX:2008.
44535         * doc/pastposix-functions/bcmp.texi: Renamed from
44536         doc/posix-functions/bcmp.texi.
44537         * doc/pastposix-functions/bcopy.texi: Renamed from
44538         doc/posix-functions/bcopy.texi.
44539         * doc/pastposix-functions/bsd_signal.texi: Renamed from
44540         doc/posix-functions/bsd_signal.texi.
44541         * doc/pastposix-functions/bzero.texi: Renamed from
44542         doc/posix-functions/bzero.texi.
44543         * doc/pastposix-functions/ecvt.texi: Renamed from
44544         doc/posix-functions/ecvt.texi.
44545         * doc/pastposix-functions/fcvt.texi: Renamed from
44546         doc/posix-functions/fcvt.texi.
44547         * doc/pastposix-functions/ftime.texi: Renamed from
44548         doc/posix-functions/ftime.texi.
44549         * doc/pastposix-functions/gcvt.texi: Renamed from
44550         doc/posix-functions/gcvt.texi.
44551         * doc/pastposix-functions/getcontext.texi: Renamed from
44552         doc/posix-functions/getcontext.texi.
44553         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
44554         doc/posix-functions/gethostbyaddr.texi.
44555         * doc/pastposix-functions/gethostbyname.texi: Renamed from
44556         doc/posix-functions/gethostbyname.texi.
44557         * doc/pastposix-functions/getwd.texi: Renamed from
44558         doc/posix-functions/getwd.texi.
44559         * doc/pastposix-functions/h_errno.texi: Renamed from
44560         doc/posix-functions/h_errno.texi.
44561         * doc/pastposix-functions/index.texi: Renamed from
44562         doc/posix-functions/index.texi.
44563         * doc/pastposix-functions/makecontext.texi: Renamed from
44564         doc/posix-functions/makecontext.texi.
44565         * doc/pastposix-functions/mktemp.texi: Renamed from
44566         doc/posix-functions/mktemp.texi.
44567         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
44568         doc/posix-functions/pthread_attr_getstackaddr.texi.
44569         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
44570         doc/posix-functions/pthread_attr_setstackaddr.texi.
44571         * doc/pastposix-functions/rindex.texi: Renamed from
44572         doc/posix-functions/rindex.texi.
44573         * doc/pastposix-functions/scalb.texi: Renamed from
44574         doc/posix-functions/scalb.texi.
44575         * doc/pastposix-functions/setcontext.texi: Renamed from
44576         doc/posix-functions/setcontext.texi.
44577         * doc/pastposix-functions/swapcontext.texi: Renamed from
44578         doc/posix-functions/swapcontext.texi.
44579         * doc/pastposix-functions/ualarm.texi: Renamed from
44580         doc/posix-functions/ualarm.texi.
44581         * doc/pastposix-functions/usleep.texi: Renamed from
44582         doc/posix-functions/usleep.texi.
44583         * doc/pastposix-functions/vfork.texi: Renamed from
44584         doc/posix-functions/vfork.texi.
44585         * doc/pastposix-functions/wcswcs.texi: Renamed from
44586         doc/posix-functions/wcswcs.texi.
44587         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
44588         (Function Substitutes): Update.
44589
44590 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44591
44592         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
44593         m4/strerror.m4.
44594
44595 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44596             Bruno Haible  <bruno@clisp.org>
44597
44598         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
44599
44600 2008-12-13  Bruno Haible  <bruno@clisp.org>
44601
44602         * modules/strtoull (Depends-on): Remove unistd.
44603
44604 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44605
44606         * modules/strtoull (Depends-on): Add stdlib.
44607
44608 2008-12-11  Simon Josefsson  <simon@josefsson.org>
44609
44610         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
44611
44612 2008-12-10  Jim Meyering  <meyering@redhat.com>
44613
44614         gl_ASSERT: don't say assertions are disabled when they're not
44615         * m4/assert.m4 (gl_ASSERT): Do not make configure report
44616         "checking whether to enable assertions... no", when they are in
44617         fact enabled.  This is solely a bug in the output of configure.
44618         In spite of saying "no", NDEBUG was not defined in that case.
44619         Also, as noted by Eric Blake, leave assertions enabled upon
44620         --enable-assert=INVALID.
44621
44622 2008-12-10  Bruno Haible  <bruno@clisp.org>
44623
44624         Change MODULES.html to refer to POSIX:2008 where possible.
44625         * MODULES.html.sh (POSIX2008_URL): New variable.
44626         (posix_headers): Remove sys/timeb, ucontext.
44627         (posix2001_headers): New variable.
44628         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
44629         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
44630         index, makecontext, mktemp, pthread_attr_getstackaddr,
44631         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
44632         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
44633         (posix2001_functions): New variable.
44634         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
44635         otherwise.
44636
44637 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44638
44639         add missing include to parse-duration.c
44640         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
44641         * modules/parse-duration (Depends-on): Add xalloc.
44642
44643         fix sed script reading maint.mk
44644         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
44645         (syntax-check-rules): Use it.
44646
44647 2008-12-09  Bruno Haible  <bruno@clisp.org>
44648
44649         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
44650         MacOS X 10.4/PowerPC.
44651         Reported by Simon Josefsson.
44652
44653 2008-12-08  Jim Meyering  <meyering@redhat.com>
44654
44655         work around mingw's lack of some S_IF definitions
44656         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
44657         Reported by Simon Josefsson.
44658
44659 2008-12-08  Bruno Haible  <bruno@clisp.org>
44660
44661         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
44662         applied to variables. Needed on MacOS X 10.4/PowerPC.
44663         Reported by Simon Josefsson.
44664
44665 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
44666         and Eric Blake  <ebb9@byu.net>
44667
44668         assert: honor --enable-assert
44669         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
44670         order to honor --enable-assert, rather than treating it as a
44671         synonym for --disable-assert.
44672
44673 2008-12-08  Jim Meyering  <meyering@redhat.com>
44674
44675         * lib/posixtm.c: Remove now-useless declaration of mktime.
44676
44677         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
44678
44679 2008-12-07  Bruno Haible  <bruno@clisp.org>
44680
44681         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
44682         test_once): Mark functions as static.
44683         * tests/test-tls.c (test_tls): Likewise.
44684
44685 2008-12-07  Bruno Haible  <bruno@clisp.org>
44686
44687         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
44688         iconv_register_autodetect.
44689
44690 2008-12-07  Jim Meyering  <meyering@redhat.com>
44691
44692         posixtm.c: avoid a warning
44693         * lib/posixtm.c (posixtime): Don't initialize tm0.
44694         It's no longer needed to placate gcc4's -Wuninitialized,
44695         and the attempt to placate would elicit a new warning.
44696
44697         unicodeio.c: mark unused parameters
44698         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44699         (fallback_failure_callback): Likewise.
44700
44701 2008-12-07  Bruno Haible  <bruno@clisp.org>
44702
44703         * gnulib-tool (func_create_testdir): When building the tests
44704         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
44705         Reported by Simon Josefsson.
44706
44707 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44708
44709         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
44710
44711 2008-12-06  Bruno Haible  <bruno@clisp.org>
44712
44713         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
44714         Suggested by Eric Blake.
44715
44716 2008-12-06  Bruno Haible  <bruno@clisp.org>
44717
44718         Fix a c-stack test failure on MacOS X.
44719         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
44720         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
44721         handler for SIGBUS as well.
44722         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
44723         install a signal handler for SIGBUS as well.
44724         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
44725
44726 2008-12-06  Bruno Haible  <bruno@clisp.org>
44727
44728         Advocacy documentation.
44729         * doc/gnulib-intro.texi (Benefits): New section.
44730         * doc/gnulib.texi: Update.
44731
44732 2008-12-06  Bruno Haible  <bruno@clisp.org>
44733
44734         Document the 'manywarnings' module.
44735         * doc/manywarnings.texi: New file.
44736         * doc/gnulib.texi: Include it.
44737
44738 2008-12-05  Eric Blake  <ebb9@byu.net>
44739
44740         tests: silence some gcc warnings
44741         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
44742         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
44743         type mismatches.
44744
44745 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44746             Bruno Haible  <bruno@clisp.org>
44747
44748         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
44749
44750 2008-11-29  Jim Meyering  <meyering@redhat.com>
44751
44752         unicodeio.c: mark unused parameters
44753         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44754         (fallback_failure_callback): Likewise.
44755
44756         fts: fix a thinko
44757         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
44758         (set_stat_type): Return S_IF*-valued "type" directly.
44759         Prompted by James Youngman's spotting a related bug.
44760         Confirmed by further testing through find.
44761
44762         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
44763         * lib/fts.c (D_TYPE): Define.
44764         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
44765         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
44766         (s_ifmt_shift_bits): New function.
44767         (set_stat_type): New function.
44768         (fts_build): When not calling fts_stat, call set_stat_type
44769         to propagate dirent.d_type info to fts_read caller.
44770         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
44771         fts_statp->st_mode type information may be valid.
44772
44773 2008-11-28  Simon Josefsson  <simon@josefsson.org>
44774
44775         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
44776         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
44777         <sds@gnu.org>.
44778
44779 2008-11-20  Bruno Haible  <bruno@clisp.org>
44780
44781         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
44782         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
44783         INCLUDE_NEXT.
44784         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
44785         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
44786         * modules/math (Makefile.am): Substitute
44787         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
44788         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44789
44790 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
44791             Bruno Haible  <bruno@clisp.org>
44792
44793         * lib/stdint.in.h: Define all type macros so that their expansion is
44794         a single typedef'ed token. Fixes a compilation failure in Boost which
44795         does "using ::int8_t;".
44796
44797 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44798
44799         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
44800         gl_MANYWARN_ALL_GCC.
44801         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
44802         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
44803         * modules/manywarnings: New file.
44804         * MODULES.html.sh: Mention manywarnings module.
44805
44806 2008-11-18  Bruno Haible  <bruno@clisp.org>
44807
44808         * doc/gnulib-tool.texi (Unit tests): New section.
44809
44810 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44811
44812         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
44813         paths like 'lib/po/foo.po'.
44814
44815 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44816
44817         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
44818         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
44819
44820 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44821
44822         * m4/warnings.m4: Use CPPFLAGS to really check whether the
44823         parameter works.
44824
44825 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44826
44827         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
44828
44829 2008-11-17  Bruce Korb  <bkorb@gnu.org>
44830
44831         * modules/parse-duration-tests: New file.
44832         * tests/test-parse-duration.sh: New file.
44833         * tests/test-parse-duration.c: New file.
44834
44835         New module 'parse-duration'.
44836         * lib/parse-duration.h: New file.
44837         * lib/parse-duration.c: New file.
44838         * modules/parse-duration: New file.
44839
44840 2008-11-17  Bruno Haible  <bruno@clisp.org>
44841
44842         * tests/test-select-out.sh: Comment out the first pipe test.
44843         Reported by Simon Josefsson.
44844
44845 2008-11-17  Bruno Haible  <bruno@clisp.org>
44846
44847         * modules/getaddrinfo (Depends-on): Add servent, hostent.
44848         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
44849         gl_HOSTENT.
44850
44851 2008-11-17  Bruno Haible  <bruno@clisp.org>
44852
44853         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
44854         -lnetwork and -lnet. Needed for Haiku and BeOS.
44855
44856 2008-11-16  Bruno Haible  <bruno@clisp.org>
44857
44858         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
44859
44860 2008-11-16  Bruno Haible  <bruno@clisp.org>
44861
44862         Avoid test failure on Haiku.
44863         * tests/test-fsync.c: Include <errno.h>.
44864         (main): Don't require that fsync (0) fails.
44865
44866 2008-11-15  Bruno Haible  <bruno@clisp.org>
44867
44868         New module 'hostent'.
44869         * modules/hostent: New file.
44870         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
44871
44872 2008-11-15  Bruno Haible  <bruno@clisp.org>
44873
44874         New module 'servent'.
44875         * modules/servent: New file.
44876         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
44877
44878 2008-11-15  Bruno Haible  <bruno@clisp.org>
44879
44880         Avoid generating same test program with two different rules.
44881         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
44882         test-frexp to test-frexp-nolibm.
44883         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
44884         test-frexpl to test-frexpl-nolibm.
44885
44886 2008-11-15  Bruno Haible  <bruno@clisp.org>
44887
44888         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
44889         $(FREXPL_LIBM).
44890
44891 2008-11-15  Bruno Haible  <bruno@clisp.org>
44892
44893         * lib/netdb.in.h: Activate the definitions also when the system's
44894         <netdb.h> has 'struct addrinfo'.
44895         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
44896         EAI_OVERFLOW or AI_NUMERICSERV.
44897         * doc/posix-headers/netdb.texi: Document the problem.
44898
44899 2008-11-15  Bruno Haible  <bruno@clisp.org>
44900
44901         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
44902
44903         Make the 'sched' module work on platforms where <sched.h> exists but
44904         is incomplete (such as Haiku).
44905         * lib/sched.in.h; Include the system's <sched.h> if it exists.
44906         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
44907         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
44908         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
44909         HAVE_STRUCT_SCHED_PARAM.
44910         * modules/sched (Depends-on): Add include_next.
44911         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
44912         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
44913         * doc/posix-headers/sched.texi: Document the issue.
44914
44915 2008-11-13  Jim Meyering  <meyering@redhat.com>
44916
44917         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
44918         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
44919         test would fail due to the difference in the Report bugs to ...
44920         line.  The expected address is empty, "<>", while the actual
44921         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
44922
44923 2008-11-12  Bruno Haible  <bruno@clisp.org>
44924
44925         lstat: don't compile lstat.c on systems lacking lstat
44926         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
44927         which don't have lstat; this is handled by lib/sys_stat.in.h already.
44928         Reported by Daniel P. Berrange via Jim Meyering.
44929
44930 2008-11-12  Jim Meyering  <meyering@redhat.com>
44931
44932         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
44933
44934 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44935
44936         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
44937         instead.
44938
44939 2008-11-12  Bruno Haible  <bruno@clisp.org>
44940
44941         * lib/unicodeio.c: Include unistr.h.
44942         (utf8_wctomb): Remove function.
44943         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
44944
44945 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44946
44947         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
44948         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
44949         <bruno@clisp.org>.
44950         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
44951
44952 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44953
44954         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
44955         * doc/gnulib.texi: Add section for warnings.
44956
44957 2008-11-11  Bruno Haible  <bruno@clisp.org>
44958
44959         * lib/sockets.h: Add a comment.
44960
44961 2008-11-11  Karl Berry  <karl@gnu.org>
44962
44963         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
44964
44965 2008-11-11  Eric Blake  <ebb9@byu.net>
44966
44967         fdl.texi: avoid git symlinks
44968         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
44969
44970 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44971
44972         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
44973
44974 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44975
44976         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
44977         (gl_WARN_ADD): Substitute $2 if literal.
44978
44979 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44980
44981         * m4/warning.m4: Remove.
44982
44983 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44984
44985         * m4/warnings.m4: Almost complete rewrite. :-)
44986
44987 2008-11-10  Simon Josefsson  <simon@josefsson.org>
44988
44989         * modules/warnings: New module.
44990         * m4/warnings.m4: New file.
44991         * MODULES.html.sh: Mention warnings module.
44992         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
44993         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44994
44995 2008-11-10  Eric Blake  <ebb9@byu.net>
44996
44997         fdl.texi: make a symlink to the latest version
44998         * doc/standards.texi: Revert today's earlier change.
44999         * doc/fdl-1.2.texi: Rename from old fdl.texi...
45000         * doc/fdl.texi: ...and replace this with a symlink to the newer
45001         fdl-1.3.texi.
45002
45003 2008-11-10  Bruno Haible  <bruno@clisp.org>
45004
45005         * tests/test-select-fd.c (main): Accept the result file name as fourth
45006         argument.
45007         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
45008         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
45009
45010 2008-11-10  Bruno Haible  <bruno@clisp.org>
45011
45012         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
45013         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
45014         as autoconf-substituted macros.
45015         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
45016         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
45017         gl_NETDB_H_DEFAULTS. Set these variables.
45018         * modules/netdb (Makefile.am): Substitute these variables.
45019
45020 2008-11-10  Eric Blake  <ebb9@byu.net>
45021
45022         standards.texi: include correct file for FDL 1.3
45023         * doc/standards.texi (GNU Free Documentation License): Change
45024         include file to pull in FDL 1.3, not 1.2.
45025
45026         fdl.texi: revert accidental change to license
45027         * doc/fdl.texi: This is FDL 1.2, not 1.3.
45028
45029 2008-11-10  Bruno Haible  <bruno@clisp.org>
45030
45031         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
45032         cross-compiling guesses also when the native compile gives no result.
45033
45034 2008-11-10  Bruno Haible  <bruno@clisp.org>
45035
45036         * lib/spawni.c (__spawni): Force variable into the stack.
45037
45038 2008-11-10  Bruno Haible  <bruno@clisp.org>
45039
45040         Add support for Haiku.
45041         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
45042         glibc and BeOS, but also on Haiku.
45043         * lib/fpurge.c (fpurge): Likewise.
45044         * lib/freadable.c (freadable): Likewise.
45045         * lib/freadahead.c (freadahead): Likewise.
45046         * lib/freading.c (freading): Likewise.
45047         * lib/freadptr.c (freadptr): Likewise.
45048         * lib/freadseek.c (freadptrinc): Likewise.
45049         * lib/fseeko.c (rpl_fseeko): Likewise.
45050         * lib/fseterr.c (fseterr): Likewise.
45051         * lib/fwritable.c (fwritable): Likewise.
45052         * lib/fwriting.c (fwriting): Likewise.
45053         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
45054
45055 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
45056
45057         * lib/config.charset: Treat Haiku like BeOS.
45058
45059 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
45060
45061         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
45062         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
45063
45064 2008-11-08  Bruno Haible  <bruno@clisp.org>
45065
45066         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
45067         AC_CACHE_CHECK.
45068
45069 2008-11-08  Bruno Haible  <bruno@clisp.org>
45070
45071         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
45072
45073 2008-11-08  Bruno Haible  <bruno@clisp.org>
45074
45075         * tests/test-select-fd.c: New file.
45076         * tests/test-select-in.sh: New file.
45077         * tests/test-select-out.sh: New file.
45078         * tests/test-select-stdin.c: New file.
45079         * modules/select-tests (Files): Add the new files.
45080         (Depends-on): Add gettimeofday.
45081         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
45082         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
45083         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
45084
45085 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
45086             Bruno Haible  <bruno@clisp.org>
45087
45088         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
45089
45090 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
45091
45092         * build-aux/pmccabe2html: Added support for C++ source files.
45093
45094 2008-11-05  Ben Pfaff  <blp@gnu.org>
45095
45096         Fix lib/close.c build on Windows.
45097         * modules/close (Files): Add lib/w32sock.h.
45098
45099 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
45100
45101         Accept Bison's NEWS format.
45102         * build-aux/announce-gen (print_news_deltas): Tweak
45103         $re_prefix.
45104
45105 2008-11-04  Bruno Haible  <bruno@clisp.org>
45106
45107         * modules/random_r (Maintainer): Add glibc.
45108
45109 2008-11-04  Simon Josefsson  <simon@josefsson.org>
45110
45111         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
45112         by karl@freefriends.org (Karl Berry).
45113         * doc/alloca.texi: Likewise.
45114         * doc/c-ctype.texi: Likewise.
45115         * doc/c-strcase.texi: Likewise.
45116         * doc/c-strcaseeq.texi: Likewise.
45117         * doc/c-strcasestr.texi: Likewise.
45118         * doc/c-strstr.texi: Likewise.
45119         * doc/c-strtod.texi: Likewise.
45120         * doc/c-strtold.texi: Likewise.
45121         * doc/ctime.texi: Likewise.
45122         * doc/error.texi: Likewise.
45123         * doc/fdl.texi: Likewise.
45124         * doc/gcd.texi: Likewise.
45125         * doc/getdate.texi: Likewise.
45126         * doc/gnulib-intro.texi: Likewise.
45127         * doc/gnulib-tool.texi: Likewise.
45128         * doc/gnulib.texi: Likewise.
45129         * doc/inet_ntoa.texi: Likewise.
45130         * doc/maintain.texi: Likewise.
45131         * doc/make-stds.texi: Likewise.
45132         * doc/quote.texi: Likewise.
45133         * doc/regexprops-generic.texi: Likewise.
45134         * doc/standards.texi: Likewise.
45135         * doc/verify.texi: Likewise.
45136         * doc/visibility.texi: Likewise.
45137         * doc/gnulib.texi (GNU Free Documentation License): Include
45138         fdl-1.3.texi instead of fdl.texi.
45139
45140 2008-11-04  Simon Josefsson  <simon@josefsson.org>
45141
45142         * doc/fdl-1.3.texi: New file, from
45143         <http://www.gnu.org/licenses/fdl-1.3.texi>.
45144         * modules/fdl-1.3: Add.
45145         * MODULES.html.sh: Add fdl-1.3.
45146
45147 2008-11-03  Bruno Haible  <bruno@clisp.org>
45148
45149         Make determination of absolute name of header file work with AIX xlc.
45150         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
45151         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
45152         preprocessing.
45153         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45154         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
45155
45156 2008-11-03  Simon Josefsson  <simon@josefsson.org>
45157
45158         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
45159         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
45160         <ludo@gnu.org>.
45161
45162 2008-11-02  Bruno Haible  <bruno@clisp.org>
45163
45164         Mark 'strpbrk' obsolete.
45165         * modules/strpbrk (Status, Notice): New sections.
45166         * modules/strtok_r (Depends-on): Add strpbrk.
45167
45168 2008-11-02  Bruno Haible  <bruno@clisp.org>
45169
45170         Mark 'strdup' obsolete.
45171         * modules/strdup (Status, Notice): New sections.
45172         * modules/findprog (Depends-on): Add strdup.
45173         * modules/getaddrinfo (Depends-on): Likewise.
45174         * modules/localename (Depends-on): Likewise.
45175         * modules/relocatable-lib (Depends-on): Likewise.
45176         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
45177         * modules/relocatable-prog (Depends-on): Likewise.
45178         * modules/trim (Depends-on): Likewise.
45179         * modules/unictype/gen-ctype (Depends-on): Likewise.
45180         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
45181
45182 2008-11-02  Bruno Haible  <bruno@clisp.org>
45183
45184         Mark 'strcspn' obsolete.
45185         * modules/strcspn (Status, Notice): New sections.
45186
45187 2008-11-02  Bruno Haible  <bruno@clisp.org>
45188
45189         Mark 'rmdir' obsolete.
45190         * modules/rmdir (Status, Notice): New sections.
45191         * modules/clean-temp (Depends-on): Add rmdir.
45192         * modules/openat (Depends-on): Likewise.
45193
45194 2008-11-02  Bruno Haible  <bruno@clisp.org>
45195
45196         Mark 'raise' obsolete.
45197         * modules/raise (Status, Notice): New sections.
45198         (Include): Specify <signal.h>.
45199         * modules/stdio (Depends-on): Add raise.
45200         * modules/write (Depends-on): Likewise.
45201
45202 2008-11-02  Bruno Haible  <bruno@clisp.org>
45203
45204         Mark 'memset' obsolete.
45205         * modules/memset (Status, Notice): New sections.
45206
45207 2008-11-02  Bruno Haible  <bruno@clisp.org>
45208
45209         Mark 'memmove' obsolete.
45210         * modules/memmove (Status, Notice): New sections.
45211         * modules/argp (Depends-on): Add memmove.
45212         * modules/argz (Depends-on): Likewise.
45213         * modules/canonicalize (Depends-on): Likewise.
45214         * modules/canonicalize-lgpl (Depends-on): Likewise.
45215         * modules/fts (Depends-on): Likewise.
45216         * modules/getcwd (Depends-on): Likewise.
45217         * modules/human (Depends-on): Likewise.
45218         * modules/regex (Depends-on): Likewise.
45219         * modules/striconveh (Depends-on): Likewise.
45220         * modules/trim (Depends-on): Likewise.
45221         * modules/unistr/u8-move (Depends-on): Likewise.
45222         * modules/unistr/u16-move (Depends-on): Likewise.
45223         * modules/unistr/u32-move (Depends-on): Likewise.
45224
45225 2008-11-02  Bruno Haible  <bruno@clisp.org>
45226
45227         Mark 'memcpy' obsolete.
45228         * modules/memcpy (Status, Notice): New sections.
45229
45230 2008-11-02  Bruno Haible  <bruno@clisp.org>
45231
45232         Mark 'memcmp' obsolete.
45233         * modules/memcmp (Status, Notice): New sections.
45234         * modules/argmatch (Depends-on): Add memchr.
45235         * modules/backupfile (Depends-on): Likewise.
45236         * modules/c-strcasestr (Depends-on): Likewise.
45237         * modules/crypto/des (Depends-on): Likewise.
45238         * modules/csharpcomp (Depends-on): Likewise.
45239         * modules/fnmatch (Depends-on): Likewise.
45240         * modules/git-merge-changelog (Depends-on): Likewise.
45241         * modules/isnand (Depends-on): Likewise.
45242         * modules/isnand-nolibm (Depends-on): Likewise.
45243         * modules/isnanf (Depends-on): Likewise.
45244         * modules/isnanf-nolibm (Depends-on): Likewise.
45245         * modules/isnanl (Depends-on): Likewise.
45246         * modules/isnanl-nolibm (Depends-on): Likewise.
45247         * modules/mbchar (Depends-on): Likewise.
45248         * modules/memcoll (Depends-on): Likewise.
45249         * modules/quotearg (Depends-on): Likewise.
45250         * modules/regex (Depends-on): Likewise.
45251         * modules/relocatable-prog (Depends-on): Likewise.
45252         * modules/same (Depends-on): Likewise.
45253         * modules/signbit (Depends-on): Likewise.
45254         * modules/strcasestr-simple (Depends-on): Likewise.
45255         * modules/unictype/gen-ctype (Depends-on): Likewise.
45256         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
45257         * modules/uniname/uniname (Depends-on): Likewise.
45258         * modules/unistr/u8-cmp (Depends-on): Likewise.
45259
45260 2008-11-02  Bruno Haible  <bruno@clisp.org>
45261
45262         Mark 'memchr' obsolete.
45263         * modules/memchr (Status, Notice): New sections.
45264         * modules/argp (Depends-on): Add memchr.
45265         * modules/base64 (Depends-on): Likewise.
45266         * modules/c-strcasestr (Depends-on): Likewise.
45267         * modules/chdir-long (Depends-on): Likewise.
45268         * modules/fnmatch (Depends-on): Likewise.
45269         * modules/getsubopt (Depends-on): Likewise.
45270         * modules/git-merge-changelog (Depends-on): Likewise.
45271         * modules/glob (Depends-on): Likewise.
45272         * modules/strcasestr-simple (Depends-on): Likewise.
45273         * modules/strnlen (Depends-on): Likewise.
45274
45275 2008-11-02  Bruno Haible  <bruno@clisp.org>
45276
45277         Mark 'atexit' obsolete.
45278         * modules/atexit (Status, Notice): New sections.
45279         * modules/chdir-long (Depends-on): Add atexit.
45280         * modules/wait-process (Depends-on): Likewise.
45281
45282 2008-11-02  Bruno Haible  <bruno@clisp.org>
45283
45284         * gnulib-tool: New option --with-obsolete.
45285         (func_usage): Document it.
45286         (func_modules_transitive_closure): Drop obsolete dependencies if
45287         incobsolete is not true.
45288         (func_import): Read and save the incobsolete variable to the cache.
45289
45290 2008-11-02  Bruno Haible  <bruno@clisp.org>
45291
45292         * modules/TEMPLATE-EXTENDED: New field 'Status'.
45293         * gnulib-tool: New option --extract-status.
45294         (func_usage): Document it.
45295         (sed_extract_prog): Recognize it.
45296         (func_get_status): New function.
45297
45298 2008-10-30  Simon Josefsson  <simon@josefsson.org>
45299
45300         * modules/sockets (License): Change from LGPL to LGPLv2+.
45301
45302 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45303
45304         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
45305
45306 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45307
45308         * MODULES.html.sh (Support for systems lacking POSIX:2001):
45309         Mention times and sys_times.
45310         * modules/sys_times, modules/sys_times-tests: New modules.
45311         * modules/times, modules/times-tests: Likewise
45312         * m4/sys_times_h.m4: New file.
45313         * lib/sys_times.in.h: Likewise
45314         * lib/times.c: Likewise.
45315         * tests/test-sys_times.c: Likewise.
45316         * tests/test-times.c: Likewise.
45317         * doc/posix-headers/sys_times.texi: Update.
45318         * doc/posix-functions/times.texi: Update.
45319
45320 2008-10-28  Jim Meyering  <meyering@redhat.com>
45321
45322         * modules/tempname (Depends-on): Add lstat.
45323
45324         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
45325
45326 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45327
45328         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
45329         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
45330         using idiom used elsewhere in gnulib.
45331
45332 2008-10-27  Jim Meyering  <meyering@redhat.com>
45333
45334         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
45335
45336 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45337
45338         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
45339         TESTS_ENVIRONMENT, for shell scripts that needs to call built
45340         programs.
45341         * tests/test-argp-2.sh: Use $EXEEXT when needed.
45342
45343 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45344
45345         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
45346
45347 2008-10-27  Bruno Haible  <bruno@clisp.org>
45348
45349         * tests/test-lstat.c: Include <stdio.h>.
45350
45351 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45352
45353         * modules/lstat-tests: New module.
45354         * tests/test-lstat.c: New file.
45355
45356 2008-10-26  Jim Meyering  <meyering@redhat.com>
45357
45358         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
45359
45360 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45361             Bruno Haible  <bruno@clisp.org>
45362
45363         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
45364         * modules/configmake (Include): Add a note that the include must come
45365         after all system headers.
45366         * lib/javaversion.c: Include configmake.h after all other includes.
45367
45368 2008-10-26  Bruno Haible  <bruno@clisp.org>
45369
45370         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
45371         HAVE_STRUCT_RANDOM_DATA to 1.
45372         (gl_STDLIB_H): Simplify.
45373
45374 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45375
45376         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
45377         substitute HAVE_STRUCT_RANDOM_DATA.
45378         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
45379         random_data.
45380         * modules/stdlib (Makefile.am): Substitute
45381         HAVE_STRUCT_RANDOM_DATA.
45382
45383 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45384
45385         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
45386         * doc/gnulib-intro.texi (Copyright): Likewise.
45387
45388 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45389
45390         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
45391         findings.
45392
45393 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
45394             Bruno Haible  <bruno@clisp.org>
45395
45396         * lib/unistd.in.h: Include <winsock2.h>.
45397         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
45398         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
45399         Provide dummy declarations.
45400         (gethostname): Override.
45401         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
45402         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
45403         gl_PREREQ_SYS_H_WINSOCK2.
45404         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
45405         * doc/posix-functions/gethostname.texi: More details.
45406
45407 2008-10-25  Bruno Haible  <bruno@clisp.org>
45408
45409         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
45410         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
45411         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
45412
45413         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
45414         here ...
45415         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
45416         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
45417         gl_UNISTD_H_DEFAULTS.
45418
45419 2008-10-25  Eric Blake  <ebb9@byu.net>
45420
45421         signbit: avoid spurious compiler failure
45422         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
45423         declarations inside function.
45424
45425 2008-10-24  Simon Josefsson  <simon@josefsson.org>
45426             Bruno Haible  <bruno@clisp.org>
45427
45428         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
45429         * modules/random_r (Depends-on): Add stdint.
45430
45431 2008-10-24  Bruno Haible  <bruno@clisp.org>
45432
45433         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
45434         Eggert.
45435         * modules/strerror (License): Likewise.
45436
45437 2008-10-24  Jim Meyering  <meyering@redhat.com>
45438
45439         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
45440         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
45441
45442 2008-10-24  Eric Blake  <ebb9@byu.net>
45443
45444         getgroups: fix compilation when getgroups is available
45445         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
45446         but with <config.h> override of getgroups disabled.
45447
45448 2008-10-24  Simon Josefsson  <simon@josefsson.org>
45449
45450         * doc/gnulib.texi (Header files): Add note about C++ problems.
45451         Explained by Bruno Haible <bruno@clisp.org>.
45452
45453 2008-10-23  Bruno Haible  <bruno@clisp.org>
45454
45455         Define a dummy SA_NODEFER macro on Interix.
45456         * lib/signal.in.h (SA_NODEFER): Define fallback.
45457         Reported by Aleksey Cheusov <cheusov@tut.by> via
45458         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
45459
45460 2008-10-23  Bruno Haible  <bruno@clisp.org>
45461
45462         * modules/freadahead (License): Change to LGPLv2+.
45463         Suggested by Simon Josefsson.
45464
45465 2008-10-23  Jim Meyering  <meyering@redhat.com>
45466
45467         random_r: new module
45468         * modules/random_r: New file.
45469         * m4/random_r.m4: New file.
45470         * lib/random_r.c: New file, from glibc.
45471         * modules/random_r-tests: New file.
45472         * tests/test-random_r.c: New file.
45473         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
45474          Declare.
45475         (RAND_MAX): Define.
45476         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
45477         * modules/stdlib: Substitute them, too.
45478         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
45479         * doc/glibc-functions/initstate_r.texi: Mention the new module.
45480         * doc/glibc-functions/random_r.texi: Likewise.
45481         * doc/glibc-functions/setstate_r.texi: Likewise.
45482         * doc/glibc-functions/srandom_r.texi: Likewise.
45483         * config/srclist.txt: Mention it.
45484
45485 2008-10-23  David Lutterkort  <lutter@redhat.com>
45486
45487         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
45488         link requirement
45489
45490 2008-10-23  Jim Meyering  <meyering@redhat.com>
45491
45492         selinux-h: mark parameters of stub functions as intentionally unused
45493         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
45494         * lib/se-context.in.h: Likewise.
45495
45496 2008-10-22  Simon Josefsson  <simon@josefsson.org>
45497
45498         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
45499
45500 2008-10-22  Simon Josefsson  <simon@josefsson.org>
45501
45502         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
45503
45504 2008-10-22  Eric Blake  <ebb9@byu.net>
45505
45506         glthread/thread: avoid compiler warning
45507         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
45508         Add unreachable abort to silence compiler.
45509
45510 2008-10-22  Eric Blake  <ebb9@byu.net>
45511
45512         netdb: also supply struct addrinfo for cygwin 1.5.x
45513         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
45514         older cygwin.
45515         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
45516         cygwin.
45517         * doc/posix-headers/netdb.texi (netdb.h): Document this.
45518
45519 2008-10-22  Bruno Haible  <bruno@clisp.org>
45520
45521         * users.txt: Update entry about pspp.
45522
45523 2008-10-21  Bruno Haible  <bruno@clisp.org>
45524
45525         Simplification.
45526         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
45527         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
45528
45529         Simplification.
45530         * lib/ioctl.c (ioctl): Don't undefine.
45531         * lib/socket.c (socket): Don't undefine.
45532
45533         Remove unused module indicator macros.
45534         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
45535         GNULIB_$1 as a C macro.
45536
45537         * doc/posix-functions/close.texi: Undo last change.
45538         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
45539         Windows platforms.
45540
45541 2008-10-21  Bruno Haible  <bruno@clisp.org>
45542
45543         Add gethostname() declaration to <unistd.h>.
45544         * lib/unistd.in.h (gethostname): New declaration.
45545         * lib/gethostname.c: Include <unistd.h>.
45546         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
45547         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
45548         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
45549         and HAVE_GETHOSTNAME.
45550         * modules/gethostname (Depends-on): Add unistd.
45551         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45552         (Include): Specify <unistd.h>.
45553         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
45554         HAVE_GETHOSTNAME.
45555         * tests/test-gethostname.c: Include <unistd.h> first.
45556
45557 2008-10-21  Bruno Haible  <bruno@clisp.org>
45558
45559         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
45560         * modules/select-tests (Depends-on): Likewise.
45561         Reported by Simon Josefsson.
45562
45563 2008-10-21  Simon Josefsson  <simon@josefsson.org>
45564
45565         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
45566         * lib/accept.c: New file, based on winsock.c.
45567         * lib/bind.c: New file, based on winsock.c.
45568         * lib/connect.c: New file, based on winsock.c.
45569         * lib/getpeername.c: New file, based on winsock.c.
45570         * lib/getsockname.c: New file, based on winsock.c.
45571         * lib/getsockopt.c: New file, based on winsock.c.
45572         * lib/ioctl.c: New file, based on winsock.c.
45573         * lib/listen.c: New file, based on winsock.c.
45574         * lib/recv.c: New file, based on winsock.c.
45575         * lib/recvfrom.c: New file, based on winsock.c.
45576         * lib/send.c: New file, based on winsock.c.
45577         * lib/sendto.c: New file, based on winsock.c.
45578         * lib/setsockopt.c: New file, based on winsock.c.
45579         * lib/shutdown.c: New file, based on winsock.c.
45580         * lib/socket.c: New file, based on winsock.c.
45581         * lib/w32sock.h: New file, based on winsock.c.
45582         * lib/winsock.c: Remove file.
45583         * modules/accept: Likewise.
45584         * modules/bind: Likewise.
45585         * modules/connect: Likewise.
45586         * modules/getpeername: Likewise.
45587         * modules/getsockname: Likewise.
45588         * modules/getsockopt: Likewise.
45589         * modules/ioctl: Likewise.
45590         * modules/listen: Likewise.
45591         * modules/recv: Likewise.
45592         * modules/recvfrom: Likewise.
45593         * modules/send: Likewise.
45594         * modules/sendto: Likewise.
45595         * modules/setsockopt: Likewise.
45596         * modules/shutdown: Likewise.
45597         * modules/socket: Use socket.c instead of winsock.c.
45598         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
45599         * doc/posix-functions/accept.texi: Doc fix.
45600         * doc/posix-functions/bind.texi: Doc fix.
45601         * doc/posix-functions/close.texi: Doc fix.
45602         * doc/posix-functions/connect.texi: Doc fix.
45603         * doc/posix-functions/getpeername.texi: Doc fix.
45604         * doc/posix-functions/getsockname.texi: Doc fix.
45605         * doc/posix-functions/getsockopt.texi: Doc fix.
45606         * doc/posix-functions/ioctl.texi: Doc fix.
45607         * doc/posix-functions/listen.texi: Doc fix.
45608         * doc/posix-functions/recv.texi: Doc fix.
45609         * doc/posix-functions/recvfrom.texi: Doc fix.
45610         * doc/posix-functions/send.texi: Doc fix.
45611         * doc/posix-functions/sendto.texi: Doc fix.
45612         * doc/posix-functions/setsockopt.texi: Doc fix.
45613         * doc/posix-functions/shutdown.texi: Doc fix.
45614         * doc/posix-functions/socket.texi: Doc fix.
45615
45616 2008-10-20  Bruno Haible  <bruno@clisp.org>
45617
45618         Take into account the role of SIGABRT_COMPAT on Windows 2008.
45619         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
45620         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
45621         as an alias for SIGABRT.
45622         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
45623         (sigaction): Map it to SIGABRT.
45624         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
45625
45626 2008-10-20  Bruno Haible  <bruno@clisp.org>
45627
45628         * lib/fts.c: Don't include lstat.h.
45629         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
45630
45631         Move the lstat() declaration to <sys/stat.h>.
45632         * lib/lstat.h: Remove file.
45633         * lib/sys_stat.in.h: Add special invocation convention.
45634         (lstat): New declaration.
45635         * lib/lstat.c (orig_lstat): New function.
45636         (rpl_lstat): Use orig_lstat instead of lstat.
45637         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
45638         AC_C_INLINE. Set REPLACE_LSTAT.
45639         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
45640         and REPLACE_LSTAT.
45641         * modules/lstat (Files): Remove lib/lstat.h.
45642         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45643         (Include): Specify <sys/stat.h> instead of lstat.h.
45644         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
45645         REPLACE_LSTAT.
45646         * NEWS: Mention the change.
45647
45648 2008-10-20  Bruno Haible  <bruno@clisp.org>
45649
45650         * modules/posix_spawn-tests: New file.
45651         * tests/test-posix_spawn3.c: New file.
45652
45653 2008-10-20  Bruno Haible  <bruno@clisp.org>
45654
45655         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
45656         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
45657         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
45658         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
45659         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
45660
45661 2008-10-20  Bruno Haible  <bruno@clisp.org>
45662
45663         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
45664         of posix_spawn on AIX 5.3.
45665
45666 2008-10-20  Bruno Haible  <bruno@clisp.org>
45667
45668         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
45669
45670 2008-10-20  Bruno Haible  <bruno@clisp.org>
45671
45672         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
45673         of AC_LANG_PROGRAM.
45674
45675 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45676
45677         * lib/netdb.in.h: Don't define GNU specific constants until they
45678         are supported or needed.  Reported by Bruno Haible
45679         <bruno@clisp.org>.
45680
45681 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45682
45683         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
45684
45685 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45686
45687         * lib/getaddrinfo.h: Remove file.
45688         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
45689         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
45690         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
45691         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
45692         * modules/netdb: Substitute GNULIB_GETADDRINFO.
45693         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
45694         * tests/test-getaddrinfo.c: Likewise.
45695         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
45696         * NEWS: Mention change.
45697
45698 2008-10-19  Bruno Haible  <bruno@clisp.org>
45699
45700         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
45701
45702 2008-10-19  Bruno Haible  <bruno@clisp.org>
45703
45704         * lib/wait-process.c: Include simply <sys/wait.h>.
45705         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
45706         WIFSTOPPED): Remove fallback definitions.
45707         * modules/wait-process (Depends-on): Add sys_wait.
45708
45709         New module 'sys_wait'.
45710         * modules/sys_wait: New file.
45711         * lib/sys_wait.in.h: New file, partially copied from
45712         lib/wait-process.c.
45713         * m4/sys_wait_h.m4: New file.
45714         * doc/posix-headers/sys_wait.texi: Mention the new module.
45715
45716 2008-10-19  Bruno Haible  <bruno@clisp.org>
45717
45718         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
45719
45720 2008-10-19  Bruno Haible  <bruno@clisp.org>
45721
45722         Assume that waitpid() fills an 'int' status, not a 'union wait'.
45723         * lib/wait-process.c (WAIT_T): Remove type.
45724         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
45725         (wait_subprocess): Update.
45726
45727 2008-10-19  Bruno Haible  <bruno@clisp.org>
45728
45729         New module 'atoll'.
45730         * modules/atoll: New file.
45731         * lib/stdlib.in.h (atoll): New declaration.
45732         * lib/atoll.c: New file, from glibc with modifications.
45733         * m4/atoll.m4: New file.
45734         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
45735         HAVE_ATOLL.
45736         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
45737         * doc/posix-functions/atoll.texi: Mention the new module.
45738
45739 2008-10-19  Bruno Haible  <bruno@clisp.org>
45740
45741         Add strtoull() declaration to <stdlib.h>.
45742         * lib/stdlib.in.h (strtoull): New declaration.
45743         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45744         Set HAVE_STRTOULL.
45745         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
45746         HAVE_STRTOULL.
45747         * modules/strtoull (Depends-on): Add stdlib.
45748         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45749         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
45750         HAVE_STRTOULL.
45751
45752 2008-10-19  Bruno Haible  <bruno@clisp.org>
45753
45754         Add strtoll() declaration to <stdlib.h>.
45755         * lib/stdlib.in.h (strtoll): New declaration.
45756         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45757         Set HAVE_STRTOLL.
45758         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
45759         HAVE_STRTOLL.
45760         * modules/strtoll (Depends-on): Add stdlib.
45761         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45762         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
45763
45764 2008-10-19  Bruno Haible  <bruno@clisp.org>
45765
45766         * modules/bcopy (Depends-on): Add strings.
45767         (Include): Specify <strings.h>.
45768
45769 2008-10-19  Bruno Haible  <bruno@clisp.org>
45770
45771         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
45772
45773 2008-10-19  Bruno Haible  <bruno@clisp.org>
45774
45775         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
45776         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
45777         mingw.
45778
45779 2008-10-19  Bruno Haible  <bruno@clisp.org>
45780
45781         * lib/atanl.c: Don't include isnanl.h.
45782         * lib/cosl.c: Likewise.
45783         * lib/ldexpl.c: Likewise.
45784         * lib/logl.c: Likewise.
45785         * lib/sinl.c: Likewise.
45786         * lib/sqrtl.c: Likewise.
45787         * lib/tanl.c: Likewise.
45788
45789         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
45790         * lib/isnanf.h: Remove file.
45791         * lib/isnand.h: Remove file.
45792         * lib/isnanl.h: Remove file.
45793         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
45794         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
45795         macros.
45796         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
45797         HAVE_ISNANF, don't define it as a C macro.
45798         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
45799         HAVE_ISNAND, don't define it as a C macro.
45800         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
45801         HAVE_ISNANL, don't define it as a C macro.
45802         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
45803         HAVE_ISNAN[FDL].
45804         * modules/isnanf (Files): Remove lib/isnanf.h.
45805         (Depends-on): Add math.
45806         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45807         (Include): Specify <math.h> instead of isnanf.h.
45808         * modules/isnand (Files): Remove lib/isnand.h.
45809         (Depends-on): Add math.
45810         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45811         (Include): Specify <math.h> instead of isnand.h.
45812         * modules/isnanl (Files): Remove lib/isnanl.h.
45813         (Depends-on): Add math.
45814         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45815         (Include): Specify <math.h> instead of isnanl.h.
45816         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
45817         HAVE_ISNAN[FDL].
45818         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
45819         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
45820         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
45821         * NEWS: Mention the change.
45822
45823 2008-10-18  Bruno Haible  <bruno@clisp.org>
45824
45825         Add getusershell(), setusershell(), endusershell() declarations to
45826         <unistd.h>.
45827         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
45828         declarations.
45829         * lib/getusershell.c: Include unistd.h.
45830         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
45831         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45832         HAVE_GETUSERSHELL.
45833         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
45834         and HAVE_GETUSERSHELL.
45835         * modules/getusershell (Depends-on): Add unistd, extensions.
45836         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45837         (Include): Specify <unistd.h>.
45838         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
45839         HAVE_GETUSERSHELL.
45840
45841 2008-10-18  Bruno Haible  <bruno@clisp.org>
45842
45843         Add a getloadavg() declaration to <stdlib.h>.
45844         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
45845         getloadavg declaration.
45846         (getloadavg): New declaration.
45847         * lib/getloadavg.c: Include <stdlib.h> first.
45848         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
45849         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
45850         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
45851         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
45852         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45853         * modules/getloadavg (Depends-on): Add stdlib, extensions.
45854         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45855         (Include): Specify <stdlib.h>.
45856         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
45857         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45858
45859 2008-10-18  Bruno Haible  <bruno@clisp.org>
45860
45861         * lib/dirchownmod.c: Don't include lchmod.h.
45862
45863         Move the lchmod() declaration to <sys/stat.h>.
45864         * lib/lchmod.h: Remove file.
45865         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
45866         (lchmod): New declaration, moved here from lib/lchown.h.
45867         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
45868         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
45869         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
45870         and HAVE_LCHMOD.
45871         * modules/lchmod (Files): Remove lib/lchmod.h.
45872         (Depends-on): Add sys_stat, extensions.
45873         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45874         (Include): Specify <sys/stat.h> instead of lchmod.h.
45875         * modules/sys_stat (Depends-on): Add link-warning.
45876         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
45877         definition of GL_LINK_WARNING.
45878         * NEWS: Mention the change.
45879
45880 2008-10-18  Bruno Haible  <bruno@clisp.org>
45881
45882         * lib/fchdir.c: Don't include dirfd.h.
45883         * lib/fts.c: Likewise.
45884         * lib/getcwd.c: Likewise.
45885         * lib/glob.c: Likewise.
45886
45887         Move the dirfd() declaration to <dirent.h>.
45888         * lib/dirfd.h: Remove file.
45889         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
45890         (dirfd): New declaration.
45891         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
45892         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
45893         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
45894         HAVE_DECL_DIRFD.
45895         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
45896         HAVE_DECL_DIRFD.
45897         * modules/dirfd (Files): Remove lib/dirfd.h.
45898         (Depends-on): Add dirent, extensions.
45899         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
45900         (Include): Specify <dirent.h> instead of dirfd.h.
45901         * modules/dirent (Depends-on): Add link-warning.
45902         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
45903         definition of GL_LINK_WARNING.
45904         * NEWS: Mention the change.
45905
45906 2008-10-18  Bruno Haible  <bruno@clisp.org>
45907
45908         Move the euidaccess() declaration to <unistd.h>.
45909         * lib/euidaccess.h: Remove file.
45910         * lib/unistd.in.h (euidaccess): New declaration.
45911         * lib/euidaccess.c: Don't include euidaccess.h.
45912         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
45913         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
45914         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
45915         and HAVE_EUIDACCESS.
45916         * modules/euidaccess (Files): Remove lib/euidaccess.h.
45917         (Depends-on): Add unistd.
45918         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45919         (Include): Specify <unistd.h> instead of euidaccess.h.
45920         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
45921         HAVE_EUIDACCESS.
45922         * NEWS: Mention the change.
45923
45924 2008-10-18  Bruno Haible  <bruno@clisp.org>
45925
45926         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
45927
45928         Move the getdomainname() declaration to <unistd.h>.
45929         * lib/getdomainname.h: Remove file.
45930         * lib/unistd.in.h (getdomainname): New declaration.
45931         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
45932         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
45933         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45934         HAVE_GETDOMAINNAME.
45935         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45936         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
45937         * modules/getdomainname (Files): Remove lib/getdomainname.h.
45938         (Depends-on): Add unistd, extensions.
45939         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45940         (Includes): Specify <unistd.h> instead of getdomainname.h.
45941         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
45942         HAVE_GETDOMAINNAME.
45943         * NEWS: Mention the change.
45944
45945 2008-10-18  Bruno Haible  <bruno@clisp.org>
45946
45947         * modules/dirent: New file.
45948         * m4/dirent_h.m4: New file.
45949         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
45950         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
45951         * modules/fchdir (Files): Remove lib/dirent.in.h.
45952         (Depends-on): Add dirent.
45953         (Makefile.am): Move rules to modules/dirent.
45954         * doc/posix-headers/dirent.texi: Mention the new module.
45955
45956 2008-10-18  Bruno Haible  <bruno@clisp.org>
45957
45958         Avoid -Wunused-parameter warnings in public gnulib header files.
45959         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
45960         macro.
45961         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
45962
45963 2008-10-18  Bruno Haible  <bruno@clisp.org>
45964
45965         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
45966         * doc/glibc-functions/error.texi: Mention the module 'error'.
45967         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
45968         * doc/glibc-functions/getdomainname.texi: Mention the module
45969         'getdomainname'.
45970         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
45971         * doc/glibc-functions/getpagesize.texi: Mention the module
45972         'getpagesize'.
45973         * doc/glibc-functions/getusershell.texi: Mention the module
45974         'getusershell'.
45975         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
45976         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
45977         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
45978         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
45979         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
45980         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
45981         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
45982         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
45983         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
45984         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
45985         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
45986         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
45987         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
45988         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
45989
45990 2008-10-17  Bruno Haible  <bruno@clisp.org>
45991
45992         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
45993         HP-UX and IRIX, use -0.0L.
45994         * tests/test-ceill.c (minus_zero): Likewise.
45995         * tests/test-floorl.c (minus_zero): Likewise.
45996         * tests/test-frexpl.c (minus_zero): Likewise.
45997         * tests/test-isnan.c (minus_zerol): Likewise.
45998         * tests/test-isnanl.h (minus_zero): Likewise.
45999         * tests/test-ldexpl.c (minus_zero): Likewise.
46000         * tests/test-roundl.c (minus_zero): Likewise.
46001         * tests/test-signbit.c (minus_zerol): Likewise.
46002         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
46003         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
46004         * tests/test-truncl.c (minus_zero): Likewise.
46005         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
46006         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
46007         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
46008         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
46009
46010 2008-10-17  Bruno Haible  <bruno@clisp.org>
46011
46012         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
46013         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
46014         that it gets activated only for gcc >= 3.0.
46015         * lib/dirent.in.h: Likewise.
46016         * lib/errno.in.h: Likewise.
46017         * lib/fcntl.in.h: Likewise.
46018         * lib/float.in.h: Likewise.
46019         * lib/iconv.in.h: Likewise.
46020         * lib/inttypes.in.h: Likewise.
46021         * lib/locale.in.h: Likewise.
46022         * lib/math.in.h: Likewise.
46023         * lib/netdb.in.h: Likewise.
46024         * lib/netinet_in.in.h: Likewise.
46025         * lib/search.in.h: Likewise.
46026         * lib/signal.in.h: Likewise.
46027         * lib/spawn.in.h: Likewise.
46028         * lib/stdarg.in.h: Likewise.
46029         * lib/stdint.in.h: Likewise.
46030         * lib/stdio.in.h: Likewise.
46031         * lib/stdlib.in.h: Likewise.
46032         * lib/string.in.h: Likewise.
46033         * lib/strings.in.h: Likewise.
46034         * lib/sys_file.in.h: Likewise.
46035         * lib/sys_ioctl.in.h: Likewise.
46036         * lib/sys_select.in.h: Likewise.
46037         * lib/sys_socket.in.h: Likewise.
46038         * lib/sys_stat.in.h: Likewise.
46039         * lib/sys_time.in.h: Likewise.
46040         * lib/sysexits.in.h: Likewise.
46041         * lib/time.in.h: Likewise.
46042         * lib/unistd.in.h: Likewise.
46043         * lib/wchar.in.h: Likewise.
46044         * lib/wctype.in.h: Likewise.
46045         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46046
46047 2008-10-17  Jim Meyering  <meyering@redhat.com>
46048
46049         ignore-value: don't depend on inline module
46050         * modules/ignore-value (Depends-on): Remove 'inline'.
46051         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
46052         Suggestion from Bruno Haible.
46053
46054 2008-10-17  Bruno Haible  <bruno@clisp.org>
46055
46056         New implementation of condition variables for Win32.
46057         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
46058         (gl_linked_waitqueue_t): New type.
46059         (gl_cond_t): Use it.
46060         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
46061         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
46062         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
46063         (glthread_cond_init_func, glthread_cond_wait_func,
46064         glthread_cond_timedwait_func, glthread_cond_signal_func,
46065         glthread_cond_broadcast_func, glthread_cond_destroy_func):
46066         Reimplemented on the basis of gl_linked_waitqueue_t.
46067         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
46068         gl_waitqueue_t.
46069         (gl_rwlock_t): Update.
46070         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
46071
46072 2008-10-17  Simon Josefsson  <simon@josefsson.org>
46073
46074         * modules/recvfrom (Depends-on): Add dependency on getpeername.
46075         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46076
46077 2008-10-17  Jim Meyering  <meyering@redhat.com>
46078
46079         ignore-value: new module
46080         * modules/ignore-value: New file.
46081         * lib/ignore-value.h: New file.
46082         * MODULES.html.sh (Compiler warning management): New section,
46083         just for this module.  More to come.
46084
46085 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46086
46087         open-safer.c: avoid 'signed and unsigned in conditional...' warning
46088         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
46089         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
46090
46091 2008-10-16  Jim Meyering  <meyering@redhat.com>
46092
46093         openat-die.c: avoid 'no previous prototype' warning
46094         * lib/openat-die.c: Include "openat.h".
46095         Reported by Reuben Thomas <rrt@sc3d.org>.
46096
46097 2008-10-16  Simon Josefsson  <simon@josefsson.org>
46098
46099         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
46100         * lib/netdb.in.h: Fix typo.
46101         Reported by Bruno Haible  <bruno@clisp.org>
46102
46103         * lib/netdb.in.h: Include sys/socket.h for platforms without
46104         netdb.h, to get structures like hostent on MinGW.
46105         * modules/netdb (Depends-on): Add sys_socket.
46106
46107 2008-10-15  Simon Josefsson  <simon@josefsson.org>
46108
46109         * modules/netdb, modules/netdb-tests: New file.
46110         * m4/netdb_h.m4: New file.
46111         * lib/netdb.in.h: Add, currently just an empty file pending
46112         definitions.
46113         * tests/test-netdb.c: New file.
46114         * doc/posix-headers/netdb.texi: Mention that we replace it if
46115         needed.
46116         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46117         netdb.
46118
46119 2008-10-15  Simon Josefsson  <simon@josefsson.org>
46120
46121         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
46122         with code.
46123
46124 2008-10-13  Bruno Haible  <bruno@clisp.org>
46125
46126         * lib/glthread/cond.c (glthread_cond_wait_func,
46127         glthread_cond_timedwait_func): Add a comment.
46128
46129 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
46130
46131         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
46132         * tests/test-select.c: Likewise,
46133
46134 2008-10-13  Bruno Haible  <bruno@clisp.org>
46135
46136         * lib/glthread/cond.c (glthread_cond_wait_func,
46137         glthread_cond_timedwait_func): Fix variable name.
46138         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46139
46140 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
46141
46142         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
46143         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
46144         struct sockaddr.sa_len.
46145         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
46146
46147 2008-10-13  Simon Josefsson  <simon@josefsson.org>
46148
46149         * build-aux/pmccabe2html: Add css and css_url parameters.
46150
46151 2008-10-12  Bruno Haible  <bruno@clisp.org>
46152
46153         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
46154         calling aclx_get.
46155         Reported by Rainer Tammer <tammer@tammer.net>.
46156
46157 2008-10-12  Bruno Haible  <bruno@clisp.org>
46158
46159         Use msvcrt aware primitives for creation/termination of Win32 threads.
46160         * lib/glthread/thread.c: Include <process.h>.
46161         (glthread_create_func): Use _beginthreadex instead of CreateThread.
46162         (wrapper_func): Update signature.
46163         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
46164
46165 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
46166             Bruno Haible  <bruno@clisp.org>
46167
46168         Provide a Win32 implementation of the 'cond' module.
46169         * lib/glthread/cond.h [USE_WIN32]: New implementation.
46170         * lib/glthread/cond.c (glthread_cond_init_func,
46171         glthread_cond_wait_func, glthread_cond_timedwait_func,
46172         glthread_cond_signal_func, glthread_cond_broadcast_func,
46173         glthread_cond_destroy_func) [USE_WIN32]: New functions.
46174         * modules/cond (Dependencies): Add gettimeofday.
46175
46176 2008-10-11  Bruno Haible  <bruno@clisp.org>
46177
46178         Make sleep work on older versions of mingw.
46179         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
46180         only whether it exists.
46181         * doc/posix-functions/sleep.texi: Mention the problem with older
46182         versions of mingw.
46183
46184 2008-10-11  Bruno Haible  <bruno@clisp.org>
46185
46186         New module 'shutdown'.
46187         * modules/shutdown: New file.
46188         * lib/sys_socket.in.h (shutdown): New declaration.
46189         * lib/winsock.c (shutdown): New function.
46190         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
46191         GNULIB_SHUTDOWN.
46192         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
46193         * doc/posix-functions/shutdown.texi: Document the new module.
46194
46195 2008-10-11  Jim Meyering  <meyering@redhat.com>
46196
46197         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
46198
46199 2008-10-11  Bruno Haible  <bruno@clisp.org>
46200
46201         New module 'fclose'.
46202         * modules/fclose: New file.
46203         * lib/stdio.in.h (fclose): New declaration.
46204         * lib/fclose.c: New file.
46205         * m4/fclose.m4: New file.
46206         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
46207         REPLACE_FCLOSE.
46208         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
46209         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
46210         REPLACE_FCLOSE.
46211         * modules/close (Depends-on): fclose.
46212         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
46213
46214 2008-10-11  Bruno Haible  <bruno@clisp.org>
46215
46216         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
46217         set errno and don't call _close.
46218
46219 2008-10-10  Bruno Haible  <bruno@clisp.org>
46220
46221         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
46222         ACL, not afterwards. Fixes test failure on Cygwin.
46223
46224 2008-10-09  Ben Pfaff  <blp@gnu.org>
46225
46226         * build-aux/announce-gen: Fix gnulib version related part of usage
46227         message.  Die with a useful error message if no tarballs are
46228         found.
46229
46230 2008-10-10  Jim Meyering  <meyering@redhat.com>
46231
46232         bootstrap: use git's --depth=N option only if it's supported
46233         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
46234         recognize the --depth option.  Reported by Pádraig Brady.
46235
46236 2008-10-09  Bruno Haible  <bruno@clisp.org>
46237
46238         New module 'ioctl'.
46239         * modules/ioctl: New file.
46240         * lib/sys_socket.in.h (ioctl): Remove declaration.
46241         * lib/winsock.c: Include <sys/ioctl.h>.
46242         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
46243         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
46244         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
46245         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
46246         * doc/posix-functions/ioctl.texi: Mention the new module.
46247
46248 2008-10-09  Bruno Haible  <bruno@clisp.org>
46249
46250         New module 'sys_ioctl'.
46251         * lib/sys_ioctl.in.h: New file.
46252         * m4/sys_ioctl_h.m4: New file.
46253         * modules/sys_ioctl: New file.
46254         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
46255
46256 2008-10-09  Bruno Haible  <bruno@clisp.org>
46257
46258         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
46259         * lib/winsock.c: Include <stdarg.h>.
46260         (rpl_ioctl): Change to second argument 'int' and then varargs.
46261
46262 2008-10-09  Bruno Haible  <bruno@clisp.org>
46263
46264         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
46265         when the sys_socket module is present and the system has <winsock2.h>.
46266
46267 2008-10-09  Bruno Haible  <bruno@clisp.org>
46268
46269         * doc/posix-functions/close.texi: Mention module 'close' instead of
46270         module 'sys_socket'.
46271
46272 2008-10-09  Bruno Haible  <bruno@clisp.org>
46273
46274         * doc/glibc-headers/sys_ioctl.texi: New file.
46275         * doc/gnulib.texi: Include it.
46276
46277 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46278             Bruno Haible  <bruno@clisp.org>
46279
46280         Combine the two replacements of 'close'.
46281         * lib/sys_socket.in.h (close): Define to a reminder to include
46282         <unistd.h>.
46283         (_gl_close_fd_maybe_socket): New declaration.
46284         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
46285         * lib/winsock.c (close): Remove undefinition.
46286         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
46287         needed for the gnulib module 'close'.
46288         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
46289         define to an error symbol or to a warning, if suitable.
46290         * lib/close.c: Include <sys/socket.h>.
46291         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
46292         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
46293         UNISTD_H_HAVE_WINSOCK2_H.
46294         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
46295         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46296         UNISTD_H_HAVE_WINSOCK2_H.
46297         * modules/sys_socket (Files): Add m4/unistd_h.m4.
46298         (configure.ac): Set a module indicator.
46299         (Makefile.am): Substitute GNULIB_CLOSE.
46300         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
46301         * modules/poll-tests (Depends-on): Add close.
46302         * modules/select-tests (Depends-on): Likewise.
46303
46304 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46305             Bruno Haible  <bruno@clisp.org>
46306
46307         New module 'close'.
46308         * modules/close: New file.
46309         * lib/unistd.in.h (close): Move declaration out of the
46310         FCHDIR_REPLACEMENT scope.
46311         (_gl_unregister_fd): New declaration.
46312         * lib/close.c: New file.
46313         * lib/fchdir.c (rpl_close): Remove function.
46314         * m4/close.m4: New file.
46315         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
46316         close.
46317         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
46318         REPLACE_CLOSE.
46319         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
46320         REPLACE_CLOSE.
46321         * modules/fchdir (Depends-on): Add close.
46322
46323 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46324             Bruno Haible  <bruno@clisp.org>
46325
46326         * lib/fcntl.in.h (open): Simplify conditionals.
46327         (_gl_register_fd): New declaration.
46328         * lib/fchdir.c (rpl_open): Remove function.
46329         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
46330         also.
46331         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
46332         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
46333         open.
46334
46335 2008-10-09  Jim Meyering  <meyering@redhat.com>
46336
46337         GNUmakefile: use the more name-space-friendly "_version"
46338         * top/GNUmakefile (_dummy): Update.
46339         (_version): Rename from "version".
46340
46341 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46342             Bruno Haible  <bruno@clisp.org>
46343
46344         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
46345         rpl_close.
46346         (_gl_register_fd): New function, extracted from rpl_open.
46347         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
46348         (rpl_open, rpl_opendir): Use _gl_register_fd.
46349
46350 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46351
46352         Fix organization of 'open' replacement.
46353         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
46354         (gl_FUNC_OPEN): Use it.
46355         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
46356
46357 2008-10-08  Bruno Haible  <bruno@clisp.org>
46358
46359         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
46360
46361 2008-10-08  Simon Josefsson  <simon@josefsson.org>
46362
46363         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
46364         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
46365         listen).
46366
46367 2008-10-08  Eric Blake  <ebb9@byu.net>
46368
46369         GNUmakefile: add 'make version' target
46370         * top/GNUmakefile (_curr-ver): Split version update rules...
46371         (version): ...into a target.
46372
46373 2008-10-07  Bruno Haible  <bruno@clisp.org>
46374
46375         Use a more portable replacement expression for -0.0L.
46376         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
46377         instead of -0.0L. Fix m4 quotation.
46378
46379         * tests/test-signbit.c: Include <float.h>.
46380         (minus_zero): New variable.
46381         (test_signbitl): Use minus_zero instead of -zero.
46382         * modules/signbit-tests (Depends-on): Add float.
46383
46384         * tests/test-ceill.c: Include <float.h>.
46385         (zero): Remove variable.
46386         (minus_zero): New variable.
46387         (main): Use minus_zero instead of -zero.
46388         * modules/ceill-tests (Depends-on): Add float.
46389
46390         * tests/test-floorl.c: Include <float.h>.
46391         (zero): Remove variable.
46392         (minus_zero): New variable.
46393         (main): Use minus_zero instead of -zero.
46394         * modules/floorl-tests (Depends-on): Add float.
46395
46396         * tests/test-roundl.c: Include <float.h>.
46397         (zero): Remove variable.
46398         (minus_zero): New variable.
46399         (main): Use minus_zero instead of -zero.
46400         * modules/roundl-tests (Depends-on): Add float.
46401
46402         * tests/test-truncl.c: Include <float.h>.
46403         (zero): Remove variable.
46404         (minus_zero): New variable.
46405         (main): Use minus_zero instead of -zero.
46406         * modules/truncl-tests (Depends-on): Add float.
46407
46408         * tests/test-frexpl.c (zero): Remove variable.
46409         (minus_zero): New variable.
46410         (main): Use minus_zero instead of -zero.
46411         * modules/frexpl-tests (Depends-on): Add float.
46412
46413         * tests/test-isnan.c (zerol): Remove variable.
46414         (minus_zerol): New variable.
46415         (test_long_double): Use minus_zerol instead of -zerol.
46416         * modules/isnan-tests (Depends-on): Add float.
46417
46418         * tests/test-isnanl.h (zero): Remove variable.
46419         (minus_zero): New variable.
46420         (main): Use minus_zero instead of -zero.
46421         * modules/isnanl-nolibm-tests (Depends-on): Add float.
46422         * modules/isnanl-tests (Depends-on): Add float.
46423
46424         * tests/test-ldexpl.c (zero): Remove variable.
46425         (minus_zero): New variable.
46426         (main): Use minus_zero instead of -zero.
46427         * modules/ldexpl-tests (Depends-on): Add float.
46428
46429         * tests/test-snprintf-posix.h (zerol): Remove variable.
46430         (minus_zerol): New variable.
46431         (test_function): Use minus_zerol instead of -zerol.
46432         * modules/snprintf-posix-tests (Depends-on): Add float.
46433         * modules/vsnprintf-posix-tests (Depends-on): Add float.
46434
46435         * tests/test-sprintf-posix.h (zerol): Remove variable.
46436         (minus_zerol): New variable.
46437         (test_function): Use minus_zerol instead of -zerol.
46438         * modules/sprintf-posix-tests (Depends-on): Add float.
46439         * modules/vsprintf-posix-tests (Depends-on): Add float.
46440
46441         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
46442         (minus_zerol): New variable.
46443         (test_function): Use minus_zerol instead of -zerol.
46444         * modules/vasnprintf-posix-tests (Depends-on): Add float.
46445
46446         * tests/test-vasprintf-posix.c (zerol): Remove variable.
46447         (minus_zerol): New variable.
46448         (test_function): Use minus_zerol instead of -zerol.
46449         * modules/vasprintf-posix-tests (Depends-on): Add float.
46450
46451 2008-10-07  Simon Josefsson  <simon@josefsson.org>
46452
46453         * MODULES.html.sh (Support for building documentation): Mention
46454         pmccabe2html.  Sort entries.
46455
46456         Add pmccabe2html module, from gnupdf.
46457         * build-aux/pmccabe.css: New file.
46458         * build-aux/pmccabe2html: New file.
46459         * m4/pmccabe2html.m4: New file.
46460         * modules/pmccabe2html: New file.
46461
46462 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
46463
46464         flock: new module
46465         * MODULES.html.sh: Add to list of modules.
46466         * lib/flock.c: flock implementation for Windows and Unix systems
46467         which have fcntl.
46468         * doc/glibc-functions/flock.texi: Update documentation.
46469         * lib/sys_file.in.h: <sys/file.h> header file.
46470         * m4/flock.m4: M4 macros.
46471         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
46472         * modules/flock: flock module.
46473         * modules/flock-tests: flock tests module.
46474         * modules/sys_file: sys/file.h module.
46475         * tests/test-flock.c: test suite for flock.
46476
46477 2008-10-06  Jim Meyering  <meyering@redhat.com>
46478
46479         bootstrap: check for LT_INIT more portably still ;-)
46480         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
46481         Spotted by Bruno Haible.
46482
46483 2008-10-06  Eric Blake  <ebb9@byu.net>
46484
46485         test-signbit: avoid tripping Irix cc bug on -0.0L
46486         * tests/test-signbit.c (minus_zerol): Delete, and replace with
46487         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
46488         entire testsuite consistent and avoids an Irix 6.2 bug.
46489
46490 2008-10-05  Bruno Haible  <bruno@clisp.org>
46491             Jim Meyering  <jim@meyering.net>
46492
46493         Add an option for ignoring EPIPE during close_stdout.
46494         * lib/closeout.h: Include <stdbool.h>.
46495         (close_stdout_set_ignore_EPIPE): New declaration.
46496         * lib/closeout.c: Include <stdbool.h>.
46497         (ignore_EPIPE): New variable.
46498         (close_stdout_set_ignore_EPIPE): New function.
46499         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
46500         * lib/close-stream.c (close_stream): Mention the possible EPIPE
46501         failure.
46502         * modules/closeout (Depends-on): Add stdbool.
46503
46504 2008-10-05  Bruno Haible  <bruno@clisp.org>
46505
46506         * modules/accept: New file.
46507         * modules/bind: New file.
46508         * modules/connect: New file.
46509         * modules/getpeername: New file.
46510         * modules/getsockname: New file.
46511         * modules/getsockopt: New file.
46512         * modules/listen: New file.
46513         * modules/recv: New file.
46514         * modules/recvfrom: New file.
46515         * modules/send: New file.
46516         * modules/sendto: New file.
46517         * modules/setsockopt: New file.
46518         * modules/socket: New file.
46519         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
46520         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
46521         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
46522         the particular module is requested. Add a link warning when the
46523         particular module is not requested.
46524         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
46525         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
46526         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
46527         the particular module is requested.
46528         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
46529         gl_SYS_SOCKET_H_DEFAULTS): New macros.
46530         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
46531         * modules/sys_socket (Depends-on): Add link-warning.
46532         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
46533         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
46534         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
46535         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
46536         GL_LINK_WARNING.
46537         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
46538         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
46539         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
46540         * doc/posix-functions/getpeername.texi: Mention the new module
46541         'getpeername'.
46542         * doc/posix-functions/getsockname.texi: Mention the new module
46543         'getsockname'.
46544         * doc/posix-functions/getsockopt.texi: Mention the new module
46545         'getsockopt'.
46546         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
46547         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
46548         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
46549         * doc/posix-functions/send.texi: Mention the new module 'send'.
46550         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
46551         * doc/posix-functions/setsockopt.texi: Mention the new module
46552         'setsockopt'.
46553         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
46554         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
46555         listen, connect, accept.
46556         * modules/select-tests (Depends-on): Likewise.
46557
46558 2008-10-05  Bruno Haible  <bruno@clisp.org>
46559
46560         * lib/winsock.c (strerror): Remove unused #undef.
46561         (rpl_close): Remove unused local variable.
46562
46563         * modules/sys_socket (Depends-on); Add errno.
46564
46565 2008-10-05  Bruno Haible  <bruno@clisp.org>
46566
46567         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
46568         (select): Add a link warning when the 'select' module is not used.
46569         * modules/sys_select (Depends-on): Add link-warning.
46570         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
46571         Suggested by Paolo Bonzini.
46572
46573 2008-10-05  Jim Meyering  <meyering@redhat.com>
46574
46575         bootstrap: check for LT_INIT more portably
46576         * build-aux/bootstrap: Avoid using grep -E, since it's not
46577         portable enough.  Suggestion from Bruno Haible.
46578
46579 2008-10-05  Bruno Haible  <bruno@clisp.org>
46580
46581         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
46582         as being fixed by gnulib.
46583
46584 2008-10-05  Bruno Haible  <bruno@clisp.org>
46585
46586         * modules/select-tests: New file, mostly copied from
46587         modules/sys_select-tests.
46588         * tests/test-select.c: New file, mostly copied from
46589         tests/test-sys_select.c.
46590         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
46591         * modules/sys_select-tests (Depends-on): Remove all dependencies.
46592         (Makefile.am): Remove test_sys_select_LDADD.
46593
46594         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
46595         to an undefined symbol, for an error message.
46596         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
46597         (gl_SYS_SELECT_H_DEFAULTS): New macro.
46598         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
46599         winsock-select.c here.
46600         * modules/sys_select (Files): Remove lib/winsock-select.c.
46601         (Depends-on): Remove alloca.
46602         (Makefile.am): Substitute GNULIB_SELECT.
46603         * modules/select: New file.
46604         * doc/posix-functions/select.texi: Update.
46605
46606 2008-10-05  Bruno Haible  <bruno@clisp.org>
46607
46608         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
46609         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
46610         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
46611         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
46612         getdtablesize.
46613         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
46614         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
46615
46616 2008-10-05  Bruno Haible  <bruno@clisp.org>
46617
46618         * modules/getdtablesize-tests: New file.
46619         * tests/test-getdtablesize.c: New file.
46620
46621         New module 'getdtablesize'.
46622         * lib/unistd.in.h (getdtablesize): New declaration.
46623         * lib/getdtablesize.c: New file.
46624         * m4/getdtablesize.m4: New file.
46625         * modules/getdtablesize: New file.
46626         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46627         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
46628         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
46629         HAVE_GETDTABLESIZE.
46630         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
46631
46632 2008-10-05  Bruno Haible  <bruno@clisp.org>
46633
46634         * modules/sched (Makefile.am): Fix typo.
46635         Reported by Simon Josefsson.
46636
46637 2008-10-05  Jim Meyering  <meyering@redhat.com>
46638
46639         bootstrap: check for LT_INIT, too
46640         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
46641         are deprecated.  Suggestion from Ralf Wildenhues.
46642
46643 2008-10-05  Bruno Haible  <bruno@clisp.org>
46644
46645         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
46646         overriding them by ours.
46647         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
46648
46649 2008-10-05  Jim Meyering  <meyering@redhat.com>
46650
46651         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
46652         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
46653         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
46654
46655 2008-10-04  Bruno Haible  <bruno@clisp.org>
46656
46657         * modules/dup2 (License): Change to LGPLv2+.
46658         * modules/sleep (License): Likewise.
46659         * modules/perror (License): Likewise.
46660         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
46661         Blake.
46662         * modules/signal (License): Likewise.
46663         * modules/sigprocmask (License): Likewise.
46664         * modules/raise (License): Change to LGPLv2+, with approval by Jim
46665         Meyering.
46666
46667 2008-10-04  Bruno Haible  <bruno@clisp.org>
46668
46669         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
46670         Reported by Rainer Tammer <tammer@tammer.net>.
46671
46672 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
46673             Bruno Haible  <bruno@clisp.org>
46674
46675         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
46676         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
46677         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
46678
46679 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
46680
46681         filevercmp: new module
46682         * lib/filevercmp.h: New function filevercmp comparing version strings.
46683         * lib/filevercmp.c: Implementation of filevercmp function.
46684         * modules/filevercmp: Module metadata.
46685         * tests/test-filevercmp.c: Unit test for new module.
46686         * modules/filevercmp-tests: Unit test metadata.
46687         * MODULES.html.sh: Add filevercmp module.
46688
46689 2008-10-03  Bruno Haible  <bruno@clisp.org>
46690
46691         * lib/c-ctype.h: Add comment.
46692         Reported by Jim Meyering.
46693
46694 2008-10-02  Bruno Haible  <bruno@clisp.org>
46695
46696         * modules/posix_spawn-internal (Depends-on): Add 'open'.
46697
46698 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46699
46700         * build-aux/bootstrap: Allow renaming bootstrap, and change the
46701         name of bootstrap.conf accordingly.
46702
46703 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46704
46705         * build-aux/bootstrap: Install git-merge-changelog configuration
46706         items into .gitconfig if needed.
46707
46708 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46709
46710         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
46711         git repository, and initialize/update it accordingly.
46712
46713 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
46714
46715         * modules/fsync-tests: New file.
46716         * tests/test-fsync.c: New file.
46717
46718         New module 'fsync'.
46719         * lib/fsync.c: New file.
46720         * m4/fsync.m4: New file.
46721         * modules/fsync: New file.
46722         * lib/unistd.in.h (fsync): New declaration.
46723         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
46724         GNULIB_FSYNC and HAVE_FSYNC.
46725         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
46726         * MODULES.html.sh (posix_functions): Add fsync.
46727         * doc/posix-functions/fsync.texi: Mention the new module.
46728
46729 2008-10-02  Jim Meyering  <meyering@redhat.com>
46730
46731         fts.c: sync with similar code from coreutils' remove.c
46732         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
46733         Guard also with "#if defined __linux__", since for now at least,
46734         this code is Linux-kernel-specific.
46735
46736 2008-10-02  Jim Meyering  <meyering@redhat.com>
46737
46738         fts: bug fixes
46739         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
46740         Include <sys/vfs.h>, not <sys/statfs.h>.
46741
46742         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
46743         Include <sys/vfs.h>, not <sys/statfs.h>.
46744
46745 2008-10-01  Bruno Haible  <bruno@clisp.org>
46746
46747         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
46748         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
46749         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
46750         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
46751         * doc/posix-functions/posix_spawnp.texi: Likewise.
46752         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
46753         whether posix_spawn actually works.
46754         * m4/pipe.m4 (gl_PIPE): Likewise.
46755         * modules/execute (Files): Add m4/posix_spawn.m4.
46756         * modules/pipe (Files): Add m4/posix_spawn.m4.
46757         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
46758
46759 2008-10-01  Jim Meyering  <meyering@redhat.com>
46760
46761         remove trailing spaces
46762         * NEWS: Likewise.
46763         * lib/poll.c (poll): Likewise.
46764         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
46765         * lib/winsock.c (rpl_close): Likewise.
46766         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
46767         * modules/yield: Likewise.
46768         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
46769         * tests/test-sys_select.c (connect_to_socket): Likewise.
46770
46771         fts.c: adjust a new interface to be more generally useful
46772         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
46773         (fts_build): Adjust caller.
46774
46775 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46776
46777         * modules/cond-tests: New file.
46778         * tests/test-cond.c: New file.
46779
46780 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46781             Bruno Haible  <bruno@clisp.org>
46782
46783         * modules/cond (Dependencies): Add errno, time.
46784         * lib/glthread/cond.h: Include <time.h>.
46785         (gl_cond_define, gl_cond_define_initialized): Use the same definition
46786         across platforms.
46787
46788 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46789             Bruno Haible  <bruno@clisp.org>
46790
46791         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
46792
46793 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46794             Bruno Haible  <bruno@clisp.org>
46795
46796         * modules/tls-tests (Depends-on): Add thread, yield.
46797         (configure.ac): Remove all checks.
46798         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
46799         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46800         gl_thread_self): Remove definitions. Include glthread/thread.h and
46801         glthread/yield.h instead.
46802         (test_tls): Pass an additional NULL argument to gl_thread_join.
46803
46804 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46805             Bruno Haible  <bruno@clisp.org>
46806
46807         * modules/lock-tests (Depends-on): Add thread, yield.
46808         (configure.ac): Remove all checks.
46809         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
46810         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46811         gl_thread_self): Remove definitions. Include glthread/thread.h and
46812         glthread/yield.h instead.
46813         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
46814         additional NULL argument to gl_thread_join.
46815
46816 2008-09-30  Bruno Haible  <bruno@clisp.org>
46817
46818         Fix the Win32 implementation of the 'thread' module.
46819         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
46820         pointer type.
46821         (gl_thread_self): Invoke gl_thread_self_func.
46822         (gl_thread_self_func): New declaration.
46823         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
46824         (do_init_self_key, init_self_key): New functions.
46825         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
46826         Remove some fields.
46827         (running_threads, running_lock): Remove variables.
46828         (get_current_thread_handle): New function.
46829         (gl_thread_self_func, wrapper_func, glthread_create_func,
46830         glthread_join_func, gl_thread_exit_func): Largely rewritten and
46831         simplified.
46832
46833 2008-09-30  Bruno Haible  <bruno@clisp.org>
46834
46835         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
46836         files.
46837
46838 2008-09-30  Jim Meyering  <meyering@redhat.com>
46839
46840         fts.m4: correct the test for statfs.f_type
46841         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
46842         when checking for statfs.f_type.
46843
46844 2008-09-15  Simon Josefsson  <simon@josefsson.org>
46845
46846         tests: avoid some compiler warnings
46847         * tests/test-memchr.c (main): Pass NULL indirectly.
46848         * tests/test-getdate.c (main): Remove unused variable 'ret'.
46849
46850 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
46851
46852         getdate.y: disallow countable dayshifts like "4 yesterday ago"
46853         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
46854         exactly specified dayshifts.
46855         (dayshift): New rule.
46856         (rel): Add dayshift.
46857         (relative_time_table) [tomorrow, yesterday, today, now]:
46858         Use tDAY_SHIFT in place of tDAY_UNIT.
46859         * tests/test-getdate.c: Add tests for now-disallowed countable
46860         dayshifts, e.g., "4 yesterday ago".
46861
46862 2008-09-29  Bruno Haible  <bruno@clisp.org>
46863
46864         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
46865         * tests/test-posix_spawn1.in.sh: Renamed from
46866         tests/test-posix_spawn.in.sh.
46867         * tests/test-posix_spawn2.c: New file.
46868         * tests/test-posix_spawn2.in.sh: New file.
46869         * modules/posix_spawnp-tests (Files): Update.
46870         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
46871
46872 2008-09-29  Bruno Haible  <bruno@clisp.org>
46873
46874         Propagate effects of putenv/setenv/unsetenv to child processes.
46875         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
46876         * lib/pipe.c (create_pipe): Likewise.
46877
46878 2008-09-29  Bruno Haible  <bruno@clisp.org>
46879
46880         Enable use of shell scripts as executables in mingw.
46881         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
46882         run the program as a shell script.
46883         * lib/pipe.c (create_pipe): Likewise.
46884         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
46885         resulting array.
46886
46887 2008-09-29  Eric Blake  <ebb9@byu.net>
46888
46889         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
46890
46891 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
46892
46893         * doc/posix-functions/accept.texi: Update mingw problems.
46894         * doc/posix-functions/bind.texi: Update mingw problems.
46895         * doc/posix-functions/close.texi: Update mingw problems.
46896         * doc/posix-functions/connect.texi: Update mingw problems.
46897         * doc/posix-functions/getpeername.texi: Update mingw problems.
46898         * doc/posix-functions/getsockname.texi: Update mingw problems.
46899         * doc/posix-functions/getsockopt.texi: Update mingw problems.
46900         * doc/posix-functions/ioctl.texi: Update mingw problems.
46901         * doc/posix-functions/listen.texi: Update mingw problems.
46902         * doc/posix-functions/recv.texi: Update mingw problems.
46903         * doc/posix-functions/recvfrom.texi: Update mingw problems.
46904         * doc/posix-functions/select.texi: Update mingw problems.
46905         * doc/posix-functions/send.texi: Update mingw problems.
46906         * doc/posix-functions/sendto.texi: Update mingw problems.
46907         * doc/posix-functions/setsockopt.texi: Update mingw problems.
46908         * doc/posix-functions/socket.texi: Update mingw problems.
46909
46910 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
46911             Bruno Haible  <bruno@clisp.org>
46912
46913         * lib/sys_select.in.h: Include sys/time.h.
46914         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
46915         * modules/sys_select: Depend on sys_time.
46916         * tests/test-sys_select.c: Test that sys/select.h defines struct
46917         timeval fully.
46918
46919 2008-09-29  Bruno Haible  <bruno@clisp.org>
46920
46921         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
46922         * lib/sys_select.in.h: Likewise.
46923
46924 2008-09-29  Bruno Haible  <bruno@clisp.org>
46925
46926         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
46927
46928 2008-09-29  Bruno Haible  <bruno@clisp.org>
46929
46930         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
46931         Set LIBSOCKET instead of augmenting LIBS.
46932         * modules/sockets (Link): New section.
46933         * modules/sockets-tests (test_sockets_LDADD): New variable.
46934         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
46935         * modules/poll-tests (test_poll_LDADD): New variable.
46936         * NEWS: Document the change.
46937
46938 2008-09-29  Bruno Haible  <bruno@clisp.org>
46939
46940         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
46941         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
46942         ARPA_INET_H directly.
46943         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46944
46945 2008-09-28  Bruno Haible  <bruno@clisp.org>
46946
46947         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
46948         from gl_HEADER_SYS_SOCKET.
46949         (gl_HEADER_SYS_SOCKET): Invoke it.
46950         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46951
46952 2008-09-28  Bruno Haible  <bruno@clisp.org>
46953
46954         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
46955         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
46956         Needed on OSF/1 4.0.
46957
46958 2008-09-28  Bruno Haible  <bruno@clisp.org>
46959
46960         Override open more carefully.
46961         * lib/open.c (orig_open): New function.
46962         (rpl_open): Use orig_open instead of open.
46963         * lib/fcntl.in.h: Add special invocation convention.
46964         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
46965         (gl_FUNC_OPEN): Invoke it.
46966
46967         Override freopen more carefully.
46968         * lib/freopen.c (orig_freopen): New function.
46969         (rpl_freopen): Use orig_freopen instead of freopen.
46970         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
46971         (gl_FUNC_FREOPEN): Invoke it.
46972
46973         Override fopen more carefully.
46974         * lib/fopen.c (orig_fopen): New function.
46975         (rpl_fopen): Use orig_fopen instead of fopen.
46976         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
46977         (gl_FUNC_FOPEN): Invoke it.
46978         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
46979
46980 2008-09-28  Bruno Haible  <bruno@clisp.org>
46981
46982         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
46983         SIGPIPE.
46984
46985 2008-09-28  Bruno Haible  <bruno@clisp.org>
46986
46987         * tests/test-sigaction.c (handler, main): Disable the check whether
46988         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
46989         glibc systems with LinuxThreads.
46990
46991 2008-09-28  Bruno Haible  <bruno@clisp.org>
46992
46993         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
46994
46995         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
46996         with AIX xlc.
46997         * lib/fcntl.in.h (open): Likewise.
46998         Reported by Rainer Tammer <tammer@tammer.net>.
46999
47000 2008-09-28  Bruno Haible  <bruno@clisp.org>
47001
47002         * modules/posix_spawnp-tests: New file.
47003         * tests/test-posix_spawn.c: New file.
47004         * tests/test-posix_spawn.in.sh: New file.
47005
47006         New module 'posix_spawnp'.
47007         * modules/posix_spawnp: New file.
47008         * lib/spawnp.c: New file, from GNU libc with modifications.
47009         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
47010
47011         New module 'posix_spawn'.
47012         * modules/posix_spawn: New file.
47013         * lib/spawn.c: New file, from GNU libc with modifications.
47014         * doc/posix-functions/posix_spawn.texi: Mention the new module.
47015
47016         New module 'posix_spawnattr_destroy'.
47017         * modules/posix_spawnattr_destroy: New file.
47018         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
47019         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
47020         module.
47021
47022         New module 'posix_spawnattr_setsigmask'.
47023         * modules/posix_spawnattr_setsigmask: New file.
47024         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
47025         modifications.
47026         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
47027         new module.
47028
47029         New module 'posix_spawnattr_getsigmask'.
47030         * modules/posix_spawnattr_getsigmask: New file.
47031         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
47032         modifications.
47033         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
47034         new module.
47035
47036         New module 'posix_spawnattr_setsigdefault'.
47037         * modules/posix_spawnattr_setsigdefault: New file.
47038         * lib/spawnattr_setdefault.c: New file, from GNU libc with
47039         modifications.
47040         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
47041         new module.
47042
47043         New module 'posix_spawnattr_getsigdefault'.
47044         * modules/posix_spawnattr_getsigdefault: New file.
47045         * lib/spawnattr_getdefault.c: New file, from GNU libc with
47046         modifications.
47047         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
47048         new module.
47049
47050         New module 'posix_spawnattr_setschedpolicy'.
47051         * modules/posix_spawnattr_setschedpolicy: New file.
47052         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
47053         modifications.
47054         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
47055         new module.
47056
47057         New module 'posix_spawnattr_getschedpolicy'.
47058         * modules/posix_spawnattr_getschedpolicy: New file.
47059         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
47060         modifications.
47061         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
47062         new module.
47063
47064         New module 'posix_spawnattr_setschedparam'.
47065         * modules/posix_spawnattr_setschedparam: New file.
47066         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
47067         modifications.
47068         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
47069         new module.
47070
47071         New module 'posix_spawnattr_getschedparam'.
47072         * modules/posix_spawnattr_getschedparam: New file.
47073         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
47074         modifications.
47075         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
47076         new module.
47077
47078         New module 'posix_spawnattr_setpgroup'.
47079         * modules/posix_spawnattr_setpgroup: New file.
47080         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
47081         modifications.
47082         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
47083         module.
47084
47085         New module 'posix_spawnattr_getpgroup'.
47086         * modules/posix_spawnattr_getpgroup: New file.
47087         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
47088         modifications.
47089         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
47090         module.
47091
47092         New module 'posix_spawnattr_setflags'.
47093         * modules/posix_spawnattr_setflags: New file.
47094         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
47095         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
47096         module.
47097
47098         New module 'posix_spawnattr_getflags'.
47099         * modules/posix_spawnattr_getflags: New file.
47100         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
47101         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
47102         module.
47103
47104         New module 'posix_spawnattr_init'.
47105         * modules/posix_spawnattr_init: New file.
47106         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
47107         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
47108         module.
47109
47110         New module 'posix_spawn_file_actions_destroy'.
47111         * modules/posix_spawn_file_actions_destroy: New file.
47112         * lib/spawn_faction_destroy.c: New file, from GNU libc with
47113         modifications.
47114         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
47115         the new module.
47116
47117         New module 'posix_spawn_file_actions_addopen'.
47118         * modules/posix_spawn_file_actions_addopen: New file.
47119         * lib/spawn_faction_addopen.c: New file, from GNU libc with
47120         modifications.
47121         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
47122         the new module.
47123
47124         New module 'posix_spawn_file_actions_adddup2'.
47125         * modules/posix_spawn_file_actions_adddup2: New file.
47126         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
47127         modifications.
47128         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
47129         the new module.
47130
47131         New module 'posix_spawn_file_actions_addclose'.
47132         * modules/posix_spawn_file_actions_addclose: New file.
47133         * lib/spawn_faction_addclose.c: New file, from GNU libc with
47134         modifications.
47135         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
47136         the new module.
47137
47138         New module 'posix_spawn_file_actions_init'.
47139         * modules/posix_spawn_file_actions_init: New file.
47140         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
47141         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
47142         new module.
47143
47144         New module 'posix_spawn-internal'.
47145         * modules/posix_spawn-internal: New file.
47146         * lib/spawn_int.h: New file, from GNU libc with modifications.
47147         * lib/spawni.c: New file, from GNU libc with modifications.
47148         * m4/posix_spawn.m4: New file.
47149
47150         New module 'spawn'.
47151         * modules/spawn: New file.
47152         * lib/spawn.in.h: New file, from GNU libc with modifications.
47153         * m4/spawn_h.m4: New file.
47154         * doc/posix-headers/spawn.texi: Mention the new module.
47155
47156 2008-09-28  Bruno Haible  <bruno@clisp.org>
47157
47158         * modules/sched-tests: New file.
47159         * tests/test-sched.c: New file.
47160
47161         New module 'sched'.
47162         * modules/sched: New file.
47163         * lib/sched.in.h: New file.
47164         * m4/sched_h.m4: New file.
47165         * doc/posix-headers/sched.texi: Mention the new module.
47166
47167 2008-09-27  Eric Blake  <ebb9@byu.net>
47168
47169         Fix previous patch, and tweak references to $0.
47170         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
47171         (func_version, func_gnulib_dir): Don't call this program
47172         gnulib-tool.
47173         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
47174         with using $0 in function.
47175         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
47176         (func_fatal_error): Reuse the name the user invoked us with.
47177
47178 2008-09-27  Bruno Haible  <bruno@clisp.org>
47179
47180         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
47181         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
47182         (gl_ICONV_H): Not here.
47183         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
47184         instead of assigning ICONV_H directly.
47185
47186         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
47187         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
47188         WCHAR_H directly.
47189
47190 2008-09-27  Bruno Haible  <bruno@clisp.org>
47191
47192         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
47193         * modules/arpa_inet (Depends-on): Add link-warning.
47194         (Makefile.am): Insert the definition of GL_LINK-WARNING.
47195         * modules/unistd (Makefile.am): Likewise.
47196
47197 2008-09-26  Bruno Haible  <bruno@clisp.org>
47198
47199         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
47200         variables.
47201         (func_version): Essentially copied from gnulib-tool.
47202         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
47203         func_readlink): Copied from gnulib-tool.
47204
47205 2008-09-26  Bruno Haible  <bruno@clisp.org>
47206
47207         * gnulib-tool (func_version): Change directory to $gnulib_dir before
47208         invoking git-version-gen.
47209
47210 2008-09-26  Bruno Haible  <bruno@clisp.org>
47211
47212         * posix-modules: Update to directory names changed on 2008-01-19.
47213         Remove commas in output before splitting into words. No more need to
47214         avoid 'ftruncate' since 2007-02-19.
47215
47216 2008-09-26  Bruno Haible  <bruno@clisp.org>
47217
47218         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
47219
47220 2008-09-26  Bruno Haible  <bruno@clisp.org>
47221
47222         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
47223         * modules/fwriteerror (Depends-on): Add errno.
47224
47225 2008-09-26  Bruno Haible  <bruno@clisp.org>
47226
47227         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
47228         * tests/test-vc-list-files-cvs.sh: Likewise.
47229
47230 2008-09-26  Bruno Haible  <bruno@clisp.org>
47231
47232         * doc/posix-headers/sys_resource.texi: Reorder items.
47233
47234 2008-09-26  Jim Meyering  <meyering@redhat.com>
47235
47236         fts: tweak inode comparison function
47237         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
47238         inode numbers, as documented.
47239
47240         fts: sort dirent entries on inode number before traversing
47241         This avoids a quadratic, seek-related performance penalty when
47242         operating on a directory containing many entries (measurable at 10k;
47243         3.5 hours at 2 million entries with a cold cache) on certain types
47244         of file systems, including ext3 and ext4, but not tmpfs.
47245         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
47246         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
47247         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
47248         (fs_handles_readdir_ordered_dirents_efficiently): New function.
47249         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
47250         (fts_build): Set the stat.st_ino member from D_INO.
47251         If it is likely to be useful, sort dirent entries on inode number.
47252
47253         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
47254         and the struct statfs.f_type member.
47255         * modules/fts (Depends-on): Add d-ino.
47256
47257 2008-09-26  Bruno Haible  <bruno@clisp.org>
47258
47259         * modules/sigpipe-die (Depends-on): Add sigpipe.
47260
47261         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
47262         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
47263         and GNULIB_STDIO_H_SIGPIPE are set.
47264         * lib/stdio-write.c: New file.
47265         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
47266         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47267         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47268         REPLACE_STDIO_WRITE_FUNCS.
47269         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
47270         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47271         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47272         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
47273         * modules/stdio (Files): Add lib/stdio-write.c.
47274         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
47275         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47276         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47277         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
47278         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
47279         REPLACE_FPRINTF_POSIX.
47280         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
47281         REPLACE_PRINTF_POSIX.
47282         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
47283         REPLACE_VFPRINTF_POSIX.
47284         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
47285         REPLACE_VPRINTF_POSIX.
47286         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
47287         SIGPIPE issue.
47288         * doc/posix-functions/fputc.texi: Likewise.
47289         * doc/posix-functions/fputs.texi: Likewise.
47290         * doc/posix-functions/fwrite.texi: Likewise.
47291         * doc/posix-functions/printf.texi: Likewise.
47292         * doc/posix-functions/putc.texi: Likewise.
47293         * doc/posix-functions/putchar.texi: Likewise.
47294         * doc/posix-functions/puts.texi: Likewise.
47295         * doc/posix-functions/vfprintf.texi: Likewise.
47296         * doc/posix-functions/vprintf.texi: Likewise.
47297
47298         * modules/safe-write (Depends-on): Add write.
47299
47300         * modules/sigpipe-tests: New file.
47301         * tests/test-sigpipe.c: New file.
47302         * tests/test-sigpipe.sh: New file.
47303
47304         * modules/write: New file.
47305         * lib/unistd.in.h: Include <sys/types.h>.
47306         (write): New declaration.
47307         * lib/write.c: New file.
47308         * m4/write.m4: New file.
47309         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47310         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
47311         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
47312         GNULIB_WRITE, REPLACE_WRITE.
47313         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
47314         and the SIGPIPE issue.
47315
47316         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
47317         (raise): New declaration.
47318         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
47319         (ext_signal): New function.
47320         (rpl_raise): New function.
47321         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
47322         GNULIB_SIGNAL_H_SIGPIPE.
47323         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
47324         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
47325
47326         * modules/sigpipe: New file.
47327         * m4/sigpipe.m4: New file.
47328
47329 2008-09-25  Derek Price  <derek@ximbiot.com>
47330             Bruno Haible  <bruno@clisp.org>
47331
47332         * gnulib-tool (func_import): Report all license incompatibilities, not
47333         just the first one.
47334
47335 2008-09-25  Bruno Haible  <bruno@clisp.org>
47336
47337         * gnulib-tool (func_import): When computing the edits, consider not
47338         only the Makefile.ams that exist but also those that will be generated.
47339
47340 2008-09-25  Simon Josefsson  <simon@josefsson.org>
47341
47342         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
47343         fixes gnulib-tool --test warning about duplicate dependency.
47344
47345 2008-09-25  Bruno Haible  <bruno@clisp.org>
47346
47347         * gnulib-tool: Don't ask the user to perform edits in the generated
47348         Makefile.ams.
47349         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
47350         apply to the Makefile.am being generated.
47351         (func_emit_tests_Makefile_am): Execute edits that apply to the
47352         Makefile.am being generated.
47353         (func_import): Setup list of Makefile.am edits before emitting the
47354         Makefile.ams, not at the end.
47355         (func_create_testdir): Update.
47356         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47357
47358 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47359
47360         * gnulib-tool (func_import): Store the --tests-base option in the
47361         comment in gnulib-cache.m4.
47362
47363 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
47364
47365         * NEWS: Document increased portability that sys_select now provides.
47366
47367         * lib/sys_select.in.h: Install select wrapper.
47368         * lib/sys_socket.in.h: Use more descriptive name when there is no
47369         select wrapper.
47370         * lib/winsock-select.c: New.
47371         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
47372         Require gl_HEADER_SYS_SOCKET.
47373         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
47374         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
47375         * tests/test-sys_select.c: Add functional tests.
47376
47377 2008-09-24  Eric Blake  <ebb9@byu.net>
47378
47379         open, fopen: close fd leak in last patch
47380         * lib/open.c (rpl_open): Close fd before returning error.
47381         * lib/fopen.c (rpl_fopen): Close fd before returning error.
47382         * doc/posix-functions/open.texi (open): Document that Irix also
47383         has the bug.
47384         * doc/posix-functions/fopen.texi (fopen): Likewise.
47385         Reported by Paolo Bonzini.
47386
47387 2008-09-24  Bruno Haible  <bruno@clisp.org>
47388
47389         Ensure that a filename ending in a slash cannot be used to access a
47390         non-directory.
47391         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
47392         to check whether it's really a directory.
47393         * lib/fopen.c: Include fcntl.h, unistd.h.
47394         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
47395         and fdopen().
47396         * modules/fopen (Depends-on): Add unistd.
47397         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
47398         * tests/test-fopen.c (main): Likewise.
47399         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
47400         * doc/posix-functions/fopen.texi: Likewise.
47401         Reported by Eric Blake.
47402
47403 2008-09-23  Eric Blake  <ebb9@byu.net>
47404
47405         c-stack: avoid compiler optimizations when provoking overflow
47406         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
47407         recursion harder to optimize, to ensure a stack overflow occurs.
47408         * tests/test-c-stack.c (recurse): Likewise.
47409         Borrowed from libsigsegv.
47410
47411         c-stack: work around Irix sigaltstack bug
47412         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
47413         whether sigaltstack uses wrong end of stack_t (copied in part from
47414         libsigsegv).
47415         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
47416         Irix bug, without requiring an over-allocation.
47417         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
47418         bug.
47419
47420         fopen: document mingw bug on directories
47421         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
47422         not allowing a stream visiting a directory, even though reading
47423         from such a stream is not portable.
47424
47425 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47426
47427         * lib/poll.c: Rewrite.
47428         * modules/poll: Depend on alloca.
47429
47430 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47431
47432         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
47433         instead define prototypes for a full set of wrappers.  Ensure
47434         that Cygwin does not use the compatibility code, which is only
47435         for MinGW.
47436         * lib/winsock.c: New.
47437         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
47438         * modules/sys_socket: Add lib/winsock.c.
47439
47440         * modules/poll-tests: Add errno and perror.
47441         * tests/test-poll.c: Use ioctl, not ioctlsocket.
47442
47443 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47444
47445         * tests/test-poll.c: Downgrade minimum needed Winsock version.
47446
47447 2008-09-23  Bruno Haible  <bruno@clisp.org>
47448
47449         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
47450         * doc/glibc-functions/*: Likewise.
47451
47452 2008-09-23  Simon Josefsson  <simon@josefsson.org>
47453
47454         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
47455         success.
47456
47457 2008-09-22  Eric Blake  <ebb9@byu.net>
47458             Bruno Haible  <bruno@clisp.org>
47459
47460         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
47461         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
47462         supply %A but mishandle pseudo-NaN.
47463         Reported by Simon Josefsson.
47464
47465 2008-09-21  Bruno Haible  <bruno@clisp.org>
47466
47467         * tests/test-lock.c (main): Tweak skip message.
47468         * tests/test-tls.c (main): Likewise.
47469
47470 2008-09-21  Bruno Haible  <bruno@clisp.org>
47471
47472         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
47473         whether 'struct sigaction' has sa_sigaction here...
47474         (gl_PREREQ_SIG_HANDLER_H): ... not here.
47475         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
47476
47477 2008-09-21  Bruno Haible  <bruno@clisp.org>
47478
47479         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
47480         section.
47481         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
47482         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
47483         the new section.
47484         (Support for obsolete systems lacking POSIX:2001): New section.
47485         (String handling <string.h>): Move strdup to the new section.
47486         Suggested by Simon Josefsson and Paolo Bonzini.
47487
47488 2008-09-21  Bruno Haible  <bruno@clisp.org>
47489
47490         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
47491         exponents in %e and %g results on 'long double'. Needed for mingw's
47492         improved *printf functions.
47493         * tests/test-vasprintf-posix.c (test_function): Likewise.
47494         * tests/test-snprintf-posix.h (test_function): Likewise.
47495         * tests/test-sprintf-posix.h (test_function): Likewise.
47496         Reported by Eric Blake.
47497
47498 2008-09-21  Bruno Haible  <bruno@clisp.org>
47499
47500         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
47501         * tests/test-sprintf-posix.h (test_function): Likewise.
47502
47503 2008-09-21  Bruno Haible  <bruno@clisp.org>
47504
47505         * modules/getpass (Depends-on): Add strdup-posix.
47506
47507         New module 'strdup-posix'.
47508         * modules/strdup-posix: New file.
47509         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
47510         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
47511         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
47512         REPLACE_STRDUP.
47513         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
47514         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
47515         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47516         strdup-posix.
47517
47518         * modules/strdup (Depends-on): Remove malloc-posix.
47519
47520 2008-09-20  Bruno Haible  <bruno@clisp.org>
47521
47522         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
47523         Wildenhues.
47524
47525 2008-09-20  Bruno Haible  <bruno@clisp.org>
47526
47527         Ensure that wint_t gets defined on IRIX 5.3.
47528         * lib/wchar.in.h (wint_t): Define if not defined by the system.
47529         * lib/wctype.in.h (wint_t): Likewise.
47530         (__wctype_wint_t): Remove type.
47531         (isw*): Use wint_t instead of __wctype_wint_t.
47532         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
47533         * modules/wchar (Files): Add m4/wint_t.m4.
47534         (Makefile.am): Substitute HAVE_WINT_T.
47535         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
47536         * tests/test-wctype.c: Check that wint_t is defined.
47537         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
47538         * doc/posix-headers/wctype.texi: Likewise.
47539         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47540
47541 2008-09-18  Bruno Haible  <bruno@clisp.org>
47542
47543         * gnulib-tool (func_exit): Update comment.
47544
47545 2008-09-18  Simon Josefsson  <simon@josefsson.org>
47546
47547         * modules/getaddrinfo (Depends-on): Remove strdup, this module
47548         assumes strdup exists and does not depend on strdup to return
47549         ENOMEM on out of memory conditions.
47550
47551 2008-09-18  Bruno Haible  <bruno@clisp.org>
47552
47553         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
47554         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
47555         digits for the exponent.
47556
47557 2008-09-18  Jim Meyering  <meyering@redhat.com>
47558             Bruno Haible  <bruno@clisp.org>
47559
47560         * lib/vasnprintf.c (decimal_point_char): Define also if
47561         NEED_PRINTF_INFINITE_LONG_DOUBLE.
47562
47563 2008-09-16  Bruno Haible  <bruno@clisp.org>
47564         and Eric Blake  <ebb9@byu.net>
47565
47566         vasnprintf: support Irix 5.3
47567         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
47568         that mishandle long double infinity.
47569         Reported by Tom G. Christensen.
47570
47571 2008-09-16  Bruno Haible  <bruno@clisp.org>
47572
47573         * doc/glibc-functions/scandir.texi: Mention the function is missing on
47574         Solaris 9.
47575         * doc/glibc-functions/alphasort.texi: Likewise.
47576         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
47577
47578 2008-09-16  Jim Meyering  <meyering@redhat.com>
47579
47580         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
47581         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
47582         a umask modification leak out of a subshell.  Otherwise, the
47583         opensolaris /bin/sh would be accepted and thus cause unwarranted
47584         failures in the coreutils test suite.
47585
47586 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
47587
47588         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
47589         to succeed.
47590
47591 2008-09-16  Jim Meyering  <meyering@redhat.com>
47592
47593         avoid spurious test failure when library is built without ACL support
47594         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
47595         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
47596         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
47597         * tests/test-copy-acl.sh: Likewise.
47598
47599 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47600
47601         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
47602         based on character occurrence counts.
47603
47604 2008-09-15  Eric Blake  <ebb9@byu.net>
47605
47606         tests: avoid some compiler warnings
47607         * tests/test-memchr.c (main): Pass NULL indirectly.
47608         * tests/test-closein.c (main): Avoid unused variable.
47609
47610 2008-09-15  Bruno Haible  <bruno@clisp.org>
47611
47612         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
47613         are missing on OpenBSD 4.0 individually.
47614         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47615
47616 2008-09-15  Bruno Haible  <bruno@clisp.org>
47617
47618         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
47619         * doc/posix-functions/strerror.texi: Mention also Cygwin.
47620         * doc/posix-functions/perror.texi: Likewise.
47621         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
47622         is missing.
47623         Reported by Eric Blake.
47624
47625         * lib/errno.in.h: Use replacement values >= 2000.
47626         Reported by Eric Blake.
47627
47628 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47629
47630         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
47631         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
47632         limit.
47633         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
47634         compareseq was aborted.
47635
47636 2008-09-14  Bruno Haible  <bruno@clisp.org>
47637
47638         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
47639         yvec_edit_count.
47640         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
47641         (fstrcmp_bounded): Simplify result computation accordingly.
47642
47643 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47644
47645         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
47646         (fstrcmp): Define in terms of fstrcmp_bounded.
47647         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
47648         lower_bound argument.
47649         Return quickly if the result is certainly < lower_bound.
47650         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
47651
47652 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47653
47654         * lib/diffseq.h (EARLY_ABORT): New macro.
47655         (compareseq): Change return type to bool. Return true when EARLY_ABORT
47656         evaluates to true.
47657
47658 2008-09-14  Bruno Haible  <bruno@clisp.org>
47659
47660         * modules/perror-tests: New file.
47661         * tests/test-perror.sh: New file.
47662         * tests/test-perror.c: New file.
47663
47664         New module 'perror'.
47665         * lib/stdio.in.h (perror): New declaration.
47666         * lib/perror.c: New file.
47667         * m4/perror.m4: New file.
47668         * modules/perror: New file.
47669         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
47670         * doc/posix-functions/perror.texi: Mention the perror module.
47671         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
47672         REPLACE_PERROR.
47673         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
47674         REPLACE_PERROR.
47675
47676 2008-09-14  Bruno Haible  <bruno@clisp.org>
47677
47678         * modules/stdio (Makefile.am): Reorder to match the order in
47679         lib/stdio.in.h.
47680         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47681
47682 2008-09-13  Bruno Haible  <bruno@clisp.org>
47683
47684         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
47685
47686 2008-09-13  Bruno Haible  <bruno@clisp.org>
47687
47688         Extend strerror to cover the added errno values.
47689         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
47690         (rpl_strerror): Provide error messages for the added errno values and
47691         for the WSA* values.
47692         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
47693         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
47694         strerror.
47695         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
47696         * modules/strerror (Depends-on): Add errno.
47697         * doc/posix-functions/strerror.texi: Document the change.
47698         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
47699         and EOVERFLOW.
47700
47701 2008-09-13  Bruno Haible  <bruno@clisp.org>
47702
47703         * modules/EOVERFLOW: Remove file.
47704         * m4/eoverflow.m4: Remove file.
47705         * modules/EOVERFLOW-tests: Remove file.
47706         * tests/test-EOVERFLOW.c: Remove file.
47707         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
47708         * modules/ftell (Depends-on): Likewise.
47709         * modules/getdelim (Depends-on): Likewise.
47710         * modules/getugroups (Depends-on): Likewise.
47711         * modules/poll (Depends-on): Likewise.
47712         * modules/snprintf (Depends-on): Likewise.
47713         * modules/sprintf-posix (Depends-on): Likewise.
47714         * modules/vasnprintf (Depends-on): Likewise.
47715         * modules/vasprintf (Depends-on): Likewise.
47716         * modules/vfprintf-posix (Depends-on): Likewise.
47717         * modules/vsnprintf (Depends-on): Likewise.
47718         * modules/vsprintf-posix (Depends-on): Likewise.
47719         * modules/xvasprintf (Depends-on): Likewise.
47720         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47721         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
47722         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
47723         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
47724         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47725         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
47726         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
47727         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
47728         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47729         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
47730         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
47731         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
47732         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47733         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
47734         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
47735         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
47736         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47737         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
47738         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
47739         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
47740         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47741         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
47742         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
47743         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
47744         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
47745         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47746         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
47747         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
47748         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
47749         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
47750         * MODULES.html.sh: Remove EOVERFLOW.
47751         * NEWS: Mention the change.
47752
47753 2008-09-13  Bruno Haible  <bruno@clisp.org>
47754
47755         * modules/errno-tests: New file.
47756         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
47757
47758         * lib/errno.in.h: New file.
47759         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
47760         * modules/errno: New file.
47761         * doc/posix-headers/errno.texi: Update documentation.
47762         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
47763
47764 2008-09-13  Bruno Haible  <bruno@clisp.org>
47765
47766         * tests/test-poll.c: Use #if for native Windows, rather than testing
47767         __MSVCRT__.
47768
47769 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47770             Bruno Haible  <bruno@clisp.org>
47771
47772         * lib/glob.c: Don't include <pwd.h> on native Windows.
47773         (WINDOWS32): New macro.
47774         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
47775
47776 2008-09-13  Bruno Haible  <bruno@clisp.org>
47777
47778         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
47779         (ETIMEDOUT): Remove macro.
47780         (glthread_cond_timedwait_multithreaded): New declaration.
47781         (glthread_cond_timedwait): Use it.
47782         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
47783         (glthread_cond_timedwait_multithreaded): New function.
47784
47785 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47786
47787         * modules/poll-tests: Do not check for io.h.
47788         * tests/test-poll.c: Check for __MSVCRT__ instead.
47789
47790 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47791
47792         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
47793         * modules/poll-tests: Add inet_pton, stdbool, sockets.
47794         * tests/test-poll.c: Use them.  Use _pipe on Windows.
47795
47796 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47797
47798         * modules/poll-tests: New.
47799         * tests/test-poll.c: New.
47800
47801 2008-09-12  Eric Blake  <ebb9@byu.net>
47802
47803         frexp: test for NetBSD failure on -0.0
47804         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
47805         not all, bugs from NetBSD 3.0 have been fixed.
47806         * doc/posix-functions/frexp.texi (frexp): Document bug.
47807         Reported by Thomas Klausner.
47808
47809         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
47810         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
47811         literal -0.0.
47812         Reported by Jonathan C. Patschke <jp@centtech.com>.
47813
47814 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47815
47816         * lib/glthread/cond.h: Use dummy implementation also if
47817         USE_WIN32_THREADS.
47818
47819 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47820
47821         * modules/fnmatch-posix (License): Change to LGPLv2+.
47822         * modules/fnmatch-gnu (License): Likewise.
47823
47824 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47825
47826         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
47827
47828 2008-09-11  Jim Meyering  <meyering@redhat.com>
47829
47830         * users.txt: Add gtk-vnc.
47831
47832 2008-09-08  Simon Josefsson  <simon@josefsson.org>
47833
47834         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
47835         rotate amounts.
47836
47837         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
47838         required for 16-bit and 8-bit rotates.
47839         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
47840         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
47841         UINT8_MAX instead of hard-coded constants.
47842         Suggested by Paul Eggert.
47843
47844 2008-09-07  Bruno Haible  <bruno@clisp.org>
47845
47846         * tests/test-striconveh.c (main): Check behaviour when converting from
47847         UTF-7.
47848
47849         Make striconveh work better with stateful encodings.
47850         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
47851         that iconv does not increment the inptr when returning -1/EINVAL.
47852
47853 2008-09-07  Bruno Haible  <bruno@clisp.org>
47854
47855         * build-aux/config.rpath: Update according to libtool-2.2.6.
47856         * build-aux/config.libpath: Likewise.
47857
47858 2008-09-06  Bruno Haible  <bruno@clisp.org>
47859
47860         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
47861         * lib/freadptr.c (freadptr): Likewise.
47862         * lib/freadseek.c (freadptrinc): Likewise.
47863         Reported by Simon Josefsson.
47864
47865 2008-09-06  Bruno Haible  <bruno@clisp.org>
47866
47867         * modules/freadptr (License): Change to LGPLv2+.
47868         * modules/freadseek (License): Likewise.
47869         Suggested by Eric Blake.
47870
47871         * modules/memchr2 (License): Change to LGPLv2+.
47872         Approved by Eric Blake.
47873
47874 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47875             Bruno Haible  <bruno@clisp.org>
47876
47877         Make gnulib-tool work with native 'sed' on AIX.
47878         * gnulib-tool (sed_noop): New variable.
47879         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
47880         func_add_or_update, func_create_testdir): Use it to initialize sed
47881         script variables.
47882         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47883
47884 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
47885             Bruno Haible  <bruno@clisp.org>
47886
47887         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
47888         also works after #include directives.
47889
47890 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
47891
47892         getdate.y: reject an out-of-range timezone value
47893         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
47894         the range [-24...+24].  When specified with only one or two digits,
47895         * tests/test-getdate.c: Tests for the fix.
47896         * doc/getdate.texi: Document this change.
47897
47898 2008-09-03  Bruno Haible  <bruno@clisp.org>
47899
47900         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
47901
47902 2008-09-02  Simon Josefsson  <simon@josefsson.org>
47903
47904         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
47905         <bruce.korb@gmail.com> with ideas from Ben Pfaff
47906         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
47907         Blake <ebb9@byu.net>.
47908
47909         * tests/test-bitrotate.c: Add more test vectors.
47910
47911 2008-09-02  Eric Blake  <ebb9@byu.net>
47912
47913         vasnprintf-posix: handle large precision via %.*d
47914         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
47915         when handling it ourselves.
47916         * tests/test-vasnprintf-posix.c (test_function): Add test.
47917         * tests/test-snprintf-posix.h (test_function): Likewise.
47918         * tests/test-sprintf-posix.h (test_function): Likewise.
47919         * tests/test-vasprintf-posix.c (test_function): Likewise.
47920         Reported by Alain Guibert.
47921
47922 2008-09-01  Eric Blake  <ebb9@byu.net>
47923
47924         c-stack: make configure-time check more robust
47925         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
47926         successful sigaction call.
47927         Reported by Tom G. Christensen.
47928
47929 2008-09-01  Bruno Haible  <bruno@clisp.org>
47930
47931         New module 'findprog-lgpl'.
47932         * modules/findprog-lgpl: New file.
47933         * lib/findprog-lgpl.c: New file.
47934         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
47935         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
47936         to decide whether to use strdup or xstrdup, concatenated_filename or
47937         xconcatenated_filename.
47938
47939 2008-09-01  Bruno Haible  <bruno@clisp.org>
47940
47941         Split module 'concat-filename' into 'concat-filename' (LGPL) and
47942         'xconcat-filename' (GPL).
47943         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
47944         (License): Change to LGPLv2+.
47945         * modules/xconcat-filename: New file.
47946         * lib/concat-filename.h (concatenated_filename): Change specification.
47947         (xconcatenated_filename): New declaration.
47948         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
47949         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
47950         memory situations.
47951         * lib/xconcat-filename.c: New file.
47952         * NEWS: Mention the change.
47953         * lib/findprog.c: Include concat-filename.h, not filename.h.
47954         (find_in_path): Use xconcatenated_filename instead of
47955         concatenated_filename.
47956         * lib/javacomp.c: Include concat-filename.h, not filename.h.
47957         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
47958         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
47959         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
47960         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
47961         instead of concatenated_filename.
47962         * lib/javaexec.c: Include concat-filename.h, not filename.h.
47963         (execute_java_class): Use xconcatenated_filename instead of
47964         concatenated_filename.
47965         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
47966         * modules/javacomp (Depends-on): Likewise.
47967         * modules/javaexec (Depends-on): Likewise.
47968
47969 2008-09-01  Bruno Haible  <bruno@clisp.org>
47970
47971         Split module 'filename' into 'filename' and 'concat-filename'.
47972         * modules/filename: Keep only lib/filename.h.
47973         (License): Change to LGPLv2+.
47974         * modules/concat-filename: New file, extracted from modules/filename.
47975         * lib/filename.h (concatenated_filename): Remove declaration.
47976         * lib/concat-filename.h: New file, extracted from lib/filename.h.
47977         * lib/concat-filename.c: Include concat-filename.h.
47978         * NEWS: Mention the change.
47979
47980 2008-09-01  Simon Josefsson  <simon@josefsson.org>
47981
47982         * lib/bitrotate.h (rotl8, rotr8): Add.
47983
47984         * modules/bitrotate (configure.ac): Need
47985         AC_REQUIRE([AC_C_INLINE]).
47986         (Description): Mention stdint.h.  Reported by Bruno Haible
47987         <bruno@clisp.org>.
47988
47989         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
47990         Paolo Bonzini <bonzini@gnu.org>.
47991
47992 2008-08-31  Bruno Haible  <bruno@clisp.org>
47993
47994         Assume Solaris specific bi-arch conventions on Solaris systems.
47995         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
47996         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
47997         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
47998         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
47999         like acl_libdirstem.
48000         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
48001         acl_libdirstem.
48002         * NEWS: Mention the change.
48003         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
48004
48005 2008-08-31  Jim Meyering  <meyering@redhat.com>
48006
48007         * lib/strftime.h: Add comments describing the two added arguments.
48008
48009         remove duplicate #include directives
48010         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
48011         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
48012
48013 2008-08-31  Bruno Haible  <bruno@clisp.org>
48014
48015         New module 'sigpipe-die'.
48016         * modules/sigpipe-die: New file.
48017         * lib/sigpipe-die.h: New file.
48018         * lib/sigpipe-die.c: New file.
48019         * MODULES.html.sh (Signal handling): Add sigpipe-die.
48020
48021 2008-08-31  Bruno Haible  <bruno@clisp.org>
48022
48023         Don't override previously installed signal handlers.
48024         * lib/fatal-signal.c (saved_sigactions): New variable.
48025         (uninstall_handlers): Reset the signal to the saved handler, not
48026         to SIG_DFL (except when ignored).
48027         (install_handlers): Save the previous handlers.
48028
48029 2008-08-30  Bruno Haible  <bruno@clisp.org>
48030
48031         * gnulib-tool (func_reset_sigpipe): New function.
48032         (func_get_automake_snippet, func_modules_transitive_closure,
48033         func_import): Invoke it before a join command that reads from stdin,
48034         to avoid "echo: write error: Broken pipe" error messages on stderr.
48035         Reported by Sam Steingold <sds@gnu.org>.
48036
48037 2008-08-30  Bruno Haible  <bruno@clisp.org>
48038
48039         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
48040         Code copied from m4/open.m4.
48041         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
48042         access and the filename ends in a slash. Code copied from lib/open.c.
48043         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
48044         * tests/test-fopen.c (main): Check against bug with trailing slash.
48045
48046 2008-08-29  Bruno Haible  <bruno@clisp.org>
48047
48048         Avoid some "gcc -pedantic" warnings.
48049         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
48050         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
48051         * lib/dirent.in.h: Likewise.
48052         * lib/fcntl.in.h: Likewise.
48053         * lib/float.in.h: Likewise.
48054         * lib/iconv.in.h: Likewise.
48055         * lib/inttypes.in.h: Likewise.
48056         * lib/locale.in.h: Likewise.
48057         * lib/math.in.h: Likewise.
48058         * lib/netinet_in.in.h: Likewise.
48059         * lib/search.in.h: Likewise.
48060         * lib/signal.in.h: Likewise.
48061         * lib/stdarg.in.h: Likewise.
48062         * lib/stdint.in.h: Likewise.
48063         * lib/stdio.in.h: Likewise.
48064         * lib/stdlib.in.h: Likewise.
48065         * lib/string.in.h: Likewise.
48066         * lib/strings.in.h: Likewise.
48067         * lib/sys_select.in.h: Likewise.
48068         * lib/sys_socket.in.h: Likewise.
48069         * lib/sys_stat.in.h: Likewise.
48070         * lib/sys_time.in.h: Likewise.
48071         * lib/sysexits.in.h: Likewise.
48072         * lib/time.in.h: Likewise.
48073         * lib/unistd.in.h: Likewise.
48074         * lib/wchar.in.h: Likewise.
48075         * lib/wctype.in.h: Likewise.
48076         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
48077         * modules/fchdir (Makefile.am): Likewise.
48078         * modules/fcntl (Makefile.am): Likewise.
48079         * modules/float (Makefile.am): Likewise.
48080         * modules/iconv_open (Makefile.am): Likewise.
48081         * modules/inttypes (Makefile.am): Likewise.
48082         * modules/locale (Makefile.am): Likewise.
48083         * modules/math (Makefile.am): Likewise.
48084         * modules/netinet_in (Makefile.am): Likewise.
48085         * modules/search (Makefile.am): Likewise.
48086         * modules/signal (Makefile.am): Likewise.
48087         * modules/stdarg (Makefile.am): Likewise.
48088         * modules/stdint (Makefile.am): Likewise.
48089         * modules/stdio (Makefile.am): Likewise.
48090         * modules/stdlib (Makefile.am): Likewise.
48091         * modules/string (Makefile.am): Likewise.
48092         * modules/strings (Makefile.am): Likewise.
48093         * modules/sys_select (Makefile.am): Likewise.
48094         * modules/sys_socket (Makefile.am): Likewise.
48095         * modules/sys_stat (Makefile.am): Likewise.
48096         * modules/sys_time (Makefile.am): Likewise.
48097         * modules/sysexits (Makefile.am): Likewise.
48098         * modules/time (Makefile.am): Likewise.
48099         * modules/unistd (Makefile.am): Likewise.
48100         * modules/wchar (Makefile.am): Likewise.
48101         * modules/wctype (Makefile.am): Likewise.
48102         Reported by Reuben Thomas <rrt@sc3d.org>.
48103
48104 2008-08-29  Bruno Haible  <bruno@clisp.org>
48105
48106         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
48107         any more.
48108
48109 2008-08-29  Simon Josefsson  <simon@josefsson.org>
48110
48111         * MODULES.html.sh (Misc): Add bitrotate.
48112
48113         * modules/bitrotate: New file.
48114
48115         * lib/bitrotate.h: New file.
48116
48117         * modules/bitrotate-tests: New file.
48118
48119         * tests/test-bitrotate.c: New file.
48120
48121         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
48122         on the bitrotate module.
48123
48124         * lib/arctwo.c: Use new bitrotate module.
48125
48126 2008-08-29  Jim Meyering  <meyering@redhat.com>
48127
48128         bootstrap: merge changes from coreutils
48129         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
48130         of copied files.  Remove a kludge, now that this is fixed.
48131         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
48132         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
48133         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
48134
48135 2008-08-29  Bruno Haible  <bruno@clisp.org>
48136
48137         * MODULES.html.sh: Remove --cvs-urls option.
48138
48139 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
48140
48141         maint.mk: adjust to file name change
48142         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
48143
48144 2008-08-28  Jim Meyering  <meyering@redhat.com>
48145
48146         * modules/getndelim2 (License): Relicense to LGPLv2+.
48147         Approved by Richard Stallman for the version of 1995, and by
48148         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
48149
48150 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
48151
48152         * lib/getdelim.c (flockfile, funlockfile): Make all of them
48153         dummy if one is not available.  Do not touch them if
48154         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
48155         (getc_maybe_unlocked): New.
48156         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
48157
48158 2008-08-26  Eric Blake  <ebb9@byu.net>
48159
48160         doc/INSTALL: resync from autoconf
48161         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
48162         (INSTALL_PRELUDE): Delete; this is done more efficiently by
48163         moving...
48164         * install.texi [!autoconf]: ...here.  Resync from autoconf.
48165         * INSTALL: Regenerate.
48166         * INSTALL.ISO: New file.
48167         * INSTALL.UTF-8: Likewise.
48168
48169 2008-08-26  Jim Meyering  <meyering@redhat.com>
48170
48171         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
48172         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
48173         these definitions conditional, so that they may be overridden, too.
48174
48175 2008-08-26  Bruno Haible  <bruno@clisp.org>
48176
48177         Generate INSTALL file variants with prettier quotes.
48178         * doc/Makefile (INSTALL_PRELUDE): New macro.
48179         (INSTALL): Use it.
48180         (INSTALL.ISO, INSTALL.UTF-8): New rules.
48181
48182 2008-08-26  Bruno Haible  <bruno@clisp.org>
48183
48184         Run makeinfo in an English locale.
48185         * doc/Makefile (MAKEINFO): New variable.
48186
48187 2008-08-26  Bruno Haible  <bruno@clisp.org>
48188
48189         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
48190         Suggested by Eric Blake.
48191
48192 2008-08-25  Bruno Haible  <bruno@clisp.org>
48193
48194         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
48195
48196 2008-08-25  Eric Blake  <ebb9@byu.net>
48197
48198         c-stack: test that stack overflow can be caught
48199         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
48200         that platform allows handling stack overflow; at least OS/2 EMX
48201         has sigaltstack, but crashes before transferring control to
48202         handler on stack overflow.
48203         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
48204         check for HAVE_STACK_OVERFLOW_HANDLING.
48205         Reported by Elbert Pol.
48206
48207 2008-08-25  Bruno Haible  <bruno@clisp.org>
48208
48209         * doc/posix-functions/strftime.texi: Fix description of strftime
48210         module.
48211
48212 2008-08-24  Bruno Haible  <bruno@clisp.org>
48213
48214         * tests/uniwidth/test-uc_width2.c: New file.
48215         * tests/uniwidth/test-uc_width2.sh: New file.
48216         * modules/uniwidth/width-tests (Files): Add the new files.
48217         (TESTS): Add uniwidth/test-uc_width2.sh.
48218         (TESTS_ENVIRONMENT): New variable.
48219         (check_PROGRAMS): Add test-uc_width2.
48220         (test_uc_width2_SOURCES): New variable.
48221
48222         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
48223         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
48224         not 0x00AB.
48225         Reported by Alexander V. Lukyanov <lav@netis.ru>.
48226
48227 2008-08-22  Eric Blake  <ebb9@byu.net>
48228
48229         test-lock, test-tls: mention why a test is skipped
48230         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
48231         skipped.
48232         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
48233
48234         count-one-bits: relax license
48235         * modules/count-one-bits (License): Relicense to LGPLv2+.
48236         Suggested by Ludovic Courtès, approved by Ben Pfaff.
48237
48238 2008-08-22  Andreas Schwab  <schwab@suse.de>
48239
48240         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
48241         Remove spurious space in assignment.
48242
48243 2008-08-21  Simon Josefsson  <simon@josefsson.org>
48244
48245         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
48246         Paul Eggert <eggert@CS.UCLA.EDU>.
48247
48248 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
48249
48250         * modules/gettext: Add m4/threadlib.m4.
48251
48252 2008-08-19  Eric Blake  <ebb9@byu.net>
48253
48254         test-c-stack: fix compilation failure on FreeBSD 5.0
48255         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
48256         headers before <sys/resource.h>.
48257         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
48258         the bug.
48259         Reported by Nelson H. F. Beebe.
48260
48261         strverscmp: migrate from "strverscmp.h" to <string.h>
48262         * modules/string (Makefile.am): Add new hooks.
48263         * modules/strverscmp (Files): Remove strverscmp.h.
48264         (Depends-on): Add string.
48265         (configure.ac): Add indicator.
48266         (Include): Mention new header.
48267         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
48268         defaults.
48269         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
48270         results.
48271         * lib/strverscmp.h: Delete.
48272         * lib/string.in.h (strverscmp): Provide declaration, when needed.
48273         * tests/test-strverscmp.c (includes): Adjust client.
48274         * lib/check-version.c (includes): Likewise.
48275         * NEWS: Document the change.
48276
48277         strverscmp: add unit test
48278         * modules/strverscmp-tests: New file.
48279         * tests/test-strverscmp.c: Likewise.
48280
48281 2008-08-19  Simon Josefsson  <simon@josefsson.org>
48282
48283         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
48284         regarding Windows crypto stuff, from Mono.
48285
48286 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
48287
48288         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
48289         if present, for intel RND.  Return error on failures.
48290
48291 2008-08-18  Ben Pfaff  <blp@gnu.org>
48292
48293         gitlog-to-changelog: give better diagnostic for failed pipe-open
48294         * build-aux/gitlog-to-changelog: Improve error message: suggest
48295         that the version of Git may be too old.
48296
48297 2008-08-18  Simon Josefsson  <simon@josefsson.org>
48298
48299         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
48300         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
48301
48302 2008-08-18  Bruno Haible  <bruno@clisp.org>
48303
48304         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
48305         pthread_in_use().
48306
48307 2008-08-18  Bruno Haible  <bruno@clisp.org>
48308
48309         * lib/glthread/threadlib.c: Include <pthread.h>.
48310
48311 2008-08-18  Bruno Haible  <bruno@clisp.org>
48312
48313         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
48314         glthread_recursive_lock_* macros.
48315         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
48316         Fix syntax error.
48317
48318 2008-08-18  Bruno Haible  <bruno@clisp.org>
48319
48320         * lib/glthread/thread.c: Avoid forcing a context switch right after
48321         thread creation.
48322
48323 2008-08-17  Bruno Haible  <bruno@clisp.org>
48324
48325         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
48326         * lib/glthread/thread.h: Provide Win32 specific implementation.
48327         * modules/thread (Files): Add lib/glthread/thread.c.
48328         (Depends-on): Add lock.
48329         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
48330
48331 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48332
48333         New module 'yield'.
48334         * modules/yield: New file.
48335         * lib/glthread/yield.h: New file.
48336         * m4/yield.m4: New file.
48337         * MODULES.html.sh (Multithreading): Add yield.
48338
48339 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48340
48341         New module 'thread'.
48342         * modules/thread: New file.
48343         * lib/glthread/thread.h: New file.
48344         * m4/thread.m4: New file.
48345         * MODULES.html.sh (Multithreading): Add thread.
48346
48347 2008-08-17  Bruno Haible  <bruno@clisp.org>
48348
48349         * lib/glthread/lock.h: Include <stdlib.h> always.
48350         * lib/glthread/tls.h: Likewise.
48351         * lib/glthread/cond.h: Likewise.
48352
48353 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48354
48355         New module 'cond'.
48356         * modules/cond: New file.
48357         * lib/glthread/cond.h: New file.
48358         * lib/glthread/cond.c: New file.
48359         * m4/cond.m4: New file.
48360         * MODULES.html.sh (Multithreading): Add cond.
48361
48362 2008-08-16  Eric Blake  <ebb9@byu.net>
48363
48364         c-stack: fix regression on Irix 5.3 from 2008-06-21
48365         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
48366         sa_sigaction...
48367         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
48368         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
48369         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
48370         * modules/signal (Makefile.am): Use the value.
48371         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
48372         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
48373         * doc/posix-headers/signal.texi (signal.h): Document this
48374         portability issue.
48375         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
48376         Reported by Tom G. Christensen.
48377
48378 2008-08-17  Bruno Haible  <bruno@clisp.org>
48379
48380         New module 'threadlib'.
48381         * modules/threadlib: New file.
48382         * lib/glthread/threadlib.c: New file, extracted from
48383         lib/glthread/lock.c.
48384         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
48385         functions.
48386         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
48387         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
48388         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
48389         macros.
48390         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
48391         (gl_DISABLE_THREADS): Remove macro.
48392         * modules/lock (Files): Remove build-aux/config.rpath.
48393         (Depends-on): Remove havelib. Add threadlib.
48394         (configure.ac-early): Remove section.
48395         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
48396         * modules/tls (Depends-on): Remove lock. Add threadlib.
48397         (Link): New section, copied from threadlib.
48398         * MODULES.html.sh (Multithreading): Add threadlib.
48399
48400 2008-08-14  Bruno Haible  <bruno@clisp.org>
48401
48402         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
48403         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
48404         glthread_rwlock_unlock, glthread_rwlock_destroy,
48405         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
48406         glthread_recursive_lock_destroy): Define as macros always.
48407         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
48408         glthread_lock_lock.
48409         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
48410         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
48411         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
48412         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
48413         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
48414         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
48415         (glthread_recursive_lock_lock_func): Renamed from
48416         glthread_recursive_lock_lock.
48417         (glthread_recursive_lock_unlock_func): Renamed from
48418         glthread_recursive_lock_unlock.
48419         (glthread_recursive_lock_destroy_func): Renamed from
48420         glthread_recursive_lock_destroy.
48421
48422 2008-08-14  Bruno Haible  <bruno@clisp.org>
48423
48424         * lib/glthread/lock.h: Renamed from lib/lock.h.
48425         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
48426         * lib/glthread/tls.h: Renamed from lib/tls.h.
48427         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
48428         * lib/fstrcmp.c: Update includes.
48429         * lib/strsignal.c: Update includes.
48430         * modules/lock (Files, Makefile.am): Update.
48431         (Include): Change to "glthread/lock.h".
48432         * modules/tls (Files, Makefile.am): Update.
48433         (Include): Change to "glthread/tls.h".
48434         * tests/test-lock.c: Update includes.
48435         * tests/test-tls.c: Update includes.
48436         * NEWS: Mention the renamed header files.
48437
48438 2008-08-11  Jim Meyering  <meyering@redhat.com>
48439
48440         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
48441
48442 2008-08-11  Eric Blake  <ebb9@byu.net>
48443
48444         test-c-stack: avoid C99-ism
48445         * tests/test-c-stack.c (main): Fix whitespace, move declaration
48446         before statement.
48447         Reported by Alain Guibert.
48448
48449 2008-08-10  Jim Meyering  <meyering@redhat.com>
48450
48451         ensure that return value of uinttostr et al are not ignored
48452         * lib/inttostr.h (__GNUC_PREREQ): Define.
48453         (__attribute_warn_unused_result__): Define.
48454         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
48455
48456 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
48457
48458         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
48459         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
48460
48461 2008-08-07  Jim Meyering  <meyering@redhat.com>
48462
48463         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
48464
48465         * modules/mkstemp (License): Relicense under LGPLv2+.
48466         * modules/tempname (License): Likewise.
48467
48468 2008-08-06  Bruno Haible  <bruno@clisp.org>
48469
48470         * lib/poll.c (poll): Further micro-optimization.
48471
48472 2008-08-06  Jim Meyering  <meyering@redhat.com>
48473
48474         inet_pton.c: use locale-independent tolower
48475         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
48476         (inet_pton6): Use c_tolower rather than tolower.
48477         * modules/inet_pton (Depends-on): Add c-ctype.
48478
48479 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
48480
48481         * lib/poll.c (poll): Avoid division when timeout is 0, cache
48482         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
48483
48484 2008-08-06  Jim Meyering  <meyering@redhat.com>
48485
48486         * modules/inet_pton (License): Relicense under LGPLv2+.
48487
48488 2008-08-03  Bruno Haible  <bruno@clisp.org>
48489
48490         Additional non-aborting API for lock and tls.
48491         * lib/lock.h: Include <errno.h>.
48492         (glthread_lock_init): New macro/function.
48493         (gl_lock_init): Define as wrapper around glthread_lock_init.
48494         (glthread_lock_lock): New macro/function.
48495         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
48496         (glthread_lock_unlock): New macro/function.
48497         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
48498         (glthread_lock_destroy): New macro/function.
48499         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
48500         (glthread_rwlock_init): New macro/function.
48501         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
48502         (glthread_rwlock_rdlock): New macro/function.
48503         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
48504         (glthread_rwlock_wrlock): New macro/function.
48505         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
48506         (glthread_rwlock_unlock): New macro/function.
48507         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
48508         (glthread_rwlock_destroy): New macro/function.
48509         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
48510         (glthread_recursive_lock_init): New macro/function.
48511         (gl_recursive_lock_init): Define as wrapper around
48512         glthread_recursive_lock_init.
48513         (glthread_recursive_lock_lock): New macro/function.
48514         (gl_recursive_lock_lock): Define as wrapper around
48515         glthread_recursive_lock_lock.
48516         (glthread_recursive_lock_unlock): New macro/function.
48517         (gl_recursive_lock_unlock): Define as wrapper around
48518         glthread_recursive_lock_unlock.
48519         (glthread_recursive_lock_destroy): New macro/function.
48520         (gl_recursive_lock_destroy): Define as wrapper around
48521         glthread_recursive_lock_destroy.
48522         (glthread_once): New macro/function.
48523         (gl_once): Define as wrapper around glthread_once.
48524         Update function declarations.
48525         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
48526         glthread_rwlock_init. Return error code.
48527         (glthread_rwlock_rdlock_multithreaded): Renamed from
48528         glthread_rwlock_rdlock. Return error code.
48529         (glthread_rwlock_wrlock_multithreaded): Renamed from
48530         glthread_rwlock_wrlock. Return error code.
48531         (glthread_rwlock_unlock_multithreaded): Renamed from
48532         glthread_rwlock_unlock. Return error code.
48533         (glthread_rwlock_destroy_multithreaded): Renamed from
48534         glthread_rwlock_destroy. Return error code.
48535         (glthread_recursive_lock_init_multithreaded): Renamed from
48536         glthread_recursive_lock_init. Return error code.
48537         (glthread_recursive_lock_lock_multithreaded): Renamed from
48538         glthread_recursive_lock_lock. Return error code.
48539         (glthread_recursive_lock_unlock_multithreaded): Renamed from
48540         glthread_recursive_lock_unlock. Return error code.
48541         (glthread_recursive_lock_destroy_multithreaded): Renamed from
48542         glthread_recursive_lock_destroy. Return error code.
48543         (glthread_once_call): Make static.
48544         (glthread_once_multithreaded): Renamed from glthread_once.
48545         * lib/tls.h: Include <errno.h>.
48546         (glthread_tls_key_init): New macro/function.
48547         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
48548         (glthread_tls_set): New macro/function.
48549         (gl_tls_set): Define as wrapper around glthread_tls_set.
48550         (glthread_tls_key_destroy): New macro/function.
48551         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
48552         Update function declarations.
48553         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
48554         glthread_tls_get.
48555         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
48556
48557 2008-08-04  Eric Blake  <ebb9@byu.net>
48558
48559         gnumakefile: use space, not TAB, outside of targets
48560         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
48561
48562 2008-08-02  Jim Meyering  <meyering@redhat.com>
48563
48564         getdate.y: avoid locale-dependent date parsing failure
48565         In Turkish locales, getdate would fail to recognize keywords
48566         containing a lowercase "i".  The solution is not to rely on
48567         locale-sensitive case-conversion.
48568         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
48569         (lookup_word): Use c_toupper in place of toupper.
48570         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
48571         Reported by Vefa Bicakci <bicave@superonline.com> in
48572         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
48573         * modules/getdate (Depends-on): Add c-ctype.
48574
48575 2008-08-02  Bruno Haible  <bruno@clisp.org>
48576
48577         * gnulib-tool (func_import): When updating or creating a .gitignore
48578         file, prepend each added line with a slash, and ignore leading slashes
48579         from the existing lines.
48580         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
48581
48582 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48583
48584         Portability fix for GNU make 3.79.1.
48585         * top/GNUmakefile: Avoid 'else COND', which older GNU make
48586         versions do not understand.
48587
48588 2008-08-01  Bruno Haible  <bruno@clisp.org>
48589
48590         Work around bug of HP-UX 10.20 cc with -0.0 literal.
48591         * tests/test-isnanf.h (zero): New variable.
48592         (main): Avoid literal -0.0f.
48593         * tests/test-isnand.h (zero): New variable.
48594         (main): Avoid literal -0.0.
48595         * tests/test-isnanl.h (zero): New variable.
48596         (main): Avoid literal -0.0L.
48597         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
48598         (test_float, test_double, test_long_double): Avoid literals -0.0f,
48599         -0.0, -0.0L.
48600         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
48601         (test_signbitd): Avoid literal -0.0.
48602         (test_signbitl): Avoid literal -0.0L.
48603         * tests/test-ceilf1.c (zero): New variable.
48604         (main): Avoid literal -0.0f.
48605         * tests/test-ceill.c (zero): New variable.
48606         (main): Avoid literal -0.0L.
48607         * tests/test-floorf1.c (zero): New variable.
48608         (main): Avoid literal -0.0f.
48609         * tests/test-floorl.c (zero): New variable.
48610         (main): Avoid literal -0.0L.
48611         * tests/test-roundf1.c (zero): New variable.
48612         (main): Avoid literal -0.0f.
48613         * tests/test-round1.c (zero): New variable.
48614         (main): Avoid literal -0.0.
48615         * tests/test-roundl.c (zero): New variable.
48616         (main): Avoid literal -0.0L.
48617         * tests/test-truncf1.c (zero): New variable.
48618         (main): Avoid literal -0.0f.
48619         * tests/test-trunc1.c (zero): New variable.
48620         (main): Avoid literal -0.0.
48621         * tests/test-truncl.c (zero): New variable.
48622         (main): Avoid literal -0.0L.
48623         * tests/test-frexp.c (zero): New variable.
48624         (main): Avoid literal -0.0.
48625         * tests/test-frexpl.c (zero): New variable.
48626         (main): Avoid literal -0.0L.
48627         * tests/test-ldexpl.c (zero): New variable.
48628         (main): Avoid literal -0.0L.
48629         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
48630         (zerod, zerol): New variables.
48631         (test_function): Avoid literals -0.0, -0.0L.
48632         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
48633         (zerod, zerol): New variables.
48634         (test_function): Avoid literals -0.0, -0.0L.
48635         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
48636         (zerod, zerol): New variables.
48637         (test_function): Avoid literals -0.0, -0.0L.
48638         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
48639         (zerod, zerol): New variables.
48640         (test_function): Avoid literals -0.0, -0.0L.
48641         * tests/test-strtod.c (zero): New variable.
48642         (main): Avoid literal -0.0.
48643         Reported by Jonathan C. Patschke <jp@centtech.com>.
48644
48645 2008-07-31  Jim Meyering  <meyering@redhat.com>
48646
48647         sha256.h: correct definition of SHA224_DIGEST_SIZE
48648         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
48649         Reported by Paulie Pena IV <paulie4@gmail.com>.
48650         Define as 224 / 8, rather than as a literal.
48651         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
48652         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
48653         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
48654
48655 2008-07-31  Bruno Haible  <bruno@clisp.org>
48656
48657         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
48658         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
48659         Reported by Jonathan Patschke <jp@centtech.com>.
48660
48661 2008-07-31  Bruno Haible  <bruno@clisp.org>
48662
48663         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
48664         Reported by Paolo Bonzini <bonzini@gnu.org>.
48665
48666 2008-07-30  Eric Blake  <ebb9@byu.net>
48667
48668         test-strtod: allow compilation without -lm
48669         * tests/test-strtod.c (main): Avoid link dependence on fabs.
48670         Reported by Dennis Clarke <blastwave@gmail.com>.
48671
48672 2008-07-28  Jim Meyering  <meyering@redhat.com>
48673
48674         bootstrap: work also when there are no .po files in po/
48675         * build-aux/bootstrap (update_po_files): Complete the change
48676         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
48677
48678 2008-07-27  Jim Meyering  <meyering@redhat.com>
48679
48680         * users.txt: Add zile.
48681
48682 2008-07-26  Ben Pfaff  <blp@gnu.org>
48683
48684         Add missing dependencies on new m4/exponent[fdl].m4 files.
48685         * modules/isnanf-nolibm: Add m4/exponentf.m4.
48686         * modules/isnand-nolibm: Add m4/exponentd.m4.
48687         * modules/isnanl-nolibm: Add m4/exponentl.m4.
48688         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
48689         m4/isnan[fdl].m4, because the macros actually used moved.
48690         Reported by Jim Meyering.
48691
48692 2008-07-14  Ben Pfaff  <blp@gnu.org>
48693
48694         Add isinf module.
48695         * lib/isinf.c: New file.
48696         * lib/math.in.h: Define isinf macro if we have decided to replace
48697         it.
48698         * m4/isinf.m4: New file.
48699         * m4/math_h.m4: Initialize and substitute variables for isinf
48700         module.
48701         * modules/isinf: New file.
48702         * modules/isinf-tests: New file.
48703         * modules/math: Add substitutions for new module.
48704         * tests/test-isinf.c: New file.
48705         * doc/posix-functions/isinf.texi: Mention new module.
48706         * MODULES.html.sh: Mention new module.
48707
48708 2008-07-14  Ben Pfaff  <blp@gnu.org>
48709
48710         Factor out some macros for use by additional modules.
48711         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
48712         exponentf.m4.
48713         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
48714         exponentd.m4.
48715         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
48716         file exponentl.m4.
48717         * m4/exponentf.m4: New file.
48718         * m4/exponentd.m4: New file.
48719         * m4/exponentl.m4: New file.
48720         * modules/isnanf: Use new file m4/exponentf.m4.
48721         * modules/isnand: Use new file m4/exponentd.m4.
48722         * modules/isnanl: Use new file m4/exponentl.m4.
48723
48724 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
48725
48726         mktime.c: normalize tp->tm_isdst value to -1/0/1.
48727         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
48728         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
48729         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
48730
48731         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
48732         readlink on platforms without PATH_MAX.
48733
48734 2008-07-21  Eric Blake  <ebb9@byu.net>
48735
48736         Warn, not fail, on stale version.
48737         * top/GNUmakefile (_curr-ver): Tone down previous patch.
48738
48739         Don't allow installation with stale devel version number.
48740         * top/GNUmakefile (_is-install-target): New macro.
48741         (_curr-ver): Forbid installation with stale version number.
48742
48743 2008-07-20  Bruno Haible  <bruno@clisp.org>
48744
48745         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
48746         TESTS_ENVIRONMENT.
48747         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
48748
48749 2008-07-20  Bruno Haible  <bruno@clisp.org>
48750
48751         * lib/c-stack.h (c_stack_action): Add documentation.
48752         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
48753
48754 2008-07-20  Bruno Haible  <bruno@clisp.org>
48755
48756         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
48757         * modules/readlink (License): Likewise.
48758
48759 2008-07-17  Eric Blake  <ebb9@byu.net>
48760
48761         * modules/c-stack (Link): Fix typo.
48762
48763         Make c-stack use libsigsegv, when available.
48764         * modules/c-stack (Depends-on): Add libsigsegv.
48765         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
48766         needed.
48767         * lib/c-stack.c (SIGSTKSZ): Define fallback.
48768         (segv_handler, overflow_handler, c_stack_action)
48769         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
48770         implementation when libsigsegv is available, but only when using
48771         the library is necessary.
48772         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
48773         comment, explaining why XSI check fails on Linux.
48774         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
48775         * tests/test-c-stack2.sh: Tweak skip message.
48776         * NEWS: Document new link-time requirements.
48777
48778 2008-07-16  Eric Blake  <ebb9@byu.net>
48779
48780         c-stack: Expose false positives when not using libsigsegv.
48781         * modules/c-stack-tests (Files): Expand test.
48782         * tests/test-c-stack.c (main): Add means to conditionally trigger
48783         non-overflow SIGSEGV.
48784         * tests/test-c-stack2.sh: New file.
48785
48786 2008-07-14  Bruno Haible  <bruno@clisp.org>
48787
48788         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
48789         Reported by Eric Blake.
48790
48791 2008-07-14  Sam Steingold  <sds@gnu.org>
48792             Bruno Haible  <bruno@clisp.org>
48793
48794         New module libsigsegv.
48795         * modules/libsigsegv: New file.
48796         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
48797         modifications.
48798         * MODULES.html.sh (Signal handling): New section.
48799
48800 2008-07-14  Bruno Haible  <bruno@clisp.org>
48801
48802         * modules/unictype/ctype-* (Description): Add the word "function".
48803         Improves the resulting doc in MODULES.html.
48804
48805 2008-07-12  Ben Pfaff  <blp@gnu.org>
48806
48807         Add longlong module.
48808         * modules/longlong: New file.
48809
48810 2008-07-12  Bruno Haible  <bruno@clisp.org>
48811
48812         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
48813         to empty.
48814
48815 2008-07-10  Ben Pfaff  <blp@gnu.org>
48816
48817         Add isnan module.
48818         * doc/posix-functions/isnan.texi: Mention new module.
48819         * lib/math.in.h: Define isnan macro if we have decided to replace
48820         it.
48821         * m4/isnan.m4: New file.
48822         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
48823         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
48824         also.
48825         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
48826         redundancy.
48827         * m4/math_h.m4: Initialize and substitute variables for isnan
48828         module.
48829         * modules/isnan: New file.
48830         * modules/isnan-tests: New file.
48831         * modules/math: Add substitutions for new module.
48832         * tests/test-isnan.c: New file.
48833         * MODULES.html.sh: Mention new module.
48834
48835 2008-07-10  Ben Pfaff  <blp@gnu.org>
48836
48837         Add isnanf module.
48838         * lib/isnanf.m4: New file.
48839         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
48840         (gl_HAVE_ISNANF_IN_LIBM): New macro.
48841         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
48842         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
48843         * modules/isnanf: New file.
48844         * modules/isnanf-tests: New file.
48845         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
48846         files.
48847         * tests/test-isnanf-nolibm.c: factored most of its contents into
48848         new file tests/test-isnanf.h.
48849         * tests/test-isnanf.h: New file.
48850         * tests/test-isnanf.c: New file.
48851         * MODULES.html.sh: Mention new module.
48852         * doc/glibc-functions/isnanf.texi: Mention new module.
48853
48854 2008-07-10  Ben Pfaff  <blp@gnu.org>
48855
48856         Add isnand module.
48857         * lib/isnand.h: New file.
48858         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
48859         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
48860         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
48861         functionality also.
48862         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
48863         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
48864         (gl_HAVE_ISNAND_IN_LIBM): New macro.
48865         * modules/isnand: New file.
48866         * modules/isnand-tests: New file.
48867         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
48868         files.
48869         * tests/test-isnand-nolibm.c: factored most of its contents into
48870         new file tests/test-isnand.h.
48871         * tests/test-isnand.h: New file.
48872         * tests/test-isnand.c: New file.
48873         * MODULES.html.sh: Mention new module.
48874
48875 2008-07-10  Ben Pfaff  <blp@gnu.org>
48876
48877         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
48878         * lib/isnand.h: Rename lib/isnand-nolibm.h.
48879         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
48880         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
48881         * modules/isnanf-nolibm: Update references to renamed files.
48882         * modules/isnand-nolibm: Likewise.
48883         * modules/isnanf-nolibm-tests: Likewise.
48884         * modules/isnand-nolibm-tests: Likewise.
48885         * lib/frexp.c: Likewise.
48886         * lib/isfinite.c: Likewise.
48887         * lib/signbitd.c: Likewise.
48888         * lib/signbitf.c: Likewise.
48889         * lib/vasnprintf.c: Likewise.
48890         * tests/test-ceilf1.c: Likewise.
48891         * tests/test-ceilf2.c: Likewise.
48892         * tests/test-floorf1.c: Likewise.
48893         * tests/test-floorf2.c: Likewise.
48894         * tests/test-frexp.c: Likewise.
48895         * tests/test-round1.c: Likewise.
48896         * tests/test-round2.c: Likewise.
48897         * tests/test-roundf1.c: Likewise.
48898         * tests/test-strtod.c: Likewise.
48899         * tests/test-trunc1.c: Likewise.
48900         * tests/test-trunc2.c: Likewise.
48901         * tests/test-truncf1.c: Likewise.
48902         * tests/test-truncf2.c: Likewise.
48903         * NEWS: Mention the renamed header files.
48904
48905 2008-07-11  Jim Meyering  <meyering@redhat.com>
48906
48907         vc-list-files: make the last-resort awk code more portable
48908         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
48909         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
48910         does not support it.
48911
48912 2008-07-10  Eric Blake  <ebb9@byu.net>
48913
48914         Work with tar's bootstrap.
48915         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
48916         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
48917         an m4 comment.
48918
48919 2008-07-09  Jim Meyering  <meyering@redhat.com>
48920
48921         posix-shell.m4: fix typo that made this test malfunction
48922         * m4/posix-shell.m4: Remove capitalization in variable name.
48923
48924 2008-07-08  Bruno Haible  <bruno@clisp.org>
48925
48926         * m4/onceonly.m4: Update comments.
48927         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48928
48929 2008-07-04  Jim Meyering  <meyering@redhat.com>
48930
48931         * users.txt: Add vc-dwim.
48932         (bison, coreutils): Use the gitweb URL.
48933
48934 2008-07-03  Jim Meyering  <meyering@redhat.com>
48935
48936         * users.txt: Add libffcall.  From Sam Steingold.
48937
48938 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
48939
48940         getdate.y: do not ignore TZ with relative day, month or year offset
48941         * lib/getdate.y (get_date): Move the tz-handling block to follow the
48942         relative-date-handling, since otherwise, the latter would clobber the
48943         sole output (an updated Start value) of the tz-handling block.
48944         * tests/test-getdate.c: Tests for the fix
48945
48946 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48947
48948         Recognize 'foo_LIBRARIES += libgnu.a'.
48949         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
48950         makefile snippet has already specified an installation location,
48951         also using '+='.
48952
48953 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
48954
48955         getdate.y: factor out common actions
48956         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
48957         Use them in place of open-coded actions.
48958
48959 2008-07-01  Simon Josefsson  <simon@josefsson.org>
48960
48961         Add self-test for getdate module.
48962         * modules/getdate-tests: New file.
48963         * tests/test-getdate.c: New file.
48964
48965 2008-06-29  Bruno Haible  <bruno@clisp.org>
48966
48967         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
48968         .gitignore.
48969         Reported by Sylvain Beucler <beuc@beuc.net>.
48970
48971 2008-06-29  Bruno Haible  <bruno@clisp.org>
48972
48973         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
48974         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
48975
48976 2008-06-29  Bruno Haible  <bruno@clisp.org>
48977
48978         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
48979         EXTRA_DIST.
48980         Reported by Sylvain Beucler <beuc@beuc.net>.
48981
48982 2008-06-26  Jim Meyering  <meyering@redhat.com>
48983
48984         make several modules depend on the "open" module
48985         This provides slightly increased consistency when opening-for-write
48986         the name of a non-directory spelled with a trailing slash.
48987         * modules/chdir-safer: Likewise.
48988         * modules/chown: Likewise.
48989         * modules/clean-temp: Likewise.
48990         * modules/copy-file: Likewise.
48991         * modules/fchdir: Likewise.
48992         * modules/fcntl-safer: Likewise.
48993         * modules/pipe: Likewise.
48994         * modules/utime: Likewise.
48995         Prompted by Eric Blake and Bruno Haible.
48996
48997 2008-06-24  Andreas Schwab  <schwab@suse.de>
48998
48999         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
49000         literals can be used as initializers for global variables.
49001
49002 2008-06-23  Eric Blake  <ebb9@byu.net>
49003
49004         Make gnulib-cache.m4 easier to diff.
49005         * gnulib-tool (func_import): Allow newlines when reading cached
49006         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
49007
49008 2008-06-23  Bruno Haible  <bruno@clisp.org>
49009
49010         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
49011         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
49012         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
49013         m4/signalblocking.m4.
49014         (gl_PREREQ_SIGACTION): Don't invoke it.
49015         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
49016         gl_PREREQ_SIG_HANDLER_H.
49017         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
49018         Don't check for sigaction here.
49019
49020 2008-06-23  Bruno Haible  <bruno@clisp.org>
49021
49022         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
49023         (install_handlers): Don't set the SA_RESETHAND flag.
49024
49025 2008-06-23  Bruno Haible  <bruno@clisp.org>
49026
49027         * m4/sigaction.m4: Comment fixes.
49028         * lib/signal.in.h: Likewise.
49029
49030 2008-06-23  Eric Blake  <ebb9@byu.net>
49031
49032         Fix typo.
49033         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
49034
49035         Avoid SA_ namespace.
49036         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
49037         Reported by Ralf Wildenhues.
49038
49039         Avoid test failure due to SA_RESTORER.
49040         * tests/test-sigaction.c (SA_MASK): New macro.
49041         (main): Avoid failing due to extension flags being set.
49042         Reported by Jim Meyering.
49043
49044         Revert use of sig-handler.h in sigprocmask.c.
49045         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
49046         it requires the existence of struct sigaction.
49047         * lib/sigprocmask.c (handler_t): Restore typedef.
49048         (rpl_signal, old_handlers): Use local type.
49049
49050 2008-06-22  Bruno Haible  <bruno@clisp.org>
49051
49052         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
49053         conditionally.
49054         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49055
49056 2008-06-22  Bruno Haible  <bruno@clisp.org>
49057
49058         * doc/posix-functions/siginterrupt.texi: Move note.
49059
49060         * lib/signal.in.h (SA_RESTART): New macro.
49061         * lib/sigaction.c: Update comment.
49062
49063         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
49064
49065         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
49066         (gl_PREREQ_SIGPROCMASK): Invoke it.
49067         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
49068
49069         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
49070
49071         * lib/sigprocmask.c: Update a comment.
49072
49073 2008-06-21  Eric Blake  <ebb9@byu.net>
49074
49075         Use sigaction module rather than signal().
49076         * modules/c-stack (Depends-on): Add sigaction.
49077         * modules/fatal-signal (Depends-on): Likewise.
49078         * modules/nanosleep (Depends-on): Likewise.
49079         * modules/sigprocmask (Files): Add sig-handler.h.
49080         * modules/sigaction (Files): Likewise.
49081         * lib/sig-handler.h (get_handler): New file, suggested by Paul
49082         Eggert.
49083         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
49084         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
49085         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
49086         (init_fatal_signals): Likewise.
49087         * lib/nanosleep.c (rpl_nanosleep): Likewise.
49088         (siginterrupt): Delete fallback.
49089         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
49090         instead.
49091         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
49092         siginterrupt.
49093
49094         New module sigaction, for mingw.
49095         * modules/sigaction: New module...
49096         * modules/sigaction-tests: ...and its test.
49097         * m4/sigaction.m4: New file.
49098         * lib/sigaction.c: Likewise.
49099         * tests/test-sigaction.c: Likewise.
49100         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
49101         * modules/signal (Makefile.am): Likewise.
49102         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
49103         needed.
49104         * doc/posix-headers/signal.texi (signal.h): Mention provided
49105         types.
49106         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
49107         that sigaction is preferable.
49108         * doc/posix-functions/sigaction.texi (sigaction): Mention new
49109         module.
49110         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49111         sigaction.
49112
49113         Improve robustness of sigprocmask by overriding signal.
49114         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
49115         is in use.
49116         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
49117         (SIGKILL, SIGSTOP): Provide fallbacks.
49118         (rpl_signal): Implement.
49119         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
49120         signal can be called inside handlers.
49121
49122         Fix nanosleep module on mingw.
49123         * modules/nanosleep (Depends-on): Add sys_select.
49124         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
49125
49126         Fix licensing of sigprocmask.
49127         * modules/raise (License): Relicense as LGPL.
49128
49129 2008-06-21  Bruno Haible  <bruno@clisp.org>
49130
49131         * lib/propername.c (proper_name_utf8): Don't use the transliterated
49132         result if it contains question marks.
49133         Reported by Michael Geng <linux@michaelgeng.de>.
49134
49135 2008-06-19  Bruno Haible  <bruno@clisp.org>
49136
49137         Fix CVS-ism.
49138         * doc/gnulib.texi: Include updated-stamp.texi.
49139         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
49140         (updated-stamp.texi): New rule.
49141         (gnulib.info): Depend on it.
49142         * doc/.gitignore: Add updated-stamp.texi.
49143         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
49144
49145 2008-06-19  Bruno Haible  <bruno@clisp.org>
49146
49147         * doc/Makefile (gnulib.info): Update and simplify dependencies.
49148         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
49149
49150 2008-06-19  Eric Blake  <ebb9@byu.net>
49151
49152         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
49153         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
49154         Reported by Stepan Kasal.
49155
49156 2008-06-18  Bruno Haible  <bruno@clisp.org>
49157
49158         * lib/fatal-signal.c (init_fatal_signals): Add comment.
49159         Reported by Eric Blake.
49160
49161 2008-06-18  Eric Blake  <ebb9@byu.net>
49162
49163         Work around cygwin 1.5.25 strsignal bug.
49164         * tests/test-strsignal.c: Allow for const char *.
49165         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
49166
49167 2008-06-18  Simon Josefsson  <simon@josefsson.org>
49168
49169         * users.txt: Update URL to article and add author/date
49170         information.
49171
49172 2008-06-17  Bruno Haible  <bruno@clisp.org>
49173
49174         New macro gl_DISABLE_THREADS.
49175         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
49176         if the user did not pass --enable-threads or --disable-threads option.
49177         (gl_DISABLE_THREADS): New macro.
49178         Reported by Eric Blake <ebb9@byu.net>.
49179
49180 2008-06-17  Bruno Haible  <bruno@clisp.org>
49181
49182         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
49183         when the macro ignores it.
49184         Based on a patch by Eric Blake <ebb9@byu.net>.
49185
49186 2008-06-17  Bruno Haible  <bruno@clisp.org>
49187
49188         * modules/tls (License): Change to LGPLv2+.
49189         Reported by Eric Blake.
49190
49191 2008-06-17  Eric Blake  <ebb9@byu.net>
49192
49193         Simplify c-stack prerequisites.
49194         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
49195         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
49196         no longer requires <ucontext.h> to exist.  Optimize setrlimit
49197         check.
49198         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
49199         <sys/resource.h>.
49200
49201         Move c-stack test into testsuite.
49202         * modules/c-stack-tests: New file.
49203         * lib/c-stack.c [DEBUG]: Move test program...
49204         * tests/test-c-stack.c: ...into this new file.  Skip rather than
49205         fail test if sigaltstack is lacking.
49206         * tests/test-c-stack.sh: New driver file.
49207
49208 2008-06-16  Eric Blake  <ebb9@byu.net>
49209
49210         Use raise module consistently.
49211         * modules/fatal-signal (Depends-on): Add raise.
49212         * modules/sigprocmask (Depends-on): Likewise.
49213         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
49214         * lib/sigprocmask.c (sigprocmask): Likewise.
49215         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
49216         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
49217
49218         Fix compliance bug in sigpending.
49219         * lib/sigprocmask.c (sigpending): Return pending array via
49220         parameter, not return value.
49221
49222 2008-06-14  Eric Blake  <ebb9@byu.net>
49223
49224         Improve obstack-printf test code.
49225         * tests/test-obstack-printf.c (test_function): Fix comment, and
49226         simplify usage of obstack_* in macros.  Add a test for coverage.
49227         Reported by Bruno Haible.
49228
49229 2008-06-14  Bruno Haible  <bruno@clisp.org>
49230
49231         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
49232         array size as a constant, not as a const variable.
49233         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
49234         AC_USE_SYSTEM_EXTENSIONS.
49235         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
49236         Test whether the obstack_printf function actually exists.
49237         * modules/obstack-printf (Depends-on): Add extensions.
49238         (Include): Remove obstack.h.
49239         * modules/obstack-printf-posix (Depends-on): Add extensions.
49240         (Include): Remove obstack.h.
49241
49242 2008-06-13  Eric Blake  <ebb9@byu.net>
49243
49244         Add obstack-printf and obstack-printf-posix modules.
49245         * modules/obstack-printf: New file.
49246         * modules/obstack-printf-posix: Likewise.
49247         * MODULES.html.sh (Misc): Mention them.
49248         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
49249         Likewise.
49250         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
49251         Likewise.
49252         * modules/stdio (Makefile.am): Accomodate new modules.
49253         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
49254         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
49255         Declare.
49256         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
49257         functions.
49258         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
49259         (gl_REPLACE_OBSTACK_PRINTF): New macros
49260         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
49261         * tests/test-obstack-printf.c: New file.
49262         * modules/obstack-printf-tests: Likewise.
49263         * modules/obstack-printf-posix-tests: Likewise.
49264
49265 2008-06-11  Bruno Haible  <bruno@clisp.org>
49266
49267         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
49268         * lib/open.c: Include errno.h.
49269         (open): Fail when attempting to write to a file that has a trailing
49270         slash.
49271         * tests/test-open.c (main): Test against trailing slash bug.
49272         * doc/posix-functions/open.texi: Mention the trailing slash bug.
49273
49274 2008-06-10  Bruno Haible  <bruno@clisp.org>
49275
49276         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
49277         for $? to work inside the trap command, with various /bin/sh-s.
49278         * tests/test-vc-list-files-cvs.sh: Likewise.
49279
49280 2008-06-10  Bruno Haible  <bruno@clisp.org>
49281
49282         * lib/acl-internal.h: Don't include gettext.h here.
49283         * lib/set-mode-acl.c: Include gettext.h here.
49284         * lib/copy-acl.c: Likewise.
49285
49286 2008-06-10  Bruno Haible  <bruno@clisp.org>
49287
49288         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
49289         * lib/wait-process.c (wait_subprocess): Likewise.
49290         * lib/execute.h (execute): Add termsigp argument.
49291         * lib/execute.c (execute): Likewise.
49292         * lib/csharpcomp.c (compile_csharp_using_pnet,
49293         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
49294         * lib/csharpexec.c (execute_csharp_using_pnet,
49295         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
49296         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
49297         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
49298         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
49299         is_jikes_present): Update.
49300         * lib/javaexec.c (execute_java_class): Update.
49301         * lib/javaversion.c (execute_and_read_line): Update.
49302         * NEWS: Document the changes.
49303         Reported by Eric Blake.
49304
49305 2008-06-10  Eric Blake  <ebb9@byu.net>
49306
49307         Add missing include.
49308         * tests/test-strstr.c (includes): Add <signal.h>.
49309         * tests/test-strcasestr.c (includes): Likewise.
49310         * tests/test-memmem.c (includes): Likewise.
49311
49312 2008-06-10  Bruno Haible  <bruno@clisp.org>
49313
49314         * lib/wait-process.c (wait_subprocess): Add an assertion.
49315
49316 2008-06-10  Bruno Haible  <bruno@clisp.org>
49317
49318         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
49319
49320 2008-06-10  Bruno Haible  <bruno@clisp.org>
49321
49322         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
49323         using alarm().
49324         * tests/test-strcasestr.c (main): Likewise.
49325         * tests/test-strstr.c (main): Likewise.
49326
49327 2008-06-09  Bruno Haible  <bruno@clisp.org>
49328
49329         Work around the Solaris 10 ACE ACLs ABI change.
49330         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
49331         declare if ACL_NO_TRIVIAL is present.
49332         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
49333         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
49334         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
49335         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
49336         define if ACL_NO_TRIVIAL is present.
49337         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
49338         and use the current ABI.
49339         (file_has_acl): Use same #if condition as elsewhere.
49340         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
49341         in use, and use the current ABI.
49342         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
49343         Reported by Jim Meyering.
49344
49345 2008-06-09  Eric Blake  <ebb9@byu.net>
49346
49347         Work around environments that (stupidly) ignore SIGALRM.
49348         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
49349         before using alarm().
49350         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49351         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49352         Reported by Ian Beckwith <ianb@erislabs.net>.
49353
49354         Produce autobuild blurb earlier in log.
49355         * modules/autobuild (configure.ac-early): Move AB_INIT here.
49356
49357 2008-06-09  Jim Meyering  <meyering@redhat.com>
49358         and Ondřej Vašík  <ovasik@redhat.com>
49359
49360         utimens.c: correct kernel bug work-around
49361         Ondřej Vašík found that the invalid return value of 280 indicates
49362         failure, not success, and the kernel bug we're trying to work
49363         around affects not just the utimensat call, but also the fallback
49364         futimens call.
49365         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
49366         not success.
49367         [HAVE_FUTIMENS]: Use the same work-around, here.
49368
49369 2008-06-09  Jim Meyering  <meyering@redhat.com>
49370
49371         add more guards around definition of ACE_-related code
49372         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
49373         ALLOW and ACE_OWNER are also defined.
49374
49375 2008-06-08  Bruno Haible  <bruno@clisp.org>
49376
49377         * lib/acl-internal.h: Add me as co-author.
49378         * lib/file-has-acl.c: Likewise.
49379         * lib/set-mode-acl.c: Likewise.
49380         * lib/copy-acl.c: Likewise.
49381
49382 2008-06-08  Bruno Haible  <bruno@clisp.org>
49383
49384         Add support for AIX ACLs.
49385         * lib/acl-internal.h (acl_nontrivial): New declaration.
49386         * lib/file-has-acl.c (acl_nontrivial): New function.
49387         (file_has_acl): Add implementation using AIX 4 ACL API.
49388         * lib/set-mode-acl.c (qset_acl): Likewise.
49389         * lib/copy-acl.c (qcopy_acl): Likewise.
49390
49391 2008-06-08  Bruno Haible  <bruno@clisp.org>
49392
49393         Add support for HP-UX ACLs.
49394         * lib/acl-internal.h (acl_nontrivial): New declaration.
49395         * lib/file-has-acl.c (acl_nontrivial): New function.
49396         (file_has_acl): Add implementation using HP-UX 11 ACL API.
49397         * lib/set-mode-acl.c (qset_acl): Likewise.
49398         * lib/copy-acl.c (qcopy_acl): Likewise.
49399
49400 2008-06-08  Bruno Haible  <bruno@clisp.org>
49401
49402         Add support for Cygwin ACLs.
49403         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
49404         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
49405         the chmod_or_fchmod call.
49406         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
49407
49408 2008-06-08  Bruno Haible  <bruno@clisp.org>
49409
49410         Fix bug with setuid modes in Solaris 10+ code.
49411         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
49412         succeeded, when the mode contains some special bits.
49413
49414 2008-06-08  Bruno Haible  <bruno@clisp.org>
49415
49416         Add support for Solaris 7..10 ACLs.
49417         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
49418         declarations.
49419         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
49420         functions.
49421         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
49422         * lib/set-mode-acl.c (qset_acl): Likewise.
49423         * lib/copy-acl.c (qcopy_acl): Likewise.
49424
49425 2008-06-08  Bruno Haible  <bruno@clisp.org>
49426
49427         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
49428         declaration.
49429         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
49430         (acl_access_nontrivial): Remove MacOS X case.
49431         (file_has_acl): Use acl_extended_nontrivial.
49432         * lib/copy-acl.c (qcopy_acl): Likewise.
49433
49434 2008-06-08  Bruno Haible  <bruno@clisp.org>
49435
49436         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
49437
49438 2008-06-08  Jim Meyering  <meyering@redhat.com>
49439
49440         * modules/acl (Maintainer): Add Bruno Haible.
49441
49442 2008-06-07  Bruno Haible  <bruno@clisp.org>
49443
49444         Improve support for Tru64 ACLs.
49445         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
49446         ACL on OSF/1.
49447
49448 2008-06-07  Bruno Haible  <bruno@clisp.org>
49449
49450         Add support for MacOS X ACLs.
49451         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
49452         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
49453         * lib/set-mode-acl.c (qset_acl): Likewise.
49454         * lib/copy-acl.c (qcopy_acl): Likewise.
49455
49456 2008-06-07  Bruno Haible  <bruno@clisp.org>
49457
49458         Fix memory leak introduced on 2008-05-22.
49459         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
49460         use.
49461
49462 2008-06-07  Bruno Haible  <bruno@clisp.org>
49463
49464         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
49465         to construct an empty ACL.
49466
49467 2008-06-07  Bruno Haible  <bruno@clisp.org>
49468
49469         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
49470         precisely.
49471         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
49472
49473 2008-06-07  Bruno Haible  <bruno@clisp.org>
49474
49475         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
49476         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
49477
49478 2008-06-07  Bruno Haible  <bruno@clisp.org>
49479
49480         * doc/posix-functions/_setjmp.texi: Explain the use of this function
49481         regardless of POSIX.
49482         * doc/posix-functions/_longjmp.texi: Likewise.
49483         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
49484         SystemV platform in this case.
49485
49486 2008-06-06  Eric Blake  <ebb9@byu.net>
49487
49488         Document abort() bugs.
49489         * doc/posix-functions/abort.texi (abort): Mention anomalies.
49490
49491         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
49492         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
49493         sigsetjmp.
49494         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
49495         siglongjmp, but only as a macro.
49496         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
49497         is obsolete.
49498         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
49499
49500         Tweak documentation to cover cygwin argz bugs.
49501         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
49502         argz bug fix; no code change needed since no cygwin releases
49503         occurred between the last fix and the bug being tested.
49504         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
49505         module and recently fixed cygwin bugs.
49506         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
49507         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
49508         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
49509         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
49510         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
49511         Likewise.
49512         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
49513         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
49514         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
49515         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
49516         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
49517         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
49518         Likewise.
49519
49520         Avoid gcc warning on cygwin.
49521         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
49522         !ACL_NO_TRIVIAL]: Avoid unused variable.
49523
49524 2008-06-05  Eric Blake  <ebb9@byu.net>
49525
49526         Be tolerant of UNKNOWN version in gnulib-tool test dir.
49527         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
49528         git-version-gen fails to come up with a version.
49529         Reported by Simon Josefsson.
49530
49531 2008-06-05  Jim Meyering  <meyering@redhat.com>
49532             Paul Eggert  <eggert@cs.ucla.edu>
49533
49534         utimens.c: work around a probable Linux kernel bug
49535         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
49536         appears to be a kernel bug that causes utimensat to return 280
49537         instead of 0, indicating success.
49538
49539 2008-06-04  Bruno Haible  <bruno@clisp.org>
49540
49541         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
49542         2008-06-01 commit.
49543
49544 2008-06-04  Bruno Haible  <bruno@clisp.org>
49545
49546         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
49547         * lib/file-has-acl.c (acl_access_nontrivial): New function.
49548         (file_has_acl): Use it. Save errno afterwards.
49549         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
49550
49551 2008-06-03  Bruno Haible  <bruno@clisp.org>
49552
49553         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
49554         draft code. Simplify #ifs.
49555         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
49556         Put Solaris code after POSIX-draft code. Fix comments regarding
49557         Solaris 10, HP-UX. Mention Cygwin.
49558         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
49559
49560 2008-06-03  Eric Blake  <ebb9@byu.net>
49561
49562         Provide fallback for older kernels.
49563         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
49564         Provide runtime fallback if kernel lacks support.
49565         Reported by Mike Frysinger.
49566
49567 2008-06-02  Bruno Haible  <bruno@clisp.org>
49568
49569         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
49570         it exists.
49571
49572 2008-06-02  Bruno Haible  <bruno@clisp.org>
49573
49574         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
49575         * lib/copy-acl.c (qcopy_acl): Update comment.
49576
49577 2008-06-02  Bruno Haible  <bruno@clisp.org>
49578
49579         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
49580         like ACL APIs.
49581
49582 2008-06-02  Bruno Haible  <bruno@clisp.org>
49583
49584         * tests/test-file-has-acl.sh: Use different code for Cygwin.
49585         * tests/test-set-mode-acl.sh: Likewise.
49586         * tests/test-copy-acl.sh: Likewise.
49587         * tests/test-copy-file.sh: Likewise.
49588
49589 2008-06-02  Bruno Haible  <bruno@clisp.org>
49590
49591         * tests/test-file-has-acl.sh: Remove unused code.
49592
49593 2008-06-01  Bruno Haible  <bruno@clisp.org>
49594
49595         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
49596         (copy_acl): Just a wrapper around qcopy_acl that emits the error
49597         messages.
49598         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
49599
49600 2008-06-01  Bruno Haible  <bruno@clisp.org>
49601
49602         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
49603         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
49604         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
49605         APIs.
49606         * modules/acl-tests (configure.ac): Remove tests now contained in
49607         m4/acl.m4.
49608
49609 2008-06-02  Jim Meyering  <meyering@redhat.com>
49610
49611         announce-gen: use a better key-server host name
49612         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
49613         it may be more consistently reliable.  Suggested by Werner Koch
49614         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
49615
49616 2008-06-01  Bruno Haible  <bruno@clisp.org>
49617
49618         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
49619         Reported by Voroskoi Andras <voroskoi@gmail.com>.
49620
49621 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
49622
49623         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
49624
49625 2008-06-01  Bruno Haible  <bruno@clisp.org>
49626
49627         New ACL tests.
49628         * tests/test-file-has-acl.sh: New file.
49629         * tests/test-file-has-acl.c: New file.
49630         * tests/test-set-mode-acl.sh: New file.
49631         * tests/test-set-mode-acl.c: New file.
49632         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
49633         * tests/test-copy-acl.c: New file.
49634         * modules/acl-tests: New file, based on modules/copy-file-tests.
49635         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
49636         (Depends-on): Add acl-tests.
49637         (configure.ac): Remove checks.
49638         (Makefile.am): Don't create test-sameacls program here any more.
49639
49640 2008-06-01  Bruno Haible  <bruno@clisp.org>
49641
49642         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
49643         * tests/test-sameacls.c: Include progname.h.
49644         (main): Invoke set_program_name. Portability fixes for MacOS X,
49645         Solaris, HP-UX.
49646
49647 2008-06-01  Bruno Haible  <bruno@clisp.org>
49648
49649         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
49650         function.
49651         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
49652
49653 2008-06-01  Bruno Haible  <bruno@clisp.org>
49654
49655         * modules/rpmatch (Depends-on): Add strdup.
49656
49657 2008-06-01  Bruno Haible  <bruno@clisp.org>
49658
49659         * lib/pipe.c: Include unistd-safer.h.
49660         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
49661         * modules/pipe (Depends-on): Add unistd-safer.
49662
49663 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49664
49665         * modules/autobuild (configure.ac): Call AB_INIT.
49666
49667 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49668
49669         * tests/test-getaddrinfo.c: Don't print debug messages by default.
49670         Suggested by Bruno Haible <bruno@clisp.org>.
49671
49672 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49673
49674         * tests/test-base64.c: Cast size_t to unsigned long when invoking
49675         printf.  Use %lu instead of %d.  Reported by Bruno Haible
49676         <bruno@clisp.org>.
49677
49678 2008-05-29  Eric Blake  <ebb9@byu.net>
49679
49680         Prefer new POSIX 200x interfaces over futimesat.
49681         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
49682         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
49683         when available.
49684         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
49685
49686 2008-05-28  Bruno Haible  <bruno@clisp.org>
49687
49688         * modules/stpcpy (License): Change to LGPLv2+.
49689         Requested by David Lutterkort <dlutter@redhat.com>.
49690
49691 2008-05-27  Bruno Haible  <bruno@clisp.org>
49692
49693         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
49694         current mingw.
49695         Reported by Jose E. Marchesi <jemarch@gnu.org>.
49696
49697 2008-05-27  Bruno Haible  <bruno@clisp.org>
49698
49699         * modules/iconv_open (Link): New section, from module 'iconv'.
49700         * modules/striconv (Link): Likewise.
49701         * modules/striconveh (Link): Likewise.
49702         * modules/xstriconv (Link): Likewise.
49703         * modules/unicodeio (Link): Likewise.
49704         * modules/propername (Link): Likewise.
49705         Reported by Jim Meyering.
49706
49707 2008-05-26  Jim Meyering  <meyering@redhat.com>
49708
49709         sha256: do not artificially restrict buffer length to be < 2^32
49710         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
49711         uint32_t to size_t.
49712         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
49713         to match.
49714
49715         avoid unaligned access errors, e.g., on sparc
49716         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
49717         direct access through a possibly-unaligned uint64* pointer.
49718         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
49719         direct access through a possibly-unaligned uint32* pointer.
49720         Prompted by this patch from Tom "spot" Callaway:
49721         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
49722
49723         sha512.c: fix typo in comment
49724         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
49725
49726 2008-05-25  Bruno Haible  <bruno@clisp.org>
49727
49728         * lib/set-mode-acl.c: Renamed from lib/acl.c.
49729         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
49730         (Makefile.am): Update lib_SOURCES.
49731
49732 2008-05-25  Bruno Haible  <bruno@clisp.org>
49733
49734         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
49735
49736 2008-05-25  Jim Meyering  <meyering@redhat.com>
49737
49738         useless-if-before-free: freed expr may have white-space differences
49739         * build-aux/useless-if-before-free: Recognize cases in which the
49740         freed expression differs from the tested one in embedded white
49741         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
49742         $1 was used, so we can't make any regexp shy.  Improved tests now
49743         detect this.
49744
49745         useless-if-before-free: accept white space in the expression.
49746         * build-aux/useless-if-before-free: For now, any white space
49747         in the expression must be identical in the free argument.
49748
49749         useless-if-before-free: efficiency tweak
49750         * build-aux/useless-if-before-free: Make the expression-matching
49751         regexp "shy".
49752         Make the *outer* regexp shy, not the expr-matching one.
49753
49754         update code-in-comment to accept cast of free arg
49755         * build-aux/useless-if-before-free: Update regexp.
49756
49757 2008-05-25  Bruno Haible  <bruno@clisp.org>
49758
49759         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
49760         * modules/copy-file-tests (Files, Makefile.am): Update.
49761         * tests/test-copy-file.c (func_test_copy): Update.
49762
49763 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
49764
49765         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
49766
49767 2008-05-23  Bruno Haible  <bruno@clisp.org>
49768
49769         Improve support for ACLs on OSF/1.
49770         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
49771         Remove fallback for unknown flavors of ACLs.
49772
49773 2008-05-22  Bruno Haible  <bruno@clisp.org>
49774
49775         Add support for ACLs on OSF/1.
49776         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
49777         replacements.
49778         (acl_free_text): New macro fallback.
49779         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
49780         acl_free.
49781         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
49782         acl_free_text function. Require AC_C_INLINE.
49783
49784 2008-05-22  Bruno Haible  <bruno@clisp.org>
49785
49786         Make copy_acl work on MacOS X 10.5.
49787         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
49788         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
49789         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
49790         If MODE_INSIDE_ACL, don't assume that every system has the same text
49791         representation for ACLs as FreeBSD.
49792         * lib/copy-acl.c (copy_acl): Add support for platforms with
49793         !MODE_INSIDE_ACL.
49794         * lib/file-has-acl.c (file_has_acl): Likewise.
49795         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
49796         FreeBSD, MacOS X, or IRIX, respectively.
49797
49798 2008-05-22  Bruno Haible  <bruno@clisp.org>
49799
49800         * lib/acl.h: Don't include <sys/acl.h>.
49801         (GETACLCNT): Move fallback to lib/acl-internal.h.
49802         * lib/acl-internal.h: Include <sys/acl.h> here.
49803         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
49804
49805 2008-05-22  Bruno Haible  <bruno@clisp.org>
49806
49807         Split off copy_acl function to separate file.
49808         * lib/copy-acl.c: New file, extracted from lib/acl.c.
49809         * lib/acl.c (copy_acl): Moved function to separate file.
49810         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
49811         * modules/acl (Files): Add lib/copy-acl.c.
49812         (Makefiles.am): Augment lib_SOURCES.
49813
49814 2008-05-22  Bruno Haible  <bruno@clisp.org>
49815
49816         * modules/copy-file-tests: New file.
49817         * tests/test-copy-file.sh: New file.
49818         * tests/test-copy-file.c: New file.
49819         * tests/test-copy-file-sameacls.c: New file.
49820
49821 2008-05-22  Eric Blake  <ebb9@byu.net>
49822
49823         Avoid gcc warning.
49824         * tests/test-memcmp.c (main): Pass NULL indirectly.
49825
49826 2008-05-21  Bruno Haible  <bruno@clisp.org>
49827
49828         Add reference doc about ACLs.
49829         * doc/acl-resources.txt: New file.
49830         * doc/acl-cygwin.txt: New file.
49831
49832 2008-05-21  Bruno Haible  <bruno@clisp.org>
49833
49834         Avoid one more warning from gcc.
49835         * lib/vasnprintf.c (IF_LINT): Update comments.
49836         (VASNPRINTF): Use it also for the 'prefix' array initializer.
49837
49838 2008-05-21  Jim Meyering  <meyering@redhat.com>
49839
49840         avoid a warning from gcc
49841         * lib/vasnprintf.c (IF_LINT): Define.
49842         (scale10_round_decimal_long_double):
49843         Use it to avoid a "may be used uninitialized" warning.
49844         (scale10_round_decimal_double): Likewise.
49845
49846 2008-05-21  Simon Josefsson  <simon@josefsson.org>
49847
49848         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
49849         declared.
49850
49851 2008-05-20  Bruno Haible  <bruno@clisp.org>
49852
49853         * tests/test-memcmp.c (main): Test also the sign of the result. Test
49854         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
49855
49856 2008-05-20  Simon Josefsson  <simon@josefsson.org>
49857
49858         * modules/memcmp-tests: New file.
49859         * tests/test-memcmp.c: New file.
49860
49861 2008-05-19  Bruno Haible  <bruno@clisp.org>
49862
49863         * modules/propername (Notice, configure.ac): Put quoted "..." into
49864         --keyword option.
49865         * lib/propername.h: Update comments accordingly.
49866         Reported by Eric Blake.
49867
49868 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
49869
49870         * modules/getpass-gnu (Depends-on): Add fseeko.
49871
49872 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49873
49874         * modules/base64-tests: New file.
49875
49876 2008-05-19  Bo Borgerson <gigabo@gmail.com>
49877
49878         * lib/base64.c (base64_decode_ctx): If a decode context structure
49879         was passed in use it to ignore newlines.  If a context structure
49880         was _not_ passed in, continue to treat newlines as garbage (this
49881         is the historical behavior).  Formerly base64_decode.
49882         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49883         takes a decode context structure.
49884         * lib/base64.h (base64_decode): Macro for four-argument calls.
49885         (base64_decode_alloc): Likewise.
49886         * lib/base64.c (base64_decode_ctx): If a decode context structure
49887         was passed in use it to ignore newlines.  If a context structure
49888         was _not_ passed in, continue to treat newlines as garbage (this
49889         is the historical behavior).  Formerly base64_decode.
49890         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49891         takes a decode context structure.
49892         * lib/base64.h (base64_decode): Macro for four-argument calls.
49893         (base64_decode_alloc): Likewise.
49894
49895 2008-05-19  Jim Meyering  <meyering@redhat.com>
49896
49897         avoid a warning from gcc
49898         * lib/trim.c (IF_LINT): Define.
49899         (trim2): Use it to avoid a "may be used uninitialized" warning.
49900
49901         Fix doc typo.
49902         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
49903
49904 2008-05-19  Bruno Haible  <bruno@clisp.org>
49905
49906         * doc/glibc-functions/getpass.texi: Document limits of other
49907         implementations.
49908
49909 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49910             Bruno Haible <bruno@clisp.org>
49911
49912         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
49913
49914 2008-05-18  Bruno Haible  <bruno@clisp.org>
49915
49916         * modules/propername: New file, from GNU gettext.
49917         * lib/propername.h: New file, from GNU gettext.
49918         * lib/propername.c: New file, from GNU gettext.
49919         * MODULES.html.sh (Internationalization functions): Add propername.
49920
49921 2008-05-16  Jim Meyering  <meyering@redhat.com>
49922             Bruno Haible  <bruno@clisp.org>
49923
49924         Avoid some warnings from "gcc -Wshadow".
49925         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
49926
49927 2008-05-15  Eric Blake  <ebb9@byu.net>
49928
49929         Extend previous patch to cygwin 1.7.0.
49930         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
49931         fast implementation in cygwin >= 1.7.0.
49932         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49933         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49934
49935 2008-05-15  Bruno Haible  <bruno@clisp.org>
49936
49937         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
49938         implementation in glibc >= 2.9.
49939         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49940         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49941
49942 2008-05-15  Bruno Haible  <bruno@clisp.org>
49943
49944         * MODULES.html.sh (Internationalization functions): Remove linebreak.
49945         (Unicode string functions): Add unilbrk/*.
49946         Reported by Karl Berry.
49947
49948 2008-05-15  Eric Blake  <ebb9@byu.net>
49949
49950         Fix violation of <stdbool.h> replacement in regex.
49951         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
49952         * lib/regexec.c (re_search_internal): Likewise.
49953         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
49954
49955 2008-05-15  Jim Meyering  <meyering@redhat.com>
49956
49957         avoid distracting test output when git or cvs is not found
49958         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
49959         * tests/test-vc-list-files-git.sh: Likewise.
49960
49961 2008-05-15  Eric Blake  <ebb9@byu.net>
49962
49963         Glibc finally accepted the memmem speedup code, bugzilla #5514.
49964         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
49965         glibc version.
49966         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
49967         * doc/posix-functions/strstr.texi (strstr): Likewise.
49968         * lib/str-two-way.h (MAX): Sychronize with glibc.
49969
49970 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
49971
49972         * lib/regcomp.c (optimize_utf8): Add a note on why we test
49973         opr.ctx_type.
49974         (calc_first): Initialize constraint field.
49975         (duplicate_node_closure): Use it instead of special casing ANCHORS.
49976         Fix grammar.
49977         (duplicate_node): Merge constraint field for all node types.
49978         (calc_eclosure_iter): Look at constraint field for all node types.
49979         * lib/regex_internal.c (create_cd_newstate): Don't look at
49980         opr.ctx_type.
49981
49982 2008-05-14  Bruno Haible  <bruno@clisp.org>
49983
49984         Help GCC to do better code generation.
49985         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
49986         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
49987         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
49988         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
49989         Declare with attribute 'malloc' if supported.
49990
49991 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
49992
49993         use "echo STR|wc -c" rather than unportable "expr length STR"
49994         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
49995         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
49996
49997 2008-05-14  Jim Meyering  <meyering@redhat.com>
49998
49999         use dd ibs=$n count=1 ... rather than less-portable head -c$n
50000         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
50001         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
50002         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
50003         via Collin Lasse.
50004
50005 2008-05-14  Eric Blake  <ebb9@byu.net>
50006
50007         Avoid quadratic growth in gl_LIBSOURCES.
50008         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
50009         Suggested by Bruno Haible.
50010
50011         Test xmemdup0.
50012         * modules/xmemdup0-tests: New file.
50013         * tests/test-xmemdup0.c: Likewise.
50014
50015 2008-05-13  Eric Blake  <ebb9@byu.net>
50016
50017         Split xmemdup0 into its own module.
50018         * modules/xmemdup0: New file.
50019         * lib/xmemdup0.h: Likewise.
50020         * lib/xmemdup0.c: Likewise.
50021         * MODULES.html.sh (Memory management functions): Add xmemdup0.
50022         * lib/xalloc.h (xmemdup0): Remove.
50023         * lib/xmalloc.c (xmemdup0): Likewise.
50024
50025 2008-05-13  Eric Blake  <ebb9@byu.net>
50026             Bruno Haible  <bruno@clisp.org>
50027
50028         Reduce number of forks required during autoconf.
50029         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
50030         and gl_LIBSOURCES_DIR.
50031         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
50032         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
50033         m4_syscmd per file.
50034         <m4_foreach_w>: Move...
50035         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
50036
50037 2008-05-13  Eric Blake  <ebb9@byu.net>
50038
50039         * gnulib-tool: Fix various comment typos.
50040
50041 2008-05-12  Bruno Haible  <bruno@clisp.org>
50042
50043         Tailor the linebreaking algorithm.
50044         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
50045
50046 2008-05-12  Bruno Haible  <bruno@clisp.org>
50047
50048         Update to Unicode 5.0.0.
50049         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
50050         LBP_JV, LBP_JT. Redistribute values.
50051         (unilbrk_table): Change size.
50052         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
50053         Unicode TR#14 rev. 22.
50054         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
50055         LBP_JV, LBP_JT. Redistribute values.
50056         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
50057         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
50058         Update.
50059         * lib/unilbrk/lbrkprop1.h: Regenerated.
50060         * lib/unilbrk/lbrkprop2.h: Regenerated.
50061         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
50062         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
50063         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
50064         Likewise.
50065         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
50066         Likewise.
50067         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
50068         result.
50069         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
50070         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
50071         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
50072         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
50073         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
50074         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
50075
50076 2008-05-11  Bruno Haible  <bruno@clisp.org>
50077
50078         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
50079
50080 2008-05-11  Bruno Haible  <bruno@clisp.org>
50081
50082         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
50083         * modules/unilbrk/gen-lbrk: New file.
50084
50085 2008-05-11  Bruno Haible  <bruno@clisp.org>
50086
50087         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
50088         * m4/sha512.m4 (gl_SHA512): Likewise.
50089
50090 2008-05-11  Jim Meyering  <meyering@redhat.com>
50091
50092         New modules: crypto/sha256, crypto/sha512 (from coreutils)
50093         * modules/crypto/sha256: New file.
50094         * modules/crypto/sha512: Likewise.
50095         * lib/sha256.c: Likewise.
50096         * lib/sha256.h: Likewise.
50097         * lib/sha512.c: Likewise.
50098         * lib/sha512.h: Likewise.
50099         * lib/u64.h: Likewise.
50100         * m4/sha256.m4: Likewise.
50101         * m4/sha512.m4: Likewise.
50102         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
50103
50104 2008-05-10  Bruno Haible  <bruno@clisp.org>
50105
50106         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
50107         (Input/Output <stdio.h>): Add xprintf.
50108         (Signal handling <signal.h>): Add strsignal.
50109         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
50110         (Core language properties): Add func.
50111         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
50112         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
50113         strings.
50114         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
50115         (Input/output): New section.
50116         (File system functions): Add openat-die, stat-macros.
50117         (Networking functions): Add sockets.
50118         (Unicode string functions): Add unictype/*.
50119         (Support for building libraries and executables): Add gperf.
50120         (Support for building documentation): Add agpl-3.0.
50121         (Misc): Add nocrash.
50122
50123 2008-05-10  Bruno Haible  <bruno@clisp.org>
50124
50125         * modules/unictype/gen-ctype: New file.
50126
50127 2008-05-10  Jim Meyering  <meyering@redhat.com>
50128
50129         Make chdir-safer.c more efficient on a system with no symlinks.
50130         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
50131         also if ELOOP is zero.  Suggested by Bruno Haible.
50132
50133         Make chdir-safer.c slightly safer.
50134         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
50135         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
50136
50137         Avoid compile failure on systems without ELOOP (like mingw).
50138         * lib/chdir-safer.c (ELOOP): Define if not already defined.
50139         Reported by Bruno Haible.
50140
50141 2008-05-10  Bruno Haible  <bruno@clisp.org>
50142
50143         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
50144         (is_utf8_encoding): Use a case-insensitive comparison.
50145         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
50146         streq.
50147
50148 2008-05-10  Bruno Haible  <bruno@clisp.org>
50149
50150         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
50151         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
50152         * lib/unilbrk/ulc-common.h (iconv_string_length,
50153         iconv_string_keeping_offsets): Remove declarations.
50154         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
50155         Don't include <iconv.h>, streq.h, xsize.h.
50156         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
50157         conversion.
50158         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
50159         <iconv.h>, streq.h, xsize.h.
50160         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
50161         conversion.
50162         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
50163         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
50164         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
50165         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
50166
50167 2008-05-10  Bruno Haible  <bruno@clisp.org>
50168
50169         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
50170         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
50171
50172         * modules/unilbrk/u32-width-linebreaks-tests: New file.
50173         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
50174
50175         * modules/unilbrk/u16-width-linebreaks-tests: New file.
50176         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
50177
50178         * modules/unilbrk/u8-width-linebreaks-tests: New file.
50179         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
50180
50181         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
50182         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
50183
50184         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
50185         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
50186
50187         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
50188         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
50189
50190         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
50191         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
50192
50193 2008-05-10  Bruno Haible  <bruno@clisp.org>
50194
50195         Split up 'linebreak' module.
50196         * lib/unilbrk.h: New file, based on lib/linebreak.h.
50197         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
50198         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
50199         modifications.
50200         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
50201         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
50202         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
50203         lib/linebreak.c.
50204         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
50205         lib/linebreak.c.
50206         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
50207         lib/linebreak.c.
50208         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
50209         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
50210         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
50211         lib/linebreak.c.
50212         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
50213         lib/linebreak.c.
50214         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
50215         lib/linebreak.c.
50216         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
50217         lib/linebreak.c.
50218         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
50219         lib/linebreak.c.
50220         * modules/unilbrk/base: New file.
50221         * modules/unilbrk/tables: New file.
50222         * modules/unilbrk/u8-possible-linebreaks: New file.
50223         * modules/unilbrk/u16-possible-linebreaks: New file.
50224         * modules/unilbrk/u32-possible-linebreaks: New file.
50225         * modules/unilbrk/ulc-common: New file.
50226         * modules/unilbrk/ulc-possible-linebreaks: New file.
50227         * modules/unilbrk/u8-width-linebreaks: New file.
50228         * modules/unilbrk/u16-width-linebreaks: New file.
50229         * modules/unilbrk/u32-width-linebreaks: New file.
50230         * modules/unilbrk/ulc-width-linebreaks: New file.
50231         * lib/linebreak.h: Remove file.
50232         * lib/linebreak.c: Remove file.
50233         * m4/linebreak.m4: Remove file.
50234         * modules/linebreak: Remove file.
50235         * NEWS: Mention the changes.
50236
50237 2008-05-09  Eric Blake  <ebb9@byu.net>
50238
50239         Add xmemdup0.
50240         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
50241         implementation.
50242         * lib/xmalloc.c (xmemdup0): New C implementation.
50243
50244 2008-05-08  Bruno Haible  <bruno@clisp.org>
50245
50246         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
50247
50248 2008-05-07  Eric Blake  <ebb9@byu.net>
50249
50250         Support cross-compilation of <wctype.h>.
50251         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
50252         AC_CACHE_CHECK.
50253
50254 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
50255
50256         * build-aux/vc-list-files: Add support for bzr.
50257
50258 2008-05-03  Jim Meyering  <meyering@redhat.com>
50259
50260         avoid failed assertion with tight malloc
50261         * tests/test-getndelim2.c: Correct an off-by-one assertion.
50262
50263 2008-05-03  Simon Josefsson  <simon@josefsson.org>
50264
50265         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
50266         are needed from arpa/inet.h.
50267         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
50268         Reported by Bruno Haible.
50269
50270 2008-05-02  Jim Meyering  <meyering@redhat.com>
50271
50272         avoid compilation error on FreeBSD 6
50273         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
50274
50275 2008-05-01  Jim Meyering  <meyering@redhat.com>
50276
50277         useless-if-before-free: correct --help's exit status description
50278         * build-aux/useless-if-before-free (usage): Like grep, exit 0
50279         for one or more matches, etc.  Reported by Bruno Haible.
50280
50281         vc-list-files: make the stand-alone gnulib test work
50282         * modules/vc-list-files-tests (configure.ac):
50283         Define and AC_SUBST abs_aux_dir.
50284         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
50285         $(abs_top_srcdir) to each script and having each of them
50286         duplicate the work of setting PATH, set PATH here, using
50287         the new variable, abs_aux_dir instead.
50288         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
50289         * tests/test-vc-list-files-git.sh: Likewise.
50290         Reported by Bruno Haible.
50291
50292 2008-05-01  Bruno Haible  <bruno@clisp.org>
50293
50294         * lib/getndelim2.c (getndelim2): Fix newsize computation during
50295         reallocation. Rename 'done' to 'found_delimiter'.
50296
50297 2008-05-01  Jim Meyering  <meyering@redhat.com>
50298
50299         vc-list-files: accommodate /bin/sh like the one from Solaris 10
50300         * build-aux/vc-list-files: Use `...`, not $(...).
50301
50302 2008-04-30  Jim Meyering  <meyering@redhat.com>
50303
50304         add tests for vc-list-files
50305         * modules/vc-list-files-tests: New module.
50306         * tests/test-vc-list-files-cvs.sh: New file.
50307         * tests/test-vc-list-files-git.sh: New file.
50308
50309         avoid a warning from gcc
50310         * lib/getndelim2.c (IF_LINT): Define.
50311         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
50312
50313         vc-list-files: work properly with build-aux/cvsu, too
50314         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
50315         to all cvs-based clauses.
50316
50317         vc-list-files: work properly in the CVS+awk case, too
50318         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
50319
50320         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
50321         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
50322         take more than one file argument, so .  Add quotes, just in case $dir
50323         ever contains a shell meta-character.  Prompted by Soren Hansen in
50324         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
50325
50326 2008-04-29  Eric Blake  <ebb9@byu.net>
50327
50328         Optimize getndelim2 to use block operations when possible.
50329         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
50330         freadseek, and memchr2.
50331         * lib/getndelim2.c (getndelim2): Use them for block reads.
50332
50333 2008-04-29  Bruno Haible  <bruno@clisp.org>
50334
50335         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
50336         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
50337         * modules/inet_ntop (Depends-on): Add extensions.
50338         * modules/inet_pton (Depends-on): Likewise.
50339         Reported by Simon Josefsson.
50340
50341 2008-04-29  Jim Meyering  <meyering@redhat.com>
50342
50343         When the is more than one match in a block, match all of them.
50344         * build-aux/useless-if-before-free: Iterate through each block
50345         until there are no more matches.
50346
50347         Fix broken useless-if-before-free script.
50348         * build-aux/useless-if-before-free: Fix typo: missing "?" after
50349         the expression to match cast of argument to free-like function.
50350
50351 2008-04-29  Eric Blake  <ebb9@byu.net>
50352
50353         Use new header.
50354         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
50355
50356 2008-04-29  Jim Meyering  <meyering@redhat.com>
50357
50358         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
50359         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
50360         by gnulib to exist and to declare e.g., inet_ntop.
50361         Don't include "inet_ntop.h", now removed.
50362
50363         * m4/arpa_inet_h.m4: Remove trailing blanks.
50364
50365 2008-04-29  Eric Blake  <ebb9@byu.net>
50366
50367         Silence valgrind on safe reads beyond potential array bounds.
50368         * lib/rawmemchr.valgrind: New file.
50369         * lib/strchrnul.valgrind: Likewise.
50370         * modules/rawmemchr (Files): Distribute new file.
50371         * modules/strchrnul (Files): Likewise.
50372         Suggested by Bruno Haible.
50373
50374 2008-04-29  Bruno Haible  <bruno@clisp.org>
50375
50376         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
50377         (inet_ntop, inet_pton): Change portability warning's wording.
50378         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
50379         Invoke gl_CHECK_NEXT_HEADERS.
50380         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
50381         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
50382         set ARPA_INET_H.
50383         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
50384         * modules/arpa_inet (Description): No longer only for systems that
50385         lack it.
50386         (Depends-on): Add include_next.
50387         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
50388         HAVE_ARPA_INET_H.
50389
50390 2008-04-29  Jim Meyering  <meyering@redhat.com>
50391
50392         * modules/mkdir (License): Re-license as LGPLv2+.
50393
50394 2008-04-29  Bruno Haible  <bruno@clisp.org>
50395
50396         * modules/rawmemchr (Maintainer): Set to Eric.
50397         * modules/strchrnul (Maintainer): Likewise.
50398
50399 2008-04-29  Simon Josefsson  <simon@josefsson.org>
50400
50401         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
50402         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
50403
50404         * modules/arpa_inet (arpa/inet.h): Use them.
50405
50406 2008-04-28  Eric Blake  <ebb9@byu.net>
50407
50408         Test getndelim2.
50409         * modules/getndelim2-tests: New file.
50410         * tests/test-getndelim2.c: Likewise.
50411         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
50412         stream.
50413         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
50414
50415         * MODULES.html.sh: Document new module.
50416
50417 2008-04-20  Bruno Haible  <bruno@clisp.org>
50418
50419         * lib/c-stack.c (die): Use raise.
50420         * modules/c-stack (Depends-on): Add raise.
50421
50422 2008-04-28  Bruno Haible  <bruno@clisp.org>
50423
50424         Expect rpmatch to be declared.
50425         * lib/yesno.c (rpmatch): Remove declaration.
50426
50427         Declare rpmatch.
50428         * lib/stdlib.in.h (rpmatch): New declaration.
50429         * lib/rpmatch.c: Include <stdlib.h> first.
50430         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
50431         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
50432         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
50433         HAVE_RPMATCH.
50434         * modules/rpmatch (Depends-on): Add stdlib, extensions.
50435         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50436         (Include): Set to <stdlib.h>.
50437         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
50438         HAVE_RPMATCH.
50439         * NEWS: Document the change.
50440
50441 2008-04-28  Bruno Haible  <bruno@clisp.org>
50442
50443         Change rpmatch to use nl_langinfo when appropriate.
50444         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
50445         (N_): New macro.
50446         (localized_pattern): New function/macro.
50447         (try): Remove match, nomatch arguments. Copy the pattern into safe
50448         memory before caching it.
50449         (rpmatch): Use localized_pattern. Add translator comments.
50450         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
50451         Suggested by Eric Blake.
50452         * modules/rpmatch (Depends-on): Add stdbool.
50453
50454 2008-04-28  Eric Blake  <ebb9@byu.net>
50455
50456         Add rawmemchr module, matching glibc.
50457         * modules/string (Makefile.am): New indicator.
50458         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
50459         * lib/string.in.h (rawmemchr): Declare when appropriate.
50460         * modules/rawmemchr: New file.
50461         * m4/rawmemchr.m4: Likewise.
50462         * lib/rawmemchr.c: Likewise.
50463         * modules/rawmemchr-tests: Likewise.
50464         * tests/test-rawmemchr.c: Likewise.
50465         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
50466         module.
50467         * modules/strchrnul (Depends-on): Add rawmemchr.
50468         * lib/strchrnul.c (strchrnul): Optimize a corner case.
50469
50470         Whitespace cleanup.
50471         * tests/test-strchrnul.c: Reindent.
50472         * lib/strchrnul.c: Likewise.
50473
50474         Optimize and test strchrnul.
50475         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
50476         * modules/strchrnul-tests: New file.
50477         * tests/test-strchrnul.c: Likewise.
50478
50479         Remove intprops dependency.
50480         * modules/memchr (Depends-on): Remove intprops.
50481         * modules/memrchr (Depends-on): Likewise.
50482         * modules/memchr2 (Depends-on): Likewise.
50483         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
50484         * lib/memrchr.c (__memrchr): Likewise.
50485         * lib/memrchr2.c (memchr2): Likewise.
50486         Reported by Simon Josefsson.
50487
50488 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50489
50490         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
50491         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50492
50493 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50494
50495         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
50496
50497         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
50498
50499         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
50500
50501         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
50502         declarations.
50503         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
50504
50505         * m4/inet_pton.m4: Don't check for header files.
50506
50507         * m4/inet_ntop.m4: Don't check for header files.
50508
50509 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50510
50511         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
50512         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
50513         trigger for cygwin).
50514         Reported by Bruno Haible  <bruno@clisp.org>.
50515
50516 2008-04-28  Bruno Haible  <bruno@clisp.org>
50517
50518         * doc/posix-functions/strdup.texi: Mention mingw problem.
50519
50520 2008-04-27  Bruno Haible  <bruno@clisp.org>
50521
50522         * modules/stat-time-tests (Depends-on): Add sleep.
50523         * tests/test-stat-time.c (force_unlink): New function.
50524         (cleanup): Use it.
50525         (test_mtime): Remove the ctime related tests.
50526         (test_ctime): New function, containing the ctime related tests.
50527         (main): Call test_ctime, except on native Windows platforms.
50528
50529 2008-04-27  Bruno Haible  <bruno@clisp.org>
50530
50531         * lib/rpmatch.c (rpmatch): Add some comments.
50532         Reported by James Youngman <jay@gnu.org>.
50533
50534 2008-04-27  Bruno Haible  <bruno@clisp.org>
50535
50536         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
50537         quiet NaNs.
50538
50539 2008-04-27  Bruno Haible  <bruno@clisp.org>
50540
50541         Make test-yesno.sh work on mingw.
50542         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
50543         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
50544         (main): Set stdin to binary mode.
50545         * modules/yesno-tests (Depends-on): Add binary-io.
50546
50547 2008-04-27  Bruno Haible  <bruno@clisp.org>
50548
50549         Fix 'isfinite' on x86, x86_64, ia64 platforms.
50550         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
50551         argument that lie outside the IEEE 854 domain.
50552         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
50553         (gl_ISFINITE): Use it.
50554         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
50555
50556 2008-04-27  Bruno Haible  <bruno@clisp.org>
50557
50558         Allow local renaming in config.h.
50559         * lib/memrchr.c (memrchr): Don't undefine outside libc.
50560
50561 2008-04-27  Bruno Haible  <bruno@clisp.org>
50562
50563         * lib/memchr.c (__memchr): Change type of 'i'.
50564         * lib/memchr2.c (memchr2): Likewise.
50565
50566 2008-04-26  Eric Blake  <ebb9@byu.net>
50567         and Bruno Haible  <bruno@clisp.org>
50568
50569         Optimize and test memrchr.
50570         * modules/memrchr (Depends-on): Add intprops.
50571         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
50572         * modules/memrchr-tests: New file.
50573         * tests/test-memrchr.c: New file.
50574
50575 2008-04-26  Bruno Haible  <bruno@clisp.org>
50576
50577         Add tentative support for DragonFly BSD.
50578         * lib/stdio-impl.h: Add macros for DragonFly BSD.
50579         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
50580         fp.
50581         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
50582         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
50583         * lib/fpurge.c (fpurge): Likewise.
50584         * lib/freadable.c (freaadable): Likewise.
50585         * lib/freadahead.c (freadahead): Likewise.
50586         * lib/freading.c (freading): Likewise.
50587         * lib/freadptr.c (freadptr): Likewise.
50588         * lib/freadseek.c (freadptrinc): Likewise.
50589         * lib/fseeko.c (fseeko): Likewise.
50590         * lib/fseterr.c (fseterr): Likewise.
50591         * lib/fwritable.c (fwritable): Likewise.
50592         * lib/fwriting.c (fwriting): Likewise.
50593
50594 2008-04-26  Bruno Haible  <bruno@clisp.org>
50595
50596         * lib/stdio-impl.h: New file.
50597         * lib/fbufmode.c: Include stdio-impl.h.
50598         (fbufmode): Use fp_, remove redundant #defines.
50599         * lib/fflush.c: Include stdio-impl.h.
50600         (clear_ungetc_buffer): Remove redundant #defines.
50601         * lib/fpurge.c: Include stdio-impl.h.
50602         (fpurge): Remove redundant #defines.
50603         * lib/freadable.c: Include stdio-impl.h.
50604         (freadable): Remove redundant #defines.
50605         * lib/freadahead.c: Include stdio-impl.h.
50606         (freadahead): Remove redundant #defines.
50607         * lib/freading.c: Include stdio-impl.h.
50608         (freading): Remove redundant #defines.
50609         * lib/freadptr.c: Include stdio-impl.h.
50610         (freadptr): Remove redundant #defines.
50611         * lib/freadseek.c: Include stdio-impl.h.
50612         (freadptrinc): Remove redundant #defines.
50613         * lib/fseeko.c: Include stdio-impl.h.
50614         (rpl_fseeko): Remove redundant #defines.
50615         * lib/fseterr.c: Include stdio-impl.h.
50616         (fseterr): Remove redundant #defines.
50617         * lib/fwritable.c: Include stdio-impl.h.
50618         (fwritable: Remove redundant #defines.
50619         * lib/fwriting.c: Include stdio-impl.h.
50620         (fwriting): Remove redundant #defines.
50621         * modules/fbufmode (Files): Add lib/stdio-impl.h.
50622         * modules/fflush (Files): Likewise.
50623         * modules/fpurge (Files): Likewise.
50624         * modules/freadable (Files): Likewise.
50625         * modules/freadahead (Files): Likewise.
50626         * modules/freading (Files): Likewise.
50627         * modules/freadptr (Files): Likewise.
50628         * modules/freadseek (Files): Likewise.
50629         * modules/fseeko (Files): Likewise.
50630         * modules/fseterr (Files): Likewise.
50631         * modules/fwritable (Files): Likewise.
50632         * modules/fwriting (Files): Likewise.
50633
50634 2008-04-26  Bruno Haible  <bruno@clisp.org>
50635
50636         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
50637         restore_seek_optimization, update_fpos_cache): New functions, extracted
50638         from rpl_fflush.
50639         (rpl_fflush): Use them.
50640         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
50641         (gl_REPLACE_FFLUSH): Use it.
50642
50643 2008-04-26  Bruno Haible  <bruno@clisp.org>
50644
50645         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
50646         on Solaris.
50647         * tests/test-xstrtoimax.sh: Likewise.
50648         * tests/test-xstrtoumax.sh: Likewise.
50649         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50650
50651 2008-04-26  Bruno Haible  <bruno@clisp.org>
50652
50653         * modules/memchr-tests: New file.
50654         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
50655
50656 2008-04-26  Eric Blake  <ebb9@byu.net>
50657             Bruno Haible  <bruno@clisp.org>
50658
50659         * lib/memchr.c: Include intprops.h.
50660         (__memchr): Optimize parallel detection of matching bytes. Rename local
50661         variables. Add explanatory comments.
50662
50663 2008-04-26  Bruno Haible  <bruno@clisp.org>
50664
50665         Fix module 'memchr', broken since 2000-10-28.
50666         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
50667
50668 2008-04-26  Bruno Haible  <bruno@clisp.org>
50669
50670         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
50671         comments.
50672
50673 2008-04-25  Eric Blake  <ebb9@byu.net>
50674
50675         Use native fstatat on cygwin 1.7.0.
50676         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
50677         first.
50678
50679 2008-04-23  Eric Blake  <ebb9@byu.net>
50680
50681         Improve memchr2 performance.
50682         * lib/memchr2.c (memchr2): Further optimize parallel detection of
50683         NUL bytes.
50684         * modules/memchr2 (Depends-on): Use intprops.h.
50685
50686 2008-04-23  Simon Josefsson  <simon@josefsson.org>
50687
50688         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
50689         an inline function instead of a CPP macro.  Patch by Ben Pfaff
50690         <blp@cs.stanford.edu>.
50691
50692 2008-04-23  Simon Josefsson  <simon@josefsson.org>
50693
50694         * lib/arpa_inet.in.h: New file.
50695
50696         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
50697         (Makefile.am): Sed in substitute header file.
50698
50699         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
50700         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
50701
50702         * modules/inet_ntop (configure.ac): Use
50703         gl_ARPA_INET_MODULE_INDICATOR.
50704
50705         * modules/inet_pton (configure.ac): Use
50706         gl_ARPA_INET_MODULE_INDICATOR.
50707
50708 2008-04-22  Jim Meyering  <meyering@redhat.com>
50709
50710         * modules/verify (License): Re-license as LGPLv2+.
50711
50712 2008-04-22  Simon Josefsson  <simon@josefsson.org>
50713
50714         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
50715         parameter to void* as per POSIX standard (MinGW uses char*).
50716
50717 2008-04-21  Bruno Haible  <bruno@clisp.org>
50718
50719         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
50720         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
50721         Define to replacements if REPLACE_ISWCNTRL is 1.
50722         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
50723         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
50724         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
50725         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
50726         what it fixes.
50727         * doc/posix-functions/iswalpha.texi: Likewise.
50728         * doc/posix-functions/iswblank.texi: Likewise.
50729         * doc/posix-functions/iswcntrl.texi: Likewise.
50730         * doc/posix-functions/iswdigit.texi: Likewise.
50731         * doc/posix-functions/iswgraph.texi: Likewise.
50732         * doc/posix-functions/iswlower.texi: Likewise.
50733         * doc/posix-functions/iswprint.texi: Likewise.
50734         * doc/posix-functions/iswpunct.texi: Likewise.
50735         * doc/posix-functions/iswspace.texi: Likewise.
50736         * doc/posix-functions/iswupper.texi: Likewise.
50737         * doc/posix-functions/iswxdigit.texi: Likewise.
50738         Reported by Alain Guibert.
50739
50740 2008-04-21  Bruno Haible  <bruno@clisp.org>
50741
50742         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
50743         Patch by Alain Guibert.
50744
50745 2008-04-21  Bruno Haible  <bruno@clisp.org>
50746
50747         Fix test failures on mingw.
50748         * tests/test-xstrtol.c (print_no_progname): New function.
50749         (main): Install it in error_print_progname hook.
50750         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
50751         * tests/test-xstrtoimax.sh: Likewise.
50752         * tests/test-xstrtoumax.sh: Likewise.
50753
50754 2008-04-21  Bruno Haible  <bruno@clisp.org>
50755
50756         Fix test failure on mingw.
50757         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
50758
50759 2008-04-21  Bruno Haible  <bruno@clisp.org>
50760
50761         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
50762         Actually assign a value.
50763
50764 2008-04-20  Bruno Haible  <bruno@clisp.org>
50765
50766         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
50767         take 2.
50768         * lib/canonicalize.c (canonicalize_file_name): Elide if the
50769         'canonicalize-lgpl' module is also used.
50770         * lib/canonicalize-lgpl.c: Undo last change.
50771         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
50772
50773 2008-04-20  Bruno Haible  <bruno@clisp.org>
50774
50775         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
50776         config.h. Provide _mkdir based fallback for mingw.
50777         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
50778         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
50779         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
50780         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
50781         rather than defining mkdir in config.h.
50782         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
50783         (gl_SYS_STAT_H_DEFAULTS): New macro.
50784         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
50785         HAVE_IO_H any more.
50786         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
50787         HAVE_DECL_MKDIR and HAVE_IO_H.
50788
50789 2008-04-20  Bruno Haible  <bruno@clisp.org>
50790
50791         * lib/isapipe.c: Port to native Windows platforms.
50792
50793 2008-04-20  Bruno Haible  <bruno@clisp.org>
50794
50795         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
50796
50797 2008-04-21  Eric Blake  <ebb9@byu.net>
50798
50799         Work around preprocessors that don't handle UINTMAX_MAX.
50800         * lib/memchr2.c (memchr2): Avoid embedded #if.
50801         Reported by Alain Guibert, fix suggested by Bruno Haible.
50802
50803 2008-04-21  Simon Josefsson  <simon@josefsson.org>
50804
50805         * doc/posix-functions/strftime.texi (strftime): Explain better
50806         Windows incompatibility.  Suggested by Micah Cowan
50807         <micah@cowan.name>.
50808
50809 2008-04-20  Bruno Haible  <bruno@clisp.org>
50810
50811         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
50812         unistr/u8-mblen.
50813
50814 2008-04-20  Bruno Haible  <bruno@clisp.org>
50815
50816         Fix test failure on platforms with non-GNU iconv.
50817         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
50818         (U_TO_U8): Use it, rather than u16_to_u8.
50819         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
50820         units at the end of the input string.
50821         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
50822
50823 2008-04-20  Bruno Haible  <bruno@clisp.org>
50824
50825         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
50826         when the resulting length is 0.
50827         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
50828
50829 2008-04-20  Bruno Haible  <bruno@clisp.org>
50830
50831         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
50832         works.
50833         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
50834
50835 2008-04-20  Bruno Haible  <bruno@clisp.org>
50836
50837         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
50838         * modules/tsearch-tests (configure.ac): Test for initstate function.
50839
50840 2008-04-20  Bruno Haible  <bruno@clisp.org>
50841
50842         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
50843         for nlink_t if missing.
50844         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
50845
50846 2008-04-19  Bruno Haible  <bruno@clisp.org>
50847
50848         Work around snprintf bug on Linux libc5.
50849         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
50850         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50851         gl_SNPRINTF_SIZE1.
50852         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50853         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
50854         that test failed.
50855         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
50856         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
50857         * modules/snprintf (Files): Add m4/printf.m4.
50858         * modules/vsnprintf (Files): Likewise.
50859         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
50860         * doc/posix-functions/vsnprintf.texi: Likewise.
50861
50862 2008-04-19  Bruno Haible  <bruno@clisp.org>
50863
50864         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
50865         from 0.0058 to less than 10^-7.
50866
50867 2008-04-19  Bruno Haible  <bruno@clisp.org>
50868
50869         Fix rounding when a precision is given.
50870         * lib/vasnprintf.c (is_borderline): New function.
50871         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
50872         9...9x.
50873         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
50874         %e, %g.
50875         * tests/test-vasprintf-posix.c (test_function): Likewise.
50876         * tests/test-snprintf-posix.h (test_function): Likewise.
50877         * tests/test-sprintf-posix.h (test_function): Likewise.
50878         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
50879         * tests/test-printf-posix.h (test_function): Likewise.
50880         * tests/test-printf-posix.output: Update.
50881         Reported by John Darrington <john@darrington.wattle.id.au> via
50882         Ben Pfaff <blp@cs.stanford.edu>.
50883
50884 2008-04-18  Simon Josefsson  <simon@josefsson.org>
50885
50886         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
50887         Suggested by Bruno Haible <bruno@clisp.org>.
50888
50889 2008-04-17  Bruno Haible  <bruno@clisp.org>
50890
50891         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
50892         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
50893         implementation.
50894         Patch by Bruce Merry <bmerry@gmail.com>.
50895
50896 2008-04-17  Simon Josefsson  <simon@josefsson.org>
50897
50898         * doc/posix-functions/strftime.texi (strftime): Mention that %e
50899         doesn't work under Windows.
50900
50901 2008-04-16  Bruno Haible  <bruno@clisp.org>
50902
50903         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
50904         New macros.
50905         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
50906         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
50907         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
50908         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
50909         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
50910         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
50911         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
50912         macros.
50913         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
50914         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
50915         Northern Sotho, Uighur.
50916
50917 2008-04-16  Bruno Haible  <bruno@clisp.org>
50918
50919         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
50920         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
50921         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
50922         Reported by Daniel Bergström <daniel@octocode.com>.
50923
50924 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
50925             Bruno Haible  <bruno@clisp.org>
50926
50927         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
50928         function.
50929         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
50930         New functions, mostly extracted from gl_locale_name_default.
50931         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
50932
50933 2008-04-16  Eric Blake  <ebb9@byu.net>
50934
50935         Adjust strtod detection to catch glibc 2.7 bug.
50936         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
50937         Reported by John Gatewood Ham.
50938
50939 2008-04-16  Bruno Haible  <bruno@clisp.org>
50940
50941         Add tentative support for Linux libc5.
50942         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
50943         * lib/fpurge.c (fpurge): Likewise.
50944         * lib/freadable.c (freadable): Likewise.
50945         * lib/freadahead.c (freadahead): Likewise.
50946         * lib/freading.c (freading): Likewise.
50947         * lib/freadptr.c (freadptr): Likewise.
50948         * lib/freadseek.c (freadptrinc): Likewise.
50949         * lib/fseeko.c (rpl_fseeko): Likewise.
50950         * lib/fseterr.c (fseterr): Likewise.
50951         * lib/fwritable.c (fwritable): Likewise.
50952         * lib/fwriting.c (fwriting): Likewise.
50953         Reported by Alain Guibert <alguibert+bts@free.fr>.
50954
50955 2008-04-15  Bruno Haible  <bruno@clisp.org>
50956
50957         * modules/mathl (configure.ac): Define module indicator.
50958
50959 2008-04-15  Bruno Haible  <bruno@clisp.org>
50960
50961         * lib/logl.c (logl): Remove unused variables.
50962
50963 2008-04-15  Bruno Haible  <bruno@clisp.org>
50964
50965         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
50966         fails.
50967
50968 2008-04-15  Bruno Haible  <bruno@clisp.org>
50969
50970         * lib/trim.c (trim2): Fix argument of isspace() macro.
50971
50972 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
50973
50974         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
50975         to 0.
50976         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
50977
50978 2008-04-14  Bruno Haible  <bruno@clisp.org>
50979
50980         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
50981         AC_LANG_PROGRAM argument.
50982         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
50983         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
50984         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
50985         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
50986         * m4/math_h.m4 (gl_MATH_H): Likewise.
50987         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
50988         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50989         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
50990         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
50991         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
50992         * m4/regex.m4 (gl_REGEX): Likewise.
50993         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
50994         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
50995         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50996         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
50997         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
50998         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50999         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51000         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
51001
51002 2008-04-14  Jim Meyering  <meyering@redhat.com>
51003
51004         test-strtod: fix typos: s/abs/fabs/
51005         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
51006
51007 2008-04-13  Bruno Haible  <bruno@clisp.org>
51008
51009         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
51010         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
51011         module is also used and while not building the reloc-wrapper.
51012
51013 2008-04-13  Bruno Haible  <bruno@clisp.org>
51014
51015         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
51016
51017 2008-04-13  Bruno Haible  <bruno@clisp.org>
51018
51019         Fix AIX compilation failure introduced on 2008-04-02.
51020         * tests/test-frexp.c (exp): Undefine before redefining.
51021         * tests/test-frexpl.c (exp): Likewise.
51022
51023 2008-04-13  Bruno Haible  <bruno@clisp.org>
51024
51025         Work around a HP-UX stdio bug.
51026         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
51027         * tests/test-ftello.c (main): Likewise.
51028         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
51029         * doc/posix-functions/ftello.texi: Likewise.
51030
51031 2008-04-13  Bruno Haible  <bruno@clisp.org>
51032
51033         Make test-signbit pass on HP-UX/hppa.
51034         * tests/test-signbit.c (minus_zerol): New variable.
51035         (test_signbitl): Use it.
51036
51037 2008-04-13  Bruno Haible  <bruno@clisp.org>
51038
51039         Make truncl work on OSF/1 4.0.
51040         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
51041         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
51042         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
51043         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
51044         HAVE_DECL_TRUNCL.
51045         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
51046         HAVE_DECL_TRUNCL.
51047         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
51048
51049 2008-04-13  Bruno Haible  <bruno@clisp.org>
51050
51051         * lib/unictype.h: Remove trailing comma from enumeration definitions.
51052
51053 2008-04-13  Bruno Haible  <bruno@clisp.org>
51054
51055         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
51056         expression, so as to avoid HP-UX 11 cc compiler bug.
51057
51058 2008-04-13  Bruno Haible  <bruno@clisp.org>
51059
51060         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
51061
51062 2008-04-13  Bruno Haible  <bruno@clisp.org>
51063
51064         * lib/git-merge-changelog.c: Remove empty declaration outside of
51065         functions.
51066
51067 2008-04-13  Bruno Haible  <bruno@clisp.org>
51068
51069         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
51070
51071 2008-04-13  Bruno Haible  <bruno@clisp.org>
51072
51073         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
51074         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
51075         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
51076         also if it exists but lacks definitions of the SHUT_* macros.
51077         * modules/sys_socket (Description): Update.
51078         Reported by Elbert Pol <e.pol@chello.nl>.
51079
51080 2008-04-13  Bruno Haible  <bruno@clisp.org>
51081
51082         * lib/localcharset.c (OS2): Don't redefine if already defined.
51083         Reported by Elbert Pol <e.pol@chello.nl>.
51084
51085 2008-04-13  Bruno Haible  <bruno@clisp.org>
51086
51087         * lib/binary-io.h [__EMX__]: Include <io.h>.
51088         Reported by Elbert Pol <e.pol@chello.nl>.
51089
51090 2008-04-12  Bruno Haible  <bruno@clisp.org>
51091
51092         * lib/fpucw.h: Enable the definitions also for x86_64.
51093         Needed for NetBSD/x86_64.
51094         Reported by Thomas Klausner <tk@giga.or.at>.
51095
51096 2008-04-12  Bruno Haible  <bruno@clisp.org>
51097
51098         * tests/test-strtod.c: Include isnand.h.
51099         (main): Use isnand instead of isnan.
51100         Reported by Jim Meyering.
51101
51102 2008-04-12  Bruno Haible  <bruno@clisp.org>
51103
51104         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
51105         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
51106
51107 2008-04-12  Jim Meyering  <meyering@redhat.com>
51108
51109         * m4/math_h.m4 (gl_MATH_H): Fix typos.
51110
51111 2008-04-12  Bruno Haible  <bruno@clisp.org>
51112
51113         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
51114         Reported by Elbert Pol <e.pol@chello.nl>.
51115
51116 2008-04-12  Eric Blake  <ebb9@byu.net>
51117
51118         Work around Solaris 10 math.h bug.
51119         * m4/math_h.m4 (gl_MATH_H): Check for bug.
51120         (gl_MATH_H_DEFAULTS): Set up default.
51121         * modules/math (Makefile.am): Replace new indicators.
51122         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
51123         * tests/test-math.c (main): Test this.
51124         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
51125         * doc/posix-headers/math.texi (math.h): Mention bug.
51126         Reported by Nelson H. F. Beebe and Jim Meyering.
51127
51128 2008-04-11  Bruno Haible  <bruno@clisp.org>
51129
51130         Adapt to future versions of Apple GCC.
51131         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
51132         Reported by Peter O'Gorman <peter@pogma.com>.
51133
51134 2008-04-11  Bruno Haible  <bruno@clisp.org>
51135
51136         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
51137
51138 2008-04-11  Bruno Haible  <bruno@clisp.org>
51139
51140         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
51141
51142         * modules/getaddrinfo-tests (Makefile.am): Define
51143         test_getaddrinfo_LDADD.
51144
51145 2008-04-11  Bruno Haible  <bruno@clisp.org>
51146
51147         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
51148         (init): Fix syntax error.
51149         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
51150         is declared.
51151
51152 2008-04-11  Bruno Haible  <bruno@clisp.org>
51153
51154         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
51155         * modules/glob (Depends-on): Add stdbool.
51156
51157 2008-04-11  Bruno Haible  <bruno@clisp.org>
51158
51159         * lib/trim.c: Include <string.h>.
51160
51161 2008-04-11  Eric Blake  <ebb9@byu.net>
51162
51163         Avoid compile failure on OS/2.
51164         * lib/regex_internal.h (internal_function): Disable optimization
51165         on OS/2 (__EMX__), where it caused compiler error.
51166         Reported by Elbert Pol.
51167
51168 2008-04-11  Bruno Haible  <bruno@clisp.org>
51169
51170         Flush the standard error stream before aborting. Needed on mingw.
51171         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
51172         * tests/test-array_list.c (ASSERT): Likewise.
51173         * tests/test-array_oset.c (ASSERT): Likewise.
51174         * tests/test-avltree_list.c (ASSERT): Likewise.
51175         * tests/test-avltree_oset.c (ASSERT): Likewise.
51176         * tests/test-avltreehash_list.c (ASSERT): Likewise.
51177         * tests/test-binary-io.c (ASSERT): Likewise.
51178         * tests/test-byteswap.c (ASSERT): Likewise.
51179         * tests/test-c-ctype.c (ASSERT): Likewise.
51180         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
51181         * tests/test-c-strcasestr.c (ASSERT): Likewise.
51182         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
51183         * tests/test-c-strstr.c (ASSERT): Likewise.
51184         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
51185         * tests/test-canonicalize.c (ASSERT): Likewise.
51186         * tests/test-carray_list.c (ASSERT): Likewise.
51187         * tests/test-ceilf1.c (ASSERT): Likewise.
51188         * tests/test-ceilf2.c (ASSERT): Likewise.
51189         * tests/test-ceill.c (ASSERT): Likewise.
51190         * tests/test-count-one-bits.c (ASSERT): Likewise.
51191         * tests/test-fbufmode.c (ASSERT): Likewise.
51192         * tests/test-fflush2.c (ASSERT): Likewise.
51193         * tests/test-floorf1.c (ASSERT): Likewise.
51194         * tests/test-floorf2.c (ASSERT): Likewise.
51195         * tests/test-floorl.c (ASSERT): Likewise.
51196         * tests/test-fopen.c (ASSERT): Likewise.
51197         * tests/test-fpending.c (ASSERT): Likewise.
51198         * tests/test-fprintf-posix.c (ASSERT): Likewise.
51199         * tests/test-fpurge.c (ASSERT): Likewise.
51200         * tests/test-freadable.c (ASSERT): Likewise.
51201         * tests/test-freadahead.c (ASSERT): Likewise.
51202         * tests/test-freading.c (ASSERT): Likewise.
51203         * tests/test-freadptr.c (ASSERT): Likewise.
51204         * tests/test-freadptr2.c (ASSERT): Likewise.
51205         * tests/test-freadseek.c (ASSERT): Likewise.
51206         * tests/test-freopen.c (ASSERT): Likewise.
51207         * tests/test-frexp.c (ASSERT): Likewise.
51208         * tests/test-frexpl.c (ASSERT): Likewise.
51209         * tests/test-fseek.c (ASSERT): Likewise.
51210         * tests/test-fseeko.c (ASSERT): Likewise.
51211         * tests/test-fstrcmp.c (ASSERT): Likewise.
51212         * tests/test-ftell.c (ASSERT): Likewise.
51213         * tests/test-ftello.c (ASSERT): Likewise.
51214         * tests/test-func.c (ASSERT): Likewise.
51215         * tests/test-fwritable.c (ASSERT): Likewise.
51216         * tests/test-fwriting.c (ASSERT): Likewise.
51217         * tests/test-getdelim.c (ASSERT): Likewise.
51218         * tests/test-getline.c (ASSERT): Likewise.
51219         * tests/test-i-ring.c (ASSERT): Likewise.
51220         * tests/test-iconv-utf.c (ASSERT): Likewise.
51221         * tests/test-iconv.c (ASSERT): Likewise.
51222         * tests/test-isfinite.c (ASSERT): Likewise.
51223         * tests/test-isnand.c (ASSERT): Likewise.
51224         * tests/test-isnanf.c (ASSERT): Likewise.
51225         * tests/test-isnanl.h (ASSERT): Likewise.
51226         * tests/test-ldexpl.c (ASSERT): Likewise.
51227         * tests/test-linked_list.c (ASSERT): Likewise.
51228         * tests/test-linkedhash_list.c (ASSERT): Likewise.
51229         * tests/test-localename.c (ASSERT): Likewise.
51230         * tests/test-lseek.c (ASSERT): Likewise.
51231         * tests/test-mbscasecmp.c (ASSERT): Likewise.
51232         * tests/test-mbscasestr1.c (ASSERT): Likewise.
51233         * tests/test-mbscasestr2.c (ASSERT): Likewise.
51234         * tests/test-mbscasestr3.c (ASSERT): Likewise.
51235         * tests/test-mbscasestr4.c (ASSERT): Likewise.
51236         * tests/test-mbschr.c (ASSERT): Likewise.
51237         * tests/test-mbscspn.c (ASSERT): Likewise.
51238         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
51239         * tests/test-mbspbrk.c (ASSERT): Likewise.
51240         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
51241         * tests/test-mbsrchr.c (ASSERT): Likewise.
51242         * tests/test-mbsspn.c (ASSERT): Likewise.
51243         * tests/test-mbsstr1.c (ASSERT): Likewise.
51244         * tests/test-mbsstr2.c (ASSERT): Likewise.
51245         * tests/test-mbsstr3.c (ASSERT): Likewise.
51246         * tests/test-memchr2.c (ASSERT): Likewise.
51247         * tests/test-memmem.c (ASSERT): Likewise.
51248         * tests/test-open.c (ASSERT): Likewise.
51249         * tests/test-printf-frexp.c (ASSERT): Likewise.
51250         * tests/test-printf-frexpl.c (ASSERT): Likewise.
51251         * tests/test-printf-posix.c (ASSERT): Likewise.
51252         * tests/test-quotearg.c (ASSERT): Likewise.
51253         * tests/test-rbtree_list.c (ASSERT): Likewise.
51254         * tests/test-rbtree_oset.c (ASSERT): Likewise.
51255         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
51256         * tests/test-round1.c (ASSERT): Likewise.
51257         * tests/test-roundf1.c (ASSERT): Likewise.
51258         * tests/test-roundl.c (ASSERT): Likewise.
51259         * tests/test-signbit.c (ASSERT): Likewise.
51260         * tests/test-sleep.c (ASSERT): Likewise.
51261         * tests/test-snprintf-posix.c (ASSERT): Likewise.
51262         * tests/test-snprintf.c (ASSERT): Likewise.
51263         * tests/test-sprintf-posix.c (ASSERT): Likewise.
51264         * tests/test-stat-time.c (ASSERT): Likewise.
51265         * tests/test-strcasestr.c (ASSERT): Likewise.
51266         * tests/test-strerror.c (ASSERT): Likewise.
51267         * tests/test-striconv.c (ASSERT): Likewise.
51268         * tests/test-striconveh.c (ASSERT): Likewise.
51269         * tests/test-striconveha.c (ASSERT): Likewise.
51270         * tests/test-strsignal.c (ASSERT): Likewise.
51271         * tests/test-strstr.c (ASSERT): Likewise.
51272         * tests/test-strtod.c (ASSERT): Likewise.
51273         * tests/test-trunc1.c (ASSERT): Likewise.
51274         * tests/test-trunc2.c (ASSERT): Likewise.
51275         * tests/test-truncf1.c (ASSERT): Likewise.
51276         * tests/test-truncf2.c (ASSERT): Likewise.
51277         * tests/test-truncl.c (ASSERT): Likewise.
51278         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
51279         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
51280         * tests/test-vasnprintf.c (ASSERT): Likewise.
51281         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
51282         * tests/test-vasprintf.c (ASSERT): Likewise.
51283         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
51284         * tests/test-vprintf-posix.c (ASSERT): Likewise.
51285         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
51286         * tests/test-vsnprintf.c (ASSERT): Likewise.
51287         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
51288         * tests/test-wcwidth.c (ASSERT): Likewise.
51289         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
51290         * tests/test-xprintf-posix.c (ASSERT): Likewise.
51291         * tests/test-xvasprintf.c (ASSERT): Likewise.
51292         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
51293         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
51294         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
51295         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
51296         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
51297         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
51298         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
51299         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
51300         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
51301         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
51302         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
51303         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
51304         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
51305         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
51306         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
51307         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
51308         * tests/unictype/test-block_list.c (ASSERT): Likewise.
51309         * tests/unictype/test-block_of.c (ASSERT): Likewise.
51310         * tests/unictype/test-block_test.c (ASSERT): Likewise.
51311         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
51312         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
51313         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
51314         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
51315         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
51316         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
51317         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
51318         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
51319         * tests/unictype/test-combining.c (ASSERT): Likewise.
51320         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
51321         * tests/unictype/test-digit.c (ASSERT): Likewise.
51322         * tests/unictype/test-mirror.c (ASSERT): Likewise.
51323         * tests/unictype/test-numeric.c (ASSERT): Likewise.
51324         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
51325         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
51326         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
51327         * tests/unictype/test-scripts.c (ASSERT): Likewise.
51328         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
51329         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
51330         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
51331         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
51332         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
51333         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
51334         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
51335         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
51336         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
51337         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
51338         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
51339         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
51340         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
51341         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
51342         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
51343         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
51344         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
51345         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
51346         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
51347         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
51348         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
51349         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
51350         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
51351         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
51352         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
51353         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
51354         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
51355         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
51356         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
51357         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
51358         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
51359         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
51360         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
51361         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
51362         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
51363         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
51364         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
51365         Reported by Eric Blake.
51366
51367 2008-04-11  Bruno Haible  <bruno@clisp.org>
51368
51369         * lib/wchar.in.h: Tweak comment.
51370
51371 2008-04-11  Bruno Haible  <bruno@clisp.org>
51372
51373         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
51374         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
51375         gl_COMMON.
51376         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
51377
51378 2008-04-11  Bruno Haible  <bruno@clisp.org>
51379
51380         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
51381
51382 2008-04-11  Simon Josefsson  <simon@josefsson.org>
51383
51384         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
51385         of attempting to use non-existing /dev/*random.  Based on patch
51386         from Adam Strzelecki <ono@java.pl> in
51387         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
51388
51389 2008-04-08  Bruno Haible  <bruno@clisp.org>
51390
51391         Add tentative support for emx+gcc.
51392         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
51393         * lib/fpurge.c (fpurge): Likewise.
51394         * lib/freadable.c (freadable): Likewise.
51395         * lib/freadahead.c (freadahead): Likewise.
51396         * lib/freading.c (freading): Likewise.
51397         * lib/freadptr.c (freadptr): Likewise.
51398         * lib/freadseek.c (freadptrinc): Likewise.
51399         * lib/fseeko.c (rpl_fseeko): Likewise.
51400         * lib/fseterr.c (fseterr): Likewise.
51401         * lib/fwritable.c (fwritable): Likewise.
51402         * lib/fwriting.c (fwriting): Likewise.
51403         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
51404
51405 2008-04-09  Eric Blake  <ebb9@byu.net>
51406
51407         Avoid some autoconf warnings.
51408         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
51409         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
51410         * m4/afs.m4 (gl_AFS): Likewise.
51411         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
51412         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
51413         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51414         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
51415         (gl_INTEGER_TYPE_SUFFIX): Likewise.
51416         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
51417         (AC_CHECK_DECLS_ONCE): Likewise.
51418         Rename file...
51419         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
51420         gnulib-tool requires autoconf 2.59 or better.
51421         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
51422
51423 2008-04-08  Eric Blake  <ebb9@byu.net>
51424
51425         Use 'git describe --match' if present (added in git 1.5.5).
51426         * build-aux/git-version-gen: Limit result to tags that match 'v*'
51427         if possible.
51428
51429 2008-04-08  Bruno Haible  <bruno@clisp.org>
51430
51431         Add tentative support for OpenServer.
51432         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
51433         _ptr, _cnt.
51434         * lib/fpurge.c (fpurge): Likewise.
51435         * lib/freadable.c (freadable): Likewise.
51436         * lib/freadahead.c (freadahead): Likewise.
51437         * lib/freading.c (freading): Likewise.
51438         * lib/freadptr.c (freadptr): Likewise.
51439         * lib/freadseek.c (freadptrinc): Likewise.
51440         * lib/fseeko.c (rpl_fseeko): Likewise.
51441         * lib/fseterr.c (fseterr): Likewise.
51442         * lib/fwritable.c (fwritable): Likewise.
51443         * lib/fwriting.c (fwriting): Likewise.
51444         Reported by Roger Cornelius <rac@tenzing.org> and
51445         Brian K. White <brian@aljex.com>.
51446
51447 2008-04-06  Jim Meyering  <meyering@redhat.com>
51448
51449         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
51450
51451 2008-04-06  Bruno Haible  <bruno@clisp.org>
51452
51453         Avoid possible error with non-ASCII bytes in UTF-8 locales.
51454         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
51455         * tests/test-printf-posix.sh: Likewise.
51456         * tests/test-vfprintf-posix.sh: Likewise.
51457         * tests/test-vprintf-posix.sh: Likewise.
51458         * tests/test-xprintf-posix.sh: Likewise.
51459
51460 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51461
51462         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
51463         hide error from 'ls', needed on OS/2.
51464         Report by Elbert Pol <elbert.pol@gmail.com>.
51465
51466 2008-04-04  Eric Blake  <ebb9@byu.net>
51467
51468         Make test-fseeko.c failures meaningful.
51469         * tests/test-fseeko.c: Print line number on failure.
51470         * tests/test-fseek.c: Likewise.
51471         Reported by Nelson H. F. Beebe.
51472
51473         Improve strtod bug detection check.
51474         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
51475         required for Solaris 10.
51476         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
51477
51478 2008-04-04  Bruno Haible  <bruno@clisp.org>
51479
51480         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
51481         by m4/setenv.m4.
51482
51483 2008-04-03  Eric Blake  <ebb9@byu.net>
51484
51485         Ensure sane .version contents.
51486         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
51487         version string.
51488         * build-aux/git-version-gen: Improve documentation.
51489
51490         Make GNU make output nicer.
51491         * top/GNUmakefile [!_have-Makefile]: Add dependency on
51492         MAKECMDGOALS to enforce message for all command line targets.  Set
51493         srcdir for use in maint.mk.
51494
51495         Another maintainer tweak.
51496         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
51497         a target that regenerates version.
51498
51499 2008-04-03  Jim Meyering  <meyering@redhat.com>
51500
51501         vc-list-files: don't cause coreutils "make po-check" failure
51502         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
51503
51504 2008-04-03  Eric Blake  <ebb9@byu.net>
51505
51506         Allow VPATH usage of vc-list-files.
51507         * build-aux/vc-list-files (scriptversion): Add timestamp.
51508         (options): Add --help, --version, -C.
51509         (CVS): Support installed cvsu.
51510
51511 2008-04-02  Bruno Haible  <bruno@clisp.org>
51512
51513         Avoid some "statement with no effect" warnings from gcc.
51514         * tests/test-wctype.c (main): Explicitly ignore unused values.
51515         Reported by Jim Meyering.
51516
51517 2008-04-02  Jim Meyering  <meyering@redhat.com>
51518
51519         Avoid some warnings from "gcc -Wshadow".
51520         * tests/test-frexp.c (exp): Define to a different identifier.
51521         * tests/test-frexpl.c (exp): Likewise.
51522
51523 2008-04-03  Jim Meyering  <meyering@redhat.com>
51524
51525         bootstrap: remove dangling *.[ch] symlinks from lib
51526         * build-aux/bootstrap [dangling symlink removal]: Move find's
51527         -depth option to precede all others, to avoid a warning.
51528         Remove *.[ch] files too, and from "$source_base" (usually lib/).
51529
51530 2008-04-02  Bruno Haible  <bruno@clisp.org>
51531
51532         Avoid some warnings from "gcc -Wshadow".
51533         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
51534         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
51535         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
51536         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
51537         Reported by Jim Meyering.
51538
51539 2008-04-01  Bruno Haible  <bruno@clisp.org>
51540
51541         Fix test to work on IRIX 6.5 with cc.
51542         * tests/test-math.c (numeric_equal): New function.
51543         (main): Use it.
51544
51545 2008-04-01  Bruno Haible  <bruno@clisp.org>
51546
51547         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
51548
51549 2008-04-01  Bruno Haible  <bruno@clisp.org>
51550
51551         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
51552         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51553         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
51554         (Depends-on): Remove math.
51555
51556         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
51557         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51558         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
51559         (Depends-on): Remove math.
51560
51561         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
51562         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51563         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
51564         (Depends-on): Remove math.
51565         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
51566         (Depends-on): Remove math.
51567
51568         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
51569         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51570         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
51571         (Depends-on): Remove math.
51572         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
51573         (Depends-on): Remove math.
51574
51575         * tests/test-round1.c: Include nan.h.
51576         (main): Use NaNd instead of NAN.
51577         * modules/round-tests (Files): Add tests/nan.h.
51578
51579         * tests/test-trunc1.c: Include nan.h.
51580         (main): Use NaNd instead of NAN.
51581         * modules/trunc-tests (Files): Add tests/nan.h.
51582
51583         * tests/test-roundf1.c: Include nan.h.
51584         (main): Use NaNf instead of NAN.
51585         * modules/roundf-tests (Files): Add tests/nan.h.
51586
51587         * tests/test-truncf1.c: Include nan.h.
51588         (main): Use NaNf instead of NAN.
51589         * modules/truncf-tests (Files): Add tests/nan.h.
51590
51591         * tests/test-ceilf1.c: Include nan.h.
51592         (main): Use NaNf instead of NAN.
51593         * modules/ceilf-tests (Files): Add tests/nan.h.
51594
51595         * tests/test-floorf1.c: Include nan.h.
51596         (main): Use NaNf instead of NAN.
51597         * modules/floorf-tests (Files): Add tests/nan.h.
51598
51599         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
51600         (main): Use NaNf instead of NAN.
51601         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
51602
51603         * tests/test-isnand.c: Include nan.h instead of <math.h>.
51604         (main): Use NaNd instead of NAN.
51605         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
51606
51607         * tests/test-frexp.c: Include nan.h.
51608         (main): Use NaNd instead of NAN.
51609         * modules/frexp-tests (Files): Add tests/nan.h.
51610
51611         * lib/isnan.c: Don't include <math.h>.
51612         (FUNC): Don't use NAN macro.
51613         * modules/isnand-nolibm (Depends-on): Remove math.
51614         * modules/isnanf-nolibm (Depends-on): Remove math.
51615         * modules/isnanl (Depends-on): Remove math.
51616         * modules/isnanl-nolibm (Depends-on): Remove math.
51617
51618         * tests/nan.h: New file.
51619
51620 2008-04-01  Eric Blake  <ebb9@byu.net>
51621
51622         Fix typos.
51623         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
51624         values to be the right type.
51625
51626         For now, cater to gnulib strtod inaccuracies.
51627         * tests/test-strtod.c (main): Allow 1-ulp error on expected
51628         fractional results.  While not as nice from a QoI perspective, it
51629         is a quicker patch than correctly implementing decimal to binary
51630         rounding.
51631
51632 2008-03-31  Eric Blake  <ebb9@byu.net>
51633
51634         Guarantee a definition of NAN.
51635         * lib/math.in.h (NAN): Define if missing.
51636         * tests/test-math.c (main): Test it.
51637         * doc/posix-headers/math.texi (math.h): Document this.
51638         * lib/isnan.c (rpl_isnand): Use it.
51639         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
51640         * tests/test-floorf1.c (NaN): Likewise.
51641         * tests/test-frexp.c (NaN): Likewise.
51642         * tests/test-isnand.c (NaN): Likewise.
51643         * tests/test-isnanf.c (NaN): Likewise.
51644         * tests/test-round1.c (NaN): Likewise.
51645         * tests/test-roundf1.c (NaN): Likewise.
51646         * tests/test-snprintf-posix.h (NaN): Likewise.
51647         * tests/test-sprintf-posix.h (NaN): Likewise.
51648         * tests/test-trunc1.c (NaN): Likewise.
51649         * tests/test-truncf1.c (NaN): Likewise.
51650         * tests/test-vasnprintf-posix.c (NaN): Likewise.
51651         * tests/test-vasprintf-posix.c (NaN): Likewise.
51652         * modules/isnand-nolibm (Depends-on): Add math.
51653         * modules/isnanf-nolibm (Depends-on): Likewise.
51654         * modules/isnanl (Depends-on): Likewise.
51655         * modules/isnanl-nolibm (Depends-on): Likewise.
51656         * modules/snprintf-posix-tests (Depends-on): Likewise.
51657         * modules/sprintf-posix-tests (Depends-on): Likewise.
51658         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
51659         * modules/vsprintf-posix-tests (Depends-on): Likewise.
51660         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
51661         * modules/vasprintf-posix-tests (Depends-on): Likewise.
51662
51663 2008-03-31  Bruno Haible  <bruno@clisp.org>
51664
51665         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
51666         * doc/posix-functions/strtod.texi: Likewise.
51667
51668 2008-03-31  Bruno Haible  <bruno@clisp.org>
51669
51670         * tests/test-strtod.c (main): Don't use C99 syntax.
51671
51672 2008-03-31  Bruno Haible  <bruno@clisp.org>
51673
51674         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
51675         Reported by Eric Blake.
51676
51677 2008-03-31  Jim Meyering  <meyering@redhat.com>
51678
51679         Don't compare actual signbit return values.
51680         * tests/test-strtod.c (main): Rather, compare only their
51681         zero/non-zero nature.
51682
51683 2008-03-31  Eric Blake  <ebb9@byu.net>
51684
51685         More strtod documentation.
51686         * doc/posix-functions/strtod.texi (strtod): Interpret more test
51687         failures as distinct bugs.
51688
51689 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
51690
51691         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
51692         Problem reported by Erik Benada in
51693         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
51694
51695 2008-03-30  Bruno Haible  <bruno@clisp.org>
51696
51697         * tests/test-strtod.c: Add comments about which assertion fails on which
51698         platform.
51699         * doc/posix-functions/strtod.texi: Add info about many more platforms.
51700
51701 2008-03-30  Eric Blake  <ebb9@byu.net>
51702
51703         Test signbit behavior on zeros.
51704         * tests/test-signbit.c (test_signbitf): Add tests for zero.
51705         (test_signbitd, test_signbitl): Likewise.
51706
51707         More strtod touchups.
51708         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
51709         sign of negative underflow, for now.  Use .5, not .1.
51710         * doc/posix-functions/strtod.texi (strtod): Mention these
51711         limitations.
51712         Reported by Jim Meyering.
51713
51714 2008-03-30  Bruno Haible  <bruno@clisp.org>
51715
51716         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
51717         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
51718
51719 2008-03-30  Bruno Haible  <bruno@clisp.org>
51720
51721         Avoid failure when attempting to return empty iconv results on some
51722         platforms.
51723         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
51724         allocation, don't report ENOMEM when the resulting string is empty.
51725
51726 2008-03-30  Bruno Haible  <bruno@clisp.org>
51727
51728         Fix buffer overrun.
51729         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
51730         Don't consider the width for tmp_length. Check count against tmp_length
51731         before doing the padding. Ensure enough allocation during padding.
51732
51733 2008-03-30  Eric Blake  <ebb9@byu.net>
51734
51735         strtod touchups.
51736         * lib/strtod.c (strtod): Avoid compiler warnings.
51737         Reported by Jim Meyering.
51738
51739 2008-03-30  Bruno Haible  <bruno@clisp.org>
51740
51741         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
51742         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
51743         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
51744         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
51745         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
51746         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
51747         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
51748         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
51749
51750         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
51751         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
51752         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
51753         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
51754         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
51755         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
51756         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
51757         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
51758
51759         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
51760         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
51761         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
51762         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
51763         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
51764         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
51765         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
51766         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
51767
51768         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
51769         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
51770
51771         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
51772         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
51773
51774         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
51775         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
51776
51777         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
51778         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
51779         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
51780
51781         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
51782         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
51783         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
51784
51785         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
51786         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
51787         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
51788
51789         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
51790         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
51791         * modules/vasprintf (Depends-on): Add EOVERFLOW.
51792
51793         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
51794         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
51795         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
51796         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
51797         (Depends-on): Add EOVERFLOW.
51798         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
51799         (Depends-on): Add EOVERFLOW.
51800         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51801         (Depends-on): Add EOVERFLOW.
51802         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51803         (Depends-on): Add EOVERFLOW.
51804         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51805         (Depends-on): Add EOVERFLOW.
51806         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51807         (Depends-on): Add EOVERFLOW.
51808         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51809         (Depends-on): Add EOVERFLOW.
51810         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51811         (Depends-on): Add EOVERFLOW.
51812
51813         * lib/sprintf.c (EOVERFLOW): Remove fallback.
51814         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
51815         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
51816
51817         * lib/snprintf.c (EOVERFLOW): Remove fallback.
51818         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
51819         * modules/snprintf (Depends-on): Add EOVERFLOW.
51820
51821         * lib/poll.c (EOVERFLOW): Remove fallback.
51822         * modules/poll (Depends-on): Add EOVERFLOW.
51823
51824         * lib/getugroups.c (EOVERFLOW): Remove fallback.
51825         * modules/getugroups (Depends-on): Add EOVERFLOW.
51826
51827         * lib/getdelim.c (EOVERFLOW): Remove fallback.
51828         * modules/getdelim (Depends-on): Add EOVERFLOW.
51829
51830         * lib/ftell.c (EOVERFLOW): Remove fallback.
51831         * modules/ftell (Depends-on): Add EOVERFLOW.
51832
51833         * lib/fprintf.c (EOVERFLOW): Remove fallback.
51834         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
51835         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
51836
51837         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
51838
51839         * modules/EOVERFLOW-tests: New file.
51840         * tests/test-EOVERFLOW.c: New file.
51841
51842         * modules/EOVERFLOW: New file.
51843         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
51844
51845 2008-03-30  Bruno Haible  <bruno@clisp.org>
51846
51847         Fix bug introduced on 2007-06-10.
51848         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
51849         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
51850
51851 2008-03-30  Bruno Haible  <bruno@clisp.org>
51852
51853         Improve freadseek's efficiency after ungetc.
51854         * lib/freadseek.c: Include freadahead.h.
51855         (freadptrinc): New function, extracted from freadseek.
51856         (freadseek): Use it in a loop. Use freadahead to determine the number
51857         of loop iterations.
51858         * modules/freadseek (Depends-on): Add freadahead.
51859         (configure.ac): Require AC_C_INLINE.
51860
51861 2008-03-30  Bruno Haible  <bruno@clisp.org>
51862
51863         * lib/freadseek.c (freadseek): Don't ignore the return value of
51864         freadptr.
51865
51866 2008-03-29  Eric Blake  <ebb9@byu.net>
51867
51868         Add hex float support.
51869         * modules/strtod (Depends-on): Add c-ctype.
51870         (Link): Mention POW_LIB.
51871         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
51872         whitespace between 'e' and exponent.
51873         * tests/test-strtod.c (main): Enable hex float tests.
51874         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
51875         now provides.
51876
51877         Document various strtod bugs, with some fixes.
51878         * doc/posix-functions/strtod.texi (strtod): Document bugs with
51879         "-0x", "inf", "nan", and hex constants.
51880         * doc/posix-functions/atof.texi (atof): Likewise.
51881         * modules/stdlib (Makefile.am): Support strtod.
51882         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
51883         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
51884         detect additional strtod bugs.
51885         * lib/stdlib.in.h (rpl_strtod): Add declarations.
51886         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
51887         bool where appropriate.  Parse 'inf' and 'nan'.
51888         * tests/test-strtod.c: New file.
51889         * modules/strtod (Depends-on): Add stdbool, stdlib.
51890         (configure.ac): Turn on module indicator.
51891         * modules/strtod-tests: New module.
51892
51893 2008-03-29  Eric Blake  <ebb9@byu.net>
51894
51895         Fix ftell on mingw.
51896         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
51897         * modules/ftell-tests (Depends-on): Add binary-io.
51898         * modules/ftello-tests (Depends-on): Likewise.
51899         * tests/test-ftell.c (main): Enhance test to cover behavior after
51900         ungetc.  Enforce binary mode.
51901         * tests/test-ftello.c (main): Likewise.
51902
51903         Pass test-freadseek on cygwin.
51904         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
51905         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
51906         ungetc buffer.
51907
51908         * tests/test-fflush2.c (main): Fix typo.
51909
51910 2008-03-29  Bruno Haible  <bruno@clisp.org>
51911
51912         * tests/test-fflush2.c (main): Temporarily disable the contents of
51913         this test.
51914         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
51915         Reported by Eric Blake.
51916
51917 2008-03-28  Simon Josefsson  <simon@josefsson.org>
51918
51919         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
51920         (GC_SHA224_DIGEST_SIZE): Add.
51921
51922         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
51923         (gc_hash_digest_length): Likewise.
51924         (gc_hash_buffer): Likewise.
51925
51926 2008-03-25  Bruno Haible  <bruno@clisp.org>
51927
51928         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
51929         detail which gettext release to use.
51930         Reported by Simon Josefsson.
51931
51932 2008-03-26  Jim Meyering  <meyering@redhat.com>
51933
51934         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
51935         * modules/gnumakefile (clean-GNUmakefile): Also, use
51936         test ... && ... || : syntax rather than if-then ... fi.
51937
51938         gnumakefile: Don't double-quote-expand $(VPATH) value.
51939         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
51940
51941 2008-03-24  Eric Blake  <ebb9@byu.net>
51942
51943         Alter GNUmakefile to install into top directory.
51944         * modules/maintainer-makefile: Split, and add dependency...
51945         * modules/gnumakefile: to this new module.
51946         * build-aux/GNUmakefile: Move...
51947         * top/GNUmakefile: ...here.
51948         * build-aux/maint.mk: Move...
51949         * top/maint.mk: ...here.
51950         * MODULES.html.sh (Support for maintaining...): Document new
51951         module.
51952
51953 2008-03-23  Bruno Haible  <bruno@clisp.org>
51954
51955         * gnulib-tool: New options --vc-files, --no-vc-files.
51956         (func_usage): Document them.
51957         (vc_files): New variable.
51958         (func_import): Consider vc_files.
51959         (func_create_testdir): Set vc_files to empty.
51960         Suggested by Jim Meyering and Karl Berry.
51961
51962 2008-03-23  Bruno Haible  <bruno@clisp.org>
51963
51964         Fix regex compilation error on HP-UX 11.
51965         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
51966         * modules/regex (Files): Add m4/mbstate_t.m4.
51967         Reported by Ton Voon <ton.voon@altinity.com>.
51968
51969 2008-03-23  Bruno Haible  <bruno@clisp.org>
51970
51971         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
51972
51973 2008-03-23  Eric Blake  <ebb9@byu.net>
51974             Bruno Haible  <bruno@clisp.org>
51975
51976         Install files from top/ in the destination directory.
51977         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
51978         augmentation also for the files from top/.
51979         (func_import, func_create_testdir): Rewrite file names:
51980         top/filename -> filename.
51981
51982 2008-03-23  Bruno Haible  <bruno@clisp.org>
51983
51984         Tweak "gnulib --version" output.
51985         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
51986
51987 2008-03-23  Bruno Haible  <bruno@clisp.org>
51988
51989         Tweak "gnulib --version" output.
51990         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
51991         rather than contents of ChangeLog, when possible.
51992
51993 2008-03-21  Eric Blake  <ebb9@byu.net>
51994
51995         More --version tweaks.
51996         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
51997         date of last ChangeLog entry.
51998
51999 2008-03-21  Jim Meyering  <meyering@redhat.com>
52000
52001         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
52002
52003 2008-03-20  Eric Blake  <ebb9@byu.net>
52004
52005         VPATH fix.
52006         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
52007
52008 2008-03-20  Simon Josefsson  <simon@josefsson.org>
52009
52010         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
52011         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
52012
52013 2008-03-20  Eric Blake  <ebb9@byu.net>
52014
52015         Sync GNUmakefile with coreutils.
52016         * build-aux/GNUmakefile (have-Makefile): Rename...
52017         (_have-Makefile): ...to this, for namespace consideration.
52018         (GNUmakefile.cfg): Include, if present.
52019         (_autoreconf): Define a default.
52020         (_is-dist-target): New rule for rebuilds to pick up intra-release
52021         version.
52022         (maint-cfg.mk): Rename...
52023         (cfg.mk): ...to this.
52024
52025 2008-03-18  Jim Meyering  <meyering@redhat.com>
52026
52027         New script and module: mktempd
52028         * MODULES.html.sh (maint+release support): Add mktempd.
52029         * build-aux/mktempd: New file.
52030         * modules/mktempd: New file.
52031
52032 2008-03-15  Jim Meyering  <meyering@redhat.com>
52033
52034         Undo last change.
52035         * lib/sha1.c, lib/md5.c: 63 != ~63.
52036         Reported by Andreas Schwab.
52037
52038         sha1.c, md5.c: Hoist a redundant expression.
52039         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
52040         "ctx->buflen" only once, before calling *_process_block.
52041         * lib/md5.c (md5_process_bytes): Likewise.
52042
52043 2008-03-14  Eric Blake  <ebb9@byu.net>
52044
52045         Bump copyright year in files generated by gnulib-tool.
52046         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
52047         gnulib-tool, rather than hard-coding it.
52048
52049         Fix 'gnulib-tool --version' output to work with git.
52050         * gnulib-tool (func_gnulib_dir): New function, extracted from...
52051         (startup): ...here.
52052         (func_version): Use it to invoke git-version-gen, rather than
52053         relying on CVS keyword expansion.  Modernize wording.
52054         (cvsdatestamp, last_checkin_date, version): Kill unused
52055         variables.
52056
52057 2008-03-12  Jim Meyering  <meyering@redhat.com>
52058
52059         Recognize optional cast of the argument to free.
52060         * build-aux/useless-if-before-free: Update regexps.
52061
52062         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
52063
52064 2008-03-11  Bruno Haible  <bruno@clisp.org>
52065
52066         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
52067         by a single package.
52068         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
52069         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
52070         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
52071         Reported by Sam Steingold <sds@gnu.org>.
52072
52073 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
52074
52075         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
52076         repositories.
52077
52078 2008-03-11  Bruno Haible  <bruno@clisp.org>
52079
52080         Avoid conflicts between local macro definitions.
52081         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
52082         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
52083
52084 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
52085             Bruno Haible  <bruno@clisp.org>
52086
52087         Make va_copy work with some version of xlc on AIX 5.1.
52088         * lib/stdarg.in.h: New file.
52089         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
52090         On AIX, use a <stdarg.h> file substitute.
52091         * modules/stdarg (Files): Add lib/stdarg.in.h.
52092         (Depends-on): Add include_next.
52093         (Makefile.am): Build a stdarg.h substitute if requested.
52094         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
52095
52096 2008-03-10  Bruno Haible  <bruno@clisp.org>
52097
52098         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
52099         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
52100         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
52101
52102 2008-03-10  Bruno Haible  <bruno@clisp.org>
52103
52104         * modules/stdlib (Depends-on): Add include_next, remove
52105         absolute-header.
52106
52107 2008-03-09  Bruno Haible  <bruno@clisp.org>
52108
52109         * lib/freadahead.h (freadahead): Document more precisely.
52110         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
52111         the sum of both buffer sizes.
52112         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
52113         * NEWS: Document the change.
52114
52115 2008-03-09  Bruno Haible  <bruno@clisp.org>
52116
52117         Extend freadptr to return also the buffer size.
52118         * lib/freadptr.h (freadptr): Add sizep argument.
52119         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
52120         (freadptr): Add sizep argument. Determine buffer size like freadahead
52121         does.
52122         * tests/test-freadptr.c: Don't include freadahead.h.
52123         (main): Adapt for new calling convention of freadptr.
52124         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
52125         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
52126         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
52127         tests/test-freadptr2.sh.
52128         (Depends): Remove freadahead.
52129         (TESTS): Add test-freadptr2.sh.
52130         (check_PROGRAMS): Add test-freadptr2.
52131
52132 2008-03-09  Bruno Haible  <bruno@clisp.org>
52133
52134         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
52135         Report and solution by Simon Josefsson.
52136
52137 2008-03-06  Bruno Haible  <bruno@clisp.org>
52138
52139         Make fflush after ungetc work on BSD platforms.
52140         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
52141         * tests/test-fflush2.c: New file.
52142         * tests/test-fflush2.sh: New file.
52143         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
52144         tests/test-fflush2.c.
52145         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
52146         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
52147
52148 2008-03-06  Eric Blake  <ebb9@byu.net>
52149
52150         Likewise for ftello.
52151         * modules/ftello (Dependencies): Add extensions.
52152         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
52153
52154 2008-03-06  Bruno Haible  <bruno@clisp.org>
52155
52156         * modules/fseeko (Dependencies): Add extensions.
52157         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
52158         Needed on glibc systems.
52159
52160 2008-03-06  Bruno Haible  <bruno@clisp.org>
52161
52162         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
52163         email address.
52164         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
52165
52166 2008-03-06  Bruno Haible  <bruno@clisp.org>
52167
52168         * users.txt: Add libgnupdf.
52169
52170 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
52171
52172         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
52173         (Header File Substitutes, Function Substitutes,
52174         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
52175         (Build robot for gnulib): Fix typo.
52176
52177 2008-03-06  Bruno Haible  <bruno@clisp.org>
52178
52179         * doc/gnulib-tool.texi (VCS Issues): Small updates.
52180         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
52181
52182 2008-03-06  Bruno Haible  <bruno@clisp.org>
52183
52184         * doc/func.texi: New file, extracted from doc/gnulib.texi.
52185         * doc/gnulib.texi: Include it.
52186
52187 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52188
52189         * modules/func (License): Change license to unlimited; there was
52190         no LGPL parts in the module anyway.
52191
52192 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52193
52194         * modules/__func__: Renamed to modules/func.
52195         * modules/__func__-tests: Renamed to modules/func-tests.
52196         * tests/test-__func__.c: Renamed to tests/test-func.c.
52197         * m4/__func__.m4: Renamed to m4/func.m4.
52198         * doc/gnulib.texi (__func__): Section renamed to func.
52199         Suggested by Eric Blake <ebb9@byu.net>.
52200
52201 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52202
52203         * doc/gnulib.texi (__func__): Use C99 terminology when talking
52204         about __func__.  Make example self-contained.  Suggested by Eric
52205         Blake <ebb9@byu.net>.
52206
52207         * tests/test-__func__.c (main): Avoid extraneous () around __func.
52208         Suggested by Eric Blake <ebb9@byu.net>.
52209
52210 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52211
52212         * modules/__func__: New file.
52213         * modules/__func__-tests: New file.
52214         * tests/test-__func__.c: New file.
52215         * m4/__func__.m4: New file.
52216         * doc/gnulib.texi (__func__): Document __func__ module.
52217
52218 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52219
52220         * modules/byteswap (License): Re-license as LGPLv2+.
52221
52222 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52223
52224         * doc/Makefile: Add pdf target.
52225
52226 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52227
52228         * modules/inline (License): Use 'unlimited', since there are only
52229         *.m4 files in this module.
52230
52231 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
52232             Bruno Haible  <bruno@clisp.org>
52233
52234         Add support for HP C 7.1 on OpenVMS 8.3.
52235         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
52236
52237 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
52238
52239         Update VMS specifics.
52240         * lib/getopt.c [VMS]: Remove include of unixlib.h.
52241
52242 2008-03-02  Jim Meyering  <meyering@redhat.com>
52243
52244         Remove the last dependency on the "free" module.
52245         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
52246         Reported by Bob Proulx.
52247
52248         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
52249
52250         Remove useless "if" tests before free.  Deprecate "free" module.
52251         * doc/posix-functions/free.texi: Mention that this
52252         module is no longer useful.
52253         * modules/free (Notice): Say this module is obsolete.
52254         * modules/readutmp (Depends-on): Remove free.
52255         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
52256         * lib/putenv.c (putenv): Likewise.
52257         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
52258         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
52259         * tests/test-c-strcasestr.c (main): Likewise.
52260         * tests/test-c-strstr.c (main): Likewise.
52261         * tests/test-mbscasestr1.c (main): Likewise.
52262         * tests/test-mbscasestr2.c (main): Likewise.
52263         * tests/test-mbsstr1.c (main): Likewise.
52264         * tests/test-mbsstr2.c (main): Likewise.
52265         * tests/test-memmem.c (main): Likewise.
52266         * tests/test-strcasestr.c (main): Likewise.
52267         * tests/test-striconv.c (main): Likewise.
52268         * tests/test-striconveh.c (main): Likewise.
52269         * tests/test-striconveha.c (main): Likewise.
52270         * tests/test-strstr.c (main): Likewise.
52271
52272         * build-aux/git-version-gen: Adjust a comment and the Usage string.
52273
52274         bootstrap: sync from coreutils again
52275         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
52276
52277 2008-03-01  Jim Meyering  <meyering@redhat.com>
52278
52279         bootstrap: sync from coreutils
52280         * build-aux/bootstrap (update_po_files): Copy a .po file into place
52281         also when the target doesn't exist.
52282
52283 2008-03-01  Eric Blake  <ebb9@byu.net>
52284
52285         Fix bugs in last patch.
52286         * lib/memchr2.c (memchr2): Fix typo.
52287         * tests/test-memchr2.c: Test previous bug, and don't use GNU
52288         extension.
52289         Reported by Bruce Korb.
52290
52291         New module 'memchr2'.
52292         * modules/memchr2: New file.
52293         * modules/memchr2-tests: Likewise.
52294         * lib/memchr2.h: Likewise.
52295         * lib/memchr2.c: Likewise, based on memchr.c.
52296         * tests/test-memchr2.c: New test.
52297         * MODULES.html.sh (String handling): Add memchr2.
52298
52299 2008-02-29  Bruno Haible  <bruno@clisp.org>
52300
52301         * modules/freadseek-tests: New file.
52302         * tests/test-freadseek.sh: New file.
52303         * tests/test-freadseek.c: New file.
52304
52305         New module 'freadseek'.
52306         * modules/freadseek: New file.
52307         * lib/freadseek.h: New file.
52308         * lib/freadseek.c: New file.
52309         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
52310
52311 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
52312
52313         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
52314         wydawca.
52315
52316         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
52317         program_invocation_name and program_invocation_short_name are
52318         present.
52319
52320 2008-02-28  Bruno Haible  <bruno@clisp.org>
52321
52322         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
52323         * tests/test-freadptr.sh: Also test non-seekable stdin.
52324
52325 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
52326
52327         * build-aux/bootstrap (source_base, m4_base)
52328         (doc_base, tests_base): New variables.
52329         (gnulib_tool_options): Do not hardcode base directories, use
52330         the above variables instead.
52331
52332 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
52333
52334         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
52335
52336 2008-02-28  Bruno Haible  <bruno@clisp.org>
52337
52338         * modules/freadptr-tests: New file.
52339         * tests/test-freadptr.sh: New file.
52340         * tests/test-freadptr.c: New file.
52341
52342         New module 'freadptr'.
52343         * modules/freadptr: New file.
52344         * lib/freadptr.h: New file.
52345         * lib/freadptr.c: New file.
52346         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
52347
52348 2008-02-26  Karl Berry  <karl@freefriends.org>
52349
52350         Sync from Libtool:
52351         * libltdl/argz.c (argz_add, argz_count): New functions.
52352         * libltdl/argz.in.h: Declare them.
52353         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
52354
52355 2008-02-22  Bruno Haible  <bruno@clisp.org>
52356
52357         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
52358         is a pointer type.  Needed for HP-UX 10.
52359         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
52360         * doc/posix-functions/gmtime_r.texi: Likewise.
52361         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
52362
52363 2008-02-24  Bruno Haible  <bruno@clisp.org>
52364
52365         * modules/environ-tests: New file.
52366         * tests/test-environ.c: New file.
52367
52368         New module 'environ'.
52369         * modules/environ: New file.
52370         * lib/unistd.in.h (environ): New declaration.
52371         * m4/environ.m4: New file.
52372         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
52373         after use.
52374         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
52375         HAVE_DECL_ENVIRON.
52376         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
52377         HAVE_DECL_ENVIRON.
52378         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
52379         wrong claim that 'environ' is missing on some systems.
52380         * modules/execute (Depends-on): Add environ.
52381         * lib/execute.c (environ): Remove fallback declaration.
52382         * modules/pipe (Depends-on): Add environ.
52383         * lib/pipe.c (environ): Remove fallback declaration.
52384         * modules/setenv (Depends-on): Add environ.
52385         * lib/setenv.c (environ): Remove fallback declaration.
52386         * modules/unsetenv (Depends-on): Add environ.
52387         * lib/unsetenv.c (environ): Remove fallback declaration.
52388         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
52389         m4/environ.m4.
52390         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
52391         (gl_PREREQ_UNSETENV): Likewise.
52392
52393 2008-02-24  Bruno Haible  <bruno@clisp.org>
52394
52395         * doc/posix-functions/environ.texi: Document the MacOS X problem.
52396
52397 2008-02-20  Bob Proulx  <bob@proulx.com>
52398
52399         Enable use of older two part flavor 'git describe'.
52400         * build-aux/git-version-gen: If using the older two part flavor of
52401         git version then recreate the third part now present in the
52402         newer three part flavor of git describe.
52403
52404 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
52405
52406         * lib/fts.c (fts_build): Typo correction to comment.
52407
52408 2008-02-17  Bruno Haible  <bruno@clisp.org>
52409
52410         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
52411         generating no-op conflicts.
52412
52413 2008-02-17  Bruno Haible  <bruno@clisp.org>
52414
52415         Speed up by 10%.
52416         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
52417         result_entries, rather than an index-based loop.
52418
52419 2008-02-17  Bruno Haible  <bruno@clisp.org>
52420
52421         Speed up by 25%.
52422         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
52423         'hashcode_cached'.
52424         (entry_create): New function.
52425         (entry_hashcode): Use the cached hashcode if possible.
52426         (read_changelog_file, try_split_merged_entry): Use entry_create.
52427
52428 2008-02-17  Bruno Haible  <bruno@clisp.org>
52429
52430         Speed up from O(n^2) to O(n) for long ChangeLog files.
52431         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
52432         (read_changelog_file): Change implementation of entries_reversed list
52433         to rbtreehash.
52434         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
52435
52436 2008-02-17  Bruno Haible  <bruno@clisp.org>
52437
52438         New option --split-merged-entry.
52439         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
52440         (find_paragraph_end, try_split_merged_entry): New functions.
52441         (long_options): Add option --split-merged-entry.
52442         (usage): Document option --split-merged-entry.
52443         (main): Implement option --split-merged-entry.
52444         Reported by Eric Blake.
52445
52446 2008-02-17  Bruno Haible  <bruno@clisp.org>
52447
52448         * lib/git-merge-changelog.c: Include c-strstr.h.
52449         (main): Support the "git pull --rebase" situation.
52450         * modules/git-merge-changelog (Depends-on): Add c-strstr.
52451         Reported by Eric Blake.
52452
52453 2008-02-16  Eric Blake  <ebb9@byu.net>
52454
52455         Avoid doubling \ in common case of "c-maybe" quoting style.
52456         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
52457         eliding outer quotes.
52458         * lib/quotearg.h: Document this.
52459         * tests/test-quotearg.c (result_strings, inputs, results_g)
52460         (flag_results, locale_results): Test it by adding a new string to
52461         each test group.
52462         (compare_strings): Test new string.
52463
52464 2008-02-13  Eric Blake  <ebb9@byu.net>
52465
52466         Avoid trigraph quoting in default output.
52467         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
52468         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
52469         unless explicitly requested.
52470         * tests/test-quotearg.c (flag_results, main): Add additional tests.
52471
52472 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
52473
52474         Don't rely on signed integer overflowing to negative value.
52475         * lib/getugroups.c (getugroups): Include <limits.h>.
52476         Instead, compare against INT_MAX, and increment only if the test passes.
52477
52478 2008-02-13  Jim Meyering  <meyering@redhat.com>
52479         and Eric Blake  <ebb9@byu.net>
52480
52481         Avoid shadowing warning and compile errors on Linux.
52482         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
52483         forwarding macros on Linux.
52484         (dcgettext): Define a stub, for Linux.
52485         (results_g, main): Avoid warnings.
52486
52487 2008-02-12  Eric Blake  <ebb9@byu.net>
52488
52489         Silence warning in last patch.
52490         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
52491
52492         Quotearg part 4: add tests, fix c-maybe colon quoting.
52493         * lib/quotearg.h: Improve documentation.
52494         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
52495         escapes when adding outer quotes.  When quoting trigraphs, use
52496         valid C notation.  When quoting NUL, omit extra characters if next
52497         character is not digit.  Alter prototype.
52498         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
52499         callers.
52500         * modules/quotearg-tests: New module.
52501         * tests/test-quotearg.c: New test.
52502
52503 2008-02-07  Eric Blake  <ebb9@byu.net>
52504
52505         Quotearg part 3: add flag to control outer quote elision.
52506         * lib/quotearg.h (c_maybe_quoting_style): New style.
52507         (enum quoting_flags): Better documentation of flags.
52508         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
52509         c-maybe style.
52510         (quotearg_buffer_restyled): Handle new flag to elide outer
52511         quotes.
52512
52513         Quotearg part 2: add flag that can control NUL elision.
52514         * lib/quotearg.h (set_quoting_flags): New prototype.
52515         * lib/quotearg.c (struct quoting_options): Add flag field.
52516         (set_quoting_flags): New function.
52517         (quotearg_buffer_restyled): Add flags parameter.
52518         (quotearg_alloc_mem): Set the flag if length cannot be returned.
52519         (quotearg_n_options): Set the flag, since length cannot be
52520         returned.
52521         (quoting_options_from_style): Default flags correctly.
52522
52523         Quotearg part 1: more wrappers, restore quotearg_char state.
52524         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
52525         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
52526         (quotearg_colon_mem): New wrappers.
52527         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
52528         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
52529         functions.
52530         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
52531         (quotearg_colon_mem): New functions.
52532
52533 2008-02-11  Bruno Haible  <bruno@clisp.org>
52534
52535         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
52536         library in the current directory: it does not work with parallel make.
52537         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52538
52539 2008-02-11  Bruno Haible  <bruno@clisp.org>
52540
52541         * .gitattributes: New file.
52542
52543 2008-02-11  Jim Meyering  <meyering@redhat.com>
52544
52545         useless-if-before-free: Fix reversed exit values.
52546         * build-aux/useless-if-before-free: Use correct values
52547         for EXIT_MATCH and EXIT_NO_MATCH.
52548
52549         * build-aux/useless-if-before-free: Close stdout carefully.
52550
52551 2008-02-10  Bruno Haible  <bruno@clisp.org>
52552
52553         New module 'git-merge-changelog'.
52554         * modules/git-merge-changelog: New file.
52555         * lib/git-merge-changelog.c: New file.
52556
52557 2008-02-10  Jim Meyering  <meyering@redhat.com>
52558
52559         useless-if-before-free: New option: --list (-l).
52560
52561         useless-if-before-free: Don't exit immediately upon open failure.
52562         * build-aux/useless-if-before-free: Exit 2 for errors.
52563         Upon failure to open a file, don't exit immediately.
52564         Rather, just warn and continue with any remaining files.
52565
52566 2008-02-10  Bruno Haible  <bruno@clisp.org>
52567
52568         New abstract list operation 'node_set_value'.
52569         * lib/gl_list.h (gl_list_node_set_value): New function.
52570         (struct gl_list_implementation): New field node_set_value.
52571         * lib/gl_list.c (gl_list_node_set_value): New function.
52572         * lib/gl_array_list.c (gl_array_node_set_value): New function.
52573         (gl_array_list_implementation): Update.
52574         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
52575         (gl_carray_list_implementation): Update.
52576         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
52577         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
52578         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
52579         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
52580         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
52581         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
52582         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
52583         Update.
52584         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
52585         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
52586         (gl_sublist_list_implementation): Update.
52587
52588 2008-02-10  Bruno Haible  <bruno@clisp.org>
52589
52590         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
52591         Needed when ELEMENT is #defined to 'some_type *'.
52592
52593 2008-02-10  Jim Meyering  <meyering@redhat.com>
52594
52595         New script and module: useless-if-before-free
52596         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
52597         * build-aux/useless-if-before-free: New file.
52598         * modules/useless-if-before-free: New file.
52599
52600         * build-aux/gitlog-to-changelog: Use committer date, not author date.
52601
52602         xstrtol_error: Fix typo.
52603         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
52604         s/exit_failure/exit_status/.
52605
52606 2008-02-09  Jim Meyering  <meyering@redhat.com>
52607
52608         New script and module: gitlog-to-changelog
52609         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
52610         * modules/gitlog-to-changelog: New file.
52611         * build-aux/gitlog-to-changelog: New file.
52612
52613 2008-02-08  Jim Meyering  <meyering@redhat.com>
52614
52615         Avoid two "parameter unused" warnings.
52616         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
52617         Mark "st" as used.
52618
52619         Use "git COMMAND", not "git-COMMAND".
52620         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
52621         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
52622         * build-aux/git-version-gen: Use "git status", not "git-status".
52623
52624 2008-02-07  Bruno Haible  <bruno@clisp.org>
52625
52626         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
52627         Avoids a crash on Windows Vista.
52628         Reported by Adam Strzelecki <ono@java.pl> via
52629         Simon Josefsson <simon@josefsson.org>.
52630
52631 2008-02-06  Bruno Haible  <bruno@clisp.org>
52632
52633         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
52634         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
52635         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
52636         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
52637         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
52638         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52639         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
52640         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
52641         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52642         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52643         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52644         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52645         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52646         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52647         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52648         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
52649         left-adjust flag.
52650         * tests/test-snprintf-posix.h (test_function): Likewise.
52651         * tests/test-sprintf-posix.h (test_function): Likewise.
52652         * tests/test-vasprintf-posix.c (test_function): Likewise.
52653         * doc/posix-functions/fprintf.texi: Update.
52654         * doc/posix-functions/printf.texi: Update.
52655         * doc/posix-functions/snprintf.texi: Update.
52656         * doc/posix-functions/sprintf.texi: Update.
52657         * doc/posix-functions/vfprintf.texi: Update.
52658         * doc/posix-functions/vprintf.texi: Update.
52659         * doc/posix-functions/vsnprintf.texi: Update.
52660         * doc/posix-functions/vsprintf.texi: Update.
52661         Reported by Peter Fales <psfales@alcatel-lucent.com>.
52662
52663 2008-02-06  Bruno Haible  <bruno@clisp.org>
52664
52665         Fix bug introduced on 2008-01-26.
52666         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
52667
52668 2008-02-06  Bruno Haible  <bruno@clisp.org>
52669
52670         Fix bug introduced on 2007-06-10.
52671         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
52672         !NEED_PRINTF_FLAG_ZERO.
52673
52674 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
52675
52676         getloadavg: use libperfstat on AIX5
52677         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
52678
52679 2008-02-03  Bruno Haible  <bruno@clisp.org>
52680
52681         * lib/diffseq.h: Add comments about required #includes.
52682         Reported by Michael Biggs <gnulib@doubleplum.net>.
52683
52684 2008-02-01  Bruno Haible  <bruno@clisp.org>
52685
52686         * users.txt: Add gnuit.
52687
52688 2008-01-31  Bruno Haible  <bruno@clisp.org>
52689
52690         * lib/md4.c (set_uint32): Mark as inline.
52691         * lib/md5.c (set_uint32): Likewise.
52692         * lib/sha1.c (set_uint32): Likewise.
52693         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
52694         * m4/md5.m4 (gl_MD5): Likewise.
52695         * m4/sha1.m4 (gl_SHA1): Likewise.
52696
52697 2008-01-31  Jim Meyering  <meyering@redhat.com>
52698
52699         Use "sizeof VAR", rather than a literal "4".
52700         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
52701         * lib/md4.c (md4_read_ctx): Likewise.
52702         * lib/sha1.c (sha1_read_ctx): Likewise.
52703
52704 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52705
52706         * tests/test-sha1.c: New file, based on test-md5.c.
52707
52708         * modules/crypto/sha1-tests: New file.
52709
52710 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52711
52712         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
52713
52714 2008-01-31  Jim Meyering  <meyering@redhat.com>
52715
52716         Prefer "sizeof v" over the equivalent "4".
52717         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
52718         * lib/md5.c (set_uint32): Likewise.
52719         * lib/sha1.c (set_uint32): Likewise.
52720
52721 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52722
52723         * lib/sha1.c (set_uint32): Mark function as static.
52724
52725 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52726
52727         md2: clarify comments to say that alignment is not required.
52728         * lib/md2.h: Remove warning about alignment in comment.
52729         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
52730         never been required.
52731
52732 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52733
52734         md4: adapt alignment constraint fix from sha1.
52735         * lib/md4.c (set_uint32): New function, from sha1.c
52736         (md4_read_ctx): Use it.
52737         (md4_finish_ctx): Doc fix.
52738         * lib/md4.h: Doc fix.
52739
52740 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52741
52742         md5: adapt alignment constraint fix from sha1.
52743         * lib/md5.c (set_uint32): New function, from sha1.c
52744         (md5_read_ctx): Use it.
52745         (md5_finish_ctx): Doc fix.
52746         * lib/md5.h: Doc fix.
52747
52748 2008-01-30  Peter Palfrader  <weasel@debian.org>
52749
52750         sha1: remove the result buffer alignment constraint
52751         * lib/sha1.c (set_uint32): New function.
52752         (sha1_read_ctx): Rewrite to remove the result buffer alignment
52753         constraint.
52754         (sha1_finish_ctx): Remove comment warning about alignment constraint.
52755         * lib/sha1.h: Likewise.
52756
52757 2008-01-30  Andreas Schwab  <schwab@suse.de>
52758             Bruno Haible  <bruno@clisp.org>
52759
52760         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
52761         correct definition of LDBL_MIN_EXP.
52762
52763 2008-01-30  Karl Berry  <karl@gnu.org>
52764
52765         * config/srclist-update: try to preserve x bit on updates.
52766         * config/srclistvars.sh: update for karl.
52767
52768 2008-01-29  Jim Meyering  <meyering@redhat.com>
52769
52770         vasnprintf.c: Avoid warning about unused label
52771         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
52772         "overflow" label definition and associated code with the
52773         same cpp condition that guards the sole use of that label.
52774
52775 2008-01-26  Bruno Haible  <bruno@clisp.org>
52776
52777         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
52778         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
52779         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
52780         * lib/isnanl-nolibm.h (isnanl): Likewise.
52781         Reported by Paul Eggert <eggert@cs.ucla.edu>.
52782
52783 2008-01-26  Bruno Haible  <bruno@clisp.org>
52784
52785         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
52786         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
52787
52788 2008-01-26  Bruno Haible  <bruno@clisp.org>
52789
52790         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
52791         GCC >= 4.0 built-in.
52792         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
52793
52794 2008-01-26  Bruno Haible  <bruno@clisp.org>
52795
52796         Rename isnan, applicable to 'double' only, to isnand.
52797         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
52798         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
52799         (configure.ac): Update.
52800         (Include): Replace "isnan.h" with "isnand.h".
52801         * m4/isnand.m4: Renamed from m4/isnan.m4.
52802         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
52803         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
52804         instead of isnan.c.
52805         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
52806         instead of HAVE_ISNAN_IN_LIBC.
52807         (isnand): Renamed from isnan.
52808         * lib/isnand.c: New file.
52809         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
52810         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
52811         (Makefile.am): Update.
52812         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
52813         Include isnand.h instead of isnan.h.
52814         (main): Test isnand instead of isnan.
52815         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
52816         isnan-nolibm.
52817         * modules/frexp (Depends-on): Likewise.
52818         * modules/frexp-tests (Depends-on): Likewise.
52819         * modules/frexp-nolibm (Depends-on): Likewise.
52820         * modules/frexp-nolibm-tests (Depends-on): Likewise.
52821         * modules/isfinite (Depends-on): Likewise.
52822         * modules/round-tests (Depends-on): Likewise.
52823         * modules/signbit (Depends-on): Likewise.
52824         * modules/signbit-tests (Depends-on): Likewise.
52825         * modules/snprintf-posix (Depends-on): Likewise.
52826         * modules/sprintf-posix (Depends-on): Likewise.
52827         * modules/trunc-tests (Depends-on): Likewise.
52828         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52829         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52830         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52831         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52832         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52833         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52834         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52835         * modules/vasnprintf-posix (Depends-on): Likewise.
52836         * modules/vasprintf-posix (Depends-on): Likewise.
52837         * modules/vfprintf-posix (Depends-on): Likewise.
52838         * modules/vsnprintf-posix (Depends-on): Likewise.
52839         * modules/vsprintf-posix (Depends-on): Likewise.
52840         * lib/frexp.c: Include isnand.h instead of isnan.h.
52841         (ISNAN): Set to isnand instead of isnan.
52842         * lib/isfinite.c: Include isnand.h instead of isnan.h.
52843         (gl_isfinited): Use isnand instead of isnan.
52844         * lib/signbitd.c: Include isnand.h instead of isnan.h.
52845         (gl_signbitd): Use isnand instead of isnan.
52846         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
52847         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
52848         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
52849         (main): Use isnand instead of isnan.
52850         * tests/test-round1.c: Include isnand.h.
52851         (main): Use isnand instead of isnan.
52852         * tests/test-round2.c: Include isnand.h instead of isnan.h.
52853         (ISNAN): Set to isnand instead of isnan.
52854         * tests/test-trunc1.c: Include isnand.h.
52855         (main): Use isnand instead of isnan.
52856         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
52857         (equal): Use isnand instead of isnan.
52858         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
52859         isnand-nolibm.
52860         * NEWS: Mention the change.
52861
52862 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
52863             Bruno Haible  <bruno@clisp.org>
52864
52865         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
52866         the GCC builtins for signbits are present and set
52867         REPLACE_SIGNBIT_USING_GCC if so.
52868         * lib/math.in.h (signbit): Define using GCC builtins if
52869         REPLACE_SIGNBIT_USING_GCC is set.
52870         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
52871         REPLACE_SIGNBIT_USING_GCC.
52872         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
52873
52874 2008-01-25  Jim Meyering  <meyering@redhat.com>
52875
52876         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
52877         * lib/poll.c: Include <config.h>, not "config.h".
52878         * tests/test-getaddrinfo.c: Likewise.
52879
52880 2008-01-25  Simon Josefsson  <simon@josefsson.org>
52881
52882         * modules/sockets-tests: New file.
52883
52884 2008-01-24  Simon Josefsson  <simon@josefsson.org>
52885
52886         * modules/sockets: New module, can be used to call WSA_Startup and
52887         WSA_Cleanup when needed.
52888
52889         * lib/sockets.h, lib/sockets.c: New files.
52890
52891         * m4/sockets.m4: New file.
52892
52893         * tests/test-sockets.c: New file.
52894
52895 2008-01-19  Bruno Haible  <bruno@clisp.org>
52896
52897         * doc/posix-headers: Renamed from doc/headers.
52898         * doc/posix-functions: Renamed from doc/functions.
52899         * doc/gnulib.texi: Update.
52900
52901 2008-01-19  Bruno Haible  <bruno@clisp.org>
52902
52903         * doc/glibc-functions/strcasestr.texi: Include contents of
52904         doc/functions/strcasestr.texi, fixing the list of platforms.
52905         * doc/functions/strcasestr.texi: Remove file.
52906
52907 2008-01-19  Bruno Haible  <bruno@clisp.org>
52908
52909         * doc/glibc-functions/memmem.texi: Include contents of
52910         doc/functions/memmem.texi.
52911         * doc/functions/memmem.texi: Remove file.
52912
52913 2008-01-18  Bruno Haible  <bruno@clisp.org>
52914
52915         * doc/glibc-functions/*.texi: New files.
52916         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
52917         to use the new files.
52918
52919 2008-01-17  Bruno Haible  <bruno@clisp.org>
52920
52921         * tests/test-gethostname.c (main): Fix printf statement.
52922
52923 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52924
52925         * modules/gethostname-tests: New file.
52926
52927         * tests/test-gethostname.c: New file.
52928
52929 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52930
52931         * lib/gethostname.c: Include string.h unconditionally, strncpy is
52932         used by the UNAME case.  Reported by Bruno Haible
52933         <bruno@clisp.org>.
52934
52935 2008-01-17  Eric Blake  <ebb9@byu.net>
52936
52937         Convert c-strcasestr to be more efficient.
52938         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
52939         (Depends-on): Add c-strcase, remove malloca, strnlen.
52940         * tests/test-c-strcasestr.c (main): Enhance test.
52941         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
52942
52943 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
52944
52945         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
52946         Use it in creating po/Makevars.
52947
52948 2008-01-15  Simon Josefsson  <simon@josefsson.org>
52949
52950         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
52951         Applications that requires it should initialize libgcrypt
52952         manually.
52953
52954 2008-01-16  Simon Josefsson  <simon@josefsson.org>
52955
52956         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
52957
52958 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
52959
52960         Fix problem with getdate on mingw32 reported by Simon Josefsson
52961         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
52962         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
52963         tzname", when deciding whether to declare tzname.
52964         * lib/strftime.c (tzname): Likewise.
52965
52966 2008-01-15  Bruno Haible  <bruno@clisp.org>
52967
52968         Work around a MacOS X 10.5 bug in frexpl().
52969         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
52970         * doc/functions/frexpl.texi: Document the bug.
52971         Reported by Elias Pipping <pipping@gentoo.org>.
52972
52973 2008-01-14  Eric Blake  <ebb9@byu.net>
52974
52975         Touch up previous patch.
52976         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
52977         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
52978
52979         Convert strcasestr module to use Two-Way algorithm.
52980         * modules/strcasestr-simple: New module, based on the old
52981         strcasestr, but with Two-Way rather than KMP.
52982         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
52983         * lib/string.in.h (rpl_strcasestr): Declare.
52984         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
52985         performance.
52986         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
52987         * modules/string (Makefile.am): Support strcasestr.
52988         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
52989         * modules/strcasestr-tests (Depends-on): Check for alarm.
52990         * tests/test-strcasestr.c: Augment test.
52991         * lib/str-two-way.h: Clean up stray macro.
52992         * NEWS: Document new module.
52993         * MODULES.html.sh (string handling): Likewise.
52994         * doc/functions/strcasestr.texi: New file.
52995         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
52996         here, since it is not a POSIX function.
52997
52998 2008-01-14  Colin Watson  <cjwatson@debian.org>
52999             Bruno Haible  <bruno@clisp.org>
53000
53001         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
53002         works fine; if not, set REPLACE_STRSIGNAL.
53003         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
53004         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53005         REPLACE_STRSIGNAL.
53006         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
53007         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
53008         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
53009
53010 2008-01-14  Bruno Haible  <bruno@clisp.org>
53011
53012         * modules/strsignal (Include): Change to <string.h>.
53013
53014 2008-01-14  Colin Watson  <cjwatson@debian.org>
53015
53016         * modules/argp (Notice): Add a notice recommending to change
53017         XGETTEXT_OPTIONS.
53018         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
53019
53020 2008-01-13  Colin Watson  <cjwatson@debian.org>
53021
53022         * modules/strsignal-tests: New file.
53023         * tests/test-strsignal.c: New file.
53024
53025         * lib/strsignal.c: New file, from glibc with modifications.
53026         * lib/siglist.h: New file, from glibc with modifications.
53027         * lib/string.in.h (strsignal): New declaration.
53028         * m4/strsignal.m4: New file.
53029         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53030         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
53031         * modules/strsignal: New file.
53032         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
53033         HAVE_DECL_STRSIGNAL.
53034
53035 2008-01-13  Bruno Haible  <bruno@clisp.org>
53036
53037         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
53038         locale encoding is not ASCII. Needed for OpenBSD 4.0.
53039         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
53040         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
53041
53042 2008-01-13  Bruno Haible  <bruno@clisp.org>
53043
53044         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
53045         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
53046         * lib/argp.h (__attribute__): Likewise.
53047         * lib/c-stack.c (__attribute__): Likewise.
53048         * lib/error.h (__attribute__): Likewise.
53049         * lib/fts.c (__attribute__): Likewise.
53050         * lib/openat.h (__attribute__): Likewise.
53051         * lib/stdio.in.h (__attribute__): Likewise.
53052         * lib/string.in.h (__attribute__): Likewise.
53053         * lib/utimens.c (__attribute__): Likewise.
53054         * lib/vasnprintf.h (__attribute__): Likewise.
53055         * lib/xalloc.h (__attribute__): Likewise.
53056         * lib/xprintf.h (__attribute__): Likewise.
53057         * lib/xstrtol.h (__attribute__): Likewise.
53058         * lib/xvasprintf.h (__attribute__): Likewise.
53059
53060 2008-01-12  Bruno Haible  <bruno@clisp.org>
53061
53062         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
53063         * doc/glibc-headers/a.out.texi: New file.
53064         * doc/glibc-headers/aliases.texi: New file.
53065         * doc/glibc-headers/alloca.texi: New file.
53066         * doc/glibc-headers/ar.texi: New file.
53067         * doc/glibc-headers/argp.texi: New file.
53068         * doc/glibc-headers/argz.texi: New file.
53069         * doc/glibc-headers/byteswap.texi: New file.
53070         * doc/glibc-headers/crypt.texi: New file.
53071         * doc/glibc-headers/endian.texi: New file.
53072         * doc/glibc-headers/envz.texi: New file.
53073         * doc/glibc-headers/err.texi: New file.
53074         * doc/glibc-headers/error.texi: New file.
53075         * doc/glibc-headers/execinfo.texi: New file.
53076         * doc/glibc-headers/fpu_control.texi: New file.
53077         * doc/glibc-headers/fstab.texi: New file.
53078         * doc/glibc-headers/fts.texi: New file.
53079         * doc/glibc-headers/getopt.texi: New file.
53080         * doc/glibc-headers/ieee754.texi: New file.
53081         * doc/glibc-headers/ifaddrs.texi: New file.
53082         * doc/glibc-headers/libintl.texi: New file.
53083         * doc/glibc-headers/mcheck.texi: New file.
53084         * doc/glibc-headers/mntent.texi: New file.
53085         * doc/glibc-headers/obstack.texi: New file.
53086         * doc/glibc-headers/paths.texi: New file.
53087         * doc/glibc-headers/printf.texi: New file.
53088         * doc/glibc-headers/pty.texi: New file.
53089         * doc/glibc-headers/resolv.texi: New file.
53090         * doc/glibc-headers/shadow.texi: New file.
53091         * doc/glibc-headers/sysexits.texi: New file.
53092         * doc/glibc-headers/ttyent.texi: New file.
53093
53094 2008-01-12  Jim Meyering  <meyering@redhat.com>
53095
53096         announce-gen: emit Gnulib's git-based version string.
53097         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
53098         New option --gnulib-version=V, where V is expected to be
53099         the output of running git describe in the gnulib directory.
53100         (get_tool_versions): Request feedback on xdelta.  I suspect it's
53101         not useful, and plan to stop publishing an xdelta file with each
53102         coreutils release.
53103
53104         * build-aux/announce-gen: Also check for lzma-compressed files.
53105
53106 2008-01-11  Bruno Haible  <bruno@clisp.org>
53107
53108         * tests/test-memmem.c (main): Increase maximum allowed time.
53109         * tests/test-strstr.c (main): Likewise.
53110
53111 2008-01-11  Bruno Haible  <bruno@clisp.org>
53112
53113         * doc/functions/memmem.texi: Add more precisions about platforms.
53114         * doc/functions/strstr.texi: Likewise.
53115
53116 2008-01-10  Eric Blake  <ebb9@byu.net>
53117
53118         * m4/strstr.m4: Delete cruft from copy-n-paste.
53119         Reported by Bruno Haible.
53120
53121 2008-01-10  Bruno Haible  <bruno@clisp.org>
53122
53123         Make c-strstr rely on strstr.
53124         * lib/c-strstr.c: Don't include str-kmp.h.
53125         (c_strstr): Define in terms of strstr.
53126         * modules/c-strstr (Files): Remove lib/str-kmp.h.
53127         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
53128
53129 2008-01-10  Bruno Haible  <bruno@clisp.org>
53130
53131         * doc/gnulib.texi (String Functions in C Locale): New section.
53132         * doc/c-ctype.texi: New file.
53133         * doc/c-strcase.texi: New file.
53134         * doc/c-strcaseeq.texi: New file.
53135         * doc/c-strcasestr.texi: New file.
53136         * doc/c-strstr.texi: New file.
53137         * doc/c-strtod.texi: New file.
53138         * doc/c-strtold.texi: New file.
53139
53140 2008-01-10  Eric Blake  <ebb9@byu.net>
53141
53142         * lib/relocatable.h: Fix a comment.
53143
53144 2008-01-10  Eric Blake  <ebb9@byu.net>
53145
53146         Share two-way algorithm.
53147         * lib/str-two-way.h: New file, merged from...
53148         * lib/memmem.c: ...here...
53149         * lib/strstr.c: ...and here.
53150         * modules/memmem (Files): Use it.
53151         * modules/strstr (Files): Likewise.
53152
53153         Avoid quadratic strstr implementations.
53154         * lib/strstr.c: New file.
53155         * m4/strstr.m4: Likewise.
53156         * modules/strstr: Likewise.
53157         * modules/strstr-tests: Likewise.
53158         * tests/test-strstr.c: Likewise.
53159         * lib/string.in.h (rpl_strstr): Declare.
53160         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
53161         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
53162         * modules/string (Makefile.am): Likewise.
53163         * MODULES.html.sh (string handling): Mention new module.
53164         * doc/functions/strstr.texi (strstr): Document the bug.
53165
53166 2008-01-10  Bruno Haible  <bruno@clisp.org>
53167
53168         * lib/relocatable.h (relocate): State whether result is freshly
53169         allocated or not.
53170         * lib/relocatable.c (relocate): Return a freshly allocated string
53171         instead of a pointer to a privately held string.
53172         Reported by Sylvain Beucler <beuc@gnu.org>.
53173
53174 2008-01-10  Colin Watson  <cjwatson@debian.org>
53175
53176         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
53177         s/S_ISNLK/S_ISLNK/.
53178
53179 2008-01-09  Bruno Haible  <bruno@clisp.org>
53180
53181         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
53182         and other files.
53183         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
53184         if it's only a guess.
53185         * modules/memmem: Simplify by depending on memmem-simple.
53186
53187 2008-01-09  Bruno Haible  <bruno@clisp.org>
53188
53189         Work around OpenBSD 4.0 tdelete() bug.
53190         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
53191         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
53192         macros and don't redefine the enum values.
53193         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
53194         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
53195         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
53196
53197 2008-01-09  Bruno Haible  <bruno@clisp.org>
53198
53199         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
53200         (main): Don't perform the tests if setlocale did not install a UTF-8
53201         locale. Needed on OpenBSD 4.0.
53202         * modules/wcwidth-tests (Depends-on): Add localcharset.
53203
53204 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53205
53206         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
53207         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
53208         * NEWS: announce this.
53209         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
53210
53211 2008-01-09  Simon Josefsson  <simon@josefsson.org>
53212         and Eric Blake  <ebb9@byu.net>
53213
53214         Add memmem-simple module.
53215         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
53216         (gl_FUNC_MEMMEM): Separate performance from presence checks.
53217         * modules/memmem-simple: New file.
53218         * modules/memmem (Description): Tweak.
53219         * MODULES.html.sh (string handling): Mention new module.
53220         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
53221         addressed by memmem-simple.
53222         * NEWS: Document the difference.
53223
53224 2008-01-09  Eric Blake  <ebb9@byu.net>
53225
53226         Give gcc some memmem optimization hints.
53227         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
53228         (strcasestr): Declare as pure.
53229         * modules/memmem (Maintainer): Claim my implementation.
53230
53231 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53232
53233         Support AIX 6.1 and higher.
53234         * build-aux/config.libpath: Likewise.
53235         * build-aux/config.rpath: Likewise.
53236
53237 2008-01-08  Jim Meyering  <meyering@redhat.com>
53238             Bruno Haible  <bruno@clisp.org>
53239
53240         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
53241         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
53242         Reported by Peter Fales in
53243         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
53244
53245 2008-01-08  Bruno Haible  <bruno@clisp.org>
53246
53247         * modules/unictype/category-of (Depends-on): Add
53248         unictype/category-none.
53249         * modules/unictype/category-and-tests (Depends-on): Add
53250         unictype/category-{L,N,Lu,Nd}.
53251         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
53252         * modules/unictype/category-or-tests (Depends-on): Add
53253         unictype/category-{L,N}.
53254         * modules/unictype/category-name-tests (Depends-on): Add
53255         unictype/category-{Z,Nl}.
53256         Reported by Simon Josefsson.
53257
53258 2008-01-08  Bruno Haible  <bruno@clisp.org>
53259
53260         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
53261         convention better.
53262         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
53263         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
53264         Reported by Peter Miller <millerp@canb.auug.org.au>.
53265
53266 2008-01-08  Eric Blake  <ebb9@byu.net>
53267
53268         Rewrite memmem to guarantee linear complexity without malloc.
53269         * lib/memmem.c (memmem): Use Two-Way rather than
53270         Knuth-Morris-Pratt, to allow O(1) space usage.
53271         (critical_factorization, two_way_short_needle)
53272         (two_way_long_needle): New functions.
53273         (knuth_morris_pratt): Delete.
53274         * modules/memmem (Depends-on): No longer need malloca or stdbool.
53275         Add stdint.
53276         * tests/test-memmem.c (main): Add tests for periodic needle and
53277         sublinear performance.
53278         * doc/functions/memmem.texi (memmem): Document other deficiencies
53279         in cygwin and older glibc.
53280
53281 2008-01-08  Bruno Haible  <bruno@clisp.org>
53282
53283         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
53284         augmentation.
53285
53286 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
53287
53288         Add a configure time option: --disable-acl.
53289         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
53290         AC_ARG_ENABLE(acl).
53291
53292 2008-01-06  Simon Josefsson  <simon@josefsson.org>
53293
53294         * tests/test-localename.c: Don't include obsolete "setenv.h".
53295
53296         * modules/localename-tests (Depends-on): Need unsetenv.
53297
53298 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53299
53300         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
53301
53302 2008-01-06  Colin Watson  <cjwatson@debian.org>
53303
53304         * users.txt: Add man-db.
53305
53306 2008-01-07  Bruno Haible  <bruno@clisp.org>
53307
53308         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
53309         previous section name.
53310
53311 2008-01-07  Bruno Haible  <bruno@clisp.org>
53312
53313         * lib/progname.c (set_program_name): Don't strip off a leading
53314         "lt-" prefix outside a .libs directory.
53315         Suggested by Paul Eggert.
53316
53317 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
53318             Bruno Haible  <bruno@clisp.org>
53319
53320         Improve memory cleanup in 'relocatable' module.
53321         * lib/relocatable.h (compute_curr_prefix): Change return type to
53322         'char *'.
53323         * lib/relocatable.c (compute_curr_prefix): Change return type to
53324         'char *'. Free curr_installdir after use.
53325         (relocate): Free curr_prefix_better after use.
53326         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
53327
53328 2008-01-01  Bruno Haible  <bruno@clisp.org>
53329
53330         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
53331         failure on older glibc systems.
53332         Reported by Peter Fales <psfales@alcatel-lucent.com>.
53333
53334 2008-01-05  Eric Blake  <ebb9@byu.net>
53335
53336         Avoid quadratic system memmem.
53337         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
53338         Reported by Ralf Wildenhues.
53339
53340         Fix memmem test for mingw.
53341         * modules/memmem-tests (configure.ac): Check for alarm.
53342         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
53343         it.
53344         * doc/functions/memmem.texi: New file.
53345         * doc/gnulib.texi (Function Substitutes): Add memmem.
53346         Reported by Bruno Haible.
53347
53348 2008-01-04  Bruno Haible  <bruno@clisp.org>
53349
53350         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
53351         Require gl_HEADER_STRINGS_H_DEFAULTS, not
53352         gl_HEADER_STRING_H_DEFAULTS.
53353
53354 2008-01-04  Eric Blake  <ebb9@byu.net>
53355
53356         Shorten duration of memmem test.
53357         * tests/test-memmem.c (main): Use alarm to declare failure if test
53358         is taking too long.
53359         Reported by Ralf Wildenhues.
53360
53361 2007-12-21  Simon Josefsson  <simon@josefsson.org>
53362
53363         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
53364         string, needed by strerror.
53365
53366 2008-01-03  Colin Watson  <cjwatson@debian.org>
53367             Bruno Haible  <bruno@clisp.org>
53368
53369         * doc/gnulib-tool.texi (Localization): New section.
53370
53371 2008-01-02  Bruno Haible  <bruno@clisp.org>
53372
53373         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
53374         variables to 'unsigned char *' type.
53375         Reported by Paul Eggert.
53376
53377 2008-01-02  Jim Meyering  <jim@meyering.net>
53378
53379         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
53380
53381 2007-12-31  Jim Meyering  <jim@meyering.net>
53382
53383         Avoid use of private FTS type name.
53384         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
53385
53386 2007-12-30  Karl Berry  <karl@gnu.org>
53387
53388         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
53389         work around defect in Texinfo and/or the standalone Info browser.
53390
53391 2007-12-30  Bruno Haible  <bruno@clisp.org>
53392
53393         Unify 5 copies of the KMP code.
53394         * lib/str-kmp.h: New file.
53395         * lib/c-strcasestr.c: Include str-kmp.h.
53396         (knuth_morris_pratt): Remove function.
53397         (c_strcasestr): Update.
53398         * lib/c-strstr.c: Include str-kmp.h.
53399         (knuth_morris_pratt): Remove function.
53400         (c_strcasestr): Update.
53401         * lib/mbscasestr.c: Include str-kmp.h.
53402         (knuth_morris_pratt_unibyte): Remove function.
53403         * lib/mbsstr.c: Include str-kmp.h.
53404         (knuth_morris_pratt_unibyte): Remove function.
53405         * lib/strcasestr.c: Include str-kmp.h.
53406         (knuth_morris_pratt): Remove function.
53407         (strcasestr): Update.
53408         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
53409         * modules/c-strstr (Files): Likewise.
53410         * modules/mbscasestr (Files): Likewise.
53411         * modules/mbsstr (Files): Likewise.
53412         * modules/strcasestr (Files): Likewise.
53413         Suggested by Paul Eggert.
53414
53415 2007-12-30  Bruno Haible  <bruno@clisp.org>
53416
53417         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
53418         defined.
53419
53420 2007-12-30  Bruno Haible  <bruno@clisp.org>
53421
53422         * lib/xmalloca.h: Include xalloc.h.
53423         (xnmalloca): New macro.
53424
53425 2007-12-30  Bruno Haible  <bruno@clisp.org>
53426
53427         * lib/malloca.h (nmalloca): New macro.
53428         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
53429         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
53430         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
53431         knuth_morris_pratt_multibyte): Likewise.
53432         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
53433         knuth_morris_pratt_multibyte): Likewise.
53434         * lib/memmem.c (knuth_morris_pratt): Likewise.
53435         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
53436
53437 2007-12-25  Bruno Haible  <bruno@clisp.org>
53438
53439         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
53440         * lib/glob.c: Don't include openat.h.
53441         (link_exists2_p): Add back the code that deals with the
53442         !GLOB_ALTDIRFUNC case.
53443         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
53444         let it do the filename concatenation.
53445         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
53446         * modules/glob (Depends-on): Remove openat.
53447
53448 2007-12-31  Bruno Haible  <bruno@clisp.org>
53449
53450         * modules/dirfd (License): Change to LGPLv2+.
53451         Approved by Jim Meyering.
53452
53453 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
53454
53455         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
53456         when multiplying M by sizeof (size_t).
53457
53458 2007-12-10  Martin Lambers  <marlam@marlam.de>
53459
53460         Override getpagesize on mingw.
53461         * lib/getpagesize.c: New file.
53462         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
53463         * modules/getpagesize (Files): Add lib/getpagesize.c.
53464         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
53465         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53466         REPLACE_GETPAGESIZE.
53467         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
53468
53469 2007-12-25  Bruno Haible  <bruno@clisp.org>
53470
53471         * modules/localcharset (Notice): New field.
53472         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
53473         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
53474
53475 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
53476             Bruno Haible  <bruno@clisp.org>
53477
53478         Avoid using the syntax symbol() in formatted documentation.
53479         * MODULES.html.sh (func_module): When replacing symbol() with a
53480         hyperlink, remove the parentheses. Show an error if some remain.
53481         Recognize and render the '...' syntax.
53482         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
53483         Rework. Add paragraph about GCC's inlining.
53484         * doc/alloca.texi: Likewise.
53485         * doc/error.texi: Remove parentheses from symbol reference.
53486         * doc/gnulib-intro.texi: Likewise.
53487         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
53488         * modules/fnmatch (Description): Reword to say "the ... function".
53489         * modules/full-read (Description): Likewise.
53490         * modules/full-write (Description): Likewise.
53491         * modules/safe-read (Description): Likewise.
53492         * modules/safe-write (Description): Likewise.
53493         * modules/strchrnul (Description): Likewise.
53494         * modules/trim (Description): Likewise.
53495         * modules/error (Description): Remove parentheses from symbol
53496         references.
53497         * modules/verror (Description): Likewise.
53498         Reported by Karl Berry.
53499
53500 2007-12-25  Bruno Haible  <bruno@clisp.org>
53501
53502         Fixup after 2007-10-16 commit.
53503         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
53504
53505 2007-12-24  Bruno Haible  <bruno@clisp.org>
53506
53507         Make --enable-relocatable work with DESTDIR.
53508         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
53509         to compute installdir from destprog.
53510         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
53511         also set the RELOC_DESTDIR variable.
53512         Reported by Левашев Иван <octagram@bluebottle.com>.
53513
53514 2007-12-24  Bruno Haible  <bruno@clisp.org>
53515
53516         Fix link error due to xalloc_die().
53517         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
53518         of xreadlink.
53519         * lib/relocwrapper.c: Update comments.
53520         * build-aux/install-reloc: Remove xreadlink.c from file list.
53521         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
53522         xreadlink.c.
53523         Reported by Левашев Иван <octagram@bluebottle.com>.
53524
53525 2007-12-24  Bruno Haible  <bruno@clisp.org>
53526
53527         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
53528         * lib/setenv.h: Remove file.
53529         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
53530         lib/setenv.h.
53531         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
53532         (Depends-on): Add stdlib.
53533         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
53534         gl_FUNC_UNSETENV.
53535         (Include): Replace setenv.h with <stdlib.h>.
53536         * modules/unsetenv: New file.
53537         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
53538         * lib/unsetenv.c: Include <stdlib.h> first.
53539         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
53540         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
53541         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
53542         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
53543         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
53544         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
53545         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
53546         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
53547         * doc/functions/unsetenv.texi: Update.
53548         * modules/xsetenv (Depends-on): Add unsetenv.
53549         * modules/getdate (Depends-on): Likewise.
53550         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
53551         * lib/xsetenv.c: Don't include setenv.h.
53552         * lib/getdate.y: Likewise.
53553         * lib/relocwrapper.c: Likewise.
53554         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
53555         (Depends-on): Add stdlib.
53556         * NEWS: Mention the changes.
53557         Reported by Левашев Иван <octagram@bluebottle.com>.
53558
53559 2007-12-23  Bruno Haible  <bruno@clisp.org>
53560
53561         * lib/memmem.c (memmem): Use lowercase variable names. Tab
53562         indentation.
53563
53564 2007-12-23  Bruno Haible  <bruno@clisp.org>
53565
53566         * lib/c-strcasestr.c: Add more comments.
53567         * lib/c-strstr.c: Likewise.
53568         * lib/mbscasestr.c: Likewise.
53569         * lib/mbsstr.c: Likewise.
53570         * lib/strcasestr.c: Likewise.
53571         * lib/memmem.c: Likewise.
53572
53573 2007-12-23  Bruno Haible  <bruno@clisp.org>
53574
53575         * tests/test-memmem.c: Include <string.h> first.
53576
53577 2007-12-22  Bruno Haible  <bruno@clisp.org>
53578
53579         * gnulib-tool (func_create_testdir): Change $auxdir while generating
53580         the contents of $testsbase.
53581         Reported by Ralf Wildenhues.
53582
53583 2007-12-22  Bruno Haible  <bruno@clisp.org>
53584
53585         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
53586         two variables local_ldadd_before, local_ldadd_last.
53587
53588 2007-12-20  Eric Blake  <ebb9@byu.net>
53589
53590         Work around circular library issue when cross-compiling.
53591         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
53592         that progname.o does not need to pull in rpl_memcmp.
53593
53594 2007-12-19  Eric Blake  <ebb9@byu.net>
53595
53596         Fix memmem to avoid O(n^2) worst-case complexity.
53597         * lib/memmem.c (knuth_morris_pratt): New function.
53598         (memmem): Use it if first few naive iterations fail.
53599         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
53600         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
53601         * modules/memchr (License): Likewise.
53602         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
53603         malloca.
53604         * tests/test-memmem.c: Rewrite, borrowing ideas from
53605         test-mbsstr1.c; the old version wouldn't even compile!
53606         * modules/memmem-tests: New file.
53607         * lib/string.in.h (rpl_memmem): Add declaration.
53608         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
53609         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
53610         REPLACE_MEMMEM.
53611
53612 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
53613
53614         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
53615         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
53616         before any system include files, and undef after them all.  This
53617         should fix a problem on VMS reported by John E. Malmberg in
53618         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
53619
53620 2007-12-17  Eric Blake  <ebb9@byu.net>
53621
53622         Revert addition of verify, for BSD/OS.
53623         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
53624         can't handle large files, for the sake of obsolete platforms.
53625         * modules/fseeko (Depends-on): Remove verify.
53626         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
53627         * doc/functions/ftello.texi (ftello): Likewise.
53628         * doc/functions/fgetpos.texi (fgetpos): Likewise.
53629         Reported by Larry Jones.
53630
53631 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
53632
53633         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
53634         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
53635
53636 2007-12-17  Jim Meyering  <meyering@redhat.com>
53637
53638         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
53639         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
53640         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
53641         * modules/getcwd (Depends-on): Add openat.
53642         Reported by Petr Salinger.
53643
53644 2007-12-17  Bruno Haible  <bruno@clisp.org>
53645
53646         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
53647         avoid a segmentation fault of the configure test on x86_64 systems.
53648
53649 2007-12-15  Jim Meyering  <meyering@redhat.com>
53650
53651         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
53652
53653 2007-12-13  Eric Blake  <ebb9@byu.net>
53654
53655         Another fseek test.
53656         * tests/test-fseek.c (main): Also test ungetc handling.
53657         * tests/test-fseeko.c (main): Likewise.
53658         * modules/fseeko (Depends-on): Add verify.
53659         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
53660         large.
53661         Reported by Larry Jones.
53662
53663         Fix fseeko on mingw.
53664         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
53665         seek.
53666
53667         Beef up fseek tests.
53668         * tests/test-fseek.c (main): Also test eof handling.
53669         * tests/test-fseeko.c (main): Likewise.
53670         Reported by Larry Jones.
53671
53672 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
53673
53674         Fix fseeko on BSD-based platforms.
53675         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
53676         successful seek.
53677
53678 2007-12-12  Eric Blake  <ebb9@byu.net>
53679
53680         Allow circular dependency of separate libtests.a
53681         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
53682         when use_libtests.
53683
53684 2007-12-11  Eric Blake  <ebb9@byu.net>
53685
53686         Fix bug with -0.0L in previous patch.
53687         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
53688         * tests/test-isnan.c (main): Also test on zeroes.
53689         * tests/test-isnanf.c (main): Likewise.
53690         * tests/test-isnanl.h (main): Likewise.
53691
53692         Detect pseudo-denormals on x86 even when cross-compiling.
53693         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
53694         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
53695         invalid bit patterns that happen to satisfy ==.
53696
53697         Avoid link failures with separate libtests.a.
53698         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
53699         last, to satisfy circular dependencies.
53700
53701 2007-12-11  Eric Blake  <ebb9@byu.net>
53702         and Bruno Haible  <bruno@clisp.org>
53703
53704         Fix OpenBSD 4.0 <float.h> handling of long double.
53705         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
53706         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
53707         * doc/headers/float.texi (float.h): Document OpenBSD bug.
53708
53709 2007-12-11  Jim Meyering  <meyering@redhat.com>
53710
53711         * users.txt: Add libvirt.
53712
53713         Support versions of autoconf prior to 2.59c.
53714         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
53715         if it is not already defined.
53716
53717 2007-12-09  Bruno Haible  <bruno@clisp.org>
53718
53719         Let 'gnulib-tool --import' collect sources needed for the tests in
53720         tests/ rather than in lib/.
53721         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
53722         argument. If true, add rules to generate libtests.a, and put libtests.a
53723         into $(LDADD). Consider source files in subdirectories and set
53724         uses_subdirs.
53725         (func_emit_initmacro_start, func_emit_initmacro_end,
53726         func_emit_initmacro_done): Pass all arguments explicitly.
53727         (func_import): Determine two module lists main_modules,
53728         testsrelated_modules. Determine use_libtests. Determine two variables
53729         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
53730         instead of just sed_transform_lib_file. Determine two variables
53731         main_files and testsrelated_files. Compute 'files' as the union of
53732         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
53733         func_add_or_update. In the generated gnulib-comp.m4, collect the
53734         object files for tests/ in different variables than those for lib/.
53735         Substitute LIBTESTS_LIBDEPS.
53736         (func_create_testdir): Combine the uses_subdirs results from
53737         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
53738
53739 2007-12-09  Bruno Haible  <bruno@clisp.org>
53740
53741         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
53742         the build-aux directory.
53743
53744 2007-12-09  Bruno Haible  <bruno@clisp.org>
53745
53746         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
53747         introduced on 2006-09-09.
53748
53749 2007-12-07  Jim Meyering  <meyering@redhat.com>
53750
53751         Let these macros work also with autoconf-2.59.
53752         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
53753         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
53754         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
53755
53756 2007-12-06  Jim Meyering  <meyering@redhat.com>
53757
53758         Avoid a configure-time syntax error in gl_FUNC_ACL.
53759         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
53760         function in each branch, before testing the cache variable.
53761
53762 2007-12-04  Eric Blake  <ebb9@byu.net>
53763
53764         Make scripts executable.
53765         * build-aux/config.guess: Add execute permissions.
53766         * build-aux/config.sub: Likewise.
53767         * build-aux/gendocs.sh: Likewise.
53768
53769         Fix frexp on mingw.
53770         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
53771         cross-compiling.
53772         * doc/functions/frexp.texi (frexp): Document the bug.
53773
53774         Make cygwin fseeko check more reliable.
53775         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
53776         version numbers, rather than unrelated feature check.
53777         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
53778         * doc/functions/ftello.texi (ftello): Likewise.
53779         Reported by Bruno Haible.
53780
53781         * m4/strerror.m4: Bump version number.
53782
53783 2007-12-03  Bruno Haible  <bruno@clisp.org>
53784
53785         * doc/functions/mprotect.texi: Mention the mingw problem.
53786
53787 2007-12-03  Eric Blake  <ebb9@byu.net>
53788
53789         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
53790         REPLACE_STRERROR is initialized before this macro.
53791
53792 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
53793
53794         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
53795         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
53796         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
53797         put -lsec in even for programs other than 'ls'.  This fixes a problem
53798         for gettext reported by Bruno Haible in
53799         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
53800         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
53801         Add support for Solaris 10.  This isn't efficient, but should get the
53802         job done for now.
53803
53804 2007-12-03  James Youngman  <jay@gnu.org>
53805
53806         * doc/regexprops-generic.texi: change "an close-group" to "a
53807         close-group" and "illegal" to "not allowed".
53808
53809 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53810
53811         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
53812         pr_byname.h. Needed for the rare case when the maintainer has done
53813         "make maintainer-clean" in the source directory and then attempts a
53814         build outside the source directory.
53815         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
53816         scripts_byname.h.
53817
53818 2007-12-02  Martin Lambers <marlam@marlam.de>
53819             Bruno Haible  <bruno@clisp.org>
53820
53821         * lib/getpagesize.h: Remove file.
53822         * lib/unistd.in.h: Include declaration of getpagesize here.
53823         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
53824         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
53825         HAVE_SYS_PARAM_H.
53826         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
53827         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53828         * modules/getpagesize (Files): Remove lib/getpagesize.h.
53829         (Depends-on): Add unistd.
53830         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53831         (Include): Use <unistd.h> instead of getpagesize.h.
53832         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
53833         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53834         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
53835         gl_GETPAGESIZE invocation, already handled by module dependency.
53836         * lib/pagealign_alloc.c: Don't include getpagesize.h.
53837
53838 2007-12-02  Bruno Haible  <bruno@clisp.org>
53839
53840         * modules/strings-tests: New file.
53841         * tests/test-strings.c: New file.
53842
53843         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
53844         * lib/strings.in.h: New file.
53845         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
53846         * m4/strings_h.m4: New file.
53847         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
53848         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
53849         * modules/strings: New file.
53850         * modules/string (Makefile.am): Update.
53851         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
53852         Reported by Karl Berry.
53853
53854 2007-12-01  Eric Blake  <ebb9@byu.net>
53855
53856         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
53857         accomodate fix in cygwin 1.5.25.
53858
53859 2007-12-01  Jim Meyering  <meyering@redhat.com>
53860
53861         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
53862         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
53863         that would inhibit utf8-optimization of a regexp containing line-
53864         or buffer-anchors, e.g., `^', `$'.
53865
53866 2007-11-30  Bruno Haible  <bruno@clisp.org>
53867
53868         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
53869         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
53870         glthread_recursive_lock_init.
53871         * lib/lock.c (glthread_recursive_lock_init)
53872         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
53873         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53874
53875 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
53876
53877         New function qset_acl, like set_acl but with syscall semantics.
53878         * lib/acl.h (qset_acl): New decl.
53879         * lib/acl.c (qset_acl): New function.
53880         (set_acl): Use new function.  Use more-consistent diagnostics.
53881
53882 2007-11-28  Jim Meyering  <meyering@redhat.com>
53883
53884         * modules/physmem (License): Change from GPL to LGPLv2+.
53885
53886 2007-11-26  Bruno Haible  <bruno@clisp.org>
53887
53888         * lib/vasnprintf.c (decode_long_double): Don't abort if the
53889         'long double' type has excess precision.
53890         Reported by Jim Meyering in
53891         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
53892
53893 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53894
53895         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
53896         Sync from <http://gnu.org/licenses>.
53897         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
53898         with license text from same location.
53899         * doc/maintain.texi, doc/standards.texi:  Sync from
53900         <http://savannah.gnu.org/projects/gnustandards>.
53901
53902 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
53903         and Jim Meyering  <meyering@redhat.com>
53904
53905         Adjust getdate' grammar to accept a slightly more regular language.
53906         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
53907         Before, the former was rejected.
53908         * lib/getdate.y (digits_to_date_time): New function, factored
53909         out of ...
53910         (number): ...here.  Just call digits_to_date_time.
53911         (hybrid): New non-terminal to handle an <unsigned number,
53912         signed relative offset> sequence consistently.
53913
53914 2007-11-18  Jim Meyering  <meyering@redhat.com>
53915
53916         Pull my changes from coreutils:
53917         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
53918         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
53919         use of $gnulib_tool_option_extras, so that it's separated from the
53920         preceding argument.
53921
53922         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
53923         * build-aux/bootstrap (cp_mark_as_generated): Create any required
53924         parent destination directories before copying a file into place.
53925
53926 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
53927
53928         bootstrap: work also with 4-argument variant of AC_INIT
53929         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
53930
53931 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53932
53933         Port test-getaddrinfo to Solaris.
53934         Problem reported by Bruno Haible in
53935         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
53936         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
53937         explanation of setting 'hints'.
53938         Don't reject an implementation merely because it returns EAI_SERVICE.
53939         (EAI_SERVICE): Define to 0 if not defined.
53940
53941 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
53942
53943         The license of gnu-make and posix-shell is now "GPLed build tool".
53944         * modules/gnu-make (License): Likewise.
53945         * modules/posix-shell (License): Likewise.
53946
53947         New module posix-shell, for determining a POSIX shell
53948         or perhaps something that is close enough to a POSIX shell.
53949         * m4/posix-shell.m4: New file.
53950         * modules/posix-shell: New file.
53951
53952         * MODULES.html.sh: Mention new module.
53953
53954         New module gnu-make, for determining whether we're using GNU Make.
53955         * m4/gnu-make.m4: New file.
53956         * modules/gnu-make: New file.
53957         * MODULES.html.sh: Mention new module.
53958
53959 2007-11-14  Jim Meyering  <meyering@redhat.com>
53960
53961         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
53962         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
53963         use this macro to create a function _definition_.
53964         Remove useless "#undef ARGMATCH_DIE".
53965
53966 2007-11-14  Bruno Haible  <bruno@clisp.org>
53967
53968         * lib/config.charset: Update for OpenBSD 4.1.
53969         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
53970
53971 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
53972
53973         Document 64-bit #if problems in stdint.texi.
53974         * doc/headers/stdint.texi (stdint.h): Mention problems with
53975         64-bit-#if, and how to work around them.
53976
53977         Don't insist on 'long long int' support in the preprocessor.  It
53978         breaks too many things.  For example, PRIdMAX still uses a 'long
53979         long int' format with the latest Sun compiler, even though
53980         HAVE_LONG_LONG_INT isn't defined due to that compiler's
53981         preprocessor problem.  This causes the latest coreutils to dump
53982         core on Solaris 10 sparc with the Sun C compiler.
53983         Instead, fix the 2007-10-16 problem in a different way, by evaluating
53984         the troublesome expressions at configure-time, not at #if-time.
53985         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
53986         preprocessor.
53987         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
53988         compile-time C checks, done at 'configure'-time.
53989         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
53990         * modules/inttypes (Makefile): Substitute the new symbols that
53991         gl_INTTYPES_H now generates.
53992         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
53993
53994 2007-11-12  Bruno Haible  <bruno@clisp.org>
53995
53996         Tests for Unicode character classification functions.
53997
53998         * modules/unictype/bidicategory-byname-tests: New file.
53999         * modules/unictype/bidicategory-name-tests: New file.
54000         * modules/unictype/bidicategory-of-tests: New file.
54001         * modules/unictype/bidicategory-test-tests: New file.
54002         * modules/unictype/block-list-tests: New file.
54003         * modules/unictype/block-of-tests: New file.
54004         * modules/unictype/block-test-tests: New file.
54005         * modules/unictype/category-C-tests: New file.
54006         * modules/unictype/category-Cc-tests: New file.
54007         * modules/unictype/category-Cf-tests: New file.
54008         * modules/unictype/category-Cn-tests: New file.
54009         * modules/unictype/category-Co-tests: New file.
54010         * modules/unictype/category-Cs-tests: New file.
54011         * modules/unictype/category-L-tests: New file.
54012         * modules/unictype/category-Ll-tests: New file.
54013         * modules/unictype/category-Lm-tests: New file.
54014         * modules/unictype/category-Lo-tests: New file.
54015         * modules/unictype/category-Lt-tests: New file.
54016         * modules/unictype/category-Lu-tests: New file.
54017         * modules/unictype/category-M-tests: New file.
54018         * modules/unictype/category-Mc-tests: New file.
54019         * modules/unictype/category-Me-tests: New file.
54020         * modules/unictype/category-Mn-tests: New file.
54021         * modules/unictype/category-N-tests: New file.
54022         * modules/unictype/category-Nd-tests: New file.
54023         * modules/unictype/category-Nl-tests: New file.
54024         * modules/unictype/category-No-tests: New file.
54025         * modules/unictype/category-P-tests: New file.
54026         * modules/unictype/category-Pc-tests: New file.
54027         * modules/unictype/category-Pd-tests: New file.
54028         * modules/unictype/category-Pe-tests: New file.
54029         * modules/unictype/category-Pf-tests: New file.
54030         * modules/unictype/category-Pi-tests: New file.
54031         * modules/unictype/category-Po-tests: New file.
54032         * modules/unictype/category-Ps-tests: New file.
54033         * modules/unictype/category-S-tests: New file.
54034         * modules/unictype/category-Sc-tests: New file.
54035         * modules/unictype/category-Sk-tests: New file.
54036         * modules/unictype/category-Sm-tests: New file.
54037         * modules/unictype/category-So-tests: New file.
54038         * modules/unictype/category-Z-tests: New file.
54039         * modules/unictype/category-Zl-tests: New file.
54040         * modules/unictype/category-Zp-tests: New file.
54041         * modules/unictype/category-Zs-tests: New file.
54042         * modules/unictype/category-and-not-tests: New file.
54043         * modules/unictype/category-and-tests: New file.
54044         * modules/unictype/category-byname-tests: New file.
54045         * modules/unictype/category-name-tests: New file.
54046         * modules/unictype/category-none-tests: New file.
54047         * modules/unictype/category-of-tests: New file.
54048         * modules/unictype/category-or-tests: New file.
54049         * modules/unictype/category-test-withtable-tests: New file.
54050         * modules/unictype/combining-class-tests: New file.
54051         * modules/unictype/ctype-alnum-tests: New file.
54052         * modules/unictype/ctype-alpha-tests: New file.
54053         * modules/unictype/ctype-blank-tests: New file.
54054         * modules/unictype/ctype-cntrl-tests: New file.
54055         * modules/unictype/ctype-digit-tests: New file.
54056         * modules/unictype/ctype-graph-tests: New file.
54057         * modules/unictype/ctype-lower-tests: New file.
54058         * modules/unictype/ctype-print-tests: New file.
54059         * modules/unictype/ctype-punct-tests: New file.
54060         * modules/unictype/ctype-space-tests: New file.
54061         * modules/unictype/ctype-upper-tests: New file.
54062         * modules/unictype/ctype-xdigit-tests: New file.
54063         * modules/unictype/decimal-digit-tests: New file.
54064         * modules/unictype/digit-tests: New file.
54065         * modules/unictype/mirror-tests: New file.
54066         * modules/unictype/numeric-tests: New file.
54067         * modules/unictype/property-alphabetic-tests: New file.
54068         * modules/unictype/property-ascii-hex-digit-tests: New file.
54069         * modules/unictype/property-bidi-arabic-digit-tests: New file.
54070         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
54071         * modules/unictype/property-bidi-block-separator-tests: New file.
54072         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
54073         * modules/unictype/property-bidi-common-separator-tests: New file.
54074         * modules/unictype/property-bidi-control-tests: New file.
54075         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
54076         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
54077         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
54078         * modules/unictype/property-bidi-european-digit-tests: New file.
54079         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
54080         * modules/unictype/property-bidi-left-to-right-tests: New file.
54081         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
54082         * modules/unictype/property-bidi-other-neutral-tests: New file.
54083         * modules/unictype/property-bidi-pdf-tests: New file.
54084         * modules/unictype/property-bidi-segment-separator-tests: New file.
54085         * modules/unictype/property-bidi-whitespace-tests: New file.
54086         * modules/unictype/property-byname-tests: New file.
54087         * modules/unictype/property-combining-tests: New file.
54088         * modules/unictype/property-composite-tests: New file.
54089         * modules/unictype/property-currency-symbol-tests: New file.
54090         * modules/unictype/property-dash-tests: New file.
54091         * modules/unictype/property-decimal-digit-tests: New file.
54092         * modules/unictype/property-default-ignorable-code-point-tests: New file.
54093         * modules/unictype/property-deprecated-tests: New file.
54094         * modules/unictype/property-diacritic-tests: New file.
54095         * modules/unictype/property-extender-tests: New file.
54096         * modules/unictype/property-format-control-tests: New file.
54097         * modules/unictype/property-grapheme-base-tests: New file.
54098         * modules/unictype/property-grapheme-extend-tests: New file.
54099         * modules/unictype/property-grapheme-link-tests: New file.
54100         * modules/unictype/property-hex-digit-tests: New file.
54101         * modules/unictype/property-hyphen-tests: New file.
54102         * modules/unictype/property-id-continue-tests: New file.
54103         * modules/unictype/property-id-start-tests: New file.
54104         * modules/unictype/property-ideographic-tests: New file.
54105         * modules/unictype/property-ids-binary-operator-tests: New file.
54106         * modules/unictype/property-ids-trinary-operator-tests: New file.
54107         * modules/unictype/property-ignorable-control-tests: New file.
54108         * modules/unictype/property-iso-control-tests: New file.
54109         * modules/unictype/property-join-control-tests: New file.
54110         * modules/unictype/property-left-of-pair-tests: New file.
54111         * modules/unictype/property-line-separator-tests: New file.
54112         * modules/unictype/property-logical-order-exception-tests: New file.
54113         * modules/unictype/property-lowercase-tests: New file.
54114         * modules/unictype/property-math-tests: New file.
54115         * modules/unictype/property-non-break-tests: New file.
54116         * modules/unictype/property-not-a-character-tests: New file.
54117         * modules/unictype/property-numeric-tests: New file.
54118         * modules/unictype/property-other-alphabetic-tests: New file.
54119         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
54120         * modules/unictype/property-other-grapheme-extend-tests: New file.
54121         * modules/unictype/property-other-id-continue-tests: New file.
54122         * modules/unictype/property-other-id-start-tests: New file.
54123         * modules/unictype/property-other-lowercase-tests: New file.
54124         * modules/unictype/property-other-math-tests: New file.
54125         * modules/unictype/property-other-uppercase-tests: New file.
54126         * modules/unictype/property-paired-punctuation-tests: New file.
54127         * modules/unictype/property-paragraph-separator-tests: New file.
54128         * modules/unictype/property-pattern-syntax-tests: New file.
54129         * modules/unictype/property-pattern-white-space-tests: New file.
54130         * modules/unictype/property-private-use-tests: New file.
54131         * modules/unictype/property-punctuation-tests: New file.
54132         * modules/unictype/property-quotation-mark-tests: New file.
54133         * modules/unictype/property-radical-tests: New file.
54134         * modules/unictype/property-sentence-terminal-tests: New file.
54135         * modules/unictype/property-soft-dotted-tests: New file.
54136         * modules/unictype/property-space-tests: New file.
54137         * modules/unictype/property-terminal-punctuation-tests: New file.
54138         * modules/unictype/property-test-tests: New file.
54139         * modules/unictype/property-titlecase-tests: New file.
54140         * modules/unictype/property-unassigned-code-value-tests: New file.
54141         * modules/unictype/property-unified-ideograph-tests: New file.
54142         * modules/unictype/property-uppercase-tests: New file.
54143         * modules/unictype/property-variation-selector-tests: New file.
54144         * modules/unictype/property-white-space-tests: New file.
54145         * modules/unictype/property-xid-continue-tests: New file.
54146         * modules/unictype/property-xid-start-tests: New file.
54147         * modules/unictype/property-zero-width-tests: New file.
54148         * modules/unictype/scripts-tests: New file.
54149         * modules/unictype/syntax-c-ident-tests: New file.
54150         * modules/unictype/syntax-c-whitespace-tests: New file.
54151         * modules/unictype/syntax-java-ident-tests: New file.
54152         * modules/unictype/syntax-java-whitespace-tests: New file.
54153         * tests/unictype/test-bidi_byname.c: New file.
54154         * tests/unictype/test-bidi_name.c: New file.
54155         * tests/unictype/test-bidi_of.c: New file.
54156         * tests/unictype/test-bidi_test.c: New file.
54157         * tests/unictype/test-block_list.c: New file.
54158         * tests/unictype/test-block_of.c: New file.
54159         * tests/unictype/test-block_test.c: New file.
54160         * tests/unictype/test-categ_and.c: New file.
54161         * tests/unictype/test-categ_and_not.c: New file.
54162         * tests/unictype/test-categ_byname.c: New file.
54163         * tests/unictype/test-categ_name.c: New file.
54164         * tests/unictype/test-categ_none.c: New file.
54165         * tests/unictype/test-categ_of.c: New file.
54166         * tests/unictype/test-categ_or.c: New file.
54167         * tests/unictype/test-categ_test_withtable.c: New file.
54168         * tests/unictype/test-combining.c: New file.
54169         * tests/unictype/test-decdigit.c: New file.
54170         * tests/unictype/test-digit.c: New file.
54171         * tests/unictype/test-mirror.c: New file.
54172         * tests/unictype/test-numeric.c: New file.
54173         * tests/unictype/test-pr_byname.c: New file.
54174         * tests/unictype/test-pr_test.c: New file.
54175         * tests/unictype/test-predicate-part1.h: New file.
54176         * tests/unictype/test-predicate-part2.h: New file.
54177         * tests/unictype/test-scripts.c: New file.
54178         * tests/unictype/test-sy_c_ident.c: New file.
54179         * tests/unictype/test-sy_java_ident.c: New file.
54180
54181         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
54182         for Unicode 5.0.0.
54183         * tests/unictype/test-categ_Cc.c: Likewise.
54184         * tests/unictype/test-categ_Cf.c: Likewise.
54185         * tests/unictype/test-categ_Cn.c: Likewise.
54186         * tests/unictype/test-categ_Co.c: Likewise.
54187         * tests/unictype/test-categ_Cs.c: Likewise.
54188         * tests/unictype/test-categ_L.c: Likewise.
54189         * tests/unictype/test-categ_Ll.c: Likewise.
54190         * tests/unictype/test-categ_Lm.c: Likewise.
54191         * tests/unictype/test-categ_Lo.c: Likewise.
54192         * tests/unictype/test-categ_Lt.c: Likewise.
54193         * tests/unictype/test-categ_Lu.c: Likewise.
54194         * tests/unictype/test-categ_M.c: Likewise.
54195         * tests/unictype/test-categ_Mc.c: Likewise.
54196         * tests/unictype/test-categ_Me.c: Likewise.
54197         * tests/unictype/test-categ_Mn.c: Likewise.
54198         * tests/unictype/test-categ_N.c: Likewise.
54199         * tests/unictype/test-categ_Nd.c: Likewise.
54200         * tests/unictype/test-categ_Nl.c: Likewise.
54201         * tests/unictype/test-categ_No.c: Likewise.
54202         * tests/unictype/test-categ_P.c: Likewise.
54203         * tests/unictype/test-categ_Pc.c: Likewise.
54204         * tests/unictype/test-categ_Pd.c: Likewise.
54205         * tests/unictype/test-categ_Pe.c: Likewise.
54206         * tests/unictype/test-categ_Pf.c: Likewise.
54207         * tests/unictype/test-categ_Pi.c: Likewise.
54208         * tests/unictype/test-categ_Po.c: Likewise.
54209         * tests/unictype/test-categ_Ps.c: Likewise.
54210         * tests/unictype/test-categ_S.c: Likewise.
54211         * tests/unictype/test-categ_Sc.c: Likewise.
54212         * tests/unictype/test-categ_Sk.c: Likewise.
54213         * tests/unictype/test-categ_Sm.c: Likewise.
54214         * tests/unictype/test-categ_So.c: Likewise.
54215         * tests/unictype/test-categ_Z.c: Likewise.
54216         * tests/unictype/test-categ_Zl.c: Likewise.
54217         * tests/unictype/test-categ_Zp.c: Likewise.
54218         * tests/unictype/test-categ_Zs.c: Likewise.
54219         * tests/unictype/test-ctype_alnum.c: Likewise.
54220         * tests/unictype/test-ctype_alpha.c: Likewise.
54221         * tests/unictype/test-ctype_blank.c: Likewise.
54222         * tests/unictype/test-ctype_cntrl.c: Likewise.
54223         * tests/unictype/test-ctype_digit.c: Likewise.
54224         * tests/unictype/test-ctype_graph.c: Likewise.
54225         * tests/unictype/test-ctype_lower.c: Likewise.
54226         * tests/unictype/test-ctype_print.c: Likewise.
54227         * tests/unictype/test-ctype_punct.c: Likewise.
54228         * tests/unictype/test-ctype_space.c: Likewise.
54229         * tests/unictype/test-ctype_upper.c: Likewise.
54230         * tests/unictype/test-ctype_xdigit.c: Likewise.
54231         * tests/unictype/test-decdigit.h: Likewise.
54232         * tests/unictype/test-digit.h: Likewise.
54233         * tests/unictype/test-numeric.h: Likewise.
54234         * tests/unictype/test-pr_alphabetic.c: Likewise.
54235         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
54236         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
54237         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
54238         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
54239         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
54240         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
54241         * tests/unictype/test-pr_bidi_control.c: Likewise.
54242         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
54243         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
54244         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
54245         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
54246         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
54247         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
54248         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
54249         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
54250         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
54251         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
54252         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
54253         * tests/unictype/test-pr_combining.c: Likewise.
54254         * tests/unictype/test-pr_composite.c: Likewise.
54255         * tests/unictype/test-pr_currency_symbol.c: Likewise.
54256         * tests/unictype/test-pr_dash.c: Likewise.
54257         * tests/unictype/test-pr_decimal_digit.c: Likewise.
54258         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
54259         * tests/unictype/test-pr_deprecated.c: Likewise.
54260         * tests/unictype/test-pr_diacritic.c: Likewise.
54261         * tests/unictype/test-pr_extender.c: Likewise.
54262         * tests/unictype/test-pr_format_control.c: Likewise.
54263         * tests/unictype/test-pr_grapheme_base.c: Likewise.
54264         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
54265         * tests/unictype/test-pr_grapheme_link.c: Likewise.
54266         * tests/unictype/test-pr_hex_digit.c: Likewise.
54267         * tests/unictype/test-pr_hyphen.c: Likewise.
54268         * tests/unictype/test-pr_id_continue.c: Likewise.
54269         * tests/unictype/test-pr_id_start.c: Likewise.
54270         * tests/unictype/test-pr_ideographic.c: Likewise.
54271         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
54272         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
54273         * tests/unictype/test-pr_ignorable_control.c: Likewise.
54274         * tests/unictype/test-pr_iso_control.c: Likewise.
54275         * tests/unictype/test-pr_join_control.c: Likewise.
54276         * tests/unictype/test-pr_left_of_pair.c: Likewise.
54277         * tests/unictype/test-pr_line_separator.c: Likewise.
54278         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
54279         * tests/unictype/test-pr_lowercase.c: Likewise.
54280         * tests/unictype/test-pr_math.c: Likewise.
54281         * tests/unictype/test-pr_non_break.c: Likewise.
54282         * tests/unictype/test-pr_not_a_character.c: Likewise.
54283         * tests/unictype/test-pr_numeric.c: Likewise.
54284         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
54285         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
54286         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
54287         * tests/unictype/test-pr_other_id_continue.c: Likewise.
54288         * tests/unictype/test-pr_other_id_start.c: Likewise.
54289         * tests/unictype/test-pr_other_lowercase.c: Likewise.
54290         * tests/unictype/test-pr_other_math.c: Likewise.
54291         * tests/unictype/test-pr_other_uppercase.c: Likewise.
54292         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
54293         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
54294         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
54295         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
54296         * tests/unictype/test-pr_private_use.c: Likewise.
54297         * tests/unictype/test-pr_punctuation.c: Likewise.
54298         * tests/unictype/test-pr_quotation_mark.c: Likewise.
54299         * tests/unictype/test-pr_radical.c: Likewise.
54300         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
54301         * tests/unictype/test-pr_soft_dotted.c: Likewise.
54302         * tests/unictype/test-pr_space.c: Likewise.
54303         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
54304         * tests/unictype/test-pr_titlecase.c: Likewise.
54305         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
54306         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
54307         * tests/unictype/test-pr_uppercase.c: Likewise.
54308         * tests/unictype/test-pr_variation_selector.c: Likewise.
54309         * tests/unictype/test-pr_white_space.c: Likewise.
54310         * tests/unictype/test-pr_xid_continue.c: Likewise.
54311         * tests/unictype/test-pr_xid_start.c: Likewise.
54312         * tests/unictype/test-pr_zero_width.c: Likewise.
54313         * tests/unictype/test-sy_c_whitespace.c: Likewise.
54314         * tests/unictype/test-sy_java_whitespace.c: Likewise.
54315
54316 2007-11-12  Bruno Haible  <bruno@clisp.org>
54317
54318         Unicode character classification functions.
54319         * lib/unictype.h: New file.
54320         * modules/unictype/base: New file.
54321         * modules/unictype/category-L: New file.
54322         * modules/unictype/category-Lu: New file.
54323         * modules/unictype/category-Ll: New file.
54324         * modules/unictype/category-Lt: New file.
54325         * modules/unictype/category-Lm: New file.
54326         * modules/unictype/category-Lo: New file.
54327         * modules/unictype/category-M: New file.
54328         * modules/unictype/category-Mn: New file.
54329         * modules/unictype/category-Mc: New file.
54330         * modules/unictype/category-Me: New file.
54331         * modules/unictype/category-N: New file.
54332         * modules/unictype/category-Nd: New file.
54333         * modules/unictype/category-Nl: New file.
54334         * modules/unictype/category-No: New file.
54335         * modules/unictype/category-P: New file.
54336         * modules/unictype/category-Pc: New file.
54337         * modules/unictype/category-Pd: New file.
54338         * modules/unictype/category-Ps: New file.
54339         * modules/unictype/category-Pe: New file.
54340         * modules/unictype/category-Pi: New file.
54341         * modules/unictype/category-Pf: New file.
54342         * modules/unictype/category-Po: New file.
54343         * modules/unictype/category-S: New file.
54344         * modules/unictype/category-Sm: New file.
54345         * modules/unictype/category-Sc: New file.
54346         * modules/unictype/category-Sk: New file.
54347         * modules/unictype/category-So: New file.
54348         * modules/unictype/category-Z: New file.
54349         * modules/unictype/category-Zs: New file.
54350         * modules/unictype/category-Zl: New file.
54351         * modules/unictype/category-Zp: New file.
54352         * modules/unictype/category-C: New file.
54353         * modules/unictype/category-Cc: New file.
54354         * modules/unictype/category-Cf: New file.
54355         * modules/unictype/category-Cs: New file.
54356         * modules/unictype/category-Co: New file.
54357         * modules/unictype/category-Cn: New file.
54358         * modules/unictype/category-or: New file.
54359         * modules/unictype/category-of: New file.
54360         * modules/unictype/category-test: New file.
54361         * modules/unictype/category-test-withtable: New file.
54362         * modules/unictype/category-byname: New file.
54363         * modules/unictype/category-none: New file.
54364         * modules/unictype/category-and: New file.
54365         * modules/unictype/category-and-not: New file.
54366         * modules/unictype/category-name: New file.
54367         * modules/unictype/combining-class: New file.
54368         * modules/unictype/category-all: New file.
54369         * modules/unictype/bidicategory-all: New file.
54370         * modules/unictype/bidicategory-byname: New file.
54371         * modules/unictype/bidicategory-name: New file.
54372         * modules/unictype/bidicategory-of: New file.
54373         * modules/unictype/bidicategory-test: New file.
54374         * modules/unictype/decimal-digit: New file.
54375         * modules/unictype/digit: New file.
54376         * modules/unictype/numeric: New file.
54377         * modules/unictype/mirror: New file.
54378         * modules/unictype/property-white-space: New file.
54379         * modules/unictype/property-alphabetic: New file.
54380         * modules/unictype/property-other-alphabetic: New file.
54381         * modules/unictype/property-not-a-character: New file.
54382         * modules/unictype/property-default-ignorable-code-point: New file.
54383         * modules/unictype/property-other-default-ignorable-code-point: New
54384         file.
54385         * modules/unictype/property-deprecated: New file.
54386         * modules/unictype/property-logical-order-exception: New file.
54387         * modules/unictype/property-variation-selector: New file.
54388         * modules/unictype/property-private-use: New file.
54389         * modules/unictype/property-unassigned-code-value: New file.
54390         * modules/unictype/property-uppercase: New file.
54391         * modules/unictype/property-other-uppercase: New file.
54392         * modules/unictype/property-lowercase: New file.
54393         * modules/unictype/property-other-lowercase: New file.
54394         * modules/unictype/property-titlecase: New file.
54395         * modules/unictype/property-soft-dotted: New file.
54396         * modules/unictype/property-id-start: New file.
54397         * modules/unictype/property-other-id-start: New file.
54398         * modules/unictype/property-id-continue: New file.
54399         * modules/unictype/property-other-id-continue: New file.
54400         * modules/unictype/property-xid-start: New file.
54401         * modules/unictype/property-xid-continue: New file.
54402         * modules/unictype/property-pattern-white-space: New file.
54403         * modules/unictype/property-pattern-syntax: New file.
54404         * modules/unictype/property-join-control: New file.
54405         * modules/unictype/property-grapheme-base: New file.
54406         * modules/unictype/property-grapheme-extend: New file.
54407         * modules/unictype/property-other-grapheme-extend: New file.
54408         * modules/unictype/property-grapheme-link: New file.
54409         * modules/unictype/property-bidi-control: New file.
54410         * modules/unictype/property-bidi-left-to-right: New file.
54411         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
54412         * modules/unictype/property-bidi-arabic-right-to-left: New file.
54413         * modules/unictype/property-bidi-european-digit: New file.
54414         * modules/unictype/property-bidi-eur-num-separator: New file.
54415         * modules/unictype/property-bidi-eur-num-terminator: New file.
54416         * modules/unictype/property-bidi-arabic-digit: New file.
54417         * modules/unictype/property-bidi-common-separator: New file.
54418         * modules/unictype/property-bidi-block-separator: New file.
54419         * modules/unictype/property-bidi-segment-separator: New file.
54420         * modules/unictype/property-bidi-whitespace: New file.
54421         * modules/unictype/property-bidi-non-spacing-mark: New file.
54422         * modules/unictype/property-bidi-boundary-neutral: New file.
54423         * modules/unictype/property-bidi-pdf: New file.
54424         * modules/unictype/property-bidi-embedding-or-override: New file.
54425         * modules/unictype/property-bidi-other-neutral: New file.
54426         * modules/unictype/property-hex-digit: New file.
54427         * modules/unictype/property-ascii-hex-digit: New file.
54428         * modules/unictype/property-ideographic: New file.
54429         * modules/unictype/property-unified-ideograph: New file.
54430         * modules/unictype/property-radical: New file.
54431         * modules/unictype/property-ids-binary-operator: New file.
54432         * modules/unictype/property-ids-trinary-operator: New file.
54433         * modules/unictype/property-zero-width: New file.
54434         * modules/unictype/property-space: New file.
54435         * modules/unictype/property-non-break: New file.
54436         * modules/unictype/property-iso-control: New file.
54437         * modules/unictype/property-format-control: New file.
54438         * modules/unictype/property-dash: New file.
54439         * modules/unictype/property-hyphen: New file.
54440         * modules/unictype/property-punctuation: New file.
54441         * modules/unictype/property-line-separator: New file.
54442         * modules/unictype/property-paragraph-separator: New file.
54443         * modules/unictype/property-quotation-mark: New file.
54444         * modules/unictype/property-sentence-terminal: New file.
54445         * modules/unictype/property-terminal-punctuation: New file.
54446         * modules/unictype/property-currency-symbol: New file.
54447         * modules/unictype/property-math: New file.
54448         * modules/unictype/property-other-math: New file.
54449         * modules/unictype/property-paired-punctuation: New file.
54450         * modules/unictype/property-left-of-pair: New file.
54451         * modules/unictype/property-combining: New file.
54452         * modules/unictype/property-composite: New file.
54453         * modules/unictype/property-decimal-digit: New file.
54454         * modules/unictype/property-numeric: New file.
54455         * modules/unictype/property-diacritic: New file.
54456         * modules/unictype/property-extender: New file.
54457         * modules/unictype/property-ignorable-control: New file.
54458         * modules/unictype/property-test: New file.
54459         * modules/unictype/property-byname: New file.
54460         * modules/unictype/property-all: New file.
54461         * modules/unictype/scripts: New file.
54462         * modules/unictype/scripts-all: New file.
54463         * modules/unictype/block-of: New file.
54464         * modules/unictype/block-test: New file.
54465         * modules/unictype/block-list: New file.
54466         * modules/unictype/block-all: New file.
54467         * modules/unictype/syntax-c-whitespace: New file.
54468         * modules/unictype/syntax-java-whitespace: New file.
54469         * modules/unictype/syntax-c-ident: New file.
54470         * modules/unictype/syntax-java-ident: New file.
54471         * modules/unictype/ctype-alnum: New file.
54472         * modules/unictype/ctype-alpha: New file.
54473         * modules/unictype/ctype-cntrl: New file.
54474         * modules/unictype/ctype-digit: New file.
54475         * modules/unictype/ctype-graph: New file.
54476         * modules/unictype/ctype-lower: New file.
54477         * modules/unictype/ctype-print: New file.
54478         * modules/unictype/ctype-punct: New file.
54479         * modules/unictype/ctype-space: New file.
54480         * modules/unictype/ctype-upper: New file.
54481         * modules/unictype/ctype-xdigit: New file.
54482         * modules/unictype/ctype-blank: New file.
54483         * lib/unictype/bidi_byname.c: New file.
54484         * lib/unictype/bidi_name.c: New file.
54485         * lib/unictype/bidi_of.c: New file.
54486         * lib/unictype/bidi_test.c: New file.
54487         * lib/unictype/bitmap.h: New file.
54488         * lib/unictype/block_test.c: New file.
54489         * lib/unictype/blocks.c: New file.
54490         * lib/unictype/categ_C.c: New file.
54491         * lib/unictype/categ_Cc.c: New file.
54492         * lib/unictype/categ_Cf.c: New file.
54493         * lib/unictype/categ_Cn.c: New file.
54494         * lib/unictype/categ_Co.c: New file.
54495         * lib/unictype/categ_Cs.c: New file.
54496         * lib/unictype/categ_L.c: New file.
54497         * lib/unictype/categ_Ll.c: New file.
54498         * lib/unictype/categ_Lm.c: New file.
54499         * lib/unictype/categ_Lo.c: New file.
54500         * lib/unictype/categ_Lt.c: New file.
54501         * lib/unictype/categ_Lu.c: New file.
54502         * lib/unictype/categ_M.c: New file.
54503         * lib/unictype/categ_Mc.c: New file.
54504         * lib/unictype/categ_Me.c: New file.
54505         * lib/unictype/categ_Mn.c: New file.
54506         * lib/unictype/categ_N.c: New file.
54507         * lib/unictype/categ_Nd.c: New file.
54508         * lib/unictype/categ_Nl.c: New file.
54509         * lib/unictype/categ_No.c: New file.
54510         * lib/unictype/categ_P.c: New file.
54511         * lib/unictype/categ_Pc.c: New file.
54512         * lib/unictype/categ_Pd.c: New file.
54513         * lib/unictype/categ_Pe.c: New file.
54514         * lib/unictype/categ_Pf.c: New file.
54515         * lib/unictype/categ_Pi.c: New file.
54516         * lib/unictype/categ_Po.c: New file.
54517         * lib/unictype/categ_Ps.c: New file.
54518         * lib/unictype/categ_S.c: New file.
54519         * lib/unictype/categ_Sc.c: New file.
54520         * lib/unictype/categ_Sk.c: New file.
54521         * lib/unictype/categ_Sm.c: New file.
54522         * lib/unictype/categ_So.c: New file.
54523         * lib/unictype/categ_Z.c: New file.
54524         * lib/unictype/categ_Zl.c: New file.
54525         * lib/unictype/categ_Zp.c: New file.
54526         * lib/unictype/categ_Zs.c: New file.
54527         * lib/unictype/categ_and.c: New file.
54528         * lib/unictype/categ_and_not.c: New file.
54529         * lib/unictype/categ_byname.c: New file.
54530         * lib/unictype/categ_name.c: New file.
54531         * lib/unictype/categ_none.c: New file.
54532         * lib/unictype/categ_of.c: New file.
54533         * lib/unictype/categ_or.c: New file.
54534         * lib/unictype/categ_test.c: New file.
54535         * lib/unictype/combining.c: New file.
54536         * lib/unictype/ctype_alnum.c: New file.
54537         * lib/unictype/ctype_alpha.c: New file.
54538         * lib/unictype/ctype_blank.c: New file.
54539         * lib/unictype/ctype_cntrl.c: New file.
54540         * lib/unictype/ctype_digit.c: New file.
54541         * lib/unictype/ctype_graph.c: New file.
54542         * lib/unictype/ctype_lower.c: New file.
54543         * lib/unictype/ctype_print.c: New file.
54544         * lib/unictype/ctype_punct.c: New file.
54545         * lib/unictype/ctype_space.c: New file.
54546         * lib/unictype/ctype_upper.c: New file.
54547         * lib/unictype/ctype_xdigit.c: New file.
54548         * lib/unictype/decdigit.c: New file.
54549         * lib/unictype/digit.c: New file.
54550         * lib/unictype/identsyntaxmap.h: New file.
54551         * lib/unictype/mirror.c: New file.
54552         * lib/unictype/numeric.c: New file.
54553         * lib/unictype/pr_alphabetic.c: New file.
54554         * lib/unictype/pr_ascii_hex_digit.c: New file.
54555         * lib/unictype/pr_bidi_arabic_digit.c: New file.
54556         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
54557         * lib/unictype/pr_bidi_block_separator.c: New file.
54558         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
54559         * lib/unictype/pr_bidi_common_separator.c: New file.
54560         * lib/unictype/pr_bidi_control.c: New file.
54561         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
54562         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
54563         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
54564         * lib/unictype/pr_bidi_european_digit.c: New file.
54565         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
54566         * lib/unictype/pr_bidi_left_to_right.c: New file.
54567         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
54568         * lib/unictype/pr_bidi_other_neutral.c: New file.
54569         * lib/unictype/pr_bidi_pdf.c: New file.
54570         * lib/unictype/pr_bidi_segment_separator.c: New file.
54571         * lib/unictype/pr_bidi_whitespace.c: New file.
54572         * lib/unictype/pr_byname.c: New file.
54573         * lib/unictype/pr_byname.gperf: New file.
54574         * lib/unictype/pr_combining.c: New file.
54575         * lib/unictype/pr_composite.c: New file.
54576         * lib/unictype/pr_currency_symbol.c: New file.
54577         * lib/unictype/pr_dash.c: New file.
54578         * lib/unictype/pr_decimal_digit.c: New file.
54579         * lib/unictype/pr_default_ignorable_code_point.c: New file.
54580         * lib/unictype/pr_deprecated.c: New file.
54581         * lib/unictype/pr_diacritic.c: New file.
54582         * lib/unictype/pr_extender.c: New file.
54583         * lib/unictype/pr_format_control.c: New file.
54584         * lib/unictype/pr_grapheme_base.c: New file.
54585         * lib/unictype/pr_grapheme_extend.c: New file.
54586         * lib/unictype/pr_grapheme_link.c: New file.
54587         * lib/unictype/pr_hex_digit.c: New file.
54588         * lib/unictype/pr_hyphen.c: New file.
54589         * lib/unictype/pr_id_continue.c: New file.
54590         * lib/unictype/pr_id_start.c: New file.
54591         * lib/unictype/pr_ideographic.c: New file.
54592         * lib/unictype/pr_ids_binary_operator.c: New file.
54593         * lib/unictype/pr_ids_trinary_operator.c: New file.
54594         * lib/unictype/pr_ignorable_control.c: New file.
54595         * lib/unictype/pr_iso_control.c: New file.
54596         * lib/unictype/pr_join_control.c: New file.
54597         * lib/unictype/pr_left_of_pair.c: New file.
54598         * lib/unictype/pr_line_separator.c: New file.
54599         * lib/unictype/pr_logical_order_exception.c: New file.
54600         * lib/unictype/pr_lowercase.c: New file.
54601         * lib/unictype/pr_math.c: New file.
54602         * lib/unictype/pr_non_break.c: New file.
54603         * lib/unictype/pr_not_a_character.c: New file.
54604         * lib/unictype/pr_numeric.c: New file.
54605         * lib/unictype/pr_other_alphabetic.c: New file.
54606         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
54607         * lib/unictype/pr_other_grapheme_extend.c: New file.
54608         * lib/unictype/pr_other_id_continue.c: New file.
54609         * lib/unictype/pr_other_id_start.c: New file.
54610         * lib/unictype/pr_other_lowercase.c: New file.
54611         * lib/unictype/pr_other_math.c: New file.
54612         * lib/unictype/pr_other_uppercase.c: New file.
54613         * lib/unictype/pr_paired_punctuation.c: New file.
54614         * lib/unictype/pr_paragraph_separator.c: New file.
54615         * lib/unictype/pr_pattern_syntax.c: New file.
54616         * lib/unictype/pr_pattern_white_space.c: New file.
54617         * lib/unictype/pr_private_use.c: New file.
54618         * lib/unictype/pr_punctuation.c: New file.
54619         * lib/unictype/pr_quotation_mark.c: New file.
54620         * lib/unictype/pr_radical.c: New file.
54621         * lib/unictype/pr_sentence_terminal.c: New file.
54622         * lib/unictype/pr_soft_dotted.c: New file.
54623         * lib/unictype/pr_space.c: New file.
54624         * lib/unictype/pr_terminal_punctuation.c: New file.
54625         * lib/unictype/pr_test.c: New file.
54626         * lib/unictype/pr_titlecase.c: New file.
54627         * lib/unictype/pr_unassigned_code_value.c: New file.
54628         * lib/unictype/pr_unified_ideograph.c: New file.
54629         * lib/unictype/pr_uppercase.c: New file.
54630         * lib/unictype/pr_variation_selector.c: New file.
54631         * lib/unictype/pr_white_space.c: New file.
54632         * lib/unictype/pr_xid_continue.c: New file.
54633         * lib/unictype/pr_xid_start.c: New file.
54634         * lib/unictype/pr_zero_width.c: New file.
54635         * lib/unictype/scripts.c: New file.
54636         * lib/unictype/sy_c_ident.c: New file.
54637         * lib/unictype/sy_c_whitespace.c: New file.
54638         * lib/unictype/sy_java_ident.c: New file.
54639         * lib/unictype/sy_java_whitespace.c: New file.
54640
54641         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
54642         Unicode 5.0.0.
54643         * lib/unictype/blocks.h: Likewise.
54644         * lib/unictype/categ_C.h: Likewise.
54645         * lib/unictype/categ_Cc.h: Likewise.
54646         * lib/unictype/categ_Cf.h: Likewise.
54647         * lib/unictype/categ_Cn.h: Likewise.
54648         * lib/unictype/categ_Co.h: Likewise.
54649         * lib/unictype/categ_Cs.h: Likewise.
54650         * lib/unictype/categ_L.h: Likewise.
54651         * lib/unictype/categ_Ll.h: Likewise.
54652         * lib/unictype/categ_Lm.h: Likewise.
54653         * lib/unictype/categ_Lo.h: Likewise.
54654         * lib/unictype/categ_Lt.h: Likewise.
54655         * lib/unictype/categ_Lu.h: Likewise.
54656         * lib/unictype/categ_M.h: Likewise.
54657         * lib/unictype/categ_Mc.h: Likewise.
54658         * lib/unictype/categ_Me.h: Likewise.
54659         * lib/unictype/categ_Mn.h: Likewise.
54660         * lib/unictype/categ_N.h: Likewise.
54661         * lib/unictype/categ_Nd.h: Likewise.
54662         * lib/unictype/categ_Nl.h: Likewise.
54663         * lib/unictype/categ_No.h: Likewise.
54664         * lib/unictype/categ_P.h: Likewise.
54665         * lib/unictype/categ_Pc.h: Likewise.
54666         * lib/unictype/categ_Pd.h: Likewise.
54667         * lib/unictype/categ_Pe.h: Likewise.
54668         * lib/unictype/categ_Pf.h: Likewise.
54669         * lib/unictype/categ_Pi.h: Likewise.
54670         * lib/unictype/categ_Po.h: Likewise.
54671         * lib/unictype/categ_Ps.h: Likewise.
54672         * lib/unictype/categ_S.h: Likewise.
54673         * lib/unictype/categ_Sc.h: Likewise.
54674         * lib/unictype/categ_Sk.h: Likewise.
54675         * lib/unictype/categ_Sm.h: Likewise.
54676         * lib/unictype/categ_So.h: Likewise.
54677         * lib/unictype/categ_Z.h: Likewise.
54678         * lib/unictype/categ_Zl.h: Likewise.
54679         * lib/unictype/categ_Zp.h: Likewise.
54680         * lib/unictype/categ_Zs.h: Likewise.
54681         * lib/unictype/categ_of.h: Likewise.
54682         * lib/unictype/combining.h: Likewise.
54683         * lib/unictype/ctype_alnum.h: Likewise.
54684         * lib/unictype/ctype_alpha.h: Likewise.
54685         * lib/unictype/ctype_blank.h: Likewise.
54686         * lib/unictype/ctype_cntrl.h: Likewise.
54687         * lib/unictype/ctype_digit.h: Likewise.
54688         * lib/unictype/ctype_graph.h: Likewise.
54689         * lib/unictype/ctype_lower.h: Likewise.
54690         * lib/unictype/ctype_print.h: Likewise.
54691         * lib/unictype/ctype_punct.h: Likewise.
54692         * lib/unictype/ctype_space.h: Likewise.
54693         * lib/unictype/ctype_upper.h: Likewise.
54694         * lib/unictype/ctype_xdigit.h: Likewise.
54695         * lib/unictype/decdigit.h: Likewise.
54696         * lib/unictype/digit.h: Likewise.
54697         * lib/unictype/mirror.h: Likewise.
54698         * lib/unictype/numeric.h: Likewise.
54699         * lib/unictype/pr_alphabetic.h: Likewise.
54700         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
54701         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
54702         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
54703         * lib/unictype/pr_bidi_block_separator.h: Likewise.
54704         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
54705         * lib/unictype/pr_bidi_common_separator.h: Likewise.
54706         * lib/unictype/pr_bidi_control.h: Likewise.
54707         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
54708         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
54709         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
54710         * lib/unictype/pr_bidi_european_digit.h: Likewise.
54711         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
54712         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
54713         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
54714         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
54715         * lib/unictype/pr_bidi_pdf.h: Likewise.
54716         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
54717         * lib/unictype/pr_bidi_whitespace.h: Likewise.
54718         * lib/unictype/pr_combining.h: Likewise.
54719         * lib/unictype/pr_composite.h: Likewise.
54720         * lib/unictype/pr_currency_symbol.h: Likewise.
54721         * lib/unictype/pr_dash.h: Likewise.
54722         * lib/unictype/pr_decimal_digit.h: Likewise.
54723         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
54724         * lib/unictype/pr_deprecated.h: Likewise.
54725         * lib/unictype/pr_diacritic.h: Likewise.
54726         * lib/unictype/pr_extender.h: Likewise.
54727         * lib/unictype/pr_format_control.h: Likewise.
54728         * lib/unictype/pr_grapheme_base.h: Likewise.
54729         * lib/unictype/pr_grapheme_extend.h: Likewise.
54730         * lib/unictype/pr_grapheme_link.h: Likewise.
54731         * lib/unictype/pr_hex_digit.h: Likewise.
54732         * lib/unictype/pr_hyphen.h: Likewise.
54733         * lib/unictype/pr_id_continue.h: Likewise.
54734         * lib/unictype/pr_id_start.h: Likewise.
54735         * lib/unictype/pr_ideographic.h: Likewise.
54736         * lib/unictype/pr_ids_binary_operator.h: Likewise.
54737         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
54738         * lib/unictype/pr_ignorable_control.h: Likewise.
54739         * lib/unictype/pr_iso_control.h: Likewise.
54740         * lib/unictype/pr_join_control.h: Likewise.
54741         * lib/unictype/pr_left_of_pair.h: Likewise.
54742         * lib/unictype/pr_line_separator.h: Likewise.
54743         * lib/unictype/pr_logical_order_exception.h: Likewise.
54744         * lib/unictype/pr_lowercase.h: Likewise.
54745         * lib/unictype/pr_math.h: Likewise.
54746         * lib/unictype/pr_non_break.h: Likewise.
54747         * lib/unictype/pr_not_a_character.h: Likewise.
54748         * lib/unictype/pr_numeric.h: Likewise.
54749         * lib/unictype/pr_other_alphabetic.h: Likewise.
54750         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
54751         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
54752         * lib/unictype/pr_other_id_continue.h: Likewise.
54753         * lib/unictype/pr_other_id_start.h: Likewise.
54754         * lib/unictype/pr_other_lowercase.h: Likewise.
54755         * lib/unictype/pr_other_math.h: Likewise.
54756         * lib/unictype/pr_other_uppercase.h: Likewise.
54757         * lib/unictype/pr_paired_punctuation.h: Likewise.
54758         * lib/unictype/pr_paragraph_separator.h: Likewise.
54759         * lib/unictype/pr_pattern_syntax.h: Likewise.
54760         * lib/unictype/pr_pattern_white_space.h: Likewise.
54761         * lib/unictype/pr_private_use.h: Likewise.
54762         * lib/unictype/pr_punctuation.h: Likewise.
54763         * lib/unictype/pr_quotation_mark.h: Likewise.
54764         * lib/unictype/pr_radical.h: Likewise.
54765         * lib/unictype/pr_sentence_terminal.h: Likewise.
54766         * lib/unictype/pr_soft_dotted.h: Likewise.
54767         * lib/unictype/pr_space.h: Likewise.
54768         * lib/unictype/pr_terminal_punctuation.h: Likewise.
54769         * lib/unictype/pr_titlecase.h: Likewise.
54770         * lib/unictype/pr_unassigned_code_value.h: Likewise.
54771         * lib/unictype/pr_unified_ideograph.h: Likewise.
54772         * lib/unictype/pr_uppercase.h: Likewise.
54773         * lib/unictype/pr_variation_selector.h: Likewise.
54774         * lib/unictype/pr_white_space.h: Likewise.
54775         * lib/unictype/pr_xid_continue.h: Likewise.
54776         * lib/unictype/pr_xid_start.h: Likewise.
54777         * lib/unictype/pr_zero_width.h: Likewise.
54778         * lib/unictype/scripts.h: Likewise.
54779         * lib/unictype/scripts_byname.gperf: Likewise.
54780         * lib/unictype/sy_c_ident.h: Likewise.
54781         * lib/unictype/sy_c_whitespace.h: Likewise.
54782         * lib/unictype/sy_java_ident.h: Likewise.
54783         * lib/unictype/sy_java_whitespace.h: Likewise.
54784
54785         * lib/unictype/Makefile: New file.
54786         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
54787         glibc.
54788         * lib/unictype/3level.h: New file, copied from glibc.
54789         * lib/unictype/3levelbit.h: New file.
54790
54791 2007-11-11  Bruno Haible  <bruno@clisp.org>
54792
54793         * modules/gperf: New file.
54794         * modules/iconv_open (Depends-on): Add it.
54795         (Makefile.am): Remove the GPERF definition.
54796
54797 2007-11-11  Bruno Haible  <bruno@clisp.org>
54798
54799         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
54800         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
54801
54802 2007-11-11  Bruno Haible  <bruno@clisp.org>
54803
54804         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
54805         (usage): Remove function.
54806
54807 2007-11-11  Bruno Haible  <bruno@clisp.org>
54808
54809         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
54810         gl_FUNC_CEILF_LIBS.
54811         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
54812         gl_FUNC_CEIL_LIBS.
54813         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
54814         gl_FUNC_CEILL_LIBS.
54815         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
54816         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
54817         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
54818
54819 2007-11-11  Bruno Haible  <bruno@clisp.org>
54820
54821         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
54822         roundf were declared but do not exist on functions.
54823         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
54824         roundl were declared but do not exist on functions.
54825         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
54826         HAVE_FLOORL_AND_CEILL, respectively.
54827         Needed for Sun C on Solaris 10.
54828
54829 2007-11-11  Bruno Haible  <bruno@clisp.org>
54830
54831         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
54832         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
54833         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
54834         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
54835         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
54836         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
54837         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
54838         HAVE_DECL_ROUNDF.
54839         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
54840         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
54841         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
54842         of HAVE_DECL_ROUND*.
54843         * modules/math (Makefile.am): Update.
54844
54845 2007-11-10  Bruno Haible  <bruno@clisp.org>
54846
54847         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
54848         ptrdiff_t as m4/intl.m4.
54849
54850 2007-11-10  Jim Meyering  <meyering@redhat.com>
54851
54852         Avoid link failure for the argmatch test.
54853         * tests/test-argmatch.c (usage): Define function to avoid a link
54854         failure: argmatch_die requires a usage function.
54855
54856 2007-11-09  Bruno Haible  <bruno@clisp.org>
54857
54858         * doc/functions/snprintf.texi: Mention BeOS deficiency.
54859         * doc/functions/vsnprintf.texi: Likewise.
54860         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
54861         with a size argument < 2.
54862
54863 2007-11-09  Bruno Haible  <bruno@clisp.org>
54864
54865         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
54866         buffer. Fixes an inefficiency introduced on 2007-11-03.
54867
54868 2007-11-09  Bruno Haible  <bruno@clisp.org>
54869
54870         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
54871         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
54872
54873 2007-11-08  Jim Meyering  <meyering@redhat.com>
54874
54875         Change cache variable name prefix "jm_" to "gl_" everywhere.
54876         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
54877         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
54878         * m4/uptime.m4: s/gl_/jm_/
54879
54880 2007-11-07  Bruno Haible  <bruno@clisp.org>
54881
54882         Update to GNU gettext 0.17.
54883         * m4/intl.m4: Update to GNU gettext 0.17.
54884         * m4/po.m4: Likewise.
54885         * modules/gettext (Files): Remove m4/ulonglong.m4.
54886         (configure.ac): Require gettext infrastructure from version 0.17.
54887
54888 2007-11-06  Bruno Haible  <bruno@clisp.org>
54889
54890         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
54891         symbolic values are not defined in a public header.
54892         * lib/freadable.c (freadable) [QNX]: Likewise.
54893         * lib/freadahead.c (freadahead) [QNX]: Likewise.
54894         * lib/freading.c (freading) [QNX]: Likewise.
54895         * lib/fseterr.c (fseterr) [QNX]: Likewise.
54896         * lib/fwritable.c (fwritable) [QNX]: Likewise.
54897         * lib/fwriting.c (fwriting) [QNX]: Likewise.
54898         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
54899         Reported by Alain Magloire.
54900
54901         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
54902
54903 2007-11-05  Bruno Haible  <bruno@clisp.org>
54904
54905         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
54906         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
54907         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
54908         Reported by Eric Blake.
54909
54910 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54911             Bruno Haible  <bruno@clisp.org>
54912
54913         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
54914         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
54915         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
54916         (malloc): Undefine also before including <stdlib.h>.
54917         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
54918         Needed on OSF/1 4.0.
54919
54920 2007-11-05  Jim Meyering  <meyering@redhat.com>
54921
54922         git-version-gen: sync from coreutils.
54923         * build-aux/git-version-gen: Add comments.
54924         Change the first '-' to '.' in the snapshot version string,
54925         e.g., 6.9-377-08144 -> 6.9.377-08144
54926         Remove first parameter.
54927         Don't declare a version "-dirty" merely because a time
54928         stamp has changed.
54929
54930 2007-11-04  Bruno Haible  <bruno@clisp.org>
54931
54932         * lib/lock.h: Protect all macro definitions containing an 'if'
54933         statement through a "do { ... } while (0)".
54934         * lib/tls.h: Likewise.
54935
54936 2007-11-04  Bruno Haible  <bruno@clisp.org>
54937
54938         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
54939
54940 2007-11-04  Bruno Haible  <bruno@clisp.org>
54941
54942         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
54943         * modules/fprintf-posix (Depends-on): Add nocrash.
54944         * modules/snprintf-posix (Depends-on): Likewise.
54945         * modules/sprintf-posix (Depends-on): Likewise.
54946         * modules/vasnprintf-posix (Depends-on): Likewise.
54947         * modules/vasprintf-posix (Depends-on): Likewise.
54948         * modules/vfprintf-posix (Depends-on): Likewise.
54949         * modules/vsnprintf-posix (Depends-on): Likewise.
54950         * modules/vsprintf-posix (Depends-on): Likewise.
54951         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54952         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54953         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54954         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54955         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54956         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54957         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54958
54959 2007-11-04  Bruno Haible  <bruno@clisp.org>
54960
54961         * modules/nocrash: New file.
54962         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
54963         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
54964
54965 2007-11-04  Bruno Haible  <bruno@clisp.org>
54966
54967         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
54968         precision handling.
54969         * tests/test-vasprintf-posix.c (test_function): Likewise.
54970         * tests/test-snprintf-posix.h (test_function): Likewise.
54971         * tests/test-sprintf-posix.h (test_function): Likewise.
54972
54973         Fix *printf behaviour for large precisions on mingw and BeOS.
54974         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
54975         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
54976         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
54977         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54978         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54979         gl_PRINTF_PRECISION and test its result. Invoke
54980         gl_PREREQ_VASNPRINTF_PRECISION.
54981         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54982         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54983         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54984         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54985         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54986         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54987         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54988         * doc/functions/fprintf.texi: Update.
54989         * doc/functions/printf.texi: Update.
54990         * doc/functions/snprintf.texi: Update.
54991         * doc/functions/sprintf.texi: Update.
54992         * doc/functions/vfprintf.texi: Update.
54993         * doc/functions/vprintf.texi: Update.
54994         * doc/functions/vsnprintf.texi: Update.
54995         * doc/functions/vsprintf.texi: Update.
54996
54997 2007-11-04  Bruno Haible  <bruno@clisp.org>
54998
54999         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
55000
55001 2007-11-04  Bruno Haible  <bruno@clisp.org>
55002
55003         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
55004         Reported by Sylvain Beucler <beuc@gnu.org>.
55005
55006 2007-11-03  Bruno Haible  <bruno@clisp.org>
55007
55008         * tests/test-fprintf-posix2.sh: New file.
55009         * tests/test-fprintf-posix2.c: New file.
55010         * modules/fprintf-posix-tests (Files): Add them.
55011         (TESTS): Add test-fprintf-posix2.sh.
55012         (configure.ac): Check for getrlimit and setrlimit.
55013         (check_PROGRAMS): Add test-fprintf-posix2.
55014
55015         * tests/test-printf-posix2.sh: New file.
55016         * tests/test-printf-posix2.c: New file.
55017         * modules/printf-posix-tests (Files): Add them.
55018         (TESTS): Add test-printf-posix2.sh.
55019         (configure.ac): Check for getrlimit and setrlimit.
55020         (check_PROGRAMS): Add test-printf-posix2.
55021
55022         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
55023         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
55024         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
55025         (decode_double): New function, copied from decode_long_double.
55026         (scale10_round_decimal_decoded): New function, extracted from
55027         scale10_round_decimal_long_double.
55028         (scale10_round_decimal_long_double): Use it.
55029         (scale10_round_decimal_double): New function.
55030         (floorlog10): New function.
55031         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
55032         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
55033         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
55034         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55035         gl_PRINTF_ENOMEM and test its result. Invoke
55036         gl_PREREQ_VASNPRINTF_ENOMEM.
55037         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55038         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55039         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55040         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55041         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55042         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55043         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55044         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
55045         * modules/snprintf-posix (Depends-on): Likewise.
55046         * modules/sprintf-posix (Depends-on): Likewise.
55047         * modules/vasnprintf-posix (Depends-on): Likewise.
55048         * modules/vasprintf-posix (Depends-on): Likewise.
55049         * modules/vfprintf-posix (Depends-on): Likewise.
55050         * modules/vsnprintf-posix (Depends-on): Likewise.
55051         * modules/vsprintf-posix (Depends-on): Likewise.
55052         * doc/functions/fprintf.texi: Update.
55053         * doc/functions/printf.texi: Update.
55054         * doc/functions/snprintf.texi: Update.
55055         * doc/functions/sprintf.texi: Update.
55056         * doc/functions/vfprintf.texi: Update.
55057         * doc/functions/vprintf.texi: Update.
55058         * doc/functions/vsnprintf.texi: Update.
55059         * doc/functions/vsprintf.texi: Update.
55060
55061 2007-11-03  Bruno Haible  <bruno@clisp.org>
55062
55063         * modules/frexp-nolibm-tests: New file.
55064
55065         * modules/frexp-nolibm: New file.
55066         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
55067
55068 2007-11-03  Bruno Haible  <bruno@clisp.org>
55069
55070         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
55071         value is C99 compliant.
55072         Needed for OSF/1 5.1.
55073
55074 2007-11-03  Bruno Haible  <bruno@clisp.org>
55075
55076         Fix out-of-memory handling of vasnprintf.
55077         * lib/printf-parse.c: Include <errno.h>.
55078         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
55079         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
55080         is already set.
55081
55082 2007-11-02  Eric Blake  <ebb9@byu.net>
55083
55084         Fix tests on cygwin.
55085         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
55086
55087 2007-11-01  Bruno Haible  <bruno@clisp.org>
55088
55089         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
55090         warning.
55091         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
55092         needed for POSIX compatibility.
55093
55094 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
55095
55096         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
55097         for compatibility with GNU.
55098
55099 2007-11-01  Bruno Haible  <bruno@clisp.org>
55100
55101         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
55102         (putenv): Renamed from rpl_putenv. Change argument type from
55103         'const char *' to 'char *'.
55104         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
55105         of defining putenv in config.h, just set REPLACE_PUTENV.
55106         * modules/putenv (Depends-on): Add stdlib.
55107         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55108         (Include): Use <stdlib.h>.
55109         * lib/stdlib.in.h (putenv): New declaration.
55110         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
55111         REPLACE_PUTENV.
55112         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
55113         REPLACE_PUTENV.
55114         Needed for MacOS X 10.5.0.
55115         Reported by Peter O'Gorman <peter@pogma.com>.
55116
55117 2007-11-01  Jim Meyering  <meyering@redhat.com>
55118
55119         Treat an empty date string exactly like "0".
55120         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
55121         if the remaining date string (to be parsed) is empty, use "0".
55122         Reported by Mischa Molhoek and discussed in this thread:
55123         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
55124
55125 2007-10-31  Bruno Haible  <bruno@clisp.org>
55126
55127         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
55128         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
55129         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
55130         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
55131         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
55132         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
55133
55134 2007-10-31  Bruno Haible  <bruno@clisp.org>
55135
55136         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
55137         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
55138         (AC_TYPE_LONG_LONG_INT): Use it.
55139         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
55140         it as well.
55141         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
55142         to m4/longlong.m4.
55143         * modules/stdint (Files): Remove m4/ulonglong.m4.
55144         * modules/strtoull (Files): Use m4/longlong.m4 instead of
55145         m4/ulonglong.m4.
55146         * modules/strtoumax (Files): Likewise.
55147
55148 2007-10-30  Bruno Haible  <bruno@clisp.org>
55149
55150         * modules/xvasprintf-posix: New file.
55151         Suggested by Eric Blake.
55152
55153 2007-10-30  Bruno Haible  <bruno@clisp.org>
55154
55155         * modules/xprintf-posix-tests: New file.
55156         * tests/test-xprintf-posix.sh: New file.
55157         * tests/test-xprintf-posix.c: New file.
55158         * tests/test-xfprintf-posix.c: New file.
55159
55160         * modules/xprintf-posix: New file.
55161
55162 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55163
55164         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
55165         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
55166         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
55167
55168 2007-10-29  Bruno Haible  <bruno@clisp.org>
55169
55170         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
55171         contain the special marker '_cv_'.
55172         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
55173         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
55174         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
55175         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
55176         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
55177         Reported by Ralf Wildenhues.
55178
55179 2007-10-29  Bruno Haible  <bruno@clisp.org>
55180
55181         * gnulib-tool (func_import): When --lgpl is not specified, set
55182         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
55183         GPLv3.
55184         Reported by Simon Josefsson.
55185
55186 2007-10-28  Bruno Haible  <bruno@clisp.org>
55187
55188         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
55189         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
55190         HAVE_DECL_ISFINITE.
55191         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
55192         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
55193         HAVE_DECL_ISFINITE.
55194
55195 2007-10-28  Bruno Haible  <bruno@clisp.org>
55196
55197         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
55198         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
55199
55200 2007-10-28  Bruno Haible  <bruno@clisp.org>
55201
55202         Fix link errors with Sun C 5.0 on Solaris 10.
55203         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
55204         function is declared but not present in the compiler's libm.
55205         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
55206         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
55207         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
55208         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
55209         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
55210         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
55211         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
55212         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
55213         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
55214         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
55215         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
55216         HAVE_DECL_FLOORL.
55217
55218 2007-10-28  Bruno Haible  <bruno@clisp.org>
55219
55220         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
55221         gl_FUNC_FLOORL. Cache the result.
55222         (gl_FUNC_FLOORL): Use it.
55223         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
55224         gl_FUNC_CEILL. Cache the result.
55225         (gl_FUNC_CEILL): Use it.
55226
55227         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
55228         gl_FUNC_FLOOR. Cache the result.
55229         (gl_FUNC_FLOOR): Use it.
55230         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
55231         gl_FUNC_CEIL. Cache the result.
55232         (gl_FUNC_CEIL): Use it.
55233
55234         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
55235         gl_FUNC_FLOORF. Cache the result.
55236         (gl_FUNC_FLOORF): Use it.
55237         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
55238         gl_FUNC_CEILF. Cache the result.
55239         (gl_FUNC_CEILF): Use it.
55240
55241 2007-10-28  Bruno Haible  <bruno@clisp.org>
55242
55243         * gnulib-tool: Allow specifying the LGPL version number through
55244         --lgpl=2 or --lgpl=3.
55245         (func_usage): Document --lgpl with argument.
55246         Handle --lgpl=... arguments.
55247         (func_import): Recognize also gl_LGPL calls with an argument. When
55248         --lgpl=2 is used and the module's license is just LGPL, report an
55249         error. Set sed_transform_lib_file according to the lgpl variable. In
55250         the generated files, use --lgpl or gl_LGPL invocations with argument,
55251         if necessary.
55252         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
55253         an LGPv2+ license.
55254         * doc/gnulib-tool.texi (Modified imports): Update explanation of
55255         gl_LGPL macro.
55256
55257 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55258             Bruno Haible  <bruno@clisp.org>
55259
55260         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
55261         (u16_uctomb_aux): Likewise.
55262         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
55263         !HAVE_INLINE.
55264         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
55265
55266 2007-10-28  Bruno Haible  <bruno@clisp.org>
55267
55268         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
55269         Invoke AM_GETTEXT_OPTION if it exists.
55270         * modules/vasprintf: Likewise.
55271         * modules/verror: Likewise.
55272         * modules/xprintf: Likewise.
55273         * modules/xvasprintf: Likewise.
55274
55275 2007-10-27  Ben Pfaff  <blp@gnu.org>
55276
55277         * lib/math.in.h: Define isfinite macro and prototypes for
55278         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
55279         implementations.
55280         * m4/math_h.m4: New substitutions for isfinite module.
55281         * lib/isfinite.c: New file.
55282         * m4/isfinite.m4: New file.
55283         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
55284         * modules/isfinite: New file.
55285         * modules/isfinite-tests: New file.
55286         * tests/tests-isfinite.c: New file.
55287         * doc/functions/isfinite.texi: Mention isfinite module.
55288         * MODULES.html.sh: Mention new module.
55289
55290 2007-10-27  Ben Pfaff  <blp@gnu.org>
55291
55292         Ralf Wildenhues reported that Tru64 4.0D declares the round
55293         functions but does not have definitions.
55294         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
55295         cannot be found in any library, set the output variable to
55296         "missing" instead of "".
55297         * m4/round.m4: Also use our substitute if we cannot find round in
55298         any library, even if it is declared.
55299         * m4/roundf.m4: Likewise for roundf.
55300         * m4/roundl.m4: Likewise for roundl.
55301         * lib/math.in.h: Undefine roundf, round, roundl before defining
55302         their replacements, to allow for hypothetical systems where these
55303         may be defined as macros but not available in libraries.
55304
55305 2007-10-27  Bruno Haible  <bruno@clisp.org>
55306
55307         * doc/gnulib.texi: Invoke @firstparagraphindent.
55308         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
55309         changes in gnulib.
55310         (Source changes): New section.
55311
55312 2007-10-26  Bruno Haible  <bruno@clisp.org>
55313
55314         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
55315         borrowed from autoconf.
55316
55317 2007-10-26  Bruno Haible  <bruno@clisp.org>
55318
55319         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
55320         strerror returned the empty string. Needed on HP-UX 11.00.
55321
55322 2007-10-24  Micah Cowan  <micah@cowan.name>
55323
55324         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
55325         * build-aux/bootstrap: Remove support for now-unnecessary option,
55326         --cvs-user, and envvars CVS_USER, CVS_RSH.
55327
55328 2007-10-24  Jim Meyering  <meyering@redhat.com>
55329
55330         Avoid diagnostics from sha1sum when there is no cached checksum.
55331         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
55332         if the po.s1 file hasn't been created yet.
55333
55334         * build-aux/bootstrap: Sync from coreutils:
55335         2007-10-24  Jim Meyering  <meyering@redhat.com>
55336         Get gnulib from the git repository, not from an obsolete cvs one.
55337         * build-aux/bootstrap: Suggestion from Micah Cowan.
55338         2007-10-04  Jim Meyering  <jim@meyering.net>
55339         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
55340         (update_po_files): Work also when there are no .po files in po/.
55341
55342 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55343
55344         * README: Append ".git" to git and cg examples.
55345         Problem reported by Benoit Sigoure.
55346
55347 2007-10-23  Micah Cowan  <micah@cowan.name>
55348
55349         * users.txt: Add wget.
55350
55351 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55352
55353         Fix linking of some unistdio tests on FreeBSD.
55354         * modules/unistdio/u16-vsnprintf-tests
55355         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
55356         * modules/unistdio/u16-vsprintf-tests
55357         (test_u16_vsnprintf1_LDADD): Likewise.
55358         * modules/unistdio/u32-vsnprintf-tests
55359         (test_u32_vsnprintf1_LDADD): Likewise.
55360         * modules/unistdio/u32-vsprintf-tests
55361         (test_u32_vsprintf1_LDADD): Likewise.
55362         * modules/unistdio/u8-vsnprintf-tests
55363         (test_u8_vsnprintf1_LDADD): Likewise.
55364         * modules/unistdio/u8-vsprintf-tests
55365         (test_u8_vsprintf1_LDADD): Likewise.
55366         * modules/unistdio/ulc-vsnprintf-tests
55367         (test_ulc_vsnprintf1_LDADD): Likewise.
55368         * modules/unistdio/ulc-vsprintf-tests
55369         (test_ulc_vsprintf1_LDADD): Likewise.
55370
55371         Fix linking of some uniconv tests on FreeBSD.
55372         * modules/uniconv/u16-conv-from-enc-tests
55373         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
55374         * modules/uniconv/u16-conv-to-enc-tests
55375         (test_u16_conv_to_enc_LDADD): Likewise.
55376         * modules/uniconv/u16-strconv-from-enc-tests
55377         (test_u16_strconv_from_enc_LDADD): Likewise.
55378         * modules/uniconv/u16-strconv-to-enc-tests
55379         (test_u16_strconv_to_enc_LDADD): Likewise.
55380         * modules/uniconv/u32-conv-from-enc-tests
55381         (test_u32_conv_from_enc_LDADD): Likewise.
55382         * modules/uniconv/u32-conv-to-enc-tests
55383         (test_u32_conv_to_enc_LDADD): Likewise.
55384         * modules/uniconv/u32-strconv-from-enc-tests
55385         (test_u32_strconv_from_enc_LDADD): Likewise.
55386         * modules/uniconv/u32-strconv-to-enc-tests
55387         (test_u32_strconv_to_enc_LDADD): Likewise.
55388         * modules/uniconv/u8-conv-from-enc-tests
55389         (test_u8_conv_from_enc_LDADD): Likewise.
55390         * modules/uniconv/u8-conv-to-enc-tests
55391         (test_u8_conv_to_enc_LDADD): Likewise.
55392         * modules/uniconv/u8-strconv-from-enc-tests
55393         (test_u8_strconv_from_enc_LDADD): Likewise.
55394         * modules/uniconv/u8-strconv-to-enc-tests
55395         (test_u8_strconv_to_enc_LDADD): Likewise.
55396
55397 2007-10-22  Bruno Haible  <bruno@clisp.org>
55398
55399         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
55400         size.
55401
55402 2007-10-22  Eric Blake  <ebb9@byu.net>
55403
55404         Tweak x*printf documentation.
55405         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
55406         variable name and comments.
55407         Suggested by Bruno Haible.
55408
55409 2007-10-22  Bruno Haible  <bruno@clisp.org>
55410
55411         * lib/acl.c (copy_acl): Fix file name in comment.
55412
55413 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55414
55415         Fix Tru64 problem with stdbool.h.
55416         * lib/stdbool.in.h (false, true):
55417         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
55418         Don't declare as an enum in this situation; it runs afoul of Tru64.
55419         Problem reported by Steven M. Schweda in
55420         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
55421
55422 2007-10-22  Eric Blake  <ebb9@byu.net>
55423
55424         Also wrap vf?printf.
55425         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
55426         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
55427         (xvprintf, xvfprintf): New functions.
55428
55429 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55430
55431         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
55432         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
55433
55434         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
55435         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
55436
55437 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55438
55439         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
55440         by Bruno Haible.
55441
55442 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55443
55444         * lib/getloadavg.c
55445         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
55446         Undef `sys' after including sys/table.h, for Tru64 4.0D.
55447
55448         * tests/test-i-ring.c: Work for C89.
55449
55450 2007-10-22  Bruno Haible  <bruno@clisp.org>
55451
55452         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
55453         -1u, in preprocessor expression, so that we don't test for the bug
55454         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
55455         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
55456
55457 2007-10-22  Eric Blake  <ebb9@byu.net>
55458
55459         * tests/test-yesno.sh: Silence stderr during test.
55460
55461 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55462
55463         * modules/crypto/gc-camellia: New file.
55464
55465         * m4/gc-camellia.m4: New file.
55466
55467         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
55468
55469         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
55470
55471 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55472
55473         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
55474         --help to stdout.  Reported by sms@antinode.org (Steven
55475         M. Schweda).
55476
55477 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55478
55479         * users.txt: Fix link to libksba.
55480
55481 2007-10-21  Ben Pfaff  <blp@gnu.org>
55482
55483         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
55484         round.c roundf implementation that depends on floorf and ceilf to
55485         be tested unconditionally.
55486
55487 2007-10-21  Ben Pfaff  <blp@gnu.org>
55488
55489         * m4/check-libm-func.m4: Removed.
55490         * m4/check-math-lib.m4: New file.
55491         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
55492         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
55493         definition and lack of AC_LIBOBJ([roundf]).
55494         * m4/roundl.m4: Ditto, and similarly for roundl.
55495         * modules/round: Reference new m4 file.
55496         * modules/roundf: Ditto.
55497         * modules/roundl: Ditto.
55498         * tests/test-round2.c (main): Use ROUND instead of round.
55499         Bug report from Bruno Haible.
55500
55501 2007-10-21  Bruno Haible  <bruno@clisp.org>
55502
55503         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
55504         context.
55505
55506 2007-10-21  Bruno Haible  <bruno@clisp.org>
55507
55508         * tests/test-wcwidth.c (main): Allow negative result for some control
55509         characters.
55510
55511         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
55512         Needed on OSF/1 5.1.
55513
55514 2007-10-21  Bruno Haible  <bruno@clisp.org>
55515
55516         * tests/test-floorf1.c: Include isnanf.h.
55517         (main): Use isnanf() instead of isnan().
55518         * tests/test-ceilf1.c: Include isnanf.h.
55519         (main): Use isnanf() instead of isnan().
55520         * tests/test-truncf1.c: Include isnanf.h.
55521         (main): Use isnanf() instead of isnan().
55522         * tests/test-roundf1.c: Include isnanf.h.
55523         (main): Use isnanf() instead of isnan().
55524
55525 2007-10-21  Eric Blake  <ebb9@byu.net>
55526
55527         * users.txt: Update URL for m4.
55528
55529 2007-10-21  Bruno Haible  <bruno@clisp.org>
55530
55531         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
55532
55533 2007-10-21  Bruno Haible  <bruno@clisp.org>
55534
55535         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
55536         Git's management files if the CVS files are not present.
55537
55538 2007-10-20  Bruno Haible  <bruno@clisp.org>
55539
55540         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
55541         gcc-3.4.x.
55542
55543 2007-10-20  Ben Pfaff  <blp@gnu.org>
55544
55545         * lib/math.in.h: Declare round, roundf, roundl if we are providing
55546         implementations.
55547         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
55548         * lib/round.c: New file.
55549         * lib/roundf.c: New file.
55550         * lib/roundl.c: New file.
55551         * m4/round.m4: New file.
55552         * m4/roundf.m4: New file.
55553         * m4/roundl.m4: New file.
55554         * m4/check-libm-func-m4: New file.
55555         * modules/math: Replace round, roundf, roundl related @VARS@ in
55556         math.in.h.
55557         * modules/round: New file.
55558         * modules/round-tests: New file.
55559         * modules/roundf: New file.
55560         * modules/roundf-tests: New file.
55561         * modules/roundl: New file.
55562         * modules/roundl-tests: New file.
55563         * tests/test-round1.c: New file.
55564         * tests/test-round2.c: New file.
55565         * tests/test-roundf1.c: New file.
55566         * tests/test-roundf2.c: New file.
55567         * tests/test-roundl.c: New file.
55568         * doc/functions/round.texi: Mention round module.
55569         * doc/functions/roundf.texi: Mention roundf module.
55570         * doc/functions/roundl.texi: Mention roundl module.
55571         * MODULES.html.sh: Mention new modules.
55572         Thanks to Bruno Haible for suggestions.
55573
55574 2007-10-20  Jim Meyering  <meyering@redhat.com>
55575
55576         * lib/xprintf.c: Include <config.h> unconditionally.
55577
55578         Change xprintf's license to GPL.
55579         * modules/xprintf (License): s/LGPL/GPL/, since this module
55580         depends on modules (exit and exitfail) which are GPL.
55581         Suggestion from Bruno Haible.
55582
55583         xprintf fixes.
55584         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
55585         Use a clearer diagnostic.
55586         Patch from Bruno Haible.
55587
55588 2007-10-20  Bruno Haible  <bruno@clisp.org>
55589
55590         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
55591         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
55592         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55593
55594 2007-10-20  Bruno Haible  <bruno@clisp.org>
55595
55596         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
55597         precision in the comparison result > x - 1 or similar.
55598         * tests/test-ceilf2.c (correct_result_p): Likewise.
55599         * tests/test-truncf2.c (correct_result_p): Likewise.
55600         * tests/test-trunc2.c (correct_result_p): Likewise.
55601         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55602
55603 2007-10-20  Bruno Haible  <bruno@clisp.org>
55604
55605         * modules/ceil: New file.
55606         * m4/ceil.m4: New file.
55607         * doc/functions/ceil.texi: Mention the 'ceil' module.
55608
55609 2007-10-20  Bruno Haible  <bruno@clisp.org>
55610
55611         * modules/floor: New file.
55612         * m4/floor.m4: New file.
55613         * doc/functions/floor.texi: Mention the 'floor' module.
55614
55615 2007-10-20  Bruno Haible  <bruno@clisp.org>
55616
55617         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
55618         of %a.
55619         * modules/floorf-tests (Depends-on): Likewise.
55620         * modules/truncf-tests (Depends-on): Likewise.
55621         * modules/trunc-tests (Depends-on): Likewise.
55622         Reported by Ben Pfaff.
55623
55624 2007-10-19  Jim Meyering  <meyering@redhat.com>
55625
55626         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
55627         Don't bother testing specific errno values.  Just test ferror.
55628
55629         New module: xprintf
55630         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
55631
55632 2007-10-19  Bruno Haible  <bruno@clisp.org>
55633
55634         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
55635         syntax.
55636         * modules/javaexec (Makefile.am): Likewise.
55637         * modules/relocatable-prog (Makefile.am): Likewise.
55638         Suggested by Jim Meyering.
55639
55640 2007-10-18  Bruno Haible  <bruno@clisp.org>
55641
55642         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
55643         Reported by Jim Meyering.
55644
55645 2007-10-18  Eric Blake  <ebb9@byu.net>
55646
55647         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
55648
55649 2007-10-18  Bruno Haible  <bruno@clisp.org>
55650
55651         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
55652         the format string into writable memory. Needed in Fortify conditions.
55653
55654 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
55655             Bruno Haible  <bruno@clisp.org>
55656
55657         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
55658         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
55659         * modules/trim (Depends-on): Add mbchar.
55660         (configure.ac): Add gl_FUNC_MBRTOWC.
55661         (Makefile.am): Augment lib_SOURCES.
55662
55663 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
55664
55665         Modify glob.c to use fstatat and dirfd, to simplify it.
55666         Suggested by Eric Blake.
55667         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
55668         Don't include <stdbool.h>; not used.
55669         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
55670         (link_exists_p): Simplify implementation, since we can now assume
55671         dirfd and fstatat.
55672         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
55673
55674 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55675
55676         * gnulib-tool (func_get_dependencies): Fix sed script to
55677         match only tests.
55678
55679 2007-10-17  Bruno Haible  <bruno@clisp.org>
55680
55681         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
55682         allow locale names without encoding suffix.
55683         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
55684         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55685
55686 2007-10-16  Bruno Haible  <bruno@clisp.org>
55687
55688         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
55689         * lib/getgroups.c (getgroups): Likewise.
55690         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
55691
55692 2007-10-16  Bruno Haible  <bruno@clisp.org>
55693
55694         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
55695         * modules/malloc-posix (License): Likewise.
55696         * modules/realloc-posix (License): Likewise.
55697         * modules/calloc-posix (License): Likewise.
55698         * modules/intprops (License): Change from GPL to LGPL, with
55699         Paul Eggert's approval.
55700
55701 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55702
55703         Merge glibc changes into lib/glob.c.
55704
55705         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
55706         2007-10-15 04:59:03 UTC.  Here are the changes:
55707
55708         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
55709
55710         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
55711
55712         * lib/glob.c: Add some branch prediction throughout.
55713
55714         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
55715
55716         [BZ #5103]
55717         * lib/glob.c (glob): Recognize patterns starting \/.
55718
55719         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
55720
55721         [BZ #3996]
55722         * lib/glob.c (attribute_hidden): Define if not defined.
55723         (glob): Unescape dirname, filename or username when needed and not
55724         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
55725         is NULL.  Handle unescaped [ in pattern without closing ].
55726         Don't pass GLOB_CHECK down to recursive glob for directories.
55727         (__glob_pattern_type): New function.
55728         (__glob_pattern_p): Implement using __glob_pattern_type.
55729         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
55730         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
55731         Remove unreachable code.
55732
55733         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
55734
55735         * lib/glob.c (glob_in_dir): Add some comments and asserts to
55736         explain why there are no leaks.
55737
55738         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
55739
55740         [BZ #3253]
55741         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
55742         time, rather allocate increasingly bigger arrays of pointers, if
55743         possible with alloca, if too large with malloc.
55744
55745 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55746
55747         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
55748         Problem reported by H.Merijn Brand in
55749         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
55750         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
55751         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
55752
55753 2007-10-15  Bruno Haible  <bruno@clisp.org>
55754
55755         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
55756         with explicit rpl_ prefix.
55757         * lib/fopen.c (fopen): Likewise.
55758         * lib/freopen.c (freopen): Likewise.
55759         * lib/iconv.c (iconv): Likewise.
55760         * lib/iconv_close.c (iconv_close): Likewise.
55761
55762 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55763
55764         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
55765
55766 2007-10-15  Bruno Haible  <bruno@clisp.org>
55767
55768         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
55769         <stddef.h> instead of <stdlib.h> since we only need NULL.
55770         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55771
55772 2007-10-15  Bruno Haible  <bruno@clisp.org>
55773
55774         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
55775         Replace paragraph talking about LIBOBJS.
55776         Reported by Colin Watson <cjwatson@debian.org>.
55777
55778 2007-10-15  Bruno Haible  <bruno@clisp.org>
55779
55780         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
55781         <stdlib.h> before using NULL.
55782
55783 2007-10-15  Simon Josefsson  <simon@josefsson.org>
55784
55785         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
55786         Reported by Albert Chin <china@thewrittenword.com>.
55787
55788 2007-10-14  Bruno Haible  <bruno@clisp.org>
55789
55790         * modules/iconv_open-utf-tests: New file.
55791         * tests/test-iconv-utf.c: New file.
55792
55793         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
55794         * modules/iconv_open-utf: New file.
55795         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
55796         (iconv, iconv_close): New declarations.
55797         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
55798         be defined.
55799         (iconv_open): Add special handling of conversion between UTF-8 and
55800         UTF-{16,32}{BE,LE}.
55801         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
55802         * lib/iconv_close.c: New file.
55803         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
55804         gl_FUNC_ICONV_OPEN.
55805         (gl_FUNC_ICONV_OPEN): Use it.
55806         (gl_FUNC_ICONV_OPEN_UTF): New macro.
55807         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
55808         and REPLACE_ICONV_UTF.
55809         * modules/iconv_open (Depends-on): Add c-strcase.
55810         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
55811         ICONV_CONST.
55812         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
55813
55814 2007-10-13  Albert Chin  <china@thewrittenword.com>
55815             Bruno Haible  <bruno@clisp.org>
55816
55817         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
55818         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
55819
55820 2007-10-13  Bruno Haible  <bruno@clisp.org>
55821
55822         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
55823         defined, use the ISO C99 inline semantics.
55824         * lib/argp.h (ARGP_EI): Likewise.
55825
55826 2007-10-13  Bruno Haible  <bruno@clisp.org>
55827
55828         Handle 'inline' change in gcc 4.3.0.
55829         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
55830         argp_fmtstream_write, argp_fmtstream_set_lmargin,
55831         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
55832         argp_fmtstream_point): Disable 'extern' declaration if the function
55833         definition is going to be provided inline.
55834         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
55835         semantics, not the ISO C99 inline semantics.
55836         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
55837         'extern' declaration if the function definition is going to be provided
55838         inline.
55839         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
55840         the GNU C inline semantics, not the ISO C99 inline semantics. With
55841         GCC 4.2, avoid a warning.
55842
55843 2007-10-13  Bruno Haible  <bruno@clisp.org>
55844
55845         * lib/freading.h (freading): Enable the use of __freading for
55846         glibc >= 2.7.
55847         * lib/freading.c (freading): Likewise.
55848
55849 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
55850
55851         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
55852         "warning: C99 inline functions are not supported; using GNU89".
55853
55854 2007-10-12  Bruno Haible  <bruno@clisp.org>
55855
55856         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
55857         of 2.
55858         * tests/test-ceilf2.c: New file.
55859         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
55860
55861         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
55862         * modules/ceilf-tests: Update.
55863
55864 2007-10-12  Bruno Haible  <bruno@clisp.org>
55865
55866         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
55867         of 2.
55868         * tests/test-floorf2.c: New file.
55869         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
55870
55871         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
55872         * modules/floorf-tests: Update.
55873
55874 2007-10-12  Bruno Haible  <bruno@clisp.org>
55875
55876         * tests/test-trunc2.c: New file.
55877         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
55878
55879         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
55880         * modules/trunc-tests: Update.
55881
55882 2007-10-12  Bruno Haible  <bruno@clisp.org>
55883
55884         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
55885         of 2.
55886         * tests/test-truncf2.c: New file.
55887         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
55888
55889         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
55890         * modules/truncf-tests: Update.
55891
55892 2007-10-11  Eric Blake  <ebb9@byu.net>
55893
55894         Don't claim strerror is broken on Interix.
55895         * doc/functions/strerror.texi (strerror): Known broken systems are
55896         now Solaris 8, and not Interix.
55897         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
55898         Interix on cross-compile.
55899         Reported by Martin Koeppe in
55900         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
55901
55902 2007-10-11  Bruno Haible  <bruno@clisp.org>
55903
55904         * modules/i-ring-tests: New file.
55905         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
55906         instead of assert.
55907
55908 2007-10-11  Bruno Haible  <bruno@clisp.org>
55909
55910         * modules/filenamecat-tests: New file.
55911         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
55912         * lib/filenamecat.c: Remove test code.
55913
55914 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55915
55916         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
55917
55918         * lib/strerror.c: Include <string.h> always, to test interface,
55919         and to remove the need for the dummy.
55920         Include intprops.h to compute width instead of doing it ourselves
55921         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
55922         (strerror): Define it to return NULL if there's no system strerror.
55923         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
55924         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
55925         ancient pre-strerror Unix systems well any more.  Saying "unknown
55926         system error" is enough.
55927         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
55928         simpler strerror.c implementation.
55929         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
55930         Simplify the tests to reflect the simpler strerror implementation.
55931         * modules/strerror (Depends-on): Add intprops.
55932
55933 2007-10-09  Eric Blake  <ebb9@byu.net>
55934
55935         Silence test-fpending.
55936         * modules/fpending-tests (Files): Add wrapper script.
55937         * tests/test-fpending.sh: New file.
55938
55939 2007-10-09  Bruno Haible  <bruno@clisp.org>
55940
55941         * MODULES.html.sh (func_module): Don't create a hyperlink for
55942         function names like 'printf_frexp'.
55943         (Misc): Add crc, memxor.
55944         (Characteristics of floating types): New section.
55945         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
55946         isnanf-nolibm, signbit, trunc, truncf, truncl.
55947         (Enhancements for ISO C 99 functions): New subsection Input/output.
55948         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
55949         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
55950         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
55951         (Compatibility checks for POSIX:2001 functions): Add clock-time.
55952         (Enhancements for POSIX:2001 functions): Add chdir-long.
55953         (File system functions): Add areadlink, chdir-safer, read-file.
55954         Remove cycle-check.
55955         (File system as inode set): New section.
55956         (Date and time): Add gethrxtime.
55957         (Multithreading): Add openmp.
55958         (Internationalization functions): Add localename.
55959         (Unicode string functions): Add unistr/u*-mbsnlen.
55960         (Support for maintaining and releasing projects): Add git-version-gen.
55961         (Lone files): Remove directories.
55962
55963 2007-10-08  Ben Pfaff  <blp@gnu.org>
55964
55965         * lib/xmalloca.h: Fix typo in comment.
55966
55967 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55968
55969         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
55970         when avoiding problems with integer overflow.  Use a portable test
55971         instead.
55972
55973 2007-10-08  Simon Josefsson  <simon@josefsson.org>
55974
55975         * modules/dummy (License): Change to LGPLv2+.
55976         * modules/float (License): Likewise
55977         * modules/realloc (License): Likewise
55978         * modules/stdlib (License): Likewise
55979
55980 2007-10-07  Bruno Haible  <bruno@clisp.org>
55981
55982         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
55983         * floor.c (TWO_MANT_DIG): Likewise.
55984         * ceil.c (TWO_MANT_DIG): Likewise.
55985         Reported by Ben Pfaff.
55986
55987 2007-10-07  Bruno Haible  <bruno@clisp.org>
55988
55989         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
55990         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
55991         * lib/frexp.c (FUNC): Likewise.
55992         * lib/printf-frexp.h (printf_frexp): Likewise.
55993         * lib/printf-frexpl.h (printf_frexpl): Likewise.
55994         * lib/printf-frexp.c (FUNC): Likewise.
55995         Suggested by Jim Meyering.
55996
55997 2007-10-07  Jim Meyering  <meyering@redhat.com>
55998
55999         Make xnanosleep's integer overflow test more robust.
56000         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
56001         so that gcc-4.3.0 doesn't optimize away this test for overflow.
56002
56003 2007-10-07  Bruno Haible  <bruno@clisp.org>
56004
56005         * NEWS: Mention the license change.
56006
56007         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
56008         abbreviations in the modules files.
56009
56010         Change copyright notice from GPLv2+ to GPLv3+.
56011         * README: Change copyright notice.
56012         * MODULES.html.sh: Likewise.
56013         * build-aux/bootstrap.conf: Likewise.
56014         * build-aux/config.libpath: Likewise.
56015         * build-aux/csharpcomp.sh.in: Likewise.
56016         * build-aux/csharpexec.sh.in: Likewise.
56017         * build-aux/install-reloc: Likewise.
56018         * build-aux/javacomp.sh.in: Likewise.
56019         * build-aux/javaexec.sh.in: Likewise.
56020         * build-aux/ldd.sh.in: Likewise.
56021         * build-aux/reloc-ldflags: Likewise.
56022         * build-aux/relocatable.sh.in: Likewise.
56023         * build-aux/x-to-1.in: Likewise.
56024         * check-module: Likewise.
56025         * config/srclistvars.sh: Likewise.
56026         * gnulib-tool: Likewise.
56027         * lib/acl-internal.h: Likewise.
56028         * lib/acl.c: Likewise.
56029         * lib/acl.h: Likewise.
56030         * lib/acl_entries.c: Likewise.
56031         * lib/areadlink-with-size.c: Likewise.
56032         * lib/areadlink.c: Likewise.
56033         * lib/areadlink.h: Likewise.
56034         * lib/argmatch.c: Likewise.
56035         * lib/argmatch.h: Likewise.
56036         * lib/argp-ba.c: Likewise.
56037         * lib/argp-eexst.c: Likewise.
56038         * lib/argp-fmtstream.c: Likewise.
56039         * lib/argp-fmtstream.h: Likewise.
56040         * lib/argp-fs-xinl.c: Likewise.
56041         * lib/argp-help.c: Likewise.
56042         * lib/argp-namefrob.h: Likewise.
56043         * lib/argp-parse.c: Likewise.
56044         * lib/argp-pin.c: Likewise.
56045         * lib/argp-pv.c: Likewise.
56046         * lib/argp-pvh.c: Likewise.
56047         * lib/argp-xinl.c: Likewise.
56048         * lib/argp.h: Likewise.
56049         * lib/at-func.c: Likewise.
56050         * lib/atanl.c: Likewise.
56051         * lib/backupfile.c: Likewise.
56052         * lib/backupfile.h: Likewise.
56053         * lib/basename.c: Likewise.
56054         * lib/binary-io.h: Likewise.
56055         * lib/byteswap.in.h: Likewise.
56056         * lib/c-stack.c: Likewise.
56057         * lib/c-stack.h: Likewise.
56058         * lib/c-strcasestr.c: Likewise.
56059         * lib/c-strcasestr.h: Likewise.
56060         * lib/c-strstr.c: Likewise.
56061         * lib/c-strstr.h: Likewise.
56062         * lib/c-strtod.c: Likewise.
56063         * lib/calloc.c: Likewise.
56064         * lib/canon-host.c: Likewise.
56065         * lib/canon-host.h: Likewise.
56066         * lib/canonicalize-lgpl.c: Likewise.
56067         * lib/canonicalize.c: Likewise.
56068         * lib/canonicalize.h: Likewise.
56069         * lib/ceil.c: Likewise.
56070         * lib/ceilf.c: Likewise.
56071         * lib/ceill.c: Likewise.
56072         * lib/chdir-long.c: Likewise.
56073         * lib/chdir-long.h: Likewise.
56074         * lib/chdir-safer.c: Likewise.
56075         * lib/chdir-safer.h: Likewise.
56076         * lib/chown.c: Likewise.
56077         * lib/classpath.c: Likewise.
56078         * lib/classpath.h: Likewise.
56079         * lib/clean-temp.c: Likewise.
56080         * lib/clean-temp.h: Likewise.
56081         * lib/cloexec.c: Likewise.
56082         * lib/close-stream.c: Likewise.
56083         * lib/closein.c: Likewise.
56084         * lib/closein.h: Likewise.
56085         * lib/closeout.c: Likewise.
56086         * lib/closeout.h: Likewise.
56087         * lib/concat-filename.c: Likewise.
56088         * lib/copy-file.c: Likewise.
56089         * lib/copy-file.h: Likewise.
56090         * lib/count-one-bits.h: Likewise.
56091         * lib/crc.c: Likewise.
56092         * lib/crc.h: Likewise.
56093         * lib/creat-safer.c: Likewise.
56094         * lib/csharpcomp.c: Likewise.
56095         * lib/csharpcomp.h: Likewise.
56096         * lib/csharpexec.c: Likewise.
56097         * lib/csharpexec.h: Likewise.
56098         * lib/cycle-check.c: Likewise.
56099         * lib/cycle-check.h: Likewise.
56100         * lib/diacrit.c: Likewise.
56101         * lib/diacrit.h: Likewise.
56102         * lib/diffseq.h: Likewise.
56103         * lib/dirchownmod.c: Likewise.
56104         * lib/dirent.in.h: Likewise.
56105         * lib/dirfd.c: Likewise.
56106         * lib/dirfd.h: Likewise.
56107         * lib/dirname.c: Likewise.
56108         * lib/dirname.h: Likewise.
56109         * lib/dummy.c: Likewise.
56110         * lib/dup-safer.c: Likewise.
56111         * lib/dup2.c: Likewise.
56112         * lib/eealloc.h: Likewise.
56113         * lib/error.c: Likewise.
56114         * lib/error.h: Likewise.
56115         * lib/euidaccess.c: Likewise.
56116         * lib/exclude.c: Likewise.
56117         * lib/exclude.h: Likewise.
56118         * lib/execute.c: Likewise.
56119         * lib/execute.h: Likewise.
56120         * lib/exitfail.c: Likewise.
56121         * lib/exitfail.h: Likewise.
56122         * lib/expl.c: Likewise.
56123         * lib/fatal-signal.c: Likewise.
56124         * lib/fatal-signal.h: Likewise.
56125         * lib/fbufmode.c: Likewise.
56126         * lib/fbufmode.h: Likewise.
56127         * lib/fchdir.c: Likewise.
56128         * lib/fchmodat.c: Likewise.
56129         * lib/fchownat.c: Likewise.
56130         * lib/fcntl--.h: Likewise.
56131         * lib/fcntl-safer.h: Likewise.
56132         * lib/fcntl.in.h: Likewise.
56133         * lib/fd-safer.c: Likewise.
56134         * lib/fflush.c: Likewise.
56135         * lib/file-has-acl.c: Likewise.
56136         * lib/file-set.c: Likewise.
56137         * lib/file-type.c: Likewise.
56138         * lib/file-type.h: Likewise.
56139         * lib/fileblocks.c: Likewise.
56140         * lib/filemode.c: Likewise.
56141         * lib/filemode.h: Likewise.
56142         * lib/filename.h: Likewise.
56143         * lib/filenamecat.c: Likewise.
56144         * lib/filenamecat.h: Likewise.
56145         * lib/findprog.c: Likewise.
56146         * lib/findprog.h: Likewise.
56147         * lib/float.in.h: Likewise.
56148         * lib/floor.c: Likewise.
56149         * lib/floorf.c: Likewise.
56150         * lib/floorl.c: Likewise.
56151         * lib/fopen-safer.c: Likewise.
56152         * lib/fopen.c: Likewise.
56153         * lib/fpending.c: Likewise.
56154         * lib/fpending.h: Likewise.
56155         * lib/fprintf.c: Likewise.
56156         * lib/fprintftime.h: Likewise.
56157         * lib/fpucw.h: Likewise.
56158         * lib/fpurge.c: Likewise.
56159         * lib/fpurge.h: Likewise.
56160         * lib/freadable.c: Likewise.
56161         * lib/freadable.h: Likewise.
56162         * lib/freadahead.c: Likewise.
56163         * lib/freadahead.h: Likewise.
56164         * lib/freading.c: Likewise.
56165         * lib/freading.h: Likewise.
56166         * lib/free.c: Likewise.
56167         * lib/freopen.c: Likewise.
56168         * lib/frexp.c: Likewise.
56169         * lib/frexpl.c: Likewise.
56170         * lib/fseek.c: Likewise.
56171         * lib/fseterr.c: Likewise.
56172         * lib/fseterr.h: Likewise.
56173         * lib/fstatat.c: Likewise.
56174         * lib/fstrcmp.c: Likewise.
56175         * lib/fstrcmp.h: Likewise.
56176         * lib/fsusage.c: Likewise.
56177         * lib/fsusage.h: Likewise.
56178         * lib/ftell.c: Likewise.
56179         * lib/ftello.c: Likewise.
56180         * lib/fts-cycle.c: Likewise.
56181         * lib/fts.c: Likewise.
56182         * lib/fts_.h: Likewise.
56183         * lib/full-read.c: Likewise.
56184         * lib/full-read.h: Likewise.
56185         * lib/full-write.c: Likewise.
56186         * lib/full-write.h: Likewise.
56187         * lib/fwritable.c: Likewise.
56188         * lib/fwritable.h: Likewise.
56189         * lib/fwriteerror.c: Likewise.
56190         * lib/fwriteerror.h: Likewise.
56191         * lib/fwriting.c: Likewise.
56192         * lib/fwriting.h: Likewise.
56193         * lib/gcd.c: Likewise.
56194         * lib/gcd.h: Likewise.
56195         * lib/getcwd.c: Likewise.
56196         * lib/getdate.h: Likewise.
56197         * lib/getdate.y: Likewise.
56198         * lib/getdomainname.c: Likewise.
56199         * lib/getdomainname.h: Likewise.
56200         * lib/getgroups.c: Likewise.
56201         * lib/gethostname.c: Likewise.
56202         * lib/gethrxtime.c: Likewise.
56203         * lib/gethrxtime.h: Likewise.
56204         * lib/getloadavg.c: Likewise.
56205         * lib/getndelim2.c: Likewise.
56206         * lib/getndelim2.h: Likewise.
56207         * lib/getnline.c: Likewise.
56208         * lib/getnline.h: Likewise.
56209         * lib/getopt.c: Likewise.
56210         * lib/getopt.in.h: Likewise.
56211         * lib/getopt1.c: Likewise.
56212         * lib/getopt_int.h: Likewise.
56213         * lib/getpagesize.h: Likewise.
56214         * lib/getsubopt.c: Likewise.
56215         * lib/gettime.c: Likewise.
56216         * lib/getugroups.c: Likewise.
56217         * lib/getugroups.h: Likewise.
56218         * lib/getusershell.c: Likewise.
56219         * lib/gl_anyavltree_list1.h: Likewise.
56220         * lib/gl_anyavltree_list2.h: Likewise.
56221         * lib/gl_anyhash_list1.h: Likewise.
56222         * lib/gl_anyhash_list2.h: Likewise.
56223         * lib/gl_anylinked_list1.h: Likewise.
56224         * lib/gl_anylinked_list2.h: Likewise.
56225         * lib/gl_anyrbtree_list1.h: Likewise.
56226         * lib/gl_anyrbtree_list2.h: Likewise.
56227         * lib/gl_anytree_list1.h: Likewise.
56228         * lib/gl_anytree_list2.h: Likewise.
56229         * lib/gl_anytree_oset.h: Likewise.
56230         * lib/gl_anytreehash_list1.h: Likewise.
56231         * lib/gl_anytreehash_list2.h: Likewise.
56232         * lib/gl_array_list.c: Likewise.
56233         * lib/gl_array_list.h: Likewise.
56234         * lib/gl_array_oset.c: Likewise.
56235         * lib/gl_array_oset.h: Likewise.
56236         * lib/gl_avltree_list.c: Likewise.
56237         * lib/gl_avltree_list.h: Likewise.
56238         * lib/gl_avltree_oset.c: Likewise.
56239         * lib/gl_avltree_oset.h: Likewise.
56240         * lib/gl_avltreehash_list.c: Likewise.
56241         * lib/gl_avltreehash_list.h: Likewise.
56242         * lib/gl_carray_list.c: Likewise.
56243         * lib/gl_carray_list.h: Likewise.
56244         * lib/gl_linked_list.c: Likewise.
56245         * lib/gl_linked_list.h: Likewise.
56246         * lib/gl_linkedhash_list.c: Likewise.
56247         * lib/gl_linkedhash_list.h: Likewise.
56248         * lib/gl_list.c: Likewise.
56249         * lib/gl_list.h: Likewise.
56250         * lib/gl_oset.c: Likewise.
56251         * lib/gl_oset.h: Likewise.
56252         * lib/gl_rbtree_list.c: Likewise.
56253         * lib/gl_rbtree_list.h: Likewise.
56254         * lib/gl_rbtree_oset.c: Likewise.
56255         * lib/gl_rbtree_oset.h: Likewise.
56256         * lib/gl_rbtreehash_list.c: Likewise.
56257         * lib/gl_rbtreehash_list.h: Likewise.
56258         * lib/gl_sublist.c: Likewise.
56259         * lib/gl_sublist.h: Likewise.
56260         * lib/group-member.c: Likewise.
56261         * lib/group-member.h: Likewise.
56262         * lib/hard-locale.c: Likewise.
56263         * lib/hard-locale.h: Likewise.
56264         * lib/hash-pjw.c: Likewise.
56265         * lib/hash-pjw.h: Likewise.
56266         * lib/hash-triple.c: Likewise.
56267         * lib/hash.c: Likewise.
56268         * lib/hash.h: Likewise.
56269         * lib/human.c: Likewise.
56270         * lib/human.h: Likewise.
56271         * lib/i-ring.c: Likewise.
56272         * lib/i-ring.h: Likewise.
56273         * lib/idcache.c: Likewise.
56274         * lib/imaxabs.c: Likewise.
56275         * lib/imaxdiv.c: Likewise.
56276         * lib/inet_pton.c: Likewise.
56277         * lib/inet_pton.h: Likewise.
56278         * lib/intprops.h: Likewise.
56279         * lib/inttostr.c: Likewise.
56280         * lib/inttostr.h: Likewise.
56281         * lib/inttypes.in.h: Likewise.
56282         * lib/isapipe.c: Likewise.
56283         * lib/isdir.c: Likewise.
56284         * lib/isnan.c: Likewise.
56285         * lib/isnan.h: Likewise.
56286         * lib/isnanf.c: Likewise.
56287         * lib/isnanf.h: Likewise.
56288         * lib/isnanl-nolibm.h: Likewise.
56289         * lib/isnanl.c: Likewise.
56290         * lib/isnanl.h: Likewise.
56291         * lib/javacomp.c: Likewise.
56292         * lib/javacomp.h: Likewise.
56293         * lib/javaexec.c: Likewise.
56294         * lib/javaexec.h: Likewise.
56295         * lib/javaversion.c: Likewise.
56296         * lib/javaversion.h: Likewise.
56297         * lib/javaversion.java: Likewise.
56298         * lib/lbrkprop.h: Likewise.
56299         * lib/lchmod.h: Likewise.
56300         * lib/lchown.c: Likewise.
56301         * lib/ldexpl.c: Likewise.
56302         * lib/linebreak.c: Likewise.
56303         * lib/linebreak.h: Likewise.
56304         * lib/linebuffer.c: Likewise.
56305         * lib/linebuffer.h: Likewise.
56306         * lib/locale.in.h: Likewise.
56307         * lib/logl.c: Likewise.
56308         * lib/long-options.c: Likewise.
56309         * lib/long-options.h: Likewise.
56310         * lib/lstat.c: Likewise.
56311         * lib/lstat.h: Likewise.
56312         * lib/math.in.h: Likewise.
56313         * lib/mbchar.c: Likewise.
56314         * lib/mbchar.h: Likewise.
56315         * lib/mbfile.h: Likewise.
56316         * lib/mbiter.h: Likewise.
56317         * lib/mbscasecmp.c: Likewise.
56318         * lib/mbscasestr.c: Likewise.
56319         * lib/mbschr.c: Likewise.
56320         * lib/mbscspn.c: Likewise.
56321         * lib/mbslen.c: Likewise.
56322         * lib/mbsncasecmp.c: Likewise.
56323         * lib/mbsnlen.c: Likewise.
56324         * lib/mbspbrk.c: Likewise.
56325         * lib/mbspcasecmp.c: Likewise.
56326         * lib/mbsrchr.c: Likewise.
56327         * lib/mbssep.c: Likewise.
56328         * lib/mbsspn.c: Likewise.
56329         * lib/mbsstr.c: Likewise.
56330         * lib/mbstok_r.c: Likewise.
56331         * lib/mbswidth.c: Likewise.
56332         * lib/mbswidth.h: Likewise.
56333         * lib/mbuiter.h: Likewise.
56334         * lib/memcasecmp.c: Likewise.
56335         * lib/memcasecmp.h: Likewise.
56336         * lib/memchr.c: Likewise.
56337         * lib/memcmp.c: Likewise.
56338         * lib/memcoll.c: Likewise.
56339         * lib/memcoll.h: Likewise.
56340         * lib/memcpy.c: Likewise.
56341         * lib/memrchr.c: Likewise.
56342         * lib/mkancesdirs.c: Likewise.
56343         * lib/mkdir-p.c: Likewise.
56344         * lib/mkdir-p.h: Likewise.
56345         * lib/mkdir.c: Likewise.
56346         * lib/mkdirat.c: Likewise.
56347         * lib/mkdtemp.c: Likewise.
56348         * lib/mkstemp-safer.c: Likewise.
56349         * lib/mkstemp.c: Likewise.
56350         * lib/modechange.c: Likewise.
56351         * lib/modechange.h: Likewise.
56352         * lib/mountlist.c: Likewise.
56353         * lib/mountlist.h: Likewise.
56354         * lib/mpsort.c: Likewise.
56355         * lib/nanosleep.c: Likewise.
56356         * lib/obstack.c: Likewise.
56357         * lib/obstack.h: Likewise.
56358         * lib/open-safer.c: Likewise.
56359         * lib/open.c: Likewise.
56360         * lib/openat-die.c: Likewise.
56361         * lib/openat-priv.h: Likewise.
56362         * lib/openat-proc.c: Likewise.
56363         * lib/openat.c: Likewise.
56364         * lib/openat.h: Likewise.
56365         * lib/pagealign_alloc.c: Likewise.
56366         * lib/pagealign_alloc.h: Likewise.
56367         * lib/physmem.c: Likewise.
56368         * lib/physmem.h: Likewise.
56369         * lib/pipe-safer.c: Likewise.
56370         * lib/pipe.c: Likewise.
56371         * lib/pipe.h: Likewise.
56372         * lib/posixtm.c: Likewise.
56373         * lib/posixtm.h: Likewise.
56374         * lib/posixver.c: Likewise.
56375         * lib/printf-frexp.c: Likewise.
56376         * lib/printf-frexp.h: Likewise.
56377         * lib/printf-frexpl.c: Likewise.
56378         * lib/printf-frexpl.h: Likewise.
56379         * lib/printf.c: Likewise.
56380         * lib/progname.c: Likewise.
56381         * lib/progname.h: Likewise.
56382         * lib/progreloc.c: Likewise.
56383         * lib/putenv.c: Likewise.
56384         * lib/quote.c: Likewise.
56385         * lib/quote.h: Likewise.
56386         * lib/quotearg.c: Likewise.
56387         * lib/quotearg.h: Likewise.
56388         * lib/raise.c: Likewise.
56389         * lib/readline.c: Likewise.
56390         * lib/readline.h: Likewise.
56391         * lib/readlink.c: Likewise.
56392         * lib/readtokens.c: Likewise.
56393         * lib/readtokens.h: Likewise.
56394         * lib/readtokens0.c: Likewise.
56395         * lib/readtokens0.h: Likewise.
56396         * lib/readutmp.c: Likewise.
56397         * lib/readutmp.h: Likewise.
56398         * lib/realloc.c: Likewise.
56399         * lib/relocwrapper.c: Likewise.
56400         * lib/rename-dest-slash.c: Likewise.
56401         * lib/rename.c: Likewise.
56402         * lib/rmdir.c: Likewise.
56403         * lib/rpmatch.c: Likewise.
56404         * lib/safe-read.c: Likewise.
56405         * lib/safe-read.h: Likewise.
56406         * lib/safe-write.c: Likewise.
56407         * lib/safe-write.h: Likewise.
56408         * lib/same-inode.h: Likewise.
56409         * lib/same.c: Likewise.
56410         * lib/same.h: Likewise.
56411         * lib/save-cwd.c: Likewise.
56412         * lib/save-cwd.h: Likewise.
56413         * lib/savedir.c: Likewise.
56414         * lib/savedir.h: Likewise.
56415         * lib/savewd.c: Likewise.
56416         * lib/savewd.h: Likewise.
56417         * lib/search.in.h: Likewise.
56418         * lib/setenv.c: Likewise.
56419         * lib/setenv.h: Likewise.
56420         * lib/settime.c: Likewise.
56421         * lib/sh-quote.c: Likewise.
56422         * lib/sh-quote.h: Likewise.
56423         * lib/sig2str.c: Likewise.
56424         * lib/sig2str.h: Likewise.
56425         * lib/signal.in.h: Likewise.
56426         * lib/signbitd.c: Likewise.
56427         * lib/signbitf.c: Likewise.
56428         * lib/signbitl.c: Likewise.
56429         * lib/sigprocmask.c: Likewise.
56430         * lib/sincosl.c: Likewise.
56431         * lib/sleep.c: Likewise.
56432         * lib/sprintf.c: Likewise.
56433         * lib/sqrtl.c: Likewise.
56434         * lib/stat-time.h: Likewise.
56435         * lib/stdio--.h: Likewise.
56436         * lib/stdio-safer.h: Likewise.
56437         * lib/stdlib--.h: Likewise.
56438         * lib/stdlib-safer.h: Likewise.
56439         * lib/stdlib.in.h: Likewise.
56440         * lib/stpcpy.c: Likewise.
56441         * lib/stpncpy.c: Likewise.
56442         * lib/strchrnul.c: Likewise.
56443         * lib/strcspn.c: Likewise.
56444         * lib/strerror.c: Likewise.
56445         * lib/strftime.c: Likewise.
56446         * lib/strftime.h: Likewise.
56447         * lib/striconveh.c: Likewise.
56448         * lib/striconveh.h: Likewise.
56449         * lib/striconveha.c: Likewise.
56450         * lib/striconveha.h: Likewise.
56451         * lib/stripslash.c: Likewise.
56452         * lib/strnlen1.c: Likewise.
56453         * lib/strnlen1.h: Likewise.
56454         * lib/strtod.c: Likewise.
56455         * lib/strtoimax.c: Likewise.
56456         * lib/strtok_r.c: Likewise.
56457         * lib/strtol.c: Likewise.
56458         * lib/strtoll.c: Likewise.
56459         * lib/strtoul.c: Likewise.
56460         * lib/strtoull.c: Likewise.
56461         * lib/sysexits.in.h: Likewise.
56462         * lib/tempname.c: Likewise.
56463         * lib/tempname.h: Likewise.
56464         * lib/timespec.h: Likewise.
56465         * lib/tls.c: Likewise.
56466         * lib/tls.h: Likewise.
56467         * lib/tmpdir.c: Likewise.
56468         * lib/tmpdir.h: Likewise.
56469         * lib/tmpfile-safer.c: Likewise.
56470         * lib/tmpfile.c: Likewise.
56471         * lib/trigl.c: Likewise.
56472         * lib/trigl.h: Likewise.
56473         * lib/trim.c: Likewise.
56474         * lib/trim.h: Likewise.
56475         * lib/trunc.c: Likewise.
56476         * lib/truncf.c: Likewise.
56477         * lib/truncl.c: Likewise.
56478         * lib/tsearch.c: Likewise.
56479         * lib/unicodeio.c: Likewise.
56480         * lib/unicodeio.h: Likewise.
56481         * lib/unistd--.h: Likewise.
56482         * lib/unistd-safer.h: Likewise.
56483         * lib/unistdio/ulc-fprintf.c: Likewise.
56484         * lib/unistdio/ulc-vfprintf.c: Likewise.
56485         * lib/unlinkdir.c: Likewise.
56486         * lib/unlinkdir.h: Likewise.
56487         * lib/unlocked-io.h: Likewise.
56488         * lib/unsetenv.c: Likewise.
56489         * lib/userspec.c: Likewise.
56490         * lib/utime.c: Likewise.
56491         * lib/utimecmp.c: Likewise.
56492         * lib/utimecmp.h: Likewise.
56493         * lib/utimens.c: Likewise.
56494         * lib/verify.h: Likewise.
56495         * lib/verror.c: Likewise.
56496         * lib/verror.h: Likewise.
56497         * lib/version-etc-fsf.c: Likewise.
56498         * lib/version-etc.c: Likewise.
56499         * lib/version-etc.h: Likewise.
56500         * lib/vfprintf.c: Likewise.
56501         * lib/vprintf.c: Likewise.
56502         * lib/vsprintf.c: Likewise.
56503         * lib/w32spawn.h: Likewise.
56504         * lib/wait-process.c: Likewise.
56505         * lib/wait-process.h: Likewise.
56506         * lib/wcwidth.c: Likewise.
56507         * lib/write-any-file.c: Likewise.
56508         * lib/xalloc-die.c: Likewise.
56509         * lib/xalloc.h: Likewise.
56510         * lib/xasprintf.c: Likewise.
56511         * lib/xgetcwd.c: Likewise.
56512         * lib/xgetcwd.h: Likewise.
56513         * lib/xgetdomainname.c: Likewise.
56514         * lib/xgetdomainname.h: Likewise.
56515         * lib/xgethostname.c: Likewise.
56516         * lib/xmalloc.c: Likewise.
56517         * lib/xmalloca.c: Likewise.
56518         * lib/xmalloca.h: Likewise.
56519         * lib/xmemcoll.c: Likewise.
56520         * lib/xnanosleep.c: Likewise.
56521         * lib/xreadlink.c: Likewise.
56522         * lib/xreadlink.h: Likewise.
56523         * lib/xsetenv.c: Likewise.
56524         * lib/xsetenv.h: Likewise.
56525         * lib/xstriconv.c: Likewise.
56526         * lib/xstriconv.h: Likewise.
56527         * lib/xstrndup.c: Likewise.
56528         * lib/xstrndup.h: Likewise.
56529         * lib/xstrtod.c: Likewise.
56530         * lib/xstrtod.h: Likewise.
56531         * lib/xstrtol-error.c: Likewise.
56532         * lib/xstrtol.c: Likewise.
56533         * lib/xstrtol.h: Likewise.
56534         * lib/xtime.h: Likewise.
56535         * lib/xvasprintf.c: Likewise.
56536         * lib/xvasprintf.h: Likewise.
56537         * lib/yesno.c: Likewise.
56538         * lib/yesno.h: Likewise.
56539         * posix-modules: Likewise.
56540         * tests/test-alloca-opt.c: Likewise.
56541         * tests/test-arcfour.c: Likewise.
56542         * tests/test-arctwo.c: Likewise.
56543         * tests/test-argmatch.c: Likewise.
56544         * tests/test-argp-2.sh: Likewise.
56545         * tests/test-argp.c: Likewise.
56546         * tests/test-arpa_inet.c: Likewise.
56547         * tests/test-array_list.c: Likewise.
56548         * tests/test-array_oset.c: Likewise.
56549         * tests/test-atexit.c: Likewise.
56550         * tests/test-avltree_list.c: Likewise.
56551         * tests/test-avltree_oset.c: Likewise.
56552         * tests/test-avltreehash_list.c: Likewise.
56553         * tests/test-base64.c: Likewise.
56554         * tests/test-binary-io.c: Likewise.
56555         * tests/test-byteswap.c: Likewise.
56556         * tests/test-c-ctype.c: Likewise.
56557         * tests/test-c-strcasecmp.c: Likewise.
56558         * tests/test-c-strcasestr.c: Likewise.
56559         * tests/test-c-strncasecmp.c: Likewise.
56560         * tests/test-c-strstr.c: Likewise.
56561         * tests/test-canonicalize-lgpl.c: Likewise.
56562         * tests/test-canonicalize.c: Likewise.
56563         * tests/test-carray_list.c: Likewise.
56564         * tests/test-ceilf.c: Likewise.
56565         * tests/test-ceill.c: Likewise.
56566         * tests/test-count-one-bits.c: Likewise.
56567         * tests/test-crc.c: Likewise.
56568         * tests/test-dirname.c: Likewise.
56569         * tests/test-fbufmode.c: Likewise.
56570         * tests/test-fcntl.c: Likewise.
56571         * tests/test-fflush.c: Likewise.
56572         * tests/test-floorf.c: Likewise.
56573         * tests/test-floorl.c: Likewise.
56574         * tests/test-fopen.c: Likewise.
56575         * tests/test-fprintf-posix.c: Likewise.
56576         * tests/test-fprintf-posix.h: Likewise.
56577         * tests/test-fpurge.c: Likewise.
56578         * tests/test-freadable.c: Likewise.
56579         * tests/test-freadahead.c: Likewise.
56580         * tests/test-freading.c: Likewise.
56581         * tests/test-freopen.c: Likewise.
56582         * tests/test-frexp.c: Likewise.
56583         * tests/test-frexpl.c: Likewise.
56584         * tests/test-fseek.c: Likewise.
56585         * tests/test-fseeko.c: Likewise.
56586         * tests/test-fseterr.c: Likewise.
56587         * tests/test-fstrcmp.c: Likewise.
56588         * tests/test-ftell.c: Likewise.
56589         * tests/test-ftello.c: Likewise.
56590         * tests/test-fwritable.c: Likewise.
56591         * tests/test-fwriting.c: Likewise.
56592         * tests/test-getaddrinfo.c: Likewise.
56593         * tests/test-getpass.c: Likewise.
56594         * tests/test-gettimeofday.c: Likewise.
56595         * tests/test-hmac-md5.c: Likewise.
56596         * tests/test-hmac-sha1.c: Likewise.
56597         * tests/test-iconv.c: Likewise.
56598         * tests/test-iconvme.c: Likewise.
56599         * tests/test-inttypes.c: Likewise.
56600         * tests/test-isnan.c: Likewise.
56601         * tests/test-isnanf.c: Likewise.
56602         * tests/test-isnanl-nolibm.c: Likewise.
56603         * tests/test-isnanl.c: Likewise.
56604         * tests/test-isnanl.h: Likewise.
56605         * tests/test-ldexpl.c: Likewise.
56606         * tests/test-linked_list.c: Likewise.
56607         * tests/test-linkedhash_list.c: Likewise.
56608         * tests/test-locale.c: Likewise.
56609         * tests/test-localename.c: Likewise.
56610         * tests/test-lock.c: Likewise.
56611         * tests/test-lseek.c: Likewise.
56612         * tests/test-malloca.c: Likewise.
56613         * tests/test-math.c: Likewise.
56614         * tests/test-mbscasecmp.c: Likewise.
56615         * tests/test-mbscasestr1.c: Likewise.
56616         * tests/test-mbscasestr2.c: Likewise.
56617         * tests/test-mbscasestr3.c: Likewise.
56618         * tests/test-mbscasestr4.c: Likewise.
56619         * tests/test-mbschr.c: Likewise.
56620         * tests/test-mbscspn.c: Likewise.
56621         * tests/test-mbsncasecmp.c: Likewise.
56622         * tests/test-mbspbrk.c: Likewise.
56623         * tests/test-mbspcasecmp.c: Likewise.
56624         * tests/test-mbsrchr.c: Likewise.
56625         * tests/test-mbsspn.c: Likewise.
56626         * tests/test-mbsstr1.c: Likewise.
56627         * tests/test-mbsstr2.c: Likewise.
56628         * tests/test-mbsstr3.c: Likewise.
56629         * tests/test-md5.c: Likewise.
56630         * tests/test-memmem.c: Likewise.
56631         * tests/test-netinet_in.c: Likewise.
56632         * tests/test-open.c: Likewise.
56633         * tests/test-printf-frexp.c: Likewise.
56634         * tests/test-printf-frexpl.c: Likewise.
56635         * tests/test-printf-posix.c: Likewise.
56636         * tests/test-printf-posix.h: Likewise.
56637         * tests/test-rbtree_list.c: Likewise.
56638         * tests/test-rbtree_oset.c: Likewise.
56639         * tests/test-rbtreehash_list.c: Likewise.
56640         * tests/test-read-file.c: Likewise.
56641         * tests/test-rijndael.c: Likewise.
56642         * tests/test-search.c: Likewise.
56643         * tests/test-signbit.c: Likewise.
56644         * tests/test-sleep.c: Likewise.
56645         * tests/test-snprintf-posix.c: Likewise.
56646         * tests/test-snprintf-posix.h: Likewise.
56647         * tests/test-snprintf.c: Likewise.
56648         * tests/test-sprintf-posix.c: Likewise.
56649         * tests/test-sprintf-posix.h: Likewise.
56650         * tests/test-stat-time.c: Likewise.
56651         * tests/test-stdbool.c: Likewise.
56652         * tests/test-stdint.c: Likewise.
56653         * tests/test-stdio.c: Likewise.
56654         * tests/test-stdlib.c: Likewise.
56655         * tests/test-stpncpy.c: Likewise.
56656         * tests/test-strcasestr.c: Likewise.
56657         * tests/test-striconv.c: Likewise.
56658         * tests/test-striconveh.c: Likewise.
56659         * tests/test-striconveha.c: Likewise.
56660         * tests/test-string.c: Likewise.
56661         * tests/test-sys_select.c: Likewise.
56662         * tests/test-sys_socket.c: Likewise.
56663         * tests/test-sys_stat.c: Likewise.
56664         * tests/test-sys_time.c: Likewise.
56665         * tests/test-sysexits.c: Likewise.
56666         * tests/test-time.c: Likewise.
56667         * tests/test-tls.c: Likewise.
56668         * tests/test-trunc.c: Likewise.
56669         * tests/test-truncf.c: Likewise.
56670         * tests/test-truncl.c: Likewise.
56671         * tests/test-unistd.c: Likewise.
56672         * tests/test-vasnprintf-posix.c: Likewise.
56673         * tests/test-vasnprintf-posix2.c: Likewise.
56674         * tests/test-vasnprintf.c: Likewise.
56675         * tests/test-vasprintf-posix.c: Likewise.
56676         * tests/test-vasprintf.c: Likewise.
56677         * tests/test-verify.c: Likewise.
56678         * tests/test-vfprintf-posix.c: Likewise.
56679         * tests/test-vprintf-posix.c: Likewise.
56680         * tests/test-vsnprintf-posix.c: Likewise.
56681         * tests/test-vsnprintf.c: Likewise.
56682         * tests/test-vsprintf-posix.c: Likewise.
56683         * tests/test-wchar.c: Likewise.
56684         * tests/test-wctype.c: Likewise.
56685         * tests/test-wcwidth.c: Likewise.
56686         * tests/test-xstrtol.c: Likewise.
56687         * tests/test-xvasprintf.c: Likewise.
56688         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
56689         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
56690         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
56691         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
56692         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
56693         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
56694         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
56695         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
56696         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
56697         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
56698         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
56699         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
56700         * tests/uniname/test-uninames.c: Likewise.
56701         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
56702         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
56703         * tests/unistdio/test-u16-printf1.h: Likewise.
56704         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
56705         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
56706         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
56707         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
56708         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
56709         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
56710         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
56711         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
56712         * tests/unistdio/test-u32-printf1.h: Likewise.
56713         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
56714         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
56715         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
56716         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
56717         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
56718         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
56719         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
56720         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
56721         * tests/unistdio/test-u8-printf1.h: Likewise.
56722         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
56723         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
56724         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
56725         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
56726         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
56727         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
56728         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
56729         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
56730         * tests/unistdio/test-ulc-printf1.h: Likewise.
56731         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
56732         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
56733         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
56734         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
56735         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
56736         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
56737         * tests/uniwidth/test-u16-strwidth.c: Likewise.
56738         * tests/uniwidth/test-u16-width.c: Likewise.
56739         * tests/uniwidth/test-u32-strwidth.c: Likewise.
56740         * tests/uniwidth/test-u32-width.c: Likewise.
56741         * tests/uniwidth/test-u8-strwidth.c: Likewise.
56742         * tests/uniwidth/test-u8-width.c: Likewise.
56743         * tests/uniwidth/test-uc_width.c: Likewise.
56744         * config/srclist-update: Likewise.
56745         (fixlicense): Update to GPLv3+.
56746
56747         Change copyright notice from LGPLv2.1+ to LGPLv3+.
56748         * tests/test-tsearch.c: Change copyright notice.
56749
56750         Change copyright notice from LGPLv2.0+ to LGPLv3+.
56751         * lib/c-strcaseeq.h: Change copyright notice.
56752         * lib/streq.h: Likewise.
56753         * lib/uniconv.h: Likewise.
56754         * lib/uniconv/u-conv-from-enc.h: Likewise.
56755         * lib/uniconv/u-conv-to-enc.h: Likewise.
56756         * lib/uniconv/u-strconv-from-enc.h: Likewise.
56757         * lib/uniconv/u-strconv-to-enc.h: Likewise.
56758         * lib/uniconv/u16-conv-from-enc.c: Likewise.
56759         * lib/uniconv/u16-conv-to-enc.c: Likewise.
56760         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
56761         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
56762         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
56763         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
56764         * lib/uniconv/u32-conv-from-enc.c: Likewise.
56765         * lib/uniconv/u32-conv-to-enc.c: Likewise.
56766         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
56767         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
56768         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
56769         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
56770         * lib/uniconv/u8-conv-from-enc.c: Likewise.
56771         * lib/uniconv/u8-conv-to-enc.c: Likewise.
56772         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
56773         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
56774         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
56775         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
56776         * lib/uniname.h: Likewise.
56777         * lib/uniname/uniname.c: Likewise.
56778         * lib/unistdio.h: Likewise.
56779         * lib/unistdio/u-asnprintf.h: Likewise.
56780         * lib/unistdio/u-asprintf.h: Likewise.
56781         * lib/unistdio/u-printf-args.c: Likewise.
56782         * lib/unistdio/u-printf-args.h: Likewise.
56783         * lib/unistdio/u-printf-parse.h: Likewise.
56784         * lib/unistdio/u-snprintf.h: Likewise.
56785         * lib/unistdio/u-sprintf.h: Likewise.
56786         * lib/unistdio/u-vasprintf.h: Likewise.
56787         * lib/unistdio/u-vsnprintf.h: Likewise.
56788         * lib/unistdio/u-vsprintf.h: Likewise.
56789         * lib/unistdio/u16-asnprintf.c: Likewise.
56790         * lib/unistdio/u16-asprintf.c: Likewise.
56791         * lib/unistdio/u16-printf-parse.c: Likewise.
56792         * lib/unistdio/u16-snprintf.c: Likewise.
56793         * lib/unistdio/u16-sprintf.c: Likewise.
56794         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
56795         * lib/unistdio/u16-u16-asprintf.c: Likewise.
56796         * lib/unistdio/u16-u16-snprintf.c: Likewise.
56797         * lib/unistdio/u16-u16-sprintf.c: Likewise.
56798         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
56799         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
56800         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
56801         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
56802         * lib/unistdio/u16-vasnprintf.c: Likewise.
56803         * lib/unistdio/u16-vasprintf.c: Likewise.
56804         * lib/unistdio/u16-vsnprintf.c: Likewise.
56805         * lib/unistdio/u16-vsprintf.c: Likewise.
56806         * lib/unistdio/u32-asnprintf.c: Likewise.
56807         * lib/unistdio/u32-asprintf.c: Likewise.
56808         * lib/unistdio/u32-printf-parse.c: Likewise.
56809         * lib/unistdio/u32-snprintf.c: Likewise.
56810         * lib/unistdio/u32-sprintf.c: Likewise.
56811         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
56812         * lib/unistdio/u32-u32-asprintf.c: Likewise.
56813         * lib/unistdio/u32-u32-snprintf.c: Likewise.
56814         * lib/unistdio/u32-u32-sprintf.c: Likewise.
56815         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
56816         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
56817         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
56818         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
56819         * lib/unistdio/u32-vasnprintf.c: Likewise.
56820         * lib/unistdio/u32-vasprintf.c: Likewise.
56821         * lib/unistdio/u32-vsnprintf.c: Likewise.
56822         * lib/unistdio/u32-vsprintf.c: Likewise.
56823         * lib/unistdio/u8-asnprintf.c: Likewise.
56824         * lib/unistdio/u8-asprintf.c: Likewise.
56825         * lib/unistdio/u8-printf-parse.c: Likewise.
56826         * lib/unistdio/u8-snprintf.c: Likewise.
56827         * lib/unistdio/u8-sprintf.c: Likewise.
56828         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
56829         * lib/unistdio/u8-u8-asprintf.c: Likewise.
56830         * lib/unistdio/u8-u8-snprintf.c: Likewise.
56831         * lib/unistdio/u8-u8-sprintf.c: Likewise.
56832         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
56833         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
56834         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
56835         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
56836         * lib/unistdio/u8-vasnprintf.c: Likewise.
56837         * lib/unistdio/u8-vasprintf.c: Likewise.
56838         * lib/unistdio/u8-vsnprintf.c: Likewise.
56839         * lib/unistdio/u8-vsprintf.c: Likewise.
56840         * lib/unistdio/ulc-asnprintf.c: Likewise.
56841         * lib/unistdio/ulc-asprintf.c: Likewise.
56842         * lib/unistdio/ulc-printf-parse.c: Likewise.
56843         * lib/unistdio/ulc-snprintf.c: Likewise.
56844         * lib/unistdio/ulc-sprintf.c: Likewise.
56845         * lib/unistdio/ulc-vasnprintf.c: Likewise.
56846         * lib/unistdio/ulc-vasprintf.c: Likewise.
56847         * lib/unistdio/ulc-vsnprintf.c: Likewise.
56848         * lib/unistdio/ulc-vsprintf.c: Likewise.
56849         * lib/unistr.h: Likewise.
56850         * lib/unistr/u-cpy-alloc.h: Likewise.
56851         * lib/unistr/u-cpy.h: Likewise.
56852         * lib/unistr/u-endswith.h: Likewise.
56853         * lib/unistr/u-move.h: Likewise.
56854         * lib/unistr/u-set.h: Likewise.
56855         * lib/unistr/u-startswith.h: Likewise.
56856         * lib/unistr/u-stpcpy.h: Likewise.
56857         * lib/unistr/u-stpncpy.h: Likewise.
56858         * lib/unistr/u-strcat.h: Likewise.
56859         * lib/unistr/u-strcpy.h: Likewise.
56860         * lib/unistr/u-strcspn.h: Likewise.
56861         * lib/unistr/u-strdup.h: Likewise.
56862         * lib/unistr/u-strlen.h: Likewise.
56863         * lib/unistr/u-strncat.h: Likewise.
56864         * lib/unistr/u-strncpy.h: Likewise.
56865         * lib/unistr/u-strnlen.h: Likewise.
56866         * lib/unistr/u-strpbrk.h: Likewise.
56867         * lib/unistr/u-strspn.h: Likewise.
56868         * lib/unistr/u-strstr.h: Likewise.
56869         * lib/unistr/u-strtok.h: Likewise.
56870         * lib/unistr/u16-check.c: Likewise.
56871         * lib/unistr/u16-chr.c: Likewise.
56872         * lib/unistr/u16-cmp.c: Likewise.
56873         * lib/unistr/u16-cpy-alloc.c: Likewise.
56874         * lib/unistr/u16-cpy.c: Likewise.
56875         * lib/unistr/u16-endswith.c: Likewise.
56876         * lib/unistr/u16-mblen.c: Likewise.
56877         * lib/unistr/u16-mbsnlen.c: Likewise.
56878         * lib/unistr/u16-mbtouc-aux.c: Likewise.
56879         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
56880         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
56881         * lib/unistr/u16-mbtouc.c: Likewise.
56882         * lib/unistr/u16-mbtoucr.c: Likewise.
56883         * lib/unistr/u16-move.c: Likewise.
56884         * lib/unistr/u16-next.c: Likewise.
56885         * lib/unistr/u16-prev.c: Likewise.
56886         * lib/unistr/u16-set.c: Likewise.
56887         * lib/unistr/u16-startswith.c: Likewise.
56888         * lib/unistr/u16-stpcpy.c: Likewise.
56889         * lib/unistr/u16-stpncpy.c: Likewise.
56890         * lib/unistr/u16-strcat.c: Likewise.
56891         * lib/unistr/u16-strchr.c: Likewise.
56892         * lib/unistr/u16-strcmp.c: Likewise.
56893         * lib/unistr/u16-strcpy.c: Likewise.
56894         * lib/unistr/u16-strcspn.c: Likewise.
56895         * lib/unistr/u16-strdup.c: Likewise.
56896         * lib/unistr/u16-strlen.c: Likewise.
56897         * lib/unistr/u16-strmblen.c: Likewise.
56898         * lib/unistr/u16-strmbtouc.c: Likewise.
56899         * lib/unistr/u16-strncat.c: Likewise.
56900         * lib/unistr/u16-strncmp.c: Likewise.
56901         * lib/unistr/u16-strncpy.c: Likewise.
56902         * lib/unistr/u16-strnlen.c: Likewise.
56903         * lib/unistr/u16-strpbrk.c: Likewise.
56904         * lib/unistr/u16-strrchr.c: Likewise.
56905         * lib/unistr/u16-strspn.c: Likewise.
56906         * lib/unistr/u16-strstr.c: Likewise.
56907         * lib/unistr/u16-strtok.c: Likewise.
56908         * lib/unistr/u16-to-u32.c: Likewise.
56909         * lib/unistr/u16-to-u8.c: Likewise.
56910         * lib/unistr/u16-uctomb-aux.c: Likewise.
56911         * lib/unistr/u16-uctomb.c: Likewise.
56912         * lib/unistr/u32-check.c: Likewise.
56913         * lib/unistr/u32-chr.c: Likewise.
56914         * lib/unistr/u32-cmp.c: Likewise.
56915         * lib/unistr/u32-cpy-alloc.c: Likewise.
56916         * lib/unistr/u32-cpy.c: Likewise.
56917         * lib/unistr/u32-endswith.c: Likewise.
56918         * lib/unistr/u32-mblen.c: Likewise.
56919         * lib/unistr/u32-mbsnlen.c: Likewise.
56920         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
56921         * lib/unistr/u32-mbtouc.c: Likewise.
56922         * lib/unistr/u32-mbtoucr.c: Likewise.
56923         * lib/unistr/u32-move.c: Likewise.
56924         * lib/unistr/u32-next.c: Likewise.
56925         * lib/unistr/u32-prev.c: Likewise.
56926         * lib/unistr/u32-set.c: Likewise.
56927         * lib/unistr/u32-startswith.c: Likewise.
56928         * lib/unistr/u32-stpcpy.c: Likewise.
56929         * lib/unistr/u32-stpncpy.c: Likewise.
56930         * lib/unistr/u32-strcat.c: Likewise.
56931         * lib/unistr/u32-strchr.c: Likewise.
56932         * lib/unistr/u32-strcmp.c: Likewise.
56933         * lib/unistr/u32-strcpy.c: Likewise.
56934         * lib/unistr/u32-strcspn.c: Likewise.
56935         * lib/unistr/u32-strdup.c: Likewise.
56936         * lib/unistr/u32-strlen.c: Likewise.
56937         * lib/unistr/u32-strmblen.c: Likewise.
56938         * lib/unistr/u32-strmbtouc.c: Likewise.
56939         * lib/unistr/u32-strncat.c: Likewise.
56940         * lib/unistr/u32-strncmp.c: Likewise.
56941         * lib/unistr/u32-strncpy.c: Likewise.
56942         * lib/unistr/u32-strnlen.c: Likewise.
56943         * lib/unistr/u32-strpbrk.c: Likewise.
56944         * lib/unistr/u32-strrchr.c: Likewise.
56945         * lib/unistr/u32-strspn.c: Likewise.
56946         * lib/unistr/u32-strstr.c: Likewise.
56947         * lib/unistr/u32-strtok.c: Likewise.
56948         * lib/unistr/u32-to-u16.c: Likewise.
56949         * lib/unistr/u32-to-u8.c: Likewise.
56950         * lib/unistr/u32-uctomb.c: Likewise.
56951         * lib/unistr/u8-check.c: Likewise.
56952         * lib/unistr/u8-chr.c: Likewise.
56953         * lib/unistr/u8-cmp.c: Likewise.
56954         * lib/unistr/u8-cpy-alloc.c: Likewise.
56955         * lib/unistr/u8-cpy.c: Likewise.
56956         * lib/unistr/u8-endswith.c: Likewise.
56957         * lib/unistr/u8-mblen.c: Likewise.
56958         * lib/unistr/u8-mbsnlen.c: Likewise.
56959         * lib/unistr/u8-mbtouc-aux.c: Likewise.
56960         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
56961         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
56962         * lib/unistr/u8-mbtouc.c: Likewise.
56963         * lib/unistr/u8-mbtoucr.c: Likewise.
56964         * lib/unistr/u8-move.c: Likewise.
56965         * lib/unistr/u8-next.c: Likewise.
56966         * lib/unistr/u8-prev.c: Likewise.
56967         * lib/unistr/u8-set.c: Likewise.
56968         * lib/unistr/u8-startswith.c: Likewise.
56969         * lib/unistr/u8-stpcpy.c: Likewise.
56970         * lib/unistr/u8-stpncpy.c: Likewise.
56971         * lib/unistr/u8-strcat.c: Likewise.
56972         * lib/unistr/u8-strchr.c: Likewise.
56973         * lib/unistr/u8-strcmp.c: Likewise.
56974         * lib/unistr/u8-strcpy.c: Likewise.
56975         * lib/unistr/u8-strcspn.c: Likewise.
56976         * lib/unistr/u8-strdup.c: Likewise.
56977         * lib/unistr/u8-strlen.c: Likewise.
56978         * lib/unistr/u8-strmblen.c: Likewise.
56979         * lib/unistr/u8-strmbtouc.c: Likewise.
56980         * lib/unistr/u8-strncat.c: Likewise.
56981         * lib/unistr/u8-strncmp.c: Likewise.
56982         * lib/unistr/u8-strncpy.c: Likewise.
56983         * lib/unistr/u8-strnlen.c: Likewise.
56984         * lib/unistr/u8-strpbrk.c: Likewise.
56985         * lib/unistr/u8-strrchr.c: Likewise.
56986         * lib/unistr/u8-strspn.c: Likewise.
56987         * lib/unistr/u8-strstr.c: Likewise.
56988         * lib/unistr/u8-strtok.c: Likewise.
56989         * lib/unistr/u8-to-u16.c: Likewise.
56990         * lib/unistr/u8-to-u32.c: Likewise.
56991         * lib/unistr/u8-uctomb-aux.c: Likewise.
56992         * lib/unistr/u8-uctomb.c: Likewise.
56993         * lib/unitypes.h: Likewise.
56994         * lib/uniwidth.h: Likewise.
56995         * lib/uniwidth/cjk.h: Likewise.
56996         * lib/uniwidth/u16-strwidth.c: Likewise.
56997         * lib/uniwidth/u16-width.c: Likewise.
56998         * lib/uniwidth/u32-strwidth.c: Likewise.
56999         * lib/uniwidth/u32-width.c: Likewise.
57000         * lib/uniwidth/u8-strwidth.c: Likewise.
57001         * lib/uniwidth/u8-width.c: Likewise.
57002         * lib/uniwidth/width.c: Likewise.
57003
57004 2007-10-07  Bruno Haible  <bruno@clisp.org>
57005
57006         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
57007         The file is still under LGPL (see modules/inttypes).
57008
57009 2007-10-06  Bruno Haible  <bruno@clisp.org>
57010
57011         * modules/trunc (Dependencies): Add 'extensions'.
57012         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
57013         Reported by Ben Pfaff <blp@gnu.org>.
57014
57015 2007-10-06  Bruno Haible  <bruno@clisp.org>
57016
57017         * modules/freopen-tests: New file.
57018         * tests/test-freopen.c: New file.
57019
57020         * modules/fopen-tests: New file.
57021         * tests/test-fopen.c: New file.
57022
57023         * modules/fopen: New file.
57024         * lib/fopen.c: New file.
57025         * m4/fopen.m4: New file.
57026         * modules/freopen: New file.
57027         * lib/freopen.c: New file.
57028         * m4/freopen.m4: New file.
57029         * lib/stdio.in.h (fopen, freopen): New declarations.
57030         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
57031         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
57032         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
57033         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
57034         * doc/functions/fopen.texi: Mention the 'fopen' module.
57035         * doc/functions/freopen.texi: Mention the 'freopen' module.
57036
57037 2007-10-06  Bruno Haible  <bruno@clisp.org>
57038
57039         * modules/open-tests: New file.
57040         * tests/test-open.c: New file.
57041
57042         * modules/open: New file.
57043         * lib/open.c: New file.
57044         * m4/open.m4: New file.
57045         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
57046         lib/open.c does.
57047         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
57048         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
57049         macros.
57050         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
57051         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
57052         REPLACE_OPEN.
57053         * doc/functions/open.texi: Mention the 'open' module.
57054
57055 2007-10-04  Bruno Haible  <bruno@clisp.org>
57056
57057         * modules/ceill-tests: New file.
57058         * tests/test-ceill.c: New file.
57059
57060         * modules/ceill: New file.
57061         * lib/ceill.c: Replace entire file.
57062         * m4/ceill.m4: New file.
57063         * lib/math.in.h (ceill): Replace declaration.
57064         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
57065         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
57066         * doc/functions/ceill.texi: Mention the 'ceill' module.
57067         * modules/mathl (Files): Remove lib/ceill.c.
57068         (Depends-on): Add ceill.
57069
57070 2007-10-04  Bruno Haible  <bruno@clisp.org>
57071
57072         * modules/ceilf-tests: New file.
57073         * tests/test-ceilf.c: New file.
57074
57075         * modules/ceilf: New file.
57076         * lib/ceil.c: New file.
57077         * lib/ceilf.c: New file.
57078         * m4/ceilf.m4: New file.
57079         * lib/math.in.h (ceilf): New declaration.
57080         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
57081         HAVE_DECL_CEILF.
57082         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
57083         HAVE_DECL_CEILF.
57084         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
57085
57086 2007-10-04  Bruno Haible  <bruno@clisp.org>
57087
57088         * modules/floorl-tests: New file.
57089         * tests/test-floorl.c: New file.
57090
57091         * modules/floorl: New file.
57092         * lib/floorl.c: Replace entire file.
57093         * m4/floorl.m4: New file.
57094         * lib/math.in.h (floorl): Replace declaration.
57095         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
57096         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
57097         * doc/functions/floorl.texi: Mention the 'floorl' module.
57098         * modules/mathl (Files): Remove lib/floorl.c.
57099         (Depends-on): Add floorl.
57100
57101 2007-10-04  Bruno Haible  <bruno@clisp.org>
57102
57103         * modules/floorf-tests: New file.
57104         * tests/test-floorf.c: New file.
57105
57106         * modules/floorf: New file.
57107         * lib/floor.c: New file.
57108         * lib/floorf.c: New file.
57109         * m4/floorf.m4: New file.
57110         * lib/math.in.h (floorf): New declaration.
57111         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
57112         HAVE_DECL_FLOORF.
57113         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
57114         HAVE_DECL_FLOORF.
57115         * doc/functions/floorf.texi: Mention the 'floorf' module.
57116
57117 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
57118             Bruno Haible  <bruno@clisp.org>
57119
57120         Advertise for the Git server instead of the CVS server.
57121         * doc/gnulib-intro.texi (Steady Development): Mention the Git
57122         repository instead of the CVS one.
57123         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
57124         about all VCS systems generically.
57125         * doc/gnulib.texi (Introduction): Capitalize `Git'.
57126
57127 2007-10-04  Bruno Haible  <bruno@clisp.org>
57128
57129         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
57130         means.
57131         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
57132
57133 2007-10-04  Bruno Haible  <bruno@clisp.org>
57134
57135         * modules/truncl-tests: New file.
57136         * tests/test-truncl.c: New file.
57137
57138         * modules/truncl: New file.
57139         * lib/truncl.c: New file.
57140         * m4/truncl.m4: New file.
57141         * lib/math.in.h (truncl): New declaration.
57142         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
57143         HAVE_DECL_TRUNCL.
57144         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
57145         HAVE_DECL_TRUNCL.
57146         * doc/functions/truncl.texi: Mention the 'truncl' module.
57147
57148 2007-10-04  Bruno Haible  <bruno@clisp.org>
57149
57150         * modules/truncf-tests: New file.
57151         * tests/test-truncf.c: New file.
57152
57153         * modules/truncf: New file.
57154         * lib/trunc.c: Make paramerizable through USE_* macros.
57155         * lib/truncf.c: New file.
57156         * m4/truncf.m4: New file.
57157         * lib/math.in.h (truncf): New declaration.
57158         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
57159         HAVE_DECL_TRUNCF.
57160         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
57161         HAVE_DECL_TRUNCF.
57162         * doc/functions/truncf.texi: Mention the 'truncf' module.
57163
57164 2007-10-03  Bruno Haible  <bruno@clisp.org>
57165
57166         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
57167         augmentation also for tests modules.
57168         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
57169         * modules/atexit-tests (Makefile.am): Likewise.
57170         * modules/binary-io-tests (Makefile.am): Likewise.
57171         * modules/c-strcase-tests (Makefile.am): Likewise.
57172         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
57173         * modules/canonicalize-tests (Makefile.am): Likewise.
57174         * modules/closein-tests (Makefile.am): Likewise.
57175         * modules/fprintf-posix-tests (Makefile.am): Likewise.
57176         * modules/freadahead-tests (Makefile.am): Likewise.
57177         * modules/fseek-tests (Makefile.am): Likewise.
57178         * modules/fseeko-tests (Makefile.am): Likewise.
57179         * modules/ftell-tests (Makefile.am): Likewise.
57180         * modules/ftello-tests (Makefile.am): Likewise.
57181         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
57182         * modules/isnanl-tests (Makefile.am): Likewise.
57183         * modules/lseek-tests (Makefile.am): Likewise.
57184         * modules/mbscasecmp-tests (Makefile.am): Likewise.
57185         * modules/mbscasestr-tests (Makefile.am): Likewise.
57186         * modules/mbschr-tests (Makefile.am): Likewise.
57187         * modules/mbscspn-tests (Makefile.am): Likewise.
57188         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
57189         * modules/mbspbrk-tests (Makefile.am): Likewise.
57190         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
57191         * modules/mbsrchr-tests (Makefile.am): Likewise.
57192         * modules/mbsspn-tests (Makefile.am): Likewise.
57193         * modules/mbsstr-tests (Makefile.am): Likewise.
57194         * modules/printf-posix-tests (Makefile.am): Likewise.
57195         * modules/snprintf-posix-tests (Makefile.am): Likewise.
57196         * modules/sprintf-posix-tests (Makefile.am): Likewise.
57197         * modules/tsearch-tests (Makefile.am): Likewise.
57198         * modules/uniname/uniname-tests (Makefile.am): Likewise.
57199         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
57200         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
57201         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
57202         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
57203         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
57204         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
57205         * modules/vprintf-posix-tests (Makefile.am): Likewise.
57206         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
57207         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
57208         * modules/xstrtoimax-tests (Makefile.am): Likewise.
57209         * modules/xstrtol-tests (Makefile.am): Likewise.
57210         * modules/xstrtoumax-tests (Makefile.am): Likewise.
57211         * modules/yesno-tests (Makefile.am): Likewise.
57212
57213 2007-10-03  Bruno Haible  <bruno@clisp.org>
57214
57215         * modules/trunc-tests: New file.
57216         * tests/test-trunc.c: New file.
57217
57218         * modules/trunc: New file.
57219         * lib/trunc.c: New file.
57220         * m4/trunc.m4: New file.
57221         * lib/math.in.h (trunc): New declaration.
57222         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
57223         HAVE_DECL_TRUNC.
57224         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
57225         HAVE_DECL_TRUNC.
57226         * doc/functions/trunc.texi: Mention the 'trunc' module.
57227
57228 2007-10-03  Bruno Haible  <bruno@clisp.org>
57229
57230         * tests/test-fpending.c: New file, mostly copied
57231         from coreutils/lib/t-fpending.c.
57232         * modules/fpending-tests: New file.
57233
57234 2007-10-03  Bruno Haible  <bruno@clisp.org>
57235
57236         Port the stdio extensions to QNX (untested).
57237         * lib/fseterr.c (fseterr): Add support for QNX.
57238         * lib/fbufmode.c (fbufmode): Likewise.
57239         * lib/freadable.c (freadable): Likewise.
57240         * lib/fwritable.c (fwritable): Likewise.
57241         * lib/freading.c (freading): Likewise.
57242         * lib/fwriting.c (fwriting): Likewise.
57243         * lib/freadahead.c (freadahed): Likewise.
57244         * lib/fpurge.c (fpurge): Likewise.
57245         * lib/fseeko.c (rpl_fseeko): Likewise.
57246
57247 2007-10-03  Bruno Haible  <bruno@clisp.org>
57248             Jim Meyering  <jim@meyering.net>
57249             Eric Blake  <ebb9@byu.net>
57250
57251         * doc/relocatable.texi: Use @command instead of @program.
57252
57253 2007-10-02  Jim Meyering  <jim@meyering.net>
57254
57255         Perform one more "_.h" -> ".in.h" substitution.
57256         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
57257         instead of unistd_.h here, too.
57258
57259 2007-10-01  Bruno Haible  <bruno@clisp.org>
57260
57261         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
57262         Needed for the alloca-opt module.
57263
57264 2007-09-30  Bruno Haible  <bruno@clisp.org>
57265
57266         * lib/alloca.in.h: Renamed from lib/alloca_.h.
57267         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
57268         alloca_.h.
57269         * lib/argz.in.h: Renamed from lib/argz_.h.
57270         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
57271         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
57272         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
57273         byteswap_.h.
57274         * lib/dirent.in.h: Renamed from lib/dirent_.h.
57275         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
57276         dirent_.h.
57277         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
57278         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
57279         fcntl_.h.
57280         * lib/float.in.h: Renamed from lib/float_.h.
57281         * modules/float (Files, Makefile.am): Use float.in.h instead of
57282         float_.h.
57283         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
57284         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
57285         fnmatch_.h.
57286         * lib/getopt.in.h: Renamed from lib/getopt_.h.
57287         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
57288         getopt_.h.
57289         * lib/glob.in.h: Renamed from lib/glob_.h.
57290         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
57291         * lib/iconv.in.h: Renamed from lib/iconv_.h.
57292         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
57293         iconv_.h.
57294         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
57295         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
57296         inttypes_.h.
57297         * lib/locale.in.h: Renamed from lib/locale_.h.
57298         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
57299         locale_.h.
57300         * lib/math.in.h: Renamed from lib/math_.h.
57301         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
57302         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
57303         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
57304         of netinet_in_.h. Add dependency.
57305         * lib/poll.in.h: Renamed from lib/poll_.h.
57306         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
57307         * lib/search.in.h: Renamed from lib/search_.h.
57308         * modules/search (Files, Makefile.am): Use search.in.h instead of
57309         search_.h.
57310         * lib/signal.in.h: Renamed from lib/signal_.h.
57311         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
57312         _signal.h.
57313         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
57314         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
57315         stdbool_.h.
57316         * lib/stdint.in.h: Renamed from lib/stdint_.h.
57317         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
57318         stdint_.h.
57319         * lib/stdio.in.h: Renamed from lib/stdio_.h.
57320         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
57321         stdio_.h.
57322         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
57323         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
57324         stdlib_.h.
57325         * lib/string.in.h: Renamed from lib/string_.h.
57326         * modules/string (Files, Makefile.am): Use string.in.h instead of
57327         string_.h.
57328         * doc/gnulib-tool.texi (Initial import): Update.
57329         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
57330         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
57331         of sys_select_.h. Add dependency.
57332         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
57333         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
57334         of sys_socket_.h.
57335         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
57336         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
57337         sys_stat_.h.
57338         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
57339         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
57340         sys_time_.h.
57341         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
57342         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
57343         sysexits_.h.
57344         * lib/time.in.h: Renamed from lib/time_.h.
57345         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
57346         * lib/unistd.in.h: Renamed from lib/unistd_.h.
57347         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
57348         unistd_.h.
57349         * lib/wchar.in.h: Renamed from lib/wchar_.h.
57350         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
57351         wchar_.h.
57352         * lib/wctype.in.h: Renamed from lib/wctype_.h.
57353         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
57354         wctype_.h.
57355         * build-aux/bootstrap (slurp): Update.
57356         * lib/.cppi-disable: Update.
57357
57358 2007-09-30  Bruno Haible  <bruno@clisp.org>
57359
57360         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
57361         Needed on BeOS.
57362
57363 2007-09-30  Bruno Haible  <bruno@clisp.org>
57364
57365         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
57366
57367 2007-09-29  Bruno Haible  <bruno@clisp.org>
57368
57369         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
57370
57371 2007-09-29  Bruno Haible  <bruno@clisp.org>
57372
57373         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
57374         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
57375         * build-aux/install-reloc: Compile also areadlink.c.
57376         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
57377
57378 2007-09-29  Bruno Haible  <bruno@clisp.org>
57379
57380         * gnulib-tool (func_emit_initmacro_done): Indentation.
57381
57382 2007-09-29  Bruno Haible  <bruno@clisp.org>
57383
57384         * README: Add CVS checkout update instructions.
57385         Info from Bob Proulx <bob@proulx.com>.
57386
57387 2007-09-28  Eric Blake  <ebb9@byu.net>
57388
57389         Provide move-if-change.
57390         * build-aux/move-if-change: New file, based on best practice
57391         rather than any canonical upstream location.
57392
57393 2007-09-28  Jim Meyering  <jim@meyering.net>
57394
57395         Fix canonicalize loop-detection corner case.
57396         Do not attempt to stat the symlink values stored via seen_triple.
57397         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
57398         on linux-2.6.18, (but not 2.6.22).
57399         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
57400         triple_compare.  The former compares dev,ino,filename, while the latter
57401         would actually stat dirname(filename) when dev and ino were equal.
57402         * lib/hash-triple.c: Install <string.h>.
57403         (STREQ): Define.
57404         (triple_compare_ino_str): New function.
57405         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
57406
57407 2007-09-28  Eric Blake  <ebb9@byu.net>
57408
57409         Enforce that AC_REPLACE_FUNCS files exist.
57410         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
57411         override check for typos.
57412
57413         Fix test-closein on Solaris 10.
57414         * tests/test-closein.c (main): Don't assume stdin can be inherited
57415         closed on all systems.
57416         * tests/test-closein.sh: Likewise.
57417         Reported by Piotr Tarnowski.
57418
57419 2007-09-28  Jim Meyering  <jim@meyering.net>
57420
57421         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
57422
57423 2007-09-27  Jim Meyering  <jim@meyering.net>
57424
57425         canonicalize: Avoid a false-positive cycle failure.
57426         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
57427         Sort.  Remove cycle-check.
57428         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
57429         not cycle-check.h.
57430         (seen_triple): New function.
57431         (canonicalize_filename_mode): Use it instead of cycle-check.
57432         * tests/test-canonicalize.c: Add a test for this bug.
57433         * tests/test-canonicalize.sh: Set up and run the test.
57434
57435         New module, file-set, from coreutils.
57436         * modules/file-set: Define it.
57437         * lib/file-set.c, lib/file-set.h: Implement.
57438
57439         New module, hash-triple, from coreutils.
57440         * modules/hash-triple: Define it.
57441         * lib/hash-triple.c, lib/hash-triple.h: Implement.
57442
57443 2007-09-25  Eric Blake  <ebb9@byu.net>
57444
57445         Fix strerror on Interix.
57446         * lib/string_.h (strerror): Declare replacement.
57447         * doc/functions/strerror.texi (strerror): Document the Interix
57448         shortcoming.
57449         * modules/string (Makefile.am): Support new hooks.
57450         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
57451         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
57452         gl_FUNC_STRERROR_SEPARATE.
57453         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
57454         * lib/strerror.c (rpl_strerror): Provide replacement.
57455         * modules/strerror (Depends-on): Add string.
57456         (configure.ac): Detect use of module.
57457         * tests/test-strerror.c: New file.
57458         * modules/strerror-tests: New test module.
57459         * modules/argp (Depends-on): Add strerror.
57460         * modules/error (Depends-on): Likewise.
57461         Reported by Martin Koeppe.
57462
57463 2007-09-24  Bruno Haible  <bruno@clisp.org>
57464
57465         * README: Update git instructions.
57466
57467 2007-09-24  Eric Blake  <ebb9@byu.net>
57468
57469         Revert fpending breakage from 2007-09-08.
57470         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
57471         __fpending.c.
57472
57473 2007-09-24  Jim Meyering  <jim@meyering.net>
57474
57475         filenamecat.c: Add a test.
57476         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
57477         showing how the function works when DIR is the empty string.
57478
57479 2007-09-21  Simon Josefsson  <simon@josefsson.org>
57480
57481         * tests/test-canonicalize.sh: Turn on executable bit.
57482
57483 2007-09-19  Eric Blake  <ebb9@byu.net>
57484
57485         * README: Update CVS instructions.
57486
57487 2007-09-18  Bruno Haible  <bruno@clisp.org>
57488
57489         * modules/areadlink: New file.
57490         * lib/areadlink.h (areadlink): New declaration.
57491         * lib/areadlink.c: New file, based on lib/xreadlink.c.
57492
57493 2007-09-17  Jim Meyering  <jim@meyering.net>
57494
57495         * lib/savewd.c (ESTALE) [!defined]: Define.
57496         Reported to be required on Interix by Martin Koeppe.
57497
57498 2007-09-17  Bruno Haible  <bruno@clisp.org>
57499
57500         * gnulib-tool (func_version): Use $version.
57501
57502 2007-09-16  Bruno Haible  <bruno@clisp.org>
57503
57504         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
57505         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
57506         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
57507         Reported by Greg Schafer <gschafer@zip.com.au>.
57508
57509 2007-09-15  Bruno Haible  <bruno@clisp.org>
57510
57511         * gnulib-tool (sed): Try a little harder to make bash understand the
57512         alias.
57513         Reported by Bruce Korb <bruce.korb@gmail.com>.
57514
57515 2007-09-13  Eric Blake  <ebb9@byu.net>
57516
57517         * ChangeLog: Remove conflict markers.
57518
57519 2007-09-13  Simon Josefsson  <simon@josefsson.org>
57520
57521         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
57522         Reported by Bruno Haible <bruno@clisp.org>.
57523
57524 2007-09-12  Bruno Haible  <bruno@clisp.org>
57525
57526         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
57527         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
57528         is not defined.
57529
57530 2007-09-12  Eric Blake  <ebb9@byu.net>
57531
57532         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
57533         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
57534         Autoconf definition.
57535         * modules/euidaccess (Depends-on): Add extensions, for
57536         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
57537         * modules/fnmatch (Depends-on): Likewise.
57538         * modules/getaddrinfo (Depends-on): Likewise.
57539         * modules/getdelim (Depends-on): Likewise.
57540         * modules/getline (Depends-on): Likewise.
57541         * modules/getsubopt (Depends-on): Likewise.
57542         * modules/gettext (Depends-on): Likewise.
57543         * modules/group-member (Depends-on): Likewise.
57544         * modules/mbchar (Depends-on): Likewise.
57545         * modules/memmem (Depends-on): Likewise.
57546         * modules/mempcpy (Depends-on): Likewise.
57547         * modules/memrchr (Depends-on): Likewise.
57548         * modules/pagealign_alloc (Depends-on): Likewise.
57549         * modules/readutmp (Depends-on): Likewise.
57550         * modules/stpcpy (Depends-on): Likewise.
57551         * modules/stpncpy (Depends-on): Likewise.
57552         * modules/strchrnul (Depends-on): Likewise.
57553         * modules/strndup (Depends-on): Likewise.
57554         * modules/strsep (Depends-on): Likewise.
57555         * modules/strverscmp (Depends-on): Likewise.
57556         * modules/vasprintf (Depends-on): Likewise.
57557         * modules/wcwidth (Depends-on): Likewise.
57558         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
57559         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
57560         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
57561         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
57562         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
57563         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57564         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
57565         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
57566         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
57567         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
57568         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57569         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
57570         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
57571         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
57572         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
57573         * m4/readutmp.m4 (gl_READUTMP): Likewise.
57574         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57575         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
57576         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
57577         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
57578         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
57579         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
57580         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
57581         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
57582         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
57583         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57584         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
57585         so that lock.m4 can be used in gettext without extensions module.
57586
57587 2007-09-11  Bruno Haible  <bruno@clisp.org>
57588
57589         * m4/isc-posix.m4: Remove file.
57590         Suggested by Eric Blake.
57591
57592 2007-09-11  Eric Blake  <ebb9@byu.net>
57593
57594         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
57595
57596 2007-09-10  Bruno Haible  <bruno@clisp.org>
57597
57598         * posix-modules: Fix typo in error message.
57599         Reported by Matt <mkraai@beckman.com>.
57600
57601 2007-09-09  Bruno Haible  <bruno@clisp.org>
57602
57603         * doc/functions/getdelim.texi: Update list of platforms lacking the
57604         function.
57605         * doc/functions/getline.texi: Likewise.
57606
57607 2007-09-09  Jim Meyering  <jim@meyering.net>
57608
57609         * lib/hash.c (hash_initialize): Detect calloc failure.
57610         Reported by Bruno Haible.
57611
57612 2007-09-09  Bruno Haible  <bruno@clisp.org>
57613
57614         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
57615         malloc or realloc fails.
57616
57617 2007-09-09  Bruno Haible  <bruno@clisp.org>
57618
57619         * modules/getcwd (Depends-on): Add malloc-posix.
57620         * modules/glob (Depends-on): Likewise.
57621         * modules/putenv (Depends-on): Likewise.
57622         * modules/strdup (Depends-on): Likewise.
57623         * modules/getdelim (Depends-on): Add realloc-posix.
57624         * modules/read-file (Depends-on): Likewise.
57625
57626 2007-09-09  Bruno Haible  <bruno@clisp.org>
57627
57628         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
57629         (gl_FUNC_MALLOC_POSIX): Require it.
57630         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
57631         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
57632         * modules/realloc (Files): Add m4/malloc.m4.
57633         * modules/calloc (Files): Likewise.
57634
57635 2007-09-09  Bruno Haible  <bruno@clisp.org>
57636
57637         * modules/malloc-posix: New file.
57638         * modules/malloc (Depends-on): Add malloc-posix.
57639         * lib/malloc.c: Include errno.h.
57640         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
57641         and a POSIX-compatible malloc into a single function. Set ENOMEM
57642         when returning NULL.
57643         * m4/malloc.m4: New file.
57644         * doc/functions/malloc.texi: Mention the malloc-posix module.
57645         * lib/stdlib_.h (malloc): New declaration.
57646         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57647         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
57648         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
57649         and HAVE_MALLOC_POSIX.
57650
57651 2007-09-09  Bruno Haible  <bruno@clisp.org>
57652
57653         * modules/realloc-posix: New file.
57654         * modules/realloc (Depends-on): Add realloc-posix.
57655         * lib/realloc.c: Include errno.h.
57656         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
57657         and a POSIX-compatible realloc into a single function. Set ENOMEM
57658         when returning NULL.
57659         * m4/realloc.m4: New file.
57660         * doc/functions/realloc.texi: Mention the realloc-posix module.
57661         * lib/stdlib_.h (realloc): New declaration.
57662         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57663         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
57664         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
57665         and HAVE_REALLOC_POSIX.
57666
57667 2007-09-09  Bruno Haible  <bruno@clisp.org>
57668
57669         * modules/calloc-posix: New file.
57670         * modules/calloc (Depends-on): Add calloc-posix.
57671         * lib/calloc.c: Include errno.h.
57672         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
57673         and a POSIX-compatible calloc into a single function. Set ENOMEM
57674         when returning NULL.
57675         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
57676         * doc/functions/calloc.texi: Mention the calloc-posix module.
57677         * lib/stdlib_.h (calloc): New declaration.
57678         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57679         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
57680         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
57681         and HAVE_CALLOC_POSIX.
57682
57683 2007-09-09  Bruno Haible  <bruno@clisp.org>
57684
57685         Allow for modules to show an arbitrary notice.
57686         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
57687         * gnulib-tool: New option --extract-notice.
57688         (func_usage): Document it.
57689         (sed_extract_prog): Update.
57690         (func_get_notice): New function.
57691         (func_modules_notice): New function.
57692         (func_import, func_create_testdir): Invoke it.
57693         Suggested by Jim Meyering.
57694
57695 2007-09-09  Bruno Haible  <bruno@clisp.org>
57696
57697         * gnulib-tool: New options --verbose, --quiet.
57698         (func_usage): Document them.
57699         (verbose): New variable.
57700         (func_execute_command): New function.
57701         (func_import): Don't show the module list and the file list if
57702         $verbose < 0.
57703         (func_create_testdir): Likewise. Use func_execute_command.
57704         (func_create_megatestdir): Use func_execute_command.
57705
57706 2007-09-08  Bruno Haible  <bruno@clisp.org>
57707
57708         * gnulib-tool (func_import): Prefer rsync over wget when available,
57709         for fetching the PO files.
57710
57711 2007-09-08  Bruno Haible  <bruno@clisp.org>
57712
57713         * posix-modules: New file. Portions copied from gnulib-tool.
57714         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
57715
57716 2007-09-08  Jim Meyering  <jim@meyering.net>
57717
57718         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
57719         * lib/fpending.h: Rename from __fpending.h.
57720         * lib/fpending.c: Rename from __fpending.c.
57721         Include "fpending.h", not "__fpending.h".
57722         * lib/__fpending.h, lib/__fpending.c: Remove files.
57723         * modules/fpending (Files): Reflect new file names.
57724         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
57725
57726 2007-09-08  Bruno Haible  <bruno@clisp.org>
57727
57728         * m4/inttypes-h.m4: Remove stub file.
57729
57730 2007-09-07  Simon Josefsson  <simon@josefsson.org>
57731
57732         * doc/headers/stdint.texi: Discuss #include_next issue.
57733
57734 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
57735
57736         * build-aux/bootstrap: Remove obsolete comment about wget --help.
57737
57738 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57739
57740         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
57741         in variable name.
57742
57743 2007-09-03  Jim Meyering  <jim@meyering.net>
57744
57745         New module: git-version-gen.
57746         * modules/git-version-gen: New file.
57747
57748         Import changes from coreutils for bootstrap script.
57749
57750         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
57751
57752         bootstrap: uses rsync to download the .po files
57753         * build-aux/bootstrap (po_download_command_format): New global.
57754         (download_po_files): Use rsync.
57755         (update_po_files): Don't remove .po files after download,
57756         so future rsync runs can take advantage of the copies.
57757
57758         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
57759
57760         Solve the unnecessary-.po-file-regeneration problem once and for all.
57761         * build-aux/bootstrap (download_po_files): New function, renamed from
57762         get_translations.  Now, downloads, but doesn't update LINGUAS.
57763         (update_po_files): New function.
57764
57765         bootstrap: Ignore more.
57766         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
57767         uniwidth to e.g., lib/.gitignore.
57768         (slurp): Handle the sys_stat_.h -> sys mapping, too.
57769
57770         * build-aux/bootstrap: New setting: vc_ignore.
57771         (insert_sorted_if_absent): Create $file if absent.
57772         Adapt to new, possibly empty, list: $vc_ignore.
57773
57774         bootstrap: generate more ignorable names
57775         * build-aux/bootstrap (slurp): When generating ignorable names,
57776         also map .sin to .sed, .gperf to .c, and .y to .c.
57777
57778 2007-09-03  Jim Meyering  <jim@meyering.net>
57779
57780         * build-aux/git-version-gen: New file, from coreutils.  For details, see
57781         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
57782
57783 2007-09-02  Bruno Haible  <bruno@clisp.org>
57784
57785         Fix mis-recognition of 'mcs' on QNX 6.
57786         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
57787         output contains the string "Mono".
57788         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
57789         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
57790
57791 2007-09-01  Bruno Haible  <bruno@clisp.org>
57792
57793         Fix collision between uniwidth/* and linebreak modules.
57794         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
57795         u32_width): Remove declarations.
57796         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
57797         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
57798         streq3, streq2, streq1, streq0): Remove functions.
57799         (STREQ): Remove macro.
57800         (is_cjk_encoding): Remove function.
57801         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
57802         (uc_width, u8_width, u16_width, u32_width): Remove functions.
57803         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
57804         * NEWS: Document the change.
57805
57806 2007-09-01  Bruno Haible  <bruno@clisp.org>
57807
57808         * lib/streq.h: Add double-inclusion guard.
57809
57810 2007-09-01  Karl Berry  <karl@gnu.org>
57811
57812         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
57813
57814 2007-08-28  Jim Meyering  <jim@meyering.net>
57815
57816         Rename mreadlink_with_size to areadlink_with_size.
57817         * NEWS: Document the change.
57818         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
57819         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
57820         * lib/mreadlink.h: Rename this to...
57821         * lib/areadlink.h: ...this.
57822         * modules/mreadlink-with-size: Rename this to...
57823         * modules/areadlink-with-size: ...this.
57824         * lib/canonicalize.c: Reflect the renaming.
57825         * modules/canonicalize: Likewise.
57826
57827 2007-08-26  Bruno Haible  <bruno@clisp.org>
57828
57829         * gnulib-tool (func_import): When deciding which files to remove,
57830         consider also dangling symbolic links.
57831         Reported by Eric Blake.
57832
57833 2007-08-26  Bruno Haible  <bruno@clisp.org>
57834
57835         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
57836
57837 2007-08-23  Simon Josefsson  <simon@josefsson.org>
57838
57839         * lib/readline.c: Don't include getline.h, the prototype is now
57840         found in stdio.h.
57841
57842 2007-08-23  Jim Meyering  <jim@meyering.net>
57843
57844         Getdelim touchup.
57845         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
57846         around the funlockfile call, since funlockfile never sets errno.
57847         Don't set errno upon failed realloc.
57848
57849 2007-08-22  Eric Blake  <ebb9@byu.net>
57850
57851         Getline touchups.
57852         * lib/getdelim.c (getdelim): Revert regression that required *n to
57853         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
57854         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
57855         getdelim, rather than whether implementation is missing.
57856         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
57857         * lib/stdio_.h (getline): Also declare if replacement is
57858         required.
57859         * doc/functions/getdelim.texi: New file.
57860         * doc/functions/getline.texi: Likewise.
57861         * doc/gnulib.texi (Function Substitutes): Add new files.
57862         Reported by Bruno Haible.
57863
57864 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
57865
57866         * users.txt: Add Guile.
57867
57868 2007-08-22  Eric Blake  <ebb9@byu.net>
57869
57870         * tests/test-getdelim.c (main): Use remove, not unlink.
57871         * tests/test-getline.c (main): Likewise.
57872
57873         Move getline and getdelim into stdio.h, per POSIX 200x.
57874         * modules/getline (Files): Remove getline.h.
57875         (Depends-on): Add stdio.
57876         (configure.ac): Add module indicator.
57877         * modules/getdelim (Files): Remove getdelim.h.
57878         (Depends-on): Add stdio.
57879         (configure.ac): Add module indicator.
57880         * modules/stdio (Makefile.am): Work with new indicators.
57881         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
57882         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
57883         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57884         * lib/getdelim.h: Delete.
57885         * lib/getline.h: Delete.
57886         * lib/stdio_.h (getdelim, getline): Declare.
57887         * modules/getdelim-tests: New module.
57888         * modules/getline-tests: Likewise.
57889         * tests/test-getdelim.c: New file.
57890         * tests/test-getline.c: Likewise.
57891         * NEWS: Document the change.
57892         * lib/getline.c: Update choice of header.
57893         * lib/csharpcomp.c: Likewise.
57894         * lib/getpass.c: Likewise.
57895         * lib/javacomp.c: Likewise.
57896         * lib/javaversion.c: Likewise.
57897         * lib/yesno.c: Likewise.
57898         * lib/getdelim.c: Likewise.
57899         (getdelim): Set errno on failure, and avoid memory leak.
57900
57901 2007-08-19  Bruno Haible  <bruno@clisp.org>
57902
57903         * modules/closein (Depends-on): Add freadahead.
57904         * lib/closein.c: Include freadahead.h.
57905         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
57906         is zero.
57907
57908 2007-08-19  Bruno Haible  <bruno@clisp.org>
57909
57910         * modules/freadahead-tests: New file.
57911         * tests/test-freadahead.sh: New file.
57912         * tests/test-freadahead.c: New file.
57913
57914         * modules/freadahead: New file.
57915         * lib/freadahead.h: New file.
57916         * lib/freadahead.c: New file.
57917         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
57918         fbufmode, fpurge, freadable, fwritable.
57919
57920 2007-08-19  Eric Blake  <ebb9@byu.net>
57921
57922         Test yesno in combination with closein.
57923         * lib/yesno.c (yesno): Document use of stdin.
57924         * modules/yesno-tests (Files): New module.
57925         * tests/test-yesno.c (main): New file.
57926         * tests/test-yesno.sh: Likewise.
57927
57928 2007-08-19  Bruno Haible  <bruno@clisp.org>
57929
57930         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
57931         * lib/fseeko.c (rpl_fseeko): Likewise.
57932         * lib/fseterr.c (fseterr): Likewise.
57933
57934 2007-08-19  Bruno Haible  <bruno@clisp.org>
57935
57936         * tests/test-lseek.c (main): Disable a test for BeOS.
57937         * doc/functions/lseek.texi: Document the BeOS bug.
57938
57939 2007-08-19  Bruno Haible  <bruno@clisp.org>
57940             Eric Blake  <ebb9@byu.net>
57941
57942         * lib/lseek.c: Include <sys/stat.h>.
57943         (rpl_lseek): Add workaround code also for Unix platforms.
57944         Needed for BeOS.
57945         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
57946         * doc/functions/lseek.texi: Document BeOS definiency.
57947
57948 2007-08-18  Bruno Haible  <bruno@clisp.org>
57949
57950         * modules/fstrcmp-tests: New file.
57951         * tests/test-fstrcmp.c: New file.
57952
57953 2007-08-18  Bruno Haible  <bruno@clisp.org>
57954
57955         * modules/fstrcmp: New file, from GNU gettext with modifications.
57956         * lib/fstrcmp.h: New file, from GNU gettext.
57957         * lib/fstrcmp.c: New file, from GNU gettext.
57958         * MODULES.html.sh (String handling): Add fstrcmp.
57959
57960 2007-08-18  Bruno Haible  <bruno@clisp.org>
57961
57962         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
57963         'bool'.
57964         (diag, compareseq): Remove const from the ctxt argument.
57965         (USE_HEURISTIC): Undefine at the end.
57966
57967 2007-08-18  Jim Meyering  <jim@meyering.net>
57968
57969         New file: lib/idcache.h
57970         * NEWS: Mention the addition.
57971         * modules/idcache (Files): Add lib/idcache.h
57972         * lib/idcache.c: Include "idcache.h".
57973         Don't include <sys/types.h>.
57974         Add a FIXME comment.
57975         Move file-scoped "static" declarations to the top.
57976         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
57977
57978 2007-08-17  Bruno Haible  <bruno@clisp.org>
57979         and Paul Eggert  <eggert@cs.ucla.edu>
57980
57981         * MODULES.html.sh: Add diffseq.
57982         * modules/diffseq: New file.
57983         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
57984         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
57985
57986 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57987
57988         Import changes from coreutils for bootstrap script.
57989
57990         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
57991
57992         * build-aux/bootstrap (slurp): Work even in environments where
57993         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
57994         current code does not slurp files whose names start with ".", and
57995         this looks like it might be a troublesome area.
57996
57997         2007-07-11  Jim Meyering  <jim@meyering.net>
57998
57999         If there's a GPL vN copyright comment, require that N == 3.
58000
58001         2007-07-08  Jim Meyering  <jim@meyering.net>
58002
58003         Run the coreutils-specific code only if tests/Makefile.am.in exists.
58004         * build-aux/bootstrap (mam_template): Move definition out of loop.
58005
58006         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
58007
58008         * build-aux/bootstrap (symlink_to_dir): Rename function from
58009         symlink_to_gnulib.  Add a directory parameter.  Update all
58010         callers.
58011         (cp_mark_as_generated): Also check for -- and link to -- files in
58012         gl/.
58013
58014         2007-07-08  Jim Meyering  <jim@meyering.net>
58015
58016         Adapt to deeper hierarchy in gnulib.
58017         * build-aux/bootstrap (symlink_to_dir): If the destination
58018         directory doesn't exist, create it. This is required at least for
58019         "lib/uniwidth/cjk.h".
58020
58021         2007-05-15  Jim Meyering  <jim@meyering.net>
58022
58023         * build-aux/bootstrap: Now that generated Makefile.am files
58024         are no longer under version control, they must be created at
58025         bootstrap time.
58026
58027 2007-08-14  Ben Pfaff  <blp@gnu.org>
58028
58029         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
58030
58031 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58032
58033         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
58034         given the changes below.
58035         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
58036         even on hosts that have padding bits beyond the supported 64.
58037
58038 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
58039
58040         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
58041         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
58042         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
58043         depends on it.
58044         (xstrtol_error): Remove.
58045         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
58046         but with a different signature.
58047         (ATTRIBUTE_NORETURN, __attribute__): New macros.
58048         * lib/xstrtol-error.c: Include exitfail.h.
58049         (xstrtol_fatal): New function, with a different signature from the
58050         old xstrtol_error, so that the caller need not worry about passing
58051         in an exit status, or about storage management of the option argument.
58052         (xstrtol_error): Now a static function.  Redo signature to
58053         implement xstrtol_fatal.  Output the correct number of hyphens in
58054         front of the option so that the caller need not worry about
58055         storage management.
58056         (N_): New macro.
58057         (_): Remove; not used now.
58058         * modules/xstrtol: Depend on getopt.
58059         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
58060         of old STRTOL_FATAL_ERROR macro.
58061         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
58062         of test program.
58063         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
58064         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
58065
58066 2007-08-08  Eric Blake  <ebb9@byu.net>
58067
58068         * lib/xstrtol-error.c: Add missing include.
58069
58070         Move xstrtol messages into gnulib domain, when --pobase is used.
58071         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
58072         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
58073         * modules/xstrtol (Files): Distribute new file.
58074         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
58075         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
58076         * tests/test-xstrtol.c: ...into new file.
58077         * tests/test-xstrtoul.c: Also test xstrtoul.
58078         * tests/test-xstrtoimax.c: Also test xstrtoimax.
58079         * tests/test-xstrtoumax.c: Also test xstrtoumax.
58080         * tests/test-xstrtol.sh: Drive the tests.
58081         * tests/test-xstrtoimax.sh: Likewise.
58082         * tests/test-xstrtoumax.sh: Likewise.
58083         * modules/xstrtol-tests: New module.
58084         * modules/xstrtoimax-tests: Likewise.
58085         * modules/xstrtoumax-tests: Likewise.
58086
58087 2007-08-08  Jim Meyering  <jim@meyering.net>
58088
58089         New function: mfile_name_concat.
58090         * lib/filenamecat.c (mfile_name_concat): New function, just like
58091         file_name_concat, but return NULL upon failure rather than exiting
58092         with a diagnostic.
58093         * lib/filenamecat.h: Declare it.
58094
58095 2007-08-07  Bruno Haible  <bruno@clisp.org>
58096
58097         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
58098         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
58099         warning from gcc.
58100         Reported by Eric Blake.
58101
58102 2007-08-07  Simon Josefsson  <simon@josefsson.org>
58103
58104         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
58105         * modules/crypto/arcfour (License): Likewise.
58106         * modules/crypto/des-tests (License): Likewise.
58107         * modules/crypto/gc-arctwo-tests (License): Likewise.
58108         * modules/crypto/gc-des-tests (License): Likewise.
58109         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
58110         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
58111         * modules/crypto/gc-md2-tests (License): Likewise.
58112         * modules/crypto/gc-md4-tests (License): Likewise.
58113         * modules/crypto/gc-md5-tests (License): Likewise.
58114         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
58115         * modules/crypto/gc-rijndael-tests (License): Likewise.
58116         * modules/crypto/gc-sha1-tests (License): Likewise.
58117         * modules/crypto/gc-tests (License): Likewise.
58118         * modules/crypto/hmac-md5 (License): Likewise.
58119         * modules/crypto/hmac-sha1 (License): Likewise.
58120         * modules/crypto/md2-tests (License): Likewise.
58121         * modules/crypto/md4-tests (License): Likewise.
58122         * modules/crypto/md5 (License): Likewise.
58123         * modules/crypto/rijndael (License): Likewise.
58124         * modules/crypto/sha1 (License): Likewise.
58125         * modules/memxor (License): Likewise.
58126
58127 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
58128         and Bruno Haible  <bruno@clisp.org>
58129
58130         * NEWS: Describe interface changes to human, xstrtol.
58131         * lib/human.h: Include <xstrtol.h>.
58132         (human_options): Return enum strtol_error, not int.  Remove
58133         bool arg; take int * instead.
58134         * lib/human.c: Don't include "gettext.h".
58135         (_): Remove; no longer used.
58136         Don't include <xstrtol.h>, since human.h does it.
58137         (human_options): Adjust to abovementioned interface changes.
58138         Do not report error to stderr; that's now the caller's
58139         responsibility.
58140         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
58141         interface change.
58142         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
58143         Str, Argument_type_string.  All uses changed.  Put " argument"
58144         in diagnostics to make them clearer.  Change wording of suffix
58145         message for clarity.
58146         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
58147         Argument_type_string.
58148         (STRTOL_FATAL_WARN): Remove; no longer used.
58149         * modules/human (Depends-on): Remove gettext-h.
58150
58151 2007-08-06  Simon Josefsson  <simon@josefsson.org>
58152
58153         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
58154
58155 2007-07-31  Bruno Haible  <bruno@clisp.org>
58156
58157         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
58158         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
58159         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
58160
58161 2007-07-31  Bruno Haible  <bruno@clisp.org>
58162
58163         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
58164         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
58165
58166 2007-07-30  Bruno Haible  <bruno@clisp.org>
58167
58168         * modules/base64 (License): Use the synonymous term "LGPLv2+".
58169         * modules/c-ctype (License): Likewise.
58170         * modules/c-strcase (License): Likewise.
58171         * modules/check-version (License): Likewise.
58172         * modules/iconv (License): Likewise.
58173         * modules/iconv_open (License): Likewise.
58174         * modules/read-file (License): Likewise.
58175         * modules/striconv (License): Likewise.
58176         * modules/strverscmp (License): Likewise.
58177         * modules/vasprintf (License): Likewise.
58178         * modules/crypto/des (License): Likewise.
58179         * modules/crypto/gc (License): Likewise.
58180         * modules/crypto/gc-arcfour (License): Likewise.
58181         * modules/crypto/gc-arctwo (License): Likewise.
58182         * modules/crypto/gc-des (License): Likewise.
58183         * modules/crypto/gc-hmac-md5 (License): Likewise.
58184         * modules/crypto/gc-hmac-sha1 (License): Likewise.
58185         * modules/crypto/gc-md2 (License): Likewise.
58186         * modules/crypto/gc-md4 (License): Likewise.
58187         * modules/crypto/gc-md5 (License): Likewise.
58188         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
58189         * modules/crypto/gc-random (License): Likewise.
58190         * modules/crypto/gc-rijndael (License): Likewise.
58191         * modules/crypto/gc-sha1 (License): Likewise.
58192         * modules/crypto/md2 (License): Likewise.
58193         * modules/crypto/md4 (License): Likewise.
58194
58195 2007-07-30  Jim Meyering  <jim@meyering.net>
58196
58197         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
58198         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
58199         it has valid stat data.  This bug would cause du not to count the
58200         sizes of inaccessible directories.
58201         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
58202         in <http://bugzilla.redhat.com/250077>.
58203
58204 2007-07-25  Peter O'Gorman  <peter@pogma.com>
58205             Bruno Haible  <bruno@clisp.org>
58206
58207         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
58208         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
58209         #include_next, gives a diagnostic about it, but reports no error in
58210         the exit code.
58211         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
58212
58213 2007-07-24  Ben Pfaff  <blp@gnu.org>
58214
58215         Improve name: "count-one-bits" is better than "popcount".
58216         * MODULES.html.sh: Update name.
58217         * lib/popcount.h: Renamed lib/count-one-bits.h.
58218         (popcount): Renamed count_one_bits.
58219         (popcountl): Renamed count_one_bits_l.
58220         (popcountll): Renamed count_one_bits_ll.
58221         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
58222         * modules/popcount: Renamed module/count-one-bits.
58223         * modules/popcount-tests: Renamed module/count-one-bits-tests.
58224         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
58225
58226 2007-07-23  Ben Pfaff  <blp@gnu.org>
58227
58228         * lib/popcount.h (popcount32): Reduce size of constants, to allow
58229         better code generation, and add U to large constants to avoid
58230         warnings, in non-GCC case.
58231         Suggested by Bruno Haible.
58232
58233 2007-07-23  Ben Pfaff  <blp@gnu.org>
58234
58235         * lib/popcount.h: Use verify_true instead of if...abort.
58236         * modules/popcount: Depend on verify module.
58237         Suggested by Jim Meyering.
58238
58239 2007-07-23  Bruno Haible  <bruno@clisp.org>
58240
58241         * gnulib-tool (func_import): Create a .cvsignore file also when the
58242         directory is not yet in CVS but the toplevel directory is. When
58243         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
58244         Reported by Karl Berry.
58245
58246 2007-07-22  Ben Pfaff  <blp@gnu.org>
58247
58248         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
58249         case.
58250         Suggested by Eric Blake.
58251
58252 2007-07-22  Ben Pfaff  <blp@gnu.org>
58253
58254         New module: popcount.
58255         * MODULES.html.sh: Add popcount.
58256         * modules/popcount: New file.
58257         * modules/popcount-tests: New file.
58258         * tests/test-popcount.c: New file.
58259         * lib/popcount.h: New file.
58260         * m4/popcount.m4: New file.
58261
58262 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
58263
58264         * build-aux/announce-gen: Update to GPLv3.
58265
58266         * build-aux/config.guess: Update from config.
58267
58268 2007-07-21  Bruno Haible  <bruno@clisp.org>
58269
58270         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
58271         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
58272
58273 2007-07-20  Jim Meyering  <jim@meyering.net>
58274
58275         * check-module: Diagnose a self-dependency.
58276
58277 2007-07-19  Bruno Haible  <bruno@clisp.org>
58278
58279         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
58280         empty.
58281         Reported by Eric Blake.
58282
58283 2007-07-18  Bruno Haible  <bruno@clisp.org>
58284
58285         * gnulib-tool: New options --po-base, --po-domain.
58286         (func_usage): Document them.
58287         (pobase, po_domain): New variables.
58288         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
58289         DEFAULT_TEXT_DOMAIN.
58290         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
58291         (func_import): Consider pobase and po_domain. Create a po/ directory.
58292         (func_create_testdir): Set pobase and po_domain to empty.
58293         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
58294         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
58295
58296 2007-07-18  Bruno Haible  <bruno@clisp.org>
58297
58298         * gnulib-tool (func_get_automake_snippet): Synthesize also an
58299         EXTRA_DIST augmentation for files in build-aux/.
58300
58301 2007-07-16  Bruno Haible  <bruno@clisp.org>
58302
58303         * modules/lseek (License): Use the synonymous term "LGPLv2+".
58304         * modules/getdelim (License): Likewise.
58305
58306 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58307
58308         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
58309         * modules/d-type (License): Likewise.
58310         * modules/extensions (License): Likewise.
58311         * modules/fnmatch (License): Likewise.
58312         * modules/fseeko (License): Likewise.
58313         * modules/getaddrinfo (License): Likewise.
58314         * modules/getline (License): Likewise.
58315         * modules/getlogin_r (License): Likewise.
58316         * modules/getpass (License): Likewise.
58317         * modules/gettimeofday (License): Likewise.
58318         * modules/glob (License): Likewise.
58319         * modules/inet_ntop (License): Likewise.
58320         * modules/malloc (License): Likewise.
58321         * modules/malloca (License): Likewise.
58322         * modules/memmem (License): Likewise.
58323         * modules/mempcpy (License): Likewise.
58324         * modules/memset (License): Likewise.
58325         * modules/minmax (License): Likewise.
58326         * modules/mktime (License): Likewise.
58327         * modules/netinet_in (License): Likewise.
58328         * modules/pathmax (License): Likewise.
58329         * modules/poll (License): Likewise.
58330         * modules/regex (License): Likewise.
58331         * modules/snprintf (License): Likewise.
58332         * modules/stdbool (License): Likewise.
58333         * modules/stdint (License): Likewise.
58334         * modules/stdio (License): Likewise.
58335         * modules/strcase (License): Likewise.
58336         * modules/strcasestr (License): Likewise.
58337         * modules/strdup (License): Likewise.
58338         * modules/string (License): Likewise.
58339         * modules/strndup (License): Likewise.
58340         * modules/strnlen (License): Likewise.
58341         * modules/strpbrk (License): Likewise.
58342         * modules/strptime (License): Likewise.
58343         * modules/strsep (License): Likewise.
58344         * modules/sys_select (License): Likewise.
58345         * modules/sys_socket (License): Likewise.
58346         * modules/sys_stat (License): Likewise.
58347         * modules/sys_time (License): Likewise.
58348         * modules/time (License): Likewise.
58349         * modules/time_r (License): Likewise.
58350         * modules/timegm (License): Likewise.
58351         * modules/unistd (License): Likewise.
58352         * modules/vsnprintf (License): Likewise.
58353         * modules/wctype (License): Likewise.
58354
58355 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58356
58357         * modules/argz (License): LGPLv2+.
58358
58359 2007-07-15  Karl Berry  <karl@gnu.org>
58360
58361         * doc/gnulib.texi: revise node structure per new fdl.texi.
58362
58363 2007-07-14  Bruno Haible  <bruno@clisp.org>
58364
58365         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
58366         the output file.
58367         * lib/uniname/uninames.h: Regenerated.
58368
58369 2007-07-14  Karl Berry  <karl@gnu.org>
58370
58371         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
58372         omitting sectioning and index commands.
58373
58374 2007-07-13  Bruno Haible  <bruno@clisp.org>
58375
58376         New gnulib-tool option --more-symlinks.
58377         * gnulib-tool (func_usage): Document --more-symlinks.
58378         (do_copyrights): New variable.
58379         Recognize option --more-symlinks.
58380         (func_import): Don't add a copyright notice transform to
58381         sed_transform_lib_file if do_copyrights is empty.
58382
58383 2007-07-13  Bruno Haible  <bruno@clisp.org>
58384
58385         * lib/vasnprintf.c (decimal_point_char): Define also if
58386         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
58387         && !NEED_PRINTF_DIRECTIVE_A.
58388         Reported by Clemens Koller <clemens.koller@anagramm.de> via
58389         Gary V. Vaughan <gary@gnu.org>.
58390
58391 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
58392
58393         * lib/inttypes_.h: Undo previous change, since it was fixed
58394         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
58395
58396 2007-07-13  Bruno Haible  <bruno@clisp.org>
58397
58398         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
58399         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
58400
58401 2007-07-13  Jim Meyering  <jim@meyering.net>
58402
58403         df: Don't fail for Tru64's "file-on-file mount".
58404         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
58405         so we fall through and use statfs instead.  Details here:
58406         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
58407         Reported by Albert Chin.
58408
58409 2007-07-13  Bruno Haible  <bruno@clisp.org>
58410
58411         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
58412         * modules/configmake (License): Likewise.
58413         * modules/gettext (License): Likewise.
58414         * modules/gettext-h (License): Likewise.
58415         * modules/include_next (License): Likewise.
58416         * modules/link-warning (License): Likewise.
58417         * modules/localcharset (License): Likewise.
58418         * modules/localename (License): Likewise.
58419         * modules/lock (License): Likewise.
58420         * modules/relocatable-lib-lgpl (License): Likewise.
58421         * modules/size_max (License): Likewise.
58422         * modules/vasnprintf (License): Likewise.
58423         * modules/wchar (License): Likewise.
58424         * modules/xsize (License): Likewise.
58425
58426 2007-07-13  Bruno Haible  <bruno@clisp.org>
58427
58428         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
58429         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
58430
58431 2007-07-12  Bruno Haible  <bruno@clisp.org>
58432
58433         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
58434         in the modules files.
58435
58436 2007-07-11  Karl Berry  <karl@gnu.org>
58437
58438         * MODULES.html.sh (func_module): use
58439          sed -e '\|^'"${includefile}"'$|d'
58440          instead of /.../d, to avoid errors on $includefile's containing /.
58441
58442 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58443
58444         * gnulib-tool (func_import): Avoid duplication of --avoid
58445         statements
58446         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
58447         names to `_' in variable names.
58448
58449 2007-07-10  Eric Blake  <ebb9@byu.net>
58450
58451         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
58452         * NEWS: Document this change.
58453
58454 2007-07-08  Bruno Haible  <bruno@clisp.org>
58455
58456         Update to Unicode 5.0.
58457         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
58458         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
58459         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
58460         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
58461         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
58462         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
58463         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
58464         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
58465         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
58466         U+10A3F, U+1D242..U+1D244.
58467         (nonspacing_table_ind): Update.
58468         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
58469         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
58470
58471 2007-07-08  Bruno Haible  <bruno@clisp.org>
58472
58473         Update to Unicode 5.0.
58474         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
58475         code transform. Extend the name index field of unicode_name_to_code and
58476         unicode_code_to_name from 16 to 24 bits.
58477         * lib/uniname/uniname.c (unicode_character_name,
58478         unicode_name_character): Add the range 0x12xxx to the code transform.
58479         * lib/uniname/uninames.h: Regenerated.
58480         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
58481
58482 2007-07-07  Bruno Haible  <bruno@clisp.org>
58483
58484         * modules/wcwidth-tests: New file.
58485         * tests/test-wcwidth.c: New file.
58486
58487         Work around MacOS X wcwidth() bug.
58488         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
58489         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
58490         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
58491         original wcwidth in non-UTF-8 locales.
58492         * modules/wcwidth (Depends-on): Add localcharset, streq,
58493         uniwidth/width.
58494         * doc/functions/wcwidth.texi: Update.
58495
58496 2007-07-07  Bruno Haible  <bruno@clisp.org>
58497
58498         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
58499         (wcwidth): New declaration.
58500         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
58501         macros.
58502         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
58503         here. Prepare for creating <wchar.h> unconditionally.
58504         * modules/wchar (Depends-on): Add link-warning.
58505         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
58506         REPLACE_WCWIDTH, and GL_LINK_WARNING.
58507         * lib/wcwidth.h: Remove file.
58508         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
58509         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
58510         * modules/wcwidth (Files): Remove lib/wcwidth.h.
58511         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
58512         (Include): Replace wcwidth.h with <wchar.h>.
58513         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
58514         * lib/mbchar.h: Don't include wcwidth.h.
58515         * lib/mbswidth.c: Likewise.
58516         * NEWS: Mention the change.
58517
58518 2007-07-07  Bruno Haible  <bruno@clisp.org>
58519
58520         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
58521         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
58522         definition with an external declaration.
58523         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
58524         defined as a function. Remove AC_C_INLINE requirement.
58525         * modules/wcwidth (Files): Add lib/wcwidth.c.
58526         (Makefile.am): Remove redundant statement.
58527
58528 2007-07-07  Bruno Haible  <bruno@clisp.org>
58529
58530         * MODULES.html.sh (Unicode string functions): Add the new modules.
58531
58532         * tests/uniwidth/test-u32-strwidth.c: New file.
58533         * modules/uniwidth/u32-strwidth-tests: New file.
58534
58535         * lib/uniwidth/u32-strwidth.c: New file.
58536         * modules/uniwidth/u32-strwidth: New file.
58537
58538         * tests/uniwidth/test-u16-strwidth.c: New file.
58539         * modules/uniwidth/u16-strwidth-tests: New file.
58540
58541         * lib/uniwidth/u16-strwidth.c: New file.
58542         * modules/uniwidth/u16-strwidth: New file.
58543
58544         * tests/uniwidth/test-u8-strwidth.c: New file.
58545         * modules/uniwidth/u8-strwidth-tests: New file.
58546
58547         * lib/uniwidth/u8-strwidth.c: New file.
58548         * modules/uniwidth/u8-strwidth: New file.
58549
58550         * tests/uniwidth/test-u32-width.c: New file.
58551         * modules/uniwidth/u32-width-tests: New file.
58552
58553         * lib/uniwidth/u32-width.c: New file.
58554         * modules/uniwidth/u32-width: New file.
58555
58556         * tests/uniwidth/test-u16-width.c: New file.
58557         * modules/uniwidth/u16-width-tests: New file.
58558
58559         * lib/uniwidth/u16-width.c: New file.
58560         * modules/uniwidth/u16-width: New file.
58561
58562         * tests/uniwidth/test-u8-width.c: New file.
58563         * modules/uniwidth/u8-width-tests: New file.
58564
58565         * lib/uniwidth/u8-width.c: New file.
58566         * modules/uniwidth/u8-width: New file.
58567
58568         * tests/uniwidth/test-uc_width.c: New file.
58569         * modules/uniwidth/width-tests: New file.
58570
58571         * lib/uniwidth/width.c: New file, from GNU libiconv.
58572         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
58573         * modules/uniwidth/width: New file.
58574
58575         * lib/uniwidth.h: New file, from GNU libiconv.
58576         * modules/uniwidth/base: New file.
58577
58578 2007-07-07  Bruno Haible  <bruno@clisp.org>
58579
58580         * lib/uniname.h: New file, from GNU gettext.
58581         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
58582         * lib/uniname/uninames.h: New file, from GNU gettext.
58583         * lib/uniname/uniname.c: New file, from GNU gettext.
58584         * tests/uniname/test-uninames.sh: New file.
58585         * tests/uniname/test-uninames.c: New file, from GNU gettext.
58586         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
58587         * modules/uniname/base: New file.
58588         * modules/uniname/uniname: New file.
58589         * modules/uniname/uniname-tests: New file.
58590         * MODULES.html.sh (Unicode string functions): Add the new modules.
58591
58592 2007-07-06  Bruno Haible  <bruno@clisp.org>
58593
58594         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
58595
58596 2007-07-06  Bruno Haible  <bruno@clisp.org>
58597
58598         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
58599         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
58600         includes <cygwin/sys_time.h> which includes <sys/select.h> which
58601         include <sys/time.h>.
58602         Reported by Eric Blake.
58603
58604 2007-07-06  Eric Blake  <ebb9@byu.net>
58605
58606         Fix testing canonicalize on cygwin.
58607         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58608         Revert patch from 2007-06-19.
58609         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
58610         canonicalize module is also in use.
58611         * tests/test-canonicalize.c: New file.
58612         * tests/test-canonicalize.sh: Likewise.
58613         * modules/canonicalize-tests: Likewise.
58614
58615 2007-07-06  Jim Meyering  <jim@meyering.net>
58616
58617         * lib/getugroups.c (getugroups): Detect getgrent failure.
58618         Adjust comment to reflect reality: this function may return -1.
58619
58620 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
58621
58622         * build-aux/bootstrap (TP_URL,get_translations): Update to use
58623         the new TP address.
58624         (usage): Fix typo
58625         (gnulib_mk): New variable.
58626
58627 2007-07-05  Jim Meyering  <jim@meyering.net>
58628
58629         Don't let endgrent clobber errno, no matter how improbable.
58630         * lib/getugroups.c (getugroups): Save and restore errno around
58631         endgrent call.
58632
58633         Close the group DB even when failing with 2^31 or more members.
58634         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
58635
58636 2007-07-04  Jim Meyering  <jim@meyering.net>
58637
58638         * lib/getugroups.h: New file.
58639         * lib/getugroups.c: Include "getugroups.h".
58640         Remove uses of "register" keyword.
58641         Move local variable, "cp", down into scope where used.
58642         Give "username" parameter the "const" attribute.
58643         * modules/getugroups (Files): Add lib/getugroups.h
58644
58645 2007-07-04  Karl Berry  <karl@gnu.org>
58646
58647         * MODULES.html.sh (func_all_modules): Complete rename of
58648         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
58649
58650 2007-07-02  Bruno Haible  <bruno@clisp.org>
58651
58652         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
58653         mode, when inttypes.h comes from gnulib.
58654         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
58655
58656 2007-07-02  Simon Josefsson  <simon@josefsson.org>
58657
58658         * NEWS: Mention lgpl module name change.
58659
58660         * modules/lgpl-2.1: Renamed from lgpl.
58661
58662         * NEWS: Mention gpl module name change.
58663
58664         * modules/gpl-3.0: New file, based on gpl-2.0.
58665
58666         * modules/gpl-2.0: Renamed from gpl.
58667
58668         * modules/gpl: Fix filename, doc/gpl.texi is now found at
58669         doc/gpl-2.0.texi.
58670
58671 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
58672
58673         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
58674         #define __STDC_LIMIT_MACROS temporarily while including
58675         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
58676         Problem reported by Joel E. Denny in
58677         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
58678
58679 2007-07-01  Bruno Haible  <bruno@clisp.org>
58680
58681         * lib/unistdio.h: New file.
58682         * lib/unistdio/u-asnprintf.h: New file.
58683         * lib/unistdio/u-asprintf.h: New file.
58684         * lib/unistdio/u-printf-args.c: New file.
58685         * lib/unistdio/u-printf-args.h: New file.
58686         * lib/unistdio/u-printf-parse.h: New file.
58687         * lib/unistdio/u-snprintf.h: New file.
58688         * lib/unistdio/u-sprintf.h: New file.
58689         * lib/unistdio/u-vasprintf.h: New file.
58690         * lib/unistdio/u-vsnprintf.h: New file.
58691         * lib/unistdio/u-vsprintf.h: New file.
58692         * lib/unistdio/ulc-asnprintf.c: New file.
58693         * lib/unistdio/ulc-asprintf.c: New file.
58694         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
58695         * lib/unistdio/ulc-printf-parse.c: New file.
58696         * lib/unistdio/ulc-snprintf.c: New file.
58697         * lib/unistdio/ulc-sprintf.c: New file.
58698         * lib/unistdio/ulc-vasnprintf.c: New file.
58699         * lib/unistdio/ulc-vasprintf.c: New file.
58700         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
58701         * lib/unistdio/ulc-vsnprintf.c: New file.
58702         * lib/unistdio/ulc-vsprintf.c: New file.
58703         * lib/unistdio/u8-asnprintf.c: New file.
58704         * lib/unistdio/u8-asprintf.c: New file.
58705         * lib/unistdio/u8-printf-parse.c: New file.
58706         * lib/unistdio/u8-snprintf.c: New file.
58707         * lib/unistdio/u8-sprintf.c: New file.
58708         * lib/unistdio/u8-vasnprintf.c: New file.
58709         * lib/unistdio/u8-vasprintf.c: New file.
58710         * lib/unistdio/u8-vsnprintf.c: New file.
58711         * lib/unistdio/u8-vsprintf.c: New file.
58712         * lib/unistdio/u8-u8-asnprintf.c: New file.
58713         * lib/unistdio/u8-u8-asprintf.c: New file.
58714         * lib/unistdio/u8-u8-snprintf.c: New file.
58715         * lib/unistdio/u8-u8-sprintf.c: New file.
58716         * lib/unistdio/u8-u8-vasnprintf.c: New file.
58717         * lib/unistdio/u8-u8-vasprintf.c: New file.
58718         * lib/unistdio/u8-u8-vsnprintf.c: New file.
58719         * lib/unistdio/u8-u8-vsprintf.c: New file.
58720         * lib/unistdio/u16-asnprintf.c: New file.
58721         * lib/unistdio/u16-asprintf.c: New file.
58722         * lib/unistdio/u16-printf-parse.c: New file.
58723         * lib/unistdio/u16-snprintf.c: New file.
58724         * lib/unistdio/u16-sprintf.c: New file.
58725         * lib/unistdio/u16-vasnprintf.c: New file.
58726         * lib/unistdio/u16-vasprintf.c: New file.
58727         * lib/unistdio/u16-vsnprintf.c: New file.
58728         * lib/unistdio/u16-vsprintf.c: New file.
58729         * lib/unistdio/u16-u16-asnprintf.c: New file.
58730         * lib/unistdio/u16-u16-asprintf.c: New file.
58731         * lib/unistdio/u16-u16-snprintf.c: New file.
58732         * lib/unistdio/u16-u16-sprintf.c: New file.
58733         * lib/unistdio/u16-u16-vasnprintf.c: New file.
58734         * lib/unistdio/u16-u16-vasprintf.c: New file.
58735         * lib/unistdio/u16-u16-vsnprintf.c: New file.
58736         * lib/unistdio/u16-u16-vsprintf.c: New file.
58737         * lib/unistdio/u32-asnprintf.c: New file.
58738         * lib/unistdio/u32-asprintf.c: New file.
58739         * lib/unistdio/u32-printf-parse.c: New file.
58740         * lib/unistdio/u32-snprintf.c: New file.
58741         * lib/unistdio/u32-sprintf.c: New file.
58742         * lib/unistdio/u32-vasnprintf.c: New file.
58743         * lib/unistdio/u32-vasprintf.c: New file.
58744         * lib/unistdio/u32-vsnprintf.c: New file.
58745         * lib/unistdio/u32-vsprintf.c: New file.
58746         * lib/unistdio/u32-u32-asnprintf.c: New file.
58747         * lib/unistdio/u32-u32-asprintf.c: New file.
58748         * lib/unistdio/u32-u32-snprintf.c: New file.
58749         * lib/unistdio/u32-u32-sprintf.c: New file.
58750         * lib/unistdio/u32-u32-vasnprintf.c: New file.
58751         * lib/unistdio/u32-u32-vasprintf.c: New file.
58752         * lib/unistdio/u32-u32-vsnprintf.c: New file.
58753         * lib/unistdio/u32-u32-vsprintf.c: New file.
58754         * tests/unistdio/test-ulc-asnprintf1.c: New file.
58755         * tests/unistdio/test-ulc-asnprintf1.h: New file.
58756         * tests/unistdio/test-ulc-printf1.h: New file.
58757         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
58758         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
58759         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
58760         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
58761         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
58762         * tests/unistdio/test-ulc-vasprintf1.c: New file.
58763         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
58764         * tests/unistdio/test-ulc-vsprintf1.c: New file.
58765         * tests/unistdio/test-u8-asnprintf1.c: New file.
58766         * tests/unistdio/test-u8-asnprintf1.h: New file.
58767         * tests/unistdio/test-u8-printf1.h: New file.
58768         * tests/unistdio/test-u8-vasnprintf1.c: New file.
58769         * tests/unistdio/test-u8-vasnprintf2.c: New file.
58770         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
58771         * tests/unistdio/test-u8-vasnprintf3.c: New file.
58772         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
58773         * tests/unistdio/test-u8-vasprintf1.c: New file.
58774         * tests/unistdio/test-u8-vsnprintf1.c: New file.
58775         * tests/unistdio/test-u8-vsprintf1.c: New file.
58776         * tests/unistdio/test-u16-asnprintf1.c: New file.
58777         * tests/unistdio/test-u16-asnprintf1.h: New file.
58778         * tests/unistdio/test-u16-printf1.h: New file.
58779         * tests/unistdio/test-u16-vasnprintf1.c: New file.
58780         * tests/unistdio/test-u16-vasnprintf2.c: New file.
58781         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
58782         * tests/unistdio/test-u16-vasnprintf3.c: New file.
58783         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
58784         * tests/unistdio/test-u16-vasprintf1.c: New file.
58785         * tests/unistdio/test-u16-vsnprintf1.c: New file.
58786         * tests/unistdio/test-u16-vsprintf1.c: New file.
58787         * tests/unistdio/test-u32-asnprintf1.c: New file.
58788         * tests/unistdio/test-u32-asnprintf1.h: New file.
58789         * tests/unistdio/test-u32-printf1.h: New file.
58790         * tests/unistdio/test-u32-vasnprintf1.c: New file.
58791         * tests/unistdio/test-u32-vasnprintf2.c: New file.
58792         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
58793         * tests/unistdio/test-u32-vasnprintf3.c: New file.
58794         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
58795         * tests/unistdio/test-u32-vasprintf1.c: New file.
58796         * tests/unistdio/test-u32-vsnprintf1.c: New file.
58797         * tests/unistdio/test-u32-vsprintf1.c: New file.
58798         * modules/unistdio/base: New file.
58799         * modules/unistdio/u-printf-args: New file.
58800         * modules/unistdio/ulc-asnprintf: New file.
58801         * modules/unistdio/ulc-asprintf: New file.
58802         * modules/unistdio/ulc-fprintf: New file.
58803         * modules/unistdio/ulc-printf-parse: New file.
58804         * modules/unistdio/ulc-snprintf: New file.
58805         * modules/unistdio/ulc-sprintf: New file.
58806         * modules/unistdio/ulc-vasnprintf: New file.
58807         * modules/unistdio/ulc-vasprintf: New file.
58808         * modules/unistdio/ulc-vfprintf: New file.
58809         * modules/unistdio/ulc-vsnprintf: New file.
58810         * modules/unistdio/ulc-vsprintf: New file.
58811         * modules/unistdio/u8-asnprintf: New file.
58812         * modules/unistdio/u8-asprintf: New file.
58813         * modules/unistdio/u8-printf-parse: New file.
58814         * modules/unistdio/u8-snprintf: New file.
58815         * modules/unistdio/u8-sprintf: New file.
58816         * modules/unistdio/u8-vasnprintf: New file.
58817         * modules/unistdio/u8-vasprintf: New file.
58818         * modules/unistdio/u8-vsnprintf: New file.
58819         * modules/unistdio/u8-vsprintf: New file.
58820         * modules/unistdio/u8-u8-asnprintf: New file.
58821         * modules/unistdio/u8-u8-asprintf: New file.
58822         * modules/unistdio/u8-u8-snprintf: New file.
58823         * modules/unistdio/u8-u8-sprintf: New file.
58824         * modules/unistdio/u8-u8-vasnprintf: New file.
58825         * modules/unistdio/u8-u8-vasprintf: New file.
58826         * modules/unistdio/u8-u8-vsnprintf: New file.
58827         * modules/unistdio/u8-u8-vsprintf: New file.
58828         * modules/unistdio/u16-asnprintf: New file.
58829         * modules/unistdio/u16-asprintf: New file.
58830         * modules/unistdio/u16-printf-parse: New file.
58831         * modules/unistdio/u16-snprintf: New file.
58832         * modules/unistdio/u16-sprintf: New file.
58833         * modules/unistdio/u16-vasnprintf: New file.
58834         * modules/unistdio/u16-vasprintf: New file.
58835         * modules/unistdio/u16-vsnprintf: New file.
58836         * modules/unistdio/u16-vsprintf: New file.
58837         * modules/unistdio/u16-u16-asnprintf: New file.
58838         * modules/unistdio/u16-u16-asprintf: New file.
58839         * modules/unistdio/u16-u16-snprintf: New file.
58840         * modules/unistdio/u16-u16-sprintf: New file.
58841         * modules/unistdio/u16-u16-vasnprintf: New file.
58842         * modules/unistdio/u16-u16-vasprintf: New file.
58843         * modules/unistdio/u16-u16-vsnprintf: New file.
58844         * modules/unistdio/u16-u16-vsprintf: New file.
58845         * modules/unistdio/u32-asnprintf: New file.
58846         * modules/unistdio/u32-asprintf: New file.
58847         * modules/unistdio/u32-printf-parse: New file.
58848         * modules/unistdio/u32-snprintf: New file.
58849         * modules/unistdio/u32-sprintf: New file.
58850         * modules/unistdio/u32-vasnprintf: New file.
58851         * modules/unistdio/u32-vasprintf: New file.
58852         * modules/unistdio/u32-vsnprintf: New file.
58853         * modules/unistdio/u32-vsprintf: New file.
58854         * modules/unistdio/u32-u32-asnprintf: New file.
58855         * modules/unistdio/u32-u32-asprintf: New file.
58856         * modules/unistdio/u32-u32-snprintf: New file.
58857         * modules/unistdio/u32-u32-sprintf: New file.
58858         * modules/unistdio/u32-u32-vasnprintf: New file.
58859         * modules/unistdio/u32-u32-vasprintf: New file.
58860         * modules/unistdio/u32-u32-vsnprintf: New file.
58861         * modules/unistdio/u32-u32-vsprintf: New file.
58862         * modules/unistdio/ulc-asnprintf-tests: New file.
58863         * modules/unistdio/ulc-vasnprintf-tests: New file.
58864         * modules/unistdio/ulc-vasprintf-tests: New file.
58865         * modules/unistdio/ulc-vsnprintf-tests: New file.
58866         * modules/unistdio/ulc-vsprintf-tests: New file.
58867         * modules/unistdio/u8-asnprintf-tests: New file.
58868         * modules/unistdio/u8-vasnprintf-tests: New file.
58869         * modules/unistdio/u8-vasprintf-tests: New file.
58870         * modules/unistdio/u8-vsnprintf-tests: New file.
58871         * modules/unistdio/u8-vsprintf-tests: New file.
58872         * modules/unistdio/u16-asnprintf-tests: New file.
58873         * modules/unistdio/u16-vasnprintf-tests: New file.
58874         * modules/unistdio/u16-vasprintf-tests: New file.
58875         * modules/unistdio/u16-vsnprintf-tests: New file.
58876         * modules/unistdio/u16-vsprintf-tests: New file.
58877         * modules/unistdio/u32-asnprintf-tests: New file.
58878         * modules/unistdio/u32-vasnprintf-tests: New file.
58879         * modules/unistdio/u32-vasprintf-tests: New file.
58880         * modules/unistdio/u32-vsnprintf-tests: New file.
58881         * modules/unistdio/u32-vsprintf-tests: New file.
58882         * MODULES.html.sh (Unicode string functions): Add the new modules.
58883
58884 2007-07-01  Bruno Haible  <bruno@clisp.org>
58885
58886         * lib/sprintf.c (sprintf): Limit the available length estimation,
58887         to avoid address wraparound.
58888         * lib/vsprintf.c (vsprintf): Likewise.
58889         * modules/sprintf-posix (Dependencies): Add stdint.
58890         * modules/vsprintf-posix (Dependencies): Likewise.
58891
58892 2007-07-01  Bruno Haible  <bruno@clisp.org>
58893
58894         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
58895         Windows PATH as well. Conservative double-quoting. Comments.
58896
58897 2007-07-01  Bruno Haible  <bruno@clisp.org>
58898             Eric Blake  <ebb9@byu.net>
58899             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58900
58901         * gnulib-tool (self_abspathname): Fix algorithm to cope with
58902         empty components in $PATH, denoting '.'.
58903
58904 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58905
58906         * gnulib-tool: Fix indentation.
58907         (func_create_megatestdir): Likewise.
58908         Report by Bruno Haible.
58909
58910 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58911
58912         Sync from Automake.
58913         * build-aux/gnupload: Fix shell portability issues with for loops.
58914         Report by Karl Berry.
58915
58916 2007-06-29  Simon Josefsson  <simon@josefsson.org>
58917
58918         * build-aux/maint.mk (POURL): Use translationproject.org.
58919
58920 2007-06-27  Simon Josefsson  <simon@josefsson.org>
58921             Bruno Haible  <bruno@clisp.org>
58922
58923         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
58924         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
58925         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
58926         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
58927         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
58928
58929 2007-06-27  Bruno Haible  <bruno@clisp.org>
58930
58931         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
58932         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
58933
58934 2007-06-26  Karl Berry  <karl@gnu.org>
58935
58936         * MODULES.html.sh: remove xreadlink-with-size.
58937
58938 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58939
58940         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
58941         method that I hope also handles the double-include problem noted
58942         by Bruno Haible in
58943         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
58944
58945 2007-06-23  Bruno Haible  <bruno@clisp.org>
58946
58947         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58948         Don't let the 'mostlyclean' target fail if the last subdirectory could
58949         not be removed.
58950         Reported by Karl Berry.
58951
58952 2007-06-23  Bruno Haible  <bruno@clisp.org>
58953
58954         * gnulib-tool (echo): Add a speedier workaround for ksh.
58955         * tests/test-echo.sh: Likewise.
58956
58957 2007-06-23  Bruno Haible  <bruno@clisp.org>
58958
58959         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
58960         * tests/test-echo.sh: Likewise.
58961
58962 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58963
58964         * gnulib-tool (IFS): Initialize early, so we don't set it to
58965         empty later.
58966         (self_abspathname): Rewrite algorithm to set it, reindent.
58967         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
58968         (func_create_megatestdir): Merge some sed scripts.
58969
58970 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58971
58972         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
58973         exposed by Sun Studio 11 cc on Solaris 8.
58974
58975 2007-06-22  Bruno Haible  <bruno@clisp.org>
58976
58977         * gnulib-tool (echo): Ensure the echo primitive does not interpret
58978         backslashes.
58979         * tests/test-echo.sh: New file.
58980
58981 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58982
58983         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
58984         simplify `sed_replace_build_aux' scripts, they are portable but
58985         echoing them with `echo' is not.
58986         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
58987
58988 2007-06-21  Karl Berry  <karl@gnu.org>
58989
58990         * config/srclist.txt: guess we can't handle the licenses via
58991         srclist at the moment.
58992
58993 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
58994
58995         * MODULES.html.sh: Add include_next.
58996         * modules/include_next: New file.
58997
58998 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
58999
59000         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
59001         INCLUDE_NEXT.
59002         (gl_CHECK_NEXT_HEADERS): New macro.
59003         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
59004         the obsolescent gl_ABSOLUTE_HEADER.
59005         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
59006         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
59007         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
59008         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
59009         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
59010         * m4/math_h.m4 (gl_MATH_H): Likewise.
59011         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
59012         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
59013         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
59014         * m4/stdint.m4 (gl_STDINT_H): Likewise.
59015         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
59016         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
59017         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
59018         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59019         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
59020         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
59021         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
59022         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
59023         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
59024         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
59025         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
59026         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
59027         * m4/inttypes.m4 (gl_INTTYPES_H): Define
59028         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
59029         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
59030         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
59031         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
59032         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
59033         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
59034         * lib/float_.h: Likewise.
59035         * lib/inttypes_.h: Likewise.
59036         * lib/math_.h: Likewise.
59037         * lib/search_.h: Likewise.
59038         * lib/signal_.h: Likewise.
59039         * lib/stdint_.h: Likewise.
59040         * lib/stdio_.h: Likewise.
59041         * lib/stdlib_.h: Likewise.
59042         * lib/string_.h: Likewise.
59043         * lib/sys_stat_.h: Likewise.
59044         * lib/sys_time_.h: Likewise.
59045         * lib/time_.h: Likewise.
59046         * lib/unistd_.h: Likewise.
59047         * lib/wchar_.h: Likewise.
59048         * lib/wctype_.h: Likewise.
59049         * lib/dirent_.h: Likewise.
59050         * lib/iconv_.h: Likewise.
59051         * lib/locale_.h: Likewise.
59052         * lib/netinet_in_.h: Likewise.
59053         * lib/sys_select_.h: Likewise.
59054         * lib/sys_socket_.h: Likewise.
59055         * lib/sysexits_.h: Likewise.
59056         * modules/fcntl (Depends-on): Depend on include_next, not
59057         absolute_header.
59058         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
59059         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
59060         * modules/fchdir: Likewise.
59061         * modules/float: Likewise.
59062         * modules/iconv_open: Likewise.
59063         * modules/inttypes: Likewise.
59064         * modules/locale: Likewise.
59065         * modules/math: Likewise.
59066         * modules/netinet_in: Likewise.
59067         * modules/search: Likewise.
59068         * modules/signal: Likewise.
59069         * modules/stdint: Likewise.
59070         * modules/stdio: Likewise.
59071         * modules/stdlib: Likewise.
59072         * modules/string: Likewise.
59073         * modules/sys_select: Likewise.
59074         * modules/sys_socket: Likewise.
59075         * modules/sys_stat: Likewise.
59076         * modules/sys_time: Likewise.
59077         * modules/sysexits: Likewise.
59078         * modules/time: Likewise.
59079         * modules/unistd: Likewise.
59080         * modules/wchar: Likewise.
59081         * modules/wctype: Likewise.
59082         * modules/sys_stat: Change maintainer to "all".
59083         * modules/unistd: Likewise.
59084
59085 2007-06-20  Karl Berry  <karl@gnu.org>
59086
59087         * config/srclist.txt: track www changes in license files.
59088
59089 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
59090
59091         * build-aux/bootstrap: Remove stray dot.
59092         Make sure build_aux settings are honored when linking
59093         gnulib_extra_files.
59094
59095 2007-06-19  Eric Blake  <ebb9@byu.net>
59096
59097         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
59098         Allow compilation on cygwin.
59099
59100 2007-06-19  Jim Meyering  <jim@meyering.net>
59101
59102         xreadlink-with-size: Remove module.  No longer used.
59103         Ex-callers now use xreadlink or mreadlink-with-size.
59104         * modules/xreadlink-with-size: Remove module.
59105         * lib/xreadlink-with-size.c: Remove file.
59106         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
59107         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
59108         just before the function definition *is* accurate.
59109
59110         Eliminate one way canonicalize_filename_mode could exit.
59111         * lib/canonicalize.c (canonicalize_filename_mode):
59112         Use mreadlink_with_size, not xreadlink_with_size.
59113
59114 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
59115
59116         Detect porting problems to FreeBSD/arm, which has time_t wider than
59117         long int.  Original problem reported for GNU diff by Xin Li in
59118         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
59119         * modules/getdate (Depends-on): Add intprops, verify.
59120         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
59121         is an integer type no wider than long int.
59122
59123 2007-06-18  Jim Meyering  <jim@meyering.net>
59124
59125         New module: mreadlink-with-size.
59126         * MODULES.html.sh: Add mreadlink-with-size.
59127         * modules/mreadlink-with-size: New module
59128         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
59129         not xreadlink-with-size.
59130         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
59131
59132 2007-06-16  Bruno Haible  <bruno@clisp.org>
59133
59134         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
59135         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
59136         Reported by Gary V. Vaughan <gary@gnu.org>.
59137
59138 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
59139
59140         Revamp lchown so that it lives in unistd.h where it belongs.
59141         * lib/lchown.h: Remove.
59142         * lib/dirchownmod.c: Don't include lib/lchown.h.
59143         * lib/fchownat.c: Likewise.
59144         * lib/openat.c: Likewise.
59145         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
59146         does not follow symlinks.
59147         (EOPNOTSUPP): Define if not defined.
59148         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
59149         is defined to 0.
59150         (lchown): New decl.
59151         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
59152         Do not check for lchown decl.
59153         Set REPLACE_LCHOWN.
59154         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
59155         REPLACE_LCHOWN.
59156         * modules/chown: Make it clear it follows symlinks.
59157         * modules/lchown: Make it clear it doesn't follow symlinks.
59158         (Files): Remove lib/lchown.h
59159         (Depends-on): Add unistd.
59160         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
59161         (Include): Include <unistd.h>, not "lchown.h".
59162         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
59163         REPLACE_LCHOWN.
59164
59165 2007-06-15  Jim Meyering  <jim@meyering.net>
59166
59167         Change license (GPL to LGPL) of fsusage and dependents.
59168         * modules/fsusage (License): Change to LGPL.
59169         * modules/full-read (License): Likewise.
59170         * modules/full-write (License): Likewise.
59171         * modules/safe-read (License): Likewise.
59172         * modules/safe-write (License): Likewise.
59173
59174 2007-06-14  Ben Pfaff  <blp@gnu.org>
59175
59176         Missing part of allocsa -> malloca transition.
59177         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
59178         gl_MALLOCA.
59179
59180 2007-06-12  Bruno Haible  <bruno@clisp.org>
59181
59182         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
59183         to ia64, x86_64, i386.
59184         Reported by Eric Blake.
59185
59186 2007-06-12  Bruno Haible  <bruno@clisp.org>
59187
59188         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
59189         cross-compiling to x86_64.
59190
59191 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
59192
59193         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
59194         glitch reported by Ralf Wildenhues in
59195         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
59196
59197         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
59198         Vin Shelton.
59199
59200 2007-06-11  Bruno Haible  <bruno@clisp.org>
59201
59202         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
59203         replacement string.
59204         Reported by Eric Blake.
59205
59206 2007-06-10  Bruno Haible  <bruno@clisp.org>
59207
59208         Prepare vasnprintf code for use with Unicode strings.
59209         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
59210         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
59211         TYPE_U32_STRING.
59212         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
59213         a_u32_string variants.
59214         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
59215         * lib/printf-args.c: Don't include config.h and the specification
59216         header if PRINTF_FETCHARGS is already defined.
59217         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
59218         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
59219         TYPE_U16_STRING, TYPE_U32_STRING.
59220         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
59221         u16_directive, u16_directives, u32_directive, u32_directives): New
59222         types.
59223         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
59224         New declarations.
59225         * lib/printf-parse.c: Don't include config.h and the specification
59226         header if PRINTF_PARSE is already defined. Eliminate the set of
59227         parameters for WIDE_CHAR_VERSION; the user of this file must provide
59228         them now. Include c-ctype.h.
59229         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
59230         directive and CHAR_T_ONLY_ASCII.
59231         * lib/vasnprintf.c: Don't include config.h and the specification header
59232         if VASNPRINTF is already defined.
59233         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
59234         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
59235         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
59236         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
59237         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
59238         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
59239         code accordingly.
59240         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
59241         pad_ourselves also in this case, with the 'c' and 's' directives, and
59242         with a different notion of "width".
59243         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
59244
59245 2007-06-10  Bruno Haible  <bruno@clisp.org>
59246
59247         * modules/unistr/u32-mbsnlen: New file.
59248         * lib/unistr/u32-mbsnlen.c: New file.
59249
59250         * modules/unistr/u16-mbsnlen: New file.
59251         * lib/unistr/u16-mbsnlen.c: New file.
59252
59253         * modules/unistr/u8-mbsnlen: New file.
59254         * lib/unistr/u8-mbsnlen.c: New file.
59255
59256         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
59257         declarations.
59258
59259 2007-06-10  Bruno Haible  <bruno@clisp.org>
59260
59261         * lib/string_.h (mbsnlen): New declaration.
59262         * lib/mbsnlen.c: New file.
59263         * m4/mbsnlen.m4: New file.
59264         * modules/mbsnlen: New file.
59265         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
59266         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
59267         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
59268
59269 2007-06-10  Bruno Haible  <bruno@clisp.org>
59270
59271         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
59272
59273 2007-06-10  Bruno Haible  <bruno@clisp.org>
59274
59275         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
59276         * lib/mbuiter.h: Likewise.
59277
59278 2007-06-10  Bruno Haible  <bruno@clisp.org>
59279
59280         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
59281         declaration.
59282
59283 2007-06-10  Karl Berry  <karl@gnu.org>
59284
59285         * config/srclist.txt: remove gettext entries, Bruno prefers
59286         to update individually.
59287
59288 2007-06-10  Bruno Haible  <bruno@clisp.org>
59289
59290         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
59291         'maxlen'. Ensure only length + width bytes are allocated, not
59292         length + 1 + width.
59293
59294 2007-06-09  Bruno Haible  <bruno@clisp.org>
59295
59296         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
59297         (CHAR_T): Remove macro.
59298         (VASNPRINTF): Update.
59299
59300 2007-06-09  Bruno Haible  <bruno@clisp.org>
59301
59302         * MODULES.html.sh (Unicode string functions): Add the new modules.
59303
59304         * modules/uniconv/u32-conv-to-enc: New file.
59305         * lib/uniconv/u32-conv-to-enc.c: New file.
59306         * modules/uniconv/u32-conv-to-enc-tests: New file.
59307         * tests/uniconv/test-u32-conv-to-enc.c: New file.
59308
59309         * modules/uniconv/u16-conv-to-enc: New file.
59310         * lib/uniconv/u16-conv-to-enc.c: New file.
59311         * lib/uniconv/u-conv-to-enc.h: New file.
59312         * modules/uniconv/u16-conv-to-enc-tests: New file.
59313         * tests/uniconv/test-u16-conv-to-enc.c: New file.
59314
59315         * modules/uniconv/u8-conv-to-enc: New file.
59316         * lib/uniconv/u8-conv-to-enc.c: New file.
59317         * modules/uniconv/u8-conv-to-enc-tests: New file.
59318         * tests/uniconv/test-u8-conv-to-enc.c: New file.
59319
59320         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
59321         u32_conv_to_encoding): New declarations.
59322
59323 2007-06-09  Bruno Haible  <bruno@clisp.org>
59324
59325         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
59326
59327 2007-06-09  Bruno Haible  <bruno@clisp.org>
59328
59329         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
59330         * modules/malloca: Renamed from modules/allocsa, updated.
59331         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
59332         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
59333         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
59334         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
59335         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
59336         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
59337         * modules/xmalloca: Renamed from modules/xallocsa, updated.
59338         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
59339         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
59340         * modules/c-strcasestr (Depends-on): Update.
59341         * lib/c-strcasestr.c: Update.
59342         * modules/c-strstr (Depends-on): Update.
59343         * lib/c-strstr.c: Update.
59344         * modules/canonicalize-lgpl (Depends-on): Update.
59345         * lib/canonicalize-lgpl.c: Update.
59346         * modules/clean-temp (Depends-on): Update.
59347         * lib/clean-temp.c: Update.
59348         * modules/csharpcomp (Depends-on): Update.
59349         * lib/csharpcomp.c: Update.
59350         * modules/csharpexec (Depends-on): Update.
59351         * lib/csharpexec.c: Update.
59352         * modules/javacomp (Depends-on): Update.
59353         * lib/javacomp.c: Update.
59354         * modules/javaexec (Depends-on): Update.
59355         * lib/javaexec.c: Update.
59356         * modules/mbscasestr (Depends-on): Update.
59357         * lib/mbscasestr.c: Update.
59358         * modules/mbsstr (Depends-on): Update.
59359         * lib/mbsstr.c: Update.
59360         * modules/setenv (Depends-on): Update.
59361         * lib/setenv.c: Update.
59362         * modules/strcasestr (Depends-on): Update.
59363         * lib/strcasestr.c: Update.
59364         * modules/striconveha (Depends-on): Update.
59365         * lib/striconveha.c: Update.
59366         * modules/relocatable-prog-wrapper (Files): Update.
59367         * lib/relocwrapper.c: Update.
59368         * build-aux/install-reloc: Update.
59369         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
59370
59371 2007-06-08  Bruno Haible  <bruno@clisp.org>
59372
59373         Port to uClibc.
59374         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
59375         * lib/fpurge.c (fpurge): Likewise.
59376         * lib/freading.c (freading): Likewise.
59377         * lib/fseeko.c (rpl_fseeko): Likewise.
59378         * lib/fseterr.c (fseterr): Likewise.
59379         * lib/fwriting.c (fwriting): Likewise.
59380         * tests/test-fflush.c (main): Avoid a failure on uClibc.
59381
59382 2007-06-08  Bruno Haible  <bruno@clisp.org>
59383
59384         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
59385         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
59386         * modules/gettext (Files): Add m4/intlmacosx.m4.
59387
59388 2007-06-07  Bruno Haible  <bruno@clisp.org>
59389
59390         * modules/localename-tests: New file.
59391         * tests/test-localename.c: New file.
59392
59393         New module 'localename'.
59394         * lib/localename.h: New file.
59395         * lib/localename.c: New file, from GNU gettext.
59396         * m4/localename.m4: New file.
59397         * modules/localename: New file.
59398
59399 2007-06-07  Bruno Haible  <bruno@clisp.org>
59400
59401         Work around the lack of <wchar.h> on some builds of uClibc.
59402         * doc/headers/wchar.texi: Update.
59403         * lib/wchar_.h: Include <wchar.h> only if it exists.
59404         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
59405         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
59406         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
59407         doesn't exist.
59408         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
59409         * modules/mbfile (Depends-on): Add wchar.
59410         * modules/mbiter (Depends-on): Likewise.
59411         * modules/mbuiter (Depends-on): Likewise.
59412         Reported by Simon Josefsson.
59413
59414 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
59415
59416         Work around problem reported by Steven M. Schweda in
59417         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
59418         Tru64 5.1B with the Compaq compiler environment installed declares
59419         an 'isblank' function but does not define it in the C library.
59420         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
59421         * lib/regex_internal.h (isblank): Likewise.
59422         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
59423         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
59424
59425 2007-06-05  Bruno Haible  <bruno@clisp.org>
59426
59427         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
59428         ia64.
59429         * modules/printf-safe: New file.
59430         * modules/fprintf-posix (Depends-on): Add printf-safe.
59431         * modules/printf-posix (Depends-on): Likewise.
59432         * modules/snprintf-posix (Depends-on): Likewise.
59433         * modules/sprintf-posix (Depends-on): Likewise.
59434         * modules/vasnprintf-posix (Depends-on): Likewise.
59435         * modules/vasprintf-posix (Depends-on): Likewise.
59436         * modules/vfprintf-posix (Depends-on): Likewise.
59437         * modules/vprintf-posix (Depends-on): Likewise.
59438         * modules/vsnprintf-posix (Depends-on): Likewise.
59439         * modules/vsprintf-posix (Depends-on): Likewise.
59440         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
59441         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
59442         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
59443         "no" on i386, x86_64, ia64.
59444         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
59445         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59446         on i386, x86_64, ia64.
59447         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
59448         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59449         on i386, x86_64, ia64.
59450         * tests/test-vasnprintf-posix.c: Include float.h.
59451         (LDBL80_WORDS): New macro.
59452         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59453         on i386, x86_64, ia64.
59454         * tests/test-vasprintf-posix.c: Include float.h.
59455         (LDBL80_WORDS): New macro.
59456         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59457         on i386, x86_64, ia64.
59458         * tests/test-snprintf-posix.c: Include float.h.
59459         * tests/test-sprintf-posix.c: Likewise.
59460         * tests/test-vsnprintf-posix.c: Likewise.
59461         * tests/test-vsprintf-posix.c: Likewise.
59462
59463 2007-06-05  Bruno Haible  <bruno@clisp.org>
59464
59465         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
59466         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
59467         non-IEEE numbers on i386, x86_64, ia64.
59468         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
59469         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
59470         * tests/test-isnanl.h: Include float.h.
59471         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
59472
59473 2007-06-05  Bruno Haible  <bruno@clisp.org>
59474
59475         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
59476         also the %a / %A. Handle the %a / %A code before this extra handling.
59477
59478 2007-06-05  Bruno Haible  <bruno@clisp.org>
59479
59480         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
59481         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
59482
59483 2007-06-05  Bruno Haible  <bruno@clisp.org>
59484
59485         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
59486         typo in variable name.
59487
59488 2007-06-05  Eric Blake  <ebb9@byu.net>
59489
59490         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
59491         Reported by Simon Josefsson.
59492
59493 2007-06-04  Bruno Haible  <bruno@clisp.org>
59494
59495         Avoid test failures on some PowerPC platforms.
59496         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
59497         Define differently for PowerPC.
59498         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
59499         Reported by Gary V. Vaughan <gary@gnu.org>.
59500
59501 2007-06-02  Bruno Haible  <bruno@clisp.org>
59502
59503         Fix test-stdint failure on FreeBSD/ia64.
59504         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
59505         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
59506         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
59507         * doc/headers/stdint.texi: Update.
59508
59509 2007-06-01  Bruno Haible  <bruno@clisp.org>
59510
59511         * tests/test-binary-io.c (main): Pass a third argument to open().
59512         Reported by Gary V. Vaughan <gary@gnu.org>.
59513
59514 2007-06-01  Bruno Haible  <bruno@clisp.org>
59515
59516         * doc/functions/frexpl.texi: Update for mingw.
59517
59518 2007-06-01  Bruno Haible  <bruno@clisp.org>
59519
59520         * tests/test-lseek.c (main): Disable test of errno for invalid third
59521         argument.
59522         * doc/functions/lseek.texi: Update.
59523         Reported by Gary V. Vaughan <gary@gnu.org>.
59524
59525 2007-05-28  Bruno Haible  <bruno@clisp.org>
59526
59527         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
59528
59529 2007-05-31  Eric Blake  <ebb9@byu.net>
59530
59531         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
59532         cross compiling.
59533
59534 2007-05-30  Eric Blake  <ebb9@byu.net>
59535         and Bruno Haible  <bruno@clisp.org>
59536
59537         Work around mingw test failures exposed by m4-1.4.9b.
59538         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
59539         * tests/test-unistd.c: Disable uid_t and git_t tests for the
59540         moment.
59541
59542 2007-05-30  Bruno Haible  <bruno@clisp.org>
59543
59544         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
59545         assuming that they are closed. Needed on HP-UX 11.
59546
59547 2007-05-29  Bruno Haible  <bruno@clisp.org>
59548
59549         Fix a problem with #include_next.
59550         * lib/dirent_.h: Split the double-inclusion guard.
59551         * lib/fcntl_.h: Likewise.
59552         * lib/float_.h: Likewise.
59553         * lib/iconv_.h: Likewise.
59554         * lib/inttypes_.h: Likewise.
59555         * lib/locale_.h: Likewise.
59556         * lib/math_.h: Likewise.
59557         * lib/netinet_in_.h: Likewise.
59558         * lib/search_.h: Likewise.
59559         * lib/signal_.h: Likewise.
59560         * lib/stdint_.h: Likewise.
59561         * lib/stdio_.h: Likewise.
59562         * lib/stdlib_.h: Likewise.
59563         * lib/string_.h: Likewise.
59564         * lib/sys_select_.h: Likewise.
59565         * lib/sys_socket_.h: Likewise.
59566         * lib/sys_stat_.h: Likewise.
59567         * lib/sys_time_.h: Likewise.
59568         * lib/sysexits_.h: Likewise.
59569         * lib/time_.h: Likewise.
59570         * lib/unistd_.h: Likewise.
59571         * lib/wchar_.h: Likewise.
59572         * lib/wctype_.h: Likewise.
59573
59574 2007-05-29  Bruno Haible  <bruno@clisp.org>
59575
59576         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
59577         for the moment.
59578
59579 2007-05-29  Bruno Haible  <bruno@clisp.org>
59580
59581         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
59582         invocation.
59583         Reported by Eric Blake.
59584
59585 2007-05-29  Bruno Haible  <bruno@clisp.org>
59586
59587         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
59588         compiling case.
59589
59590 2007-05-29  Eric Blake  <ebb9@byu.net>
59591             Bruno Haible  <bruno@clisp.org>
59592
59593         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
59594         cross compiles.
59595
59596 2007-05-28  Eric Blake  <ebb9@byu.net>
59597
59598         * modules/closein-tests (test_closein_LDADD): Support test on
59599         cygwin with libtool.
59600
59601 2007-05-28  Bruno Haible  <bruno@clisp.org>
59602
59603         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
59604         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
59605         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
59606         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
59607         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
59608         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
59609         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
59610         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
59611         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
59612
59613 2007-05-28  Eric Blake  <ebb9@byu.net>
59614
59615         Unconditionally include <config.h> in unit tests.
59616         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
59617         * tests/test-allocsa.c, tests/test-arcfour.c,
59618         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
59619         tests/test-array_list.c, tests/test-array_oset.c,
59620         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
59621         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
59622         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
59623         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
59624         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
59625         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
59626         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
59627         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
59628         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
59629         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
59630         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
59631         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
59632         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
59633         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
59634         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
59635         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
59636         test-md5.c, test-memmem.c, test-printf-posix.c,
59637         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
59638         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
59639         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
59640         test-strcasestr.c, test-striconv.c, test-striconveh.c,
59641         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
59642         test-vasnprintf-posix2.c, test-vasnprintf.c,
59643         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
59644         test-vfprintf-posix.c, test-vprintf-posix.c,
59645         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
59646         test-xvasprintf.c: Likewise.
59647
59648 2007-05-28  Bruno Haible  <bruno@clisp.org>
59649
59650         * gnulib-tool (func_import): Remember the --with-tests command-line
59651         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
59652         Reported by Eric Blake.
59653
59654 2007-05-28  Bruno Haible  <bruno@clisp.org>
59655
59656         * modules/ftell-tests: New file.
59657         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
59658         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
59659
59660         * lib/ftell.c: New file.
59661         * modules/ftell: New file.
59662         * m4/ftell.m4: New file.
59663         * doc/functions/ftell.texi: Update.
59664         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
59665         REPLACE_FTELL.
59666         * lib/stdio_.h (rpl_ftell): New declaration.
59667         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
59668         REPLACE_FTELL.
59669
59670 2007-05-28  Eric Blake  <ebb9@byu.net>
59671
59672         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
59673
59674 2007-05-28  Bruno Haible  <bruno@clisp.org>
59675
59676         * modules/fseek-tests: New file.
59677         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
59678         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
59679
59680         * lib/fseek.c: New file.
59681         * modules/fseek: New file.
59682         * m4/fseek.m4: New file.
59683         * doc/functions/fseek.texi: Update.
59684         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
59685         REPLACE_FSEEK.
59686         * lib/stdio_.h (rpl_fseek): New declaration.
59687         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
59688         REPLACE_FSEEK.
59689
59690 2007-05-28  Bruno Haible  <bruno@clisp.org>
59691
59692         * lib/stdio_.h (fflush): More comments.
59693
59694 2007-05-28  Bruno Haible  <bruno@clisp.org>
59695
59696         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
59697         runtime test.
59698
59699 2007-05-28  Eric Blake  <ebb9@byu.net>
59700
59701         Improve lseek module.
59702         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
59703         * lib/unistd_.h (lseek): Scale back link warning message.
59704         * tests/test-lseek.c: Beef up test.
59705         * tests/test-lseek.sh: Exercise more facets of lseek.
59706         Reported by Bruno Haible.
59707
59708 2007-05-28  Bruno Haible  <bruno@clisp.org>
59709
59710         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
59711         to define.
59712
59713 2007-05-27  Bruno Haible  <bruno@clisp.org>
59714
59715         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
59716
59717 2007-05-27  Bruno Haible  <bruno@clisp.org>
59718
59719         * modules/openmp: New file.
59720         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
59721         Noah Misch.
59722
59723 2007-05-26  Bruno Haible  <bruno@clisp.org>
59724
59725         * modules/chdir-long (Depends-on): Add fchdir.
59726         * modules/chdir-safer (Depends-on): Likewise.
59727         * modules/fts (Depends-on): Likewise.
59728         * modules/fts-lgpl (Depends-on): Likewise.
59729         * modules/openat (Depends-on): Likewise.
59730         * modules/savewd (Depends-on): Likewise.
59731
59732 2007-05-24  Eric Blake  <ebb9@byu.net>
59733
59734         Fix lseek on mingw.
59735         * modules/lseek: New module.
59736         * m4/lseek.m4: New file.
59737         * lib/lseek.c: New file.
59738         * modules/lseek-tests: New file.
59739         * tests/test-lseek.c: New file.
59740         * tests/test-lseek.sh: New file.
59741         * MODULES.html.sh: Document lseek module.
59742         * modules/fflush (Depends-on): Add lseek, fseeko.
59743         * modules/fseeko (Depends-on): Likewise.
59744         * modules/ftello (Depends-on): Likewise.
59745         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
59746         broken.
59747         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
59748         broken.
59749         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
59750         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
59751         * lib/ftello.c (rpl_ftello): Likewise.
59752         * tests/test-fseeko.c (main): Test this.
59753         * tests/test-fseeko.sh: Likewise.
59754         * tests/test-ftello.c (main): Likewise.
59755         * tests/test-ftello.sh: Likewise.
59756         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
59757         implies replacing fseek.
59758         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
59759         HAVE_FTELLO.
59760         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
59761         * modules/unistd (Makefile.am): Likewise.
59762         * lib/unistd_.h (lseek): Declare a replacement.
59763         * doc/functions/lseek.texi (lseek): Document this fix.
59764         * doc/functions/fseek.texi (fseek): Likewise.
59765         * doc/functions/ftell.texi (ftell): Likewise.
59766
59767 2007-05-24  Bruno Haible  <bruno@clisp.org>
59768
59769         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
59770         in the printed representation of a NaN.
59771         * tests/test-vasprintf-posix.c (test_function): Likewise.
59772         * tests/test-snprintf-posix.h (test_function): Likewise.
59773         * tests/test-sprintf-posix.h (test_function): Likewise.
59774         Reported by Eric Blake.
59775
59776 2007-05-23  Eric Blake  <ebb9@byu.net>
59777
59778         Fix fseeko/ftello on cygwin 1.5.24.
59779         * doc/functions/fseeko.texi (fseeko): Document the fix.
59780         * doc/functions/ftello.texi (ftello): Document the fix.
59781         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
59782         * doc/functions/stdout.text (stdout): New file.
59783         * doc/functions/stderr.text (stderr): New file.
59784         * doc/gnulib.texi (Function Substitutes): Use new files.
59785         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
59786         prior to 1.7.0.
59787         * tests/test-ftello.c (main): Likewise for ftello.
59788         * tests/test-fseeko.sh: New file.
59789         * tests/test-ftello.sh: New file.
59790         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
59791         with seekable stdin.
59792         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
59793         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
59794         (gl_REPLACE_FSEEKO): New macro.
59795         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
59796         * modules/fseeko (Files): Distribute fseeko.c.
59797         * modules/ftello (Files): Distribute ftello.c.
59798         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
59799         mode.
59800         * lib/ftello.c (rpl_ftello): New file.
59801         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
59802         fseeko, ftello.
59803         (gl_STDIN_LARGE_OFFSET): New macro.
59804         * modules/stdio (Makefile.am): Perform the replacement.
59805         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
59806
59807 2007-05-23  Bruno Haible  <bruno@clisp.org>
59808
59809         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
59810         GNULIB_POSIXCHECK is defined.
59811
59812 2007-05-21  Bruno Haible  <bruno@clisp.org>
59813
59814         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
59815         Check also the output for NaN arguments. When cross-compiling, guess
59816         no on IRIX.
59817         * lib/vasnprintf.c: Update comments.
59818         * tests/test-vasnprintf-posix.c (strisnan): New function.
59819         (test_function): Use it.
59820         * tests/test-vasprintf-posix.c (strisnan): New function.
59821         (test_function): Use it.
59822         * tests/test-snprintf-posix.h (strisnan): New function.
59823         (test_function): Use it.
59824         * tests/test-sprintf-posix.h (strisnan): New function.
59825         (test_function): Use it.
59826         Reported by Eric Blake.
59827
59828 2007-05-20  Bruno Haible  <bruno@clisp.org>
59829
59830         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
59831         numbers that fails on BeOS.
59832         * doc/functions/frexpl.texi: Update.
59833
59834 2007-05-20  Jim Meyering  <jim@meyering.net>
59835
59836         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
59837         forced upon us by glibc-2.6.
59838
59839 2007-05-20  Bruno Haible  <bruno@clisp.org>
59840
59841         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
59842         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
59843         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
59844         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
59845         NEED_PRINTF_INFINITE.
59846         (is_infinitel): New function.
59847         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
59848         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
59849         gl_PREREQ_VASNPRINTF_INFINITE.
59850         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
59851         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59852         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
59853         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
59854         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
59855         gl_PREREQ_VASNPRINTF_INFINITE.
59856         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59857         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59858         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59859         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59860         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59861         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59862         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59863         * doc/functions/fprintf.texi: Update.
59864         * doc/functions/printf.texi: Update.
59865         * doc/functions/snprintf.texi: Update.
59866         * doc/functions/sprintf.texi: Update.
59867         * doc/functions/vfprintf.texi: Update.
59868         * doc/functions/vprintf.texi: Update.
59869         * doc/functions/vsnprintf.texi: Update.
59870         * doc/functions/vsprintf.texi: Update.
59871
59872 2007-05-20  Bruno Haible  <bruno@clisp.org>
59873
59874         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
59875         was not found in libc.
59876         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
59877
59878 2007-05-20  Bruno Haible  <bruno@clisp.org>
59879
59880         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59881         printed as "-nan" instead of "nan".
59882         * tests/test-vasprintf-posix.c (test_function): Likewise.
59883         * tests/test-snprintf-posix.h (test_function): Likewise.
59884         * tests/test-sprintf-posix.h (test_function): Likewise.
59885         Needed for HP-UX 11.
59886
59887 2007-05-20  Jim Meyering  <jim@meyering.net>
59888
59889         Fix buggy test for the fchownat-deref bug.
59890         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
59891         symlink required for the run-test.  Without it, this test would
59892         always declare that fchownat doesn't work, and client code would
59893         unnecessarily use the replacement function with fixed libc.
59894         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
59895         Reported by Greg Schafer.
59896
59897 2007-05-19  Bruno Haible  <bruno@clisp.org>
59898
59899         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
59900         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
59901         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
59902         Needed for IRIX 6.5 and Solaris 2.5.1.
59903
59904 2007-05-19  Bruno Haible  <bruno@clisp.org>
59905
59906         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
59907         (test_function): Skip tests involving -0.0 on platforms where
59908         -0.0 = 0.0.
59909         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
59910         (test_function): Skip tests involving -0.0 on platforms where
59911         -0.0 = 0.0.
59912         * tests/test-snprintf-posix.h (have_minus_zero): New function.
59913         (test_function): Skip tests involving -0.0 on platforms where
59914         -0.0 = 0.0.
59915         * tests/test-sprintf-posix.h (have_minus_zero): New function.
59916         (test_function): Skip tests involving -0.0 on platforms where
59917         -0.0 = 0.0.
59918         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
59919         tests.
59920         * tests/test-printf-posix.h (test_function): Likewise.
59921         * tests/test-printf-posix.output: Remove all -0.0 related results.
59922         Needed for IRIX 6.5.
59923
59924 2007-05-19  Bruno Haible  <bruno@clisp.org>
59925
59926         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59927         printed as "nan0x7fffffff" instead of "nan".
59928         * tests/test-vasprintf-posix.c (test_function): Likewise.
59929         * tests/test-snprintf-posix.h (test_function): Likewise.
59930         * tests/test-sprintf-posix.h (test_function): Likewise.
59931         * tests/test-fprintf-posix.h (NaN): Remove macro.
59932         (test_function): Remove all NaN related tests.
59933         * tests/test-printf-posix.h (NaN): Remove macro.
59934         (test_function): Remove all NaN related tests.
59935         * tests/test-printf-posix.output: Remove all NaN related results.
59936         Needed for IRIX 6.5.
59937
59938 2007-05-19  Bruno Haible  <bruno@clisp.org>
59939
59940         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
59941         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
59942
59943 2007-05-19  Bruno Haible  <bruno@clisp.org>
59944
59945         * lib/float_.h: New file.
59946         * m4/float_h.m4: New file.
59947         * modules/float: New file.
59948         * modules/isnanl (Dependencies): Add float.
59949         * modules/isnanl-nolibm (Dependencies): Likewise.
59950         * modules/mathl (Dependencies): Likewise.
59951         * modules/printf-frexpl (Dependencies): Likewise.
59952         * modules/signbit (Dependencies): Likewise.
59953         * modules/vasnprintf (Dependencies): Likewise.
59954         * doc/headers/float.texi: Update.
59955
59956 2007-05-19  Jim Meyering  <jim@meyering.net>
59957
59958         * lib/utimens.c (gl_futimens): Rename from futimens,
59959         now that glibc-2.6 declares futimens.
59960         * lib/utimens.h: Likewise.
59961
59962 2007-05-19  Bruno Haible  <bruno@clisp.org>
59963
59964         Avoid test failures on mingw.
59965         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
59966         * tests/test-printf-posix.sh: Likewise.
59967         * tests/test-vfprintf-posix.sh: Likewise.
59968         * tests/test-vprintf-posix.sh: Likewise.
59969
59970 2007-05-19  Bruno Haible  <bruno@clisp.org>
59971
59972         Fix *printf result for NaN, Inf, -0.0 on mingw.
59973         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
59974         * lib/vasnprintf.c: Include math.h and isnan.h.
59975         (is_infinite_or_zero): New function.
59976         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
59977         values in the %f, %F, %e, %E, %g, %G directives.
59978         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
59979         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59980         gl_PRINTF_INFINITE and test its result. Invoke
59981         gl_PREREQ_VASNPRINTF_INFINITE.
59982         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59983         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59984         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59985         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59986         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59987         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59988         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59989         * doc/functions/fprintf.texi: Update.
59990         * doc/functions/printf.texi: Update.
59991         * doc/functions/snprintf.texi: Update.
59992         * doc/functions/sprintf.texi: Update.
59993         * doc/functions/vfprintf.texi: Update.
59994         * doc/functions/vprintf.texi: Update.
59995         * doc/functions/vsnprintf.texi: Update.
59996         * doc/functions/vsprintf.texi: Update.
59997
59998 2007-05-19  Bruno Haible  <bruno@clisp.org>
59999
60000         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
60001         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
60002         Instead of multiplying with 10^k, set extra_zeroes to k.
60003         (scale10_round_long_double): Remove function.
60004
60005 2007-05-18  Bruno Haible  <bruno@clisp.org>
60006
60007         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
60008         introduced on 2007-05-06.
60009
60010 2007-05-18  Bruno Haible  <bruno@clisp.org>
60011
60012         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
60013         %g directives.
60014         * tests/test-vasprintf-posix.c (test_function): Likewise.
60015         * tests/test-snprintf-posix.h (test_function): Likewise.
60016         * tests/test-sprintf-posix.h (test_function): Likewise.
60017
60018 2007-05-18  Bruno Haible  <bruno@clisp.org>
60019
60020         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
60021         (strmatch): New function.
60022         (test_function): Test the %f directive on numbers of various exponents.
60023         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
60024         (strmatch): New function.
60025         (test_function): Test the %f directive on numbers of various exponents.
60026         * tests/test-snprintf-posix.h (strmatch): New function.
60027         (test_function): Test the %f directive on numbers of various exponents.
60028         * tests/test-sprintf-posix.h (strmatch): New function.
60029         (test_function): Test the %f directive on numbers of various exponents.
60030         * tests/test-snprintf-posix.c (SIZEOF): New macro.
60031         * tests/test-sprintf-posix.c (SIZEOF): New macro.
60032         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
60033         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
60034
60035 2007-05-18  Bruno Haible  <bruno@clisp.org>
60036
60037         Add support for 'long double' number output.
60038         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
60039         * lib/vasnprintf.c: Include math.h and float+.h.
60040         (mp_limb_t): New type.
60041         (GMP_LIMB_BITS): New macro.
60042         (mp_twolimb_t): New type.
60043         (GMP_TWOLIMB_BITS): New macro.
60044         (mpn_t): New type.
60045         (multiply, divide, convert_to_decimal, decode_long_double,
60046         scale10_round_long_double, scale10_round_decimal_long_double,
60047         floorlog10l): New functions.
60048         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
60049         for the %f, %F, %e, %E, %g, %G directives.
60050         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
60051         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60052         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
60053         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
60054         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60055         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60056         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60057         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60058         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60059         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60060         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60061         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
60062         * modules/snprintf-posix (Depends-on): Likewise.
60063         * modules/sprintf-posix (Depends-on): Likewise.
60064         * modules/vasnprintf-posix (Depends-on): Likewise.
60065         * modules/vasprintf-posix (Depends-on): Likewise.
60066         * modules/vfprintf-posix (Depends-on): Likewise.
60067         * modules/vsnprintf-posix (Depends-on): Likewise.
60068         * modules/vsprintf-posix (Depends-on): Likewise.
60069         * modules/vasnprintf (Files): Add lib/float+.h.
60070         * doc/functions/fprintf.texi: Update.
60071         * doc/functions/printf.texi: Update.
60072         * doc/functions/snprintf.texi: Update.
60073         * doc/functions/sprintf.texi: Update.
60074         * doc/functions/vfprintf.texi: Update.
60075         * doc/functions/vprintf.texi: Update.
60076         * doc/functions/vsnprintf.texi: Update.
60077         * doc/functions/vsprintf.texi: Update.
60078
60079 2007-05-18  Bruno Haible  <bruno@clisp.org>
60080
60081         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
60082
60083 2007-05-18  Bruno Haible  <bruno@clisp.org>
60084
60085         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
60086         for printing 64-bit integers. Needed for mingw.
60087
60088 2007-05-18  Bruno Haible  <bruno@clisp.org>
60089
60090         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
60091         gl_FUNC_FREXPL_WORKS.
60092         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
60093
60094 2007-05-18  Bruno Haible  <bruno@clisp.org>
60095
60096         * modules/frexpl-nolibm-tests: New file.
60097
60098         * modules/frexpl-nolibm: New file.
60099         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
60100
60101 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
60102
60103         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
60104         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
60105         GCC 4.2, which otherwise issues a lot of warnings.
60106         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
60107         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
60108         Likewise.
60109         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
60110         * modules/iconv_open (iconv.h): Likewise.
60111         * modules/locale (locale.h): Likewise.
60112         * modules/netinet_in (netinet/in.h): Likewise.
60113         * modules/sys_select (sys_select.h): Likewise.
60114         * modules/sys_socket (sys/socket.h): Likewise.
60115         * modules/sys_stat (sys/stat.h): Likewise.
60116         * modules/sysexits (sysexits.h): Likewise.
60117         * modules/unistd (unistd.h): Likewise.
60118
60119 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60120
60121         * modules/closein-tests (Makefile.am): Distribute
60122         `test-closein.sh'.
60123
60124 2007-05-17  Bruno Haible  <bruno@clisp.org>
60125
60126         * tests/test-printf-posix.output: Renamed from
60127         tests/test-fprintf-posix.out.
60128         * modules/fprintf-posix-tests: Update.
60129         * modules/printf-posix-tests: Update.
60130         * modules/vfprintf-posix-tests: Update.
60131         * modules/vprintf-posix-tests: Update.
60132         * tests/test-fprintf-posix.sh: Update.
60133         * tests/test-printf-posix.sh: Update.
60134         * tests/test-vfprintf-posix.sh: Update.
60135         * tests/test-vprintf-posix.sh: Update.
60136         Reported by Ralf Wildenhues.
60137
60138 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
60139
60140         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
60141         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
60142         GCC 4.2, which otherwise issues a lot of warnings.
60143         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
60144         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
60145         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
60146         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
60147         it should no longer be needed.
60148         * lib/string_.h: Likewise.
60149         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
60150         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
60151         * modules/inttypes (inttypes.h): Likewise.
60152         * modules/math (math.h): Likewise.
60153         * modules/search (search.h): Likewise.
60154         * modules/signal (signal.h): Likewise.
60155         * modules/stdint (stdint.h): Likewise.
60156         * modules/stdio (stdio.h): Likewise.
60157         * modules/stdlib (stdlib.h): Likewise.
60158         * modules/string (string.h): Likewise.
60159         * modules/sys_time (sys/time.h): Likewise.
60160         * modules/time (time.h): Likewise.
60161         * modules/wchar (wchar.h): Likewise.
60162         * modules/wctype (wtype.h): Likewise.
60163
60164 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
60165
60166         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
60167
60168 2007-05-13  Bruno Haible  <bruno@clisp.org>
60169
60170         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
60171         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
60172         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
60173         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
60174         (gl_PREREQ_STRTOK_R): Don't require it here.
60175
60176 2007-05-13  Bruno Haible  <bruno@clisp.org>
60177
60178         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
60179         when used in C++ mode.
60180
60181 2007-05-12  Bruno Haible  <bruno@clisp.org>
60182
60183         * lib/linebuffer.h: Tweak doc.
60184         * lib/linebuffer.c: Likewise.
60185
60186 2007-05-12  James Youngman  <jay@gnu.org>
60187
60188         * lib/linebuffer.c (readlinebuffer_delim): New function,
60189         like readlinebuffer, but use a caller-specified delimiter.
60190         (readlinebuffer): Just call readlinebuffer_delim with '\n'
60191         as the delimiter.
60192         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
60193
60194 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60195
60196         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
60197         * modules/openat (Files): Remove openat-die.c.
60198         (Depends-on): Add openat-die.
60199         * modules/openat-die: New module.
60200
60201 2007-05-06  Bruno Haible  <bruno@clisp.org>
60202
60203         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
60204         Update with info about Cygwin.
60205         * doc/functions/fprintf.texi: Update.
60206         * doc/functions/printf.texi: Update.
60207         * doc/functions/snprintf.texi: Update.
60208         * doc/functions/sprintf.texi: Update.
60209         * doc/functions/vfprintf.texi: Update.
60210         * doc/functions/vprintf.texi: Update.
60211         * doc/functions/vsnprintf.texi: Update.
60212         * doc/functions/vsprintf.texi: Update.
60213         Reported by Eric Blake.
60214
60215 2007-05-06  Bruno Haible  <bruno@clisp.org>
60216
60217         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
60218         padding ourselves for the floating-point directives.
60219         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
60220         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
60221         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60222         gl_PRINTF_FLAG_ZERO and test its result. Invoke
60223         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
60224         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60225         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
60226         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60227         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60228         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60229         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60230         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60231         * tests/test-snprintf-posix.h (test_function): Also check the width
60232         and some flags in the %f directive.
60233         * tests/test-sprintf-posix.h (test_function): Likewise.
60234         * tests/test-vasnprintf-posix.c (test_function): Likewise.
60235         * tests/test-vasprintf-posix.c (test_function): Likewise.
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
60245 2007-05-06  Bruno Haible  <bruno@clisp.org>
60246
60247         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
60248         pass the ' flag character to sprintf or snprintf.
60249         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
60250         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
60251         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60252         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
60253         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
60254         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60255         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
60256         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60257         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60258         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60259         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60260         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60261         * tests/test-snprintf-posix.h (test_function): Also check the grouping
60262         flag.
60263         * tests/test-sprintf-posix.h (test_function): Likewise.
60264         * tests/test-vasnprintf-posix.c (test_function): Likewise.
60265         * tests/test-vasprintf-posix.c (test_function): Likewise.
60266         * doc/functions/fprintf.texi: Update.
60267         * doc/functions/printf.texi: Update.
60268         * doc/functions/snprintf.texi: Update.
60269         * doc/functions/sprintf.texi: Update.
60270         * doc/functions/vfprintf.texi: Update.
60271         * doc/functions/vprintf.texi: Update.
60272         * doc/functions/vsnprintf.texi: Update.
60273         * doc/functions/vsprintf.texi: Update.
60274
60275 2007-05-01  Bruno Haible  <bruno@clisp.org>
60276
60277         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
60278
60279 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
60280
60281         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
60282         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
60283
60284 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60285
60286         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
60287         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
60288         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
60289
60290 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
60291
60292         * lib/argp-help.c (struct hol_entry): New member `ord'.
60293         (HOL_ENTRY_PTRCMP): Use ord for comparison
60294         (hol_sort): Initialize ord.
60295
60296 2007-05-01  Bruno Haible  <bruno@clisp.org>
60297
60298         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
60299         Reported by Eric Blake.
60300         * doc/gnulib.texi (Function Substitutes): Update.
60301
60302 2007-05-01  Bruno Haible  <bruno@clisp.org>
60303
60304         * doc/functions.texi: Remove file, now redundant through
60305         doc/functions/*.texi.
60306
60307 2007-05-01  Bruno Haible  <bruno@clisp.org>
60308
60309         * modules/argp (Depends-on): Add sleep.
60310
60311 2007-05-01  Bruno Haible  <bruno@clisp.org>
60312
60313         * modules/sleep-tests: New file.
60314         * tests/test-sleep.c: New file.
60315
60316         * modules/sleep: New file.
60317         * lib/sleep.c: New file.
60318         * m4/sleep.m4: New file.
60319         * lib/unistd_.h (sleep): New declaration.
60320         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
60321         HAVE_SLEEP.
60322         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
60323         * doc/functions/sleep.texi: Document the sleep module.
60324
60325 2007-05-01  Bruno Haible  <bruno@clisp.org>
60326
60327         * lib/sigprocmask.h: Remove file.
60328         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
60329         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
60330         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
60331         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
60332         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
60333         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
60334         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
60335         HAVE_SIGSET_T as a shell variable.
60336         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
60337         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
60338         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
60339         (Depends-on): Add signal. Remove verify.
60340         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
60341         (Include): Mention <signal.h> instead of sigprocmask.h.
60342         * NEWS: Mention the change.
60343         * lib/fatal-signal.c: Don't include sigprocmask.h.
60344
60345 2007-05-01  Bruno Haible  <bruno@clisp.org>
60346
60347         * modules/signal: New file.
60348         * lib/signal_.h: New file.
60349         * m4/signal_h.m4: New file.
60350
60351 2007-05-01  Bruno Haible  <bruno@clisp.org>
60352
60353         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
60354         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
60355         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
60356         HAVE_WCTYPE_CTMP_BUG into wctype.h.
60357
60358 2007-05-01  Bruno Haible  <bruno@clisp.org>
60359
60360         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
60361         configure time.
60362         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
60363         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
60364         * modules/sys_stat (Makefile.am): Substitute their values into
60365         sys/stat.h.
60366
60367 2007-05-01  Bruno Haible  <bruno@clisp.org>
60368
60369         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
60370         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
60371         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
60372
60373 2007-05-01  Bruno Haible  <bruno@clisp.org>
60374
60375         * doc/header/assert.texi: Undo last change: don't mention the gnulib
60376         'assert' module here.
60377
60378 2007-05-01  Bruno Haible  <bruno@clisp.org>
60379
60380         * doc/functions/*.texi: New files.
60381         * doc/functions/google-ranking.txt: New file.
60382         * doc/gnulib.texi (Function Substitutes): New chapter.
60383         (ctime, inet_ntoa): Remove sections.
60384         * doc/ctime.texi: Remove file.
60385         * doc/inet_ntoa.texi: Remove file.
60386         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
60387         dependencies.
60388         (%.info): New rule, specifying a --reference-limit.
60389
60390 2007-05-01  Bruno Haible  <bruno@clisp.org>
60391
60392         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
60393
60394 2007-05-01  Bruno Haible  <bruno@clisp.org>
60395
60396         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
60397         the portability of 'mkdir' to mingw systems.
60398
60399 2007-05-01  Bruno Haible  <bruno@clisp.org>
60400
60401         * doc/headers/google-ranking.txt: New file.
60402
60403 2007-04-30  Eric Blake  <ebb9@byu.net>
60404
60405         Prefer fseeko to fseek.
60406         * modules/getpass (Depends-on): Add fseeko.
60407         * lib/getpass.c (getpass): Use fseeko, not fseek.
60408
60409 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
60410
60411         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
60412         assumes the sorting is stable, while most qsort implementations
60413         are not.  Use argument addresses to ensure they never compare as
60414         equal.
60415
60416         * tests/test-argp-2.sh (usage-indent test): Fix output
60417         (func_compare): Restore diff options
60418         * tests/test-argp.c: Restore #include "progname.h"
60419
60420 2007-04-29  Bruno Haible  <bruno@clisp.org>
60421
60422         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
60423         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60424         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
60425         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60426         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
60427         (configure.ac): Define CHECK_SNPRINTF_POSIX.
60428         (TESTS, check_PROGRAMS): Add test-snprintf.
60429         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
60430         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
60431         (TESTS, check_PROGRAMS): Add test-vsnprintf.
60432         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
60433         assertions that fail on HP-UX, OSF/1, or IRIX.
60434         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
60435
60436 2007-04-29  Bruno Haible  <bruno@clisp.org>
60437
60438         * MODULES.html.sh (posix_functions): Remove 'contents'.
60439
60440 2007-04-29  Karl Berry  <karl@gnu.org>
60441
60442         * config/srclist.txt (gendocs_template_min): new entry.
60443
60444 2007-04-29  Bruno Haible  <bruno@clisp.org>
60445
60446         Work around fpurge bug on BSD systems.
60447         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
60448         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
60449         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
60450         fpurge to rpl_fpurge if the system already has this function.
60451         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
60452         the case where the system already has this function. Correct invariants
60453         on BSD systems.
60454         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
60455         BSD systems.
60456
60457 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
60458
60459         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
60460         proposed by Sven Verdoolaege.
60461
60462         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
60463         options.
60464         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
60465         (usage and help tests): Update
60466
60467 2007-04-29  Bruno Haible  <bruno@clisp.org>
60468
60469         * tests/test-fflush.c (main): Use a file of size 17, not 10.
60470         Print more information in case of failure. Disable a test on BeOS.
60471
60472 2007-04-29  Bruno Haible  <bruno@clisp.org>
60473
60474         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
60475         This helps debugging on systems on which no gdb is available.
60476
60477 2007-04-29  Bruno Haible  <bruno@clisp.org>
60478
60479         * lib/freading.h: Improve comments.
60480         * lib/fwriting.h: Likewise.
60481         * tests/test-freading.c (main): Don't check freading immediately after
60482         repositioning. Needed for glibc.
60483
60484 2007-04-29  Bruno Haible  <bruno@clisp.org>
60485
60486         * lib/freading.c (freading): Trivial simplification.
60487
60488 2007-04-28  Bruno Haible  <bruno@clisp.org>
60489
60490         * tests/test-fwriting.c (main): Also test the interaction between
60491         fflush and fwriting.
60492         * modules/fwriting-tests (Depends-on): Add fflush.
60493
60494         * tests/test-freading.c (main): Also test the interaction between
60495         fflush and freading.
60496         * modules/freading-tests (Depends-on): Add fflush.
60497
60498 2007-04-28  Bruno Haible  <bruno@clisp.org>
60499
60500         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
60501         fseeko and ftello.
60502         Suggested by Eric Blake.
60503
60504 2007-04-28  Jim Meyering  <jim@meyering.net>
60505
60506         Avoid false-negative in gl_STDINT_H's C99 conformance test.
60507         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
60508         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
60509
60510 2007-04-27  Eric Blake  <ebb9@byu.net>
60511
60512         * doc/headers/assert.texi (assert.h): Document assert module use.
60513
60514 2007-04-27  Bruno Haible  <bruno@clisp.org>
60515
60516         * doc/headers/*.texi: New files.
60517         * doc/gnulib.texi (Header File Substitutes): New chapter.
60518         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
60519         dependencies.
60520         (standards.info ,standards.html, standards.dvi): Update dependencies.
60521         (mostlyclean, clean): New targets.
60522
60523 2007-04-27  Bruno Haible  <bruno@clisp.org>
60524
60525         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
60526         * modules/sysexits (Files, Makefile.am): Update.
60527
60528         * lib/sys_socket_.h: Renamed from lib/socket_.h.
60529         * modules/sys_socket (Files, Makefile.am): Update.
60530
60531         * lib/sys_stat_.h: Renamed from lib/stat_.h.
60532         * modules/sys_stat (Files, Makefile.am): Update.
60533
60534 2007-04-27  Eric Blake  <ebb9@byu.net>
60535
60536         * lib/freading.h: Improve comments.
60537         * lib/fwriting.h: Likewise.
60538         * lib/fflush.c: Likewise.
60539
60540         Fix closein for mingw.
60541         * modules/closein-tests: Add tests for closein.
60542         * tests/test-closein.c: New file.
60543         * tests/test-closein.sh: Likewise.
60544         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
60545         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
60546
60547 2007-04-27  Bruno Haible  <bruno@clisp.org>
60548
60549         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
60550         version is < 6.
60551         * lib/math_.h [__DECC]: Likewise.
60552         * lib/stdio_.h [__DECC]: Likewise.
60553         * lib/stdlib_.h [__DECC]: Likewise.
60554         * lib/string_.h [__DECC]: Likewise.
60555         * lib/time_.h [__DECC]: Likewise.
60556         * lib/wchar_.h [__DECC]: Likewise.
60557         * lib/wctype_.h [__DECC]: Likewise.
60558
60559 2007-04-27  Bruno Haible  <bruno@clisp.org>
60560
60561         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
60562
60563 2007-04-27  Bruno Haible  <bruno@clisp.org>
60564
60565         * lib/fflush.c: Add comments.
60566         * modules/fpurge-tests (Depends-on): Add fflush.
60567         * modules/freadable-tests (Depends-on): Likewise.
60568         * modules/fwritable-tests (Depends-on): Likewise.
60569
60570 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
60571
60572         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
60573         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
60574         Report by Bruno Haible <bruno@clisp.org>.
60575
60576 2007-04-26  Eric Blake  <ebb9@byu.net>
60577
60578         Fix fflush on mingw.
60579         * modules/fflush (Depends-on): Add freading.
60580         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
60581         but unread data.
60582
60583 2007-04-26  Eric Blake  <ebb9@byu.net>
60584         and Bruno Haible  <bruno@clisp.org>
60585
60586         Implement freading and fwriting.
60587         * lib/freading.c: New file.
60588         * lib/freading.h: Likewise.
60589         * m4/freading.m4: Likewise.
60590         * modules/freading: Likewise.
60591         * modules/freading-tests: Likewise.
60592         * tests/test-freading.c: Likewise.
60593         * lib/fwriting.c: New file.
60594         * lib/fwriting.h: Likewise.
60595         * m4/fwriting.m4: Likewise.
60596         * modules/fwriting: Likewise.
60597         * modules/fwriting-tests: Likewise.
60598         * tests/test-fwriting.c: Likewise.
60599         * MODULES.html.sh (File stream based Input/Output): Mention them.
60600
60601 2007-04-26  Bruno Haible  <bruno@clisp.org>
60602
60603         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
60604         'long' when we assume it.
60605         Suggested by Eric Blake.
60606
60607 2007-04-26  Bruno Haible  <bruno@clisp.org>
60608
60609         Ensure fseeko, ftello are declared on glibc systems.
60610         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
60611         * modules/fseeko (configure.ac-early): Likewise.
60612         * modules/ftello (configure.ac-early): Likewise.
60613         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
60614         AC_FUNC_FSEEKO for this.
60615         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
60616         (gl_CHECK_FSEEKO): Remove macro.
60617
60618 2007-04-26  Bruno Haible  <bruno@clisp.org>
60619
60620         * tests/test-fflush.c (main): Also check the ftell result after
60621         fflush and fseek/fseeko.
60622         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
60623         file descriptor position cache in the stream.
60624         * lib/fseeko.c (rpl_fseeko): Likewise.
60625
60626 2007-04-26  Bruno Haible  <bruno@clisp.org>
60627
60628         * modules/fflush-tests (Depends-on): Add fseeko.
60629
60630 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
60631             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60632
60633         * lib/argz_.h: ensure error_t definition is obtained in same
60634         mechanism system argz.h would have.
60635         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
60636         argz facilities are known bad.  Err on the side of caution if
60637         cross-compiling.
60638
60639 2007-04-25  Eric Blake  <ebb9@byu.net>
60640
60641         * lib/fpurge.c (includes): Use stdlib.h for free.
60642         * tests/test-fflush.c (main): Also test fflush-fseeko.
60643
60644 2007-04-25  Bruno Haible  <bruno@clisp.org>
60645
60646         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
60647         * lib/fseeko.c: New file.
60648         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
60649         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
60650         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
60651         gl_FUNC_FSEEKO.
60652         (gl_FUNC_FSEEKO): Invoke it.
60653         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
60654         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
60655         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
60656
60657 2007-04-25  Bruno Haible  <bruno@clisp.org>
60658
60659         * modules/fflush (Depends-on): Add ftello.
60660
60661 2007-04-25  Bruno Haible  <bruno@clisp.org>
60662
60663         * modules/ftello-tests: New file.
60664         * tests/test-ftello.c: New file.
60665
60666         * modules/ftello: New file.
60667         * m4/ftello.m4: New file.
60668         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
60669         HAVE_FTELLO.
60670         * lib/stdio_.h (ftello): New declaration.
60671         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
60672         HAVE_FTELLO.
60673
60674 2007-04-25  Bruno Haible  <bruno@clisp.org>
60675
60676         * modules/fseeko-tests: New file.
60677         * tests/test-fseeko.c: New file.
60678
60679         * modules/fseeko: New file.
60680         * m4/fseeko.m4: New file.
60681         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
60682         HAVE_FSEEKO.
60683         * lib/stdio_.h (fseeko): New declaration.
60684         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
60685         HAVE_FSEEKO.
60686
60687 2007-04-25  Bruno Haible  <bruno@clisp.org>
60688
60689         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
60690
60691 2007-04-25  Bruno Haible  <bruno@clisp.org>
60692
60693         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
60694         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
60695         * tests/test-unistd.c: Likewise.
60696         * tests/test-fcntl.c: Likewise.
60697
60698 2007-04-23  Eric Blake  <ebb9@byu.net>
60699
60700         * lib/fflush.c: Fix missing include.
60701         Reported by Bruno Haible.
60702
60703 2007-04-23  Bruno Haible  <bruno@clisp.org>
60704
60705         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
60706         Reported by Eric Blake.
60707
60708 2007-04-23  Bruno Haible  <bruno@clisp.org>
60709
60710         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
60711
60712 2007-04-23  Bruno Haible  <bruno@clisp.org>
60713
60714         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
60715
60716 2007-04-23  Bruno Haible  <bruno@clisp.org>
60717
60718         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
60719         Needed on HP-UX 11.
60720
60721 2007-04-16  Eric Blake  <ebb9@byu.net>
60722
60723         Make fflush rely on fpurge.
60724         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
60725         open coding all variants.
60726         * modules/fflush (Depends-on): Add fpurge and unistd.
60727         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
60728         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
60729
60730         Fix --with-tests compilation on cygwin.
60731         * modules/argmatch-tests (Makefile.am): List gnulib library first
60732         in LDADD.
60733         * modules/argp-tests (Makefile.am): Likewise.
60734         * modules/array-list-tests (Makefile.am): Likewise.
60735         * modules/array-oset-tests (Makefile.am): Likewise.
60736         * modules/avltree-list-tests (Makefile.am): Likewise.
60737         * modules/avltree-oset-tests (Makefile.am): Likewise.
60738         * modules/avltreehash-list-tests (Makefile.am): Likewise.
60739         * modules/carray-list-tests (Makefile.am): Likewise.
60740         * modules/dirname-tests (Makefile.am): Likewise.
60741         * modules/frexp-tests (Makefile.am): Likewise.
60742         * modules/isnanl-tests (Makefile.am): Likewise.
60743         * modules/linked-list-tests (Makefile.am): Likewise.
60744         * modules/linkedhash-list-tests (Makefile.am): Likewise.
60745         * modules/lock-tests (Makefile.am): Likewise.
60746         * modules/rbtree-list-tests (Makefile.am): Likewise.
60747         * modules/rbtree-oset-tests (Makefile.am): Likewise.
60748         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
60749         * modules/tls-tests (Makefile.am): Likewise.
60750         * modules/tsearch-tests (Makefile.am): Likewise.
60751         * modules/xvasprintf-tests (Makefile.am): Likewise.
60752
60753         Fix fpurge for cygwin.
60754         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
60755         value.
60756         * modules/fpurge-tests (Depends-on): Clean up trash.
60757
60758 2007-04-16  Simon Josefsson  <simon@josefsson.org>
60759
60760         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
60761
60762         * m4/autobuild.m4: Re-indent.
60763
60764 2007-04-13  Bruno Haible  <bruno@clisp.org>
60765
60766         * modules/fpurge-tests: New file.
60767         * tests/test-fpurge.c: New file.
60768
60769         * modules/fpurge: New file.
60770         * lib/fpurge.h: New file.
60771         * lib/fpurge.c: New file.
60772         * m4/fpurge.m4: New file.
60773
60774 2007-04-13  Bruno Haible  <bruno@clisp.org>
60775
60776         * modules/fbufmode-tests: New file.
60777         * tests/test-fbufmode.c: New file.
60778
60779         * modules/fbufmode: New file.
60780         * lib/fbufmode.h: New file.
60781         * lib/fbufmode.c: New file.
60782         * m4/fbufmode.m4: New file.
60783
60784 2007-04-13  Bruno Haible  <bruno@clisp.org>
60785
60786         * modules/fwritable-tests: New file.
60787         * tests/test-fwritable.c: New file.
60788
60789         * modules/fwritable: New file.
60790         * lib/fwritable.h: New file.
60791         * lib/fwritable.c: New file.
60792         * m4/fwritable.m4: New file.
60793
60794 2007-04-13  Bruno Haible  <bruno@clisp.org>
60795
60796         * modules/freadable-tests: New file.
60797         * tests/test-freadable.c: New file.
60798
60799         * modules/freadable: New file.
60800         * lib/freadable.h: New file.
60801         * lib/freadable.c: New file.
60802         * m4/freadable.m4: New file.
60803
60804 2007-04-13  Bruno Haible  <bruno@clisp.org>
60805
60806         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
60807         MOSTLYCLEANFILES.
60808
60809 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
60810
60811         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
60812         gzip bootstrap.conf to avoid dragging in i18n machinery.
60813         (gnulib_tool_option): Use it.
60814
60815 2007-04-13  Bruno Haible  <bruno@clisp.org>
60816
60817         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
60818         %F directives.
60819         * tests/test-vasprintf-posix.c (test_function): Likewise.
60820         * tests/test-snprintf-posix.h (test_function): Likewise.
60821         * tests/test-sprintf-posix.h (test_function): Likewise.
60822         * tests/test-fprintf-posix.h (test_function): Likewise.
60823         * tests/test-printf-posix.h (test_function): Likewise.
60824         * tests/test-fprintf-posix.out: Likewise.
60825
60826 2007-04-13  Bruno Haible  <bruno@clisp.org>
60827
60828         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
60829         * modules/tls-tests (configure.ac): Likewise.
60830         Reported by Arto C. Nirkko <anirkko@insel.ch>.
60831
60832 2007-04-13  Bruno Haible  <bruno@clisp.org>
60833
60834         * lib/tls.c (glthread_tls_get): Fix return type.
60835         Patch by Arto C. Nirkko <anirkko@insel.ch>.
60836
60837 2007-04-12  Eric Blake  <ebb9@byu.net>
60838
60839         * modules/gettime (Depends-on): Remove gettime.
60840         Reported by Dmitry V. Levin.
60841
60842 2007-04-12  Bruno Haible  <bruno@clisp.org>
60843
60844         * modules/fflush (Include): Mention <stdio.h>.
60845         * modules/strtoimax (Include): Mention <inttypes.h>.
60846         * modules/strtoumax (Include): Likewise.
60847
60848 2007-04-12  Eric Blake  <ebb9@byu.net>
60849
60850         * .cvsignore: New file.
60851         * .gitignore: Likewise.
60852
60853 2007-04-12  Bruno Haible  <bruno@clisp.org>
60854
60855         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
60856         not before, since $(LDADD) often contains libgnu.a.
60857         * modules/striconv-tests (test_striconv_LDADD): Likewise.
60858         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
60859         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
60860         Needed on Cygwin.
60861
60862 2007-04-12  Eric Blake  <ebb9@byu.net>
60863
60864         Work around glibc's failure to flush stdin on fclose.
60865         * lib/closein.c (close_stdin): Flush stdin before closing.
60866
60867         Work around glibc's failure to reset seekable stdin on exit.
60868         * modules/closein: New module.
60869         * lib/closein.c: New file.
60870         * lib/closein.h: Likewise.
60871         * m4/closein.m4: Likewise.
60872         * MODULES.html.sh (File stream based Input/Output): Document it.
60873
60874 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60875
60876         * gnulib-tool: Rename generated 'autobuild' script to
60877         'do-autobuild' in --create-megatestdir output.
60878
60879         * doc/gnulib.texi (Build robot for gnulib): Fix.
60880
60881 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60882
60883         * modules/sysexits (Depends-on): Add absolute-header.
60884
60885 2007-04-12  Eric Blake  <ebb9@byu.net>
60886
60887         No need to preserve errno on success.
60888         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
60889         Reported by Bruno Haible.
60890
60891 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60892
60893         * MODULES.html.sh (Support for maintaining and releasing
60894         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
60895
60896 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60897
60898         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
60899
60900 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60901
60902         * modules/autobuild: New module.
60903
60904         * m4/autobuild.m4: New file.
60905
60906 2007-04-11  Bruno Haible  <bruno@clisp.org>
60907
60908         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
60909         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
60910         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
60911         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
60912         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60913         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60914         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60915         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60916         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60917         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60918         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
60919         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60920         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60921         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
60922         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60923         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60924         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
60925         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60926         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60927         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
60928         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60929         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60930         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
60931         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60932         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60933         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
60934         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60935         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60936         Reported by Eric Blake.
60937
60938 2007-04-11  Bruno Haible  <bruno@clisp.org>
60939
60940         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
60941
60942 2007-04-10  Bruno Haible  <bruno@clisp.org>
60943
60944         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
60945         for NaN and Infinity. Needed on FreeBSD 6.1.
60946         * tests/test-vasnprintf-posix.c (test_function): Undo last change
60947         regarding results for "%010a" of Infinity and NaN.
60948         * tests/test-vasprintf-posix.c (test_function): Likewise.
60949         * tests/test-snprintf-posix.h (test_function): Likewise.
60950         * tests/test-sprintf-posix.h (test_function): Likewise.
60951         * tests/test-fprintf-posix.h (test_function): Likewise.
60952         * tests/test-printf-posix.h (test_function): Likewise.
60953         * tests/test-fprintf-posix.out: Likewise.
60954
60955 2007-04-10  Bruno Haible  <bruno@clisp.org>
60956
60957         * modules/locale-tests: New file.
60958         * tests/test-locale.c: New file.
60959
60960         * modules/locale: New file.
60961         * lib/locale_.h: New file.
60962         * m4/locale_h.m4: New file.
60963
60964 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
60965             Bruno Haible  <bruno@clisp.org>
60966
60967         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
60968         be determined, test for availability of the copysignf, copysign,
60969         copysignl functions.
60970         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
60971         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
60972         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
60973
60974 2007-04-09  Eric Blake  <ebb9@byu.net>
60975
60976         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
60977         * modules/stdio (Makefile.am): Support fflush.
60978         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
60979         * modules/fflush: New file.
60980         * lib/fflush.c: Likewise.
60981         * m4/fflush.m4: Likewise.
60982         * modules/fflush-tests: New test.
60983         * tests/test-fflush.c: Likewise.
60984         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
60985
60986 2007-04-06  Bruno Haible  <bruno@clisp.org>
60987
60988         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
60989         (VASNPRINTF): Use signbit for faster determination whether to print a
60990         minus sign.
60991         * modules/vasnprintf (Files): Remove lib/float+.h.
60992         * modules/fprintf-posix (Depends-on): Add signbit.
60993         * modules/snprintf-posix (Depends-on): Likewise.
60994         * modules/sprintf-posix (Depends-on): Likewise.
60995         * modules/vasnprintf-posix (Depends-on): Likewise.
60996         * modules/vasprintf-posix (Depends-on): Likewise.
60997         * modules/vfprintf-posix (Depends-on): Likewise.
60998         * modules/vsnprintf-posix (Depends-on): Likewise.
60999         * modules/vsprintf-posix (Depends-on): Likewise.
61000
61001 2007-04-06  Bruno Haible  <bruno@clisp.org>
61002
61003         * tests/test-frexp.c (main): Test also the sign bit of zero results.
61004         * tests/test-frexpl.c (main): Likewise.
61005         * tests/test-ldexpl.c (main): Likewise.
61006         * modules/frexp-tests (Depends-on): Add signbit.
61007         * modules/frexpl-tests (Depdends-on): Likewise.
61008         * modules/ldexpl-tests (Depdends-on): Likewise.
61009
61010 2007-04-06  Bruno Haible  <bruno@clisp.org>
61011
61012         * modules/signbit-tests: New file.
61013         * tests/test-signbit.c: New file.
61014
61015         * modules/signbit: New file.
61016         * lib/signbitf.c: New file.
61017         * lib/signbitd.c: New file.
61018         * lib/signbitl.c: New file.
61019         * m4/signbit.m4: New file.
61020         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
61021         (signbit): New macro.
61022         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
61023         REPLACE_SIGNBIT.
61024         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
61025         REPLACE_FREXPL into math.h.
61026
61027 2007-04-06  Bruno Haible  <bruno@clisp.org>
61028
61029         * modules/isnanf-nolibm-tests: New file.
61030         * tests/test-isnanf.c: New file.
61031
61032         * modules/isnanf-nolibm: New file.
61033         * lib/isnanf.h: New file.
61034         * lib/isnanf.c: New file.
61035         * lib/isnan.c: Consider the USE_FLOAT macro.
61036         * m4/isnanf.m4: New file.
61037
61038 2007-04-06  Bruno Haible  <bruno@clisp.org>
61039
61040         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
61041         (Link): New section.
61042
61043         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
61044
61045 2007-04-06  Bruno Haible  <bruno@clisp.org>
61046
61047         Assume the 'long double' type.
61048         * m4/longdouble.m4: Remove file.
61049         * config/srclist.txt: Don't mention longdouble.m4.
61050         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
61051         * lib/float+.h: Likewise.
61052         * lib/frexp.c: Likewise.
61053         * lib/printf-args.h: Likewise.
61054         * lib/printf-args.c: Likewise.
61055         * lib/printf-frexp.c: Likewise.
61056         * lib/printf-parse.c: Likewise.
61057         * lib/vasnprintf.c: Likewise.
61058         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
61059         * m4/intl.m4: Likewise.
61060         * m4/isnanl.m4: Likewise.
61061         * m4/printf.m4: Likewise.
61062         * m4/printf-frexpl.m4: Likewise.
61063         * m4/vasnprintf.m4: Likewise.
61064         * modules/allocsa (Files): Remove m4/longdouble.m4.
61065         * modules/gettext (Files): Likewise.
61066         * modules/relocatable-prog-wrapper (Files): Likewise.
61067         * modules/vasnprintf (Files): Likewise.
61068         * modules/isnanl (Files): Likewise.
61069         (Include): Simplify.
61070         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
61071         (Include): Simplify.
61072         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
61073         (Include): Simplify.
61074         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
61075         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61076         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
61077         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61078         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
61079         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61080         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
61081         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61082         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
61083         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61084         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
61085         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61086         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
61087         * tests/test-isnanl.c: Likewise.
61088         * tests/test-snprintf-posix.h: Likewise.
61089         * tests/test-sprintf-posix.h: Likewise.
61090         * tests/test-vasnprintf-posix.c: Likewise.
61091         * tests/test-vasnprintf-posix2.c: Likewise.
61092         * tests/test-vasprintf-posix.c: Likewise.
61093
61094 2007-04-06  Bruno Haible  <bruno@clisp.org>
61095
61096         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
61097         * lib/math_.h [__DECC]: Include the overridden include file through
61098         #include_next, outside the double-inclusion guard.
61099         * lib/stdio_.h [__DECC]: Likewise.
61100         * lib/stdlib_.h [__DECC]: Likewise.
61101         * lib/string_.h [__DECC]: Likewise.
61102         * lib/time_.h [__DECC]: Likewise.
61103         * lib/wchar_.h [__DECC]: Likewise.
61104         * lib/wctype_.h [__DECC]: Likewise.
61105         * lib/inttypes_.h [__DECC]: Likewise.
61106         Reported by Albert Chin <china@thewrittenword.com> in
61107         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
61108
61109 2007-04-04  Eric Blake  <ebb9@byu.net>
61110
61111         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
61112         1.5.x.
61113
61114 2007-04-04  Bruno Haible  <bruno@clisp.org>
61115
61116         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
61117         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
61118
61119 2007-04-04  Bruno Haible  <bruno@clisp.org>
61120
61121         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
61122         results for "%010a" of Infinity and NaN.
61123         * tests/test-vasprintf-posix.c (test_function): Likewise.
61124         * tests/test-snprintf-posix.h (test_function): Likewise.
61125         * tests/test-sprintf-posix.h (test_function): Likewise.
61126         * tests/test-fprintf-posix.h (test_function): Remove these tests.
61127         * tests/test-printf-posix.h (test_function): Likewise.
61128         * tests/test-fprintf-posix.out: Update.
61129         Needed for FreeBSD 6.1.
61130
61131 2007-04-04  Bruno Haible  <bruno@clisp.org>
61132
61133         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
61134         directly used by the gnulib modules nor by gnulib-tool.
61135
61136 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
61137
61138         * DEPENDENCIES: Give overall description of version dependency
61139         desirability.  Use more-typical names for apps.
61140         Add shell, coreutils, diffutils, grep, tar, gzip.
61141
61142 2007-04-04  Simon Josefsson  <simon@josefsson.org>
61143
61144         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
61145
61146 2007-04-04  Karl Berry  <karl@gnu.org>
61147
61148         * MODULES.html.sh (func_module): missing '.
61149
61150 2007-04-03  Bruno Haible  <bruno@clisp.org>
61151
61152         * modules/argmatch-tests (Makefile.am): New variable
61153         test_argmatch_LDADD.
61154         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
61155         * modules/array-list-tests (Makefile.am): New variable
61156         test_array_list_LDADD.
61157         * modules/array-oset-tests (Makefile.am): New variable
61158         test_array_oset_LDADD.
61159         * modules/avltree-list-tests (Makefile.am): New variable
61160         test_avltree_list_LDADD.
61161         * modules/avltree-oset-tests (Makefile.am): New variable
61162         test_avltree_oset_LDADD.
61163         * modules/avltreehash-list-tests (Makefile.am): New variable
61164         test_avltreehash_list_LDADD.
61165         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
61166         test_canonicalize_lgpl_LDADD.
61167         * modules/carray-list-tests (Makefile.am): New variable
61168         test_carray_list_LDADD.
61169         * modules/dirname-tests (Makefile.am): New variable
61170         test_dirname_LDADD.
61171         * modules/linked-list-tests (Makefile.am): New variable
61172         test_linked_list_LDADD.
61173         * modules/linkedhash-list-tests (Makefile.am): New variable
61174         test_linkedhash_list_LDADD.
61175         * modules/rbtree-list-tests (Makefile.am): New variable
61176         test_rbtree_list_LDADD.
61177         * modules/rbtree-oset-tests (Makefile.am): New variable
61178         test_rbtree_oset_LDADD.
61179         * modules/rbtreehash-list-tests (Makefile.am): New variable
61180         test_rbtreehash_list_LDADD.
61181         * modules/xvasprintf-tests (Makefile.am): New variable
61182         test_xvasprintf_LDADD.
61183         Reported by Eric Blake.
61184
61185 2007-04-03  Eric Blake  <ebb9@byu.net>
61186
61187         * DEPENDENCIES: Weaken m4 requirements.
61188
61189 2007-04-03  Bruno Haible  <bruno@clisp.org>
61190
61191         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
61192         * modules/isnanl-tests (configure.ac): Likewise.
61193
61194 2007-04-03  Ben Pfaff  <blp@gnu.org>
61195
61196         * modules/iconv_open: Add $(srcdir)/ to source directory
61197         references in Makefile fragments that call gperf, to fix VPATH
61198         builds.
61199
61200 2007-04-03  Bruno Haible  <bruno@clisp.org>
61201
61202         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
61203         * lib/ldexpl.c: Undo last change.
61204
61205 2007-04-03  Bruno Haible  <bruno@clisp.org>
61206
61207         * modules/printf-frexpl (Depends-on): Undo last change.
61208         (Files): Add m4/ldexpl.m4.
61209
61210 2007-04-03  Bruno Haible  <bruno@clisp.org>
61211
61212         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
61213         * modules/isnanl (Link): New section.
61214
61215         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
61216         * modules/frexp (Link): New section.
61217
61218         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
61219         * modules/frexpl (Link): New section.
61220
61221         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
61222         * modules/ldexpl (Link): New section.
61223
61224 2007-04-03  Bruno Haible  <bruno@clisp.org>
61225
61226         * modules/TEMPLATE-EXTENDED: New file.
61227         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
61228
61229 2007-04-03  Bruno Haible  <bruno@clisp.org>
61230
61231         * DEPENDENCIES: New file.
61232         Suggested by Simon Josefsson.
61233
61234 2007-04-03  Bruno Haible  <bruno@clisp.org>
61235
61236         * doc/gnulib.texi: Escape @.
61237
61238 2007-04-03  James Youngman  <jay@gnu.org>
61239         and Paul Eggert  <eggert@cs.ucla.edu>
61240
61241         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
61242         birthtime on all systems that have birthtime, not just those which
61243         use st_birthtimensec rather than st_birthtim.  Putting zero in
61244         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
61245         that the birth time is not available for files on an NFS mount.
61246
61247 2007-04-03  Simon Josefsson  <simon@josefsson.org>
61248
61249         * modules/memxor: Move back from crypto/, suggested by Bruno.
61250         * modules/crypto/hmac-sha1: Fix memxor dependency.
61251
61252         * modules/crypto/gc: Moved from ../.
61253
61254 2007-04-02  Eric Blake  <ebb9@byu.net>
61255
61256         * lib/ldexpl.c (includes): Avoid libm.
61257
61258         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
61259
61260 2007-04-02  Bruno Haible  <bruno@clisp.org>
61261
61262         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
61263         on IRIX.
61264
61265 2007-04-02  Bruno Haible  <bruno@clisp.org>
61266
61267         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
61268         x86 or x86_64 platforms running MacOS X.
61269         Reported by Ryan Schmidt <@ryandesign.com>.
61270
61271 2007-04-02  Bruno Haible  <bruno@clisp.org>
61272
61273         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
61274         i386.
61275
61276 2007-04-01  Simon Josefsson  <simon@josefsson.org>
61277
61278         * modules/crypto/arcfour: Moved from ../.
61279         * modules/crypto/arcfour-tests: Moved from ../.
61280         * modules/crypto/arctwo: Moved from ../.
61281         * modules/crypto/arctwo-tests: Moved from ../.
61282         * modules/crypto/des: Moved from ../.
61283         * modules/crypto/des-tests: Moved from ../.
61284         * modules/crypto/gc-arcfour: Moved from ../.
61285         * modules/crypto/gc-arcfour-tests: Moved from ../.
61286         * modules/crypto/gc-arctwo: Moved from ../.
61287         * modules/crypto/gc-arctwo-tests: Moved from ../.
61288         * modules/crypto/gc-des: Moved from ../.
61289         * modules/crypto/gc-des-tests: Moved from ../.
61290         * modules/crypto/gc-hmac-md5: Moved from ../.
61291         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
61292         * modules/crypto/gc-hmac-sha1: Moved from ../.
61293         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
61294         * modules/crypto/gc-md2: Moved from ../.
61295         * modules/crypto/gc-md2-tests: Moved from ../.
61296         * modules/crypto/gc-md4: Moved from ../.
61297         * modules/crypto/gc-md4-tests: Moved from ../.
61298         * modules/crypto/gc-md5: Moved from ../.
61299         * modules/crypto/gc-md5-tests: Moved from ../.
61300         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
61301         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
61302         * modules/crypto/gc-random: Moved from ../.
61303         * modules/crypto/gc-rijndael: Moved from ../.
61304         * modules/crypto/gc-rijndael-tests: Moved from ../.
61305         * modules/crypto/gc-sha1: Moved from ../.
61306         * modules/crypto/gc-sha1-tests: Moved from ../.
61307         * modules/crypto/gc-tests: Moved from ../.
61308         * modules/crypto/hmac-md5: Moved from ../.
61309         * modules/crypto/hmac-md5-tests: Moved from ../.
61310         * modules/crypto/hmac-sha1: Moved from ../.
61311         * modules/crypto/hmac-sha1-tests: Moved from ../.
61312         * modules/crypto/md2: Moved from ../.
61313         * modules/crypto/md2-tests: Moved from ../.
61314         * modules/crypto/md4: Moved from ../.
61315         * modules/crypto/md4-tests: Moved from ../.
61316         * modules/crypto/md5: Moved from ../.
61317         * modules/crypto/md5-tests: Moved from ../.
61318         * modules/crypto/memxor: Moved from ../.
61319         * modules/crypto/rijndael: Moved from ../.
61320         * modules/crypto/rijndael-tests: Moved from ../.
61321         * modules/crypto/sha1: Moved from ../.
61322
61323 2007-03-30  James Youngman  <jay@gnu.org>
61324
61325         * tests/test-stat-time.c (prepare_test): use chmod() rather than
61326         rename() to change the ctime of a file (because ctime is unaffected
61327         by rename on jfs2 on AIX 5.1).
61328         (main): Start by doing cleanup, in case a previous run failed leaving
61329         test files behind.
61330
61331 2007-03-31  Bruno Haible  <bruno@clisp.org>
61332
61333         Support old proprietary implementations of iconv.
61334         * modules/iconv_open: New file.
61335         * lib/iconv_.h: New file.
61336         * m4/iconv_h.m4: New file.
61337         * lib/iconv_open.c: New file.
61338         * lib/iconv_open-aix.gperf: New file.
61339         * lib/iconv_open-hpux.gperf: New file.
61340         * lib/iconv_open-irix.gperf: New file.
61341         * lib/iconv_open-osf.gperf: New file.
61342         * m4/iconv_open.m4: New file.
61343         * modules/linebreak (Depends-on): Add iconv_open.
61344         * modules/striconv (Depends-on): Likewise.
61345         * modules/striconveh (Depends-on): Likewise.
61346         * modules/unicodeio (Depends-on): Likewise.
61347         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
61348         (iconv_t)(-1).
61349         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
61350         conversion if cd is (iconv_t)(-1).
61351         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
61352         is not possible.
61353
61354 2007-03-31  Bruno Haible  <bruno@clisp.org>
61355
61356         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
61357         work on Solaris either. Protect also second use of "autodetect_jp".
61358
61359 2007-03-31  Bruno Haible  <bruno@clisp.org>
61360
61361         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
61362         the function is not present.
61363
61364 2007-03-31  Bruno Haible  <bruno@clisp.org>
61365
61366         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
61367         the function is not present.
61368
61369 2007-03-31  Bruno Haible  <bruno@clisp.org>
61370
61371         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
61372         a bug in HP-UX iconv_open().
61373
61374 2007-03-31  Bruno Haible  <bruno@clisp.org>
61375
61376         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
61377         (Mathematics <math.h>): New section, add fpieee.
61378         (Input/output <stdio.h>): Add fseterr.
61379         (Mathematics <math.h>): New section, add printf-frexp.
61380         (Container data structures): Add sublist.
61381         (Core language properties): Add fpucw, inline.
61382         (Functions for greatest-width integer types <inttypes.h>): Add
61383         imaxabs, imaxdiv, inttypes.
61384         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
61385         isnanl-nolibm, ldexp.
61386         (Mathematics <math.h>): New section, add printf-frexpl.
61387         (Support for systems lacking POSIX:2001): Add fprintf-posix,
61388         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
61389         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
61390         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
61391         (Unicode string functions): Add unistr/u*-mbtoucr.
61392         (Java): Add javacomp-script, javaexec-script.
61393         (C#): Add csharpcomp-script, csharpexec-script.
61394         (Support for building libraries and executables): Add havelib,
61395         relocatable-*.
61396         (Support for maintaining and releasing projects): Renamed from
61397         'Support for maintaining and release projects'. Add announce-gen.
61398
61399 2007-03-31  Bruno Haible  <bruno@clisp.org>
61400
61401         * README: Talk primarily about git.
61402         (git and CVS): Renamed from CVS.
61403         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
61404         gnulib is available through git.
61405         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
61406
61407 2007-03-30  Bruno Haible  <bruno@clisp.org>
61408
61409         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
61410         * lib/poll_.h: Likewise.
61411         * lib/stat_.h: Likewise.
61412         * lib/sys_time_.h: Likewise.
61413         * lib/sysexit_.h: Likewise.
61414         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
61415         * lib/stdbool_.h: Likewise.
61416         * lib/byteswap_.h: Add double-inclusion guard.
61417
61418 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
61419
61420         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
61421
61422 2007-03-30  Karl Berry  <karl@gnu.org>
61423
61424         * config/srclist-update: double space after USA in the license
61425         substitution, since that's how it's usually (?) written.
61426
61427 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
61428
61429         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
61430         reported by Bruno Haible.
61431
61432 2007-03-29  Bruno Haible  <bruno@clisp.org>
61433
61434         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
61435         a bug in AIX iconv().
61436
61437 2007-03-29  Bruno Haible  <bruno@clisp.org>
61438
61439         * modules/ldexpl-tests: New file.
61440         * tests/test-ldexpl.c: New file.
61441
61442 2007-03-29  Bruno Haible  <bruno@clisp.org>
61443
61444         * lib/ldexpl.c: Include fpucw.h.
61445         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
61446         multiplication.
61447         * modules/ldexpl (Depends-on): Add fpucw.
61448
61449 2007-03-29  Bruno Haible  <bruno@clisp.org>
61450
61451         * modules/ldexpl: New file.
61452         * m4/ldexpl.m4: New file.
61453         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
61454         set.
61455         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
61456         REPLACE_LDEXPL.
61457         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
61458         REPLACE_LDEXPL.
61459         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
61460         gl_FUNC_LDEXPL_WORKS.
61461         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
61462         * modules/mathl (Files): Remove lib/ldexpl.c.
61463         (Depends-on): Add ldexpl.
61464
61465 2007-03-29  Bruno Haible  <bruno@clisp.org>
61466
61467         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
61468
61469 2007-03-29  Bruno Haible  <bruno@clisp.org>
61470
61471         * tests/test-striconveh.c (main): Don't assume that a direct conversion
61472         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
61473         and possibly also HP-UX.
61474         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
61475         work on AIX, IRIX, HP-UX, OSF/1.
61476         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
61477         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
61478         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
61479         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
61480         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
61481         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
61482
61483 2007-03-29  Bruno Haible  <bruno@clisp.org>
61484
61485         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
61486
61487 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
61488
61489         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
61490         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
61491
61492 2007-03-29  Eric Blake  <ebb9@byu.net>
61493
61494         * lib/acl-internal.h: Remove redundant include.
61495         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
61496         Cygwin when a file is locked.
61497
61498 2007-03-29  Bruno Haible  <bruno@clisp.org>
61499
61500         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
61501         file.
61502         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
61503
61504 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
61505
61506         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
61507         try to remove a parent directory if the child couldn't be removed
61508         (except for the first rmdir, which could fail because the child
61509         doesn't exist).  Problem reported by Jeff Blaine in
61510         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
61511
61512 2007-03-28  Bruno Haible  <bruno@clisp.org>
61513
61514         * lib/striconveh.c (utf8conv_carefully): New function.
61515         (mem_cd_iconveh_internal): Invoke it.
61516
61517 2007-03-28  Bruno Haible  <bruno@clisp.org>
61518
61519         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
61520         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
61521         input.
61522         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
61523         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
61524         unistr/u8-uctomb.
61525
61526 2007-03-28  Bruno Haible  <bruno@clisp.org>
61527
61528         * modules/unistr/u8-mbtoucr: New file.
61529         * lib/unistr/u8-mbtoucr.c: New file.
61530         * modules/unistr/u16-mbtoucr: New file.
61531         * lib/unistr/u16-mbtoucr.c: New file.
61532         * modules/unistr/u16-mbtoucr: New file.
61533         * lib/unistr/u16-mbtoucr.c: New file.
61534         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
61535
61536 2007-03-27  Simon Josefsson  <simon@josefsson.org>
61537             Bruno Haible  <bruno@clisp.org>
61538
61539         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
61540         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
61541         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
61542
61543         * m4/stdio_h.m4: Add stubs for vasprintf too.
61544
61545         * modules/stdio: Support vasprintf in sed command.
61546
61547         * modules/vasprintf: Depend on stdio for prototypes.  Remove
61548         vasprintf.h.  Add stdio module indicator.
61549
61550         * lib/stdio_.h: Declare asprintf and vasprintf, based on
61551         vasprintf.h.
61552
61553         * lib/vasprintf.h: File removed.
61554
61555         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
61556         * lib/vasprintf.c: Ditto.
61557         * lib/xvasprintf.c: Ditto.
61558         * tests/test-vasprintf-posix.c: Ditto.
61559         * tests/test-vasprintf.c: Ditto.
61560
61561 2007-03-27  Bruno Haible  <bruno@clisp.org>
61562
61563         Make vasnprintf multithread-safe.
61564         * lib/vasnprintf.c (decimal_point_char): New function.
61565         (VASNPRINTF): Use it.
61566         Suggested by Simon Josefsson.
61567
61568 2007-03-27  Eric Blake  <ebb9@byu.net>
61569
61570         Support sub-second birthtime on cygwin.
61571         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
61572         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
61573         (get_stat_birthtime): Also work with st_birthtim.
61574
61575 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
61576
61577         * lib/stat-time.h (USE_BIRTHTIME): Remove.
61578         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
61579         (get_stat_birthtime_ns): Do not try to use "spare" fields.
61580         (get_stat_birthtime_ns): Simplify compile-time tests.
61581         (get_stat_birthtime): Change the API to look like
61582         get_stat_mtime etc., except return a negative tv_nsec on error.
61583         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
61584         Don't check for "spare" fields.
61585         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
61586         or for struct stat.st_birthtime, as these tests aren't used.
61587         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
61588
61589 2007-03-27  Bruno Haible  <bruno@clisp.org>
61590
61591         * lib/stat-time.h: Include <sys/stat.h>.
61592
61593 2007-03-27  James Youngman  <jay@gnu.org>
61594
61595         * lib/stat-time.h (get_stat_birthtime): New function for
61596           retrieving st_birthtime as provided by UFS2 (hence *BSD).
61597         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
61598           and its variants.
61599         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
61600         * modules/stat-time-test: New file.
61601         * tests/test-stat-time.c: New test, devised by Bruno Haible.
61602
61603 2007-03-26  Bruno Haible  <bruno@clisp.org>
61604
61605         Better support of signalling NaNs.
61606         * lib/atanl.c: Include isnanl.h.
61607         (atanl): Perform test for NaN at the beginning of the function and
61608         through a call to isnanl.
61609         * lib/cosl.c: Include isnanl.h.
61610         (cosl): Perform test for NaN at the beginning of the function and
61611         through a call to isnanl.
61612         * lib/ldexpl.c: Include isnanl.h.
61613         (ldexpl): Perform test for NaN through a call to isnanl.
61614         * lib/logl.c: Include isnanl.h.
61615         (logl): Perform test for NaN at the beginning of the function and
61616         through a call to isnanl.
61617         * lib/sinl.c: Include isnanl.h.
61618         (sinl): Perform test for NaN at the beginning of the function and
61619         through a call to isnanl.
61620         * lib/sqrtl.c: Include isnanl.h.
61621         (sqrtl): Perform test for NaN at the beginning of the function and
61622         through a call to isnanl.
61623         * lib/tanl.c: Include isnanl.h.
61624         (tanl): Perform test for NaN at the beginning of the function and
61625         through a call to isnanl.
61626         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
61627         * modules/mathl (Depends-on): Add isnanl.
61628
61629 2007-03-26  Eric Blake  <ebb9@byu.net>
61630
61631         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
61632         regression in logic sense of previous patch.
61633
61634 2007-03-26  Bruno Haible  <bruno@clisp.org>
61635
61636         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
61637         unportable shell command "if ! ...".
61638         Reported by Ralf Wildenhues.
61639
61640 2007-03-25  Bruno Haible  <bruno@clisp.org>
61641
61642         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
61643         <sysexits.h> file, and only add EX_CONFIG.
61644         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
61645         absolute file name and whether it is sufficient. Substitute also
61646         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
61647         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
61648         ABSOLUTE_SYSEXITS_H into sysexits.h.
61649
61650 2007-03-25  Bruno Haible  <bruno@clisp.org>
61651
61652         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
61653         hints is NULL.
61654
61655 2007-03-25  Bruno Haible  <bruno@clisp.org>
61656
61657         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
61658         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
61659
61660 2007-03-25  Bruno Haible  <bruno@clisp.org>
61661
61662         * lib/vasnprintf.c: Include langinfo.h.
61663         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
61664         multithread-safe.
61665         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
61666         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
61667         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61668         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61669         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61670         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61671         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61672         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
61673         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61674         Reported by Simon Josefsson.
61675
61676 2007-03-25  Bruno Haible  <bruno@clisp.org>
61677
61678         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
61679         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
61680         * modules/vasnprintf (Depends-on): Add stdint.
61681
61682 2007-03-25  Bruno Haible  <bruno@clisp.org>
61683
61684         * modules/fpieee: New file.
61685         * m4/fpieee.m4: New file.
61686         * modules/isnan-nolibm (Depends-on): Add fpieee.
61687         * modules/isnanl-nolibm (Depends-on): Add fpieee.
61688         * modules/isnanl (Depends-on): Add fpieee.
61689
61690 2007-03-25  Bruno Haible  <bruno@clisp.org>
61691
61692         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
61693
61694 2007-03-25  Bruno Haible  <bruno@clisp.org>
61695
61696         Avoid test failures on IRIX 6.5.
61697         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
61698         (main): Use it.
61699         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
61700         macros.
61701         (main): Use them.
61702
61703 2007-03-25  Bruno Haible  <bruno@clisp.org>
61704
61705         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
61706         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
61707         exists but doesn't work.
61708         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
61709         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
61710         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
61711         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
61712         math.h.
61713
61714 2007-03-25  Bruno Haible  <bruno@clisp.org>
61715
61716         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
61717         returns inf. Needed on IRIX 6.5.
61718
61719 2007-03-25  Bruno Haible  <bruno@clisp.org>
61720
61721         * tests/test-frexpl.c: Include isnanl-nolibm.h.
61722         (main): Use isnanl instead of x != x idiom.
61723         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
61724
61725         * tests/test-frexp.c: Include isnan.h.
61726         (main): Use isnan instead of x != x idiom.
61727         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
61728
61729 2007-03-25  Bruno Haible  <bruno@clisp.org>
61730
61731         * tests/test-frexp.c (NaN): New function/macro.
61732         (main): Use it instead of 0.0 / 0.0.
61733         * tests/test-isnan.c (NaN): New function/macro.
61734         (main): Use it instead of 0.0 / 0.0.
61735         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
61736         (test_function): Use it instead of 0.0 / 0.0.
61737         * tests/test-vasprintf-posix.c (NaN): New function/macro.
61738         (test_function): Use it instead of 0.0 / 0.0.
61739         * tests/test-snprintf-posix.h (NaN): New function/macro.
61740         (test_function): Use it instead of 0.0 / 0.0.
61741         * tests/test-sprintf-posix.h (NaN): New function/macro.
61742         (test_function): Use it instead of 0.0 / 0.0.
61743         * tests/test-fprintf-posix.h (NaN): New function/macro.
61744         (test_function): Use it instead of 0.0 / 0.0.
61745         * tests/test-printf-posix.h (NaN): New function/macro.
61746         (test_function): Use it instead of 0.0 / 0.0.
61747
61748         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
61749
61750 2007-03-25  Bruno Haible  <bruno@clisp.org>
61751
61752         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
61753
61754 2007-03-25  Bruno Haible  <bruno@clisp.org>
61755
61756         * lib/regexec.c (merge_state_with_log): Make static.
61757
61758 2007-03-25  Bruno Haible  <bruno@clisp.org>
61759
61760         * lib/trigl.c (kernel_rem_pio2): Make static.
61761
61762 2007-03-25  Bruno Haible  <bruno@clisp.org>
61763
61764         * lib/sincosl.c (sincosl_table): Make static.
61765
61766 2007-03-25  Bruno Haible  <bruno@clisp.org>
61767
61768         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
61769         if the compiler does not support C99.
61770
61771 2007-03-25  Bruno Haible  <bruno@clisp.org>
61772
61773         * modules/time (Makefile.am): Ensure all rule action lines start with a
61774         tab.
61775
61776 2007-03-24  Bruno Haible  <bruno@clisp.org>
61777
61778         * modules/tsearch-tests: New file.
61779         * tests/test-tsearch.sh: New file.
61780         * tests/test-tsearch.c: New file, mostly copied from glibc.
61781
61782         * modules/search-tests: New file.
61783         * tests/test-search.c: New file.
61784
61785         * modules/search: New file.
61786         * lib/search_.h: New file, incorporating lib/tsearch.h.
61787         * m4/search_h.m4: New file.
61788         * lib/tsearch.h: Remove file.
61789         * lib/tsearch.c: Include search.h instead of tsearch.h.
61790         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
61791         HAVE_TSEARCH.
61792         * modules/tsearch (Files): Remove lib/tsearch.h.
61793         (Depends-on): Add search.
61794         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
61795         (Include): Change tsearch.h into search.h.
61796
61797 2007-03-24  Bruno Haible  <bruno@clisp.org>
61798
61799         * modules/fpucw: New file.
61800         * lib/fpucw.h: New file.
61801         * lib/frexp.c: Include fpucw.h.
61802         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61803         (FUNC): Use them.
61804         * lib/printf-frexp.c: Include fpucw.h.
61805         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61806         (FUNC): Use them.
61807         * lib/vasnprintf.c: Include fpucw.h.
61808         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
61809         'long double' calculations.
61810         * tests/test-frexpl.c: Include fpucw.h.
61811         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61812         * tests/test-printf-frexpl.c: Include fpucw.h.
61813         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61814         * modules/frexpl (Depends-on): Add fpucw.
61815         * modules/printf-frexpl (Depends-on): Likewise.
61816         * modules/fprintf-posix (Depends-on): Likewise.
61817         * modules/snprintf-posix (Depends-on): Likewise.
61818         * modules/sprintf-posix (Depends-on): Likewise.
61819         * modules/vasnprintf-posix (Depends-on): Likewise.
61820         * modules/vasprintf-posix (Depends-on): Likewise.
61821         * modules/vfprintf-posix (Depends-on): Likewise.
61822         * modules/vsnprintf-posix (Depends-on): Likewise.
61823         * modules/vsprintf-posix (Depends-on): Likewise.
61824         * modules/frexpl-tests (Depends-on): Likewise.
61825         * modules/printf-frexpl-tests (Depends-on): Likewise.
61826
61827 2007-03-24  Bruno Haible  <bruno@clisp.org>
61828
61829         * lib/float+.h: New file.
61830         * lib/isnan.c: Include float+.h.
61831         (SIZE): New macro.
61832         (FUNC): Compare only SIZE bytes of the value.
61833         * lib/vasnprintf.c: Include float+.h.
61834         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
61835         SIZEOF_LDBL or SIZEOF_DBL bytes.
61836         * modules/isnan-nolibm (Files): Add lib/float+.h.
61837         * modules/isnanl-nolibm (Files): Add lib/float+.h.
61838         * modules/isnanl (Files): Add lib/float+.h.
61839         * modules/vasnprintf (Files): Add lib/float+.h.
61840
61841 2007-03-24  Bruno Haible  <bruno@clisp.org>
61842
61843         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
61844         include isnanl-nolibm.h.
61845
61846 2007-03-24  Bruno Haible  <bruno@clisp.org>
61847
61848         * tests/test-read-file.c (main): Don't produce spurious output for
61849         expected situations. Make the test fail if it encountered unexpected
61850         results.
61851
61852 2007-03-24  Bruno Haible  <bruno@clisp.org>
61853
61854         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
61855         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
61856
61857 2007-03-24  Bruno Haible  <bruno@clisp.org>
61858
61859         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
61860
61861 2007-03-24  Bruno Haible  <bruno@clisp.org>
61862
61863         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
61864         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
61865
61866         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
61867         * modules/utf8-ucs4: Turn into a symbolic link to module
61868         unistr/u8-mbtouc.
61869
61870         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
61871         utf8-ucs4-unsafe.
61872         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
61873         unistr/u8-mbtouc-unsafe.
61874
61875         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
61876         * modules/utf16-ucs4: Turn into a symbolic link to module
61877         unistr/u16-mbtouc.
61878
61879         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
61880         utf16-ucs4-unsafe.
61881         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
61882         unistr/u16-mbtouc-unsafe.
61883
61884         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
61885         * modules/ucs4-utf8: Turn into a symbolic link to module
61886         unistr/u8-ubtomb.
61887
61888         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
61889         * modules/ucs4-utf16: Turn into a symbolic link to module
61890         unistr/u16-ubtomb.
61891
61892 2007-03-24  Bruno Haible  <bruno@clisp.org>
61893
61894         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
61895         Enable the function only if HAVE_INLINE.
61896         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
61897         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61898         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
61899         Enable the function only if HAVE_INLINE.
61900         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
61901         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61902         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
61903         Enable the function only if HAVE_INLINE.
61904         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
61905         Enable the function only if HAVE_INLINE.
61906         * modules/utf8-ucs4: Update.
61907         * modules/utf8-ucs4-unsafe: Update.
61908         * modules/utf16-ucs4: Update.
61909         * modules/utf16-ucs4-unsafe: Update.
61910         * modules/ucs4-utf8: Update.
61911         * modules/ucs4-utf16: Update.
61912
61913 2007-03-24  Bruno Haible  <bruno@clisp.org>
61914
61915         * lib/utf8-ucs4.h: Remove file.
61916         * lib/utf8-ucs4-unsafe.h: Remove file.
61917         * lib/utf16-ucs4.h: Remove file.
61918         * lib/utf16-ucs4-unsafe.h: Remove file.
61919         * lib/ucs4-utf8.h: Remove file.
61920         * lib/ucs4-utf16.h: Remove file.
61921         * lib/unistr.h: Include their previous contents.
61922         * m4/utf-ucs4.m4: Remove file.
61923         * m4/ucs4-utf.m4: Remove file.
61924         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
61925         (Depends-on): Add unistr/base.
61926         (configure.ac): Remove gl_UTF_UCS4.
61927         (Makefile.am): Update.
61928         (Include): Change to unistr.h.
61929         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
61930         (Depends-on): Add unistr/base.
61931         (configure.ac): Remove gl_UTF_UCS4.
61932         (Makefile.am): Update.
61933         (Include): Change to unistr.h.
61934         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
61935         (Depends-on): Add unistr/base.
61936         (configure.ac): Remove gl_UTF_UCS4.
61937         (Makefile.am): Update.
61938         (Include): Change to unistr.h.
61939         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
61940         (Depends-on): Add unistr/base.
61941         (configure.ac): Remove gl_UTF_UCS4.
61942         (Makefile.am): Update.
61943         (Include): Change to unistr.h.
61944         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
61945         (Depends-on): Add unistr/base.
61946         (configure.ac): Remove gl_UCS4_UTF.
61947         (Makefile.am): Update.
61948         (Include): Change to unistr.h.
61949         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
61950         (Depends-on): Add unistr/base.
61951         (configure.ac): Remove gl_UCS4_UTF.
61952         (Makefile.am): Update.
61953         (Include): Change to unistr.h.
61954         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
61955         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
61956         utf8-ucs4-unsafe.h.
61957         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
61958         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
61959         utf16-ucs4-unsafe.h.
61960         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
61961         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
61962         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
61963         * lib/unistr/u8-strchr.c: Likewise.
61964         * lib/unistr/u8-strrchr.c: Likewise.
61965         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
61966         * lib/unistr/u16-strchr.c: Likewise.
61967         * lib/unistr/u16-strrchr.c: Likewise.
61968         * lib/striconveh.c: Update.
61969         * lib/linebreak.c: Update.
61970
61971 2007-03-24  Bruno Haible  <bruno@clisp.org>
61972
61973         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
61974         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
61975
61976 2007-03-22  Bruno Haible  <bruno@clisp.org>
61977
61978         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
61979
61980 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
61981
61982         * MODULES.html.sh (File system functions): New module write-any-file.
61983         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
61984         * m4/write-any-file.m4: New files.
61985
61986 2007-03-23  Eric Blake  <ebb9@byu.net>
61987
61988         * gnulib-tool: Rearrange space-tab sequences, since some editors
61989         like to eat them.
61990
61991 2007-03-23  Eric Blake  <ebb9@byu.net>
61992
61993         * lib/version-etc.c (version_etc_va): Update license wording to
61994         be more concise.  Recommended by Richard Stallman.
61995
61996 2007-03-22  Bruno Haible  <bruno@clisp.org>
61997
61998         * lib/poll.c (MSG_PEEK): New fallback definition.
61999
62000 2007-03-22  Bruno Haible  <bruno@clisp.org>
62001
62002         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
62003         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
62004         (main): Update.
62005         Fixes a compilation error on BeOS.
62006
62007 2007-03-22  Bruno Haible  <bruno@clisp.org>
62008
62009         * modules/frexpl-tests: New file.
62010         * tests/test-frexpl.c: New file.
62011
62012         * modules/frexpl: New file.
62013         * m4/frexpl.m4: New file.
62014         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
62015         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
62016         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
62017         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
62018         (Depends-on): Add frexpl. Remove isnanl-nolibm.
62019         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
62020
62021 2007-03-22  Bruno Haible  <bruno@clisp.org>
62022
62023         * lib/frexpl.c: Share code with lib/frexp.c.
62024         * modules/mathl (Files): Add lib/frexp.c.
62025         (Depends-on): Add isnanl-nolibm.
62026
62027 2007-03-22  Bruno Haible  <bruno@clisp.org>
62028
62029         * modules/printf-frexp (Files): Add m4/frexp.m4.
62030         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
62031         only if the found frexp function actually works.
62032
62033 2007-03-22  Bruno Haible  <bruno@clisp.org>
62034
62035         * lib/frexp.c: Remove older implementation that uses divisions.
62036
62037 2007-03-21  Bruno Haible  <bruno@clisp.org>
62038
62039         * modules/frexp-tests: New file.
62040         * tests/test-frexp.c: New file.
62041
62042         * modules/frexp: New file.
62043         * lib/frexp.c: New file.
62044         * m4/frexp.m4: New file.
62045         * lib/math_.h (frexp): New declaration.
62046         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
62047         REPLACE_FREXP.
62048         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
62049
62050 2007-03-21  Bruno Haible  <bruno@clisp.org>
62051
62052         * modules/isnanl-tests: New file.
62053         * tests/test-isnanl.c: New file.
62054
62055         * modules/isnanl: New file.
62056         * lib/isnanl.h: New file.
62057         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
62058         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
62059         gl_FUNC_ISNANL_WORKS.
62060         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
62061         New macros.
62062
62063 2007-03-21  Bruno Haible  <bruno@clisp.org>
62064
62065         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
62066         lib/isnanl.h.
62067         (Include): Update.
62068         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
62069         * lib/vasnprintf.c: Update.
62070         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
62071         tests/test-isnanl.h, remove tests/test-isnanl.c.
62072         (Makefile.am): Update.
62073         * tests/test-isnanl-nolibm.c: New file.
62074         * tests/test-isnanl.h: New file.
62075         * tests/test-isnanl.c: Remove file.
62076
62077 2007-03-21  Jim Meyering  <jim@meyering.net>
62078
62079         When trying to open ".", treat ESTALE like EACCES.
62080         * lib/savewd.c (savewd_save): Resort to forking not just upon
62081         failure with EACCES, but also when errno is ESTALE.
62082
62083 2007-03-20  Bruno Haible  <bruno@clisp.org>
62084
62085         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
62086         Needed on AIX 5.1. Reported by Matthew Woehlke.
62087
62088 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62089
62090         Suggestions by Bruno Haible:
62091         * lib/acl-internal.h: Include "gettext.h" rather than rolling
62092         our own.
62093         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
62094         * modules/acl (Depends-on): Add gettext.
62095
62096 2007-03-19  Bruno Haible  <bruno@clisp.org>
62097
62098         * modules/iconvme: Remove file.
62099         * lib/iconvme.h: Remove file.
62100         * lib/iconvme.c: Remove file.
62101         * m4/iconvme.m4: Remove file.
62102
62103 2007-03-19  Bruno Haible  <bruno@clisp.org>
62104
62105         * doc/relocatable-maint.texi: Break long shell script line.
62106         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
62107
62108 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62109
62110         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
62111         handle file_has_acl.
62112         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
62113         * lib/acl.c: Move header inclusions and related macro defns into
62114         lib/acl-internal.h.
62115         (S_ISLNK): Remove defn, since that's now done for us.
62116         (file_has_acl): Move to lib/file-has-acl.c.
62117         Call acl_trivial if available.  This is the crucial part of the fix.
62118         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
62119         shared within the library.  Rewrite a bit, partly to make it compatible
62120         with the GNU coding style.
62121         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
62122         Remove unnecessary double-quotes.
62123         Don't test for acl_to_text; the build will catch that.
62124         Replace acl_entries if it doesn't exist and it is needed.
62125         Check for -lsec and acl_trivial (as used on Solaris 10).
62126         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
62127         lib/file-has-acl.c.
62128         (Depends-on): Add sys_stat, for S_ISLNK.
62129
62130 2007-03-19  Ben Pfaff  <blp@gnu.org>
62131
62132         * doc/gnulib.texi: Fix typos.
62133         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
62134
62135 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62136
62137         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
62138         If size is zero here, buf must be zero.
62139
62140 2007-03-19  Simon Josefsson  <simon@josefsson.org>
62141
62142         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
62143         <bruno@clisp.org>.
62144
62145 2007-03-18  Bruno Haible  <bruno@clisp.org>
62146
62147         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
62148         Suggested by Eric Blake.
62149
62150 2007-03-18  Ben Pfaff  <blp@gnu.org>
62151
62152         * doc/relocatable.texi: Recommend using as prefix a directory
62153         that does not exist and will never be created.  Based on
62154         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
62155         and others.
62156
62157 2007-03-17  Bruno Haible  <bruno@clisp.org>
62158
62159         * lib/fchownat.c: Include lchown.h.
62160
62161 2007-03-17  Bruno Haible  <bruno@clisp.org>
62162
62163         Fix endless loop when the given allocated size was > INT_MAX.
62164         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
62165         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
62166         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
62167         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
62168         * lib/sprintf.c (sprintf): Likewise.
62169
62170 2007-03-17  Bruno Haible  <bruno@clisp.org>
62171
62172         * tests/test-argp-2.sh (func_compare): Output a context diff.
62173
62174 2007-03-17  Bruno Haible  <bruno@clisp.org>
62175
62176         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
62177         locale's decimal-point character.
62178
62179 2007-03-17  Bruno Haible  <bruno@clisp.org>
62180
62181         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
62182         before comparing it. Needed because on some platforms (e.g. x86) a
62183         'long double' occupies less bytes than sizeof (long double).
62184
62185 2007-03-17  Bruno Haible  <bruno@clisp.org>
62186
62187         * tests/test-crc.c (main): Make printf statements 64-bit clean.
62188         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
62189         * tests/test-getaddrinfo.c (simple): Likewise.
62190         * tests/test-read-file.c (main): Likewise.
62191
62192 2007-03-17  Bruno Haible  <bruno@clisp.org>
62193
62194         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
62195
62196 2007-03-17  Bruno Haible  <bruno@clisp.org>
62197
62198         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
62199         unused variable.
62200
62201 2007-03-17  Bruno Haible  <bruno@clisp.org>
62202
62203         * tests/test-c-strcasecmp.c: Include c-strcase.h.
62204         * tests/test-c-strncasecmp.c: Likewise.
62205
62206 2007-03-17  Bruno Haible  <bruno@clisp.org>
62207
62208         * modules/stdlib (Depends-on): Add unistd.
62209         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
62210         Needed for MacOS X 10.3.
62211
62212 2007-03-17  Bruno Haible  <bruno@clisp.org>
62213
62214         * lib/unistr/u-strdup.h: Include <stdlib.h>.
62215
62216 2007-03-17  Bruno Haible  <bruno@clisp.org>
62217
62218         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
62219
62220 2007-03-17  Bruno Haible  <bruno@clisp.org>
62221
62222         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
62223         to reflect files copied from gnulib (with or without modifications).
62224         Suggested by Jim Meyering.
62225
62226 2007-03-17  Eric Blake  <ebb9@byu.net>
62227
62228         * NEWS: Document stdlib change from 2007-02-18.
62229
62230 2007-03-17  Jim Meyering  <jim@meyering.net>
62231
62232         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
62233         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
62234         someone uses a name containing shell meta-characters.
62235         Reported by Alfred M. Szmidt.
62236
62237         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
62238
62239 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
62240
62241         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
62242         and copy gettext configuration files only if configure.ac contains
62243         a use of AM_GNU_GETTEXT_VERSION.
62244
62245 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
62246
62247         * build-aux/bootstrap (gnulib_name): New variable.
62248         (gnulib_tool_options): Use it.
62249
62250 2007-03-13  Simon Josefsson  <simon@josefsson.org>
62251
62252         * tests/test-des.c: Use new namespace.
62253
62254 2007-03-15  Bruno Haible  <bruno@clisp.org>
62255
62256         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
62257         Reported by James Youngman <jay@gnu.org>.
62258
62259 2007-03-15  Bruno Haible  <bruno@clisp.org>
62260
62261         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
62262         declared prototype. Needed with cc on OSF/1 5.1.
62263
62264 2007-03-15  Bruno Haible  <bruno@clisp.org>
62265
62266         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
62267         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
62268         (struct gl_list_implementation): Add dispose_fn argument to the
62269         'create_empty', 'create' methods.
62270         (struct gl_list_impl_base): Add field 'dispose_fn'.
62271         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
62272         argument.
62273         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
62274         dispose_fn argument.
62275         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
62276         dispose_fn on the dropped values.
62277         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
62278         dispose_fn argument.
62279         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
62280         dropped values.
62281         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
62282         (gl_tree_remove_node): Call dispose_fn on the dropped value.
62283         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
62284         (gl_tree_remove_node): Call dispose_fn on the dropped value.
62285         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
62286         argument.
62287         (gl_tree_list_free): Call dispose_fn on the dropped values.
62288         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
62289         the dropped values.
62290         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
62291         Add dispose_fn argument.
62292         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
62293         Call dispose_fn on the dropped values.
62294         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
62295         Add dispose_fn argument.
62296         (gl_sublist_create): Initialize the 'dispose_fn' field.
62297         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
62298         * tests/test-array_list.c (main): Update.
62299         * tests/test-carray_list.c (main): Update.
62300         * tests/test-avltree_list.c (main): Update.
62301         * tests/test-rbtree_list.c (main): Update.
62302         * tests/test-avltreehash_list.c (main): Update.
62303         * tests/test-rbtreehash_list.c (main): Update.
62304         * tests/test-linked_list.c (main): Update.
62305         * tests/test-linkedhash_list.c (main): Update.
62306         * tests/test-array_oset.c (main): Update.
62307
62308 2007-03-15  Bruno Haible  <bruno@clisp.org>
62309
62310         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
62311         (gl_oset_create_empty): Add dispose_fn argument.
62312         (struct gl_oset_implementation): Add dispose_fn argument to
62313         'create_empty' method.
62314         (struct gl_oset_impl_base): Add dispose_fn field.
62315         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
62316         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
62317         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
62318         values.
62319         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
62320         (gl_tree_oset_free): Call dispose_fn on the dropped values.
62321         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
62322         dropped value.
62323         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
62324         dropped value.
62325         * tests/test-array_oset.c (main): Update.
62326         * tests/test-avltree_oset.c (main): Update.
62327         * tests/test-rbtree_oset.c (main): Update.
62328         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
62329
62330 2007-03-13  Bruno Haible  <bruno@clisp.org>
62331
62332         * tests/test-stdbool.c (i): Update after last patch.
62333
62334 2007-03-12  Bruno Haible  <bruno@clisp.org>
62335
62336         * lib/quotearg.c: Include <wctype.h> early, before the definition of
62337         the iswprint macro. Needed on Solaris 2.5.1.
62338
62339 2007-03-12  Bruno Haible  <bruno@clisp.org>
62340
62341         * tests/test-printf-frexp.c (main): Declare x as volatile.
62342
62343 2007-03-12  Simon Josefsson  <simon@josefsson.org>
62344
62345         * doc/gnulib.texi (Build robot for gnulib): New section.
62346
62347 2007-03-12  Jim Meyering  <jim@meyering.net>
62348
62349         * build-aux/bootstrap: New file.
62350         * build-aux/bootstrap.conf: New file, from coreutils.
62351
62352 2007-03-11  Bruno Haible  <bruno@clisp.org>
62353
62354         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
62355
62356 2007-03-12  Simon Josefsson  <simon@josefsson.org>
62357
62358         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
62359         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
62360         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
62361
62362 2007-03-11  Bruno Haible  <bruno@clisp.org>
62363
62364         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
62365         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
62366
62367 2007-03-11  Bruno Haible  <bruno@clisp.org>
62368
62369         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
62370         formula. Needed for SunPRO C 5.0.
62371
62372 2007-03-11  Bruno Haible  <bruno@clisp.org>
62373
62374         * modules/long-options (Depends-on): Add getopt.
62375
62376 2007-03-11  Bruno Haible  <bruno@clisp.org>
62377
62378         * modules/modechange (Depends-on): Add stdbool.
62379
62380 2007-03-11  Bruno Haible  <bruno@clisp.org>
62381
62382         * modules/i-ring (Depends-on): Add stdbool.
62383
62384 2007-03-11  Bruno Haible  <bruno@clisp.org>
62385
62386         * modules/gc-des (Depends-on): Add stdbool.
62387
62388 2007-03-11  Bruno Haible  <bruno@clisp.org>
62389
62390         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
62391
62392 2007-03-11  Bruno Haible  <bruno@clisp.org>
62393
62394         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
62395
62396 2007-03-11  Bruno Haible  <bruno@clisp.org>
62397
62398         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
62399
62400 2007-03-11  Bruno Haible  <bruno@clisp.org>
62401
62402         * lib/vasnprintf.c (sprintf): Undefine.
62403
62404 2007-03-11  Bruno Haible  <bruno@clisp.org>
62405
62406         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
62407         initializers in SunPRO C and Compaq C compilers.
62408
62409 2007-03-11  Bruno Haible  <bruno@clisp.org>
62410
62411         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
62412         decrementing code ANSI C compliant.
62413
62414 2007-03-11  Bruno Haible  <bruno@clisp.org>
62415
62416         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
62417         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
62418
62419 2007-03-11  Bruno Haible  <bruno@clisp.org>
62420
62421         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
62422         <stdbool.h> substitute doesn't pass.
62423
62424 2007-03-11  Bruno Haible  <bruno@clisp.org>
62425
62426         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
62427
62428 2007-03-11  Bruno Haible  <bruno@clisp.org>
62429
62430         * gnulib-tool (func_create_megatestdir): Create also an autobuild
62431         script, for submission to autobuild.josefsson.org.
62432
62433 2007-03-10  Bruno Haible  <bruno@clisp.org>
62434
62435         * modules/canonicalize-lgpl-tests: New file.
62436         * tests/test-canonicalize-lgpl.sh: New file.
62437         * tests/test-canonicalize-lgpl.c: New file.
62438
62439         * modules/c-strcase-tests: New file.
62440         * tests/test-c-strcase.sh: New file.
62441         * tests/test-c-strcasecmp.c: New file.
62442         * tests/test-c-strncasecmp.c: New file.
62443
62444         * modules/atexit-tests: New file.
62445         * tests/test-atexit.sh: New file.
62446         * tests/test-atexit.c: New file.
62447
62448 2007-03-10  Bruno Haible  <bruno@clisp.org>
62449
62450         * tests/test-binary-io.sh: Use temporary filenames that are not so
62451         likely to clash with those of other tests (in a parallel make).
62452         * tests/test-binary-io.c: Likewise.
62453
62454 2007-03-10  Bruno Haible  <bruno@clisp.org>
62455
62456         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
62457         fallback; use #error instead.
62458         Suggested by Simon Josefsson.
62459
62460 2007-03-10  Bruno Haible  <bruno@clisp.org>
62461
62462         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
62463         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
62464         first and the last.
62465
62466 2007-03-10  Bruno Haible  <bruno@clisp.org>
62467
62468         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
62469
62470 2007-03-10  Bruno Haible  <bruno@clisp.org>
62471
62472         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
62473         "make distcheck".
62474         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
62475         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
62476         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
62477
62478 2007-03-10  Bruno Haible  <bruno@clisp.org>
62479
62480         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
62481         variable.
62482         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
62483         variable.
62484
62485 2007-03-09  Eric Blake  <ebb9@byu.net>
62486         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
62487
62488         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
62489         types are not being provided by gnulib.
62490         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
62491         types are supported.
62492
62493 2007-03-10  Bruno Haible  <bruno@clisp.org>
62494
62495         * lib/stdio_.h (__attribute__): New macro.
62496         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
62497         vsprintf): Specify __attribute__ __format__ for GCC.
62498         Suggested by Eric Blake.
62499
62500 2007-03-09  Bruno Haible  <bruno@clisp.org>
62501
62502         * modules/printf-posix-tests: New file.
62503         * tests/test-printf-posix.sh: New file.
62504         * tests/test-printf-posix.c: New file.
62505
62506         * modules/printf-posix: New file.
62507         * lib/printf.c: New file.
62508         * m4/printf-posix-rpl.m4: New file.
62509         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
62510         REPLACE_PRINTF.
62511         * lib/stdio_.h (printf): New declaration.
62512         (format, __format__, ____printf____, ____scanf____, ____strftime____,
62513         ____strfmon____): New macros.
62514         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
62515         REPLACE_PRINTF.
62516
62517 2007-03-09  Bruno Haible  <bruno@clisp.org>
62518
62519         * tests/test-vasnprintf-posix2.sh: New file.
62520         * tests/test-vasnprintf-posix2.c: New file.
62521         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
62522         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
62523         (Makefile.am): Activate test-vasnprintf-posix2.sh.
62524
62525         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
62526         a locale dependent decimal point, rather than always '.'.
62527
62528 2007-03-09  Eric Blake  <ebb9@byu.net>
62529
62530         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
62531         spite of platforms like Tandem/NSK that define it to -1.
62532
62533 2007-03-08  Bruno Haible  <bruno@clisp.org>
62534
62535         * modules/vprintf-posix-tests: New file.
62536         * tests/test-vprintf-posix.sh: New file.
62537         * tests/test-vprintf-posix.c: New file.
62538         * tests/test-printf-posix.h: New file.
62539
62540         * modules/vprintf-posix: New file.
62541         * lib/vprintf.c: New file.
62542         * m4/vprintf-posix.m4: New file.
62543         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
62544         REPLACE_VPRINTF.
62545         * lib/stdio_.h (vprintf): New declaration.
62546         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
62547         REPLACE_VPRINTF.
62548
62549 2007-03-08  Bruno Haible  <bruno@clisp.org>
62550
62551         * modules/fprintf-posix-tests: New file.
62552         * tests/test-fprintf-posix.sh: New file.
62553         * tests/test-fprintf-posix.c: New file.
62554
62555         * modules/fprintf-posix: New file.
62556         * lib/fprintf.c: New file.
62557         * m4/fprintf-posix.m4: New file.
62558         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
62559         REPLACE_FPRINTF.
62560         * lib/stdio_.h (fprintf): New declaration.
62561         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
62562         REPLACE_FPRINTF.
62563
62564 2007-03-08  Bruno Haible  <bruno@clisp.org>
62565
62566         * modules/vfprintf-posix-tests: New file.
62567         * tests/test-vfprintf-posix.sh: New file.
62568         * tests/test-vfprintf-posix.c: New file.
62569         * tests/test-fprintf-posix.h: New file.
62570         * tests/test-fprintf-posix.out: New file.
62571
62572         * modules/vfprintf-posix: New file.
62573         * lib/vfprintf.c: New file.
62574         * m4/vfprintf-posix.m4: New file.
62575         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
62576         REPLACE_VFPRINTF.
62577         * lib/stdio_.h (vfprintf): New declaration.
62578         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
62579         REPLACE_VFPRINTF.
62580
62581 2007-03-08  Bruno Haible  <bruno@clisp.org>
62582
62583         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
62584
62585 2007-03-08  Bruno Haible  <bruno@clisp.org>
62586
62587         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
62588         instead of 'expr' invocations.
62589         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62590         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62591         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62592         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62593         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62594         Suggested by Paul Eggert.
62595
62596 2007-03-08  Bruno Haible  <bruno@clisp.org>
62597
62598         * modules/fseterr-tests: New file.
62599         * tests/test-fseterr.c: New file.
62600
62601         * modules/fseterr: New file.
62602         * lib/fseterr.h: New file.
62603         * lib/fseterr.c: New file.
62604
62605 2007-03-08  Bruno Haible  <bruno@clisp.org>
62606
62607         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
62608         * lib/getopt_.h: Likewise.
62609         * lib/mbswidth.h: Likewise.
62610         * lib/setenv.h: Likewise.
62611         * lib/vasnprintf.h: Likewise.
62612         * lib/vasprintf.h: Likewise.
62613         * lib/verror.h: Likewise.
62614         * lib/xsetenv.h: Likewise.
62615         * lib/xvasprintf.h: Likewise.
62616
62617 2007-03-08  Jim Meyering  <jim@meyering.net>
62618
62619         * users.txt: Add parted.
62620
62621         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
62622
62623 2007-03-07  Bruno Haible  <bruno@clisp.org>
62624
62625         * m4/printf.m4: Make the shell script snippets copy&pastable.
62626
62627 2007-03-02  Bruno Haible  <bruno@clisp.org>
62628
62629         * lib/netinet_in_.h: New file.
62630         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
62631         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
62632         * modules/netinet_in (Files): Add lib/netinet_in_.h.
62633         (Depends-on): Add absolute-header.
62634         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
62635         into netinet/in.h.
62636
62637 2007-03-03  Bruno Haible  <bruno@clisp.org>
62638
62639         * lib/sys_select_.h: New file.
62640         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
62641         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
62642         * modules/sys_select (Files): Add lib/sys_select_.h.
62643         (Depends-on): Add absolute-header.
62644         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
62645         into sys/select.h.
62646
62647 2007-03-02  Bruno Haible  <bruno@clisp.org>
62648
62649         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
62650         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
62651         values.
62652         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
62653         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
62654         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
62655         * modules/sys_socket (Depends-on): Add absolute-header.
62656         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
62657         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
62658         (Include): Remove requirement of inclusion of <sys/types.h>.
62659
62660 2007-03-02  Bruno Haible  <bruno@clisp.org>
62661
62662         * lib/byteswap_.h (bswap_32): Fix formula.
62663
62664 2007-03-06  Bruno Haible  <bruno@clisp.org>
62665
62666         * modules/sprintf-posix-tests: New file.
62667         * tests/test-sprintf-posix.c: New file.
62668
62669         * modules/sprintf-posix: New file.
62670         * lib/sprintf.c: New file.
62671         * m4/sprintf-posix.m4: New file.
62672         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
62673         REPLACE_SPRINTF.
62674         * lib/stdio_.h (sprintf): New declaration.
62675         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
62676         REPLACE_SPRINTF.
62677
62678 2007-03-06  Bruno Haible  <bruno@clisp.org>
62679
62680         * modules/vsprintf-posix-tests: New file.
62681         * tests/test-vsprintf-posix.c: New file.
62682         * tests/test-sprintf-posix.h: New file.
62683
62684         * modules/vsprintf-posix: New file.
62685         * lib/vsprintf.c: New file.
62686         * m4/vsprintf-posix.m4: New file.
62687         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
62688         REPLACE_VSPRINTF.
62689         * lib/stdio_.h (vsprintf): New declaration.
62690         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
62691         REPLACE_VSPRINTF.
62692
62693 2007-03-06  Bruno Haible  <bruno@clisp.org>
62694
62695         * modules/vsnprintf (Depend-on): Remove minmax.
62696
62697 2007-03-06  Bruno Haible  <bruno@clisp.org>
62698
62699         * modules/snprintf-posix-tests: New file.
62700         * tests/test-snprintf-posix.c: New file.
62701
62702         * modules/snprintf-posix: New file.
62703         * m4/snprintf-posix.m4: New file.
62704         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
62705         gl_FUNC_SNPRINTF.
62706         (gl_FUNC_SNPRINTF): Invoke it.
62707         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
62708         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
62709         is set.
62710         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
62711
62712 2007-03-06  Bruno Haible  <bruno@clisp.org>
62713
62714         * modules/vsnprintf-posix-tests: New file.
62715         * tests/test-vsnprintf-posix.c: New file.
62716         * tests/test-snprintf-posix.h: New file.
62717
62718         * modules/vsnprintf-posix: New file.
62719         * m4/vsnprintf-posix.m4: New file.
62720         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
62721         gl_FUNC_VSNPRINTF.
62722         (gl_FUNC_VSNPRINTF): Invoke it.
62723         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
62724         * lib/stdio_.h (vsnprintf): Define as a replacement if
62725         REPLACE_VSNPRINTF is set.
62726         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
62727
62728 2007-03-06  Bruno Haible  <bruno@clisp.org>
62729
62730         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
62731         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
62732
62733 2007-03-06  Bruno Haible  <bruno@clisp.org>
62734
62735         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
62736         (asinl): Declare also if HAVE_DECL_ASINL is set.
62737         (atanl): Declare also if HAVE_DECL_ATANL is set.
62738         (ceill): Declare also if HAVE_DECL_CEILL is set.
62739         (cosl): Declare also if HAVE_DECL_COSL is set.
62740         (expl): Declare also if HAVE_DECL_EXPL is set.
62741         (floorl): Declare also if HAVE_DECL_FLOORL is set.
62742         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
62743         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
62744         (logl): Declare also if HAVE_DECL_LOGL is set.
62745         (sinl): Declare also if HAVE_DECL_SINL is set.
62746         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
62747         (tanl): Declare also if HAVE_DECL_TANL is set.
62748         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
62749         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
62750         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
62751         declaration of frexpl, ldexpl.
62752         * modules/printf-frexpl (Depends-on): Add math.
62753         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
62754
62755 2007-03-05  Bruno Haible  <bruno@clisp.org>
62756
62757         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
62758         frexpl and ldexpl are declared.
62759         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
62760
62761 2007-03-05  Bruno Haible  <bruno@clisp.org>
62762
62763         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
62764         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
62765
62766 2007-03-05  Bruno Haible  <bruno@clisp.org>
62767
62768         * lib/stdio_.h: Include <stddef.h>.
62769
62770 2007-03-05  Bruno Haible  <bruno@clisp.org>
62771
62772         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
62773
62774 2007-03-05  Bruno Haible  <bruno@clisp.org>
62775
62776         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
62777         NetBSD 4, from Ralf Wildenhues.
62778
62779 2007-03-04  Bruno Haible  <bruno@clisp.org>
62780
62781         * lib/vasprintf.h: Update #if logic for the case when the functions
62782         exist but are overridden.
62783
62784 2007-03-04  Bruno Haible  <bruno@clisp.org>
62785
62786         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
62787         implementations: glibc-2.4 and MacOS X 10.3.
62788         * tests/test-vasnprintf-posix.c (test_function): Test also the case
62789         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
62790         * tests/test-vasprintf-posix.c (test_function): Likewise.
62791
62792 2007-03-04  Bruno Haible  <bruno@clisp.org>
62793
62794         * modules/vasprintf-posix-tests: New file.
62795         * tests/test-vasprintf-posix.c: New file.
62796
62797         * modules/vasprintf-posix: New file.
62798         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
62799         defined.
62800         * m4/vasprintf-posix.m4: New file.
62801         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
62802         gl_FUNC_VASPRINTF.
62803         (gl_FUNC_VASPRINTF): Invoke it.
62804         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
62805         here.
62806         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
62807
62808 2007-03-04  Bruno Haible  <bruno@clisp.org>
62809
62810         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
62811         REPLACE_GETTIMEOFDAY.
62812         * modules/sys_time (Makefile.am): Likewise.
62813         * m4/sys_time_h.m4: Likewise.
62814         * m4/gettimeofday.m4: Likewise.
62815
62816 2007-03-04  Bruno Haible  <bruno@clisp.org>
62817
62818         * modules/vasnprintf-posix-tests: New file.
62819         * tests/test-vasnprintf-posix.c: New file.
62820
62821         * modules/vasnprintf-posix: New file.
62822         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
62823         printf-frexpl.h.
62824         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
62825         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
62826         REPLACE_VASNPRINTF is defined.
62827         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
62828         gl_FUNC_VASNPRINTF.
62829         (gl_FUNC_VASNPRINTF): Invoke it.
62830         * m4/vasnprintf-posix.m4: New file.
62831         * m4/printf.m4: New file.
62832
62833 2007-03-04  Bruno Haible  <bruno@clisp.org>
62834
62835         Compile progreloc.c only if --enable-relocatable is specified.
62836         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
62837         if --enable-relocatable was specified.
62838         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
62839         lib_SOURCES.
62840
62841 2007-03-04  Jim Meyering  <jim@meyering.net>
62842
62843         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
62844         Use it consistently, rather than enumerating errno constants.
62845
62846 2007-03-04  Bruno Haible  <bruno@clisp.org>
62847
62848         * modules/xvasprintf-tests: New file.
62849         * tests/test-xvasprintf.c: New file.
62850
62851         * modules/vasprintf-tests: New file.
62852         * tests/test-vasprintf.c: New file.
62853
62854         * modules/vasnprintf-tests: New file.
62855         * tests/test-vasnprintf.c: New file.
62856
62857         * modules/vsnprintf-tests: New file.
62858         * tests/test-vsnprintf.c: New file.
62859
62860         * modules/snprintf-tests: New file.
62861         * tests/test-snprintf.c: New file.
62862
62863 2007-03-04  Bruno Haible  <bruno@clisp.org>
62864
62865         Compile relocatable.c only if --enable-relocatable is specified.
62866         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
62867         gl_RELOCATABLE_LIBRARY.
62868         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
62869         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
62870         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
62871         gl_RELOCATABLE_LIBRARY.
62872         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
62873         (Makefile.am): Remove lib_SOURCES.
62874         * modules/relocatable-lib-lgpl (configure.ac): Invoke
62875         gl_RELOCATABLE_LIBRARY.
62876         (Makefile.am): Remove lib_SOURCES.
62877         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
62878         always.
62879         * modules/relocatable-prog-wrapper (configure.ac): Invoke
62880         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
62881
62882 2007-03-04  Bruno Haible  <bruno@clisp.org>
62883
62884         * modules/argmatch-tests: New file.
62885         * tests/test-argmatch.c: New file.
62886
62887         * tests/test-allocsa.c (main): Halve the number of loop runs.
62888
62889         * modules/alloca-opt-tests: New file.
62890         * tests/test-alloca-opt.c: New file.
62891
62892 2007-03-04  Jim Meyering  <jim@meyering.net>
62893
62894         Work around difference between Linux ACLs and Solaris 10 ZFS.
62895         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
62896         for EINVAL.
62897
62898 2007-03-03  Bruno Haible  <bruno@clisp.org>
62899
62900         * modules/relocatable-prog (Depends-on): Add back progreloc's
62901         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
62902
62903 2007-03-03  Bruno Haible  <bruno@clisp.org>
62904
62905         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
62906         * modules/relocatable-lib: New file.
62907
62908 2007-03-03  Bruno Haible  <bruno@clisp.org>
62909
62910         * modules/relocatable-prog: Renamed from modules/relocatable.
62911         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
62912
62913 2007-03-03  Bruno Haible  <bruno@clisp.org>
62914
62915         * modules/relocatable-script (Files): Add doc/relocatable.texi,
62916         m4/relocatable-lib.m4.
62917         (Depends-on): Remove 'relocatable'.
62918         (configure.ac): Add gl_RELOCATABLE_NOP.
62919
62920 2007-03-03  Bruno Haible  <bruno@clisp.org>
62921
62922         * modules/relocatable-prog-wrapper: New file.
62923         * modules/relocatable (Depends-on): Add it. Remove all other
62924         dependencies except progname.
62925         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
62926
62927         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
62928         (gl_FUNC_STRERROR): Nop.
62929         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
62930
62931         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
62932         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
62933
62934         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
62935         (gl_FUNC_READLINK): Update.
62936
62937         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
62938
62939 2007-03-03  Bruno Haible  <bruno@clisp.org>
62940
62941         * lib/xreadlink.c: Include <unistd.h> unconditionally.
62942         * modules/xreadlink (Depends-on): Add unistd.
62943         * modules/xreadlink-with-size (Depends-on): Likewise.
62944
62945 2007-03-03  Bruno Haible  <bruno@clisp.org>
62946
62947         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
62948         extracted from gt_FUNC_SETENV.
62949         (gt_FUNC_SETENV): Remove macro.
62950         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
62951         remove gt_FUNC_SETENV.
62952
62953 2007-03-03  Bruno Haible  <bruno@clisp.org>
62954
62955         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
62956         ENABLE_RELOCATABLE here.
62957         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
62958
62959 2007-03-03  Bruno Haible  <bruno@clisp.org>
62960
62961         * modules/rbtreehash-list-tests (Depends-on): Add progname.
62962         * tests/test-rbtreehash_list.c: Include progname.h.
62963         (main): Call set_program_name.
62964
62965         * modules/rbtree-oset-tests (Depends-on): Add progname.
62966         * tests/test-rbtree_oset.c: Include progname.h.
62967         (main): Call set_program_name.
62968
62969         * modules/rbtree-list-tests (Depends-on): Add progname.
62970         * tests/test-rbtree_list.c: Include progname.h.
62971         (main): Call set_program_name.
62972
62973         * modules/linked-list-tests (Depends-on): Add progname.
62974         * tests/test-linked_list.c: Include progname.h.
62975         (main): Call set_program_name.
62976
62977 2007-03-03  Bruno Haible  <bruno@clisp.org>
62978
62979         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
62980         All uses of __restrict changed to _Restrict_.
62981         * lib/glob_.h (__restrict): Remove macro.
62982
62983 2007-03-02  Bruno Haible  <bruno@clisp.org>
62984
62985         * modules/gettext (configure.ac): Require gettext infrastructure
62986         from version 0.16.1.
62987
62988 2007-03-02  Bruno Haible  <bruno@clisp.org>
62989
62990         * modules/linkedhash-list-tests (Depends-on): Add progname.
62991         * tests/test-linkedhash_list.c: Include progname.h.
62992         (main): Call set_program_name.
62993
62994         * modules/carray-list-tests (Depends-on): Add progname.
62995         * tests/test-carray_list.c: Include progname.h.
62996         (main): Call set_program_name.
62997
62998         * modules/avltreehash-list-tests (Depends-on): Add progname.
62999         * tests/test-avltreehash_list.c: Include progname.h.
63000         (main): Call set_program_name.
63001
63002         * modules/avltree-oset-tests (Depends-on): Add progname.
63003         * tests/test-avltree_oset.c: Include progname.h.
63004         (main): Call set_program_name.
63005
63006         * modules/avltree-list-tests (Depends-on): Add progname.
63007         * tests/test-avltree_list.c: Include progname.h.
63008         (main): Call set_program_name.
63009
63010         * modules/array-oset-tests (Depends-on): Add progname.
63011         * tests/test-array_oset.c: Include progname.h.
63012         (main): Call set_program_name.
63013
63014         * modules/array-list-tests (Depends-on): Add progname.
63015         * tests/test-array_list.c: Include progname.h.
63016         (main): Call set_program_name.
63017
63018         * modules/argp-tests (Depends-on): Add progname.
63019         * tests/test-argp.c: Include argp.h first. Include progname.h.
63020         (main): Call set_program_name.
63021
63022 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
63023
63024         * doc/gnulib-tool.texi (Initial import): Reword description of
63025         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
63026         limited effect even if defined after the first system include.
63027
63028 2007-03-01  Bruno Haible  <bruno@clisp.org>
63029
63030         * build-aux/config.libpath: Update to libtool-1.5.22.
63031         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
63032
63033 2007-03-01  Bruno Haible  <bruno@clisp.org>
63034
63035         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
63036         foo_CFLAGS.
63037         Reported by Ralf Wildenhues.
63038
63039 2007-03-01  Bruno Haible  <bruno@clisp.org>
63040
63041         * build-aux/install-reloc: Remove object files left over by some
63042         compilers.
63043         Reported by Ralf Wildenhues.
63044
63045 2007-03-01  Bruno Haible  <bruno@clisp.org>
63046
63047         * build-aux/install-reloc: Break long lines.
63048
63049 2007-03-01  Bruno Haible  <bruno@clisp.org>
63050
63051         * doc/relocatable.texi: Document that it may not work on OpenBSD.
63052         Reported by Ralf Wildenhues.
63053
63054 2007-03-01  Bruno Haible  <bruno@clisp.org>
63055
63056         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
63057         include ordering constraints.
63058
63059 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63060
63061         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
63062         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
63063         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
63064         as another example.
63065         * lib/time_.h: Fix misspelling.
63066         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
63067         Require gl_HEADER_TIME_H_DEFAULTS.
63068         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
63069         * m4/time_r.m4 (gl_TIME_R): Likewise.
63070         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
63071
63072 2007-03-01  Bruno Haible  <bruno@clisp.org>
63073
63074         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
63075         * m4/utimens.m4 (gl_UTIMENS): Likewise.
63076
63077 2007-03-01  Jim Meyering  <jim@meyering.net>
63078
63079         * modules/xreadlink (Maintainer): Add my name.
63080         * modules/xreadlink-with-size (Depends-on): Alphabetize.
63081
63082 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
63083             Bruno Haible  <bruno@clisp.org>
63084
63085         * build-aux/install-reloc: Compile also c-ctype.c.
63086         * build-aux/relocatable.sh.in: New file.
63087         * doc/relocatable.texi: New file.
63088         * doc/relocatable-maint.texi: New file.
63089         * doc/gnulib.texi: Include relocatable-maint.texi.
63090         * lib/progreloc.c: Include unistd.h unconditionally.
63091         * lib/relocwrapper.c: Include unistd.h unconditionally.
63092         Include c-ctype.h.
63093         (add_dotbin): Use c_tolower.
63094         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
63095         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
63096         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
63097         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
63098         to m4/relocatable-lib.m4.
63099         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
63100         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
63101         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
63102         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
63103         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
63104         * modules/relocatable: New file.
63105         * modules/relocatable-lib: New file.
63106         * modules/relocatable-script: New file.
63107
63108 2007-02-28  Bruno Haible  <bruno@clisp.org>
63109
63110         Import --enable-relocatable infrastructure.
63111         * build-aux/config.libpath: New file, from GNU gettext.
63112         * build-aux/install-reloc: New file, from GNU gettext.
63113         * build-aux/reloc-ldflags: New file, from GNU gettext.
63114         * lib/relocatable.h: New file, from GNU gettext.
63115         * lib/relocatable.c: New file, from GNU gettext.
63116         * lib/relocwrapper.c: New file, from GNU gettext.
63117         * m4/relocatable.m4: New file, from GNU gettext.
63118
63119 2007-02-28  Bruno Haible  <bruno@clisp.org>
63120
63121         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
63122
63123         * modules/xreadlink: New file, from GNU gettext with modifications.
63124         * lib/xreadlink.c: New file, from GNU gettext.
63125         * lib/xreadlink.h: Add comments.
63126         (xreadlink): New declaration.
63127
63128         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
63129         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
63130         lib/xreadlink-with-size.c.
63131         (configure.ac): Remove gl_XREADLINK invocation.
63132         (Makefile.am): Augment lib_SOURCES.
63133         * m4/xreadlink.m4: Remove file.
63134         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
63135         (xreadlink_with_size): Renamed from xreadink.
63136         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
63137         * modules/canonicalize (Depends-on): Replace xreadlink with
63138         xreadlink-with-size.
63139         * lib/canonicalize.c (canonicalize_filename_mode): Update.
63140
63141 2007-02-25  Jim Meyering  <jim@meyering.net>
63142
63143         * build-aux/announce-gen: When complaining about excess arguments,
63144         list them.
63145
63146 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
63147
63148         * README: Document signed integer overflow situation more
63149         accurately.
63150
63151 2007-02-25  Bruno Haible  <bruno@clisp.org>
63152
63153         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
63154         'a' or 'A' conversion.
63155
63156 2007-02-25  Bruno Haible  <bruno@clisp.org>
63157
63158         * modules/filename: Renamed from modules/pathname.
63159         (Files): Replace lib/pathname.h with lib/filename.h. Replace
63160         lib/concatpath.c with lib/concat-filename.c.
63161         (Makefile.am): Update.
63162         (Include): Replace pathname.h with filename.h.
63163         * lib/filename.h: Renamed from lib/pathname.h.
63164         (concatenated_filename): Renamed from concatenated_pathname.
63165         * lib/concat-filename.c: Renamed from lib/concatpath.c.
63166         (concatenated_filename): Renamed from concatenated_pathname.
63167         * lib/findprog.c: Include filename.h instead of pathname.h.
63168         (find_in_path): Update.
63169         * lib/javacomp.c: Include filename.h instead of pathname.h.
63170         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
63171         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
63172         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
63173         is_oldgcj_14_13_usable, is_javac_usable): Update.
63174         * lib/javaexec.c: Include filename.h instead of pathname.h.
63175         (execute_java_class): Update.
63176         * modules/findprog: Update.
63177         * modules/javacomp: Update.
63178         * modules/javaexec: Update.
63179         * MODULES.html.sh (File system functions): Add 'filename', remove
63180         'pathname'.
63181
63182 2007-02-25  Bruno Haible  <bruno@clisp.org>
63183
63184         * modules/printf-frexpl-tests: New file.
63185         * tests/test-printf-frexpl.c: New file.
63186
63187         * modules/printf-frexpl: New file.
63188         * lib/printf-frexpl.h: New file.
63189         * lib/printf-frexpl.c: New file.
63190         * m4/printf-frexpl.m4: New file.
63191
63192 2007-02-25  Bruno Haible  <bruno@clisp.org>
63193
63194         * modules/printf-frexp-tests: New file.
63195         * tests/test-printf-frexp.c: New file.
63196
63197         * modules/printf-frexp: New file.
63198         * lib/printf-frexp.h: New file.
63199         * lib/printf-frexp.c: New file.
63200         * m4/printf-frexp.m4: New file.
63201
63202 2007-02-25  Bruno Haible  <bruno@clisp.org>
63203
63204         Assume automake >= 1.10 for the tests.
63205         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
63206         * modules/arctwo-tests: Likewise.
63207         * modules/argp-tests: Likewise.
63208         * modules/avltree-list-tests: Likewise.
63209         * modules/avltree-oset-tests: Likewise.
63210         * modules/avltreehash-list-tests: Likewise.
63211         * modules/carray-list-tests: Likewise.
63212         * modules/crc-tests: Likewise.
63213         * modules/des-tests: Likewise.
63214         * modules/gc-arcfour-tests: Likewise.
63215         * modules/gc-arctwo-tests: Likewise.
63216         * modules/gc-des-tests: Likewise.
63217         * modules/gc-hmac-md5-tests: Likewise.
63218         * modules/gc-hmac-sha1-tests: Likewise.
63219         * modules/gc-md2-tests: Likewise.
63220         * modules/gc-md4-tests: Likewise.
63221         * modules/gc-md5-tests: Likewise.
63222         * modules/gc-pbkdf2-sha1-tests: Likewise.
63223         * modules/gc-rijndael-tests: Likewise.
63224         * modules/gc-sha1-tests: Likewise.
63225         * modules/gc-tests: Likewise.
63226         * modules/getaddrinfo-tests: Likewise.
63227         * modules/hmac-md5-tests: Likewise.
63228         * modules/hmac-sha1-tests: Likewise.
63229         * modules/linked-list-tests: Likewise.
63230         * modules/linkedhash-list-tests: Likewise.
63231         * modules/lock-tests: Likewise.
63232         * modules/md2-tests: Likewise.
63233         * modules/md4-tests: Likewise.
63234         * modules/md5-tests: Likewise.
63235         * modules/rbtree-list-tests: Likewise.
63236         * modules/rbtree-oset-tests: Likewise.
63237         * modules/rbtreehash-list-tests: Likewise.
63238         * modules/read-file-tests: Likewise.
63239         * modules/rijndael-tests: Likewise.
63240         * modules/stdint-tests: Likewise.
63241         * modules/tls-tests: Likewise.
63242
63243 2007-02-24  Bruno Haible  <bruno@clisp.org>
63244
63245         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
63246         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
63247         function; instead check whether isnan with a double argument links.
63248         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
63249         function; instead check whether isnan with a 'long double' argument
63250         links.
63251         Reported by Eric Blake <ebb9@byu.net>.
63252
63253 2007-02-24  Bruno Haible  <bruno@clisp.org>
63254
63255         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
63256         defined.
63257         * lib/isnanl.c: Remove all code. Just include isnan.c.
63258         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
63259
63260 2007-02-25  Jim Meyering  <jim@meyering.net>
63261
63262         Avoid conflicting types for 'unsetenv' on FreeBSD.
63263         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
63264         conflicting with FreeBSD's (5.0 and 6.1) function declaration
63265         in stdlib.h.
63266
63267 2007-02-24  Bruno Haible  <bruno@clisp.org>
63268
63269         * modules/isnanl-nolibm-tests: New file.
63270         * tests/test-isnanl.c: New file.
63271
63272         * modules/isnanl-nolibm: New file.
63273         * lib/isnanl.h: New file.
63274         * lib/isnanl.c: New file.
63275         * m4/isnanl.m4: New file.
63276
63277 2007-02-24  Bruno Haible  <bruno@clisp.org>
63278
63279         * modules/isnan-nolibm-tests: New file.
63280         * tests/test-isnan.c: New file.
63281
63282         * modules/isnan-nolibm: New file.
63283         * lib/isnan.h: New file.
63284         * lib/isnan.c: New file.
63285         * m4/isnan.m4: New file.
63286
63287 2007-02-24  Bruno Haible  <bruno@clisp.org>
63288
63289         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
63290         assume that an exponent fits in 20 bits.
63291
63292 2007-02-24  Jim Meyering  <jim@meyering.net>
63293
63294         * m4/regex.m4: Update the description of the configure-time option,
63295         --without-included-regex, to state accurately what the defaults are,
63296         and perhaps to give people an idea why using this option is risky.
63297
63298 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
63299
63300         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
63301         loops on small arguments.  This attempts to avoid the problem
63302         Bruno Haible reported for AIX 4.3.2 in
63303         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
63304
63305 2007-02-23  Bruno Haible  <bruno@clisp.org>
63306
63307         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
63308         Needed for help2man.
63309
63310 2007-02-23  Karl Berry  <karl@gnu.org>
63311
63312         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
63313         exists, foo.h should be cvs-ignored, not committed.
63314
63315 2007-02-23  Eric Blake  <ebb9@byu.net>
63316
63317         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
63318         * lib/stat-time.h (includes): Likewise.
63319         * lib/utimecmp.c (includes): Likewise.
63320         * lib/utimens.h (includes): Likewise.
63321         * lib/getdate.y (includes): Also include "timespec.h" for use
63322         internal to the module.
63323         * modules/utimens (Depends-on): Revert yesterday's patch.
63324         * modules/nanosleep (Depends-on): Add missing dependency.
63325
63326 2007-02-22  Bruno Haible  <bruno@clisp.org>
63327
63328         * lib/glob.c: Don't include getlogin_r.h.
63329
63330 2007-02-22  Jim Meyering  <jim@meyering.net>
63331
63332         * modules/utimens (Depends-on): Add timespec, required for
63333         utimens.h's inclusion of timespec.h.
63334
63335 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
63336
63337         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
63338         long unreadable paths in GNU/Linux.  Problem reported by Andreas
63339         Schwab in
63340         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
63341         I'll try to think of a better way to fix the Solaris problem.
63342
63343         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
63344         like glibc; on Solaris 10, it fails with errno == EINVAL.
63345         POSIX says the behavior is unspecified if the first argument is NULL,
63346         so play it safe and never pass NULL to the system getcwd.
63347
63348 2007-02-21  Jim Meyering  <jim@meyering.net>
63349
63350         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
63351         of gettimeofday.  It would conflict with the one now always
63352         provided via sys_time_.h.  Reported by Matthew Woehlke, as
63353         an IRIX 6.5 build failure.
63354
63355 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
63356
63357         Minor fixups to port to Solaris 10 with Sun C 5.8.
63358         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
63359         * modules/getcwd (Depends-on): Add dirfd.
63360         * lib/putenv.c (putenv): #undef it.
63361         (rpl_putenv): New decl.
63362         (malloc, free): Include <stdlib.h> rather than prototyping separately.
63363
63364 2007-02-20  Bruno Haible  <bruno@clisp.org>
63365
63366         * modules/stdio-tests: New file.
63367         * tests/test-stdio.c: New file.
63368
63369         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
63370         (Depends-on): Add stdio.
63371         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
63372         (Include): Use <stdio.h> instead of vsnprintf.h.
63373         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
63374         HAVE_DECL_VSNPRINTF.
63375         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
63376
63377         * modules/snprintf (Files): Remove lib/snprintf.h.
63378         (Depends-on): Add stdio.
63379         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
63380         (Include): Use <stdio.h> instead of snprintf.h.
63381         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
63382         HAVE_DECL_SNPRINTF.
63383         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
63384         * lib/getaddrinfo.c: Likewise.
63385
63386         * modules/stdio: New file.
63387         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
63388         * lib/snprintf.h: Remove file.
63389         * lib/vsnprintf.h: Remove file.
63390         * lib/.cppi-disable: Remove snprintf.h.
63391         * m4/stdio_h.m4: New file.
63392         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
63393
63394 2007-02-20  Jim Meyering  <jim@meyering.net>
63395
63396         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
63397         used by e.g., mingw.  From Bruno Haible.
63398
63399 2007-02-19  Bruno Haible  <bruno@clisp.org>
63400
63401         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
63402         warnings.
63403         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63404
63405 2007-02-19  Bruno Haible  <bruno@clisp.org>
63406
63407         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
63408         from mingw users.
63409
63410 2007-02-19  Bruno Haible  <bruno@clisp.org>
63411
63412         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
63413         warnings.
63414         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
63415
63416 2007-02-19  Jim Meyering  <jim@meyering.net>
63417
63418         Don't use FD after a successful "fdopendir (fd)".
63419         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
63420         Reset it by calling dirfd on the just-obtained DIR*.
63421
63422         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
63423         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
63424
63425 2007-02-18  Bruno Haible  <bruno@clisp.org>
63426
63427         * lib/readlink.c: Include <unistd.h>.
63428         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
63429         HAVE_READLINK.
63430         * modules/readlink (Depends-on): Add unistd.
63431         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63432         (Include): Add <unistd.h>.
63433
63434         * lib/getlogin_r.h: Remove file.
63435         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
63436         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
63437         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
63438         HAVE_DECL_GETLOGIN_R.
63439         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
63440         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63441         (Include): Use <unistd.h> instead of getlogin_r.h.
63442
63443         * lib/getcwd.h: Remove file.
63444         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
63445         * lib/xgetcwd.c: Likewise.
63446         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
63447         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
63448         * modules/getcwd (Files): Remove lib/getcwd.h.
63449         (Depends-on): Add unistd.
63450         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63451         (Include): Use <unistd.h> instad of getcwd.h.
63452
63453         * lib/ftruncate.c: Include <unistd.h> first.
63454         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
63455         Set HAVE_FTRUNCATE.
63456         * modules/ftruncate (Depends-on): Add unistd.
63457         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63458
63459         * lib/fchdir.c: Include <unistd.h> first.
63460         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
63461         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
63462         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
63463         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63464         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
63465
63466         * lib/dup2.c: Include <unistd.h> first.
63467         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
63468         HAVE_DUP2.
63469         * modules/dup2 (Depends-on): Add unistd.
63470         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63471
63472         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
63473         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
63474         REPLACE_CHOWN. Don't define chown as a macro here.
63475         * modules/chown (Depends-on): Add unistd.
63476         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63477
63478         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
63479         Add definition for GL_LINK_WARNING.
63480         (chown, dup2): New declarations.
63481         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
63482         link warning.
63483         (ftruncate): New declaration.
63484         (getcwd): New declaration, taken from old getcwd.h.
63485         (getlogin_r): New declaration, taken from old getlogin_r.h.
63486         (readlink): New declaration.
63487         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
63488         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
63489         (gl_PREREQ_UNISTD): Remove macro.
63490         (gl_UNISTD_MODULE_INDICATOR): New macro.
63491         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
63492         many new variables. Don't set UNISTD_H.
63493         * modules/unistd (Description): Change.
63494         (Depends-on): Add link-warning.
63495         (configure.ac): Update.
63496         (Makefile.am): Create unistd.h always. Substitute many new variables
63497         into it.
63498
63499 2007-02-18  Bruno Haible  <bruno@clisp.org>
63500
63501         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
63502         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
63503         HAVE_GETSUBOPT.
63504         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
63505         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
63506         * lib/getsubopt.h: Remove file.
63507         * modules/getsubopt (Files): Remove lib/getsubopt.h.
63508         (Depends-on): Add stdlib.
63509         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63510         (Includes): Use <stdlib.h> instead of getsubopt.h.
63511         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
63512         Set HAVE_GETSUBOPT.
63513         * lib/getsubopt.c: Don't include getsubopt.h.
63514
63515 2007-02-18  Bruno Haible  <bruno@clisp.org>
63516
63517         * modules/fchdir (Depends-on): Add dup2.
63518
63519 2007-02-18  Bruno Haible  <bruno@clisp.org>
63520
63521         * lib/stdlib_.h: Handle glibc's special invocation convention
63522         specially.
63523
63524 2007-02-18  Bruno Haible  <bruno@clisp.org>
63525
63526         * modules/stdlib-tests: New file.
63527         * tests/test-stdlib.c: New file.
63528
63529         * modules/mkstemp (Files): Remove lib/mkstemp.h.
63530         (Depends-on): Add stdlib.
63531         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63532         (Includes): Use <stdlib.h> instead of mkstemp.h.
63533         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
63534         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
63535         * lib/mkstemp.c: Don't include mkstemp.h.
63536         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
63537         * lib/stdlib--.h: Don't include mkstemp.h.
63538
63539         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
63540         (Depends-on): Add stdlib.
63541         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63542         (Includes): Use <stdlib.h> instead of mkdtemp.h.
63543         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
63544         HAVE_MKDTEMP.
63545         * lib/mkdtemp.c: Don't include mkdtemp.h.
63546         * lib/clean-temp.c: Don't include mkdtemp.h.
63547
63548         * modules/exit (Files): Remove lib/exit.h.
63549         (Depends-on): Add stdlib.
63550         (Makefile.am): Remove lib_SOURCES.
63551         (Include): Use <stdlib.h> instead of exit.h.
63552         * lib/argmatch.c: Don't include exit.h.
63553         * lib/execute.c: Likewise.
63554         * lib/pagealign_alloc.c: Likewise.
63555         * lib/pipe.c: Likewise.
63556         * lib/wait-process.c: Likewise.
63557         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
63558         * lib/exitfail.c: Likewise.
63559         * lib/savewd.c: Likewise.
63560         * lib/xsetenv.c: Likewise.
63561
63562         * modules/stdlib: New file.
63563         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
63564         and extra comments about mkstemp().
63565         * lib/exit.h: Remove file.
63566         * lib/mkdtemp.h: Remove file.
63567         * lib/mkstemp.h: Remove file.
63568         * m4/stdlib_h.m4: New file.
63569         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
63570
63571 2007-02-18  Bruno Haible  <bruno@clisp.org>
63572
63573         * modules/math-tests: New file.
63574         * tests/test-math.c: New file.
63575
63576         * modules/math: New file.
63577         * modules/mathl (Files): Remove lib/mathl.h.
63578         (Depends-on): Add math.
63579         (Makefile.am): Don't mention mathl.h.
63580         (Include): Use <math.h> instead of mathl.h.
63581         * lib/math_.h: New file.
63582         * lib/mathl.h: Remove file.
63583         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
63584         mathl.h.
63585         * lib/asinl.c: Likewise.
63586         * lib/atanl.c: Likewise.
63587         * lib/ceill.c: Likewise.
63588         * lib/cosl.c: Likewise.
63589         * lib/expl.c: Likewise.
63590         * lib/floorl.c: Likewise.
63591         * lib/frexpl.c: Likewise.
63592         * lib/ldexpl.c: Likewise.
63593         * lib/logl.c: Likewise.
63594         * lib/sincosl.c: Likewise.
63595         * lib/sinl.c: Likewise.
63596         * lib/sqrtl.c: Likewise.
63597         * lib/tanl.c: Likewise.
63598         * lib/trigl.c: Likewise.
63599         * m4/math_h.m4: New file.
63600         * MODULES.html.sh (Mathematics): Add math.
63601
63602 2007-02-17  Bruno Haible  <bruno@clisp.org>
63603
63604         * modules/wctype-tests: New file.
63605         * tests/test-wctype.c: New file.
63606
63607         * modules/wchar-tests: New file.
63608         * tests/test-wchar.c: New file.
63609
63610         * modules/unistd-tests: New file.
63611         * tests/test-unistd.c: New file.
63612
63613         * modules/time-tests: New file.
63614         * tests/test-time.c: New file.
63615
63616         * modules/sysexits-tests: New file.
63617         * tests/test-sysexits.c: New file.
63618
63619         * modules/sys_time-tests: New file.
63620         * tests/test-sys_time.c: New file.
63621
63622         * modules/sys_stat-tests: New file.
63623         * tests/test-sys_stat.c: New file.
63624
63625         * modules/sys_socket-tests: New file.
63626         * tests/test-sys_socket.c: New file.
63627
63628         * modules/sys_select-tests: New file.
63629         * tests/test-sys_select.c: New file.
63630
63631         * modules/string-tests: New file.
63632         * tests/test-string.c: New file.
63633
63634         * modules/stdbool-tests: New file.
63635         * tests/test-stdbool.c: New file.
63636
63637         * modules/netinet_in-tests: New file.
63638         * tests/test-netinet_in.c: New file.
63639
63640         * modules/inttypes-tests: New file.
63641         * tests/test-inttypes.c: New file.
63642
63643         * modules/fcntl-tests: New file.
63644         * tests/test-fcntl.c: New file.
63645
63646         * modules/byteswap-tests: New file.
63647         * tests/test-byteswap.c: New file.
63648
63649         * modules/arpa_inet-tests: New file.
63650         * tests/test-arpa_inet.c: New file.
63651
63652 2007-02-17  Bruno Haible  <bruno@clisp.org>
63653
63654         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
63655         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
63656         if the corresponding module is not enabled. Emit link warnings if
63657         the function is used nevertheless.
63658         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
63659         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
63660         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
63661         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
63662         * modules/inttypes (Depends-on): Add link-warning.
63663         (Makefile.am): Copy the contents of build-aux/link-warning.h into
63664         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
63665         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
63666         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
63667         * modules/imaxdiv (configure.ac): Likewise.
63668         * modules/strtoimax (configure.ac): Likewise.
63669         * modules/strtoumax (configure.ac): Likewise.
63670
63671 2007-02-17  Bruno Haible  <bruno@clisp.org>
63672
63673         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
63674         gl_STRING_MODULE_INDICATOR_DEFAULTS.
63675         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
63676         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
63677
63678 2007-02-17  Bruno Haible  <bruno@clisp.org>
63679
63680         * modules/link-warning: New file.
63681         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
63682         * lib/string_.h (GL_LINK_WARNING): Remove definition.
63683         * modules/string (Depends-on): Add link-warning.
63684         (Makefile.am): Copy the contents of build-aux/link-warning.h into
63685         string.h.
63686         * MODULES.html.sh (Support for building libraries and executables): Add
63687         link-warning.
63688
63689 2007-02-17  Bruno Haible  <bruno@clisp.org>
63690
63691         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
63692         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
63693         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
63694         long lines.
63695
63696 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
63697             Bruno Haible  <bruno@clisp.org>
63698
63699         * modules/tmpfile: New file.
63700         * lib/tmpfile.c: New file.
63701         * m4/tmpfile.m4: New file.
63702         * MODULES.html.sh (func_all_modules): New section "Input/output".
63703
63704 2007-02-15  Bruno Haible  <bruno@clisp.org>
63705
63706         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
63707         (supports_delete_on_close): New function.
63708         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
63709
63710 2007-02-14  Bruno Haible  <bruno@clisp.org>
63711
63712         * modules/mbspcasecmp-tests: New file.
63713         * tests/test-mbspcasecmp.sh: New file.
63714         * tests/test-mbspcasecmp.c: New file.
63715
63716         New module mbspcasecmp.
63717         * modules/mbspcasecmp: New file.
63718         * lib/mbspcasecmp.c: New file.
63719         * lib/string_.h (strncasecmp): Change warning message.
63720         (mbspcasecmp): New declaration.
63721         * m4/mbspcasecmp.m4: New file.
63722         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63723         GNULIB_MBSPCASECMP.
63724         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
63725         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
63726
63727 2007-02-14  Bruno Haible  <bruno@clisp.org>
63728
63729         * modules/mbsncasecmp-tests: New file.
63730         * tests/test-mbsncasecmp.sh: New file.
63731         * tests/test-mbsncasecmp.c: New file.
63732
63733         New module mbsncasecmp.
63734         * modules/mbsncasecmp: New file.
63735         * lib/mbsncasecmp.c: New file.
63736         * lib/string_.h (mbsncasecmp): New declaration.
63737         * m4/mbsncasecmp.m4: New file.
63738         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63739         GNULIB_MBSNCASECMP.
63740         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
63741         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
63742
63743 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
63744
63745         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
63746         Verify that it doesn't overlap with our flags.
63747         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
63748         do not have the desired effect in multibyte locales; instead, use
63749         mbscasecmp.
63750         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
63751         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
63752         we don't require GNU fnmatch ourselves (if our users require it, they
63753         should do so explicitly).
63754
63755         Fix regex code so it doesn't rely on strcasecmp.
63756         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
63757         Otherwise, include gnulib's langinfo.h.
63758         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
63759         undesirable behavior in non-C locales.  Instead, rely on localecharset.
63760         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
63761         * modules/regex (FILES): Remove m4/codeset.m4.
63762         (Depends-on): Add localcharset.  Remove strcase.
63763
63764 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63765
63766         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
63767         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
63768
63769 2007-02-13  Bruno Haible  <bruno@clisp.org>
63770
63771         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
63772         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63773
63774 2007-02-12  Bruno Haible  <bruno@clisp.org>
63775
63776         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63777         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
63778         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
63779         time warning rather than a link error.
63780
63781 2007-02-12  Bruno Haible  <bruno@clisp.org>
63782
63783         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
63784         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63785         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63786
63787 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63788
63789         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
63790         args, not 2.
63791
63792 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63793
63794         New module 'time', so that apps can include <time.h> as per
63795         POSIX and GNU instead of separate include files like time_r.h
63796         and timegm.h.  This implementation tries out a simpler approach
63797         for replacing decls in standard include files (as compared to
63798         the string module), somewhat as an experiment.
63799
63800         * config/srclist.txt: Comment out mktime.c for now.
63801         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
63802         since it doesn't apply any more.  Use generic wording instead.
63803         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
63804         'time'.
63805         * lib/time_.h, m4/time_h.m4, modules/time: New files.
63806         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
63807         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
63808         Don't include <sys/types.h>; no longer needed since we assume C89.
63809         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
63810         * lib/strftime.c: Likewise.
63811         * lib/time_r.c: Likewise.
63812         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
63813         * lib/nanosleep.c: Include <time.h> first, to check interface.
63814         * lib/strptime.c: Likewise.
63815         * lib/time_r.c: Likewise.
63816         * lib/timegm.c: Likewise.
63817         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
63818         needed.
63819         * lib/timegm.c: Don't include timegm.h; no longer needed.
63820         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
63821         time.h now handles any problems in that area.
63822         (struct timespec, nanosleep): Remove; time.h now arranges for these.
63823         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
63824         that time.h defines struct timespec.
63825         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
63826         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
63827         handles that.
63828         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
63829         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
63830         needed.  Set REPLACE_LOCALTIME.
63831         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
63832         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
63833         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
63834         nanosleep; time_h.m4 now does that.  Don't require
63835         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
63836         module handles this now.
63837         * modules/getdate (Depends-on): Remove timespec.  Add time.
63838         * modules/nanosleep (Depends-on): Likewise.
63839         * modules/stat-time (Depends-on): Likewise.
63840         * modules/nanosleep (Include): Include time.h, not timespec.h.
63841         * modules/strptime (Files): Remove lib/strptime.h.
63842         (Depends-on): Add extensions, time.
63843         (Include): Include time.h, not strptime.h.
63844         * modules/time_r (Files): Remove lib/time_r.h.
63845         (Depends-on): Add time.
63846         (Include): Include time.h, not time_r.h.
63847         * modules/timegm: Likewise.
63848         * modules/timespec (Description): Now does timespec-related decls
63849         of our own, instead of struct timespec itself.
63850         (Depends-on): Add time; remove extensions.
63851         (Maintainer): Add self.
63852         * modules/utimecmp (Depends-on): Add time; remove timespec.
63853         * modules/utimens (Depends-on): Likewise.
63854         * modules/xnanosleep (Depends-on): Likewise.
63855
63856 2007-02-11  Bruno Haible  <bruno@clisp.org>
63857
63858         * lib/c-strstr.c: Include allocsa.h.
63859         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63860         * lib/c-strcasestr.c: Include allocsa.h.
63861         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63862         * lib/strcasestr.c: Include allocsa.h.
63863         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63864         * lib/mbsstr.c: Include allocsa.h.
63865         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63866         allocsa/freesa instead of malloc/free.
63867         * lib/mbscasestr.c: Include allocsa.h.
63868         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63869         allocsa/freesa instead of malloc/free.
63870         * modules/c-strstr (Depends-on): Add allocsa.
63871         * modules/c-strcasestr (Depends-on): Likewise.
63872         * modules/strcasestr (Depends-on): Likewise.
63873         * modules/mbsstr (Depends-on): Likewise.
63874         * modules/mbscasestr (Depends-on): Likewise.
63875
63876 2007-02-11  Bruno Haible  <bruno@clisp.org>
63877
63878         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
63879
63880         * modules/mbsspn-tests: New file.
63881         * tests/test-mbsspn.sh: New file.
63882         * tests/test-mbsspn.c: New file.
63883
63884 2007-02-11  Bruno Haible  <bruno@clisp.org>
63885
63886         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
63887
63888         * modules/mbspbrk-tests: New file.
63889         * tests/test-mbspbrk.sh: New file.
63890         * tests/test-mbspbrk.c: New file.
63891
63892 2007-02-11  Bruno Haible  <bruno@clisp.org>
63893
63894         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
63895         unneeded cast.
63896
63897         * modules/mbscspn-tests: New file.
63898         * tests/test-mbscspn.sh: New file.
63899         * tests/test-mbscspn.c: New file.
63900
63901 2007-02-11  Bruno Haible  <bruno@clisp.org>
63902
63903         * modules/mbscasecmp-tests: New file.
63904         * tests/test-mbscasecmp.sh: New file.
63905         * tests/test-mbscasecmp.c: New file.
63906
63907 2007-02-11  Bruno Haible  <bruno@clisp.org>
63908
63909         Ensure O(n) worst-case complexity of mbscasestr.
63910         * lib/mbscasestr.c: Include stdbool.h.
63911         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63912         functions.
63913         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
63914         the bookkeeping indicates that it's worth it.
63915         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
63916
63917         * modules/mbscasestr-tests: New file.
63918         * tests/test-mbscasestr1.c: New file.
63919         * tests/test-mbscasestr2.sh: New file.
63920         * tests/test-mbscasestr2.c: New file.
63921         * tests/test-mbscasestr3.sh: New file.
63922         * tests/test-mbscasestr3.c: New file.
63923         * tests/test-mbscasestr4.sh: New file.
63924         * tests/test-mbscasestr4.c: New file.
63925         * m4/locale-tr.m4: New file.
63926
63927 2007-02-11  Bruno Haible  <bruno@clisp.org>
63928
63929         Ensure O(n) worst-case complexity of mbsstr.
63930         * lib/mbsstr.c: Include stdbool.h.
63931         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63932         functions.
63933         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
63934         bookkeeping indicates that it's worth it.
63935         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
63936
63937         * modules/mbsstr-tests: New file.
63938         * tests/test-mbsstr1.c: New file.
63939         * tests/test-mbsstr2.sh: New file.
63940         * tests/test-mbsstr2.c: New file.
63941         * tests/test-mbsstr3.sh: New file.
63942         * tests/test-mbsstr3.c: New file.
63943         * m4/locale-fr.m4: New file.
63944
63945 2007-02-11  Bruno Haible  <bruno@clisp.org>
63946
63947         * lib/mbsrchr.c (mbsrchr): Fix bug.
63948
63949         * modules/mbsrchr-tests: New file.
63950         * tests/test-mbsrchr.sh: New file.
63951         * tests/test-mbsrchr.c: New file.
63952
63953 2007-02-11  Bruno Haible  <bruno@clisp.org>
63954
63955         * lib/mbschr.c (mbschr): Fix bug.
63956
63957         * modules/mbschr-tests: New file.
63958         * tests/test-mbschr.sh: New file.
63959         * tests/test-mbschr.c: New file.
63960         * m4/locale-zh.m4: New file.
63961
63962 2007-02-11  Bruno Haible  <bruno@clisp.org>
63963
63964         Support for copying multibyte string iterators.
63965         * lib/mbiter.h: Include <string.h>.
63966         (mbiter_multi_copy): New function.
63967         (mbi_copy): New macro.
63968         * lib/mbuiter.h: Include <string.h>.
63969         (mbuiter_multi_copy): New function.
63970         (mbui_copy): New macro.
63971
63972 2007-02-11  Bruno Haible  <bruno@clisp.org>
63973
63974         New module mbslen.
63975         * modules/mbslen: New file.
63976         * lib/mbslen.c: New file.
63977         * lib/string_.h (mbslen): New declaration.
63978         * m4/mbslen.m4: New file.
63979         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63980         GNULIB_MBSLEN.
63981         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
63982         * MODULES.html.sh (Internationalization functions): Add mbslen.
63983
63984 2007-02-11  Bruno Haible  <bruno@clisp.org>
63985
63986         Ensure O(n) worst-case complexity of strcasestr substitute.
63987         * lib/strcasestr.c: Include stdbool.h.
63988         (knuth_morris_pratt): New function.
63989         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63990         bookkeeping indicates that it's worth it.
63991         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
63992
63993         * modules/strcasestr-tests: New file.
63994         * tests/test-strcasestr.c: New file.
63995
63996 2007-02-11  Bruno Haible  <bruno@clisp.org>
63997
63998         Ensure O(n) worst-case complexity of c_strcasestr.
63999         * lib/c-strcasestr.c: Include stdbool.h, string.h.
64000         (knuth_morris_pratt): New function.
64001         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
64002         the bookkeeping indicates that it's worth it.
64003         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
64004
64005         * modules/c-strcasestr-tests: New file.
64006         * tests/test-c-strcasestr.c: New file.
64007
64008 2007-02-11  Bruno Haible  <bruno@clisp.org>
64009
64010         Ensure O(n) worst-case complexity of c_strstr.
64011         * lib/c-strstr.c: Include stdbool.h, string.h.
64012         (knuth_morris_pratt): New function.
64013         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
64014         bookkeeping indicates that it's worth it.
64015         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
64016
64017         * lib/c-strstr.c: Complete rewrite for maintainability.
64018
64019         * modules/c-strstr-tests: New file.
64020         * tests/test-c-strstr.c: New file.
64021
64022 2007-02-11  Bruno Haible  <bruno@clisp.org>
64023
64024         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
64025         5.2.1 and earlier, whereby \055 was treated just like the range
64026         delimiter '-'.
64027         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
64028
64029 2007-02-08  Bruno Haible  <bruno@clisp.org>
64030
64031         * modules/regex (Depends-on): Add stdbool.
64032         Reported by Dalibor Topic <robilad@kaffe.org>.
64033
64034 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
64035
64036         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
64037         Prefer returning from main to exiting from it.
64038         Remove unnecessary parens after sizeof.
64039
64040 2007-02-05  Bruno Haible  <bruno@clisp.org>
64041
64042         New module mbssep.
64043         * modules/mbssep: New file.
64044         * lib/mbssep.c: New file.
64045         * lib/string_.h (strsep): Add a conditional link warning.
64046         (mbssep): New declaration.
64047         * m4/mbssep.m4: New file.
64048         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64049         GNULIB_MBSSEP.
64050         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
64051         * MODULES.html.sh (Internationalization functions): Add mbssep.
64052
64053 2007-02-05  Bruno Haible  <bruno@clisp.org>
64054
64055         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
64056         Optimize search in case of 1 delimiter.
64057
64058 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
64059
64060         * lib/acl.h: Include sys/types.h before sys/acl.h.
64061
64062 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
64063
64064         Merge upstream fix for glibc bugzilla #3957:
64065
64066         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
64067
64068         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
64069         bit for RE_HAT_LISTS_NOT_NEWLINE.
64070         (build_charclass_op): Remove bogus comment.
64071
64072 2007-02-05  Simon Josefsson  <simon@josefsson.org>
64073
64074         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
64075
64076 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
64077
64078         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
64079         * lib/memmem.c [!defined _LIBC]: Include config.h.
64080
64081 2007-02-04  Bruno Haible  <bruno@clisp.org>
64082
64083         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
64084         warning message.
64085
64086 2007-02-04  Bruno Haible  <bruno@clisp.org>
64087
64088         New module mbstok_r.
64089         * modules/mbstok_r: New file.
64090         * lib/mbstok_r.c: New file.
64091         * lib/string_.h (strtok_r): Change argument names to match the
64092         comments. Add a conditional link warning.
64093         (mbstok_r): New declaration.
64094         * m4/mbstok_r.m4: New file.
64095         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64096         GNULIB_MBSTOK_R.
64097         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
64098         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
64099
64100 2007-02-04  Bruno Haible  <bruno@clisp.org>
64101
64102         New module mbsspn.
64103         * modules/mbsspn: New file.
64104         * lib/mbsspn.c: New file.
64105         * lib/string_.h (strspn): Add a conditional link warning.
64106         (mbsspn): New declaration.
64107         * m4/mbsspn.m4: New file.
64108         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64109         GNULIB_MBSSPN.
64110         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
64111         * MODULES.html.sh (Internationalization functions): Add mbsspn.
64112
64113 2007-02-04  Bruno Haible  <bruno@clisp.org>
64114
64115         New module mbspbrk.
64116         * modules/mbspbrk: New file.
64117         * lib/mbspbrk.c: New file.
64118         * lib/string_.h (strpbrk): Add a conditional link warning.
64119         (mbspbrk): New declaration.
64120         * m4/mbspbrk.m4: New file.
64121         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64122         GNULIB_MBSPBRK.
64123         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
64124         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
64125
64126 2007-02-04  Bruno Haible  <bruno@clisp.org>
64127
64128         New module mbscspn.
64129         * modules/mbscspn: New file.
64130         * lib/mbscspn.c: New file.
64131         * lib/string_.h (strcspn): Add a conditional link warning.
64132         (mbscspn): New declaration.
64133         * m4/mbscspn.m4: New file.
64134         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64135         GNULIB_MBSCSPN.
64136         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
64137         * MODULES.html.sh (Internationalization functions): Add mbscspn.
64138
64139 2007-02-04  Bruno Haible  <bruno@clisp.org>
64140
64141         New module mbscasestr, reduced goal of strcasestr.
64142         * modules/mbscasestr: New file.
64143         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
64144         (mbscasestr): Renamed from strcasestr.
64145         * lib/strcasestr.c: Don't include mbuiter.h.
64146         (strcasestr): Remove support for multibyte locales.
64147         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
64148         Change the conditional link warning.
64149         (mbscasestr): New declaration.
64150         * m4/mbscasestr.m4: New file.
64151         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
64152         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
64153         REPLACE_STRCASESTR.
64154         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
64155         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
64156         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
64157         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
64158         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
64159         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
64160         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
64161         (Depends-on): Remove mbuiter.
64162         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
64163
64164 2007-02-04  Bruno Haible  <bruno@clisp.org>
64165
64166         Simplify handling of strncasecmp.
64167         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
64168         the conditional link warning.
64169         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
64170         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
64171         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
64172         * modules/strcase (configure.ac): Don't invoke
64173         gl_STRING_MODULE_INDICATOR.
64174         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
64175
64176 2007-02-04  Bruno Haible  <bruno@clisp.org>
64177
64178         New module mbscasecmp, reduced goal of strcasecmp.
64179         * modules/mbscasecmp: New file.
64180         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
64181         (mbscasecmp): Renamed from strcasecmp.
64182         * lib/strcasecmp.c: Don't include mbuiter.h.
64183         (strcasecmp): Remove support for multibyte locales.
64184         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
64185         Change the conditional link warning.
64186         (mbscasecmp): New declaration.
64187         * m4/mbscasecmp.m4: New file.
64188         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
64189         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
64190         REPLACE_STRCASECMP.
64191         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
64192         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64193         GNULIB_MBSCASECMP.
64194         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
64195         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
64196         * modules/strcase (Files): Remove m4/mbrtowc.m4.
64197         (Depends-on): Remove mbuiter.
64198         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
64199
64200 2007-02-04  Bruno Haible  <bruno@clisp.org>
64201
64202         New module mbsstr. Remove module strstr.
64203         * modules/mbsstr: New file.
64204         * modules/strstr: Remove file.
64205         * lib/mbsstr.c: Renamed from lib/strstr.c.
64206         (mbsstr): Renamed from strstr.
64207         * lib/string_.h (strstr): Remove declaration. Change the conditional
64208         link warning.
64209         (mbsstr): New declaration.
64210         * m4/mbsstr.m4: New file.
64211         * m4/strstr.m4: Remove file.
64212         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
64213         REPLACE_STRSTR.
64214         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
64215         Don't initialize GNULIB_STRSTR.
64216         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
64217         substitute GNULIB_STRSTR and REPLACE_STRSTR.
64218         * MODULES.html.sh (Internationalization functions): Add mbsstr.
64219         (Support for systems lacking ANSI C 89): Remove strstr.
64220
64221 2007-02-04  Bruno Haible  <bruno@clisp.org>
64222
64223         New module mbsrchr.
64224         * modules/mbsrchr: New file.
64225         * lib/mbsrchr.c: New file.
64226         * lib/string_.h (strrchr): Add a conditional link warning.
64227         (mbsrchr): New declaration.
64228         * m4/mbsrchr.m4: New file.
64229         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64230         GNULIB_MBSRCHR.
64231         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
64232         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
64233
64234 2007-02-04  Bruno Haible  <bruno@clisp.org>
64235
64236         New module mbschr.
64237         * modules/mbschr: New file.
64238         * lib/mbschr.c: New file.
64239         * lib/string_.h (strchr): Add a conditional link warning.
64240         (mbschr): New declaration.
64241         * m4/mbschr.m4: New file.
64242         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64243         GNULIB_MBSCHR.
64244         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
64245         * MODULES.html.sh (Internationalization functions): Add mbschr.
64246
64247 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
64248
64249         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
64250
64251         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
64252
64253 2007-02-04  Bruno Haible  <bruno@clisp.org>
64254
64255         New module description section 'configure.ac-early'.
64256         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
64257         (func_get_autoconf_early_snippet): New function.
64258         (func_import, func_create_testdir): Use it. Remove special cases for
64259         modules 'extensions' and 'lock'.
64260         * modules/extensions (configure.ac-early): Require
64261         gl_USE_SYSTEM_EXTENSIONS.
64262         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
64263
64264 2007-02-04  Bruno Haible  <bruno@clisp.org>
64265
64266         Make use of gcj-4.3's -fsource and -ftarget option.
64267         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
64268         and if so try the options -fsource and -ftarget.
64269         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
64270         source_version, ftarget_option, target_version arguments.
64271         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
64272         (is_envjavac_oldgcj_14_14_usable): Renamed from
64273         is_envjavac_gcj_14_14_usable.
64274         (is_envjavac_oldgcj_14_13_usable): Renamed from
64275         is_envjavac_gcj_14_13_usable.
64276         (is_gcj_present): Update.
64277         (is_gcj_43, is_gcj43_usable): New functions.
64278         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
64279         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
64280         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
64281         try the options -fsource and -ftarget.
64282
64283 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
64284
64285         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
64286         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
64287         larger value.
64288
64289 2007-02-03  Jim Meyering  <jim@meyering.net>
64290
64291         Give tools a better chance to allocate space for very large buffers.
64292         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
64293
64294         Make pwd and readlink work also when run with an unreadable parent dir
64295         on systems with openat support.
64296         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
64297         provided getcwd function, even when we have openat support.
64298         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
64299
64300 2007-02-02  Bruno Haible  <bruno@clisp.org>
64301
64302         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
64303         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
64304         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
64305         portability problems if one of these functions is only used on specific
64306         platforms.
64307         Reported by Paul Eggert.
64308
64309 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
64310
64311         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
64312         is causing more trouble than it's curing.
64313         * lib/regex_internal.h (__mempcpy): Remove.
64314         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
64315         (and make the code a tad smaller to boot).
64316         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
64317
64318 2007-02-02  Jim Meyering  <jim@meyering.net>
64319
64320         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
64321         section, not in the Makefile.am: one.
64322
64323 2007-02-02  Eric Blake  <ebb9@byu.net>
64324
64325         * lib/strchrnul.c: Always include config.h first.
64326
64327         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
64328         gnulib strstr is not necessary here.
64329
64330 2007-02-02  Simon Josefsson  <simon@josefsson.org>
64331
64332         * m4/socklen.m4: Fix typo.
64333
64334 2007-02-02  Eric Blake  <ebb9@byu.net>
64335
64336         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
64337         * modules/netinet_in (Makefile.am): Likewise.
64338
64339 2007-02-01  Bruno Haible  <bruno@clisp.org>
64340
64341         * lib/string_.h (GL_LINK_WARNING): New macro.
64342         (strcasecmp, strstr, strcasestr): If provided by the system,
64343         conditionally define as a macro that leads to a warning instead of to
64344         an error.
64345         (strncasecmp): Conditionally define as a macro that leads to a warning.
64346
64347 2007-02-01  Karl Berry  <karl@gnu.org>
64348
64349         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
64350
64351 2007-02-01  Bruno Haible  <bruno@clisp.org>
64352
64353         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
64354         renamings.
64355
64356 2007-02-01  Eric Blake  <ebb9@byu.net>
64357
64358         * modules/regex (Depends-on): Revert dependence on mempcpy.
64359         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
64360         module's definition of mempcpy.
64361         Reported by Paul Eggert.
64362
64363 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
64364
64365         * lib/string_.h: If the gnulib module XYZ is not present, undefine
64366         the symbol XYZ before redefining it.  This fixes a problem with
64367         programs that don't use XYZ, when compiled on systems that define
64368         XYZ to something else.
64369
64370 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
64371
64372         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
64373         occurs when "mkdir -m foo" creates a setgid directory that is (1)
64374         writeable to group or other and (2) is intended to have a special
64375         mode bit that is set or cleared.  In such a case, the directory
64376         should be neither group- nor other-writeable until the special
64377         mode bits are right.
64378
64379 2007-01-31  Eric Blake  <ebb9@byu.net>
64380
64381         * modules/mountlist (Depends-on): Add strstr.
64382
64383         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
64384         bug.
64385         * modules/string (Makefile.am): Remove redundant replacement.
64386         * modules/regex (Depends-on): Add mempcpy.
64387
64388 2007-01-31  Bruno Haible  <bruno@clisp.org>
64389
64390         New module description field 'Link'.
64391         * gnulib-tool (func_usage): Document --extract-link-directive.
64392         (sed_extract_prog): Recognize 'Link' directive.
64393         (func_get_link_directive): New function.
64394         (func_import): Show summary of link directives.
64395         Handle --extract-link-directive option.
64396         * modules/acl (Link): New section.
64397         * modules/clock-time (Link): New section.
64398         * modules/euidaccess (Link): New section.
64399         * modules/gettext (Link): New section.
64400         * modules/iconv (Link): New section.
64401         * modules/lock (Link): New section.
64402         * modules/nanosleep (Link): New section.
64403         * modules/readline (Link): New section.
64404
64405 2007-01-27  Bruno Haible  <bruno@clisp.org>
64406
64407         Enforce the use of gnulib modules for unportable <string.h> functions.
64408         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
64409         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
64410         (gl_HEADER_STRING_H_BODY): Require it.
64411         * lib/string_.h: If the gnulib module XYZ is not present, redefine
64412         the symbol XYZ to one that gives a link error.
64413         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
64414         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
64415         * modules/mempcpy (configure.ac): Likewise.
64416         * modules/memrchr (configure.ac): Likewise.
64417         * modules/stpcpy (configure.ac): Likewise.
64418         * modules/stpncpy (configure.ac): Likewise.
64419         * modules/strcase (configure.ac): Likewise.
64420         * modules/strcasestr (configure.ac): Likewise.
64421         * modules/strchrnul (configure.ac): Likewise.
64422         * modules/strdup (configure.ac): Likewise.
64423         * modules/strndup (configure.ac): Likewise.
64424         * modules/strnlen (configure.ac): Likewise.
64425         * modules/strpbrk (configure.ac): Likewise.
64426         * modules/strsep (configure.ac): Likewise.
64427         * modules/strstr (configure.ac): Likewise.
64428         * modules/strtok_r (configure.ac): Likewise.
64429
64430 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
64431
64432         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
64433
64434 2007-01-30  Jim Meyering  <jim@meyering.net>
64435
64436         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
64437
64438 2007-01-29  Bruno Haible  <bruno@clisp.org>
64439
64440         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
64441         * lib/execute.c: Likewise.
64442         * lib/pipe.c: Likewise.
64443         * lib/printf-args.h: Likewise.
64444         * lib/printf-args.c: Likewise.
64445         * lib/printf-parse.c: Likewise.
64446         * lib/vasnprintf.c: Likewise.
64447
64448 2007-01-29  Eric Blake  <ebb9@byu.net>
64449
64450         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
64451         declaration.
64452
64453 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
64454
64455         * lib/strptime.h (strptime): Use 'restrict' for args where
64456         POSIX requires this.
64457         * lib/strptime.c (strptime): Likewise.
64458         Change license notice from LGPL to GPL, since gnulib-tool will
64459         change this as needed.
64460         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
64461         defined.
64462         Include "strptime.h" first, to check interface.
64463         Do not #undef _LIBC and _NL_CURRENT.
64464         Do not include <stdlib.h>; no longer needed.
64465         Include "time_r.h" and declare ptime_locale_status
64466         only if _LIBC is not defined.
64467         (__P): Remove unused macro.
64468         (match_string): Bring back glibc version, but use it only if _LIBC
64469         is defined.
64470         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
64471         Remove unnecessary assertion and abort() call.
64472         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
64473         * m4/strptime.m4: Fix serial number comment.
64474         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
64475         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
64476         (Depends-on): Add time_r.
64477
64478 2007-01-29  Bruno Haible  <bruno@clisp.org>
64479
64480         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64481         strptime.
64482         * modules/strptime (Depends-on): Add stdbool.
64483         * lib/strptime.h: Include <time.h> always. Add comments.
64484
64485 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64486
64487         * modules/strptime: New file.
64488         * lib/strptime.h: New file.
64489         * lib/strptime.c: New file.
64490         * m4/strptime.m4: New file.
64491
64492 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
64493
64494         * MODULES.html.sh: New module mpsort.
64495         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
64496
64497         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
64498         a circularity problem with HP-UX ia64 reported by Bob Proulx in
64499         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
64500         All uses changed.
64501         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
64502         All uses changed.
64503         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
64504         to _Restrict_.
64505         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
64506         the parameter matches the prototype.
64507
64508 2007-01-28  Jim Meyering  <jim@meyering.net>
64509
64510         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
64511         sys/time.h here, reverting that part of the previous patch:
64512         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
64513
64514 2007-01-28  Bruno Haible  <bruno@clisp.org>
64515
64516         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
64517         value of $(SYS_TIME_H).
64518         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
64519         remove it conditionally, too. [added by Jim Meyering]
64520         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
64521         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
64522         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
64523         GETTIMEOFDAY_REPLACEMENT to 1.
64524
64525 2007-01-28  Bruno Haible  <bruno@clisp.org>
64526
64527         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
64528         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
64529         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
64530         Set UNISTD_H instead of UNISTD_H2.
64531         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
64532
64533 2007-01-28  Bruno Haible  <bruno@clisp.org>
64534
64535         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
64536         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
64537
64538 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64539
64540         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
64541         (func_create_testdir): Ensure C locale for `grep' and `tr'
64542         character ranges.
64543         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
64544         ACLOCAL_AMFLAGS parsing state machine.
64545
64546 2007-01-27  Bruno Haible  <bruno@clisp.org>
64547
64548         * modules/unistr/base: Update.
64549
64550 2007-01-27  Bruno Haible  <bruno@clisp.org>
64551
64552         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
64553         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
64554         * modules/unistr/u32-mbtouc-unsafe: Renamed from
64555         modules/unistr/u32-mbtouc.
64556         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
64557         * lib/unistr.h: Update.
64558         * lib/linebreak.c: Update.
64559         * modules/unistr/u32-mbtouc: Renamed from
64560         modules/unistr/u32-mbtouc-safe.
64561         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
64562         * lib/unistr.h: Update.
64563         * lib/unistr/u32-to-u8.c: Update.
64564         * lib/unistr/u32-to-u16.c: Update.
64565
64566 2007-01-27  Bruno Haible  <bruno@clisp.org>
64567
64568         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
64569         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
64570         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
64571         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
64572         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
64573         * modules/unistr/u16-mbtouc-unsafe: Renamed from
64574         modules/unistr/u16-mbtouc.
64575         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
64576         * lib/unistr.h: Update.
64577         * lib/linebreak.c: Update.
64578         * modules/linebreak: Update.
64579         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
64580         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
64581         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
64582         * modules/unistr/u16-mbtouc: Renamed from
64583         modules/unistr/u16-mbtouc-safe.
64584         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
64585         * lib/unistr.h: Update.
64586         * lib/unistr/u16-to-u8.c: Update.
64587         * modules/unistr/u16-to-u8: Update.
64588         * lib/unistr/u16-to-u32.c: Update.
64589         * modules/unistr/u16-to-u32: Update.
64590
64591 2007-01-27  Bruno Haible  <bruno@clisp.org>
64592
64593         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
64594         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
64595         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
64596         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
64597         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
64598         * modules/unistr/u8-mbtouc-unsafe: Renamed from
64599         modules/unistr/u8-mbtouc.
64600         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
64601         * lib/unistr.h: Update.
64602         * lib/striconveh.c: Update.
64603         * modules/striconveh: Update.
64604         * lib/linebreak.c: Update.
64605         * modules/linebreak: Update.
64606         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
64607         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
64608         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
64609         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
64610         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
64611         * lib/unistr.h: Update.
64612         * lib/striconveh.c: Update.
64613         * modules/striconveh: Update.
64614         * lib/unistr/u8-to-u16.c: Update.
64615         * modules/unistr/u8-to-u16: Update.
64616         * lib/unistr/u8-to-u32.c: Update.
64617         * modules/unistr/u8-to-u32: Update.
64618
64619 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64620
64621         Sync from Libtool.
64622         * lib/argz.c: Do not include strings.h nor memory.h, include
64623         string.h unconditionally.  Patch by Simon Josefsson.
64624
64625 2007-01-27  Bruno Haible  <bruno@clisp.org>
64626
64627         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
64628         from gl_HEADER_STRING_H_BODY.
64629         (gl_HEADER_STRING_H_BODY): Require it.
64630         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
64631         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
64632         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
64633         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
64634         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64635         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
64636         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
64637         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
64638         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
64639         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
64640         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
64641         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
64642         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
64643         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
64644         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64645
64646 2007-01-27  Bruno Haible  <bruno@clisp.org>
64647
64648         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
64649         check_PROGRAMS into noinst_PROGRAMS.
64650         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
64651         check_PROGRAMS in this case.
64652         (func_import): Set for_test to false.
64653         (func_create_testdir): Set for_test to true.
64654
64655 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
64656             Bruno Haible  <bruno@clisp.org>
64657
64658         * modules/strcasestr (Files): Remove lib/strcasestr.h.
64659         (Depends-on): Add string.
64660         (Includes): Use <string.h> instead of strcasestr.h.
64661         * modules/string (Makefile.am): Also substitute the value of
64662         REPLACE_STRCASESTR.
64663         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
64664         assume strcasestr is declared in <string.h> not <strings.h>. Also
64665         set REPLACE_STRCASESTR.
64666         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
64667         REPLACE_STRCASESTR.
64668         * lib/strcasestr.h: Remove file.
64669         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
64670         * lib/string_.h (strcasestr): New declaration.
64671
64672 2007-01-27  Bruno Haible  <bruno@clisp.org>
64673
64674         * lib/string_.h: Use 'extern'.
64675
64676 2007-01-27  Jim Meyering  <jim@meyering.net>
64677
64678         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
64679         of set-but-not-used local, "q".
64680
64681         * lib/mempcpy.c: Include <config.h> before <string.h>.
64682         This fixes a compilation error on HP-UX, due to the system's
64683         "restrict"-using mempcpy prototype.
64684
64685 2007-01-26  Bruno Haible  <bruno@clisp.org>
64686
64687         Small optimization.
64688         * lib/javacomp.c: Include c-strstr.h.
64689          (is_envjavac_gcj): Use c_strstr instead of strstr.
64690         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
64691
64692 2007-01-26  Bruno Haible  <bruno@clisp.org>
64693
64694         * MODULES.html.sh (Unicode string functions): Add the new modules.
64695
64696         * modules/uniconv/u32-strconv-to-locale: New file.
64697         * lib/uniconv/u32-strconv-to-locale.c: New file.
64698
64699         * modules/uniconv/u16-strconv-to-locale: New file.
64700         * lib/uniconv/u16-strconv-to-locale.c: New file.
64701
64702         * modules/uniconv/u8-strconv-to-locale: New file.
64703         * lib/uniconv/u8-strconv-to-locale.c: New file.
64704
64705         * modules/uniconv/u32-strconv-from-locale: New file.
64706         * lib/uniconv/u32-strconv-from-locale.c: New file.
64707
64708         * modules/uniconv/u16-strconv-from-locale: New file.
64709         * lib/uniconv/u16-strconv-from-locale.c: New file.
64710
64711         * modules/uniconv/u8-strconv-from-locale: New file.
64712         * lib/uniconv/u8-strconv-from-locale.c: New file.
64713
64714         * modules/uniconv/u32-strconv-to-enc: New file.
64715         * lib/uniconv/u32-strconv-to-enc.c: New file.
64716         * modules/uniconv/u32-strconv-to-enc-tests: New file.
64717         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
64718
64719         * modules/uniconv/u16-strconv-to-enc: New file.
64720         * lib/uniconv/u16-strconv-to-enc.c: New file.
64721         * lib/uniconv/u-strconv-to-enc.h: New file.
64722         * modules/uniconv/u16-strconv-to-enc-tests: New file.
64723         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
64724
64725         * modules/uniconv/u8-strconv-to-enc: New file.
64726         * lib/uniconv/u8-strconv-to-enc.c: New file.
64727         * modules/uniconv/u8-strconv-to-enc-tests: New file.
64728         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
64729
64730         * modules/uniconv/u32-strconv-from-enc: New file.
64731         * lib/uniconv/u32-strconv-from-enc.c: New file.
64732         * modules/uniconv/u32-strconv-from-enc-tests: New file.
64733         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
64734
64735         * modules/uniconv/u16-strconv-from-enc: New file.
64736         * lib/uniconv/u16-strconv-from-enc.c: New file.
64737         * modules/uniconv/u16-strconv-from-enc-tests: New file.
64738         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
64739
64740         * modules/uniconv/u8-strconv-from-enc: New file.
64741         * lib/uniconv/u8-strconv-from-enc.c: New file.
64742         * lib/uniconv/u-strconv-from-enc.h: New file.
64743         * modules/uniconv/u8-strconv-from-enc-tests: New file.
64744         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
64745
64746         * modules/uniconv/u32-conv-from-enc: New file.
64747         * lib/uniconv/u32-conv-from-enc.c: New file.
64748         * modules/uniconv/u32-conv-from-enc-tests: New file.
64749         * tests/uniconv/test-u32-conv-from-enc.c: New file.
64750
64751         * modules/uniconv/u16-conv-from-enc: New file.
64752         * lib/uniconv/u16-conv-from-enc.c: New file.
64753         * lib/uniconv/u-conv-from-enc.h: New file.
64754         * modules/uniconv/u16-conv-from-enc-tests: New file.
64755         * tests/uniconv/test-u16-conv-from-enc.c: New file.
64756
64757         * modules/uniconv/u8-conv-from-enc: New file.
64758         * lib/uniconv/u8-conv-from-enc.c: New file.
64759         * modules/uniconv/u8-conv-from-enc-tests: New file.
64760         * tests/uniconv/test-u8-conv-from-enc.c: New file.
64761
64762         * modules/uniconv/base: New file.
64763         * lib/uniconv.h: New file.
64764
64765 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
64766
64767         * doc/gnulib-tool.texi (Initial import): Update to match current
64768         behavior with strdup module.
64769         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
64770         * lib/memmem.h: Remove; all uses removed.  This is now done
64771         by <string.h>.
64772         * lib/mempcpy.h: Likewise.
64773         * lib/memrchr.h: Likewise.
64774         * lib/stpcpy.h: Likewise.
64775         * lib/stpncpy.h: Likewise.
64776         * lib/strcase.h: Likewise.
64777         * lib/strchrnul.h: Likewise.
64778         * lib/strdup.h: Likewise.
64779         * lib/strndup.h: Likewise.
64780         * lib/strnlen.h: Likewise.
64781         * lib/strpbrk.h: Likewise.
64782         * lib/strsep.h: Likewise.
64783         * lib/strstr.h: Likewise.
64784         * lib/strtok_r.h: Likewise.
64785         * lib/string_.h: New file.
64786         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
64787         Rely on <string.h> instead.
64788         * lib/canon-host.c: Likewise.
64789         * lib/chdir-long.c: Likewise.
64790         * lib/concatpath.c: Likewise.
64791         * lib/exclude.c: Likewise.
64792         * lib/fchdir.c: Likewise.
64793         * lib/getaddrinfo.c: Likewise.
64794         * lib/getcwd.c: Likewise.
64795         * lib/getsubopt.c: Likewise.
64796         * lib/glob.c: Likewise.
64797         * lib/hard-locale.c: Likewise.
64798         * lib/iconvme.c: Likewise.
64799         * lib/javacomp.c: Likewise.
64800         * lib/mempcpy.c: Likewise.
64801         * lib/memrchr.c: Likewise.
64802         * lib/regex_internal.h: Likewise.
64803         * lib/stpncpy.c: Likewise.
64804         * lib/strcasecmp.c: Likewise.
64805         * lib/strchrnul.c: Likewise.
64806         * lib/strdup.c: Likewise.
64807         * lib/striconv.c: Likewise.
64808         * lib/striconveh.c: Likewise.
64809         * lib/striconveha.c: Likewise.
64810         * lib/strncasecmp.c: Likewise.
64811         * lib/strndup.c: Likewise.
64812         * lib/strnlen.c: Likewise.
64813         * lib/strsep.c: Likewise.
64814         * lib/strstr.c: Likewise.
64815         * lib/strtok_r.c: Likewise.
64816         * lib/userspec.c: Likewise.
64817         * lib/w32spawn.h: Likewise.
64818         * lib/xstrndup.c: Likewise.
64819         * lib/mountlist.c (strstr): Remove decl.
64820         * m4/string_h.m4: New file.
64821         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
64822         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
64823         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
64824         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
64825         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
64826         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
64827         Set REPLACE_STRCASECMP if necessary.
64828         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
64829         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
64830         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
64831         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
64832         HAVE_DECL_STRDUP if necessary.
64833         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
64834         since gl_FUNC_STRNDUP does that now.
64835         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
64836         Check for decl here...
64837         (gl_PREREQ_STRNLEN): ... not here.
64838         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
64839         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
64840         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
64841         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
64842         necessary.
64843         * modules/string: New file.
64844         * modules/memmem (Files): Remove special-purpose include file.
64845         (Depends-on): Add string.
64846         (Include): Include <string.h>, not the removed file.
64847         * modules/mempcpy: Likewise.
64848         * modules/memrchr: Likewise.
64849         * modules/stpcpy: Likewise.
64850         * modules/stpncpy: Likewise.
64851         * modules/strcase: Likewise.
64852         * modules/strchrnul: Likewise.
64853         * modules/strdup: Likewise.
64854         * modules/strndup: Likewise.
64855         * modules/strnlen: Likewise.
64856         * modules/strpbrk: Likewise.
64857         * modules/strsep: Likewise.
64858         * modules/strstr: Likewise.
64859         * modules/strtok_r: Likewise.
64860         * tests/test-dirname.c: Don't include "strdup.h", since
64861         <string.h> now suffices.
64862         * tests/test-memmem.c: Don't include "memmem.h", since
64863         <string.h> now suffices.
64864
64865 2007-01-25  Bruno Haible  <bruno@clisp.org>
64866
64867         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
64868         *resultp is 0.
64869
64870         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
64871         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
64872         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
64873         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
64874
64875         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
64876         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
64877         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
64878         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
64879         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
64880         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
64881
64882 2007-01-24  Bruno Haible  <bruno@clisp.org>
64883
64884         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
64885         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
64886         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
64887         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
64888         gl_FUNC_FTS_CORE.
64889         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
64890         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
64891         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64892         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
64893         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
64894         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
64895         gl_FUNC_FCHOWNAT.
64896         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
64897         gl_FUNC_STRFTIME.
64898         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
64899         Reported by Ralf Wildenhues.
64900
64901 2007-01-24  Bruno Haible  <bruno@clisp.org>
64902
64903         Drop AC_REQUIRE calls that are redundant with the module dependencies.
64904         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
64905         gl_GETADDRINFO.
64906         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
64907         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
64908         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
64909
64910 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
64911
64912         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
64913         Don't use 'exit'; just return from 'main'.
64914         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
64915
64916         * lib/fnmatch_.h: Readjust white space and comments to match
64917         glibc, to avoid spurious diffs.
64918
64919 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64920
64921         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
64922         2004-12-01 change by Jakub Jelinek, since this code won't compile
64923         if !LIBC.  Problem reported by Bob Proulx.
64924
64925 2007-01-23  Bruno Haible  <bruno@clisp.org>
64926
64927         * lib/striconveh.c: Include c-strcaseeq.h.
64928         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
64929         * modules/striconveh (Depends-on): Add c-strcaseeq.
64930
64931 2007-01-23  Bruno Haible  <bruno@clisp.org>
64932
64933         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
64934
64935         * modules/c-strcaseeq: New file.
64936         * lib/c-strcaseeq.h: New file.
64937
64938         * modules/streq: New file.
64939         * lib/streq.h: New file.
64940
64941 2007-01-23  Bruno Haible  <bruno@clisp.org>
64942
64943         * modules/striconveha-tests: New file.
64944         * tests/test-striconveha.c: New file.
64945
64946         * lib/striconveha.h: Include <stdbool.h>.
64947         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
64948         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
64949         (mem_iconveha_notranslit): Renamed from mem_iconveha.
64950         (mem_iconveha): New function.
64951         (str_iconveha_notranslit): Renamed from str_iconveha.
64952         (str_iconveha): New function.
64953         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
64954         c-strcase.
64955
64956 2007-01-23  Bruno Haible  <bruno@clisp.org>
64957
64958         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
64959         encodings without forgiving before trying any encoding with handler.
64960         (str_iconveha): Try all encodings without forgiving before trying any
64961         encoding with handler.
64962
64963 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64964
64965         Import the following changes from libc.
64966
64967         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
64968
64969         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
64970
64971         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
64972
64973         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
64974         normal_bracket label.
64975
64976         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
64977
64978         [BZ #361]
64979         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
64980         to normal_bracket after fetching the next character.
64981
64982 2007-01-22  Bruno Haible  <bruno@clisp.org>
64983
64984         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
64985         argument.
64986         * lib/striconveh.c (iconv_carefully_1): New function.
64987         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
64988         argument.
64989         (str_cd_iconveh): Update.
64990         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
64991         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
64992         * tests/test-striconveh.c (MAGIC): New macro.
64993         (new_offsets): New function.
64994         (main): Test call with and without offsets.
64995
64996 2007-01-22  Bruno Haible  <bruno@clisp.org>
64997
64998         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
64999         * modules/sys_select (Makefile.am): Likewise.
65000         * modules/sys_socket (Makefile.am): Likewise.
65001         * modules/sys_time (Makefile.am): Likewise.
65002
65003 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
65004
65005         * modules/gettimeofday (License): Change from GPL to LGPL, since
65006         gettimeofday is a library function.
65007
65008 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65009
65010         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
65011
65012 2007-01-21  Bruno Haible  <bruno@clisp.org>
65013
65014         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
65015
65016 2007-01-21  Bruno Haible  <bruno@clisp.org>
65017
65018         * modules/striconveha: New file.
65019         * lib/striconveha.h: New file.
65020         * lib/striconveha.c: New file.
65021         * MODULES.html.sh (Internationalization functions): Add striconveha.
65022         * lib/striconv.c (str_iconv): Optimize the case of an empty input
65023         string.
65024         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
65025
65026 2007-01-21  Bruno Haible  <bruno@clisp.org>
65027
65028         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
65029         * lib/striconveh.c (str_iconveh): Likewise.
65030
65031 2007-01-21  Bruno Haible  <bruno@clisp.org>
65032
65033         * lib/striconveh.h (mem_iconveh): New declaration.
65034         * lib/striconveh.c (mem_iconveh): New function.
65035         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
65036
65037 2007-01-21  Bruno Haible  <bruno@clisp.org>
65038
65039         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
65040
65041         * lib/striconveh.h (mem_cd_iconveh): Change specification.
65042         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
65043         original result buffer.
65044         (str_cd_iconveh): Update.
65045         * tests/test-striconveh.c (main): Update.
65046
65047         * lib/striconv.h (mem_cd_iconv): Change specification.
65048         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
65049         result buffer.
65050         (str_cd_iconv): Update.
65051         * tests/test-striconv.c (main): Update.
65052
65053 2007-01-21  Bruno Haible  <bruno@clisp.org>
65054
65055         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
65056
65057 2007-01-20  Jim Meyering  <jim@meyering.net>
65058
65059         * lib/userspec.c (parse_with_separator): If a user or group string
65060         starts with "+", skip the corresponding name-to-ID look-up, since
65061         such a look-up must fail: user and group names may not include "+".
65062
65063 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
65064
65065         * lib/poll.c: Include sys/time.h and time.h unconditionally,
65066         since we now assume the sys_time module.
65067         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
65068         check for sys/time.h; no longer needed.
65069         * modules/poll (Depends-on): Depend on sys_time.
65070
65071 2007-01-18  Bruno Haible  <bruno@clisp.org>
65072
65073         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
65074         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
65075
65076         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
65077         gettimeofday.
65078
65079         * tests/test-gettimeofday.c: Include <time.h>.
65080         (dummy): Remove variable.
65081
65082         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
65083         gl_HEADER_SYS_TIME_H.
65084         (gl_HEADER_SYS_TIME_H): New macro.
65085
65086         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
65087         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65088         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
65089         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
65090         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65091         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
65092         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
65093         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65094         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
65095         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
65096         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65097
65098         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
65099         last change; it caused a compilation error when cross-compiling to
65100         Cygwin.
65101
65102 2007-01-18  Jim Meyering  <jim@meyering.net>
65103
65104         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
65105         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
65106         than the race-prone "test -d sys || mkdir sys".
65107         (configure.ac): Use AC_PROG_MKDIR_P.
65108         * modules/sys_select: Likewise.
65109         * modules/sys_socket: Likewise.
65110         * modules/sys_time: Likewise.
65111
65112 2007-01-18  Eric Blake  <ebb9@byu.net>
65113
65114         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
65115         replace gettimeofday.
65116         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
65117         name, to avoid infinite recursion.
65118
65119 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
65120
65121         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
65122         module sys_time.
65123         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
65124         assume timespec.h defines struct timeval.
65125         * lib/settime.c: Likewise.
65126         * lib/utimens.c: Likewise.
65127         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
65128         since we now assume the gettimeofday module.
65129         * lib/tempname.c (__gen_tempname): Likewise.
65130         * lib/gettimeofday.h: Remove.
65131         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
65132         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
65133         Include <time.h>, for 'time()'.
65134         (localtime_buffer_addr): Also use this workaround if
65135         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
65136         to simplify the uses.  All uses changed.
65137         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
65138         that #undef is inside {}, and 'const' follows type name consistently.
65139         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
65140         (gettimeofday): Do not use the maximum possible value for
65141         tv->tv_usec, since that might break usages other than ls.c.
65142         Instead, we'll leave ls.c alone.  This undoes today's patch
65143         by Bruno.  Add a compile-time warning for 1s-clock resolution;
65144         we've never observed the problem but might as well keep the
65145         canary.
65146         * lib/nanosleep.c: Include timespec.h first, for interface check.
65147         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
65148         now assume the sys_time module.
65149         * lib/tempname.c: Likewise.
65150         * lib/timespec.h: Likewise.
65151         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
65152         needed.
65153         * lib/strftime.c: Likewise.
65154         * lib/timespec.h: Likewise.
65155         * lib/posixtm.c: Include posixtm.h first, for interface check.
65156         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
65157         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
65158         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
65159         * lib/sys_time_.h: New file.
65160         * lib/timespec.h (struct timespec): Use long int, not long.
65161         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
65162         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
65163         Remove obsolescent call to AC_HEADER_TIME.
65164         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
65165         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
65166         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
65167         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
65168         Likewise.
65169         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
65170         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
65171         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
65172         into the sys_time module.  Check for gettimeofday just once.
65173         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
65174         for gettimeofday signature to just check the signature.  Merely
65175         compile it, since linking doesn't test signature.  Improve test for
65176         whether gettimeofday.o is actually needed.
65177         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
65178         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
65179         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
65180         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65181         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
65182         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
65183         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
65184         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
65185         than worrying about sys/time.h.
65186         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
65187         Don't bother worrying about TIME_WITH_SYS_TIME.
65188         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
65189         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
65190         * m4/sys_time_h.m4: New file.
65191         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
65192         Don't include sys/time.h.  Return from main rather than exiting.
65193         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
65194         all uses changed.
65195         * modules/gethrxtime (Depends-on): Add sys_time.
65196         * modules/gettime (Depends-on): Likewise.
65197         * modules/gettimeofday (Depends-on): Likewise.
65198         * modules/nanosleep (Depends-on): Likewise.
65199         * modules/settime (Depends-on): Likewise.
65200         * modules/tempname (Depends-on): Likewise.
65201         * modules/utimens (Depends-on): Likewise.
65202         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
65203         (Include): Change back to <sys/time.h>.
65204         (Maintainer): Add self.
65205         * modules/sys_time: New file.
65206         * modules/tempname (Depends-on): Add gettimeofday.
65207         * tests/test-gettimeofday.c: Include <sys/time.h>
65208         rather than gettimeofday.h.
65209
65210 2007-01-17  Bruno Haible  <bruno@clisp.org>
65211
65212         * gnulib-tool (func_get_license): Revert last patch. Instead, let
65213         the license default to GPL.
65214         (func_create_testdir): Don't complain if a module is LGPL and its
65215         tests module depends on GPLed modules.
65216
65217 2007-01-17  Bruno Haible  <bruno@clisp.org>
65218
65219         * lib/gettimeofday.c (gettimeofday): Add code for the case
65220         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
65221         maximum possible value for tv->tv_usec, rather than the minimum one.
65222
65223 2005-10-08  Martin Lambers  <marlam@marlam.de>
65224 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
65225 2007-01-16  Bruno Haible  <bruno@clisp.org>
65226
65227         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
65228         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
65229         gl_FUNC_GETTIMEOFDAY.
65230         (Include): Add gettimeofday.h.
65231         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
65232         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
65233         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
65234         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
65235         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
65236         * lib/gettimeofday.h: New file.
65237         * lib/gettimeofday.c: Include <sys/timeb.h>.
65238         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
65239         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65240         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
65241         fall back on time().
65242
65243         * tests/test-gettimeofday.c: New file.
65244         * modules/gettimeofday-tests: New file.
65245
65246 2007-01-16  Eric Blake  <ebb9@byu.net>
65247
65248         * modules/fnmatch (Depends-on): Depend on wchar.
65249         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
65250         * m4/fnmatch.m4: Likewise.
65251         * modules/mbchar (Makefile.am): Assume <wchar.h>.
65252         * m4/mbchar.m4: Likewise.
65253         * modules/mbswidth (Depends-on): Depend on wchar.
65254         * lib/mbswidth.c: Assume <wchar.h>.
65255         * m4/mbswidth.m4: Likewise.
65256         * modules/quotearg (Depends-on): Depend on wchar.
65257         * lib/quotearg.c: Assume <wchar.h>.
65258         * m4/quotearg.m4: Likewise.
65259         * modules/regex (Depends-on): Depend on wchar.
65260         * lib/regex_internal.h: Assume <wchar.h>.
65261         * m4/regex.m4: Likewise.
65262         * modules/stdint (Depends-on): Depend on wchar.
65263         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
65264         * m4/stdint.m4: Likewise.
65265         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
65266         * modules/strftime (Depends-on): Depend on wchar.
65267         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
65268         * modules/strtol (Depends-on): Depend on wchar.
65269         * lib/strtol.c: Assume <wchar.h>.
65270         * modules/wcwidth (Depends-on): Depend on wchar.
65271         * lib/wcwidth.h: Assume <wchar.h>.
65272         * m4/wcwidth.m4: Likewise.
65273
65274 2007-01-16  Bruno Haible  <bruno@clisp.org>
65275
65276         * modules/csharpexec-script: New, created from...
65277         * modules/csharpexec: ... this.
65278
65279 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
65280
65281         * modules/javaexec-script: New, created from...
65282         * modules/javaexec: ... this.
65283
65284 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65285
65286         * modules/poll (Dependencies): Add sys_select.
65287
65288 2007-01-15  Jim Meyering  <jim@meyering.net>
65289
65290         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
65291         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
65292         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
65293         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
65294
65295 2007-01-15  Bruno Haible  <bruno@clisp.org>
65296
65297         * modules/striconveh: New file.
65298         * lib/striconveh.h: New file.
65299         * lib/striconveh.c: New file.
65300         * MODULES.html.sh (Internationalization functions): Add striconveh.
65301
65302         * modules/striconveh-tests: New file.
65303         * tests/test-striconveh.c: New file.
65304
65305 2007-01-15  Bruno Haible  <bruno@clisp.org>
65306
65307         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
65308         not from GNU libiconv or GNU libc.
65309
65310 2007-01-15  Bruno Haible  <bruno@clisp.org>
65311
65312         * doc/gnulib-intro.texi (Copyright): Explain the different license
65313         terms for module descriptions, autoconf macros, tests, documentation.
65314
65315 2007-01-14  Bruno Haible  <bruno@clisp.org>
65316
65317         * modules/striconv-tests: New file.
65318         * tests/test-striconv.c: New file.
65319
65320 2007-01-14  Bruno Haible  <bruno@clisp.org>
65321
65322         * modules/iconv-tests: New file.
65323         * tests/test-iconv.c: New file.
65324
65325 2007-01-14  Bruno Haible  <bruno@clisp.org>
65326
65327         * gnulib-tool (func_get_license): For test modules, use the license of
65328         the main module.
65329
65330 2007-01-14  Bruno Haible  <bruno@clisp.org>
65331
65332         * modules/iconv (Include): Clarify that <iconv.h> can only be included
65333         if iconv is found to exist.
65334
65335 2007-01-14  Bruno Haible  <bruno@clisp.org>
65336
65337         * modules/c-ctype-tests: New file.
65338         * tests/test-c-ctype.c: New file.
65339
65340 2007-01-14  Bruno Haible  <bruno@clisp.org>
65341
65342         * modules/binary-io-tests: New file.
65343         * tests/test-binary-io.sh: New file.
65344         * tests/test-binary-io.c: New file.
65345
65346 2007-01-14  Bruno Haible  <bruno@clisp.org>
65347
65348         * modules/array-oset-tests: New file.
65349         * tests/test-array_oset.c: New file.
65350
65351 2007-01-14  Bruno Haible  <bruno@clisp.org>
65352
65353         * modules/array-list-tests: New file.
65354         * tests/test-array_list.c: New file.
65355
65356 2007-01-14  Bruno Haible  <bruno@clisp.org>
65357
65358         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
65359         and make.
65360         Reported by Simon Josefsson in
65361         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
65362
65363 2007-01-14  Bruno Haible  <bruno@clisp.org>
65364
65365         * modules/allocsa-tests: New file.
65366         * tests/test-allocsa.c: New file.
65367
65368 2007-01-14  Bruno Haible  <bruno@clisp.org>
65369
65370         * modules/fchdir (Depends-on): Add absolute-header.
65371         * modules/unistd (Depends-on): Likewise.
65372
65373 2006-12-30  Bruno Haible  <bruno@clisp.org>
65374
65375         * modules/fchdir: New file.
65376         * modules/unistd (Files): Add lib/unistd_.h.
65377         (Makefile.am): Generate unistd.h from unistd_.h.
65378         * lib/fchdir.c: New file.
65379         * lib/dirent_.h: New file.
65380         * lib/unistd_.h: New file.
65381         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
65382         * m4/fchdir.m4: New file.
65383         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
65384         (gl_HEADER_UNISTD): Invoke it.
65385         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
65386         function.
65387         * lib/backupfile.c (opendir, closedir): Undefine.
65388         * lib/chown.c (open, close): Undefine.
65389         * lib/clean-temp.c (open, close): Undefine.
65390         * lib/copy-file.c (open, close): Undefine.
65391         * lib/execute.c (open, close): Undefine.
65392         * lib/fsusage.c (open, close): Undefine.
65393         * lib/gc-gnulib.c (open, close): Undefine.
65394         * lib/getcwd.c (opendir, closedir): Undefine.
65395         * lib/glob.c (opendir, closedir): Undefine.
65396         * lib/javacomp.c (open, close): Undefine.
65397         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
65398         * lib/openat-proc.c (open, close): Undefine.
65399         * lib/pagealign_alloc.c (open, close): Undefine.
65400         * lib/pipe.c (open, close): Undefine.
65401         * lib/progreloc.c (open, close): Undefine.
65402         * lib/savedir.c (opendir, closedir): Undefine.
65403         * lib/utime.c (open, close): Undefine.
65404         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
65405
65406 2007-01-10  Bruno Haible  <bruno@clisp.org>
65407
65408         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
65409
65410 2007-01-12  Eric Blake  <ebb9@byu.net>
65411
65412         Provide a robust <wchar.h>.  Further simplifications are now
65413         possible in other modules, but not included here.
65414         * modules/wchar: New module.
65415         * m4/wchar.m4: New file.
65416         * lib/wchar_.h: Likewise.
65417         * modules/mbchar (Depends-on): Depend on wchar, as the first use
65418         of the new module.
65419         * MODULES.html.sh (Extended multibyte and wide character utilities):
65420         New section.
65421
65422 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
65423
65424         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
65425         to a reasonable default for memory allocation.
65426         (xreadlink): Don't allocate a huge buffer, to work around a buggy
65427         file system that reports garbage st_size values for symlinks.
65428         Problem reported by Liyang Hu.
65429
65430 2007-01-11  Simon Josefsson  <simon@josefsson.org>
65431
65432         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
65433         Emacs .#* auto-save files).
65434
65435 2007-01-11  Bruno Haible  <bruno@clisp.org>
65436
65437         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
65438         directory.
65439
65440 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65441
65442         Use @...@ consistently in lib/wctype_.h.
65443         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
65444         on it being set to 1 or 0.
65445         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
65446         go back to AC_SUBSTing it.
65447         * modules/wctype (Makefile.am): Undo previous change.
65448
65449 2007-01-10  Eric Blake  <ebb9@byu.net>
65450
65451         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
65452         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
65453         * modules/wctype (Makefile.am): Likewise.
65454         Reported by Chris McGuire.
65455
65456 2007-01-10  Jim Meyering  <jim@meyering.net>
65457
65458         fts.c: a small readability/maintainability improvement
65459         * lib/fts.c (fts_read): Make this code slightly more readable and
65460         maintainable by hoisting the "sp->fts_cur = p" assignments to
65461         immediately follow the statements that set P.  Derived from
65462         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
65463
65464 2007-01-10  Eric Blake  <ebb9@byu.net>
65465
65466         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
65467         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
65468         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65469         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
65470         Reported by Chris McGuire.
65471
65472 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65473
65474         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
65475         in sed script.
65476
65477 2007-01-09  Bruno Haible  <bruno@clisp.org>
65478
65479         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
65480         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
65481         variables.
65482         (func_module): Use them.
65483
65484 2007-01-09  Bruno Haible  <bruno@clisp.org>
65485
65486         * modules/unistr/base: New file.
65487         * lib/unistr.h: New file.
65488
65489         * modules/unistr/u8-to-u16: New file.
65490         * lib/unistr/u8-to-u16.c: New file.
65491
65492         * modules/unistr/u8-to-u32: New file.
65493         * lib/unistr/u8-to-u32.c: New file.
65494
65495         * modules/unistr/u16-to-u8: New file.
65496         * lib/unistr/u16-to-u8.c: New file.
65497
65498         * modules/unistr/u16-to-u32: New file.
65499         * lib/unistr/u16-to-u32.c: New file.
65500
65501         * modules/unistr/u32-to-u8: New file.
65502         * lib/unistr/u32-to-u8.c: New file.
65503
65504         * modules/unistr/u32-to-u16: New file.
65505         * lib/unistr/u32-to-u16.c: New file.
65506
65507         * modules/unistr/u8-check: New file.
65508         * modules/unistr/u16-check: New file.
65509         * modules/unistr/u32-check: New file.
65510         * lib/unistr/u8-check.c: New file.
65511         * lib/unistr/u16-check.c: New file.
65512         * lib/unistr/u32-check.c: New file.
65513
65514         * modules/unistr/u8-chr: New file.
65515         * modules/unistr/u16-chr: New file.
65516         * modules/unistr/u32-chr: New file.
65517         * lib/unistr/u8-chr.c: New file.
65518         * lib/unistr/u16-chr.c: New file.
65519         * lib/unistr/u32-chr.c: New file.
65520
65521         * modules/unistr/u8-cmp: New file.
65522         * modules/unistr/u16-cmp: New file.
65523         * modules/unistr/u32-cmp: New file.
65524         * lib/unistr/u8-cmp.c: New file.
65525         * lib/unistr/u16-cmp.c: New file.
65526         * lib/unistr/u32-cmp.c: New file.
65527
65528         * modules/unistr/u8-cpy: New file.
65529         * modules/unistr/u16-cpy: New file.
65530         * modules/unistr/u32-cpy: New file.
65531         * lib/unistr/u8-cpy.c: New file.
65532         * lib/unistr/u16-cpy.c: New file.
65533         * lib/unistr/u32-cpy.c: New file.
65534         * lib/unistr/u-cpy.h: New file.
65535
65536         * modules/unistr/u8-cpy-alloc: New file.
65537         * modules/unistr/u16-cpy-alloc: New file.
65538         * modules/unistr/u32-cpy-alloc: New file.
65539         * lib/unistr/u8-cpy-alloc.c: New file.
65540         * lib/unistr/u16-cpy-alloc.c: New file.
65541         * lib/unistr/u32-cpy-alloc.c: New file.
65542         * lib/unistr/u-cpy-alloc.h: New file.
65543
65544         * modules/unistr/u8-endswith: New file.
65545         * modules/unistr/u16-endswith: New file.
65546         * modules/unistr/u32-endswith: New file.
65547         * lib/unistr/u8-endswith.c: New file.
65548         * lib/unistr/u16-endswith.c: New file.
65549         * lib/unistr/u32-endswith.c: New file.
65550         * lib/unistr/u-endswith.h: New file.
65551
65552         * modules/unistr/u8-mblen: New file.
65553         * modules/unistr/u16-mblen: New file.
65554         * modules/unistr/u32-mblen: New file.
65555         * lib/unistr/u8-mblen.c: New file.
65556         * lib/unistr/u16-mblen.c: New file.
65557         * lib/unistr/u32-mblen.c: New file.
65558
65559         * modules/unistr/u8-mbtouc: New file.
65560         * modules/unistr/u16-mbtouc: New file.
65561         * modules/unistr/u32-mbtouc: New file.
65562         * lib/unistr/u8-mbtouc.c: New file.
65563         * lib/unistr/u16-mbtouc.c: New file.
65564         * lib/unistr/u32-mbtouc.c: New file.
65565
65566         * modules/unistr/u8-mbtouc-safe: New file.
65567         * modules/unistr/u16-mbtouc-safe: New file.
65568         * modules/unistr/u32-mbtouc-safe: New file.
65569         * lib/unistr/u8-mbtouc-safe.c: New file.
65570         * lib/unistr/u16-mbtouc-safe.c: New file.
65571         * lib/unistr/u32-mbtouc-safe.c: New file.
65572
65573         * modules/unistr/u8-move: New file.
65574         * modules/unistr/u16-move: New file.
65575         * modules/unistr/u32-move: New file.
65576         * lib/unistr/u8-move.c: New file.
65577         * lib/unistr/u16-move.c: New file.
65578         * lib/unistr/u32-move.c: New file.
65579         * lib/unistr/u-move.h: New file.
65580
65581         * modules/unistr/u8-next: New file.
65582         * modules/unistr/u16-next: New file.
65583         * modules/unistr/u32-next: New file.
65584         * lib/unistr/u8-next.c: New file.
65585         * lib/unistr/u16-next.c: New file.
65586         * lib/unistr/u32-next.c: New file.
65587
65588         * modules/unistr/u8-prev: New file.
65589         * modules/unistr/u16-prev: New file.
65590         * modules/unistr/u32-prev: New file.
65591         * lib/unistr/u8-prev.c: New file.
65592         * lib/unistr/u16-prev.c: New file.
65593         * lib/unistr/u32-prev.c: New file.
65594
65595         * modules/unistr/u8-set: New file.
65596         * modules/unistr/u16-set: New file.
65597         * modules/unistr/u32-set: New file.
65598         * lib/unistr/u8-set.c: New file.
65599         * lib/unistr/u16-set.c: New file.
65600         * lib/unistr/u32-set.c: New file.
65601         * lib/unistr/u-set.h: New file.
65602
65603         * modules/unistr/u8-startswith: New file.
65604         * modules/unistr/u16-startswith: New file.
65605         * modules/unistr/u32-startswith: New file.
65606         * lib/unistr/u8-startswith.c: New file.
65607         * lib/unistr/u16-startswith.c: New file.
65608         * lib/unistr/u32-startswith.c: New file.
65609         * lib/unistr/u-startswith.h: New file.
65610
65611         * modules/unistr/u8-stpcpy: New file.
65612         * modules/unistr/u16-stpcpy: New file.
65613         * modules/unistr/u32-stpcpy: New file.
65614         * lib/unistr/u8-stpcpy.c: New file.
65615         * lib/unistr/u16-stpcpy.c: New file.
65616         * lib/unistr/u32-stpcpy.c: New file.
65617         * lib/unistr/u-stpcpy.h: New file.
65618
65619         * modules/unistr/u8-stpncpy: New file.
65620         * modules/unistr/u16-stpncpy: New file.
65621         * modules/unistr/u32-stpncpy: New file.
65622         * lib/unistr/u8-stpncpy.c: New file.
65623         * lib/unistr/u16-stpncpy.c: New file.
65624         * lib/unistr/u32-stpncpy.c: New file.
65625         * lib/unistr/u-stpncpy.h: New file.
65626
65627         * modules/unistr/u8-strcat: New file.
65628         * modules/unistr/u16-strcat: New file.
65629         * modules/unistr/u32-strcat: New file.
65630         * lib/unistr/u8-strcat.c: New file.
65631         * lib/unistr/u16-strcat.c: New file.
65632         * lib/unistr/u32-strcat.c: New file.
65633         * lib/unistr/u-strcat.h: New file.
65634
65635         * modules/unistr/u8-strchr: New file.
65636         * modules/unistr/u16-strchr: New file.
65637         * modules/unistr/u32-strchr: New file.
65638         * lib/unistr/u8-strchr.c: New file.
65639         * lib/unistr/u16-strchr.c: New file.
65640         * lib/unistr/u32-strchr.c: New file.
65641
65642         * modules/unistr/u8-strcmp: New file.
65643         * modules/unistr/u16-strcmp: New file.
65644         * modules/unistr/u32-strcmp: New file.
65645         * lib/unistr/u8-strcmp.c: New file.
65646         * lib/unistr/u16-strcmp.c: New file.
65647         * lib/unistr/u32-strcmp.c: New file.
65648
65649         * modules/unistr/u8-strcpy: New file.
65650         * modules/unistr/u16-strcpy: New file.
65651         * modules/unistr/u32-strcpy: New file.
65652         * lib/unistr/u8-strcpy.c: New file.
65653         * lib/unistr/u16-strcpy.c: New file.
65654         * lib/unistr/u32-strcpy.c: New file.
65655         * lib/unistr/u-strcpy.h: New file.
65656
65657         * modules/unistr/u8-strcspn: New file.
65658         * modules/unistr/u16-strcspn: New file.
65659         * modules/unistr/u32-strcspn: New file.
65660         * lib/unistr/u8-strcspn.c: New file.
65661         * lib/unistr/u16-strcspn.c: New file.
65662         * lib/unistr/u32-strcspn.c: New file.
65663         * lib/unistr/u-strcspn.h: New file.
65664
65665         * modules/unistr/u8-strdup: New file.
65666         * modules/unistr/u16-strdup: New file.
65667         * modules/unistr/u32-strdup: New file.
65668         * lib/unistr/u8-strdup.c: New file.
65669         * lib/unistr/u16-strdup.c: New file.
65670         * lib/unistr/u32-strdup.c: New file.
65671         * lib/unistr/u-strdup.h: New file.
65672
65673         * modules/unistr/u8-strlen: New file.
65674         * modules/unistr/u16-strlen: New file.
65675         * modules/unistr/u32-strlen: New file.
65676         * lib/unistr/u8-strlen.c: New file.
65677         * lib/unistr/u16-strlen.c: New file.
65678         * lib/unistr/u32-strlen.c: New file.
65679         * lib/unistr/u-strlen.h: New file.
65680
65681         * modules/unistr/u8-strmblen: New file.
65682         * modules/unistr/u16-strmblen: New file.
65683         * modules/unistr/u32-strmblen: New file.
65684         * lib/unistr/u8-strmblen.c: New file.
65685         * lib/unistr/u16-strmblen.c: New file.
65686         * lib/unistr/u32-strmblen.c: New file.
65687
65688         * modules/unistr/u8-strmbtouc: New file.
65689         * modules/unistr/u16-strmbtouc: New file.
65690         * modules/unistr/u32-strmbtouc: New file.
65691         * lib/unistr/u8-strmbtouc.c: New file.
65692         * lib/unistr/u16-strmbtouc.c: New file.
65693         * lib/unistr/u32-strmbtouc.c: New file.
65694
65695         * modules/unistr/u8-strncat: New file.
65696         * modules/unistr/u16-strncat: New file.
65697         * modules/unistr/u32-strncat: New file.
65698         * lib/unistr/u8-strncat.c: New file.
65699         * lib/unistr/u16-strncat.c: New file.
65700         * lib/unistr/u32-strncat.c: New file.
65701         * lib/unistr/u-strncat.h: New file.
65702
65703         * modules/unistr/u8-strncmp: New file.
65704         * modules/unistr/u16-strncmp: New file.
65705         * modules/unistr/u32-strncmp: New file.
65706         * lib/unistr/u8-strncmp.c: New file.
65707         * lib/unistr/u16-strncmp.c: New file.
65708         * lib/unistr/u32-strncmp.c: New file.
65709
65710         * modules/unistr/u8-strncpy: New file.
65711         * modules/unistr/u16-strncpy: New file.
65712         * modules/unistr/u32-strncpy: New file.
65713         * lib/unistr/u8-strncpy.c: New file.
65714         * lib/unistr/u16-strncpy.c: New file.
65715         * lib/unistr/u32-strncpy.c: New file.
65716         * lib/unistr/u-strncpy.h: New file.
65717
65718         * modules/unistr/u8-strnlen: New file.
65719         * modules/unistr/u16-strnlen: New file.
65720         * modules/unistr/u32-strnlen: New file.
65721         * lib/unistr/u8-strnlen.c: New file.
65722         * lib/unistr/u16-strnlen.c: New file.
65723         * lib/unistr/u32-strnlen.c: New file.
65724         * lib/unistr/u-strnlen.h: New file.
65725
65726         * modules/unistr/u8-strpbrk: New file.
65727         * modules/unistr/u16-strpbrk: New file.
65728         * modules/unistr/u32-strpbrk: New file.
65729         * lib/unistr/u8-strpbrk.c: New file.
65730         * lib/unistr/u16-strpbrk.c: New file.
65731         * lib/unistr/u32-strpbrk.c: New file.
65732         * lib/unistr/u-strpbrk.h: New file.
65733
65734         * modules/unistr/u8-strrchr: New file.
65735         * modules/unistr/u16-strrchr: New file.
65736         * modules/unistr/u32-strrchr: New file.
65737         * lib/unistr/u8-strrchr.c: New file.
65738         * lib/unistr/u16-strrchr.c: New file.
65739         * lib/unistr/u32-strrchr.c: New file.
65740
65741         * modules/unistr/u8-strspn: New file.
65742         * modules/unistr/u16-strspn: New file.
65743         * modules/unistr/u32-strspn: New file.
65744         * lib/unistr/u8-strspn.c: New file.
65745         * lib/unistr/u16-strspn.c: New file.
65746         * lib/unistr/u32-strspn.c: New file.
65747         * lib/unistr/u-strspn.h: New file.
65748
65749         * modules/unistr/u8-strstr: New file.
65750         * modules/unistr/u16-strstr: New file.
65751         * modules/unistr/u32-strstr: New file.
65752         * lib/unistr/u8-strstr.c: New file.
65753         * lib/unistr/u16-strstr.c: New file.
65754         * lib/unistr/u32-strstr.c: New file.
65755         * lib/unistr/u-strstr.h: New file.
65756
65757         * modules/unistr/u8-strtok: New file.
65758         * modules/unistr/u16-strtok: New file.
65759         * modules/unistr/u32-strtok: New file.
65760         * lib/unistr/u8-strtok.c: New file.
65761         * lib/unistr/u16-strtok.c: New file.
65762         * lib/unistr/u32-strtok.c: New file.
65763         * lib/unistr/u-strtok.h: New file.
65764
65765         * modules/unistr/u8-uctomb: New file.
65766         * modules/unistr/u16-uctomb: New file.
65767         * modules/unistr/u32-uctomb: New file.
65768         * lib/unistr/u8-uctomb.c: New file.
65769         * lib/unistr/u16-uctomb.c: New file.
65770         * lib/unistr/u32-uctomb.c: New file.
65771
65772         * MODULES.html.sh (Unicode string functions): Add the new modules.
65773
65774 2007-01-08  Bruno Haible  <bruno@clisp.org>
65775
65776         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
65777         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
65778         subdirectories.
65779
65780 2007-01-08  Karl Berry  <karl@gnu.org>
65781
65782         * doc/error.texi: mention that main() fns must set program_name
65783         when progname is used.
65784
65785 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
65786
65787         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
65788         WCTYPE_H is empty, for the benefit of builds from non-distclean
65789         directories.  Problem reported by Eric Blake in
65790         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
65791
65792 2007-01-08  Bruno Haible  <bruno@clisp.org>
65793
65794         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
65795         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
65796         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
65797         PROVIDE_CANONICALIZE_FILENAME_MODE.
65798         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
65799
65800 2007-01-08  Bruno Haible  <bruno@clisp.org>
65801
65802         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
65803         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
65804         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
65805         * lib/fts.c: Likewise.
65806         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
65807
65808 2006-12-25  Bruno Haible  <bruno@clisp.org>
65809
65810         * modules/utf8-ucs4-safe: New file.
65811         * lib/utf8-ucs4-safe.h: New file.
65812         * lib/unistr/utf8-ucs4-safe.c: New file.
65813
65814         * modules/utf16-ucs4-safe: New file.
65815         * lib/utf16-ucs4-safe.h: New file.
65816         * lib/unistr/utf16-ucs4-safe.c: New file.
65817
65818         * MODULES.html.sh (Unicode string functions): Add the new modules.
65819
65820 2007-01-08  Bruno Haible  <bruno@clisp.org>
65821
65822         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
65823         (Depends-on): Add unitypes.
65824         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65825         (u8_mbtouc_aux): Move out to separate file.
65826         (u8_mbtouc): Use ucs4_t, uint8_t types.
65827         * lib/unistr/utf8-ucs4.c: New file.
65828
65829         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
65830         (Depends-on): Add unitypes.
65831         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65832         (u16_mbtouc_aux): Move out to separate file.
65833         (u16_mbtouc): Use ucs4_t, uint16_t types.
65834         * lib/unistr/utf16-ucs4.c: New file.
65835
65836         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
65837         (Depends-on): Add unitypes.
65838         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
65839         (u8_uctomb_aux): Move out to separate file.
65840         (u8_uctomb): Use ucs4_t, uint8_t types.
65841         * lib/unistr/ucs4-utf8.c: New file.
65842
65843         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
65844         (Depends-on): Add unitypes.
65845         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
65846         (u16_uctomb_aux): Move out to separate file.
65847         (u16_uctomb): Use ucs4_t, uint16_t types.
65848         * lib/unistr/ucs4-utf16.c: New file.
65849
65850 2006-12-25  Bruno Haible  <bruno@clisp.org>
65851
65852         * modules/unitypes: New file.
65853         * lib/unitypes.h: New file.
65854         * MODULES.html.sh (func_all_modules): New section "Unicode string
65855         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
65856         this section. Add unitypes.
65857
65858 2007-01-08  Bruno Haible  <bruno@clisp.org>
65859
65860         Avoid variable names that conflict with those from libtool.
65861         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
65862         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
65863         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
65864         library_names_spec to acl_library_names_spec, hardcode_* to
65865         acl_hardcode_*.
65866         Reported by Ralf Wildenhues.
65867
65868 2007-01-08  Bruno Haible  <bruno@clisp.org>
65869
65870         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
65871         definition.
65872         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
65873         definition.
65874         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
65875         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
65876         definition.
65877         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
65878         definition.
65879         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
65880         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
65881         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
65882         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
65883         definition.
65884         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
65885         definition.
65886         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
65887         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
65888         GC_USE_<algorithm>.
65889         * lib/gc-libgcrypt.c: Likewise.
65890         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
65891         * modules/gc-arctwo (configure.ac): Likewise.
65892         * modules/gc-des (configure.ac): Likewise.
65893         * modules/gc-hmac-md5 (configure.ac): Likewise.
65894         * modules/gc-hmac-sha1 (configure.ac): Likewise.
65895         * modules/gc-md2 (configure.ac): Likewise.
65896         * modules/gc-md4 (configure.ac): Likewise.
65897         * modules/gc-md5 (configure.ac): Likewise.
65898         * modules/gc-random (configure.ac): Likewise.
65899         * modules/gc-rijndael (configure.ac): Likewise.
65900         * modules/gc-sha1 (configure.ac): Likewise.
65901
65902 2007-01-08  Bruno Haible  <bruno@clisp.org>
65903
65904         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
65905         macro definition.
65906         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
65907         definition.
65908         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
65909         definition.
65910         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
65911         * modules/fcntl-safer (configure.ac): Likewise.
65912         * modules/fopen-safer (configure.ac): Likewise.
65913         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
65914         GNULIB_FWRITEERROR macro definition.
65915
65916 2007-01-08  Bruno Haible  <bruno@clisp.org>
65917
65918         * m4/gnulib-common.m4: New file.
65919         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
65920         (func_get_filelist): Add m4/gnulib-common.m4.
65921
65922 2007-01-08  Bruno Haible  <bruno@clisp.org>
65923
65924         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
65925         command.
65926
65927 2007-01-08  Jim Meyering  <jim@meyering.net>
65928
65929         Use a more robust test for a "can't happen" condition.
65930         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
65931         narrowed the st_size value.  Presuming the "can't happen" condition
65932         is true, that narrowing could conceivably convert an invalid st_size
65933         value into a valid one.  Instead, use a change based on Matthew
65934         Woehlke's original patch.
65935
65936         Slight readability improvement: use an assert-like macro
65937         in place of literal "abort ()" uses.
65938         * lib/fts.c (fts_assert): Define.
65939         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
65940         Use this macro instead of a bare 'abort'.
65941
65942 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
65943
65944         Don't worry about using IRIX 5.3's wctype.h broken definitions;
65945         simply work around them.
65946         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
65947         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
65948         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
65949         declaring.
65950         Don't bother to define as macros, since the standard doesn't require it.
65951         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
65952         longer worry about IRIX 5.3.
65953         (HAVE_WCTYPE_CTMP_BUG): Remove.
65954
65955 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65956
65957         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
65958         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
65959         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
65960         Problems reported by Georg Schwarz for IRIX 5.3.
65961
65962         * gnulib-tool (autoconf_minversion): Take the maximum version number
65963         found, not the minimum.  Problem reported by James Youngman.
65964
65965 2007-01-03  Karl Berry  <karl@gnu.org>
65966
65967         * doc/error.texi: new file, explaining interaction with progname.
65968         * doc/gnulib.texi: include it.  Update copyright.
65969
65970 2007-01-03  Simon Josefsson  <simon@josefsson.org>
65971
65972         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
65973         AC_CANONICAL_HOST, to improve autobuild outputs.
65974
65975 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
65976             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
65977
65978         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
65979         sockets, server sockets, and other file descriptors.  Count errors
65980         to compute the return value.  Reorder the code a bit to be easier
65981         to follow.  Don't set event bits that were not requested (except
65982         POLLERR and POLLHUP).
65983
65984 2007-01-01  Bruno Haible  <bruno@clisp.org>
65985
65986         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
65987
65988 2007-01-03  Jim Meyering  <jim@meyering.net>
65989
65990         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
65991
65992 2007-01-02  Bruno Haible  <bruno@clisp.org>
65993
65994         * modules/settime (Include): Require timespec.h.
65995         * modules/nanosleep (Include): Likewise.
65996
65997 2007-01-01  Bruno Haible  <bruno@clisp.org>
65998
65999         * gnulib-tool (func_emit_copyright_notice): Bump year.
66000         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
66001
66002 2007-01-01  Bruno Haible  <bruno@clisp.org>
66003
66004         Improve support for OpenBSD.
66005         * build-aux/config.rpath (libname_spec): Export.
66006         (library_names_spec): New variable. Export.
66007         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
66008         library_names_spec from the config.rpath output. Locate shared library
66009         through the name pattern in library_names_spec.
66010
66011 2007-01-01  Eric Blake  <ebb9@byu.net>
66012
66013         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
66014
66015 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
66016
66017         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
66018         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
66019         assume the C locale, and avoid an "eval" that could cause trouble.
66020         Problem with SORT reported by Bob Proulx.
66021
66022         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
66023         Define.  Trivial patch from Henning Nielsen Lund, originally
66024         sent to bug-grep@gnu.org today.
66025
66026 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
66027
66028         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
66029         struct stat.  Problem reported by Henning Nielsen Lund.
66030         * lib/acl.c: Include acl.h first, to check interface.  Don't
66031         bother to include sys/types.h and sys/stat.h again.
66032
66033 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
66034
66035         Import the following change from libc; problem reported by
66036         Sven Verdoolaege.
66037
66038         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
66039
66040         [BZ #1373]
66041         * lib/argp.h: Remove __NTH for __argp_usage inline function.
66042
66043 2006-12-28  Jim Meyering  <jim@meyering.net>
66044
66045         * build-aux/announce-gen: Do not assume that the package
66046         builds any of tar.gz, tar.bz2, and .xdelta files.
66047         Suggestion from Simon Josefsson.
66048
66049 2006-12-28  Simon Josefsson  <simon@josefsson.org>
66050
66051         * modules/announce-gen: New file.
66052
66053 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
66054
66055         * lib/mbchar.h: Just include <wctype.h>; the wctype module
66056         handles its gotchas now.
66057         * lib/mbswidth.c: Likewise.
66058         * lib/wcwidth.h: Likewise.
66059         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
66060         and iswcntrl; the wctype module does this stuff now.
66061         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
66062         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66063         * modules/mbchar (Depends-on): Add wctype.
66064         * modules/mbswidth (Depends-on): Likewise.
66065         * modules/wcwidth (Depends-on): Likewise.
66066
66067 2006-12-27  Eric Blake  <ebb9@byu.net>
66068
66069         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
66070         module uses more than what <wctype.h> is required to provide.
66071
66072 2006-12-26  Eric Blake  <ebb9@byu.net>
66073
66074         * gnulib-tool (sed_extract_prog): Avoid space-tab.
66075
66076 2006-12-26  Eric Blake  <ebb9@byu.net>
66077
66078         * modules/absolute-header: New module.
66079         * modules/fcntl (Depends-on): Depend on it.
66080         * modules/inttypes (Depends-on): Likewise.
66081         * modules/stdint (Depends-on): Likewise.
66082         * modules/sys_stat (Depends-on): Likewise.
66083         * modules/wctype (Depends-on): Likewise.
66084         * MODULES.html.sh (Support for building libraries and
66085         executables): Document it.
66086
66087 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
66088
66089         * gnulib-tool (SED): Remove, undoing previous change.
66090         The problem was that it broke coreutils on Solaris, because
66091         "sed --posix" leaked into a makefile.
66092         (sed): New alias, if 'alias' and GNU sed.
66093
66094 2006-12-24  Jim Meyering  <jim@meyering.net>
66095
66096         Work around an fchownat bug in glibc-2.4:
66097         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
66098         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
66099         in spite of the -P option.
66100         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
66101         New macros.
66102         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
66103         * modules/openat (Files): Add lib/fchownat.c.
66104         * lib/openat.c (fchownat): Don't define here.  Move to...
66105         * lib/fchownat.c: ...this new file.
66106
66107 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
66108
66109         Fix bug reported by Bruno Haible in
66110         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
66111         where quotearg.c didn't compile on Mac OS X 10.2 because it
66112         lacks <wchar.h> and wint_t.
66113         * lib/wctype_.h (__wctype_wint_t): New type.
66114         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
66115         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
66116         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
66117         Arg is now of type __wctype_wint_t, not wint_t.
66118         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
66119         substitute HAVE_WINT_T.
66120         * modules/wctype (Files): Add m4/wint_t.m4.
66121         (wctype.h): Substitute HAVE_WINT_T.
66122
66123 2006-12-23  Bruno Haible  <bruno@clisp.org>
66124
66125         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
66126
66127 2006-12-23  Bruno Haible  <bruno@clisp.org>
66128
66129         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
66130         S_ISLNK.
66131         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
66132         mingw.
66133
66134 2006-12-22  Bruno Haible  <bruno@clisp.org>
66135
66136         * lib/copy-file.c: Include acl.h.
66137         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
66138         Close the file descriptors only after being done with copy_acl.
66139         * modules/copy-file (Depends-on): Add acl.
66140
66141 2006-12-22  Bruno Haible  <bruno@clisp.org>
66142
66143         * gnulib-tool (SED): New variable.
66144         Use $SED instead of sed everywhere.
66145
66146 2006-12-22  Bruno Haible  <bruno@clisp.org>
66147
66148         * modules/no-c++: New file.
66149         * m4/no-c++.m4: New file.
66150         * MODULES.html.sh (Support for building libraries and executables):
66151         Add no-c++.
66152
66153 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
66154
66155         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
66156         Include <limits.h>, and use its INT_MAX to rewrite the
66157         j loop so that it does not overflow 'int'.  Problem reported by
66158         Ralf Wildenhues in
66159         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
66160         Play it safe by shifting left by 1 rather than multiplying by 2,
66161         as GCC is less likely to optimize this away when the value
66162         is signed (when it assumes overflow leads to undefined behavior).
66163         Also, don't assume time_t uses two's complement.
66164
66165 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
66166
66167         * MODULES.html.sh: New module wctype.
66168         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
66169         * lib/fnmatch.c: Don't bother to include <wchar.h> before
66170         <wctype.h>, since the new wctype module should fix this.
66171         * lib/quotearg.c: Include <wctype.h> unconditionally, since
66172         the wctype module should arrange for it.
66173         * lib/regex_internal.h: Likewise.
66174         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
66175         since the wctype module should handle this now.
66176         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
66177         * modules/fnmatch (Depends-on): Add wctype.
66178         * modules/quotearg (Depends-on): Likewise.
66179         * modules/regex (Depends-on): Likewise.
66180
66181 2006-12-19  Bruno Haible  <bruno@clisp.org>
66182
66183         * lib/strdup.h [C++]: Wrap definitions in extern "C".
66184         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
66185
66186 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66187
66188         * modules/savewd (Depends-on): Fix dependency on fcntl.
66189
66190 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
66191
66192         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
66193         conforms to C99, rather than relying on the user's environment
66194         setting of STDINT_H.
66195
66196 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
66197         and Eric Blake  <ebb9@byu.net>
66198
66199         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
66200         This is more consistent with the other defines here.
66201         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
66202         Port to z/OS.  Problem reported by Paul Gilmartin.
66203         Change local vars to use gl_ prefix rather than ac_.
66204         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
66205         with other defines.
66206         * modules/double-slash-root: New module.
66207         * modules/dirname (Files): Remove m4/double-slash-root.m4.
66208         (Depends-on): Add double-slash-root.
66209         * MODULES.html.sh (File system functions): Mention new module.
66210
66211 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
66212
66213         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
66214         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
66215         This is for the benefit of gzip, which doesn't do i18n.
66216
66217 2006-12-12  Jim Meyering  <jim@meyering.net>
66218
66219         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
66220         Reported by Andreas Schwab <schwab@suse.de>.
66221
66222 2006-12-12  Bruno Haible  <bruno@clisp.org>
66223
66224         Merge these changes.
66225         2006-09-05  Bruno Haible  <bruno@clisp.org>
66226         * lib/iconvme.c (iconv_string): No need to save and restore errno when
66227         iconv_alloc succeeded.
66228         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
66229         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
66230         test for " && dest " at the end - dest is always != NULL there. Call
66231         iconv with 4xNULL arguments initially, to reset the state. Call iconv
66232         with 2xNULL arguments, also to flush the state storage. Handle the
66233         IRIX iconv behaviour. Realloc the final result, to throw away unused
66234         memory.
66235
66236 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
66237
66238         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
66239         and fchmodat unconditionally, since glibc 2.4 has them.
66240         Problem reported by Arkadiusz Miskiewicz.
66241
66242 2006-12-10  Bruno Haible  <bruno@clisp.org>
66243
66244         * gnulib-tool (func_import): Show the include files only for those
66245         modules that are copied and specified.
66246         Reported by Karl Berry.
66247
66248 2006-12-08  Jim Meyering  <jim@meyering.net>
66249
66250         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
66251         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
66252
66253         * build-aux/announce-gen: Add two new options, both optional:
66254         --bootstrap-tools=TOOL_LIST
66255               a comma-separated list of tools, e.g.,
66256               autoconf,automake,bison,gnulib
66257         --gnulib-snapshot-date=DATE
66258               if gnulib is in the bootstrap tool list,
66259               then report this as the snapshot date.
66260               If not specified, use the current date/time.
66261               If you specify a date here, be sure it's UTC.
66262
66263 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66264
66265         * tests/test-argp-2.sh: Fix test to match actual output.
66266         (func_compare): Fix sed script to be portable.
66267
66268 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
66269
66270         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
66271         workaround for this case.  It is not autoconfigured now; offhand
66272         it's hard to see how to autoconfigure it.
66273
66274 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
66275
66276         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
66277         a directory that is about to be chowned.  Such a directory's
66278         initial file permissions should permit the owner only and this
66279         should not be changed until after the chown, since the group and
66280         other bits would be incorrect if they granted permission before
66281         the chown.
66282
66283         Fix porting problem for iswctype reported by Georg Schwarz in:
66284         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
66285         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
66286         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
66287         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
66288         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
66289
66290 2006-12-03  Jim Meyering  <jim@meyering.net>
66291
66292         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
66293         p->fts_statp may not yet be defined.
66294         (fts_read): Instead, set it in the caller, once p->fts_statp is
66295         sure to be defined, and corresponds to a top-level directory.
66296         This bug made du -x fail.  Here's the coreutils test case:
66297         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
66298         Reported by Mike Frysinger.
66299
66300 2006-12-01  Jim Meyering  <jim@meyering.net>
66301
66302         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
66303         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
66304         Reported by Simon Josefsson.
66305
66306 2006-11-30  Jim Meyering  <jim@meyering.net>
66307
66308         * m4/warning.m4: Use the all-permissive copyright notice
66309         recommended by RMS (rather than LGPL).
66310         * m4/vararrays.m4: Likewise.
66311         * m4/flexmember.m4: Likewise.
66312
66313 2006-11-29  Bruno Haible  <bruno@clisp.org>
66314
66315         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
66316         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
66317         using +=.
66318         Reported by Simon Josefsson <simon@josefsson.org>.
66319
66320 2006-11-28  James Youngman <jay@gnu.org>
66321
66322         * README: Advise users that they might find the bug-gnulib@gnu.org
66323         and autotools-announce@gnu.org mailing lists useful.
66324
66325 2006-11-28  Bruno Haible  <bruno@clisp.org>
66326
66327         * m4/ptrdiff_max.m4: Remove file.
66328
66329 2006-11-21  Bruno Haible  <bruno@clisp.org>
66330
66331         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
66332         _AC_COMPUTE_INT.
66333         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66334         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
66335         _AC_COMPUTE_INT.
66336         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66337         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
66338         _AC_COMPUTE_INT.
66339         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66340
66341 2006-11-28  Jim Meyering  <jim@meyering.net>
66342
66343         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
66344         warning from "gcc -Wshadow" about shadowing the builtin.
66345
66346 2006-11-27  Bruno Haible  <bruno@clisp.org>
66347
66348         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
66349         _AC_COMPUTE_INT.
66350         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66351
66352 2006-11-27  Bruno Haible  <bruno@clisp.org>
66353             Paul Eggert  <eggert@cs.ucla.edu>
66354
66355         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
66356
66357 2006-11-26  Bruno Haible  <bruno@clisp.org>
66358
66359         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
66360         noinst_LTLIBRARIES.
66361
66362 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
66363             Bruno Haible  <bruno@clisp.org>
66364
66365         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
66366         if compiling with "gcc -ansi".
66367
66368 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
66369
66370         Fix some incompatibilities with gcc -ansi -pedantic.
66371         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
66372         if compiling pedantically with GCC, unless it's C99 or later.
66373         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
66374         it mishandles gcc -ansi -pedantic as well.
66375         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
66376         if gcc -pedantic.
66377         * lib/regexec.c (check_node_accept_bytes): Don't use auto
66378         initializers for struct if -pedantic, unless it's C99 or later.
66379
66380 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
66381
66382         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
66383         Don't close an fd more than once. Identical atimes indicate
66384         success, not failure.
66385
66386 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
66387
66388         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
66389
66390 2006-11-23  Jim Meyering  <jim@meyering.net>
66391
66392         * build-aux/announce-gen: New file.  From coreutils.
66393
66394 2006-11-22  Jim Meyering  <jim@meyering.net>
66395
66396         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
66397         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
66398         (fts_read): Use a temporary to narrow the overused st_size member
66399         before using it in a switch statement.  Reported by Matthew Woehlke.
66400
66401         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
66402         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
66403
66404 2006-11-20  Bruno Haible  <bruno@clisp.org>
66405
66406         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
66407         changequote instead of pairs of brackets.
66408         Reported by Andreas Schwab <schwab@suse.de>.
66409
66410 2006-11-21  Jim Meyering  <jim@meyering.net>
66411
66412         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
66413         so as to remain compatible with older compilers.
66414         Patch from Michael Deutschmann.
66415
66416 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
66417
66418         * MODULES.html.sh (File system functions): Add openat.
66419
66420         * lib/openat.h (rpl_fstatat): New macro, if
66421         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
66422         (fstatat): Define to rpl_fstatat under the same conditions,
66423         unless COMPILING_FSTATAT.
66424         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
66425         seems to have the bug.
66426         * lib/fstatat.c: New file.
66427         * modules/openat (Files): Add it.
66428
66429 2006-11-20  Bruno Haible  <bruno@clisp.org>
66430
66431         * Makefile: New file.
66432
66433 2006-11-20  Jim Meyering  <jim@meyering.net>
66434
66435         The beginnings of syntax-related checks for gnulib.
66436         * lib/Makefile: New file.
66437         * lib/t-idcache: New script.  Ensure that the two halves of
66438         idcache.c stay in sync.
66439
66440         * lib/idcache.c: Adjust comments in user- and group- portions to
66441         be more accurate, and to be consistent with one another.
66442
66443 2006-11-20  Jim Meyering  <jim@meyering.net>
66444
66445         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
66446         continue using the flexible array member (thus, this module performs
66447         half as many malloc calls), with the addition that...
66448         (getgroup, getuser): Consistently record a non-match via an empty
66449         "name" string, and map an empty string match to a NULL return value.
66450         * modules/idcache (Depends-on): Re-add flexmember.
66451
66452         * lib/idcache.c (getuser): Remove all uses of the register keyword.
66453         (getuidbyname, getgroup, getgidbyname): Likewise.
66454
66455         Use cleaner syntax: NULL rather than 0.
66456         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
66457
66458 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
66459
66460         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
66461         It mishandled the case where the group was missing.
66462         Problem reported by Greg Schafer.
66463         * modules/idcache: Likewise.
66464
66465 2006-11-18  Jim Meyering  <jim@meyering.net>
66466
66467         * check-module (%exempt_header): Add exception for some
66468         conditionally-included headers.
66469
66470         * modules/i-ring (Depends-on): Add verify.
66471         (License): Change to LGPL.
66472
66473 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
66474
66475         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
66476         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
66477         and inttostr.h.  Use snprintf rather than uinttostr, so that
66478         LGPLed code doesn't depend on GPLed.
66479
66480 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
66481
66482         * modules/inline (License): Change from GPL to LGPL.
66483
66484 2006-11-17  Jim Meyering  <jim@meyering.net>
66485
66486         * modules/d-type (License): Switch to LGPL.
66487
66488 2006-11-15  Bruno Haible  <bruno@clisp.org>
66489
66490         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
66491
66492 2006-11-15  Eric Blake  <ebb9@byu.net>
66493
66494         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
66495         the module dependency.
66496
66497 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66498             Bruno Haible  <bruno@clisp.org>
66499
66500         * gnulib-tool (func_create_testdir): Add license consistency check.
66501
66502 2006-11-15  Eric Blake  <ebb9@byu.net>
66503
66504         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
66505         random "(cached)" in configure output.
66506
66507 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66508
66509         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
66510         test for conforming inttypes.h is both announced and cached.
66511
66512         * MODULES.html.sh (seen_modules, seen_files): New variables.
66513         (func_module): Rewrite to use a few less gnulib-tool and sed
66514         invocations.  Avoid a couple of quadratic algorithms for ...
66515         (missed_modules, missed_files): ... these, with ...
66516         (func_append, func_tmpdir): ... these new functions, from
66517         gnulib-tool.  Analogously, install traps for cleanup.
66518
66519         * tests/test-gc.c (main): Remove unused variables.
66520         * tests/test-read-file.c: Include stdlib.h, for 'free'.
66521
66522 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
66523
66524         * modules/inttostr (License): Change to LGPL.
66525
66526 2006-11-14  Eric Blake  <ebb9@byu.net>
66527
66528         * modules/tempname (License): Change to LGPL.
66529
66530 2006-11-14  Eric Blake  <ebb9@byu.net>
66531
66532         * doc/functions.texi (Function Portability): *printf functions on
66533         Cygwin now understand all POSIX size specifiers.
66534
66535 2006-11-14  Bruno Haible  <bruno@clisp.org>
66536
66537         * modules/c-ctype (License): Change to LGPL.
66538
66539 2006-11-12  Bruno Haible  <bruno@clisp.org>
66540
66541         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
66542         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
66543         for GNOME libraries, for which the include files are installed in
66544         subdirectories of $prefix/include.
66545
66546 2006-11-12  Bruno Haible  <bruno@clisp.org>
66547
66548         * m4/lib-link.m4: Require at least autoconf-2.54.
66549         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
66550         name to underscores for the --with option.
66551
66552 2006-11-13  Bruno Haible  <bruno@clisp.org>
66553
66554         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
66555         the tests directory.
66556         Reported by Ralf Wildenhues.
66557
66558 2006-11-13  Bruno Haible  <bruno@clisp.org>
66559
66560         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
66561         (func_emit_initmacro_end): Undo the override here.
66562         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
66563         Works around the famous automake error in coreutils.
66564
66565 2006-11-13  Eric Blake  <ebb9@byu.net>
66566
66567         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
66568         element, not its node.
66569
66570 2006-11-12  Bruno Haible  <bruno@clisp.org>
66571
66572         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
66573         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
66574
66575 2006-11-12  Bruno Haible  <bruno@clisp.org>
66576
66577         * gnulib-tool: New option --local-symlink.
66578         (func_usage): Document it.
66579         (lsymbolic): New variable.
66580         (func_import, func_create_testdir): If --symlink was not specified,
66581         test whether --local-symlink was specified and the file comes from
66582         the local_gnulib_dir.
66583
66584 2006-11-12  Bruno Haible  <bruno@clisp.org>
66585
66586         * gnulib-tool (func_ln): New function.
66587         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
66588
66589 2006-11-12  Bruno Haible  <bruno@clisp.org>
66590
66591         Finish support for source files in subdirectories.
66592         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
66593         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
66594         AUTOMAKE_OPTIONS.
66595         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
66596
66597 2006-11-12  Bruno Haible  <bruno@clisp.org>
66598
66599         * gnulib-tool (func_get_automake_snippet): Synthesize also an
66600         EXTRA_lib_SOURCES augmentation.
66601         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
66602
66603 2006-11-12  Jim Meyering  <jim@meyering.net>
66604
66605         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
66606         file descriptors.  This also averts a failure on systems with
66607         native openat support when a traversed directory lacks "x" access.
66608         * lib/fts_.h: Include "i-ring.h"
66609         (struct FTS) [fts_fd_ring]: New member.
66610         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
66611         (FCHDIR): Add parentheses.
66612         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
66613         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
66614         When descending, rather than simply closing the previous
66615         fts_cwd_fd value, push that file descriptor onto the ring.
66616         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
66617         (fts_open): Initialize the new fd_ring member.
66618         (fts_close): Clear the ring.
66619         (fts_safe_changedir): When possible, use our new fd_ring to skip
66620         the diropen and fstat and dev/ino comparison that would normally
66621         accompany a virtual `chdir ("..")'.
66622
66623         * modules/fts (Depends-on): Add i-ring.
66624         * modules/i-ring: New module.
66625         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
66626         * m4/i-ring.m4: New file.
66627
66628 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66629
66630         * gnulib-tool (func_create_testdir): Fix replacement of
66631         `build-aux' in configure.ac.  Run autotools in gltests
66632         subdirectory.
66633         (func_create_testdir, func_create_megatestdir, test): There is
66634         no need for '--force' in most autotool invocations in a new
66635         tree.  Actually fail the whole test if any of the tools, or the
66636         configure or make stages fail.
66637
66638         Sync from Automake.
66639         * build-aux/gnupload: Revert last change.  Add pointer to upload
66640         instructions of the GNU Maintenance Instructions.
66641         Suggestion by Karl Berry.
66642
66643 2006-11-10  Jim Meyering  <jim@meyering.net>
66644
66645         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
66646
66647 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66648
66649         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
66650         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
66651         (bind_textdomain_codeset) [! ENABLE_NLS]:
66652         Evaluate all the arguments.  That way, callers get compatible behavior
66653         if the arguments have side effects.  Also, it avoids some GCC
66654         diagnostics in some cases; Joel E. Denny reported problems when Bison
66655         was configured with --enable-gcc-warnigs.
66656
66657 2006-11-10  Jim Meyering  <jim@meyering.net>
66658
66659         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
66660         relevant options in CFLAGS (like -O, -fno-inline) are taken into
66661         account.
66662
66663 2006-11-10  Jim Meyering  <jim@meyering.net>
66664
66665         * modules/inline: New file/module.
66666         * modules/xalloc (Files): Remove m4/inline.m4.
66667         (Depends-on): Add inline, instead.
66668         * modules/oset: Likewise.
66669         * modules/list: Likewise.
66670
66671 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66672
66673         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
66674         Problem reported by Matthew Woehlke.
66675
66676 2006-11-09  Bruno Haible  <bruno@clisp.org>
66677
66678         * lib/tempname.c (gen_tempname): Remove variant that invokes
66679         __gen_tempname.
66680         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
66681         __gen_tempname.
66682
66683 2006-11-08  Bruno Haible  <bruno@clisp.org>
66684
66685         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
66686         to 'yes' instead of 'cross-compiling'.
66687
66688 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
66689
66690         * lib/quotearg.h (quotearg_free): New decl.
66691         * lib/quotearg.c (quotearg_free): New function.
66692         (slot0, nslots, slotvec0, slotvec):
66693         Now file-scope so that quotearg_free can get at them.
66694
66695 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66696
66697         Sync from Automake.
66698         * build-aux/gnupload: Add missing 'gnu' to example URL.
66699         Report by Karl Berry.
66700
66701 2006-11-08  Bruno Haible  <bruno@clisp.org>
66702
66703         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
66704         Suggested by Paul Eggert.
66705
66706 2006-11-08  Jim Meyering  <jim@meyering.net>
66707
66708         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
66709         It's already included if !_LIBC.
66710         (fts_safe_changedir): Add a comment.
66711
66712 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66713
66714         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
66715         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
66716         Matthew Woehlke.
66717
66718         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
66719         definitions up, to avoid colliding with change below.
66720         (static_inline) [HAVE_INLINE]: New macro.
66721         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
66722         Provide extern decls when !HAVE_INLINE.  Do not define unless
66723         static_inline is defined, either by us or by xmalloc.c.  Use
66724         static_inline rather than static inline.
66725         (XCALLOC): Optimize sizeof(T) = 1 case.
66726         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
66727
66728 2006-11-07  Bruno Haible  <bruno@clisp.org>
66729
66730         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
66731         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
66732         AC_C_INLINE.
66733         * modules/xalloc (Files): Add m4/inline.m4.
66734
66735 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66736
66737         * README: Fix typo.
66738         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
66739         (Miscellanous Notes): ...from this.
66740
66741 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66742
66743         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
66744         Mention that offsetof should be used instead of sizeof.
66745         From Bruno Haible.
66746
66747 2006-11-07  Bruno Haible  <bruno@clisp.org>
66748
66749         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
66750
66751 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66752
66753         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66754         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
66755         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66756         (gl_tree_add_before, gl_tree_add_after):
66757         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
66758         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
66759         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
66760         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
66761         (gl_linked_add_after, gl_linked_add_at): Likewise.
66762         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
66763         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66764         (gl_tree_add_before, gl_tree_add_after): Likewise.
66765         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
66766         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
66767         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
66768
66769 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66770
66771         * lib/gl_oset.h: Use C comment style, not C++ comment style.
66772
66773 2006-11-06  Bruno Haible  <bruno@clisp.org>
66774
66775         * m4/inline.m4: New file.
66776         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
66777         * modules/list (Files): Add m4/inline.m4.
66778         * modules/oset (Files): Likewise.
66779
66780 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66781
66782         * lib/idcache.c: Include <stddef.h>, for offsetof.
66783         (struct userid.name): Change from char * to a flexible array member.
66784         All uses changed.
66785         * modules/idcache (Depends-on): Add flexmember.
66786
66787         * MODULES.html.sh (Core language properties): New module flexmember.
66788         * modules/flexmember, m4/flexmember.m4: New files.
66789
66790         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
66791         inline functions that are identical with the old xnmalloc_inline,
66792         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
66793         that we can avoid some unnecessary integer multiplications and
66794         divisions in the common case where the element size is known at
66795         compile time.
66796         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
66797         needed.
66798         (xnboundedmalloc): Remove.
66799         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
66800         arguments, for consistency with rest of this header.
66801         (xcharalloc): Rewrite using XNMALLOC.
66802         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
66803         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
66804         versions have been moved to lib/xalloc.h and renamed to be the
66805         non-*_inline versions.
66806         (xmalloc, xrealloc): Implement without reference to the xnmalloc
66807         and xnrealloc functions, since those functions are now inline and
66808         now call us.
66809         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
66810         renaming described above.
66811         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
66812         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
66813         captures the dependency in AC_C_INLINE.
66814
66815         New module canonicalize-lgpl, proposed by Charles Wilson in
66816         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
66817         with a few small changes afterwards.
66818         * MODULES.html.sh (File system functions): New module
66819         canonicalize-lgpl.
66820         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
66821         and canonicalize_file_name.
66822         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
66823         * modules/canonicalize-lgpl: New files.
66824
66825 2006-11-05  Bruno Haible  <bruno@clisp.org>
66826
66827         * gnulib-tool (func_import, func_create_testdir): Create directories
66828         also for files in subdirectories of lib/.
66829
66830 2006-11-05  Bruno Haible  <bruno@clisp.org>
66831
66832         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
66833         ANSI C compliant.
66834
66835 2006-11-03  Bruno Haible  <bruno@clisp.org>
66836
66837         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66838         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
66839         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
66840         (xnboundedmalloc): New inline function.
66841         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
66842         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
66843         xmalloc.
66844         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
66845         xmalloc.
66846         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
66847         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
66848         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
66849         xmalloc.
66850         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66851         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
66852         xmalloc.
66853         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
66854         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66855         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
66856         xmalloc.
66857         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66858         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
66859         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66860         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
66861         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
66862         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
66863         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
66864
66865 2006-11-03  Bruno Haible  <bruno@clisp.org>
66866
66867         * lib/c-ctype.h [C++]: Define functions without name mangling.
66868         * lib/fwriteerror.h [C++]: Likewise.
66869         * lib/gcd.h [C++]: Likewise.
66870         * lib/linebreak.h [C++]: Likewise.
66871
66872 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
66873
66874         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
66875         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
66876         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
66877         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
66878         Check for functions and headers just once.
66879         Check for declaration of canonicalize_file_name.
66880         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
66881
66882 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66883
66884         * gnulib-tool (func_import): Fix typo in actioncmd.
66885
66886 2006-11-02  Bruno Haible  <bruno@clisp.org>
66887
66888         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
66889         newline sequence in the Makefile.am snippet as a space, like "make"
66890         does.
66891         Reported by Roger Persson <perrog@gmail.com>.
66892
66893 2006-11-01  Bruno Haible  <bruno@clisp.org>
66894
66895         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
66896         already declared in <string.h>.
66897         * lib/strcase.h (strncasecmp): Don't declare it if yes.
66898
66899 2006-11-01  Bruno Haible  <bruno@clisp.org>
66900
66901         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
66902         * lib/strcase.h: Include <string.h>.
66903         (strcasecmp): Define to rpl_strcasecmp here.
66904
66905 2006-11-01  Bruno Haible  <bruno@clisp.org>
66906
66907         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
66908
66909 2006-11-01  Eric Blake  <ebb9@byu.net>
66910
66911         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
66912
66913         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
66914
66915 2006-10-29  Bruno Haible  <bruno@clisp.org>
66916
66917         Make it compile in C++ mode.
66918         * lib/full-write.c (full_rw): Add a cast.
66919
66920 2006-11-01  Bruno Haible  <bruno@clisp.org>
66921
66922         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
66923         be POSIX compliant.
66924         Reported by Roger Persson <perrog@gmail.com>.
66925
66926 2006-11-01  Eric Blake  <ebb9@byu.net>
66927
66928         * lib/getopt_.h: Fix comments.
66929
66930 2006-10-31  Eric Blake  <ebb9@byu.net>
66931
66932         * modules/tmpdir (Depends-on): Add sys_stat.
66933         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
66934         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
66935         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
66936         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
66937         tempname.
66938
66939 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
66940
66941         Avoid some C++ diagnostics reported by Bruno Haible.
66942         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
66943         xmalloc.
66944         (quotearg_alloc): Use xcharalloc rather than xmalloc.
66945         (struct slotvec): Move to top level.
66946         (quotearg_n_options): Rewrite to avoid xmalloc.
66947         * lib/xalloc.h (xcharalloc): New function.
66948         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
66949         [defined __cplusplus]: Add function template that provides result
66950         type propagation.  This part of the change is from Bruno Haible.
66951
66952 2006-10-29  Bruno Haible  <bruno@clisp.org>
66953
66954         Make it compile in C++ mode.
66955         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
66956         * lib/strnlen1.c (strnlen1): Cast memchr result.
66957         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
66958         * lib/clean-temp.c (string_equals, string_hash): Add casts.
66959         (create_temp_dir): Rename local variable 'template'.
66960         (compile_csharp_using_sscli): Add cast.
66961         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
66962         * lib/findprog.c (find_in_path): Likewise.
66963         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
66964         * lib/wait-process.c (register_slave_subprocess): Likewise.
66965
66966 2006-10-22  Bruno Haible  <bruno@clisp.org>
66967
66968         * modules/tsearch: New file.
66969         * lib/tsearch.h: New file.
66970         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
66971         * m4/tsearch.m4: New file.
66972         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
66973
66974 2006-10-29  Eric Blake  <ebb9@byu.net>
66975
66976         * lib/arcfour.c: Assume config.h.
66977         * lib/arctwo.c: Likewise.
66978         * lib/base64.c: Likewise.
66979         * lib/check-version.c: Likewise.
66980         * lib/crc.c: Likewise.
66981         * lib/des.c: Likewise.
66982         * lib/gc-gnulib.c: Likewise.
66983         * lib/gc-libgcrypt.c: Likewise.
66984         * lib/gc-pbkdf2-sha1.c: Likewise.
66985         * lib/getaddrinfo.c: Likewise.
66986         * lib/getdelim.c: Likewise.
66987         * lib/getline.c: Likewise.
66988         * lib/hmac-md5.c: Likewise.
66989         * lib/hmac-sha1.c: Likewise.
66990         * lib/iconvme.c: Likewise.
66991         * lib/md2.c: Likewise.
66992         * lib/md4.c: Likewise.
66993         * lib/memxor.c: Likewise.
66994         * lib/read-file.c: Likewise.
66995         * lib/readline.c: Likewise.
66996         * lib/rijndael-alg-fst.c: Likewise.
66997         * lib/rijndael-api-fst.c: Likewise.
66998         * lib/xgetdomainname.c: Likewise.
66999
67000 2006-10-28  Eric Blake  <ebb9@byu.net>
67001
67002         * lib/xstrndup.c: Assume config.h.
67003
67004 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
67005
67006         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
67007         stat-macros.h is now for our own macros, whereas stat_h is for
67008         macros in the <sys/stat.h> name space.
67009         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
67010         (STAT_MACROS_H): Remove.
67011         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
67012         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
67013         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
67014         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
67015         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
67016         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
67017         Move these macros to ...
67018         * lib/stat_.h: here.  Don't include stat-macros.h.
67019         * lib/canonicalize.c: Don't include stat-macros.h.
67020         * lib/chown.c: Likewise.
67021         * lib/euidaccess.c: Likewise.
67022         * lib/file-type.c: Likewise.
67023         * lib/filemode.c: Likewise.
67024         * lib/glob.c: Likewise.
67025         * lib/isapipe.c: Likewise.
67026         * lib/lchown.c: Likewise.
67027         * lib/lstat.c: Likewise.
67028         * lib/mkdir-p.c: Likewise.
67029         * lib/rmdir.c: Likewise.
67030         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
67031         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
67032         unless mkdir isn't declared, to speed up 'configure'.
67033         Always create sys/stat.h, since it's unlikely any real sys/stat.h
67034         would define all the S_* symbols.
67035         * modules/canonicalize (Depends-on):
67036         Depend on sys_stat, not stat-macros.
67037         * modules/chown: Likewise.
67038         * modules/euidaccess: Likewise.
67039         * modules/filemode: Likewise.
67040         * modules/file-type: Likewise.
67041         * modules/glob: Likewise.
67042         * modules/isapipe: Likewise.
67043         * modules/lchown: Likewise.
67044         * modules/lstat: Likewise.
67045         * modules/mkancesdirs: Likewise.
67046         * modules/rmdir: Likewise.
67047         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
67048         * modules/modechange: Likewise.
67049         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
67050         (configure.ac): Remove gl_STAT_MACROS.
67051         * modules/sys_stat (Depends-on): Remove stat-macros.
67052
67053 2006-10-27  Bruno Haible  <bruno@clisp.org>
67054
67055         * m4/signed.m4: Remove file.
67056         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
67057         invocation.
67058         * modules/vasnprintf (Files): Remove m4/signed.m4.
67059
67060 2006-10-27  Bruno Haible  <bruno@clisp.org>
67061
67062         Update to GNU gettext 0.16.
67063         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
67064         m4/inttypes-h.m4, m4/signed.m4.
67065         * m4/gettext.m4: Update to GNU gettext 0.16.
67066         * m4/intl.m4: New file, from GNU gettext.
67067         * m4/intldir.m4: New file, from GNU gettext.
67068         * config/srclist.txt: Update
67069
67070 2006-10-27  Eric Blake  <ebb9@byu.net>
67071
67072         * MODULES.html.sh: Document tempname.
67073         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
67074         dependencies.
67075         (Files): Move lib/tempname.c...
67076         * modules/tempname: ...to this new module.
67077         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
67078         (gl_PREREQ_TEMPNAME): Move...
67079         * m4/tempname.m4: ...to this new file.
67080         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
67081         * modules/sys_stat (Depends-on): Add stat-macros.
67082         * lib/stat_.h (includes): Pick up stat macros.
67083         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
67084         if stat macros are broken.
67085         * lib/tempname.c (includes): No need to include "stat-macros.h".
67086         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
67087         (direxists, __path_search) [!_LIBC]: Don't compile these in
67088         gnulib; the tmpdir module covers that.
67089         * lib/tempname.h: New file.
67090
67091 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
67092
67093         * COPYING: Explain how gnulib-tool converts licence headers.
67094         Almost all wording by Eric Blake.
67095
67096 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
67097
67098         * lib/mbchar.h (is_basic_table): Make read-only.
67099         * lib/mbchar.c (is_basic_table): Likewise.
67100         Reported by John Darrington.
67101
67102 2006-10-25  Bruno Haible  <bruno@clisp.org>
67103
67104         * lib/progname.h (set_program_name): Undefine before defining.
67105
67106 2006-10-25  Bruno Haible  <bruno@clisp.org>
67107
67108         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
67109         false for non-gcc C++ compilers.
67110         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
67111
67112 2006-10-24  Bruno Haible  <bruno@clisp.org>
67113
67114         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
67115         iconv implementations like Irix iconv.
67116
67117 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67118
67119         * modules/vararrays: New file.
67120         * m4/vararrays.m4: New file, taken from diffutils.
67121         * MODULES.html.sh: New module vararrays.
67122
67123 2006-10-24  Karl Berry  <karl@gnu.org>
67124
67125         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
67126         Don't call GNU Unix.
67127
67128 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67129
67130         * users.txt: Add Libtool.
67131
67132         Sync from Libtool:
67133
67134         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67135
67136         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
67137         to gnulib's policy of including config.h unconditionally.
67138
67139 2006-10-24  Bruno Haible  <bruno@clisp.org>
67140
67141         * modules/wcwidth (Files): Add m4/wint_t.m4.
67142         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
67143         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
67144
67145 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67146
67147         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
67148         to pacify GCC with some -W flags enabled.  Problem reported by
67149         Bruno Haible.
67150
67151 2006-10-24  Jim Meyering  <jim@meyering.net>
67152
67153         * MODULES.html.sh: Remove uinttostr.  It's not a module.
67154         Reported by Karl Berry.
67155
67156 2006-10-23  Bruno Haible  <bruno@clisp.org>
67157
67158         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
67159
67160 2006-10-24  Bruno Haible  <bruno@clisp.org>
67161
67162         * lib/gl_list.h: Use C comment style, not C++ comment style.
67163
67164 2006-10-23  Eric Blake  <ebb9@byu.net>
67165
67166         * lib/getaddrinfo.c (includes): Add missing include.
67167
67168 2006-10-23  Bruno Haible  <bruno@clisp.org>
67169             Paul Eggert  <eggert@cs.ucla.edu>
67170
67171         Ability to rename obstack_free.
67172         * lib/obstack.h (__obstack_free): New macro. Declare instead of
67173         obstack_free.
67174         (obstack_free): Invoke the __obstack_free macro.
67175         * lib/obstack.c (obstack_free): Use __obstack_free macro.
67176
67177 2006-10-23  Bruno Haible  <bruno@clisp.org>
67178             Paul Eggert  <eggert@cs.ucla.edu>
67179
67180         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
67181         __argc, __argv from the declaration. (They are defined as macros on
67182         mingw.)
67183
67184 2006-10-22  Bruno Haible  <bruno@clisp.org>
67185
67186         * doc/gnulib-intro.texi: New file.
67187         * doc/gnulib.texi: Include it.
67188
67189 2006-10-21  Bruno Haible  <bruno@clisp.org>
67190
67191         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
67192         "Introduction", "Miscellanous Notes", "Particular Modules".
67193
67194 2006-10-21  Bruno Haible  <bruno@clisp.org>
67195
67196         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67197         Change mostlyclean-local rule to avoid sh syntax error from bash
67198         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
67199
67200 2006-10-23  Jim Meyering  <jim@meyering.net>
67201
67202         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
67203         in place of snprintf.
67204
67205         * modules/inttostr (Files): Add lib/uinttostr.c.
67206         * lib/uinttostr.c (inttostr): New file/function.
67207         * lib/inttostr.h (uinttostr): Declare.
67208         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
67209         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
67210         Add uinttostr.
67211         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
67212
67213 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
67214
67215         * lib/canonicalize.c (ELOOP): Define if not already defined.
67216         Problem reported by Bruno Haible in
67217         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
67218
67219 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
67220
67221         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
67222         Problem reported by Perry Smith and Ville Laurikari.
67223
67224         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
67225         uses.
67226
67227 2006-10-19  Bruno Haible  <bruno@clisp.org>
67228
67229         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
67230         for mingw.
67231
67232 2006-10-19  Bruno Haible  <bruno@clisp.org>
67233
67234         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
67235         Needed for mingw.
67236
67237 2006-10-19  Bruno Haible  <bruno@clisp.org>
67238
67239         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
67240
67241 2006-10-19  Bruno Haible  <bruno@clisp.org>
67242
67243         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
67244         it.
67245
67246 2006-10-19  Bruno Haible  <bruno@clisp.org>
67247
67248         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
67249         invocation.
67250
67251 2006-10-19  Bruno Haible  <bruno@clisp.org>
67252
67253         * gnulib-tool (func_create_testdir): Don't include ftruncate and
67254         mountlist by default.
67255
67256 2006-10-16  Bruno Haible  <bruno@clisp.org>
67257
67258         * lib/c-strstr.c: Include c-strstr.h.
67259
67260 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
67261
67262         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
67263         in a slash.
67264
67265 2006-10-18  Bruno Haible  <bruno@clisp.org>
67266
67267         * lib/lock.h [C++]: Wrap definitions in extern "C".
67268
67269 2006-10-18  Bruno Haible  <bruno@clisp.org>
67270
67271         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
67272         gl_LIBOBJS list.
67273
67274 2006-10-18  Bruno Haible  <bruno@clisp.org>
67275
67276         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
67277
67278 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
67279
67280         * lib/xstrtol.h: Include gettext.h.
67281         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
67282         Problem reported by Eric Blake.
67283         * modules/xstrtol (Depends-on): Add gettext-h.
67284
67285 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
67286
67287         * lib/strftime.c (advance): New macro.
67288         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
67289         incomplete type, so you can't add 0 to it.  Problem and patch
67290         reported by Eelco Dolstra for dietlibc.
67291
67292 2006-10-18  Jim Meyering  <jim@meyering.net>
67293
67294         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
67295         type for a local, and rename it: s/up/user_proc/.
67296
67297 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
67298
67299         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
67300         READ_UTMP_USER_PROCESS.
67301         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
67302
67303 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
67304
67305         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
67306         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
67307
67308 2006-10-17  Eric Blake  <ebb9@byu.net>
67309
67310         * lib/sigprocmask.c (sigprocmask): Fix typo.
67311
67312         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
67313
67314         * modules/clean-temp (Makefile.am): Don't add to make output...
67315         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
67316         config.h.
67317
67318 2006-10-17  Bruno Haible  <bruno@clisp.org>
67319
67320         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
67321         differently if DEFAULT_TEXT_DOMAIN is set.
67322
67323 2006-10-16  Bruno Haible  <bruno@clisp.org>
67324
67325         * lib/clean-temp.c: Include fwriteerror.h.
67326
67327 2006-10-16  Bruno Haible  <bruno@clisp.org>
67328
67329         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
67330
67331 2006-10-16  Bruno Haible  <bruno@clisp.org>
67332
67333         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
67334         * lib/sigprocmask.h: Include <sys/types.h>.
67335         (sigset_t): Use the system's definition if present.
67336
67337 2006-10-17  Eric Blake  <ebb9@byu.net>
67338
67339         * lib/xvasprintf.c (includes): Assume config.h.
67340         * lib/xasprintf.c (includes): Likewise.
67341
67342 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
67343
67344         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
67345         at least as wide as intmax_t.
67346
67347 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
67348
67349         (Imported from Automake.)
67350         * build-aux/gnupload: Update to version 1.1 of directive file.
67351
67352 2006-10-16  Eric Blake  <ebb9@byu.net>
67353
67354         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
67355         match Automake 1.10a.
67356
67357 2006-10-14  Bruno Haible  <bruno@clisp.org>
67358
67359         * modules/sigprocmask: New file.
67360         * lib/sigprocmask.h: New file.
67361         * lib/sigprocmask.c: New file.
67362         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
67363         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
67364         request sigprocmask.o.
67365         (gl_PREREQ_SIGPROCMASK): New macro.
67366         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
67367         (Depends-on): Add sigprocmask.
67368         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
67369         gt_SIGNALBLOCKING. Test for 'raise' only once.
67370         * lib/fatal-signal.c: Include sigprocmask.h.
67371         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
67372         unblock_fatal_signals): Define always.
67373         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67374         sigprocmask.
67375
67376 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
67377
67378         Sync from Automake.
67379         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
67380         which incorrectly sets the mode of an existing destination
67381         directory.  In some cases the unpatched install-sh could do the
67382         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
67383         system.  We hope this is rare in practice, but it's clearly worth
67384         fixing.  Problem reported by Alex Unleashed in
67385         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
67386         Also, don't bother to check for -m bugs unless we're using -m;
67387         suggested by Stepan Kasal.
67388
67389 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67390
67391         Sync from Automake.
67392         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
67393         `-c' flag, so they appear at the same position as in %FASTDEP%
67394         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
67395         which ignores unknown options only after the first non-option.
67396         Bug report against M4 by Nelson H. F. Beebe.
67397
67398 2006-10-13  Jim Meyering  <jim@meyering.net>
67399
67400         Fix a bug in yesterday's change.
67401         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
67402         p->fts_statp->st_dev would be used uninitialized.
67403         Ensures that we always call fts_stat on the very first entry.
67404         Miklos Szeredi reported that find -xdev stopped working.
67405
67406 2006-10-12  Bruno Haible  <bruno@clisp.org>
67407
67408         * gnulib-tool (func_get_automake_snippet): Append an automatically
67409         computed EXTRA_DIST augmentation.
67410         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
67411         * modules/alloca-opt (Makefile.am): Likewise.
67412         * modules/allocsa (Makefile.am): Likewise.
67413         * modules/arcfour (Makefile.am): Likewise.
67414         * modules/arctwo (Makefile.am): Likewise.
67415         * modules/argmatch (Makefile.am): Likewise.
67416         * modules/argz (Makefile.am): Likewise.
67417         * modules/atexit (Makefile.am): Likewise.
67418         * modules/backupfile (Makefile.am): Likewise.
67419         * modules/byteswap (Makefile.am): Likewise.
67420         * modules/c-strtod (Makefile.am): Likewise.
67421         * modules/c-strtold (Makefile.am): Likewise.
67422         * modules/calloc (Makefile.am): Likewise.
67423         * modules/canon-host (Makefile.am): Likewise.
67424         * modules/canonicalize (Makefile.am): Likewise.
67425         * modules/chdir-long (Makefile.am): Likewise.
67426         * modules/chdir-safer (Makefile.am): Likewise.
67427         * modules/check-version (Makefile.am): Likewise.
67428         * modules/chown (Makefile.am): Likewise.
67429         * modules/cloexec (Makefile.am): Likewise.
67430         * modules/close-stream (Makefile.am): Likewise.
67431         * modules/closeout (Makefile.am): Likewise.
67432         * modules/crc (Makefile.am): Likewise.
67433         * modules/csharpexec (Makefile.am): Likewise.
67434         * modules/cycle-check (Makefile.am): Likewise.
67435         * modules/des (Makefile.am): Likewise.
67436         * modules/dev-ino (Makefile.am): Likewise.
67437         * modules/dirfd (Makefile.am): Likewise.
67438         * modules/dirname (Makefile.am): Likewise.
67439         * modules/dup2 (Makefile.am): Likewise.
67440         * modules/eealloc (Makefile.am): Likewise.
67441         * modules/error (Makefile.am): Likewise.
67442         * modules/euidaccess (Makefile.am): Likewise.
67443         * modules/exclude (Makefile.am): Likewise.
67444         * modules/exitfail (Makefile.am): Likewise.
67445         * modules/fcntl-safer (Makefile.am): Likewise.
67446         * modules/fcntl (Makefile.am): Likewise.
67447         * modules/file-type (Makefile.am): Likewise.
67448         * modules/fileblocks (Makefile.am): Likewise.
67449         * modules/filemode (Makefile.am): Likewise.
67450         * modules/filenamecat (Makefile.am): Likewise.
67451         * modules/fnmatch (Makefile.am): Likewise.
67452         * modules/fopen-safer (Makefile.am): Likewise.
67453         * modules/fpending (Makefile.am): Likewise.
67454         * modules/fprintftime (Makefile.am): Likewise.
67455         * modules/free (Makefile.am): Likewise.
67456         * modules/fsusage (Makefile.am): Likewise.
67457         * modules/ftruncate (Makefile.am): Likewise.
67458         * modules/fts (Makefile.am): Likewise.
67459         * modules/gc-arcfour (Makefile.am): Likewise.
67460         * modules/gc-des (Makefile.am): Likewise.
67461         * modules/gc-hmac-md5 (Makefile.am): Likewise.
67462         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
67463         * modules/gc-md4 (Makefile.am): Likewise.
67464         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
67465         * modules/gc-sha1 (Makefile.am): Likewise.
67466         * modules/gc (Makefile.am): Likewise.
67467         * modules/getaddrinfo (Makefile.am): Likewise.
67468         * modules/getcwd (Makefile.am): Likewise.
67469         * modules/getdelim (Makefile.am): Likewise.
67470         * modules/getdomainname (Makefile.am): Likewise.
67471         * modules/getgroups (Makefile.am): Likewise.
67472         * modules/gethostname (Makefile.am): Likewise.
67473         * modules/gethrxtime (Makefile.am): Likewise.
67474         * modules/getline (Makefile.am): Likewise.
67475         * modules/getloadavg (Makefile.am): Likewise.
67476         * modules/getlogin_r (Makefile.am): Likewise.
67477         * modules/getndelim2 (Makefile.am): Likewise.
67478         * modules/getopt (Makefile.am): Likewise.
67479         * modules/getpagesize (Makefile.am): Likewise.
67480         * modules/getpass-gnu (Makefile.am): Likewise.
67481         * modules/getpass (Makefile.am): Likewise.
67482         * modules/getsubopt (Makefile.am): Likewise.
67483         * modules/gettime (Makefile.am): Likewise.
67484         * modules/gettimeofday (Makefile.am): Likewise.
67485         * modules/getugroups (Makefile.am): Likewise.
67486         * modules/getusershell (Makefile.am): Likewise.
67487         * modules/glob (Makefile.am): Likewise.
67488         * modules/group-member (Makefile.am): Likewise.
67489         * modules/hard-locale (Makefile.am): Likewise.
67490         * modules/hash (Makefile.am): Likewise.
67491         * modules/hmac-md5 (Makefile.am): Likewise.
67492         * modules/hmac-sha1 (Makefile.am): Likewise.
67493         * modules/human (Makefile.am): Likewise.
67494         * modules/idcache (Makefile.am): Likewise.
67495         * modules/imaxabs (Makefile.am): Likewise.
67496         * modules/imaxdiv (Makefile.am): Likewise.
67497         * modules/inet_ntop (Makefile.am): Likewise.
67498         * modules/inet_pton (Makefile.am): Likewise.
67499         * modules/intprops (Makefile.am): Likewise.
67500         * modules/inttostr (Makefile.am): Likewise.
67501         * modules/inttypes (Makefile.am): Likewise.
67502         * modules/isapipe (Makefile.am): Likewise.
67503         * modules/javaversion (Makefile.am): Likewise.
67504         * modules/lchmod (Makefile.am): Likewise.
67505         * modules/lchown (Makefile.am): Likewise.
67506         * modules/localcharset (Makefile.am): Likewise.
67507         * modules/long-options (Makefile.am): Likewise.
67508         * modules/lstat (Makefile.am): Likewise.
67509         * modules/malloc (Makefile.am): Likewise.
67510         * modules/mathl (Makefile.am): Likewise.
67511         * modules/mbchar (Makefile.am): Likewise.
67512         * modules/md2 (Makefile.am): Likewise.
67513         * modules/md4 (Makefile.am): Likewise.
67514         * modules/md5 (Makefile.am): Likewise.
67515         * modules/memcasecmp (Makefile.am): Likewise.
67516         * modules/memchr (Makefile.am): Likewise.
67517         * modules/memcmp (Makefile.am): Likewise.
67518         * modules/memcoll (Makefile.am): Likewise.
67519         * modules/memcpy (Makefile.am): Likewise.
67520         * modules/memmem (Makefile.am): Likewise.
67521         * modules/memmove (Makefile.am): Likewise.
67522         * modules/mempcpy (Makefile.am): Likewise.
67523         * modules/memrchr (Makefile.am): Likewise.
67524         * modules/memset (Makefile.am): Likewise.
67525         * modules/memxor (Makefile.am): Likewise.
67526         * modules/mkancesdirs (Makefile.am): Likewise.
67527         * modules/mkdir-p (Makefile.am): Likewise.
67528         * modules/mkdir (Makefile.am): Likewise.
67529         * modules/mkdtemp (Makefile.am): Likewise.
67530         * modules/mkstemp (Makefile.am): Likewise.
67531         * modules/mktime (Makefile.am): Likewise.
67532         * modules/modechange (Makefile.am): Likewise.
67533         * modules/mountlist (Makefile.am): Likewise.
67534         * modules/nanosleep (Makefile.am): Likewise.
67535         * modules/obstack (Makefile.am): Likewise.
67536         * modules/openat (Makefile.am): Likewise.
67537         * modules/pagealign_alloc (Makefile.am): Likewise.
67538         * modules/pathmax (Makefile.am): Likewise.
67539         * modules/physmem (Makefile.am): Likewise.
67540         * modules/poll (Makefile.am): Likewise.
67541         * modules/posixtm (Makefile.am): Likewise.
67542         * modules/posixver (Makefile.am): Likewise.
67543         * modules/putenv (Makefile.am): Likewise.
67544         * modules/quote (Makefile.am): Likewise.
67545         * modules/quotearg (Makefile.am): Likewise.
67546         * modules/raise (Makefile.am): Likewise.
67547         * modules/read-file (Makefile.am): Likewise.
67548         * modules/readline (Makefile.am): Likewise.
67549         * modules/readlink (Makefile.am): Likewise.
67550         * modules/readtokens (Makefile.am): Likewise.
67551         * modules/readutmp (Makefile.am): Likewise.
67552         * modules/realloc (Makefile.am): Likewise.
67553         * modules/regex (Makefile.am): Likewise.
67554         * modules/rename-dest-slash (Makefile.am): Likewise.
67555         * modules/rename (Makefile.am): Likewise.
67556         * modules/rijndael (Makefile.am): Likewise.
67557         * modules/rmdir (Makefile.am): Likewise.
67558         * modules/rpmatch (Makefile.am): Likewise.
67559         * modules/safe-read (Makefile.am): Likewise.
67560         * modules/safe-write (Makefile.am): Likewise.
67561         * modules/same-inode (Makefile.am): Likewise.
67562         * modules/same (Makefile.am): Likewise.
67563         * modules/save-cwd (Makefile.am): Likewise.
67564         * modules/savedir (Makefile.am): Likewise.
67565         * modules/setenv (Makefile.am): Likewise.
67566         * modules/settime (Makefile.am): Likewise.
67567         * modules/sha1 (Makefile.am): Likewise.
67568         * modules/sig2str (Makefile.am): Likewise.
67569         * modules/snprintf (Makefile.am): Likewise.
67570         * modules/stat-macros (Makefile.am): Likewise.
67571         * modules/stat-time (Makefile.am): Likewise.
67572         * modules/stdbool (Makefile.am): Likewise.
67573         * modules/stdint (Makefile.am): Likewise.
67574         * modules/stdlib-safer (Makefile.am): Likewise.
67575         * modules/stpcpy (Makefile.am): Likewise.
67576         * modules/stpncpy (Makefile.am): Likewise.
67577         * modules/strcase (Makefile.am): Likewise.
67578         * modules/strcasestr (Makefile.am): Likewise.
67579         * modules/strchrnul (Makefile.am): Likewise.
67580         * modules/strcspn (Makefile.am): Likewise.
67581         * modules/strdup (Makefile.am): Likewise.
67582         * modules/strerror (Makefile.am): Likewise.
67583         * modules/strftime (Makefile.am): Likewise.
67584         * modules/strndup (Makefile.am): Likewise.
67585         * modules/strnlen (Makefile.am): Likewise.
67586         * modules/strpbrk (Makefile.am): Likewise.
67587         * modules/strsep (Makefile.am): Likewise.
67588         * modules/strstr (Makefile.am): Likewise.
67589         * modules/strtod (Makefile.am): Likewise.
67590         * modules/strtoimax (Makefile.am): Likewise.
67591         * modules/strtok_r (Makefile.am): Likewise.
67592         * modules/strtol (Makefile.am): Likewise.
67593         * modules/strtoll (Makefile.am): Likewise.
67594         * modules/strtoul (Makefile.am): Likewise.
67595         * modules/strtoull (Makefile.am): Likewise.
67596         * modules/strtoumax (Makefile.am): Likewise.
67597         * modules/strverscmp (Makefile.am): Likewise.
67598         * modules/sys_socket (Makefile.am): Likewise.
67599         * modules/sys_stat (Makefile.am): Likewise.
67600         * modules/sysexits (Makefile.am): Likewise.
67601         * modules/time_r (Makefile.am): Likewise.
67602         * modules/timegm (Makefile.am): Likewise.
67603         * modules/timespec (Makefile.am): Likewise.
67604         * modules/tmpfile-safer (Makefile.am): Likewise.
67605         * modules/trim (Makefile.am): Likewise.
67606         * modules/unistd-safer (Makefile.am): Likewise.
67607         * modules/unlinkdir (Makefile.am): Likewise.
67608         * modules/unlocked-io (Makefile.am): Likewise.
67609         * modules/userspec (Makefile.am): Likewise.
67610         * modules/utime (Makefile.am): Likewise.
67611         * modules/utimecmp (Makefile.am): Likewise.
67612         * modules/utimens (Makefile.am): Likewise.
67613         * modules/vasnprintf (Makefile.am): Likewise.
67614         * modules/vasprintf (Makefile.am): Likewise.
67615         * modules/vsnprintf (Makefile.am): Likewise.
67616         * modules/xalloc (Makefile.am): Likewise.
67617         * modules/xgetcwd (Makefile.am): Likewise.
67618         * modules/xnanosleep (Makefile.am): Likewise.
67619         * modules/xreadlink (Makefile.am): Likewise.
67620         * modules/xstrtod (Makefile.am): Likewise.
67621         * modules/xstrtol (Makefile.am): Likewise.
67622         * modules/xstrtold (Makefile.am): Likewise.
67623         * modules/yesno (Makefile.am): Likewise.
67624         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
67625
67626 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67627
67628         * modules/error (Makefile.am): Distribute files through
67629         EXTRA_DIST, not lib_SOURCES.
67630
67631 2006-10-12  Eric Blake  <ebb9@byu.net>
67632
67633         * modules/error (Makefile.am): Distribute files in /lib.
67634         * modules/obstack (Makefile.am): Likewise.
67635
67636 2006-10-12  Bruno Haible  <bruno@clisp.org>
67637
67638         * modules/acl (Makefile.am): Distribute all files in lib/ through
67639         EXTRA_DIST.
67640         * modules/arcfour (Makefile.am): Likewise.
67641         * modules/arctwo (Makefile.am): Likewise.
67642         * modules/argmatch (Makefile.am): Likewise.
67643         * modules/argz (Makefile.am): Likewise.
67644         * modules/atexit (Makefile.am): Likewise.
67645         * modules/backupfile (Makefile.am): Likewise.
67646         * modules/c-strtod (Makefile.am): Likewise.
67647         * modules/c-strtold (Makefile.am): Likewise.
67648         * modules/calloc (Makefile.am): Likewise.
67649         * modules/canon-host (Makefile.am): Likewise.
67650         * modules/canonicalize (Makefile.am): Likewise.
67651         * modules/chdir-long (Makefile.am): Likewise.
67652         * modules/chdir-safer (Makefile.am): Likewise.
67653         * modules/check-version (Makefile.am): Likewise.
67654         * modules/chown (Makefile.am): Likewise.
67655         * modules/cloexec (Makefile.am): Likewise.
67656         * modules/close-stream (Makefile.am): Likewise.
67657         * modules/closeout (Makefile.am): Likewise.
67658         * modules/crc (Makefile.am): Likewise.
67659         * modules/cycle-check (Makefile.am): Likewise.
67660         * modules/des (Makefile.am): Likewise.
67661         * modules/dirfd (Makefile.am): Likewise.
67662         * modules/dirname (Makefile.am): Likewise.
67663         * modules/dup2 (Makefile.am): Likewise.
67664         * modules/euidaccess (Makefile.am): Likewise.
67665         * modules/exclude (Makefile.am): Likewise.
67666         * modules/exitfail (Makefile.am): Likewise.
67667         * modules/fcntl-safer (Makefile.am): Likewise.
67668         * modules/file-type (Makefile.am): Likewise.
67669         * modules/fileblocks (Makefile.am): Likewise.
67670         * modules/filemode (Makefile.am): Likewise.
67671         * modules/filenamecat (Makefile.am): Likewise.
67672         * modules/fnmatch (Makefile.am): Likewise.
67673         * modules/fopen-safer (Makefile.am): Likewise.
67674         * modules/fpending (Makefile.am): Likewise.
67675         * modules/fprintftime (Makefile.am): Likewise.
67676         * modules/free (Makefile.am): Likewise.
67677         * modules/fsusage (Makefile.am): Likewise.
67678         * modules/ftruncate (Makefile.am): Likewise.
67679         * modules/fts (Makefile.am): Likewise.
67680         * modules/gc (Makefile.am): Likewise.
67681         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
67682         * modules/getaddrinfo (Makefile.am): Likewise.
67683         * modules/getcwd (Makefile.am): Likewise.
67684         * modules/getdelim (Makefile.am): Likewise.
67685         * modules/getdomainname (Makefile.am): Likewise.
67686         * modules/getgroups (Makefile.am): Likewise.
67687         * modules/gethostname (Makefile.am): Likewise.
67688         * modules/gethrxtime (Makefile.am): Likewise.
67689         * modules/getline (Makefile.am): Likewise.
67690         * modules/getloadavg (Makefile.am): Likewise.
67691         * modules/getlogin_r (Makefile.am): Likewise.
67692         * modules/getopt (Makefile.am): Likewise.
67693         * modules/getpass (Makefile.am): Likewise.
67694         * modules/getpass-gnu (Makefile.am): Likewise.
67695         * modules/getsubopt (Makefile.am): Likewise.
67696         * modules/gettime (Makefile.am): Likewise.
67697         * modules/gettimeofday (Makefile.am): Likewise.
67698         * modules/getugroups (Makefile.am): Likewise.
67699         * modules/getusershell (Makefile.am): Likewise.
67700         * modules/glob (Makefile.am): Likewise.
67701         * modules/group-member (Makefile.am): Likewise.
67702         * modules/hard-locale (Makefile.am): Likewise.
67703         * modules/hash (Makefile.am): Likewise.
67704         * modules/hmac-md5 (Makefile.am): Likewise.
67705         * modules/hmac-sha1 (Makefile.am): Likewise.
67706         * modules/human (Makefile.am): Likewise.
67707         * modules/idcache (Makefile.am): Likewise.
67708         * modules/imaxabs (Makefile.am): Likewise.
67709         * modules/imaxdiv (Makefile.am): Likewise.
67710         * modules/inet_ntop (Makefile.am): Likewise.
67711         * modules/inet_pton (Makefile.am): Likewise.
67712         * modules/inttostr (Makefile.am): Likewise.
67713         * modules/isapipe (Makefile.am): Likewise.
67714         * modules/lchown (Makefile.am): Likewise.
67715         * modules/long-options (Makefile.am): Likewise.
67716         * modules/lstat (Makefile.am): Likewise.
67717         * modules/malloc (Makefile.am): Likewise.
67718         * modules/mathl (Makefile.am): Likewise.
67719         * modules/mbchar (Makefile.am): Likewise.
67720         * modules/md2 (Makefile.am): Likewise.
67721         * modules/md4 (Makefile.am): Likewise.
67722         * modules/md5 (Makefile.am): Likewise.
67723         * modules/memcasecmp (Makefile.am): Likewise.
67724         * modules/memchr (Makefile.am): Likewise.
67725         * modules/memcmp (Makefile.am): Likewise.
67726         * modules/memcoll (Makefile.am): Likewise.
67727         * modules/memcpy (Makefile.am): Likewise.
67728         * modules/memmem (Makefile.am): Likewise.
67729         * modules/memmove (Makefile.am): Likewise.
67730         * modules/mempcpy (Makefile.am): Likewise.
67731         * modules/memrchr (Makefile.am): Likewise.
67732         * modules/memset (Makefile.am): Likewise.
67733         * modules/memxor (Makefile.am): Likewise.
67734         * modules/mkancesdirs (Makefile.am): Likewise.
67735         * modules/mkdir (Makefile.am): Likewise.
67736         * modules/mkdir-p (Makefile.am): Likewise.
67737         * modules/mkdtemp (Makefile.am): Likewise.
67738         * modules/mkstemp (Makefile.am): Likewise.
67739         * modules/mktime (Makefile.am): Likewise.
67740         * modules/modechange (Makefile.am): Likewise.
67741         * modules/mountlist (Makefile.am): Likewise.
67742         * modules/nanosleep (Makefile.am): Likewise.
67743         * modules/openat (Makefile.am): Likewise.
67744         * modules/pagealign_alloc (Makefile.am): Likewise.
67745         * modules/physmem (Makefile.am): Likewise.
67746         * modules/poll (Makefile.am): Likewise.
67747         * modules/posixtm (Makefile.am): Likewise.
67748         * modules/posixver (Makefile.am): Likewise.
67749         * modules/putenv (Makefile.am): Likewise.
67750         * modules/quote (Makefile.am): Likewise.
67751         * modules/quotearg (Makefile.am): Likewise.
67752         * modules/raise (Makefile.am): Likewise.
67753         * modules/read-file (Makefile.am): Likewise.
67754         * modules/readline (Makefile.am): Likewise.
67755         * modules/readlink (Makefile.am): Likewise.
67756         * modules/readtokens (Makefile.am): Likewise.
67757         * modules/readutmp (Makefile.am): Likewise.
67758         * modules/realloc (Makefile.am): Likewise.
67759         * modules/regex (Makefile.am): Likewise.
67760         * modules/rename (Makefile.am): Likewise.
67761         * modules/rename-dest-slash (Makefile.am): Likewise.
67762         * modules/rijndael (Makefile.am): Likewise.
67763         * modules/rmdir (Makefile.am): Likewise.
67764         * modules/rpmatch (Makefile.am): Likewise.
67765         * modules/safe-read (Makefile.am): Likewise.
67766         * modules/safe-write (Makefile.am): Likewise.
67767         * modules/same (Makefile.am): Likewise.
67768         * modules/save-cwd (Makefile.am): Likewise.
67769         * modules/savedir (Makefile.am): Likewise.
67770         * modules/setenv (Makefile.am): Likewise.
67771         * modules/settime (Makefile.am): Likewise.
67772         * modules/sha1 (Makefile.am): Likewise.
67773         * modules/sig2str (Makefile.am): Likewise.
67774         * modules/snprintf (Makefile.am): Likewise.
67775         * modules/stdlib-safer (Makefile.am): Likewise.
67776         * modules/stpcpy (Makefile.am): Likewise.
67777         * modules/stpncpy (Makefile.am): Likewise.
67778         * modules/strcase (Makefile.am): Likewise.
67779         * modules/strcasestr (Makefile.am): Likewise.
67780         * modules/strchrnul (Makefile.am): Likewise.
67781         * modules/strcspn (Makefile.am): Likewise.
67782         * modules/strdup (Makefile.am): Likewise.
67783         * modules/strerror (Makefile.am): Likewise.
67784         * modules/strftime (Makefile.am): Likewise.
67785         * modules/strndup (Makefile.am): Likewise.
67786         * modules/strnlen (Makefile.am): Likewise.
67787         * modules/strpbrk (Makefile.am): Likewise.
67788         * modules/strsep (Makefile.am): Likewise.
67789         * modules/strstr (Makefile.am): Likewise.
67790         * modules/strtod (Makefile.am): Likewise.
67791         * modules/strtoimax (Makefile.am): Likewise.
67792         * modules/strtok_r (Makefile.am): Likewise.
67793         * modules/strtol (Makefile.am): Likewise.
67794         * modules/strtoll (Makefile.am): Likewise.
67795         * modules/strtoul (Makefile.am): Likewise.
67796         * modules/strtoull (Makefile.am): Likewise.
67797         * modules/strtoumax (Makefile.am): Likewise.
67798         * modules/strverscmp (Makefile.am): Likewise.
67799         * modules/time_r (Makefile.am): Likewise.
67800         * modules/timegm (Makefile.am): Likewise.
67801         * modules/tmpfile-safer (Makefile.am): Likewise.
67802         * modules/unistd-safer (Makefile.am): Likewise.
67803         * modules/unlinkdir (Makefile.am): Likewise.
67804         * modules/userspec (Makefile.am): Likewise.
67805         * modules/utime (Makefile.am): Likewise.
67806         * modules/utimecmp (Makefile.am): Likewise.
67807         * modules/utimens (Makefile.am): Likewise.
67808         * modules/vasnprintf (Makefile.am): Likewise.
67809         * modules/vasprintf (Makefile.am): Likewise.
67810         * modules/vsnprintf (Makefile.am): Likewise.
67811         * modules/xalloc (Makefile.am): Likewise.
67812         * modules/xgetcwd (Makefile.am): Likewise.
67813         * modules/xnanosleep (Makefile.am): Likewise.
67814         * modules/xreadlink (Makefile.am): Likewise.
67815         * modules/xstrtod (Makefile.am): Likewise.
67816         * modules/xstrtol (Makefile.am): Likewise.
67817         * modules/xstrtold (Makefile.am): Likewise.
67818         * modules/yesno (Makefile.am): Likewise.
67819
67820 2006-10-12  Jim Meyering  <jim@meyering.net>
67821
67822         * m4/getloadavg.m4: Revert the change below.
67823
67824         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
67825         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
67826         fail with a symlink, which is what coreutils' ./bootstrap now
67827         creates by default.
67828
67829 2006-10-12  Bruno Haible  <bruno@clisp.org>
67830
67831         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
67832         mingw.
67833         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
67834         MSVC and mingw explicitly.
67835
67836 2006-10-11  Simon Josefsson  <jas@extundo.com>
67837             Bruno Haible  <bruno@clisp.org>
67838
67839         Add support for multiple gnulib-tool invocations in the scope of a
67840         single configure.ac file.
67841         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
67842         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
67843         with the same contents as the _LIBADD variable.
67844         (func_emit_initmacro_start, func_emit_initmacro_end,
67845         func_emit_initmacro_done): New functions.
67846         (func_import, func_create_testdir): Invoke them. Allow the identifiers
67847         gl_LIBOBJS and gl_LTLIBOBJS.
67848
67849 2006-10-11  Bruno Haible  <bruno@clisp.org>
67850
67851         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
67852         (func_create_testdir): Don't create po/Makefile.am, don't invoke
67853         autoreconf. Instead, invoke autopoint explicitly but move back the
67854         *.m4 files from gnulib.
67855
67856 2006-10-11  Bruno Haible  <bruno@clisp.org>
67857
67858         * gnulib-tool (func_usage): Make module names after --create-testdir
67859         optional.
67860         (func_create_testdir): If no module was specified, use nearly all
67861         modules.
67862
67863 2006-10-12  Jim Meyering  <jim@meyering.net>
67864
67865         Big performance improvement for fts-based tools that use FTS_NOSTAT.
67866         Avoid spurious inode-mismatch problems on non-POSIX file systems.
67867         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
67868         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
67869         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
67870         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
67871         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
67872         (fts_set_stat_required): New function.
67873         (fts_open): Defer the calls to fts_stat, if possible or requested.
67874         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
67875         into fts_stat itself.
67876         (fts_read): Perform any required (deferred) fts_stat call.
67877         (fts_build): Likewise, for the directory we're about to open and read.
67878         In the readdir loop, carefully decide whether each entry will require
67879         an eventual call to fts_stat, using dirent.d_type info if available.
67880         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
67881         a command line argument into this function.  Update all callers.
67882         Map a return value of FTS_DOT to FTS_D for a command line argument.
67883         * modules/fts (Depends-on): Add d-type.  Alphabetize.
67884         Thanks to Miklos Szeredi for his tenacity and for the initial
67885         bug report about "find" failing on a FUSE-based file system.
67886
67887         * lib/fts.c (fts_open): Use consistent indentation.
67888
67889 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67890
67891         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
67892         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
67893         reported by Jim Meyering.  All uses of cache variables renamed
67894         to match Autoconf's.
67895         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
67896         the other one.
67897
67898         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
67899         Fix misspelling in diagnostic.
67900
67901 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67902
67903         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
67904         defined.  Problem reported by Matthew Woehlke.
67905
67906         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
67907         Add support for Tandem NonStop R series.
67908         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
67909         Use new macro.
67910
67911         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
67912         (has_trailing_slash): Omit size arg; all callers changed.
67913         Omit 'inline', since it doesn't help performance and we'd
67914         need to configure it.
67915         Don't count //, ///, etc. as having a trailing slash.
67916         As a side effect, this removes a C99ism reported by Matthew Woehlke.
67917         (rpl_rename_dest_slash): On failure, use rename's errno rather
67918         than (in some cases) an incorrect or junk errno.
67919         Simplify code by removing need to compute length; this does
67920         cause it to make two passes instead of one over the file name,
67921         but it's worth it.
67922
67923         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
67924         change, since Autoconf's version may no longer be appropriate now
67925         that we are using CVS Autoconf's version.  Add support for Tandem.
67926
67927 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67928             Bruno Haible  <bruno@clisp.org>
67929
67930         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
67931         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
67932         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
67933         gl_AC_TYPE_LONG_LONG.
67934
67935         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
67936         instead of HAVE_LONG_LONG.
67937         * lib/printf-args.c (printf_fetchargs): Likewise.
67938         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
67939         * lib/vasnprintf.c (VASNPRINTF): Likewise.
67940         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
67941         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
67942         gl_AC_TYPE_LONG_LONG.
67943
67944 2006-10-11  Bruno Haible  <bruno@clisp.org>
67945
67946         * m4/longlong.m4: Add comments.
67947         * m4/ulonglong.m4: Likewise.
67948
67949 2006-10-10  Bruno Haible  <bruno@clisp.org>
67950
67951         Make it possible to #define stpcpy, strdup to aliases.
67952         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
67953         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
67954
67955 2006-10-10  Bruno Haible  <bruno@clisp.org>
67956
67957         Make it possible to #define gcd to an alias.
67958         * lib/gcd.c: Include config.h.
67959
67960 2006-10-10  Bruno Haible  <bruno@clisp.org>
67961
67962         Make it possible to #define c_isascii to an alias.
67963         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
67964         defined. Undefine the macros before defining them, to avoid gcc
67965         warnings.
67966         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
67967         define NO_C_CTYPE_MACROS early.
67968
67969 2006-10-10  Bruno Haible  <bruno@clisp.org>
67970
67971         Make it possible to #define set_program_name to an alias.
67972         * lib/progname.c: Don't undefine set_program_name; instead, undefine
67973         ENABLE_RELOCATABLE early.
67974
67975 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
67976
67977         Port to Tandem NSK OSS, which has 64-bit signed int but at most
67978         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
67979         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
67980         More generally, don't assume that 64-bit signed int is available
67981         if unsigned int is, and vice versa.
67982         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
67983         unsigned symbols, not on their signed counterparts.
67984         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
67985         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
67986         (UINT64_C, UINTMAX_C):
67987         Likewise.
67988         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
67989         unsigned counterparts.
67990         (Have_long_long, Unsigned): New macros.
67991         (Int): Renamed from INT.
67992         (strtoimax): Use the new macros.
67993         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
67994         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
67995         * modules/inttypes (inttypes.h): Substitute
67996         HAVE_UNSIGNED_LONG_LONG_INT.
67997         * modules/stdint (stdint.h): Likewise.
67998         (Files): Add m4/ulonglong.m4.
67999
68000 2006-10-10  Bruno Haible  <bruno@clisp.org>
68001
68002         Fix a gcc -Wshadow warning.
68003         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
68004         to 'bucket'.
68005         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
68006         gl_linked_indexof_from_to): Likewise.
68007         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
68008         Likewise.
68009         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
68010         Likewise.
68011         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
68012         Reported by Eric Blake.
68013
68014 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
68015
68016         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
68017         for NetBSD.  Problem reported by Bruno Haible.
68018
68019 2006-10-09  Jim Meyering  <jim@meyering.net>
68020
68021         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
68022         Patch from Bruno Haible.
68023
68024 2006-10-09  Jim Meyering  <jim@meyering.net>
68025
68026         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
68027         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
68028         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
68029
68030 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
68031
68032         Don't include <config.h> twice; this doesn't work in some cases,
68033         e.g., when config.h has "#define intmax_t long long int" and
68034         we include <config.h>, <inttypes.h>, <config.h> in that order.
68035         Problem reported by Matthew Woehlke in:
68036         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
68037         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
68038         * lib/fts-cycle.c: Don't include config.h.
68039         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
68040         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
68041         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
68042         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
68043         inttypes.h.
68044         * lib/xstrtoumax.c: Likewise.
68045         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
68046         __strtol and the like, so that this module is more like its siblings.
68047         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
68048         Remove; no longer needed now that we assume gnulib inttypes.h.
68049
68050 2006-10-08  Bruno Haible  <bruno@clisp.org>
68051
68052         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
68053         option.
68054
68055 2006-10-07  Jim Meyering  <jim@meyering.net>
68056
68057         * modules/inttypes (inttypes.h): Revert what seems to have been
68058         an inadvertent part of today's change: use "|", not "/" in the
68059         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
68060
68061 2006-10-07  Bruno Haible  <bruno@clisp.org>
68062
68063         * modules/sublist: New file.
68064
68065 2006-10-07  Bruno Haible  <bruno@clisp.org>
68066
68067         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
68068         * modules/argz (argz.h): Likewise.
68069         * modules/arpa_inet (arpa/inet.h): Likewise.
68070         * modules/byteswap (byteswap.h): Likewise.
68071         * modules/configmake (configmake.h): Likewise.
68072         * modules/fcntl (fcntl.h): Likewise.
68073         * modules/fnmatch (fnmatch.h): Likewise.
68074         * modules/getopt (getopt.h): Likewise.
68075         * modules/glob (glob.h): Likewise.
68076         * modules/inttypes (inttypes.h): Likewise.
68077         * modules/netinet_in (netinet/in.h): Likewise.
68078         * modules/poll (poll.h): Likewise.
68079         * modules/stdbool (stdbool.h): Likewise.
68080         * modules/stdint (stdint.h): Likewise.
68081         * modules/sys_select (sys/select.h): Likewise.
68082         * modules/sys_socket (sys/socket.h): Likewise.
68083         * modules/sys_stat (sys/stat.h): Likewise.
68084         * modules/sysexits (sysexits.h): Likewise.
68085         * modules/unistd (unistd.h): Likewise.
68086         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68087         Add a "DO NOT EDIT" comment to the generated file.
68088         (func_import): Likewise for gnulib-comp.m4.
68089
68090 2006-10-07  Bruno Haible  <bruno@clisp.org>
68091
68092         * lib/gl_sublist.h: New file.
68093         * lib/gl_sublist.c: New file.
68094
68095 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
68096
68097         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
68098         name (relative to the original working directory) and the file
68099         name component (relative to the temporary working directory).  All
68100         callers changed.
68101         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
68102         * lib/mkdir-p.c (make_dir_parents): Likewise.
68103         * lib/mkdir-p.h (make_dir_parents): Likewise.
68104
68105 2006-10-06  Eric Blake  <ebb9@byu.net>
68106
68107         Define several macros for use by the clean-temp module.
68108         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
68109         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
68110         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
68111
68112         * lib/clean-temp.h (close_stream_temp): New declaration.
68113         * lib/clean-temp.c (includes): Pull in headers according to what
68114         other modules are in use.
68115         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
68116
68117 2006-10-06  Bruno Haible  <bruno@clisp.org>
68118
68119         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
68120         instead of fopen, fwriteerror.
68121
68122 2006-10-06  Bruno Haible  <bruno@clisp.org>
68123
68124         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
68125         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
68126         int.
68127         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
68128         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
68129         Return an error indicator.
68130         Suggested by Eric Blake.
68131
68132 2006-10-06  Bruno Haible  <bruno@clisp.org>
68133
68134         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
68135         Reported by Eric Blake.
68136
68137 2006-10-06  Bruno Haible  <bruno@clisp.org>
68138
68139         * modules/closeout (Description): Mention stderr too.
68140
68141 2006-10-06  Bruno Haible  <bruno@clisp.org>
68142         and Paul Eggert  <eggert@cs.ucla.edu>
68143
68144         * lib/closeout.c (close_stdout): Also close stderr.
68145         * lib/closeout.h: Update comment.
68146
68147 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
68148
68149         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
68150         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
68151         * lib/dirchownmod.c: Include lchown.h.
68152         * lib/lchown.c: Don't include files that lchown.h now includes.
68153         Don't declare chown, since lchown.h now does that.
68154         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
68155         (lchown): Define to rpl_chown if lchown is declared but
68156         does not exist.  Declare using a prototype if lchown is not
68157         declared.  Add a copyright notice.
68158         * lib/mkstemp.h: Include <unistd.h>.
68159         * lib/openat.c: Include lchown.h.
68160
68161         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
68162         we now test for that separately.
68163         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
68164         rather than O_NOFOLLOW, when testing whether it's possible to
68165         avoid a race condition reliably.
68166         * lib/savewd.c (savewd_chdir): Likewise.
68167
68168         Remove macros that are no longer needed now that stdint.h is
68169         reliable.
68170         * lib/fsusage.c (UINTMAX_MAX): Remove.
68171         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
68172         * lib/utimecmp.c (SIZE_MAX): Remove.
68173
68174         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
68175
68176         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
68177         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
68178         O_NOATIME works.
68179
68180 2006-10-05  Bruno Haible  <bruno@clisp.org>
68181
68182         * lib/gl_list.h (gl_sortedlist_search_from_to,
68183         gl_sortedlist_indexof_from_to): New declarations.
68184         (gl_list_implementation): New fields sortedlist_search_from_to,
68185         sortedlist_indexof_from_to.
68186         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
68187         inline functions.
68188         * lib/gl_list.c (gl_sortedlist_search_from_to,
68189         gl_sortedlist_indexof_from_to): New functions.
68190         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
68191         function.
68192         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
68193         (gl_array_sortedlist_search_from_to): New function.
68194         (gl_array_list_implementation): Update.
68195         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
68196         function.
68197         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
68198         (gl_carray_sortedlist_search_from_to): New function.
68199         (gl_carray_list_implementation): Update.
68200         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
68201         gl_linked_sortedlist_indexof_from_to): New functions.
68202         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
68203         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
68204         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
68205         gl_tree_sortedlist_indexof_from_to): New functions.
68206         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
68207         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
68208         Update.
68209         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
68210         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
68211         Update.
68212
68213 2006-10-05  Bruno Haible  <bruno@clisp.org>
68214
68215         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
68216         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
68217         (struct gl_list_implementation): Add fields search_from_to,
68218         indexof_from_to. Remove fields search, indexof.
68219         (gl_list_search): Use the search_from_to method.
68220         (gl_list_search_from, gl_list_search_from_to): New functions.
68221         (gl_list_indexof): Use the indexof_from_to method.
68222         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
68223         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
68224         (gl_list_search_from, gl_list_search_from_to): New functions.
68225         (gl_list_indexof): Use the indexof_from_to method.
68226         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
68227         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
68228         gl_array_indexof. Add start_index, end_index arguments.
68229         (gl_array_search_from_to): Renamed from gl_array_search. Add
68230         start_index, end_index arguments.
68231         (gl_array_remove, gl_array_list_implementation): Update.
68232         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
68233         gl_carray_indexof. Add start_index, end_index arguments.
68234         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
68235         start_index, end_index arguments.
68236         (gl_carray_remove, gl_carray_list_implementation): Update.
68237         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
68238         gl_linked_search. Add start_index, end_index arguments.
68239         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
68240         start_index, end_index arguments.
68241         (gl_linked_remove): Update.
68242         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
68243         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
68244         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
68245         field to 'size_t'.
68246         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
68247         gl_tree_search. Add start_index, end_index arguments.
68248         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
68249         start_index, end_index arguments.
68250         (gl_tree_remove): Update.
68251         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
68252         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
68253         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
68254         function.
68255         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
68256         gl_tree_search. Add start_index, end_index arguments.
68257         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
68258         start_index, end_index arguments.
68259         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
68260         Update.
68261         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
68262
68263 2006-10-05  Bruno Haible  <bruno@clisp.org>
68264
68265         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
68266
68267         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
68268         fwriteerror_temp): New declarations.
68269         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
68270         (descriptors): New variable.
68271         (cleanup): First, close the descriptors.
68272         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
68273         fclose_temp, fwriteerror_temp): New functions.
68274
68275 2006-10-04  Jim Meyering  <jim@meyering.net>
68276
68277         * lib/fts.c (fts_open): Tiny comment change.
68278
68279 2006-10-04  Bruno Haible  <bruno@clisp.org>
68280
68281         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
68282         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
68283         gl_LOCK_BODY.
68284         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
68285         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
68286         gl_LOCK_EARLY_BODY.
68287         (gl_LOCK): Require gl_LOCK_BODY.
68288
68289 2006-10-04  Bruno Haible  <bruno@clisp.org>
68290
68291         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
68292         (gl_oset_search_atleast): New declaration.
68293         (struct gl_oset_implementation): Add field 'search_atleast'.
68294         (gl_oset_search_atleast): New inline function.
68295         * lib/gl_oset.c (gl_oset_search_atleast): New function.
68296         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
68297         (gl_array_oset_implementation): Update.
68298         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
68299         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
68300         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
68301
68302 2006-10-04  Bruno Haible  <bruno@clisp.org>
68303
68304         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
68305
68306 2006-10-03  Bruno Haible  <bruno@clisp.org>
68307
68308         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
68309         from gl_avltreehash_list_implementation.
68310
68311 2006-10-03  Bruno Haible  <bruno@clisp.org>
68312
68313         * lib/gl_oset.c (gl_oset_add): Fix return type.
68314
68315 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
68316
68317         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
68318
68319 2006-10-02  Eric Blake  <ebb9@byu.net>
68320
68321         * modules/strnlen (Depends-on): Add extensions.
68322
68323 2006-10-02  Eric Blake  <ebb9@byu.net>
68324
68325         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
68326         definition in 2.60+.
68327
68328 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
68329
68330         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
68331         checks.
68332
68333 2006-10-02  Bruno Haible  <bruno@clisp.org>
68334
68335         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
68336         to the AUTOMAKE_OPTIONS.
68337         Reported by Jim Meyering.
68338
68339 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
68340
68341         Work around bug in Solaris 10 /proc file system:
68342         /proc/self/fd/NNN/.. isn't the parent directory of
68343         the directory whose file descriptor is NNN.  This needs to
68344         be worked around at run time, not compile time, since a
68345         program might be built on Solaris 8, where things work, and
68346         run on Solaris 10.
68347         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
68348         to use the following interface instead:
68349         (OPENAT_BUFFER_SIZE): New macro.
68350         (openat_proc_name): New function.
68351         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
68352         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
68353         Likewise.
68354         * lib/openat-proc.c: New file.
68355         * modules/openat (Files): Add lib/openat-proc.c.
68356         (Depends-on): Add same-inode, stdbool.
68357         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
68358
68359 2006-09-29  Bruno Haible  <bruno@clisp.org>
68360
68361         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
68362         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
68363         argument. Set stdout_closed before testing for ferror, not after.
68364         (fwriteerror, fwriteerror_no_ebadf): New functions.
68365
68366 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68367
68368         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
68369
68370 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
68371
68372         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
68373         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
68374
68375 2006-09-28  Jim Meyering  <jim@meyering.net>
68376
68377         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
68378         Include <unistd.h>.
68379
68380 2006-09-28  Bruno Haible  <bruno@clisp.org>
68381
68382         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
68383         * modules/linkedhash-list (Depends-on): Likewise.
68384         * modules/rbtreehash-list (Depends-on): Likewise.
68385
68386 2006-09-28  Bruno Haible  <bruno@clisp.org>
68387
68388         * lib/strndup.h: Simplify the redefinition of strndup.
68389         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
68390         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
68391
68392 2006-09-28  Bruno Haible  <bruno@clisp.org>
68393
68394         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
68395         * lib/gl_linkedhash_list.c: Likewise.
68396         * lib/gl_rbtreehash_list.c: Likewise.
68397
68398 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
68399
68400         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
68401         getaddrinfo.
68402
68403         * lib/__fpending.h: Don't include <stdio_ext.h> unless
68404         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
68405         it causes <stdio_ext.h> to cause a compile-time error.
68406         Problem reported by Nelson H. F. Beebe.
68407         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
68408         of HAVE_DECL___PENDING.
68409
68410         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
68411         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
68412         declaration.
68413
68414 2006-09-27  Jim Meyering  <jim@meyering.net>
68415
68416         This file could end up with a definition for a function
68417         named __strndup, rather than rpl_strndup on a system with
68418         incomplete weak_alias support.
68419         * lib/strndup.c (strndup): Rename from __strndup.
68420         Remove #defines that used to map __strndup to strndup.
68421         Don't use K&R prototypes.
68422         Remove LIBC-related code, since this file is not sync'd with glibc.
68423         * lib/strndup.h: Revamp, accordingly.
68424         * m4/strndup.m4: Modernize.
68425
68426 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
68427
68428         * modules/savewd (Depends-on): Add 'raise'.
68429         * lib/savewd.c: Include <signal.h>, for 'raise'.
68430
68431 2006-09-26  Jim Meyering  <jim@meyering.net>
68432
68433         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
68434         when we detect Darwin 8.7.0's acl_get_file bug.
68435         Rearrange to perform the new (below) run-test while $LIBS
68436         contains any acl-related library.  Set USE_ACL at the end.
68437         (gl_ACL_GET_FILE): New function.
68438
68439 2006-09-26  Eric Blake  <ebb9@byu.net>
68440
68441         * lib/verror.c: Include <config.h> unconditionally.
68442
68443 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
68444
68445         * modules/clock-time (Maintainer): Add self.
68446         * modules/getlogin_r (Depends-on): Add extensions.
68447
68448 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68449
68450         * modules/clock-time: New module.
68451         * modules/nanosleep (Depends-on): Add clock-time.
68452         * modules/gethrxtime (Depends-on): Likewise.
68453         * modules/gettime (Depends-on): Likewise.
68454         * modules/settime (Depends-on): Likewise.
68455
68456         * modules/fts-lgpl: Depend on openat.
68457         * modules/mkancesdirs: Depend on savewd.
68458         * modules/mkdir-p: Likewise.
68459
68460 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68461
68462         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
68463
68464         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
68465         `gl_have_arbitrary_file_name_length_limit' to
68466         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
68467         actually works between configure runs.
68468
68469 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68470             Bruno Haible  <bruno@clisp.org>
68471
68472         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
68473
68474 2006-09-25  Jim Meyering  <jim@meyering.net>
68475
68476         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
68477         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
68478
68479 2006-09-25  Eric Blake  <ebb9@byu.net>
68480
68481         * gnulib-tool (func_import, func_create_testdir): Fix typos in
68482         exec's in 2006-09-18 patch when shuffling fds.
68483
68484 2006-09-25  Bruno Haible  <bruno@clisp.org>
68485
68486         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
68487         Reported by Jim Meyering.
68488
68489 2006-09-24  Jim Meyering  <jim@meyering.net>
68490
68491         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
68492         compare a pointer against a literal "0".  That caused failures with
68493         at least HP-UX's hpcc.
68494
68495 2006-09-22  Simon Josefsson  <jas@extundo.com>
68496
68497         * modules/gc-sha1:
68498         * modules/gc-md4:
68499         * modules/gc-hmac-sha1:
68500         * modules/gc-hmac-md5:
68501         * modules/gc-des:
68502         * modules/gc-arcfour: Distribute more files.
68503
68504 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68505
68506         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
68507         (gl_linked_iterator_from_to): Initialize struct completely.
68508         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
68509         (gl_tree_iterator_from_to): Likewise
68510         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
68511         * lib/gl_array_list.c [lint] (gl_array_iterator)
68512         (gl_array_iterator_from_to): Likewise.
68513         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
68514         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
68515         (gl_carray_iterator_from_to): Likewise.
68516
68517         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
68518         * lib/md4.c (md4_process_block): Remove unused variable.
68519         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
68520         parentheses for clarity.
68521
68522 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68523
68524         * modules/bison-i18n (Depends-on): Add gettext.
68525
68526 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68527
68528         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
68529         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
68530         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
68531         also add missing comma that caused broken test.
68532         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
68533         stdlib.h, for `abort'.
68534         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
68535         variables.
68536         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
68537         include unistd.h if present, for `rmdir'.
68538         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
68539         variables.
68540         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
68541         in the process include standard headers for prototypes.
68542         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
68543         gets declared on GNU/Linux.
68544         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
68545         unistd.h, for `rmdir'.
68546         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
68547
68548         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
68549         always true.
68550         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
68551
68552         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
68553
68554 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68555
68556         * gnulib-tool (func_version): Create output all at once.  This
68557         may help avoid triggering unnecessary SIGPIPEs, and at any
68558         rate it doesn't hurt.
68559
68560 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68561             Bruno Haible  <bruno@clisp.org>
68562
68563         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
68564         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
68565         * m4/signed.m4 (bh_C_SIGNED): Likewise.
68566
68567         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
68568         (gl_FUNC_VASPRINTF): Invoke it.
68569
68570 2006-09-22  Bruno Haible  <bruno@clisp.org>
68571
68572         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
68573         getloadavg.c as first argument.
68574
68575 2006-09-22  Bruno Haible  <bruno@clisp.org>
68576
68577         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
68578         at the beginning of the gl_INIT macro.
68579         * modules/getloadavg (configure.ac): Pass $gl_source_base to
68580         gl_GETLOADAVG.
68581
68582 2006-09-22  Bruno Haible  <bruno@clisp.org>
68583
68584         * gnulib-tool (func_create_megatestdir): Don't include the config-h
68585         module.
68586         Suggested by Ralf Wildenhues.
68587
68588 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
68589
68590         Import this patch from libc:
68591
68592         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
68593
68594         * lib/regex_internal.c (re_string_reconstruct): Handle
68595         offset < pstr->valid_raw_len && pstr->offsets_needed case.
68596         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
68597         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
68598         re_string_context_at.
68599
68600         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
68601         now requires it.
68602         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
68603         gl_REGEX now does it for us.
68604         (gl_REGEX): Add test taken from
68605         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
68606
68607         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
68608         Check that large offsets work.  Modernize Autoconf usages.
68609         Prefer "yes" to mean a good thing rather than a bad.
68610         Don't put "#define mkstemp" in config.h, as this might interfere
68611         with standard system headers that "#define mkstemp mkstemp64".
68612
68613         * modules/mkstemp (Depends-on): Add extensions, so that
68614         mkstemp is visible on some platforms.
68615         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
68616         (Include): Change to "mkstemp.h" from <stdlib.h>.
68617         (Files): Add mkstemp.h.
68618
68619         * lib/mkstemp.h: New file, since some standard headers
68620         #define mkstemp.
68621         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
68622         Include "mkstemp.h".
68623         Make the _LIBC code resemble glibc original more,
68624         e.g., use K&R style.
68625         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
68626         (mkstemp): Remove, since mkstemp.h does this for us.
68627         * lib/stdlib--.h: Include mkstemp.h.
68628
68629         Import this patch from libc:
68630
68631         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
68632
68633         * lib/tempname.c (__gen_tempname): Change attempts_min
68634         into a macro.  Use preprocessor to decide how to initialize
68635         attempts [Coverity CID 67].
68636
68637 2006-09-20  Bruno Haible  <bruno@clisp.org>
68638
68639         * lib/mkdtemp.c: Import from libc.
68640         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
68641                 * sysdeps/posix/tempname.c (__gen_tempname): Change
68642                 attempts_min into a macro.  Use preprocessor to decide how to
68643                 initialize attempts [Coverity CID 67].
68644         2001-11-27  Paul Eggert  <eggert@twinsun.com>
68645                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
68646                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
68647
68648 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68649
68650         * gnulib-tool (func_exit): New function, to allow to pass the
68651         exit status portably through the trap.  Use everywhere.
68652         (--help, --version): Signal a write error.
68653         (trap): catch SIGPIPE, for write errors.
68654         Exit at the end of the trap, with the correct exit status.
68655
68656 2006-09-19  Karl Berry  <karl@gnu.org>
68657
68658         * doc/gnulib.texi: note about the license texinfo files.
68659
68660 2006-09-19  Eric Blake  <ebb9@byu.net>
68661
68662         * gnulib-tool: Avoid space-tab.
68663
68664 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
68665
68666         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
68667         that prevented coreutils 6.1 from building.  Problem reported
68668         by Petter Reinholdtsen.
68669
68670 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
68671
68672         * gnulib-tool (avoidlist): Fix typo that broke options like
68673         --avoid=lock that are used by coreutils bootstrap.
68674
68675 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
68676
68677         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
68678         more systematically.
68679
68680 2006-09-18  Jim Meyering  <jim@meyering.net>
68681
68682         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
68683
68684 2006-09-18  Bruno Haible  <bruno@clisp.org>
68685
68686         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
68687
68688 2006-09-18  Bruno Haible  <bruno@clisp.org>
68689
68690         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
68691         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
68692         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
68693         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
68694         * m4/gettext.m4: Require autoconf >= 2.52.
68695         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
68696         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
68697         of gl_cv_header_inttypes_h.
68698
68699 2006-09-18  Bruno Haible  <bruno@clisp.org>
68700
68701         * lib/javaversion.c: Include configmake.h.
68702
68703 2006-09-18  Bruno Haible  <bruno@clisp.org>
68704
68705         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
68706         avoid that the while loops be executed in a subshell.
68707
68708 2006-09-18  Bruno Haible  <bruno@clisp.org>
68709
68710         * MODULES.html.sh (func_module): Break long lines.
68711         Suggested by Bruce Korb <bkorb@gnu.org>.
68712
68713 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68714
68715         Speed up by a factor of 1.12.
68716         * gnulib-tool (nl): New variable.
68717         (func_import): Rewrite include directive extraction to only read each
68718         directive once.
68719
68720 2006-09-17  Bruno Haible  <bruno@clisp.org>
68721
68722         * modules/javaversion (Makefile.am): Remove DEFS setting.
68723         (Depends-on): Add configmake, for PKGDATADIR definition.
68724
68725 2006-09-17  Bruno Haible  <bruno@clisp.org>
68726
68727         * gnulib-tool (func_create_testdir): Rewrite all files at once.
68728
68729 2006-09-17  Bruno Haible  <bruno@clisp.org>
68730
68731         * gnulib-tool (func_append): New function, stolen from libtool.m4.
68732         (func_modules_transitive_closure, func_modules_add_dummy,
68733         func_modules_to_filelist, func_import, func_create_testdir,
68734         func_create_megatestdir, ...): Use it wherever possible.
68735         Suggested by Ralf Wildenhues.
68736
68737 2006-09-16  Karl Berry  <karl@gnu.org>
68738
68739         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
68740         to avoid sectioning errors.
68741         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
68742         [ifinfo]: blank line after @center-ed titles.
68743         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
68744         Spell FSF address consistently with others.
68745         (These changes approved by rms.)
68746
68747 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68748
68749         Speed up by a factor of 1.61.
68750         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
68751         already checked module names again.
68752
68753 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68754
68755         Speed up by a factor of 1.13.
68756         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
68757         for new_files, and the input to func_add_or_update.
68758
68759 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68760
68761         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
68762         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
68763
68764 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68765
68766         * modules/mkancesdirs (Depends-on): Add fcntl.
68767         * modules/savewd: New file.
68768         * MODULES.html.sh (File system functions): Add savewd.
68769
68770         * modules/configmake (Makefile.am): Add support for the
68771         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
68772
68773 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68774
68775         * m4/savewd.m4: New file.
68776
68777 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68778
68779         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
68780         (dirchownmod): New arg FD.  All callers changed.
68781         Use FD rather than opening the directory ourself, as opening is
68782         now the caller's responsibility.
68783         * lib/dirchownmod.h: Likewise.
68784         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
68785         hosts that require <sys/types.h> before <sys/stat.h>.  Include
68786         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
68787         (test_dir): Remove.
68788         (mkancesdirs): Return length of prefix of FILE that has already
68789         been made, or -2 if there is a child doing the work.  Redo
68790         algorithm so that it is O(N) rather than O(N**2).  Optimize away
68791         ".", and treat ".." specially since it might stray back into
68792         already-created areas.  Use a subprocess if necessary.  New arg
68793         WD; all users changed.  MAKE_DIR function should now return 1
68794         if it creates a directory that is not readable.  Return -2 if
68795         a child process is spun off.
68796         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
68797         Adjust signature to match code.
68798         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
68799         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
68800         all users changed.
68801         * lib/savewd.c, lib/savewd.h: New files.
68802
68803 2006-09-15  Jim Meyering  <jim@meyering.net>
68804
68805         * modules/rename-dest-slash: New module.
68806         * MODULES.html.sh (posix_compat): Add it here.
68807
68808         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
68809
68810 2006-09-15  Jim Meyering  <jim@meyering.net>
68811
68812         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
68813         file.
68814
68815         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
68816
68817 2006-09-15  Jim Meyering  <jim@meyering.net>
68818
68819         * lib/rename-dest-slash.c (has_trailing_slash): Use
68820         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
68821         (rpl_rename_dest_slash): Perform the cheaper trailing slash
68822         test before testing whether SRC is a directory.
68823         Suggestions from Bruno Haible.
68824
68825         Avoid a warning about an unused variable.
68826         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
68827         into the #ifdef block where it's used.
68828
68829         * lib/rename-dest-slash.c: New file.
68830
68831 2006-09-14  Bruno Haible  <bruno@clisp.org>
68832
68833         * lib/allocsa.c: Include <config.h> unconditionally.
68834         * lib/asnprintf.c: Likewise.
68835         * lib/asprintf.c: Likewise.
68836         * lib/c-strcasecmp.c: Likewise.
68837         * lib/c-strcasestr.c: Likewise.
68838         * lib/c-strncasecmp.c: Likewise.
68839         * lib/c-strstr.c: Likewise.
68840         * lib/classpath.c: Likewise.
68841         * lib/clean-temp.c: Likewise.
68842         * lib/concatpath.c: Likewise.
68843         * lib/copy-file.c: Likewise.
68844         * lib/csharpcomp.c: Likewise.
68845         * lib/csharpexec.c: Likewise.
68846         * lib/execute.c: Likewise.
68847         * lib/fatal-signal.c: Likewise.
68848         * lib/findprog.c: Likewise.
68849         * lib/fwriteerror.c: Likewise.
68850         * lib/gl_array_list.c: Likewise.
68851         * lib/gl_array_oset.c: Likewise.
68852         * lib/gl_avltree_list.c: Likewise.
68853         * lib/gl_avltree_oset.c: Likewise.
68854         * lib/gl_avltreehash_list.c: Likewise.
68855         * lib/gl_carray_list.c: Likewise.
68856         * lib/gl_linked_list.c: Likewise.
68857         * lib/gl_linkedhash_list.c: Likewise.
68858         * lib/gl_list.c: Likewise.
68859         * lib/gl_oset.c: Likewise.
68860         * lib/gl_rbtree_list.c: Likewise.
68861         * lib/gl_rbtree_oset.c: Likewise.
68862         * lib/gl_rbtreehash_list.c: Likewise.
68863         * lib/imaxabs.c: Likewise.
68864         * lib/imaxdiv.c: Likewise.
68865         * lib/javacomp.c: Likewise.
68866         * lib/javaexec.c: Likewise.
68867         * lib/javaversion.c: Likewise.
68868         * lib/linebreak.c: Likewise.
68869         * lib/localcharset.c: Likewise.
68870         * lib/lock.c: Likewise.
68871         * lib/mbchar.c: Likewise.
68872         * lib/mbswidth.c: Likewise.
68873         * lib/mkdtemp.c: Likewise.
68874         * lib/pipe.c: Likewise.
68875         * lib/printf-args.c: Likewise.
68876         * lib/printf-parse.c: Likewise.
68877         * lib/progname.c: Likewise.
68878         * lib/progreloc.c: Likewise.
68879         * lib/readlink.c: Likewise.
68880         * lib/sh-quote.c: Likewise.
68881         * lib/stpcpy.c: Likewise.
68882         * lib/stpncpy.c: Likewise.
68883         * lib/strcasecmp.c: Likewise.
68884         * lib/strcasestr.c: Likewise.
68885         * lib/strcspn.c: Likewise.
68886         * lib/striconv.c: Likewise.
68887         * lib/strncasecmp.c: Likewise.
68888         * lib/strnlen1.c: Likewise.
68889         * lib/strstr.c: Likewise.
68890         * lib/strtok_r.c: Likewise.
68891         * lib/tls.c: Likewise.
68892         * lib/tmpdir.c: Likewise.
68893         * lib/unicodeio.c: Likewise.
68894         * lib/unsetenv.c: Likewise.
68895         * lib/vasnprintf.c: Likewise.
68896         * lib/vasprintf.c: Likewise.
68897         * lib/wait-process.c: Likewise.
68898         * lib/xallocsa.c: Likewise.
68899         * lib/xsetenv.c: Likewise.
68900         * lib/xstriconv.c: Likewise.
68901
68902 2006-09-13  Simon Josefsson  <jas@extundo.com>
68903
68904         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
68905         that internally, suggested by Ralf Wildenhues
68906         <Ralf.Wildenhues@gmx.de>.
68907
68908 2006-09-13  Simon Josefsson  <jas@extundo.com>
68909
68910         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
68911         @LIBOBJS@.
68912         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68913
68914 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
68915
68916         * lib/_fpending.c: Include <config.h> unconditionally, since we no
68917         longer worry about uses that don't define HAVE_CONFIG_H.
68918         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
68919         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
68920         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
68921         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
68922         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
68923         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
68924         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
68925         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
68926         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
68927         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
68928         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
68929         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
68930         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
68931         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
68932         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
68933         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
68934         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
68935         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
68936         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
68937         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
68938         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
68939         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
68940         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
68941         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
68942         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
68943         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
68944         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
68945         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
68946         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
68947         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
68948         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
68949         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
68950         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
68951         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
68952         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
68953         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
68954         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
68955         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
68956         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
68957         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
68958         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
68959         Likewise.
68960
68961 2006-09-13  Eric Blake  <ebb9@byu.net>
68962
68963         * lib/getopt.c: Fix typo in last commit.
68964
68965 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
68966
68967         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
68968         dgettext.
68969
68970 2006-09-12  Jim Meyering  <jim@meyering.net>
68971
68972         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
68973         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
68974         Reported by Nelson H. F. Beebe.
68975
68976 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68977
68978         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
68979         program_invocation_name and program_invocation_short_name are
68980         initialized.
68981         * lib/argp-namefrob.h: Move declarations of program_invocation_name
68982         and program_invocation_short_name to argp.h, so they are visible
68983         to user programs.
68984         * lib/argp.h: Likewise
68985
68986 2006-09-10  Bruno Haible  <bruno@clisp.org>
68987
68988         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
68989         m4/inttypes_h.m4, m4/uintmax_t.m4.
68990
68991 2006-09-10  Bruno Haible  <bruno@clisp.org>
68992
68993         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
68994         gl_AC_TYPE_UINTMAX_T.
68995
68996 2006-09-10  Bruno Haible  <bruno@clisp.org>
68997
68998         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
68999
69000 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69001
69002         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
69003         convention.  Text proposed by Bruno Haible.
69004         (struct argp_option): Document the use of N_() wrappers.
69005
69006         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
69007         '\v', and translate the two parts separately, instead of feeding
69008         the whole string to gettext.  This allows to exclude
69009         '\v' from the strings visible to the translator by writing doc
69010         strings as N_("..") "\v" N_("..").
69011
69012 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
69013
69014         * config/srclist.txt: Undo latest change; the bug was fixed.
69015
69016 2006-09-09  Bruno Haible  <bruno@clisp.org>
69017
69018         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
69019         assignments if building a library without libtool.
69020         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
69021         in func_emit_lib_Makefile_am.
69022         (func_import): When building a static library libfoo.a, arrange to
69023         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
69024         (func_create_testdir): Likewise.
69025         * modules/gc (configure.ac, Makefile.am): If building statically,
69026         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
69027         * modules/iconvme (configure.ac, Makefile.am): Likewise.
69028         * modules/striconv (configure.ac, Makefile.am): Likewise.
69029         Based on a suggestion by Ralf Wildenhues.
69030
69031 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69032
69033         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
69034         Check for unistd.h too, since Autoconf doesn't assume POSIX.
69035         Also:
69036
69037         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69038         Add year_2050_test to catch glibc bug 2821
69039         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
69040
69041         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69042         Prefer #ifdef to #if.
69043
69044         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
69045         Return from 'main' instead of calling 'exit'.
69046
69047 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69048
69049         * lib/mktime.c (guess_time_tm): Fix bug where mktime
69050         returned the maximum time_t value rather than (time_t) -1.
69051         Problem originally reported by William Bardwell
69052         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
69053
69054         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
69055         Moved to here ...
69056         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
69057         ... from here.
69058
69059 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69060
69061         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
69062         2821 is fixed.
69063
69064 2006-09-08  Jim Meyering  <jim@meyering.net>
69065
69066         Don't make generated files read-only.  That would bother too many
69067         people.  However, do retain the ability to work when targets are
69068         read-only: remove the destination and temporary files before writing
69069         them (when generated via sed or echo), or by using the -f option for
69070         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
69071         * modules/alloca-opt, modules/argz, modules/arpa_inet:
69072         * modules/byteswap, modules/configmake, modules/fcntl:
69073         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
69074         * modules/localcharset, modules/netinet_in, modules/poll:
69075         * modules/stdbool, modules/stdint, modules/sys_select:
69076         * modules/sys_socket, modules/sys_stat, modules/sysexits:
69077
69078 2006-09-08  Jim Meyering  <jim@meyering.net>
69079
69080         Avoid new build failure on FreeBSD 6.0.
69081         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
69082         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
69083         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
69084
69085 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69086
69087         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
69088
69089 2006-09-07  Jim Meyering  <jim@meyering.net>
69090
69091         Fix global typo in last change: use chmod u-w, not chmod u-x.
69092         Spotted by Paul Eggert and Bruce Korb.
69093         * modules/alloca-opt, modules/argz, modules/arpa_inet:
69094         * modules/byteswap, modules/configmake, modules/fcntl:
69095         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
69096         * modules/localcharset, modules/netinet_in, modules/poll:
69097         * modules/stdbool, modules/stdint, modules/sys_select:
69098         * modules/sys_socket, modules/sys_stat, modules/sysexits:
69099
69100 2006-09-06  Jim Meyering  <jim@meyering.net>
69101
69102         Make generated files be read-only.
69103         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
69104         Ensure that each generated file is now read-only.
69105         * modules/argz: Likewise.
69106         * modules/arpa_inet: Likewise.
69107         * modules/byteswap: Likewise.
69108         * modules/configmake: Likewise.
69109         * modules/fcntl: Likewise.
69110         * modules/fnmatch: Likewise.
69111         * modules/getopt: Likewise.
69112         * modules/glob: Likewise.
69113         * modules/inttypes: Likewise.
69114         * modules/netinet_in: Likewise.
69115         * modules/poll: Likewise.
69116         * modules/stdbool: Likewise.
69117         * modules/stdint: Likewise.
69118         * modules/sys_select: Likewise.
69119         * modules/sys_socket: Likewise.
69120         * modules/sys_stat: Likewise.
69121         * modules/sysexits: Likewise.
69122         * modules/localcharset: Same as above, but continue using temporary
69123         file named "t-$@" (why different?) rather than the "$@-t" used
69124         everywhere else.
69125
69126         * modules/sysexits (Makefile.am): Replace literal occurrences
69127         of "sysexit.h" more readable, and more consistent, "$@".
69128
69129 2006-09-06  Bruno Haible  <bruno@clisp.org>
69130
69131         * modules/striconv: New file.
69132         * modules/xstriconv: New file.
69133         * MODULES.html.sh (Internationalization functions): Add striconv,
69134         xstriconv.
69135
69136 2006-09-06  Bruno Haible  <bruno@clisp.org>
69137
69138         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
69139         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
69140         not using libtool correctly.
69141
69142 2006-09-06  Bruno Haible  <bruno@clisp.org>
69143
69144         * lib/striconv.h: New file.
69145         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
69146         iconvstring.c.
69147         * lib/xstriconv.h: New file.
69148         * lib/xstriconv.c: New file.
69149
69150 2006-09-06  Bruno Haible  <bruno@clisp.org>
69151
69152         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
69153         lib_..._LDFLAGS.
69154
69155 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69156
69157         * lib/argz_.h: Sync from Libtool.
69158
69159         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
69160                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
69161
69162         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
69163
69164 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
69165
69166         * modules/trim: New file.
69167
69168 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
69169
69170         * lib/trim.h: New file.
69171         * lib/trim.c: New file.
69172
69173 2006-09-05  Bruno Haible  <bruno@clisp.org>
69174
69175         * MODULES.html.sh (String handling): Add trim.
69176
69177 2006-09-04  Karl Berry  <karl@gnu.org>
69178
69179         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
69180         until next release.
69181
69182 2006-09-03  Bruno Haible  <bruno@clisp.org>
69183
69184         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
69185         correctly.
69186
69187 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69188
69189         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
69190         not gl_GETLOADAVG.  Omit unneeded semicolons.
69191         Problems reported by Ralf Wildenhues in
69192         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
69193         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
69194         at the end, which is the usual gnulib style.
69195
69196         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
69197         of doing all the work ourselves.
69198         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
69199         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
69200
69201 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69202
69203         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
69204         Problem reported by Ralf Wildenhues in
69205         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
69206
69207         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
69208         HAVE_STRUCT_STATFS_F_FSTYPENAME.
69209
69210 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69211
69212         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
69213         yesterday's patch by changing test -n to test -z.
69214
69215 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69216
69217         * modules/getloadavg (Files): Add m4/getloadavg.m4.
69218         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
69219         the former is now obsolescent.
69220
69221         * modules/chdir-long (Depends-on): Add fcntl.
69222
69223 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69224
69225         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
69226         obsolescent, and programs should use gnulib instead.
69227         * m4/getloadavg.m4: New file, with contents taken from Autoconf
69228         but with prefixes changed.
69229
69230 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69231
69232         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
69233         or stdbool.h, because they might not exist while configuring.
69234
69235         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
69236         Don't include unistd.h or limits.h; not needed, since chdir-long.h
69237         does that for us.
69238         (O_DIRECTORY): Remove.
69239
69240 2006-08-31  Eric Blake  <ebb9@byu.net>
69241
69242         * gnulib-tool: Don't let emacs change spaces to TAB.
69243
69244 2006-08-31  Bruno Haible  <bruno@clisp.org>
69245
69246         * gnulib-tool: When calling func_import more than once, do it in a
69247         subshell.
69248         Reported by Eric Blake <ebb9@byu.net>.
69249
69250 2006-08-31  Bruno Haible  <bruno@clisp.org>
69251
69252         * gnulib-tool (nl): Remove variable.
69253         (sed_transform_lib_file): Use more robust test for config-h module.
69254         (func_import): Fix typo in 2006-08-25 patch.
69255
69256 2006-08-31  Bruno Haible  <bruno@clisp.org>
69257
69258         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
69259         specified, augment Makefile.am variables instead of assigning them.
69260
69261 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69262
69263         Work around a bug in both the Linux and SunOS 64-bit kernels:
69264         nanosleep mishandles sleeps for longer than 2**31 seconds.
69265         Problem reported by Frank v Waveren in
69266         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
69267         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
69268         Check for nanosleep bug.
69269         (LIB_NANOSLEEP): Append clock_gettime library if needed.
69270
69271 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69272
69273         Work around a bug in both the Linux and SunOS 64-bit kernels:
69274         nanosleep mishandles sleeps for longer than 2**31 seconds.
69275         Problem reported by Frank v Waveren in
69276         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
69277         * lib/nanosleep.c (BILLION): New constant.
69278         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
69279         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
69280         implementation.
69281
69282 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69283
69284         * modules/nanosleep (Depends-on): Add gettime.
69285
69286 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69287         and Simon Josefsson  <jas@extundo.com>
69288         and Oskar Liljeblad  <oskar@osk.mine.nu>
69289
69290         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
69291         * gnulib-tool (func_import): New license type 'unmodifiable license
69292         text'.
69293         * modules/fdl: Use it.  Longer description.
69294         * module/gpl, module/lgpl: New files.
69295
69296 2006-08-30  Jim Meyering  <jim@meyering.net>
69297
69298         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
69299         shadowing the parameter.
69300
69301 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69302
69303         Sync from Libtool:
69304
69305         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69306
69307         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
69308         sharing with gnulib.  Report by Eric Blake.
69309
69310 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69311
69312         * modules/isapipe: New file.
69313         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
69314
69315 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69316
69317         * modules/configmake (Makefile.am): Add a comment, and omit
69318         the CONFIGMAKE_ prefix from generated macro names.  Suggested
69319         by Bruno Haible.
69320
69321 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69322
69323         * m4/isapipe.m4: New file.
69324
69325 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69326
69327         * lib/isapipe.c, lib/isapipe.h: New files.
69328
69329 2006-08-29  Jim Meyering  <jim@meyering.net>
69330
69331         * modules/configmake (Makefile.am): Make configmake.h depend on
69332         Makefile.  Otherwise, a stale configmake.h could hang around.
69333
69334 2006-08-29  Eric Blake  <ebb9@byu.net>
69335
69336         * lib/error.c (error_at_line, print_errno_message): Match libc, after
69337         resolution of upstream bug 3044.
69338
69339 2006-08-29  Bruno Haible  <bruno@clisp.org>
69340
69341         * modules/localcharset (Depends-on): Add configmake.
69342         (Makefile.am): Remove setting of LIBDIR through DEFS.
69343
69344 2006-08-29  Bruno Haible  <bruno@clisp.org>
69345
69346         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
69347         defined.
69348
69349 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69350
69351         * modules/fcntl: New file.
69352         * modules/chdir-safer (Depends-on): Add fcntl.
69353         * modules/fts: Likewise.
69354         * modules/mkdir-p: Likewise.
69355
69356         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
69357         This undoes the most recent change, since we're now addressing the
69358         problem in a different way.
69359
69360         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
69361         into output, since the output might be called Makefile.am even
69362         if $makefile_name is something different.
69363         (func_import): Use $makefile_am rather than
69364         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
69365         empty.
69366
69367         * modules/inttypes (Files): Add m4/inttypes-h.m4.
69368
69369 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69370
69371         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
69372         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
69373         recent change to stdint.m4, since we're now addressing the problem in a
69374         different way.
69375
69376 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69377
69378         * m4/fcntl_h.m4: New file.
69379
69380 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69381
69382         * lib/fcntl_.h: New file.
69383         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
69384         the fcntl module.
69385         * lib/dirchownmod.c: Likewise.
69386         * lib/fts.c: Likewise.
69387
69388         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
69389         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
69390         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
69391         just before including <inttypes.h>, to avoid circular inclusion.
69392
69393 2006-08-28  Jim Meyering  <jim@meyering.net>
69394
69395         * doc/visibility.texi: Actually read and correct the grammar of the
69396         sentence affected by yesterday's change.
69397
69398 2006-08-28  Eric Blake  <ebb9@byu.net>
69399
69400         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
69401         needs wrapper.
69402
69403 2006-08-28  Eric Blake  <ebb9@byu.net>
69404
69405         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
69406
69407 2006-08-28  Eric Blake  <ebb9@byu.net>
69408
69409         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
69410
69411 2006-08-28  Bruno Haible  <bruno@clisp.org>
69412
69413         * modules/c-strstr: New file, from GNU gettext.
69414         * MODULES.html.sh (String handling): Add c-strstr.
69415
69416 2006-08-28  Bruno Haible  <bruno@clisp.org>
69417
69418         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
69419         macros.
69420         Reported by Eric Blake.
69421
69422 2006-08-28  Bruno Haible  <bruno@clisp.org>
69423
69424         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
69425         (VASNPRINTF): Return a string of length > INT_MAX without failing.
69426         * lib/vasprintf.c: Include errno.h, limits.h.
69427         (EOVERFLOW): New fallback definition.
69428         (vasprintf): Test here whether the string length is > INT_MAX.
69429         * lib/vsnprintf.c: Include errno.h, limits.h.
69430         (EOVERFLOW): New fallback definition.
69431         (vsnprintf): Fix bug when generated string was too long for the buffer.
69432         Test here whether the string length is > INT_MAX.
69433
69434 2006-08-28  Bruno Haible  <bruno@clisp.org>
69435
69436         * lib/inttypes_.h (SCNX*): Remove definitions.
69437         Reported by Eric Blake.
69438
69439 2006-08-28  Bruno Haible  <bruno@clisp.org>
69440
69441         * lib/c-strstr.h: New file, from GNU gettext.
69442         * lib/c-strstr.c: New file, from GNU gettext.
69443
69444 2006-08-28  Bruno Haible  <bruno@clisp.org>
69445
69446         * gnulib-tool: Reorder some statements.
69447
69448 2006-08-28  Bruno Haible  <bruno@clisp.org>
69449
69450         * gnulib-tool: New option --makefile-name.
69451         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
69452         $makefile_name.
69453         (func_import): Write $makefile_name to the cache file, and read it from
69454         there unless explicitly specified. Use $makefile_name as file name
69455         instead of Makefile.am. Adjust the recommendations accordingly.
69456
69457 2006-08-28  Bruno Haible  <bruno@clisp.org>
69458
69459         * gnulib-tool (func_verify_module): Check against misapplying patch.
69460
69461 2006-08-28  Bruno Haible  <bruno@clisp.org>
69462
69463         * gnulib-tool (func_relativize, func_relconcat): New functions.
69464         Give an error if --local-dir is given with --update.
69465         Remove trailing slashes from $local_gnulib_dir.
69466         (func_import): Store the relativized $local_gnulib_dir in
69467         gnulib-cache.m4, and read it from there if not specified explicitly.
69468
69469 2006-08-28  Bruno Haible  <bruno@clisp.org>
69470
69471         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
69472         is the current directory. Respect also $local_gnulib_dir.
69473
69474 2006-08-28  Bruno Haible  <bruno@clisp.org>
69475             Simon Josefsson  <jas@extundo.com>
69476
69477         BeOS portability.
69478         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
69479
69480 2006-08-27  Jim Meyering  <jim@meyering.net>
69481
69482         * doc/visibility.texi: Remove duplicate word: "pointer".
69483
69484 2006-08-26  Bruno Haible  <bruno@clisp.org>
69485
69486         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
69487         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
69488         (Makefile.am): Create inttypes.h from inttypes_.h.
69489         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
69490
69491         * modules/imaxabs: New file.
69492
69493         * modules/imaxdiv: New file.
69494
69495 2006-08-26  Bruno Haible  <bruno@clisp.org>
69496
69497         * m4/inttypes.m4: New file.
69498         * m4/_inttypes_h.m4: Remove file.
69499         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
69500         PRI_MACROS_BROKEN.
69501         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
69502
69503         * m4/imaxabs.m4: New file.
69504
69505         * m4/imaxdiv.m4: New file.
69506
69507 2006-08-26  Bruno Haible  <bruno@clisp.org>
69508
69509         * lib/inttypes_.h: New file.
69510         * lib/inttypes.h: Remove file.
69511         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
69512
69513         * lib/imaxabs.c: New file.
69514
69515         * lib/imaxdiv.c: New file.
69516
69517 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69518
69519         New config-h module, so that "make" output needn't be cluttered
69520         by -DHAVE_CONFIG_H.
69521         * MODULES.html.sh (Support for building libraries and executables):
69522         Add config-h.
69523         * modules/config-h: New file.
69524         * gnulib-tool (nl, sed_transform_lib_file): New vars.
69525         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
69526         the config-h module is used.
69527
69528         New configmake module, so that "make" output needn't be cluttered
69529         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
69530         * MODULES.html.sh (Support for building libraries and executables):
69531         Add configmake.
69532         * modules/configmake: New file.
69533
69534 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69535
69536         * m4/config-h.m4: New file.
69537
69538 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69539
69540         * config/srclist.txt: Add elisp-comp.
69541
69542 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69543
69544         * MODULES.html.sh (Support for building libraries and executables):
69545         Add elisp-comp.
69546         * build-aux/elisp-comp: New file.
69547         * modules/elisp-comp: New file.
69548
69549 2006-08-24  Bruno Haible  <bruno@clisp.org>
69550
69551         * gnulib-tool (func_create_testdir): Use non-default values of
69552         sourcebase and m4base.
69553
69554 2006-08-24  Bruno Haible  <bruno@clisp.org>
69555
69556         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
69557         HTML structure.
69558
69559 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
69560
69561         * modules/openat (Depends-on): Add lchown.
69562
69563 2006-08-23  Bruno Haible  <bruno@clisp.org>
69564
69565         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
69566         of gl_LOCK_EARLY instead of gl_LOCK.
69567
69568 2006-08-23  Bruno Haible  <bruno@clisp.org>
69569
69570         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
69571         on OSF/1 to no.
69572         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
69573
69574 2006-08-23  Bruno Haible  <bruno@clisp.org>
69575
69576         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
69577         as unusable.
69578
69579         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
69580         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
69581         (gl_LOCK): New macro.
69582
69583 2006-08-22  Simon Josefsson  <jas@extundo.com>
69584
69585         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
69586         to md5 module.
69587
69588 2006-08-22  Simon Josefsson  <jas@extundo.com>
69589
69590         * MODULES.html.sh: Add "Support for maintaining and release
69591         projects".
69592
69593         * build-aux/gnupload: New file, from coreutils.
69594
69595 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69596
69597         Avoid the need for AC_LIBSOURCES in m4 macros.
69598         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
69599         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
69600         * modules/check-version (EXTRA_DIST): Add check-version.h.
69601         * modules/crc (EXTRA_DIST): Add crc.h.
69602         * modules/des (EXTRA_DIST): Add des.h.
69603         * modules/gc (EXTRA_DIST): Add gc.h.
69604         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
69605         * modules/getline (EXTRA_DIST): Add getline.h.
69606         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
69607         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
69608         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
69609         * modules/md2 (EXTRA_DIST): Add md2.h.
69610         * modules/md4 (EXTRA_DIST): Add md4.h.
69611         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
69612         * modules/read-file (EXTRA_DIST): Add read-file.h.
69613         * modules/readline (EXTRA_DIST): Add readline.h.
69614         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
69615         rijndael-api-fst.h.
69616
69617 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69618
69619         * m4/rijndael.m4 (gl_ARCFOUR):
69620         * m4/arctwo.m4 (gl_ARCTWO):
69621         * m4/check-version.m4 (gl_CHECK_VERSION):
69622         * m4/crc.m4 (gl_CRC):
69623         * m4/des.m4 (gl_DES):
69624         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
69625         * m4/gc.m4 (gl_GC):
69626         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
69627         * m4/getline.m4 (gl_FUNC_GETLINE):
69628         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
69629         * m4/hmac-md5.m4 (gl_HMAC_MD5):
69630         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
69631         * m4/md2.m4 (gl_MD2):
69632         * m4/md4.m4 (gl_MD4):
69633         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
69634         * m4/read-file.m4 (gl_FUNC_READ_FILE):
69635         * m4/readline.m4 (gl_FUNC_READLINE):
69636         * m4/rijndael.m4 (gl_RIJNDAEL):
69637         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69638         to get the necessary .h files and whatnot.
69639
69640 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69641
69642         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
69643         gnulib rather than the other way around.
69644         * config/srclistvars.sh (COREUTILS): Remove.
69645
69646 2006-08-22  Jim Meyering  <jim@meyering.net>
69647
69648         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
69649
69650         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
69651
69652 2006-08-22  Eric Blake  <ebb9@byu.net>
69653
69654         * modules/regexprops-generic: New file.
69655         * MODULES.html.sh (Support for building documentation): List it.
69656
69657 2006-08-22  Eric Blake  <ebb9@byu.net>
69658
69659         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
69660         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
69661         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
69662         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
69663
69664 2006-08-22  Bruno Haible  <bruno@clisp.org>
69665
69666         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
69667         and lib_LTLIBRARIES like the other lib_* variables.
69668
69669 2006-08-22  Bruno Haible  <bruno@clisp.org>
69670
69671         * build-aux/x-to-1.in: New file, from GNU gettext.
69672
69673 2006-08-22  Bruno Haible  <bruno@clisp.org>
69674
69675         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
69676         <utmpx.h> exists.
69677
69678 2006-08-22  Bruno Haible  <bruno@clisp.org>
69679
69680         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
69681         <utmpx.h> exists.
69682
69683 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69684
69685         BeOS portability.
69686         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
69687         exist.
69688         Problem reported by Bruno Haible.
69689
69690 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69691
69692         Avoid the need for AC_LIBSOURCES in m4 macros.
69693         * modules/acl (EXTRA_DIST): Add acl.h.
69694         * modules/argmatch (Files): Add m4/argmatch.m4.
69695         (configure.ac): Add gl_ARGMATCH.
69696         (EXTRA_DIST): Renamed from lib_SOURCES, for
69697         consistency with the other modules.  Remove argmatch.c.
69698         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
69699         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
69700         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
69701         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
69702         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
69703         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
69704         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
69705         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
69706         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
69707         * modules/closeout (EXTRA_DIST): Add closeout.h.
69708         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
69709         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
69710         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
69711         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
69712         dirname.h; remove basename.c and stripslash.c.
69713         * modules/exclude (EXTRA_DIST): Add exclude.h.
69714         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
69715         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
69716         * modules/file-type (EXTRA_DIST): Add file-type.h.
69717         * modules/filemode (EXTRA_DIST): Add filemode.h.
69718         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
69719         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69720         * modules/fpending (EXTRA_DIST): Add __fpending.h.
69721         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
69722         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
69723         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
69724         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
69725         * modules/getdate (EXTRA_DIST): Add getdate.c.
69726         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
69727         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
69728         * modules/getpass (EXTRA_DIST): Add getpass.h.
69729         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
69730         * modules/group-member (EXTRA_DIST): Add group-member.h.
69731         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
69732         * modules/hash (EXTRA_DIST): Add hash.h.
69733         * modules/human (EXTRA_DIST): Add human.h.
69734         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
69735         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
69736         * modules/lchown (EXTRA_DIST): Add lchown.h.
69737         * modules/long-options (EXTRA_DIST): Add long-options.h.
69738         * modules/lstat (EXTRA_DIST): Add lstat.h.
69739         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
69740         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
69741         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
69742         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
69743         * modules/memxor (EXTRA_DIST): Add memxor.h.
69744         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
69745         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
69746         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
69747         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
69748         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
69749         * modules/physmem (EXTRA_DIST): Add physmem.h.
69750         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
69751         * modules/posixver (EXTRA_DIST): Add posixver.h.
69752         * modules/quote (EXTRA_DIST): Add quote.h.
69753         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
69754         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
69755         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
69756         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
69757         regex_internal.h regexec.c.
69758         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
69759         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
69760         * modules/same (EXTRA_DIST): Add same.h.
69761         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
69762         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
69763         * modules/savedir (EXTRA_DIST): Add savedir.h.
69764         * modules/sha1 (EXTRA_DIST): Add sha1.h.
69765         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
69766         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
69767         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
69768         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
69769         * modules/strdup (EXTRA_DIST): Add strdup.h.
69770         * modules/strftime (EXTRA_DIST): Add strftime.h.
69771         * modules/strndup (EXTRA_DIST): Add strndup.h.
69772         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
69773         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
69774         * modules/time_r (EXTRA_DIST): Add time_r.h.
69775         * modules/timespec (EXTRA_DIST): Add timespec.h.
69776         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69777         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
69778         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
69779         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
69780         * modules/userspec (EXTRA_DIST): Add userspec.h.
69781         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
69782         * modules/utimens (EXTRA_DIST): Add utimens.h.
69783         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
69784         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
69785         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
69786         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
69787         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
69788         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
69789         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
69790         * modules/yesno (EXTRA_DIST): Add yesno.h.
69791
69792 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69793
69794         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
69795
69796         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
69797         * m4/dev-ino.m4, same-inode.m4: Remove.
69798
69799         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
69800         * m4/acl.m4 (AC_FUNC_ACL):
69801         * m4/backupfile.m4 (gl_BACKUPFILE):
69802         * m4/c-strtod.m4 (gl_C99_STRTOLD):
69803         * m4/canon-host.m4 (gl_CANON_HOST):
69804         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
69805         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
69806         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
69807         * m4/cloexec.m4 (gl_CLOEXEC):
69808         * m4/close-stream.m4 (gl_CLOSE_STREAM):
69809         * m4/closeout.m4 (gl_CLOSEOUT):
69810         * m4/dirfd.m4 (gl_FUNC_DIRFD):
69811         * m4/dirname.m4 (gl_DIRNAME):
69812         * m4/exclude.m4 (gl_EXCLUDE):
69813         * m4/exitfail.m4 (gl_EXITFAIL):
69814         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
69815         * m4/file-type.m4 (gl_FILE_TYPE):
69816         * m4/filemode.m4 (gl_FILEMODE):
69817         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
69818         * m4/fpending.m4 (gl_FUNC_FPENDING):
69819         * m4/fprintftime.m4 (gl_FPRINTFTIME):
69820         * m4/fts.m4 (gl_FUNC_FTS):
69821         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
69822         * m4/getdate.m4 (gl_GETDATE):
69823         * m4/gethrxtime.m4 (gl_GETHRXTIME):
69824         * m4/getpagesize.m4 (gl_GETPAGESIZE):
69825         * m4/getpass.m4 (gl_FUNC_GETPASS):
69826         * m4/gettime.m4 (gl_GETTIME):
69827         * m4/getugroups.m4 (gl_GETUGROUPS):
69828         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
69829         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
69830         * m4/hard-locale.m4 (gl_HARD_LOCALE):
69831         * m4/hash.m4 (gl_HASH):
69832         * m4/idcache.m4 (gl_IDCACHE):
69833         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
69834         * m4/lchown.m4 (gl_FUNC_LCHOWN):
69835         * m4/long-options.m4 (gl_LONG_OPTIONS):
69836         * m4/lstat.m4 (gl_FUNC_LSTAT):
69837         * m4/md5.m4 (gl_MD5):
69838         * m4/memcasecmp.m4 (gl_MEMCASECMP):
69839         * m4/memcoll.m4 (gl_MEMCOLL):
69840         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
69841         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
69842         * m4/memxor.m4 (gl_MEMXOR):
69843         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
69844         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
69845         * m4/modechange.m4 (gl_MODECHANGE):
69846         * m4/mountlist.m4 (gl_MOUNTLIST):
69847         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69848         * m4/openat.m4 (gl_FUNC_OPENAT):
69849         * m4/pathmax.m4 (gl_PATHMAX):
69850         * m4/physmem.m4 (gl_PHYSMEM):
69851         * m4/posixtm.m4 (gl_POSIXTM):
69852         * m4/posixver.m4 (gl_POSIXVER):
69853         * m4/quote.m4 (gl_QUOTE):
69854         * m4/quotearg.m4 (gl_QUOTEARG):
69855         * m4/readtokens.m4 (gl_READTOKENS):
69856         * m4/readutmp.m4 (gl_READUTMP):
69857         * m4/regex.m4 (gl_REGEX):
69858         * m4/safe-read.m4 (gl_SAFE_READ):
69859         * m4/safe-write.m4 (gl_SAFE_WRITE):
69860         * m4/same.m4 (gl_SAME):
69861         * m4/save-cwd.m4 (gl_SAVE_CWD):
69862         * m4/savedir.m4 (gl_SAVEDIR):
69863         * m4/settime.m4 (gl_SETTIME):
69864         * m4/sha1.m4 (gl_SHA1):
69865         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
69866         * m4/stat-macros.m4 (gl_STAT_MACROS):
69867         * m4/stat-time.m4 (gl_STAT_TIME):
69868         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
69869         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
69870         * m4/strdup.m4 (gl_FUNC_STRDUP):
69871         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
69872         * m4/strndup.m4 (gl_FUNC_STRNDUP):
69873         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
69874         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
69875         * m4/time_r.m4 (gl_TIME_R):
69876         * m4/timespec.m4 (gl_TIMESPEC):
69877         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
69878         * m4/unlinkdir.m4 (gl_UNLINKDIR):
69879         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
69880         * m4/userspec.m4 (gl_USERSPEC):
69881         * m4/utimecmp.m4 (gl_UTIMECMP):
69882         * m4/utimens.m4 (gl_UTIMENS):
69883         * m4/xalloc.m4 (gl_XALLOC):
69884         * m4/xgetcwd.m4 (gl_XGETCWD):
69885         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
69886         * m4/xreadlink.m4 (gl_XREADLINK):
69887         * m4/xstrtod.m4 (gl_XSTRTOD):
69888         * m4/yesno.m4 (gl_YESNO):
69889         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69890         to get the necessary .h files and whatnot.
69891
69892 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
69893             Bruno Haible  <bruno@clisp.org>
69894
69895         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
69896         /bin/sh understanding of '!' conditional negation.
69897
69898 2006-08-21  Jim Meyering  <jim@meyering.net>
69899
69900         * modules/openat (Depends-on): Really alphabetize.
69901
69902         * modules/acl (Depends-on): Add error and quote.
69903
69904         * check-module (find_included_lib_files): Add at-func.c to the
69905         ok-to-include-more-than-once white list.
69906
69907         * modules/openat (Depends-on): Add lstat.  Alphabetize.
69908
69909 2006-08-21  Bruno Haible  <bruno@clisp.org>
69910
69911         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69912         Emit a pkgdata_DATA variable only if some snippets add contents to it.
69913         Reported by Martin Lambers <marlam@marlam.de>.
69914
69915 2006-08-21  Bruno Haible  <bruno@clisp.org>
69916
69917         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
69918         specify an installation location, don't emit a noinst_LIBRARIES or
69919         noinst_LTLIBRARIES assignment.
69920
69921 2006-08-21  Bruno Haible  <bruno@clisp.org>
69922
69923         BeOS portability.
69924         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
69925         BeOS has mbrtowc() but no <wctype.h>.
69926
69927 2006-08-21  Bruno Haible  <bruno@clisp.org>
69928
69929         BeOS portability.
69930         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
69931         exist.
69932
69933 2006-08-21  Bruno Haible  <bruno@clisp.org>
69934
69935         BeOS portability.
69936         * lib/mbchar.h: Include <wctype.h> only if it exists.
69937
69938 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69939
69940         Remove files that are no longer needed by their respective modules.
69941         * m4/obstack.m4: Remove.
69942         * m4/strerror_r.m4: Remove.
69943         * m4/uint32_t.m4: Remove.
69944         * m4/uintptr_t.m4: Remove.
69945         * m4/ullong_max.m4: Remove.
69946         * m4/xstrtoimax.m4: Remove.
69947         * m4/xstrtoumax.m4: Remove.
69948
69949         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
69950         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
69951         dependencies now capture this.
69952
69953         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
69954         Do not use AC_LIBSOURCES, since gnulib modules now do this.
69955         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
69956         * m4/human.m4 (gl_HUMAN): Likewise.
69957         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
69958         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
69959
69960         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
69961
69962         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
69963         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
69964         stdint.
69965         * m4/human.m4 (gl_HUMAN): Likewise.
69966         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
69967         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
69968         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69969         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69970         * m4/xstrtol (gl_XSTRTOL): Likewise.
69971
69972         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
69973         AC_TYPE_LONG_LONG_INT.
69974         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69975         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
69976         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
69977         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69978
69979         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
69980         on stdbool.
69981
69982         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
69983         (gl_PREREQ_XSTRTOUL): Remove.
69984
69985         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
69986
69987         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
69988         mode.
69989
69990 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69991
69992         Add and change modules to make it easier for coreutils to use
69993         gnulib-tool.
69994         * modules/backupfile (Files): Remove m4/d-ino.m4.
69995         (Depends-on): Add d-ino.
69996         * modules/cycle-check (Depends-on): Add stdint.
69997         (lib_SOURCES): Add cycle-check.h.
69998         * modules/d-ino: New module.
69999         * modules/d-type: New module.
70000         * modules/error (Files): Remove m4/strerror_r.m4.
70001         * modules/filemode (Files): Add m4/st_dm_mode.m4.
70002         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
70003         m4/inttypes_h.m4, m4/uintmax_t.m4.
70004         (Depends-on): Add stdint.
70005         (lib_SOURCES): Add fsusage.h.
70006         * modules/getcwd (Files): Remove d-ino.m4.
70007         (Depends-on): Add d-ino.
70008         * modules/getndelim2 (Depends-on): Add stdint.
70009         * modules/glob (Files): Remove m4/d-type.m4.
70010         (Depends-on): Add d-type.
70011         * modules/host-os: New module.
70012         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
70013         m4/inttypes_h.m4, m4/uintmax_t.m4.
70014         * Depends-on: Add stdint.
70015         (lib_SOURCES): Add human.h.
70016         * modules/inttostr (Files): Remove m4/intmax_t.m4,
70017         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
70018         m4/uintmax_t.m4, m4/ulonglong.m4.
70019         (Depends-on): Add stdint.
70020         (EXTRA_DIST): Add inttostr.h.
70021         * modules/lchmod: New module.
70022         * modules/link-follow: New module.
70023         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
70024         (Depends-on): Add lchmod.
70025         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
70026         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
70027         (Depends-on): Add stdint.
70028         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
70029         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
70030         (Depends-on): Add stdint.
70031         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
70032         * modules/perl: New module.
70033         * modules/regex (Depends-on): Add stdint.
70034         * modules/rmdir-errno: New module.
70035         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
70036         m4/intmax_t.m4.
70037         (Depends-on): Add stdint.
70038         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
70039         m4/uintmax_t.m4.
70040         (Depends-on): Add stdint.
70041         * modules/unlink-busy: New module.
70042         * modules/utimecmp (Depends-on): Add stdint.
70043         * modules/uptime: New module.
70044         * modules/winsz-ioctl: New module.
70045         * modules/winsz-termios: New module.
70046         * modules/xnanosleep (Depends-on): Add nanosleep.
70047         * modules/ullong_max: Remove.
70048         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
70049         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
70050         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
70051         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
70052         (Depends-on): Add inttypes.
70053         (lib_SOURCES): Add xstrtol.h.
70054         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
70055         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
70056         * MODULES.html.sh: Move 'assert' into the assert section.
70057         Move 'dummy' into the linking section.
70058         Remove ullong_max.
70059         Add section for compatibility checks for POSIX:2001 functions,
70060         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
70061         winsz-ioctl, and winsz-termios into it.
70062         Add lchmod.
70063         Add top-level Misc section and put host-os, perl, and uptime
70064         into it.
70065
70066 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70067
70068         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
70069         now assume the stdint module.  Do not include inttypes.h.
70070         * lib/fsusage.h: Likewise.
70071         * lib/getndelim2.c: Likewise.
70072         * lib/human.h: Likewise.
70073         * lib/inttostr.h: Likewise.
70074         * lib/obstack.c: Likewise.
70075         * lib/regex_internal.h: Likewise.
70076         * lib/tempname.c: Likewise.
70077         * lib/utimecmp.c: Likewise.
70078         * lib/xstrtol.h: Likewise.
70079
70080         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
70081
70082         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
70083         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
70084         * lib/xtime.h: Likewise.
70085
70086 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70087
70088         * modules/openat (Files): Add lib/fchmodat.c.
70089         Fixes problem reported by Jay Youngman.
70090
70091 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70092
70093         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
70094         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
70095
70096 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
70097             Bruno Haible  <bruno@clisp.org>
70098
70099         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
70100         and is a script that invokes bison. Tighten the code. Add comments.
70101
70102 2006-08-18  Jim Meyering  <jim@meyering.net>
70103
70104         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
70105         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
70106         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
70107         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
70108
70109 2006-08-18  Bruno Haible  <bruno@clisp.org>
70110
70111         * modules/bison-i18n: New file.
70112         * MODULES.html.sh (Internationalization functions): Add it.
70113
70114 2006-08-18  Bruno Haible  <bruno@clisp.org>
70115
70116         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
70117         sys/statvfs.h. When getmntinfo was found, check its declaration and
70118         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
70119
70120 2006-08-18  Bruno Haible  <bruno@clisp.org>
70121
70122         * m4/bison-i18n.m4: New file, from bison.
70123
70124 2006-08-18  Bruno Haible  <bruno@clisp.org>
70125
70126         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
70127         (ME_DUMMY): Treat "kernfs" as a dummy.
70128         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
70129
70130 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70131
70132         Update from coreutils.
70133
70134         2006-08-15  Jim Meyering  <jim@meyering.net>
70135
70136         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
70137
70138         2006-01-17  Jim Meyering  <jim@meyering.net>
70139
70140         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
70141
70142         2006-01-11  Jim Meyering  <jim@meyering.net>
70143
70144         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
70145         Check for the lchmod function.
70146
70147 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70148
70149         Update from coreutils.
70150
70151         * lib/__fpending.h: Add copyright notice.
70152         * lib/fprintftime.h: Likewise.
70153         * lib/savedir.c: Use (C) in copyright notice.
70154         * lib/savedir.h: Likewise.
70155
70156         2006-08-15  Jim Meyering  <jim@meyering.net>
70157
70158         * lib/at-func.c: New file, with the logic of all emulated at-functions.
70159         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
70160         in support of the EXPECTED_ERRNO macro.
70161         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
70162         definitions.  Instead, define the appropriate symbols and include
70163         "at-func.c".
70164         * lib/mkdirat.c (mkdirat): Likewise.
70165         * lib/fchmodat.c (fchmodat): Likewise.
70166         (ENOSYS): Remove definition.
70167         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
70168         it.  Don't include "unistd--.h" -- it wasn't ever used.
70169
70170         2006-01-17  Jim Meyering  <jim@meyering.net>
70171
70172         Rewrite fts.c not to change the current working directory,
70173         by using openat, fstatat, fdopendir, etc..
70174
70175         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
70176         (HAVE_OPENAT_SUPPORT): Define.
70177         [_LIBC] (fchdir): Don't undef or define; no longer used.
70178         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
70179         Now, this `function' always succeeds, and consumes its file descriptor
70180         parameter -- so callers must not close such FDs.  Update callers.
70181         (diropen_fd, opendirat, cwd_advance_fd): New functions.
70182         (diropen): Add parameter, SP.  Adjust all callers.
70183         Implement using diropen_fd, rather than open.
70184         (fts_open): Initialize new member, fts_cwd_fd.
70185         Remove fts_rft-setting code.
70186         (fts_close): Close fts_cwd_fd, if necessary.
70187         (__opendir2): Define in terms of opendir or opendirat,
70188         depending on whether the FST_NOCHDIR flag is set.
70189         (fts_build): Since fts_safe_changedir consumes its FD, and since
70190         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
70191         and close the dup'd file descriptor upon failure.
70192         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
70193         (fts_safe_changedir): Tweak semantics to reflect that this function
70194         now calls cwd_advance_fd and hence consumes its FD argument.
70195         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
70196         [struct FTS] (fts_rft): Remove now-unused member.
70197         [struct FTS] (fts_cycle.state): Improve comment.
70198
70199         * lib/openat.c (openat_needs_fchdir): New function.
70200         * lib/openat.h (openat_needs_fchdir): Declare it.
70201
70202 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
70203
70204         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
70205         Problem and fix reported by Pádraig Brady in
70206         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
70207
70208 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70209
70210         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
70211
70212 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70213
70214         * lib/memcoll.c (memcoll): Optimize for the common case where the
70215         arguments are bytewise equal.
70216
70217 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70218
70219         * doc/regexprops-generic.texi: Add a copyright notice.
70220
70221 2006-08-15  Bruno Haible  <bruno@clisp.org>
70222
70223         * modules/tmpdir (License): Change to LGPL.
70224
70225 2006-08-15  Bruno Haible  <bruno@clisp.org>
70226
70227         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
70228         module.
70229
70230 2006-08-14  Simon Josefsson  <jas@extundo.com>
70231
70232         * config/srclist.txt: Add gnupload.
70233
70234 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70235
70236         Change copyright notice from LGPL 2 to GPL 2, since that's the
70237         standard form used in the gnulib repository.
70238         * tests/test-lock.c: Likewise.
70239         * tests/test-stdint.c: Likewise.
70240         * tests/test-tls.c: Likewise.
70241
70242         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
70243         prelude-manager.  User shorter URLs for GNU projects, without '?'.
70244         Add copyright notice.
70245
70246         * check-module: Add copyright notice.  Output a copyright
70247         notice if "--version" is specified.
70248         * modules/COPYING: New file.
70249         * tests/test-getaddrinfo.c: Add copyright notice.
70250         * tests/test-verify.c: Likewise.
70251
70252 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70253
70254         Change copyright notice from LGPL 2 to GPL 2, since that's the
70255         standard form used in the gnulib repository.
70256         * lib/lock.c: LGPL -> GPL.
70257         * lib/lock.h: Likewise.
70258         * lib/strnlen1.c: Likewise.
70259         * lib/strnlen1.h: Likewise.
70260         * lib/tls.c: Likewise.
70261         * lib/tls.h: Likewise.
70262         * lib/tmpdir.c: Likewise.
70263
70264         * lib/TODO: Remove; this belongs only in coreutils.
70265
70266 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70267
70268         Add copyright notices to long-enough files that lack them, since
70269         otherwise the files aren't clearly free.  Use the same notice that
70270         getdate.texi already uses.
70271         * doc/alloca-opt.texi: Add copyright notice.
70272         * doc/alloca.texi: Likewise.
70273         * doc/ctime.texi: Likewise.
70274         * doc/functions.texi: Likewise.
70275         * doc/gcd.texi: Likewise.
70276         * doc/gnulib-tool.texi: Likewise.
70277         * doc/inet_ntoa.texi: Likewise.
70278         * doc/visibility.texi: Likewise.
70279
70280         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
70281         * doc/quote.texi: Add copyright notice.
70282
70283         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
70284         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
70285         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
70286         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
70287         is now obsolete, and give a pointer to the Sun list.
70288         Add copyright notice.
70289
70290 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70291
70292         * config/srclistvars.sh: Add copyright notice.
70293
70294 2006-08-14  Eric Blake  <ebb9@byu.net>
70295
70296         Import the following change from libc:
70297
70298         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
70299
70300         Upstream bug 2997.
70301         * lib/misc/error.c: Add space between program name and message if file
70302         name is missing.
70303
70304 2006-08-12  Karl Berry  <karl@gnu.org>
70305
70306         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
70307         remove, these originate in gnulib now.
70308
70309 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70310
70311         * doc/Makefile (standards.info standards.html standards.dvi):
70312         Also depend on make-stds.texi.
70313
70314 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70315
70316         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
70317         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
70318
70319         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
70320         in wchar_t.  Problem reported by Eric Blake.
70321
70322         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
70323         LEN is smaller than SIZE.  Suggested by Bruno Haible.
70324         Also, help the compiler to keep LEN in a register.
70325
70326 2006-08-11  Eric Blake  <ebb9@byu.net>
70327
70328         * users.txt: Sort.  Add tar.
70329
70330 2006-08-11  Bruno Haible  <bruno@clisp.org>
70331
70332         * users.txt: New file.
70333
70334 2006-08-11  Bruno Haible  <bruno@clisp.org>
70335
70336         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
70337         before <wchar.h>. Needed for OSF/1 and BSD/OS.
70338
70339 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
70340
70341         * modules/snprintf (Depends-on): Remove minmax.
70342         (Maintainer): Add self and Bruno.
70343
70344 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
70345
70346         * lib/.cppi-disable: Add snprintf.h, socket_.h.
70347         * lib/snprintf.c: Include <errno.h> and <limits.h>.
70348         (EOVERFLOW): Define if the system does not.
70349         Do not include "minmax.h"; it wasn't used.
70350         (snprintf): Don't assume size_t promotes to an unsigned type.
70351         Fix bug when generated string was too long for the buffer: the
70352         buffer's contents are supposed to be the initial prefix of the
70353         output.  Don't assume vasnprintf returns EOVERFLOW if the size
70354         exceeds INT_MAX; do the check ourselves.
70355
70356         Import the following changes from libc:
70357
70358         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
70359
70360         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
70361         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
70362         set wc to the byte which couldn't be converted.
70363         (re_string_reconstruct): Don't clear valid_raw_len before calling
70364         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
70365         tip_context using re_string_context_at.
70366
70367         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
70368
70369         * lib/posix/regex.h: g++ still cannot handled [restrict].
70370
70371         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
70372
70373         * lib/posix/regex.h: Remove special handling for VMS.
70374
70375 2006-08-10  Jim Meyering  <jim@meyering.net>
70376
70377         * modules/same-inode: New module.
70378         * modules/dev-ino: New module.
70379         * modules/cycle-check: Depend on these modules, rather than simply
70380         including their .h files.
70381         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
70382         required via m4/cycle-check.m4.
70383         * modules/same: Depend on new same-inode module, rather than
70384         including same-inode.h.
70385         * modules/chdir-safer: New file.
70386
70387         * modules/chown (Depends-on): Add stat-macros.
70388
70389 2006-08-10  Jim Meyering  <jim@meyering.net>
70390
70391         * m4/cycle-check.m4: New file.
70392         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
70393         * m4/dev-ino.m4, m4/same-inode.m4: New files.
70394
70395 2006-08-10  Eric Blake  <ebb9@byu.net>
70396
70397         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
70398         in from original proposal.
70399
70400 2006-08-10  Eric Blake  <ebb9@byu.net>
70401         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
70402
70403         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
70404         namespace.
70405
70406 2006-08-10  Bruno Haible  <bruno@clisp.org>
70407
70408         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
70409         as well.
70410
70411 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70412
70413         Sync from coreutils.
70414
70415         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
70416
70417         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
70418         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
70419
70420 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70421
70422         * modules/restrict: Remove; no longer needed now that we assume
70423         Autoconf 2.59 or later.
70424         * MODULES.html.sh: Remove 'restrict'.
70425         * modules/argp (Depends-on): Remove 'restrict'.
70426         * modules/base64 (Depends-on): Likewise.
70427         * modules/gc (Depends-on): Likewise.
70428         * modules/getaddrinfo (Depends-on): Likewise.
70429         * modules/glob (Depends-on): Likewise.
70430         * modules/inet_ntop (Depends-on): Likewise.
70431         * modules/inet_pton (Depends-on): Likewise.
70432         * modules/memxor (Depends-on): Likewise.
70433         * modules/regex (Depends-on): Likewise.
70434         * modules/strtok_r (Depends-on): Likewise.
70435         * modules/time_r (Depends-on): Likewise.
70436
70437 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70438
70439         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
70440         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
70441         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
70442         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
70443         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
70444         * m4/memxor.m4 (gl_MEMXOR): Likewise.
70445         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
70446         gl_C_RESTRICT replaced by AC_C_RESTRICT.
70447
70448         Merge from coreutils.
70449         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
70450         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
70451         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70452         * m4/time_r.m4 (gl_TIME_R): Likewise.
70453
70454 2006-08-09  Karl Berry  <karl@gnu.org>
70455
70456         * config/srclist.txt: no more gettext-tools, per Bruno.
70457
70458 2006-08-08  Eric Blake  <ebb9@byu.net>
70459
70460         * modules/verror: New module.
70461         * MODULES.html.sh: Document it.
70462
70463 2006-08-08  Eric Blake  <ebb9@byu.net>
70464
70465         * lib/verror.h, lib/verror.c: New files.
70466
70467 2006-08-08  Eric Blake  <ebb9@byu.net>
70468
70469         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
70470         verror_at_line output complies with GNU Coding Standards even when
70471         file is NULL.
70472
70473 2006-08-07  Bruno Haible  <bruno@clisp.org>
70474
70475         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
70476         versions of AIX.
70477         Reported by Ralf Wildenhues.
70478
70479 2006-08-07  Bruno Haible  <bruno@clisp.org>
70480
70481         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
70482         in an AC_DEFUN. Needed so that the autoconf snippets can use
70483         AC_REQUIRE.
70484
70485 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70486
70487         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70488         Initialize pkgdata_DATA.
70489         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
70490         overriding it.
70491
70492 2006-08-06  Eric Blake  <ebb9@byu.net>
70493
70494         * lib/error.h: Fold in some upstream changes from glibc.
70495         * lib/error.c: Likewise.
70496
70497 2006-08-04  Bruno Haible  <bruno@clisp.org>
70498
70499         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70500         Make the mostlyclean-local rule depend on mostlyclean-generic.
70501         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
70502
70503 2006-07-31  Bruno Haible  <bruno@clisp.org>
70504
70505         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
70506         <stdlib.h>, <string.h>.
70507
70508 2006-07-30  Bruno Haible  <bruno@clisp.org>
70509
70510         * modules/readlink (License): Change to LGPL.
70511
70512 2006-07-30  Bruno Haible  <bruno@clisp.org>
70513
70514         * modules/javaversion (Makefile.am): Distribute javaversion.java and
70515         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
70516         set PKGDATADIR to point to it.
70517
70518 2006-07-30  Bruno Haible  <bruno@clisp.org>
70519
70520         * modules/csharpexec (configure.ac): Comment out macro invocation.
70521         * modules/javaexec (configure.ac): Likewise.
70522         * modules/javacomp-script (configure.ac): Likewise.
70523
70524         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
70525
70526 2006-07-30  Bruno Haible  <bruno@clisp.org>
70527
70528         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
70529         linked-list.
70530
70531 2006-07-30  Bruno Haible  <bruno@clisp.org>
70532
70533         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
70534
70535 2006-07-30  Bruno Haible  <bruno@clisp.org>
70536
70537         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70538         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
70539         get removed.
70540
70541 2006-07-29  Bruno Haible  <bruno@clisp.org>
70542
70543         Make it possible for gnulib-tool to work with locally modified or
70544         augmented gnulib repositories.
70545         * gnulib-tool (func_usage): Document --local-dir option.
70546         (local_gnulib_dir): New variable.
70547         Handle --local-dir option.
70548         (func_lookup_file): New function.
70549         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
70550         (func_get_description, func_get_filelist, func_get_description,
70551         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
70552         func_get_automake_snippet, func_get_include_directive,
70553         func_get_license, func_get_maintainer): Use func_lookup_file.
70554         (func_import, func_create_testdir): Use func_lookup_file.
70555
70556 2006-07-29  Bruno Haible  <bruno@clisp.org>
70557
70558         * modules/setenv (Depends-on): Add unistd.
70559
70560 2006-07-29  Bruno Haible  <bruno@clisp.org>
70561
70562         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
70563
70564 2006-07-29  Bruno Haible  <bruno@clisp.org>
70565
70566         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
70567
70568 2006-07-29  Bruno Haible  <bruno@clisp.org>
70569
70570         * gnulib-tool (import, update): If there is no Makefile.am, look at
70571         aclocal.m4, instead of bailing out.
70572
70573 2006-07-29  Bruno Haible  <bruno@clisp.org>
70574
70575         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
70576         Categorize the options by when they are useful.
70577
70578 2006-07-29  Bruno Haible  <bruno@clisp.org>
70579
70580         * gnulib-tool (func_usage): Document option --no-libtool.
70581         Handle option --no-libtool.
70582         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
70583         for changed semantics of $libtool variable.
70584         (func_import): Likewise. If libtool is not used, show this through
70585         an option --no-libtool.
70586         (func_create_testdir): Update.
70587
70588 2006-07-29  Bruno Haible  <bruno@clisp.org>
70589
70590         * gnulib-tool (func_import): Extend error message about missing
70591         --doc-base.
70592
70593 2006-07-29  Bruno Haible  <bruno@clisp.org>
70594
70595         * gnulib-tool (func_import): Don't create the $docbase directory if
70596         there is no file to store there.
70597
70598 2006-07-29  Bruno Haible  <bruno@clisp.org>
70599
70600         * gnulib-tool (autoconf_minversion): If a --dir option is given and
70601         relevant, look for configure.ac there, not in the current directory.
70602         Also use a simple search for AC_PREREQ, not "autoconf --trace".
70603
70604 2006-07-29  Bruno Haible  <bruno@clisp.org>
70605
70606         * gnulib-tool (SORT): New variable.
70607         (func_usage): Undocument --assume-autoconf option.
70608         Remove --assume-autoconf option handling.
70609         (autoconf_minversion): Determine from the contents of configure.ac.
70610         (func_import): Remove autoconf_minversion handling.
70611         Suggested by Eric Blake.
70612
70613 2006-07-29  Bruno Haible  <bruno@clisp.org>
70614
70615         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
70616
70617 2006-07-29  Bruno Haible  <bruno@clisp.org>
70618
70619         * config/srclist.txt (*setenv.[ch]): Remove rules.
70620
70621 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70622
70623         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
70624
70625 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70626
70627         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
70628         arpa/inet.h.
70629
70630 2006-07-28  Simon Josefsson  <jas@extundo.com>
70631
70632         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
70633         * modules/inet_pton (Depends-on): Likewise.
70634
70635 2006-07-28  Simon Josefsson  <jas@extundo.com>
70636
70637         * m4/netinet_in_h.m4: New file.
70638
70639 2006-07-28  Simon Josefsson  <jas@extundo.com>
70640
70641         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
70642         #include's.
70643
70644 2006-07-28  Simon Josefsson  <jas@extundo.com>
70645
70646         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
70647         #include's.
70648
70649 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
70650
70651         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
70652         setgid on directories only if they set these bits.
70653         * lib/modechange.h: Remove obsolete comment about masks.
70654
70655 2006-07-28  Eric Blake  <ebb9@byu.net>
70656
70657         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
70658         macro expansion.
70659
70660 2006-07-28  Bruno Haible  <bruno@clisp.org>
70661
70662         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
70663
70664 2006-07-28  Bruno Haible  <bruno@clisp.org>
70665
70666         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
70667
70668 2006-07-28  Bruno Haible  <bruno@clisp.org>
70669
70670         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
70671         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
70672         Define fallbacks.
70673         Avoids link error on FreeBSD 4.x.
70674         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
70675
70676         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
70677         encoding.
70678         * lib/mbswidth.c (iswcntrl): Likewise.
70679
70680 2006-07-27  Bruno Haible  <bruno@clisp.org>
70681
70682         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
70683         test.
70684
70685 2006-07-27  Bruno Haible  <bruno@clisp.org>
70686
70687         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
70688         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
70689         defined.
70690
70691 2006-07-26  Eric Blake  <ebb9@byu.net>
70692
70693         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
70694
70695 2006-07-26  Eric Blake  <ebb9@byu.net>
70696
70697         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
70698         like mingw that lack mkstemp.
70699         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
70700         avoid compilation warning on mingw.
70701
70702 2006-07-26  Bruno Haible  <bruno@clisp.org>
70703
70704         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
70705         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
70706         INT_FAST*_MIN, INTPTR_MIN.
70707
70708 2006-07-25  Bruno Haible  <bruno@clisp.org>
70709
70710         * modules/version-etc (Depends-on): Add stdarg.
70711
70712 2006-07-25  Bruno Haible  <bruno@clisp.org>
70713
70714         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
70715         complex commands.
70716
70717 2006-07-25  Bruno Haible  <bruno@clisp.org>
70718
70719         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
70720         defined in <stdarg.h> or config.h.
70721
70722 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70723
70724         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
70725         (gl_STDIO_SAFER): Remove.
70726
70727 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70728
70729         * MODULES.html.sh (File stream based Input/Output):
70730         Add fopen-safer, tmpfile-safer; remove stdio-safer.
70731         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
70732         * modules/fopen-safer, modules/tmpfile-safer: New files.
70733         * modules/stdio-safer: Remove.
70734
70735 2006-07-24  Bruno Haible  <bruno@clisp.org>
70736
70737         * modules/tmpdir: New file.
70738         * MODULES.html.sh (File system functions): Add it.
70739
70740 2006-07-24  Bruno Haible  <bruno@clisp.org>
70741
70742         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
70743         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
70744
70745 2006-07-24  Bruno Haible  <bruno@clisp.org>
70746
70747         * modules/clean-temp: New file.
70748
70749 2006-07-24  Bruno Haible  <bruno@clisp.org>
70750
70751         * m4/tmpdir.m4: New file, from GNU gettext.
70752
70753 2006-07-24  Bruno Haible  <bruno@clisp.org>
70754
70755         * lib/tmpdir.h: New file, from GNU gettext.
70756         * lib/tmpdir.c: New file, from GNU gettext.
70757
70758 2006-07-24  Bruno Haible  <bruno@clisp.org>
70759
70760         * lib/clean-temp.h: New file, from GNU gettext.
70761         * lib/clean-temp.c: New file, from GNU gettext.
70762
70763 2006-07-23  Eric Blake  <ebb9@byu.net>
70764
70765         * modules/stdio-safer (Files): Add tmpfile-safer.c.
70766         (Depends-on): Add binary-io.
70767
70768 2006-07-23  Eric Blake  <ebb9@byu.net>
70769
70770         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
70771
70772 2006-07-23  Eric Blake  <ebb9@byu.net>
70773
70774         * lib/tmpfile-safer.c: New file.
70775         * lib/stdio-safer.h (fopen_safer): Add prototype.
70776         * lib/stdio--.h (tmpfile): Make safer.
70777
70778 2006-07-23  Bruno Haible  <bruno@clisp.org>
70779
70780         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
70781         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
70782         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
70783         gl_linked_remove_at): Use it.
70784
70785 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70786         and Simon Josefsson <jas@extundo.com>
70787
70788         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
70789
70790         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
70791
70792 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70793
70794         * modules/close-stream: New file.
70795         * modules/closeout (Description): Make it clear that it exits
70796         with a diagnostic on error.
70797         (Depends-on): Add close-stream.  Remove fpending, stdbool.
70798         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
70799
70800 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70801
70802         * m4/close-stream.m4: New file.
70803
70804 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70805
70806         * lib/close-stream.c, lib/close-stream.h: New files.
70807
70808 2006-07-22  Bruno Haible  <bruno@clisp.org>
70809
70810         Merge from GNU gettext 0.15.
70811
70812         2006-05-01  Bruno Haible  <bruno@clisp.org>
70813
70814                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
70815
70816         2006-07-22  Bruno Haible  <bruno@clisp.org>
70817
70818                 * modules/javaversion: New file.
70819                 * MODULES.html.sh (Java): Add javaversion.
70820
70821         2006-03-12  Bruno Haible  <bruno@clisp.org>
70822
70823                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
70824
70825         2005-12-04  Bruno Haible  <bruno@clisp.org>
70826
70827                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
70828                 (untested).
70829
70830         2006-06-21  Bruno Haible  <bruno@clisp.org>
70831
70832                 Avoid warnings from recent versions of mcs.
70833                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
70834                 -o, -L, -r any more. Use options documented since mcs-1.0
70835                 instead. Similarly for -g.
70836
70837         2005-12-04  Bruno Haible  <bruno@clisp.org>
70838
70839                 * build-aux/csharpcomp.sh.in: Suffix for resources is
70840                 .resources, not .resource.
70841
70842         2005-07-09  Bruno Haible  <bruno@clisp.org>
70843
70844                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
70845                 add a .dll suffix.
70846                 Reported by Mark Junker <mjscod@gmx.de>.
70847
70848         2006-07-22  Bruno Haible  <bruno@clisp.org>
70849
70850                 * modules/gettext: Upgrade to gettext-0.15.
70851                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
70852                 m4/visibility.m4.
70853                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
70854
70855 2006-07-22  Bruno Haible  <bruno@clisp.org>
70856
70857         Merge from GNU gettext 0.15.
70858
70859         2006-03-25  Bruno Haible  <bruno@clisp.org>
70860
70861                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
70862
70863         2006-07-21  Bruno Haible  <bruno@clisp.org>
70864
70865                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
70866                 "1.1".
70867
70868         2006-05-09  Bruno Haible  <bruno@clisp.org>
70869
70870                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
70871                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
70872                 for the conftestver execution.
70873
70874         2006-05-01  Bruno Haible  <bruno@clisp.org>
70875
70876                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
70877                 optional target-version argument. Verify that the compiler
70878                 groks source of the specified source-version, or add -source
70879                 option as necessary. Verify that the compiler produces
70880                 bytecode in the specified target-version, or add -target and
70881                 -source options as necessary. Make the result of the test
70882                 available as variable CONF_JAVAC. Also log error output in
70883                 config.log.
70884
70885         2006-03-11  Bruno Haible  <bruno@clisp.org>
70886
70887                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
70888
70889         2006-05-09  Bruno Haible  <bruno@clisp.org>
70890
70891                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
70892                 CLASSPATH_SEPARATOR to a semicolon.
70893
70894         2006-03-12  Bruno Haible  <bruno@clisp.org>
70895
70896                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
70897                 available as variable CONF_JAVA, for subsequent autoconf
70898                 tests. Also log error output in config.log.
70899
70900         2006-07-19  Bruno Haible  <bruno@clisp.org>
70901
70902                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
70903                 that getline works on glibc2 systems. Needed to avoid trouble
70904                 in relocatable.c.
70905                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
70906
70907         2005-12-04  Bruno Haible  <bruno@clisp.org>
70908
70909                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
70910                 launcher (untested).
70911
70912         2005-12-04  Bruno Haible  <bruno@clisp.org>
70913
70914                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
70915
70916         2006-07-22  Bruno Haible  <bruno@clisp.org>
70917
70918                 * gettext.m4: Update from GNU gettext-0.15.
70919                 * nls.m4: Likewise.
70920                 * po.m4: Likewise.
70921                 * inttypes-pri.m4: Likewise.
70922                 * inttypes-h.m4: Renamed from inttypes.m4.
70923                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
70924
70925 2006-07-22  Bruno Haible  <bruno@clisp.org>
70926
70927         Merge from GNU gettext 0.15.
70928
70929         2005-07-05  Bruno Haible  <bruno@clisp.org>
70930
70931                 * printf-args.c (printf_fetchargs): Work around broken
70932                 definition of wint_t on mingw.
70933
70934         2005-02-12  Bruno Haible  <bruno@clisp.org>
70935
70936                 * xallocsa.h: Add extern "C" for C++.
70937
70938         2006-05-17  Bruno Haible  <bruno@clisp.org>
70939
70940                 Cygwin portability.
70941                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
70942
70943         2006-04-30  Bruno Haible  <bruno@clisp.org>
70944
70945                 * progreloc.c: Include <mach-o/dyld.h> if available.
70946                 (find_executable): Use _NSGetExecutablePath when possible.
70947
70948         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
70949
70950                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
70951                 function.
70952
70953         2005-12-29  Bruno Haible  <bruno@clisp.org>
70954
70955                 * progreloc.c (set_program_name_and_installdir): Fix
70956                 compilation error.
70957
70958         2005-12-04  Bruno Haible  <bruno@clisp.org>
70959
70960                 Cygwin portability.
70961                 * progreloc.c: Include <windows.h> also on Cygwin.
70962                 (find_executable): Add support for Cygwin.
70963                 (set_program_name_and_installdir): Handle also platforms with
70964                 nonempty EXEEXT.
70965
70966         2006-07-11  Bruno Haible  <bruno@clisp.org>
70967
70968                 * javacomp.c: Fix a comment.
70969                 Reported by Jim Meyering.
70970
70971         2006-04-30  Bruno Haible  <bruno@clisp.org>
70972
70973                 * javacomp.h (compile_java_class): Add source_version,
70974                 target_version arguments.
70975                 * javacomp.c: Rewritten to choose only a compiler that
70976                 respects the specified source_version and target_version.
70977
70978         2006-06-27  Bruno Haible  <bruno@clisp.org>
70979
70980                 Assume correct S_ISDIR macro.
70981                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
70982
70983         2006-07-22  Bruno Haible  <bruno@clisp.org>
70984
70985                 * javaversion.h: New file, from GNU gettext.
70986                 * javaversion.c: New file, from GNU gettext.
70987                 * javaversion.java: New file, from GNU gettext.
70988                 * javaversion.class: New file, from GNU gettext.
70989
70990         2006-05-17  Bruno Haible  <bruno@clisp.org>
70991
70992                 Cygwin portability.
70993                 * javaexec.c (execute_java_class): Test for jview program
70994                 also on Cygwin.
70995
70996         2006-04-09  Bruno Haible  <bruno@clisp.org>
70997
70998                 * fatal-signal.c: Don't include string.h.
70999                 (at_fatal_signal): Use a copying loop instead of memcpy.
71000
71001         2005-12-04  Bruno Haible  <bruno@clisp.org>
71002
71003                 * csharpexec.c: Add support for 'clix' launcher (untested).
71004                 (execute_csharp_using_sscli): New function.
71005                 (execute_csharp_program): Call it.
71006
71007         2006-06-21  Bruno Haible  <bruno@clisp.org>
71008
71009                 Avoid warnings from recent versions of mcs.
71010                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
71011                 -o, -L, -r any more. Use options documented since mcs-1.0
71012                 instead. Similarly for -g.
71013
71014         2005-07-09  Bruno Haible  <bruno@clisp.org>
71015
71016                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
71017                 add a .dll suffix.
71018                 Reported by Mark Junker <mjscod@gmx.de>.
71019
71020         2006-06-17  Bruno Haible  <bruno@clisp.org>
71021
71022                 * config.charset: Update for NetBSD 3.0.
71023
71024         2006-05-17  Bruno Haible  <bruno@clisp.org>
71025
71026                 Cygwin portability.
71027                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
71028
71029         2006-05-16  Bruno Haible  <bruno@clisp.org>
71030
71031                 * localcharset.c [CYGWIN]: Include <windows.h>.
71032                 (get_charset_aliases): For Cygwin, return the same CPxxx
71033                 aliases list as under WIN32.
71034                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
71035                 the environment variables. Fall back to GetACP().
71036
71037         2006-04-05  Bruno Haible  <bruno@clisp.org>
71038
71039                 * config.charset: Update Juan Manuel Guerrero's address.
71040
71041         2005-02-12  Bruno Haible  <bruno@clisp.org>
71042
71043                 * allocsa.h: Add extern "C" for C++.
71044
71045         2005-02-10  Bruno Haible  <bruno@clisp.org>
71046
71047                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
71048                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
71049
71050         2006-07-22  Bruno Haible  <bruno@clisp.org>
71051
71052                 * gettext.h: Update to GNU gettext-0.15.
71053
71054 2006-07-22  Bruno Haible  <bruno@clisp.org>
71055
71056         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
71057         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
71058         lib-prefix.m4, longdouble.m4, ssize_t.m4.
71059
71060 2006-07-21  Eric Blake  <ebb9@byu.net>
71061
71062         * modules/stdlib-safer: New file.
71063         * MODULES.html.sh (File stream based Input/Output): Add
71064         stdlib-safer.
71065
71066 2006-07-21  Eric Blake  <ebb9@byu.net>
71067
71068         * lib/stdlib-safer.h: New file from coreutils, required by
71069         stdlib--.h.
71070
71071 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
71072
71073         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
71074
71075 2006-07-20  Bruno Haible  <bruno@clisp.org>
71076
71077         * gnulib-tool: Recognize new option --assume-autoconf.
71078         (autoconf_minversion): New variable.
71079         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
71080
71081 2006-07-20  Bruno Haible  <bruno@clisp.org>
71082
71083         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
71084
71085 2006-07-19  Derek R. Price  <derek@ximbiot.com>
71086
71087         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
71088         Reindent and repaginate.
71089
71090 2006-07-19  Derek Price  <derek@ximbiot.com>
71091
71092         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
71093         Correct grammar.
71094
71095 2006-07-17  Bruno Haible  <bruno@clisp.org>
71096
71097         * modules/list: New file.
71098         * modules/array-list: New file.
71099         * modules/carray-list, modules/carray-list-tests: New files.
71100         * modules/linked-list, modules/linked-list-tests: New files.
71101         * modules/avltree-list, modules/avltree-list-tests: New files.
71102         * modules/rbtree-list, modules/rbtree-list-tests: New files.
71103         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
71104         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
71105         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
71106         * modules/oset: New file.
71107         * modules/array-oset: New file.
71108         * modules/avltree-oset, modules/avltree-oset-tests: New files.
71109         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
71110         * tests/test-carray_list.c: New file.
71111         * tests/test-linked_list.c: New file.
71112         * tests/test-avltree_list.c: New file.
71113         * tests/test-rbtree_list.c: New file.
71114         * tests/test-linkedhash_list.c: New file.
71115         * tests/test-avltreehash_list.c: New file.
71116         * tests/test-rbtreehash_list.c: New file.
71117         * tests/test-avltree_oset.c: New file.
71118         * tests/test-rbtree_oset.c: New file.
71119         * MODULES.html.sh (Container data structures): New section.
71120
71121 2006-07-17  Bruno Haible  <bruno@clisp.org>
71122
71123         * m4/gl_list.m4: New file.
71124
71125 2006-07-17  Bruno Haible  <bruno@clisp.org>
71126
71127         * lib/gl_list.h: New file.
71128         * lib/gl_list.c: New file.
71129         * lib/gl_array_list.h: New file.
71130         * lib/gl_array_list.c: New file.
71131         * lib/gl_carray_list.h: New file.
71132         * lib/gl_carray_list.c: New file.
71133         * lib/gl_linked_list.h: New file.
71134         * lib/gl_linked_list.c: New file.
71135         * lib/gl_anylinked_list1.h: New file.
71136         * lib/gl_anylinked_list2.h: New file.
71137         * lib/gl_avltree_list.h: New file.
71138         * lib/gl_avltree_list.c: New file.
71139         * lib/gl_anyavltree_list1.h: New file.
71140         * lib/gl_anyavltree_list2.h: New file.
71141         * lib/gl_rbtree_list.h: New file.
71142         * lib/gl_rbtree_list.c: New file.
71143         * lib/gl_anyrbtree_list1.h: New file.
71144         * lib/gl_anyrbtree_list2.h: New file.
71145         * lib/gl_anytree_list1.h: New file.
71146         * lib/gl_anytree_list2.h: New file.
71147         * lib/gl_linkedhash_list.h: New file.
71148         * lib/gl_linkedhash_list.c: New file.
71149         * lib/gl_anyhash_list1.h: New file.
71150         * lib/gl_anyhash_list2.h: New file.
71151         * lib/gl_avltreehash_list.h: New file.
71152         * lib/gl_avltreehash_list.c: New file.
71153         * lib/gl_rbtreehash_list.h: New file.
71154         * lib/gl_rbtreehash_list.c: New file.
71155         * lib/gl_anytreehash_list1.h: New file.
71156         * lib/gl_anytreehash_list2.h: New file.
71157
71158         * lib/gl_oset.h: New file.
71159         * lib/gl_oset.c: New file.
71160         * lib/gl_array_oset.h: New file.
71161         * lib/gl_array_oset.c: New file.
71162         * lib/gl_avltree_oset.h: New file.
71163         * lib/gl_avltree_oset.c: New file.
71164         * lib/gl_rbtree_oset.h: New file.
71165         * lib/gl_rbtree_oset.c: New file.
71166         * lib/gl_anytree_oset.h: New file.
71167
71168 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71169
71170         * m4/mkancesdirs.m4: New file.
71171         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
71172         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
71173         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
71174         it.
71175
71176 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71177
71178         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
71179         * lib/mkancesdirs.h: New files.
71180         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
71181         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
71182         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
71183         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
71184         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
71185         callers changed.  Revamp internals significantly, by not
71186         attempting to create directories that are temporarily more
71187         permissive than the final results.  Do not attempt to use
71188         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
71189         This removes some race conditions, fixes some bugs, and simplifies
71190         things.  Use new dirchownmod function to do owner and mode changes.
71191         * lib/mkdir-p.h: Likewise.
71192         * lib/modechange.c (octal_to_mode): New function.
71193         (struct mode_change): New member mentioned.
71194         (make_node_op_equals): New arg mentioned.  All callers changed.
71195         (mode_compile): Keep track of which mode bits the user has explicitly
71196         mentioned.
71197         (mode_adjust): New arg DIR, so that we implement the X op correctly.
71198         New arg PMODE_BITS, to keep track of which mode bits the user
71199         mentioned; it treats S_ISUID and S_ISGID speciall.
71200         All callers changed.
71201         * lib/modechange.h: Likewise.
71202
71203 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71204
71205         * MODULES.html.sh: Add mkancestors.
71206         * modules/mkancesdirs: New module.
71207         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
71208         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
71209         The chdir-safer and afs files are now orphans; I'll remove them
71210         unless someone speaks up.
71211         Add lib/dirchownmod.c, lib/dirchownmod.h.
71212         (Depends-on): Remove alloca, chown, save-cwd, dirname.
71213         Add lchown, mkancesdirs.
71214         (Maintainer): Add self.
71215
71216 2006-07-15  Karl Berry  <karl@gnu.org>
71217
71218         * gnulib-tool: help message wording/arrangement.
71219
71220 2006-07-14  Simon Josefsson  <jas@extundo.com>
71221
71222         * doc/gnulib.texi (Libtool and Windows): New section.
71223
71224 2006-07-12  Simon Josefsson  <jas@extundo.com>
71225
71226         * modules/gendocs (License): Fix license, approved by Karl.
71227
71228 2006-07-12  Eric Blake  <ebb9@byu.net>
71229
71230         * MODULES.html.sh: Add gendocs.
71231
71232 2006-07-11  Eric Blake  <ebb9@byu.net>
71233
71234         * modules/fdl: New module, to install doc/fdl.texi.
71235         * MODULES.html.sh: Add new section for documentation modules.
71236         * gnulib-tool: Avoid space-tab.
71237         (--doc-base): New option, to manage files from doc.
71238
71239 2006-07-11  Eric Blake  <ebb9@byu.net>
71240
71241         * m4/absolute-header.m4: Fix comments to match recent change.
71242
71243 2006-07-11  Eric Blake  <ebb9@byu.net>
71244
71245         * gnulib-tool: List --doc-base before --tests-base.
71246
71247 2006-07-11  Derek R. Price  <derek@ximbiot.com>
71248
71249         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
71250
71251 2006-07-11  Bruno Haible  <bruno@clisp.org>
71252
71253         * README: Mention where to put documentation.
71254
71255 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71256
71257         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
71258
71259 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
71260
71261         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
71262         to stdint.m4.
71263
71264 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
71265
71266         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
71267         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
71268         "no/such/file/stdint.h" when there is no such file, so that
71269         the resulting C code can be parsed by dodgy compilers.
71270         Problems reported by Bob Proulx.
71271
71272 2006-07-10  Derek R. Price  <derek@ximbiot.com>
71273
71274         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
71275         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
71276         macros into the GNU _D_EXACT_NAMLEN.
71277         * lib/savedir.c:  Likewise.
71278         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
71279
71280 2006-07-10  Derek R. Price  <derek@ximbiot.com>
71281         and Paul Eggert  <eggert@cs.ucla.edu>
71282
71283         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
71284         * m4/savedir.m4:
71285         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
71286         macros into the GNU _D_EXACT_NAMLEN.
71287
71288 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71289
71290         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
71291         around the absolute name, to work around a problem with the HP-UX
71292         11.23 native C compiler, reported by Bob Proulx.
71293
71294 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71295
71296         * doc/maintain.texi, make-stds.texi: Sync from
71297         <http://savannah.gnu.org/projects/gnustandards>.
71298
71299 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71300
71301         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
71302
71303 2006-07-09  Jim Meyering  <jim@meyering.net>
71304
71305         * m4/glob.m4: Remove a doubled word in a comment.
71306
71307 2006-07-09  Jim Meyering  <jim@meyering.net>
71308
71309         * lib/argp-pv.c: Remove a doubled word in a comment.
71310         * lib/check-version.c (check_version): Likewise.
71311         * lib/javacomp.c (compile_java_class): Likewise.
71312
71313 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
71314
71315         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
71316         for the benefit of people using Autoconf 2.60.  If you want to
71317         support older Autoconf versions you can copy m4/onceonly_2_57.m4
71318         (or m4/onceonly.m4, if pre-2.57) manually.
71319
71320 2006-07-08  Jim Meyering  <jim@meyering.net>
71321
71322         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
71323         comment.
71324         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
71325         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
71326         comment.
71327
71328 2006-07-08  Jim Meyering  <jim@meyering.net>
71329
71330         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
71331
71332 2006-07-07  Simon Josefsson  <jas@extundo.com>
71333
71334         * tests/test-crc.c: Change expected crc value, the test vector
71335         were probably computed using the old broken crc.c?
71336
71337 2006-07-06  Simon Josefsson  <jas@extundo.com>
71338
71339         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
71340         now the canonical place for the M4 file).
71341
71342         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
71343         from the sys_socket dependency now.
71344
71345         * modules/inet_pton (Files): Ditto.
71346
71347         * modules/inet_ntop (Files): Ditto.
71348
71349 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71350
71351         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
71352         not gl_PREREQ_GETUSERSHELL.
71353
71354 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71355
71356         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
71357         with only one argument, for Autoconf 2.60.
71358         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
71359         expand to nothing, so add a shell command to avoid syntax error.
71360         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
71361
71362 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71363
71364         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
71365
71366 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71367
71368         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
71369         no longer needed.  Check for isblank decl.
71370         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
71371         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
71372         of existence.
71373
71374 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71375
71376         * lib/getloadavg.c: Use __VMS, not VMS.
71377         * lib/getopt.c: Likewise.
71378         * lib/getpagesize.h: Likewise.
71379         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
71380         and probably does not work.
71381
71382 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71383
71384         * lib/.cppi-disable: Add wcwidth.
71385         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
71386         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
71387         (ISGRAPH): Remove.  All uses changed to isgraph.
71388         (FOLD) [!defined _LIBC]: Remove special case.
71389         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
71390         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
71391         HAVE_ISBLANK.
71392         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
71393         case.
71394
71395 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
71396
71397         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
71398         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
71399         brackets.  Other minor changes to suppress some compiler
71400         warnings.
71401
71402 2006-07-06  Derek R. Price  <derek@ximbiot.com>
71403         and Paul Eggert  <eggert@cs.ucla.edu>
71404
71405         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
71406         of invoking obsolescent AC_HEADER_DIRENT macro.
71407         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
71408         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
71409         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
71410         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
71411         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
71412         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
71413         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
71414         * m4/readdir.m4: Remove; no longer needed.
71415
71416 2006-07-06  Derek R. Price  <derek@ximbiot.com>
71417         and Paul Eggert  <eggert@cs.ucla.edu>
71418
71419         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
71420         Don't worry about this obsolete case any more.
71421         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
71422         directories.
71423         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
71424         worry about this obsolete case any more.
71425         * lib/fts.c: Likewise.
71426         * lib/getcwd.c: Likewise.
71427         * lib/glob.h: Likewise.
71428         * lib/savedir.c: Likewise.
71429
71430 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71431
71432         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
71433         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
71434         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
71435         needed.
71436         All uses removed.
71437         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71438         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
71439         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
71440         needed.
71441         * m4/getdate.m4 (gl_GETDATE): Likewise.
71442         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
71443         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
71444         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
71445         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71446         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
71447         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71448         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
71449         needed.
71450
71451 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71452
71453         * lib/memcasecmp.c: Include <limits.h>.
71454         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
71455         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
71456         Don't assume isdigit succeeds only on '0' through '9'.
71457
71458 2006-07-05  Eric Blake  <ebb9@byu.net>
71459
71460         * modules/getaddrinfo (Depends-on): Add snprintf.
71461
71462 2006-07-05  Eric Blake  <ebb9@byu.net>
71463
71464         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
71465         to avoid 'header present but could not be compiled' on cygwin.
71466
71467 2006-07-05  Eric Blake  <ebb9@byu.net>
71468
71469         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
71470         missing from netdb.h.
71471         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
71472
71473 2006-07-05  Derek R. Price  <derek@ximbiot.com>
71474
71475         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
71476         no longer needed.
71477         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
71478         * m4/getdate.m4 (gl_GETDATE): Likewise.
71479         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
71480         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
71481         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
71482         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71483         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71484
71485 2006-07-05  Derek R. Price  <derek@ximbiot.com>
71486
71487         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
71488         All uses of is_space replaced by isspace.
71489         * lib/exit.h: Don't talk about STDC_HEADERS.
71490         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
71491         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
71492         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
71493         replaced by isprint etc.
71494         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
71495         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
71496         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
71497         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
71498         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
71499         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
71500
71501 2006-07-05  Bruno Haible  <bruno@clisp.org>
71502
71503         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
71504         the function exists, before testing against AIX.
71505         Reported by Martin Lambers <marlam@marlam.de>.
71506
71507 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
71508
71509         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
71510         From Mark D. Baushke.
71511
71512 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
71513
71514         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
71515         to the absolute name, not just one, to bypass Sun C 5.8's
71516         "warning: #include of /usr/include/... may be non-portable".
71517
71518 2006-07-04  Eric Blake  <ebb9@byu.net>
71519
71520         * modules/dirname-tests: New test module.
71521         * tests/test-dirname.c: New file, replacing dirname.c
71522         TEST_DIRNAME section that was recently deleted.
71523
71524 2006-07-04  Bruno Haible  <bruno@clisp.org>
71525
71526         Assume ANSI C header files and <ctype.h> functions.
71527         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
71528         (mbsnwidth): Use isprint, iscntrl instead.
71529
71530 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71531
71532         Merge from coreutils.
71533         * MODULES.html.sh: Add xstrtold.
71534         * modules/xstrtold: New file.
71535         * modules/cycle-check (Files): Add lib/same-inode.h.
71536         * modules/dirname (Files): Add m4/double-slash-root.m4.
71537         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
71538         * modules/mkdir-p (Files): Add lib/same-inode.h.
71539         * modules/same (Files): Add lib/same-inode.h.
71540
71541 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71542
71543         * m4/absolute-header.m4: Renamed from full-header-path.m4.
71544         This is to keep the terminology clean; POSIX talks about
71545         "absolute pathnames", not "full pathnames", but the GNU
71546         Coding Standards say to use "path" for something else;
71547         so use "absolute" to keep both sides happy.
71548         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
71549         Set gl_absolute_header, not gl_full_header_path.
71550         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
71551         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
71552         All uses changed.
71553
71554         Merge from coreutils.
71555
71556         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
71557
71558         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
71559         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
71560         want to require the building of c-strtod.o.
71561         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
71562         needs -lm directly.
71563         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
71564
71565         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71566
71567         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
71568         --as-needed option if available.  Problem reported by Albert Chin in
71569         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
71570         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
71571         cc merely issues a bunch of annoying warnings for --as-needed
71572         (this problem was reported by Bob Proulx).  Also, try linking with
71573         -lm to detect a bug in binutils 2.16 (this problem was reported
71574         by Ralf Wildenhues).
71575
71576         2006-06-18  Jim Meyering  <jim@meyering.net>
71577
71578         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
71579         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
71580         macro.
71581         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
71582         also check for glibc-2.4's abort-inducing bug.
71583
71584         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
71585         Low-probability clean-up should be to use rmdir to get rid of
71586         the just-created directory, not unlink.
71587
71588         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
71589         configure fail, and request a bug report to inform us about it.
71590         Add a comment that, barring reports to the contrary, in 2007 we'll
71591         assume ftruncate is universally available.
71592
71593         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
71594
71595         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
71596
71597         2006-03-12  Jim Meyering  <jim@meyering.net>
71598
71599         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
71600         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
71601         * m4/same.m4 (gl_SAME): Likewise.
71602         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
71603
71604         2006-03-11  Eric Blake  <ebb9@byu.net>
71605
71606         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
71607         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
71608         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
71609         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
71610
71611 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71612
71613         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
71614         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
71615         reported by Mark D. Baushke, one in
71616         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
71617
71618         Merge from coreutils.
71619
71620         * lib/.cppi-disable: Add stdint_.h.
71621         * lib/.cvsignore: Add stdint.h.
71622
71623         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
71624
71625         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
71626         both double and long double versions.
71627         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
71628         * lib/xstrtold.c: New file.
71629         * lib/xstrtod.h (xstrtold): New decl.
71630
71631         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
71632
71633         * lib/filemode.c (setst): Remove.
71634         (strmode): Rewrite to avoid setst.  This makes the code shorter,
71635         (arguably) clearer, and the generated code is a bit smaller on my
71636         Debian GNU/Linux stable x86 host.
71637
71638         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
71639
71640         * lib/filemode.c: Include "filemode.h" first, to test the interface.
71641         Assume that filemode.h includes sys/types.h and sys/stat.h.
71642         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
71643         (ftypelet): Reorder to put common cases first, for efficiency.
71644         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
71645         to do 'M'.
71646         (strmode): Renamed from mode_string, and now stores 12 bytes instead
71647         of 10, for compatibility with FreeBSD.  All callers changed.
71648         (filemodestring): Now stores 12 bytes instead of 10, and sets file
71649         types that can't be deduced solely from st_mode.  First arg is now a
71650         const pointer.
71651         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
71652         (strmode): Renamed from mode_string.
71653         (filemodestring): New decl.
71654         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
71655         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
71656         needed.
71657         (S_ISPORT, S_ISWHT): New macros, if not already defined.
71658
71659         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
71660
71661         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
71662         fsusage.h now does that.  Include fsusage.h first, to test interface.
71663         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
71664         at most one method (the old code could have generated decls that
71665         didn't conform to C89, not that this was ever exercised).
71666         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
71667
71668         2006-03-19  Jim Meyering  <jim@meyering.net>
71669
71670         Work even in a chroot where d_ino values for entries in "/"
71671         don't match the stat.st_ino values for the same names.
71672         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
71673         number, iterate through all entries again, using lstat instead.
71674         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
71675         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
71676
71677         * lib/getcwd.c (__getcwd): Clarify a comment.
71678         Use memcpy in place of a call to strcpy.
71679
71680         2006-03-12  Jim Meyering  <jim@meyering.net>
71681
71682         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
71683         matches that of the current directory (which we're about to chdir ".."
71684         out of), then save the dev-ino of the parent, instead.
71685
71686         * lib/same-inode.h (SAME_INODE): New file/macro.
71687         * lib/chdir-safer.c (SAME_INODE): Remove definition.
71688         Include "same-inode.h", instead.
71689         * lib/same.c: Likewise.
71690         * lib/cycle-check.h: Include "same-inode.h".
71691         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
71692         * lib/cycle-check.c (SAME_INODE): Remove definition.
71693         * lib/root-dev-ino.h: Include "same-inode.h".
71694
71695         2006-03-11  Eric Blake  <ebb9@byu.net>
71696
71697         * lib/same.c (same_name): s/base_name/last_component/
71698         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
71699         * lib/filenamecat.c (file_name_concat): Likewise.
71700
71701         2006-03-11  Eric Blake  <ebb9@byu.net>,
71702                     Paul Eggert  <eggert@cs.ucla.edu>
71703
71704         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
71705         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
71706         drive prefix.
71707         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
71708         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
71709         (last_component): New method.
71710         * lib/dirname.c (dir_len): Determine when drive letters need a
71711         subsequent slash.  Preserve // when it is special.
71712         (dir_name): Don't append dot when drive letter is absolute.
71713         [TEST_DIRNAME]: Move into a full-blown gnulib test.
71714         * lib/basename.c (base_name): New semantics - malloc the result.
71715         Preserve // when it is special.  Preserve relative files that look
71716         like drive letters.
71717         (base_len): Preserve // when it is special.
71718         (last_component): New method, similar to old base_name semantics.
71719         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
71720         base_name.  Strip redundant slashes from ///.
71721
71722 2006-07-03  Jim Meyering  <jim@meyering.net>
71723
71724         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
71725         macro is used before the first cycle_check call.
71726
71727 2006-07-03  Eric Blake  <ebb9@byu.net>
71728
71729         * modules/dirname (Depends-on): Add xstrndup.
71730
71731 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71732
71733         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
71734         test cases, so that config.log is a bit easier to follow.
71735
71736 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71737
71738         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
71739         both are 64 bits, since this seems to be the tradition, and this
71740         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
71741         we ever run into a host that prefers long long to long in this
71742         case, we'll need another configure-time test.  Problem reported by
71743         Jim Meyering.
71744
71745 2006-07-02  Eric Blake  <ebb9@byu.net>
71746
71747         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
71748
71749 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71750
71751         * modules/inttypes (Depends-on): No longer depends on stdint.
71752         * modules/stdint (Description): Say more about assumptions.
71753         Say that the fast types might differ.  Say macros are used.
71754         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
71755         (Makefile.am): Revise list of substituted symbols to match
71756         new stdint.m4.
71757         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
71758         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
71759         * tests/test-stdint.c (verify_same_types)
71760         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
71761         the code conforms to C99/C89.
71762         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
71763         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
71764
71765 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71766
71767         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
71768         but fix a bug, by requiring at least 64 bits.
71769         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
71770         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
71771         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
71772         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
71773
71774         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
71775         changes.  Make 2.59 a prerequisite.  Check and substitute for
71776         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
71777         inttypes.h.  Do not use special include files; just use the
71778         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
71779         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
71780         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
71781         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
71782         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
71783         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
71784         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
71785         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
71786         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
71787         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
71788         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
71789         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
71790         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
71791         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
71792         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
71793         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
71794         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
71795         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
71796         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
71797         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
71798         WINT_MAX.  Check for C99 conformance more strictly, by detecting
71799         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
71800         not check for things that C99 does not require, e.g., int8_t.  If
71801         a test isn't needed unless <stdint.h> isn't working, and is
71802         unlikely to be needed for any other reason, then don't do it
71803         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
71804         size_t, since we assume C89 freestanding at least.  Do not check
71805         for sig_atomic_t, wchar_t, or wint_t, since the code now does
71806         the right thing even if the types are not defined.  Instead use:
71807         (gl_STDINT_TYPE_PROPERTIES): New macro.
71808         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
71809         testing whether <sys/types.h> clashes, as Autoconf does this for
71810         us now.  All uses removed.
71811         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
71812         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
71813         (gl_CHECK_TYPE_SAME):
71814         Remove; no longer needed.
71815         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
71816         exists, since we'll return 0 anyway in that case.
71817         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
71818
71819 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71820
71821         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
71822         possible collision with system files.
71823         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
71824         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
71825         WCHAR_MIN and WCHAR_MAX in this case.
71826         (<stddef.h>): Do not include; no longer needed.
71827         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
71828         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
71829         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
71830         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
71831         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
71832         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
71833         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
71834         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
71835         !defined(__c99))]: Include in this case too, since it's harmless
71836         now.
71837         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
71838         dangerous to do so.
71839         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
71840         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
71841         (_STDINT_MIN, _STDINT_MAX): New macros.
71842         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
71843         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
71844         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
71845         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
71846         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
71847         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
71848         macros, not typedefs; this simplifies things quite a bit.
71849         Use long int for all types narrower than int64_t.
71850         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
71851         Define in terms of long long int or int64_t or long int,
71852         not int64_t or int32_t.  This saves some compile-time testing.
71853         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
71854         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
71855         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
71856         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
71857         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
71858         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
71859         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
71860         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
71861         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
71862         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
71863         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71864         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71865         undef any previous version and define our own version, for
71866         simplicity and consistency with the new macros for types.
71867         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71868         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71869         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
71870         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
71871         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
71872         @WINT_T_SUFFIX@ to keep things simple here.
71873         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
71874         Simplify by assuming typical 8/16/32/64 host, since we're
71875         already doing that elsewhere anyway.
71876         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
71877         and assume long long int is 64 bits if available.  This
71878         speeds up 'configure'.
71879
71880 2006-07-01  Eric Blake  <ebb9@byu.net>
71881
71882         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
71883         Reported by Andreas Buening.
71884
71885 2006-07-01  Eric Blake  <ebb9@byu.net>
71886
71887         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
71888
71889 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
71890
71891         * lib/getaddrinfo.c: fixed typo
71892
71893 2006-06-29  Jim Meyering  <jim@meyering.net>
71894
71895         * modules/strftime (Maintainer): Add my name, since with the
71896         FPRINTFTIME changes strftime.c has forked from glibc.
71897
71898 2006-06-29  Eric Blake  <ebb9@byu.net>
71899
71900         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
71901
71902 2006-06-29  Eric Blake  <ebb9@byu.net>
71903
71904         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
71905
71906 2006-06-29  Eric Blake  <ebb9@byu.net>
71907
71908         * lib/stat_.h: New file.
71909
71910 2006-06-29  Eric Blake  <ebb9@byu.net>
71911
71912         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
71913         unused static function.
71914
71915 2006-06-29  Eric Blake  <ebb9@byu.net>
71916
71917         * doc/functions.texi (Function Portability): Document missing lstat
71918         on mingw.
71919
71920 2006-06-29  Eric Blake  <ebb9@byu.net>
71921
71922         * MODULES.html.sh: Add sys_stat.
71923         * modules/sys_stat: New module.
71924         * modules/mkstemp (Depends-on): Add sys_stat.
71925
71926 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71927
71928         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
71929
71930 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71931
71932         * m4/c-bs-a.m4: Removed.
71933
71934 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71935
71936         * lib/strftime.c: Assume strftime() exists.
71937
71938 2006-06-29  Derek Price  <derek@ximbiot.com>
71939
71940         * modules/c-bs-a: Removed - \a is C89.
71941         * MODULES.html.sh: Remove c-bs-a.
71942
71943 2006-06-29  Bruno Haible  <bruno@clisp.org>
71944
71945         * modules/wcwidth (License): Change to LGPL.
71946
71947 2006-06-28  Simon Josefsson  <jas@extundo.com>
71948
71949         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
71950         on _WIN32.
71951
71952         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
71953         getnameinfo.
71954
71955 2006-06-28  Simon Josefsson  <jas@extundo.com>
71956
71957         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
71958
71959 2006-06-28  Simon Josefsson  <jas@extundo.com>
71960
71961         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
71962         functions there.  It will succeed on Windows XP, but on Windows
71963         2000 and (presumably) earlier, it will fail, and use the internal
71964         re-implementation.
71965         (use_win32_p): New function.
71966         (getaddrinfo): Use strtoul on servname, to support numeric ports.
71967         Support AI_NUMERICSERV to disable getservbyname.
71968         (getnameinfo): New function, only supports
71969         NI_NUMERICHOST|NI_NUMERICSERV for now.
71970
71971         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
71972         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
71973         getnameinfo.
71974
71975 2006-06-28  Eric Blake  <ebb9@byu.net>
71976
71977         * modules/wcwidth: New file.
71978         * modules/mbchar (Depends-on): Add wcwidth.
71979         * modules/mbswidth (Depends-on): Add wcwidth.
71980         * MODULES.html.sh: Add wcwidth.
71981
71982 2006-06-28  Eric Blake  <ebb9@byu.net>
71983
71984         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
71985         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
71986
71987 2006-06-28  Eric Blake  <ebb9@byu.net>
71988
71989         * lib/xvasprintf.h: Fix comments.
71990
71991 2006-06-28  Eric Blake  <ebb9@byu.net>
71992
71993         * lib/mbchar.h (wcwidth): Include wcwidth.h.
71994         * lib/mbswidth.c (wcwidth): Move from here...
71995         * lib/wcwidth.h: ...to this new file.
71996
71997 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71998
71999         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
72000
72001         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
72002         it's obsolete.
72003         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
72004
72005 2006-06-28  Derek R. Price  <derek@ximbiot.com>
72006
72007         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
72008         Autoconf 2.60 says this stuff was obsolete.
72009
72010 2006-06-28  Bruno Haible  <bruno@clisp.org>
72011
72012         * modules/wcwidth (Files): Add m4/wchar_t.m4.
72013
72014 2006-06-28  Bruno Haible  <bruno@clisp.org>
72015
72016         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
72017         gt_TYPE_WCHAR_T.
72018
72019 2006-06-28  Bruno Haible  <bruno@clisp.org>
72020
72021         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
72022         declaration for wcwidth.
72023         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
72024
72025 2006-06-28  Bruno Haible  <bruno@clisp.org>
72026
72027         * lib/mkdtemp.c [MINGW]: Include <io.h>.
72028         (mkdir): Define using _mkdir.
72029
72030 2006-06-28  Bruno Haible  <bruno@clisp.org>
72031
72032         * lib/getaddrinfo.h: Fix POSIX URL.
72033         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
72034         _WIN32.
72035         (use_win32_p): Make static.
72036         (getaddrinfo): Reject service name if it is empty or does not consist
72037         solely of decimal digits, or if its value is > 65535.
72038         (getnameinfo): Remove useless casts.
72039
72040 2006-06-27  Simon Josefsson  <jas@extundo.com>
72041
72042         * modules/sys_select: New file, suggested by Bruno Haible, Paul
72043         Eggert and Martin Lambers.
72044
72045 2006-06-27  Simon Josefsson  <jas@extundo.com>
72046
72047         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
72048         Eggert and Martin Lambers.
72049
72050 2006-06-27  Bruno Haible  <bruno@clisp.org>
72051
72052         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
72053         result to 0, not to empty.
72054         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
72055
72056 2006-06-27  Bruno Haible  <bruno@clisp.org>
72057
72058         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
72059
72060 2006-06-26  Simon Josefsson  <jas@extundo.com>
72061
72062         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
72063         present.
72064
72065 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
72066
72067         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
72068         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
72069         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
72070
72071 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
72072
72073         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
72074
72075 2006-06-26  Bruno Haible  <bruno@clisp.org>
72076
72077         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
72078
72079 2006-06-26  Bruno Haible  <bruno@clisp.org>
72080
72081         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
72082
72083 2006-06-26  Bruno Haible  <bruno@clisp.org>
72084
72085         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
72086         SGI C compiler in pre-C99 mode.
72087         Suggested by Mark D. Baushke and Larry Jones.
72088
72089 2006-06-26  Bruno Haible  <bruno@clisp.org>
72090
72091         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
72092         WCHAR_MAX.
72093         Reported by Mark D. Baushke and Larry Jones.
72094
72095 2006-06-26  Bruno Haible  <bruno@clisp.org>
72096
72097         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
72098         in pre-C99 mode.
72099         Suggested by Mark D. Baushke and Larry Jones.
72100
72101 2006-06-23  Simon Josefsson  <jas@extundo.com>
72102             Bruno Haible  <bruno@clisp.org>
72103
72104         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
72105         Emit mostlyclean-local rule.
72106         (func_emit_tests_Makefile_am): Likewise.
72107         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
72108
72109 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
72110
72111         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
72112
72113 2006-06-23  Bruno Haible  <bruno@clisp.org>
72114
72115         * tests/test-stdint.c: Update to match ISO C 99 Technical
72116         Corrigendum 1.
72117
72118 2006-06-23  Bruno Haible  <bruno@clisp.org>
72119
72120         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
72121
72122 2006-06-23  Bruno Haible  <bruno@clisp.org>
72123
72124         * lib/stdint_.h: Treat IRIX like OpenBSD.
72125
72126 2006-06-23  Bruno Haible  <bruno@clisp.org>
72127
72128         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
72129         ISO C 99 Technical Corrigendum 1.
72130
72131 2006-06-22  Simon Josefsson  <jas@extundo.com>
72132
72133         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
72134         MinGW.
72135
72136 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72137
72138         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
72139         needed.  Some compiler complained about some of them.  Problem reported
72140         by Larry Jones in
72141         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
72142
72143 2006-06-21  Simon Josefsson  <jas@extundo.com>
72144
72145         * tests/test-getaddrinfo.c: New file.
72146
72147         * modules/getaddrinfo-tests: New file.
72148
72149         * MODULES.html.sh: Add inet_pton.
72150
72151         * modules/inet_pton: New file.
72152
72153 2006-06-21  Simon Josefsson  <jas@extundo.com>
72154
72155         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
72156         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
72157         of using the (limited) gnulib implementation on Windows XP.
72158
72159         * m4/inet_pton.m4: New file.
72160
72161 2006-06-21  Simon Josefsson  <jas@extundo.com>
72162
72163         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
72164         variable.
72165
72166         * lib/socket_.h: Don't define WINVER.
72167
72168         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
72169         slightly modified to work in gnulib.
72170
72171 2006-06-21  Simon Josefsson  <jas@extundo.com>
72172
72173         * doc/gnulib.texi (Windows sockets): Add.
72174
72175 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
72176
72177         * lib/read-file.c (fread_file): Start with buffer allocation of
72178         0 bytes rather than 1 byte; this simplifies the code.
72179         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
72180         code to free buffer and save/restore errno.
72181         (internal_read_file): Remove unused local.
72182
72183 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
72184
72185         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
72186         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
72187         Problem reported by Denis Excoffier in
72188         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
72189
72190 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72191
72192         * modules/sys_socket, modules/socklen: Include sys/types since
72193         FreeBSD 4.x's sys/socket.h needs it.
72194
72195 2006-06-19  Simon Josefsson  <jas@extundo.com>
72196
72197         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
72198
72199 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
72200
72201         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
72202
72203 2006-06-19  Bruno Haible  <bruno@clisp.org>
72204
72205         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
72206         and FULL_PATH_INTTYPES_H in angle brackets.
72207         Reported by Mark D. Baushke <mdb@gnu.org>.
72208
72209 2006-06-17  Eric Blake  <ebb9@byu.net>
72210
72211         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
72212         errno.
72213
72214 2006-06-17  Bruno Haible  <bruno@clisp.org>
72215
72216         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
72217         <sys/inttypes.h>.
72218
72219 2006-06-17  Bruno Haible  <bruno@clisp.org>
72220
72221         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
72222         whether errno is declared. Assume <errno.h> declares errno.
72223
72224 2006-06-17  Bruno Haible  <bruno@clisp.org>
72225
72226         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
72227
72228 2006-06-17  Bruno Haible  <bruno@clisp.org>
72229
72230         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
72231         problem on Solaris 2.5.1.
72232
72233 2006-06-16  Eric Blake  <ebb9@byu.net>
72234
72235         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
72236         * lib/unicodeio.c [!defined errno]: Likewise.
72237         * lib/strtol.c [!defined errno]: Likewise.
72238         * lib/strtod.c [!defined errno]: Likewise.
72239
72240 2006-06-15  Eric Blake  <ebb9@byu.net>
72241
72242         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
72243
72244 2006-06-15  Eric Blake  <ebb9@byu.net>
72245
72246         * config/srclist.txt (ssize_t.m4): Lose sync.
72247
72248 2006-06-15  Bruno Haible  <bruno@clisp.org>
72249
72250         * modules/stdint (Files): Include m4/full-header-path.m4,
72251         m4/size_max.m4, m4/wchar_t.m4.
72252         (Makefile.am): Many more substitutions.
72253         * modules/stdint-tests: New file.
72254         * tests/test-stdint.c: New file.
72255
72256 2006-06-15  Bruno Haible  <bruno@clisp.org>
72257
72258         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
72259         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
72260         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
72261         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
72262         gl_CHECK_TYPE_SAME): New macros.
72263
72264 2006-06-15  Bruno Haible  <bruno@clisp.org>
72265
72266         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
72267
72268 2006-06-15  Bruno Haible  <bruno@clisp.org>
72269
72270         * lib/stdint_.h: Rewritten to be fully auto-configured.
72271         Fixes bug on HP-UX/IA64.
72272
72273 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
72274
72275         * lib/getdate.y (__attribute__): Don't define if already defined.
72276         Problem reported by Larry Jones.
72277         * lib/utimens.c (__attribute__): Likewise.
72278
72279 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
72280
72281         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
72282         reported by Andreas Schwab.
72283
72284 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72285             Bruno Haible  <bruno@clisp.org>
72286
72287         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
72288         check for the declaration of strnlen and a run test that exposes the
72289         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
72290         rpl_strndup.
72291
72292 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72293             Bruno Haible  <bruno@clisp.org>
72294
72295         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
72296
72297 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72298
72299         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
72300         compile test, for Tru64 4.0D.
72301
72302 2006-05-28  Karl Berry  <karl@gnu.org>
72303
72304         * config/srclist.txt (printf-args.c): lose sync.
72305
72306 2006-05-26  Martin Lambers  <marlam@marlam.de>
72307
72308         * lib/getpass.c: Updates the test for the native W32 API, and adds
72309         missing includes, thus fixing compilation warnings.
72310
72311 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72312
72313         * lib/exclude.c (exclude_fnmatch): New function.
72314         (excluded_file_name): Call exclude_fnmatch.
72315         * lib/exclude.h (excluded_file_name): New prototype
72316
72317 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
72318
72319         * lib/tempname.c (small_open, large_open): New macros.
72320         (__open, __open64) [!_LIBC]: Remove.
72321         (__gen_tempname): Use small_open and large_open instead of __open
72322         and __open64.  This fixes a portability bug on HP-UX 11.11i
72323         reported by Simon Wing-Tang in
72324         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
72325
72326 2006-05-24  Bruno Haible  <bruno@clisp.org>
72327
72328         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
72329         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
72330         Reported by Thorsten Maerz <torte@netztorte.de> via
72331         Aaron Stone <aaron@serendipity.cx>.
72332
72333 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
72334
72335         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
72336         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
72337         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
72338         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
72339         not really conditional on the cache.
72340         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
72341
72342 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
72343
72344         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
72345         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
72346         (my_usleep): Don't mishandle maximum value.
72347
72348 2006-05-19  Jim Meyering  <jim@meyering.net>
72349
72350         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
72351
72352 2006-05-17  Bruno Haible  <bruno@clisp.org>
72353
72354         Cygwin portability.
72355         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
72356
72357 2006-05-17  Bruno Haible  <bruno@clisp.org>
72358
72359         * lib/stdint_.h: Fix recognition of Cygwin.
72360
72361 2006-05-15  Bruno Haible  <bruno@clisp.org>
72362
72363         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
72364         on libtool patch by Ralf Wildenhues.
72365
72366 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
72367
72368         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
72369         test for C99 conformance; (bool) 0.5 is an integer constant
72370         expression, but (bool) -0.5 is not.  Problem reported by Fedor
72371         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
72372
72373 2006-05-11  Simon Josefsson  <jas@extundo.com>
72374
72375         * m4/xvasprintf.m4: Fix obvious typo.
72376
72377 2006-05-11  Jim Meyering  <jim@meyering.net>
72378
72379         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
72380         James Lemley.
72381
72382 2006-05-10  Simon Josefsson  <jas@extundo.com>
72383
72384         * lib/md4.c: Typo fix, update copyright years.
72385         (K1, K2): Don't use L because it turn computations into 64-bit on
72386         64-bit platforms.
72387
72388 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
72389
72390         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
72391         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
72392         unwanted sign propagation, e.g., on hosts with 64-bit int.
72393         There still are some problems with reeelly weird theoretical hosts
72394         (e.g., 33-bit int) but it's not worth worrying about now.
72395         * lib/sha1.c (rol): Likewise.
72396         (K1, K2, K3, K4): Remove unnecessary L suffix.
72397
72398 2006-05-10  Bruno Haible  <bruno@clisp.org>
72399
72400         * lib/des.c: Cast to avoid warnings.
72401
72402 2006-05-09  Bruno Haible  <bruno@clisp.org>
72403
72404         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
72405         (Depends-on): Depend also on xsize, stdarg.
72406         (configure.ac): Add gl_XVASPRINTF.
72407
72408 2006-05-09  Bruno Haible  <bruno@clisp.org>
72409
72410         * m4/xvasprintf.m4: New file.
72411
72412 2006-05-09  Bruno Haible  <bruno@clisp.org>
72413
72414         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
72415         (EOVERFLOW): Define fallback value.
72416         (xstrcat): New function.
72417         (xvasprintf): Recognize the special case of a string concatenation.
72418
72419 2006-05-08  Eric Blake  <ebb9@byu.net>
72420
72421         * gnulib-tool (func_version): Base copyright year on CVS date.
72422         (func_emit_copyright_notice): New function.
72423         (func_emit_lib_Makefile_am): Use it.
72424         (func_emit_tests_Makefile_am): Likewise.
72425         (func_import): Likewise.
72426
72427 2006-05-08  Bruno Haible  <bruno@clisp.org>
72428
72429         * modules/stdarg: New file.
72430         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
72431
72432 2006-05-08  Bruno Haible  <bruno@clisp.org>
72433
72434         * m4/stdarg.m4: New file, from GNU gettext.
72435
72436 2006-05-08  Bruno Haible  <bruno@clisp.org>
72437
72438         * config/srclist.txt (build-aux/config.rpath): different from latest
72439         release.
72440
72441 2006-05-08  Bruno Haible  <bruno@clisp.org>
72442
72443         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
72444
72445 2006-05-05  Jim Meyering  <jim@meyering.net>
72446
72447         * m4/warning.m4: New file, derived from bison's file by the same name.
72448
72449 2006-05-03  Bruno Haible  <bruno@clisp.org>
72450
72451         * lib/stdint_.h: Shorter URL.
72452         * lib/inttypes.h: Likewise.
72453
72454 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72455
72456         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
72457
72458 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72459
72460         * lib/verify.h: Document the internals better.  Most of this change
72461         was written by Bruno Haible.
72462
72463 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72464
72465         * doc/verify.texi: New file, partly based on a proposal by
72466         Bruno Haible.
72467
72468 2006-05-02  Bruno Haible  <bruno@clisp.org>
72469
72470         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
72471         test from here...
72472         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
72473
72474 2006-04-29  Bruno Haible  <bruno@clisp.org>
72475
72476         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
72477         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
72478
72479 2006-04-29  Bruno Haible  <bruno@clisp.org>
72480
72481         * gnulib-tool: Make --update option actually work.
72482
72483 2006-04-29  Bruno Haible  <bruno@clisp.org>
72484
72485         * doc/gcd.texi: New file.
72486         * doc/gnulib.texi: Include it.
72487
72488 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
72489
72490         * lib/getdate.y (get_date): When adding relative date, start with the
72491         initial time, not with the result of the first mktime call.
72492
72493 2006-04-25  Bruno Haible  <bruno@clisp.org>
72494
72495         * gnulib-tool (func_import): Output the include directives in three
72496         blocks, sorted separately.
72497         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72498
72499 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
72500
72501         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
72502         to define main with arguments, for C++.  Reported by Eric Blake.
72503         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
72504         Prefer 'int main ()' to 'int main (void)', for C++.
72505         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
72506         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
72507         for 'main', for C99 and C++.
72508
72509 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
72510
72511         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
72512         Don't assume that exit status -1 is valid.
72513         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72514         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
72515         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
72516         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
72517         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
72518         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
72519         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
72520         functions can be used without declaring them, or that you can
72521         exit with status -1.
72522         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
72523
72524 2006-04-24  Karl Berry  <karl@gnu.org>
72525
72526         * config/srclist.txt (longdouble.m4): sync lost.
72527
72528 2006-04-24  Eric Blake  <ebb9@byu.net>
72529
72530         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
72531
72532 2006-04-24  Bruno Haible  <bruno@clisp.org>
72533
72534         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
72535         poll() implementation in AIX.
72536         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72537
72538 2006-04-24  Bruno Haible  <bruno@clisp.org>
72539
72540         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
72541         assigned exactly once.
72542
72543 2006-04-23  Claudio Fontana  <claudio@gnu.org>
72544             Bruno Haible  <bruno@clisp.org>
72545
72546         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
72547         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
72548         for AM_CPPFLAGS.
72549
72550 2006-04-23  Bruno Haible  <bruno@clisp.org>
72551
72552         * modules/copy-file: Depend on unistd.
72553         * modules/execute: Likewise.
72554         * modules/fatal-signal: Likewise.
72555         * modules/findprog: Likewise.
72556         * modules/mkdtemp : Likewise.
72557         * modules/pipe: Likewise.
72558         * modules/wait-process: Likewise.
72559
72560 2006-04-23  Bruno Haible  <bruno@clisp.org>
72561
72562         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
72563         condition was already detected.
72564         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72565
72566 2006-04-23  Bruno Haible  <bruno@clisp.org>
72567
72568         * lib/copy-file.c: Include <unistd.h> unconditionally.
72569         * lib/execute.c: Likewise.
72570         * lib/fatal-signal.c: Likewise.
72571         * lib/findprog.c: Likewise.
72572         * lib/mkdtemp.c: Likewise.
72573         * lib/pipe.h: Likewise.
72574         * lib/pipe.c: Likewise.
72575         * lib/wait-process.h: Likewise.
72576
72577 2006-04-23  Bruno Haible  <bruno@clisp.org>
72578
72579         * gnulib-tool (func_usage): Fix --import description. Document
72580         --update.
72581         (func_import): Create temporary file in a temporary directory, if
72582         --dry-run is specified. Silence errors from 'grep' when there are no
72583         m4 files in $m4dir.
72584         (func_create_testdir): Silence errors from 'grep' when there are no
72585         m4 files in $m4dir.
72586         Reported by Karl Berry <karl@freefriends.org>.
72587
72588 2006-04-20  Bruno Haible  <bruno@clisp.org>
72589
72590         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
72591         one argument, so that the code will be portable to Autoconf 2.60.
72592         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
72593         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
72594         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
72595
72596 2006-04-19  Derek Price  <derek@ximbiot.com>
72597             Eric Blake  <ebb9@byu.net>
72598
72599         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
72600         rather than "/full/path.h".  Update comment to match.  Shorten &
72601         generalize m4_translit call via AS_TR_CPP.
72602
72603 2006-04-19  Derek Price  <derek@ximbiot.com>
72604             Eric Blake  <ebb9@byu.net>
72605
72606         * lib/inttypes.h: Correct grammar in comment.
72607
72608 2006-04-18  Derek Price  <derek@ximbiot.com>
72609             Paul Eggert  <eggert@cs.ucla.edu>
72610
72611         * modules/inttypes: New file.
72612         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
72613
72614 2006-04-18  Derek Price  <derek@ximbiot.com>
72615             Paul Eggert  <eggert@cs.ucla.edu>
72616
72617         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
72618         New files.
72619
72620 2006-04-18  Derek Price  <derek@ximbiot.com>
72621             Paul Eggert  <eggert@cs.ucla.edu>
72622
72623         * lib/inttypes.h: New file.
72624         * lib/strtoimax.c: Assume <inttypes.h>.
72625
72626 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
72627
72628         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
72629         isn't mounted.  Problem reported by Kir Kolyshkin.
72630
72631 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
72632
72633         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
72634         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
72635         Derek R. Price.
72636         * lib/regex.h (RE_DUP_MAX): Update comment to match current
72637         implementation.
72638
72639 2006-04-12  Eric Blake  <ebb9@byu.net>
72640
72641         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
72642         is now done automatically by the corresponding Autoconf macro.
72643
72644 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
72645
72646         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
72647         time_r.h.
72648
72649 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72650
72651         Merge regex changes from libc, removing some of our
72652         POSIX-conformance changes that were rejected and redoing them in a
72653         less-intrusive way.
72654
72655         * lib/regcomp.c (re_compile_internal, init_dfa):
72656         Length arg is now size_t, not Idx.  All uses changed.
72657         (peek_token): Forward decl now says internal_function.
72658         (__re_error_msgid, __re_error_msgid_idx):
72659         Now static rather than extern with attribute_hidden.
72660         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
72661         For some reason libc prefers K&R style defns for external functions.
72662         (regerror) [!defined _LIBC]: Likewise.
72663         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
72664         (seek_collating_symbol_entry, lookup_collation_sequence_value):
72665         (build_range_exp, build_collating_symbol):
72666         Use K&R-style defn.
72667         (re_compile_fastmap): Use '\0' to memset, not 0.
72668         (utf8_sb_map): Make the calculations more obvious.
72669         (init_dfa, parse_bracket_exp, build_charclass_op):
72670         Call calloc and cast result, as glibc does.
72671         (init_word_char, fetch_token, peek_token, peek_token_bracket):
72672         (build_range_exp, build_collating_symbol):
72673         Now internal functions.
72674
72675         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
72676
72677         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
72678         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
72679         Don't depend on VMS; depend on __VMS instead, for POSIX
72680         namespace cleanness.
72681         (regoff_t): Define to ssize_t, not long int.
72682
72683         Remove the REG_ macros named below.  Instead, make the old names
72684         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
72685         __USE_GNU_REGEX.
72686         (REG_BACKSLASH_ESCAPE_IN_LISTS):
72687         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
72688         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
72689         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
72690         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
72691         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
72692         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
72693         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
72694         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
72695         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
72696         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
72697         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
72698         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
72699         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
72700         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
72701         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
72702         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
72703         (REG_NREGS):
72704         Remove.  All uses replaced by the old RE_* names.
72705         (RE_BACKSLASH_ESCAPE_IN_LISTS):
72706         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
72707         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
72708         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
72709         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
72710         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
72711         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
72712         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
72713         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
72714         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
72715         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
72716         Don't bother having these macros be independent of each others'
72717         values, since they no longer exist in the POSIX name space.
72718
72719         Rename the following member names back to their old names,
72720         unless !__USE_GNU_REGEX.  All uses changed back.
72721         (buffer): Renamed from re_buffer.
72722         (allocated): Renamed from re_allocated.
72723         (used): Renamed from re_used.
72724         (syntax): Renamed from re_syntax.
72725         (fastmap): Renamed from re_fastmap.
72726         (translate): Renamed from re_translate.
72727         (can_be_null): Renamed from re_can_be_null.
72728         (regs_allocated): Renamed from re_regs_allocated.
72729         (fastmap_accurate): Renamed from re_fastmap_accurate.
72730         (no_sub): Renamed from re_no_sub.
72731         (not_bol): Renamed from re_not_bol.
72732         (not_eol): Renamed from re_not_eol.
72733         (newline_anchor): Renamed from re_newline_anchor.
72734         (num_regs): Renamed from rm_num_regs.
72735         (start): Renamed from rm_start.
72736         (end): Renamed from rm_end.
72737
72738         (free_state): Move up a bit.
72739
72740         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
72741         #define to be empty.
72742         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
72743         when that is what is intended.
72744         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
72745         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
72746         (MAX): New macro.
72747         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
72748         All uses changed back to re_malloc, etc.  It's now the caller's
72749         responsibility to check for overflow; all callers changed.
72750         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
72751         (re_x2nrealloc): Remove.
72752         (free_state): Remove decl.
72753
72754         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
72755         (re_set_registers, re_exec):
72756         Use K&R-style defn.
72757
72758         2006-01-31  Roland McGrath  <roland@redhat.com>
72759
72760         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
72761         Reported by Mike Frysinger <vapier@gentoo.org>.
72762
72763         2006-01-15  Andreas Jaeger  <aj@suse.de>
72764
72765         [BZ #1950]
72766         * lib/regex_internal.c (re_string_reconstruct): Adjust for
72767         build_wcs_upper_buffer change.
72768         (build_wcs_upper_buffer): Change return type.
72769
72770         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
72771
72772         * lib/regex_internal.h: Include <stdint.h> if available.
72773
72774         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
72775
72776         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
72777
72778         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
72779
72780         * lib/regcomp.c: Adjust for changed secondary hash function.
72781
72782         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
72783
72784         * lib/regex.h: Pretty printing.
72785         Clean up namespace a bit.
72786
72787         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
72788
72789         * lib/regexec.c (update_cur_sifted_state, check_arrival,
72790         check_arrival_add_next_nodes): Avoid using uninitialized variable.
72791
72792         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
72793                     Ulrich Drepper  <drepper@redhat.com>
72794
72795         [BZ #1302]
72796         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
72797         changed.
72798         (bitset_word_t): Renamed from bitset_word.  All uses changed.
72799
72800         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
72801
72802         [BZ #281]
72803         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
72804         * lib/regcomp.c: Remove unnecessary uses of
72805         unsigned RE_TRANSLATE_TYPE.
72806         * lib/regex_internal.h: Likewise.
72807         * lib/regex_internal.c: Likewise.
72808         * lib/regexec.c: Likewise.
72809         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
72810
72811         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
72812
72813         * lib/regexec.c (find_recover_state): Remove unnecessary
72814         initialization.
72815         (transit_state_bkref): Make DFA a const pointer.
72816         (get_subexp): Likewise.
72817         (check_arrival): Likewise.
72818         (update_cur_sifted_state): Likewise.
72819         (re_search_internal): Likewise.
72820         (prune_impossible_nodes): Likewise.
72821         (acquire_init_state_context): Likewise.
72822         (proceed_next_node): Likewise.
72823         (set_regs): Likewise.
72824         (free_fail_stack_return): Likewise.
72825         (check_arrival_expand_ecl): Mark DFA parameter as const.
72826         (check_arrival_expand_ecl_sub): Likewise.
72827         (check_subexp_limits): Likewise.
72828         (sub_epsilon_src_nodes):  Likewise.
72829         (add_epsilon_src_nodes):  Likewise.
72830         (merge_state_array): Likewise.
72831         (update_regs): Likewise.
72832         (build_trtable): Likewise.
72833         (sift_states_backward): Mark MCTX parameter as const.
72834         (build_sifted_states): Likewise.
72835         (update_cur_sifted_state): Likewise.
72836         (sift_states_mkref): Likewise.
72837         (check_arrival_expand_ecl): Mark eclosure as const.
72838         (check_dst_limits_calc_pos_1): Likewise.
72839         * lib/regex_internal.h (re_match_context_t): Make dfa a const
72840         pointer.
72841
72842         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
72843
72844         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
72845         (transit_state_sb): Likewise.
72846         (transit_state_mb): Likewise.
72847         (sift_states_iter_mb): Likewise.
72848         (check_arrival_add_next_nodes): Likewise.
72849         (check_node_accept_bytes): Change first parameter to pointer-to-const.
72850         [_LIBC] (re_search_2_stub): Use mempcpy.
72851
72852         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
72853         mbrtowc for very simple UTF-8 case.
72854
72855         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
72856         a pointer-to-const.
72857         (re_acquire_state_context): Likewise.
72858         * lib/regex_internal.h: Adjust prototypes.
72859
72860         * lib/regex.c: Prevent using C++ compilers.
72861
72862         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
72863         (re_acquire_state_context): Likewise.
72864
72865 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72866
72867         * modules/regex (Depends-on): Add ssize_t.
72868
72869 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72870
72871         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
72872         translation table.
72873
72874 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72875
72876         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
72877
72878 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
72879             Bruno Haible  <bruno@clisp.org>
72880
72881         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
72882         <sys/types.h> and <inttypes.h>.
72883
72884 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72885
72886         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
72887         `__error_t_defined', so argp.h will not typedef the former.
72888
72889 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
72890
72891         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
72892         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
72893         glibc names.  Even if glibc is changed to conform to POSIX, the
72894         traditional names will be available anyway, since regex depends on
72895         the extensions module.  Also, fix a longstanding typo in the
72896         implementation of Spencer ERE test #75 from grep 2.3.  Problems
72897         reported by Emanuele Giaquinta.  Also, change sense of cached
72898         variable, so that the message makes sense.
72899
72900 2006-03-24  Simon Josefsson  <jas@extundo.com>
72901
72902         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
72903         including some doc fixes.
72904         (base64_encode_alloc): Fix +1 bug on allocation failures.
72905
72906 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72907
72908         * lib/base64.c (base64_encode): Do not read past end of array with
72909         unsanitized input on systems with CHAR_BIT > 8.
72910
72911 2006-03-24  Eric Blake  <ebb9@byu.net>
72912
72913         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
72914
72915 2006-03-22  Karl Berry  <karl@gnu.org>
72916
72917         * config/srclist.txt (*setenv.[ch]): get from coreutils.
72918         * config/srclistvars.sh (COREUTILS): new var.
72919
72920 2006-03-17  Jim Meyering  <jim@meyering.net>
72921
72922         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
72923         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
72924
72925 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72926
72927         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
72928         no longer needs it.  Instead, check that regoff_t is as least
72929         as wide as ptrdiff_t.
72930
72931         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
72932         so that our regex.h stays compatible with the installed regex.
72933         This is helpful for installers who configure --without-included-regex.
72934         Problem reported by Emanuele Giaquinta.
72935
72936 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72937
72938         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
72939         Typedef to long int, not to off_, as POSIX will likely change
72940         in that direction.
72941
72942 2006-03-15  Eric Blake  <ebb9@byu.net>
72943
72944         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
72945
72946 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72947
72948         * lib/argp-help.c (validate_uparams): Fix typo
72949         * lib/argp-parse.c (argp_default_options): Consistently begin help
72950         messages with a lowercase letter.
72951
72952 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
72953
72954         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
72955         overrun buffers and shouldn't be used (much as gets shouldn't be
72956         used).
72957         * lib/time_r.c (asctime_r, ctime_r): Likewise.
72958
72959 2006-03-08  Simon Josefsson  <jas@extundo.com>
72960
72961         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
72962         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72963
72964 2006-03-08  Simon Josefsson  <jas@extundo.com>
72965
72966         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
72967         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72968
72969 2006-03-08  Simon Josefsson  <jas@extundo.com>
72970
72971         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
72972         signal that configure disabled the device.
72973
72974 2006-03-08  Simon Josefsson  <jas@extundo.com>
72975
72976         * build-aux/maint.mk: Fix refresh-po, to handle no translated
72977         languages.
72978
72979 2006-03-07  Simon Josefsson  <jas@extundo.com>
72980
72981         * modules/getopt (Depends-on): Add unistd.
72982
72983         * modules/unistd: New file.
72984
72985 2006-03-07  Simon Josefsson  <jas@extundo.com>
72986
72987         * modules/gc-random: New file.
72988
72989 2006-03-07  Simon Josefsson  <jas@extundo.com>
72990
72991         * m4/unistd_h.m4: New file.
72992
72993 2006-03-07  Simon Josefsson  <jas@extundo.com>
72994
72995         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
72996         test to be side-effect free by storing the result in the cache
72997         variable gl_cv_lib_readline, and moving the assignment of
72998         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
72999         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73000
73001 2006-03-07  Simon Josefsson  <jas@extundo.com>
73002
73003         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
73004         error on missing devices (the functions will return an error).
73005
73006         * m4/gc.m4: Move random stuff to gc-random.m4
73007
73008 2006-03-07  Simon Josefsson  <jas@extundo.com>
73009
73010         * lib/unistd_.h: New file.
73011
73012 2006-03-07  Simon Josefsson  <jas@extundo.com>
73013
73014         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
73015
73016 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73017
73018         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
73019         Problem reported by Juan Manuel Guerrero.
73020
73021 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73022
73023         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
73024         the unistd module.
73025         * lib/getlogin_r.c: Likewise.
73026         * lib/getlogin_r.h: Likewise.
73027         * lib/glob.c: Likewise.
73028         * lib/pagealign_alloc.c: Likewise.
73029         * lib/unistd_.h: Remove; no longer needed.
73030
73031 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73032
73033         * MODULES.html.sh (Support for systems lacking POSIX:2001):
73034         Add unistd.
73035         * modules/c-stack (Depends-on): Add unistd.
73036         * modules/getlogin_r: Likewise.
73037         * modules/glob: Likewise.
73038         * modules/pagealign_alloc: Likewise.
73039         * modules/unistd (Files): Remove lib/unistd_.h.
73040         (EXTRA_DIST): Remove.
73041         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
73042         need unistd_.h.
73043         (MOSTLYCLEANFILES): Remove unistd.h-t.
73044
73045 2006-03-03  Simon Josefsson  <jas@extundo.com>
73046
73047         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
73048
73049 2006-03-03  Simon Josefsson  <jas@extundo.com>
73050
73051         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
73052         libidn and bison.
73053
73054 2006-03-03  Simon Josefsson  <jas@extundo.com>
73055
73056         * build-aux/maint.mk: Add indent target.
73057
73058 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
73059
73060         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
73061         our replacement poll.h in any case, to avoid a differing
73062         declaration from a system header.  Seen on AIX.
73063
73064 2006-03-01  Simon Josefsson  <jas@extundo.com>
73065
73066         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
73067         <kasal@ucw.cz>.
73068
73069 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73070
73071         * modules/gettime (Depends-on): Add extensions module.
73072         * modules/nanosleep (Depends-on): Likewise.
73073         * modules/settime (Depends-on): Likewise.
73074
73075 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73076
73077         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
73078         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
73079         pedantically.
73080         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73081         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
73082
73083         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
73084         not "==".  Reported by Ralf Wildenhues.
73085
73086 2006-03-01  Karl Berry  <karl@gnu.org>
73087
73088         * doc/Copyright/request-*: new files, synced from gnuorg.
73089
73090 2006-03-01  Karl Berry  <karl@gnu.org>
73091
73092         * config/srclist.txt (Copyright/*): new entries.
73093
73094 2006-02-28  Simon Josefsson  <jas@extundo.com>
73095
73096         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
73097
73098 2006-02-27  Simon Josefsson  <jas@extundo.com>
73099
73100         * lib/base64.h: Indent #define's.  From Jim Meyering
73101         <jim@meyering.net>.
73102
73103 2006-02-27  Jim Meyering  <jim@meyering.net>
73104
73105         Revert the change of 2006-02-24, so these files can continue
73106         to be sync'd from gettext.
73107         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
73108         of `config.h'.
73109
73110 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
73111
73112         * modules/intprops: New file.
73113         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
73114         Add intprops.
73115         * modules/getloadavg (Files): Remove lib/intprops.h.
73116         (Depends-on): Add intprops.
73117         * modules/human: Likewise.
73118         * modules/inttostr: Likewise.
73119         * modules/openat: Likewise.
73120         * modules/sig2str: Likewise.
73121         * modules/userspec: Likewise.
73122         * modules/utimecmp: Likewise.
73123         * modules/xnanosleep: Likewise.
73124         * modules/xstrtol: Likewise.
73125
73126 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
73127
73128         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
73129         * modules/lock-tests (TESTS): Use $(EXEEXT).
73130         * modules/tls-tests: Likewise.
73131         * modules/argp-tests: Likewise.
73132         (check_PROGRAMS): New var, replacing...
73133         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
73134
73135 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73136
73137         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
73138         `config.h'.
73139
73140 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
73141
73142         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
73143
73144 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73145
73146         Sync from coreutils.
73147         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
73148         gl_CHDIR_SAFER.
73149
73150 2006-02-22  Jim Meyering  <jim@meyering.net>
73151
73152         Sync from coreutils.
73153         * m4/chdir-safer.m4: New file.
73154
73155 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
73156
73157         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
73158         AT_FDCWD exceeds INT_MAX.
73159         * lib/openat.h (AT_FDCWD): Likewise.
73160
73161 2006-02-17  Eric Blake  <address@hidden>
73162
73163         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
73164
73165 2006-02-16  Simon Josefsson  <jas@extundo.com>
73166
73167         * modules/getaddrinfo (Depends-on): Add sys_socket.
73168
73169 2006-02-15  Simon Josefsson  <jas@extundo.com>
73170
73171         * build-aux/maint.mk: Add dsyntax-check rule.
73172
73173 2006-02-15  Eric Blake  <ebb9@byu.net>
73174
73175         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
73176         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
73177         'present but cannot compile' warnings on cygwin.
73178         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
73179         use ws2tcpip.h if sys/socket.h works.
73180         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
73181         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
73182
73183 2006-02-14  Simon Josefsson  <jas@extundo.com>
73184
73185         * modules/maintainer-makefile (Files): Rename.
73186
73187         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
73188         and (the local) Makefile.cfg to maint-cfg.mk.
73189
73190         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
73191         to the latter.
73192
73193         * modules/maintainer-makefile: New module.
73194
73195         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
73196         severaly stripped to make it possible to build it up from scratch
73197         with reliable tests.
73198
73199         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
73200         fixes to permit overriding the default actions when configure and
73201         makefile are not available.
73202
73203 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
73204
73205         Sync from coreutils.
73206         * modules/lstat (Depends-on): Don't depend on xalloc.
73207         (License): Change from GPL to LGPL, since this is now simply a
73208         replacement for a libc function.
73209
73210 2006-02-14  Jim Meyering  <jim@meyering.net>
73211
73212         Sync from coreutils.
73213
73214         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
73215         failure on deficient systems, and simplify gnulib lgpl dependencies.
73216         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
73217         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
73218
73219         * lib/xalloc-die.c: Remove unused definition of N_.
73220
73221 2006-02-14  Jim Meyering  <jim@meyering.net>
73222
73223         Sync from coreutils.
73224         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
73225         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
73226         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
73227         double-quote uses of that variable, to accommodate the rare case in
73228         which getmntent is available in none of the libraries checked.  This
73229         happens at least on FreeBSD 5.0.
73230
73231 2006-02-13  Simon Josefsson  <jas@extundo.com>
73232
73233         * gnulib-tool (Usage): Fix --import, from
73234         karl@freefriends.org (Karl Berry).
73235
73236 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
73237
73238         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
73239
73240 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
73241
73242         * lib/argp-namefrob.h: Restore changes accidentally lost during the
73243         "autoupdate" on 2005-12-12.
73244
73245 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
73246
73247         * modules/closeout (Depends-on): Remove atexit.
73248
73249 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
73250
73251         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
73252         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
73253
73254 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
73255
73256         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
73257         __EXTENSIONS__ if this causes compilation to fail.  Problem
73258         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
73259         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
73260
73261 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
73262
73263         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
73264         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
73265         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
73266         All uses changed.
73267
73268 2006-01-26  Simon Josefsson  <jas@extundo.com>
73269
73270         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
73271         prototype is visible on mingw32.
73272
73273         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
73274         for mingw32.
73275
73276         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
73277         mingw32).
73278
73279 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
73280
73281         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
73282         attempt to open for write; this always fails, at least on POSIX
73283         hosts.  This reinstates the 2006-01-09 change, which was
73284         inadvertently removed.
73285
73286 2006-01-26  Bruno Haible  <bruno@clisp.org>
73287
73288         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
73289         Reported by Paul Eggert.
73290
73291 2006-01-26  Bruno Haible  <bruno@clisp.org>
73292             Paul Eggert  <eggert@cs.ucla.edu>
73293
73294         * lib/stdbool_.h (_Bool)
73295         [(! (defined __cplusplus || defined __BEOS__)
73296           && !defined __GNUC__
73297           && !(defined __HP_cc || defined __xlc__
73298                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
73299                || defined __sgi))]:
73300         #define to signed char in these cases too; this simplifies
73301         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
73302         etc., separately) and makes it more conservative.
73303
73304 2006-01-25  Simon Josefsson  <jas@extundo.com>
73305
73306         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
73307         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
73308         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
73309
73310 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
73311
73312         * lib/argp-namefrob.h: Bugfix. Remove stray #
73313
73314 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
73315
73316         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
73317         so that we test the test.
73318         Check for yet another HP-UX cc bug involving *bool |= bool.
73319
73320 2006-01-25  Karl Berry  <karl@gnu.org>
73321
73322         * config/srclist.txt (vasnprintf.c): sync lost.
73323
73324 2006-01-25  Jim Meyering  <jim@meyering.net>
73325
73326         Sync from the stable (b5) branch of coreutils:
73327
73328         * lib/fts.c (fts_children): Don't let close() clobber errno from
73329         failed fchdir().
73330
73331         * lib/fts.c (fts_stat): When following a symlink-to-directory,
73332         don't necessarily interpret stat-fails+lstat-succeeds as indicating
73333         a dangling symlink.  That can also happen at least for ELOOP.
73334         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
73335         FYI, this bug predates the inclusion of fts.c in coreutils.
73336
73337         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
73338         in their own block, so pre-c99 compilers don't object.
73339
73340         Avoid the double-free (first in fts_read, second in fts_close) that
73341         would occur when an `active' directory is made inaccessible (e.g.,
73342         via chmod a-x) during a traversal.
73343         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
73344         before returning.  Reproduce this failure by
73345         mkdir -p a/b; cd a; chmod a-x . b
73346         Reported by Stavros Passas.
73347
73348 2006-01-25  Jim Meyering  <jim@meyering.net>
73349
73350         * lib/fileblocks.c: Remove more useless parentheses.
73351         * lib/readutmp.h: Likewise.
73352
73353 2006-01-25  Bruno Haible  <bruno@clisp.org>
73354
73355         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
73356         warnings.
73357         Reported by Paul Eggert.
73358
73359 2006-01-25  Bruno Haible  <bruno@clisp.org>
73360
73361         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
73362         rid of a trap command. For Solaris sh.
73363         Reported by Mark D. Baushke <mdb@gnu.org>.
73364
73365 2006-01-24  Simon Josefsson  <jas@extundo.com>
73366
73367         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
73368         Bruno.
73369
73370 2006-01-24  Karl Berry  <karl@gnu.org>
73371
73372         * config/srclist.txt (argp-namefrob.h): sync lost.
73373
73374 2006-01-24  Jim Meyering  <jim@meyering.net>
73375
73376         * modules/openat (Files): Add lib/intprops.h.
73377         From Mark D. Baushke.
73378
73379 2006-01-24  Jim Meyering  <jim@meyering.net>
73380
73381         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
73382         Reported by Mark D. Baushke.
73383
73384 2006-01-24  Jim Meyering  <jim@meyering.net>
73385
73386         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
73387
73388 2006-01-24  Bruno Haible  <bruno@clisp.org>
73389
73390         * modules/strnlen (Maintainer): Change from glibc to all.
73391
73392 2006-01-24  Bruno Haible  <bruno@clisp.org>
73393
73394         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
73395         Patch by Paul Eggert.
73396
73397 2006-01-24  Bruno Haible  <bruno@clisp.org>
73398
73399         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
73400         already has it.
73401         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
73402         2005-11-26.
73403
73404         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
73405         'signed char' to avoid problems with the built-in _Bool type.
73406         Reported by Paul Eggert on 2005-11-26.
73407
73408 2006-01-24  Bruno Haible  <bruno@clisp.org>
73409
73410         * gnulib-tool (func_import): Avoid constructing complicated sed
73411         expressions inside backquote.
73412         Report and solution by Mark D. Baushke <mdb@gnu.org>.
73413
73414 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
73415
73416         These changes imported from libc.
73417         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
73418         test and two separate function calls.
73419         * lib/strndup.c (__strndup): Add libc_hidden_def.
73420
73421 2006-01-23  Simon Josefsson  <jas@extundo.com>
73422
73423         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
73424         Remove the test_*_SOURCES variable: automake infers it by default.
73425         * modules/tls-tests: Likewise.
73426
73427 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73428
73429         Work around porting bugs reported by Dieter in
73430         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
73431         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
73432         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
73433         Include "getopt.h" first, to check interface.
73434         (getenv): Declare only if defined HAVE_DECL_GETENV &&
73435         !HAVE_DECL_GETENV.
73436         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
73437         (__strndup): Revert to K&R-style function dfns, the glibc style.
73438         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
73439         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
73440         Include strnlen.h first, to get prototype properly.
73441         (strnlen): Renamed from __strnlen.
73442         Remove weak alias.
73443
73444 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73445
73446         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
73447
73448 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73449
73450         * config/srclist.txt: Adjust to reflect glibc reorganization.
73451         This affects only comments.
73452
73453 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73454
73455          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
73456          Reported by Bruce Korb <bkorb@gnu.org>.
73457
73458 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
73459
73460         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
73461         to pacify gcc -Wswitch-default.
73462
73463 2006-01-22  Bruno Haible  <bruno@clisp.org>
73464
73465         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
73466         temporary buffer for sprintf, take into account the precision also
73467         for 'd', 'i', 'u', 'o', 'x', 'X'.
73468
73469 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
73470
73471         * modules/argp-tests: New module
73472         * tests/test-argp.c: New file
73473         * tests/test-argp-2.sh: New file
73474
73475 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
73476
73477         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
73478         (__argp_base_name): Removed
73479         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
73480         typo.
73481         (__argp_base_name): Provide macro definition or extern declaration
73482         depending on the configuration
73483
73484 2006-01-20  Simon Josefsson  <jas@extundo.com>
73485
73486         * modules/inet_ntop (Depends-on): Depend on sys_socket.
73487
73488 2006-01-20  Simon Josefsson  <jas@extundo.com>
73489
73490         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
73491
73492 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
73493
73494         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
73495         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
73496         Suggested by Bruno Haible.
73497
73498 2006-01-20  Karl Berry  <karl@gnu.org>
73499
73500         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
73501         until changes propagate, I guess.
73502
73503 2006-01-19  Simon Josefsson  <jas@extundo.com>
73504
73505         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
73506
73507 2006-01-19  Simon Josefsson  <jas@extundo.com>
73508
73509         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
73510
73511 2006-01-19  Simon Josefsson  <jas@extundo.com>
73512
73513         * gnulib-tool: Set check_PROGRAMS.
73514
73515         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
73516         modules/des-tests, modules/gc-arcfour-tests,
73517         modules/gc-arctwo-tests, modules/gc-des-tests,
73518         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
73519         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
73520         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
73521         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
73522         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
73523         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
73524         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
73525         test_*_SOURCES.
73526
73527 2006-01-18  Simon Josefsson  <jas@extundo.com>
73528
73529         * modules/socklen (Depends-on): Depend on sys_socket.
73530
73531 2006-01-18  Simon Josefsson  <jas@extundo.com>
73532
73533         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
73534         modules/des-tests, modules/gc-arcfour-tests,
73535         modules/gc-arctwo-tests, modules/gc-des-tests,
73536         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
73537         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
73538         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
73539         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
73540         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
73541         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
73542         $(EXEEXT) to automake TESTS variable, for mingw32.
73543
73544 2006-01-17  Simon Josefsson  <jas@extundo.com>
73545
73546         * modules/socklen (Include): Need sys/socket.h.
73547
73548 2006-01-17  Bruno Haible  <bruno@clisp.org>
73549
73550         * modules/ssize_t (Include): Add <sys/types.h>.
73551
73552 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
73553
73554         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
73555         it's not portable and it doesn't work with cross-compiles.
73556         Problem reported by Bruno Haible.  Fix missing-$ typo in
73557         'test "gl_cv_ignore_unused_libraries" ...' that prevented
73558         -zignore from being used with Sun's C compiler.
73559
73560 2006-01-12  Simon Josefsson  <jas@extundo.com>
73561
73562         * lib/base64.c: Fix warning, reported by Bruno Haible
73563         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
73564
73565 2006-01-12  Bruno Haible  <bruno@clisp.org>
73566
73567         * modules/ldd: New file.
73568         * build-aux/ldd.sh.in: New file.
73569         * MODULES.html.sh (Support for building libraries and executables): Add
73570         ldd.
73571
73572 2006-01-12  Bruno Haible  <bruno@clisp.org>
73573
73574         * m4/ldd.m4: New file.
73575
73576 2006-01-12  Bruno Haible  <bruno@clisp.org>
73577
73578         * gnulib-tool (func_import, func_create_testdir): Don't go into an
73579         endless loop while replacing $auxdir with build-aux.
73580
73581 2006-01-11  Simon Josefsson  <jas@extundo.com>
73582
73583         * lib/stdint_.h (SIZE_MAX): Add missing (.
73584
73585 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
73586
73587         Sync from coreutils.
73588         * lib/md5.c: Fix commentary typos.
73589         (alignof, UNALIGNED_P): No need for a GCC-specific version.
73590         * lib/md5.h (__attribute__): Remove; unused.
73591         * lib/sha1.c: Fix commentary to match md5 better.
73592         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
73593         so that we don't need to worry about alignment.  All uses changed.
73594         This merges the 2005-10-28 md5 change into sha1.
73595
73596 2006-01-11  Jim Meyering  <jim@meyering.net>
73597
73598         Sync from coreutils.
73599         * lib/md5.c (OP): Fix spacing.
73600
73601 2006-01-11  Bruno Haible  <bruno@clisp.org>
73602
73603         Ensure automatic ordering between gl_LOCK and gl_ARGP.
73604         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
73605         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
73606
73607 2006-01-11  Bruno Haible  <bruno@clisp.org>
73608
73609         Ensure automatic ordering between gl_LOCK and gl_ARGP.
73610         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
73611         the "early" section as well.
73612
73613 2006-01-11  Bruno Haible  <bruno@clisp.org>
73614
73615         Avoid "ar: no archive members specified" error on MacOS X.
73616         * gnulib-tool (func_modules_add_dummy): New function.
73617         (func_import, func_create_testdir): Invoke it.
73618
73619 2006-01-11  Bruno Haible  <bruno@clisp.org>
73620
73621         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
73622         with $auxdir in AC_CONFIG_FILES statements.
73623
73624 2006-01-11  Bruno Haible  <bruno@clisp.org>
73625
73626         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73627         Initialize also noinst_HEADERS to empty.
73628
73629 2006-01-11  Bruno Haible  <bruno@clisp.org>
73630
73631         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
73632         variables.
73633         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
73634         autoreconf.
73635
73636 2006-01-11  Bruno Haible  <bruno@clisp.org>
73637
73638         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
73639         overridable by the user.
73640         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73641
73642 2006-01-10  Simon Josefsson  <jas@extundo.com>
73643
73644         * modules/sys_socket: New file.
73645
73646 2006-01-10  Simon Josefsson  <jas@extundo.com>
73647
73648         * m4/sys_socket_h.m4: New file.
73649
73650 2006-01-10  Simon Josefsson  <jas@extundo.com>
73651
73652         * lib/socket_.h: New file.
73653
73654 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73655
73656         * modules/readutmp (Maintainer): Add myself.
73657
73658 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73659
73660         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
73661         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
73662         People who are still concerned with buggy memcmp implementations
73663         can invoke gl_FUNC_MEMCMP themselves.
73664
73665 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73666
73667         * lib/regex_internal.h (BITSET_WORD_BITS):
73668         Work around a bug in 64-bit PGC (before version 6.1-2), where the
73669         preprocessor mishandles large unsigned values as if they were signed.
73670         Problem reported by Claudio Fontana in
73671         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
73672
73673 2006-01-10  Jim Meyering  <jim@meyering.net>
73674
73675         Avoid the double-free (first in fts_read, second in fts_close) that
73676         would occur when an `active' directory is made inaccessible (e.g.,
73677         via chmod a-x) during a traversal.
73678         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
73679         before returning.  Reproduce this failure by
73680         mkdir -p a/b; cd a; chmod a-x . b
73681         Reported by Stavros Passas.
73682
73683         Sync from coreutils.
73684         * lib/sha1.c: Tweak grammar in a comment.
73685
73686 2006-01-10  Jim Meyering  <jim@meyering.net>
73687
73688         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
73689         Patch by Joerg Sonnenberger.
73690
73691 2006-01-10  Bruno Haible  <bruno@clisp.org>
73692
73693         * modules/readutmp: Depend on module free.
73694         * modules/strtok_r: Depend on module restrict.
73695
73696 2006-01-10  Bruno Haible  <bruno@clisp.org>
73697
73698         * modules/gettext (configure.ac): Add an invocation of
73699         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
73700
73701 2006-01-10  Bruno Haible  <bruno@clisp.org>
73702
73703         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
73704         Reported by Werner Lemberg <wl@gnu.org>.
73705
73706 2006-01-10  Bruno Haible  <bruno@clisp.org>
73707
73708         * lib/localcharset.c: Update from GNU gettext.
73709
73710 2006-01-10  Bruno Haible  <bruno@clisp.org>
73711
73712         * lib/argp.h (__const): Remove macro. Use const instead.
73713         * lib/argp-fmtstream.h (__const): Likewise.
73714         * lib/glob_.h (__const): Remove macro.
73715         * lib/glob-libc.h: Use const instead of __const.
73716
73717 2006-01-10  Bruno Haible  <bruno@clisp.org>
73718
73719         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
73720         variable.
73721         Needed to avoid an automake error regarding the 'gettext' module.
73722
73723 2006-01-09  Simon Josefsson  <jas@extundo.com>
73724
73725         * modules/inet_ntop (Depends-on): Add restrict.
73726
73727 2006-01-09  Simon Josefsson  <jas@extundo.com>
73728
73729         * modules/gc-rijndael-tests (License): Put under LGPL.
73730
73731         * modules/gc-des-tests (License): Likewise.
73732
73733         * modules/gc-arcfour-tests (License): Likewise.
73734
73735         * modules/gc-arctwo-tests (License): Likewise.
73736
73737         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
73738
73739         * modules/gc-hmac-sha1-tests (Files): Likewise.
73740
73741         * modules/gc-hmac-md5-tests (License): Likewise.
73742
73743         * modules/gc-sha1-tests (License): Likewise.
73744
73745         * modules/gc-md5-tests (License): Likewise.
73746
73747         * modules/gc-md4-tests (License): Likewise.
73748
73749         * modules/gc-md2-tests (License): Likewise.
73750
73751         * modules/gc-tests (License): Likewise.
73752
73753         * modules/des-tests (License): Likewise.
73754
73755         * modules/md4-tests (License): Likewise.
73756
73757         * modules/md2-tests (License): Likewise.
73758
73759 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73760
73761         Sync from coreutils:
73762
73763         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
73764         * modules/lib-ignore: New file.
73765         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
73766         chdir-safer.m4, lchmod.m4.
73767         * modules/openat: Add mkdirat.c, openat-priv.h.
73768
73769 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73770
73771         Sync from coreutils.
73772         * m4/lib-ignore.m4: New file.
73773         * m4/lchmod.m4: New file.
73774
73775 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73776
73777         Sync from coreutils.
73778         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
73779         for write access: POSIX says that must fail.
73780         * lib/fts.c (diropen): Likewise.
73781         * lib/save-cwd.c (save_cwd): Likewise.
73782         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
73783         well, for minor improvements on hosts that lack O_DIRECTORY.
73784         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
73785         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
73786         Fall back on chown if open failed with EACCES.
73787
73788         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
73789         Report an error at compile-time if only a 1-second nominal clock
73790         resolution is found.
73791
73792         * lib/lchmod.h: New file.
73793         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
73794         (make_dir_parents): Use lchown rather than chown, and
73795         lchmod rather than chmod.
73796
73797         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
73798         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
73799         "proc" reported by n0dalus.
73800
73801         * lib/mountlist.c: Include <limits.h>.
73802         (dev_from_mount_options)
73803         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
73804         New function.  It no longer assumes "dev=" has the System V meaning
73805         on Linux (since it doesn't).  It also parses "dev=" more carefully.
73806         (read_file_system_list)
73807         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
73808         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
73809         dev= in that case.
73810
73811         * lib/posixtm.h (PDS_PRE_2000): New macro.
73812         * lib/posixtm.c (year): Arg is now syntax_bits rather than
73813         allow_century.  All usages changed.  Reject dates outside the range
73814         1969-1999 if PDS_PRE_2000 is used.
73815
73816 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73817
73818         Sync from coreutils.
73819         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
73820         (Time of day items): Mention the possibility of leap seconds.
73821         Problem reported by Dr. David Alan Gilbert.
73822
73823 2006-01-09  Jim Meyering  <jim@meyering.net>
73824
73825         Sync from coreutils.
73826
73827         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
73828
73829         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
73830
73831         * lib/modechange.c (mode_compile): Reject an invalid mode string
73832         that starts with an octal digit.  From Andreas Gruenbacher.
73833
73834         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
73835         and dup to open_safer and dup_safer, respectively.
73836         (openat_permissive): Fix typo in comment.
73837
73838         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
73839         "gettext.h"; either no longer needed or are guaranteed by openat.h.
73840         (_): Remove; no longer needed.
73841         (openat): Renamed from rpl_openat; no need for rpl_openat
73842         since openat.h renames openat for us.
73843         Replace most of the body with a call to openat_permissive,
73844         to avoid duplicate code.
73845         Port to (probably hypothetical) environments were mode_t is
73846         wider than int.
73847         (openat_permissive): Require mode arg, so that we can check
73848         types better.  Put it just after flags.  Change cwd failure
73849         indicator from pointer-to-bool to pointer-to-errno-value.
73850         All callers changed.
73851         Invoke openat_save_fail and/or openat_restore_fail if
73852         cwd_errno is null, so that openat can call us.
73853         (openat_permissive, fdopendir, fstatat, unlinkat):
73854         Simplify errno handling to avoid some duplicate code,
73855         as it's OK to set errno on success.
73856         * lib/openat.h: Revamp code so that function macros depend on
73857         __OPENAT_PREFIX only, not also on AT_FDCWD.
73858         (openat_ro): Remove.  Caller changed to use openat_permissive.
73859         (openat_permissive): Now a macro, if not a function.
73860         (openat_restore_fail, openat_save_fail): Now always functions,
73861         since mkdirat needs them even if __OPENAT_PREFIX is defined.
73862
73863         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
73864         and openat.c.
73865         * lib/mkdirat.c: Include openat-priv.h.
73866         Remove definitions of macros defined therein.
73867         * lib/openat.c: Likewise.
73868
73869         * lib/mkdirat.c (mkdirat): New file and function.
73870         * lib/openat.h (mkdirat): Declare.
73871
73872         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
73873
73874         * lib/openat.h (openat_permissive): Declare.
73875         (openat_ro): Define.
73876
73877         * lib/openat.c (EXPECTED_ERRNO): New macro.
73878         (openat_permissive): New function -- used in remove.c rewrite.
73879         (all functions): Set errno just before returning, only if there
73880         was an actual failure.
73881         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
73882
73883         Emulate openat-family functions using Linux's procfs, if possible.
73884         Idea and some code based on Ulrich Drepper's glibc changes.
73885
73886         * lib/openat.c: (BUILD_PROC_NAME): New macro.
73887         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
73888         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
73889         before falling back on save_cwd and restore_cwd.
73890         (fdopendir, fstatat, unlinkat): Likewise.
73891
73892         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
73893         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
73894
73895         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
73896         as second argument to va_arg.  Otherwise, some versions of gcc
73897         warn that `if this code is reached, the program will abort'.
73898
73899 2006-01-09  Jim Meyering  <jim@meyering.net>
73900
73901         Sync from coreutils.
73902         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
73903         Require openat-priv.h.
73904
73905 2006-01-09  Bruno Haible  <bruno@clisp.org>
73906
73907         * modules/strnlen (Include): Use strnlen.h.
73908
73909 2006-01-09  Bruno Haible  <bruno@clisp.org>
73910
73911         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
73912
73913 2006-01-09  Bruno Haible  <bruno@clisp.org>
73914
73915         * lib/sysexit_.h (EX_OK): New macro.
73916         Suggested by Martin Lambers <marlam@marlam.de>.
73917
73918 2006-01-09  Bruno Haible  <bruno@clisp.org>
73919
73920         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
73921         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
73922
73923 2006-01-09  Bruno Haible  <bruno@clisp.org>
73924
73925         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
73926         numbers.
73927
73928 2006-01-09  Bruno Haible  <bruno@clisp.org>
73929
73930         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
73931         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
73932         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
73933         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
73934
73935 2006-01-09  Bruno Haible  <bruno@clisp.org>
73936
73937         * build-aux/javacomp.sh.in: New file, moved from lib/.
73938         * modules/javacomp-script (Files): Update.
73939         (configure.ac): Add AC_CONFIG_FILES invocation.
73940         (EXTRA_DIST): Remove variable.
73941
73942         * build-aux/javaexec.sh.in: New file, moved from lib/.
73943         * modules/javaexec (Files): Update.
73944         (configure.ac): Add AC_CONFIG_FILES invocation.
73945         (EXTRA_DIST): Remove javaexec.sh.in.
73946
73947         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
73948         * modules/csharpcomp-script (Files): Update.
73949         (configure.ac): Add AC_CONFIG_FILES invocation.
73950         (EXTRA_DIST): Remove variable.
73951
73952         * build-aux/csharpexec.sh.in: New file, moved from lib/.
73953         * modules/csharpexec (Files): Update.
73954         (configure.ac): Add AC_CONFIG_FILES invocation.
73955         (EXTRA_DIST): Remove csharpexec.sh.in.
73956
73957 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73958
73959         Sync from coreutils.
73960
73961         Add POSIX ACL support
73962         * lib/acl.h (copy_acl, set_acl): Add declarations.
73963         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
73964         systems other than Linux.
73965         (chmod_or_fchmod): New function: use fchmod when possible,
73966         and chmod otherwise.
73967         (file_has_acl): Add a POSIX ACL implementation, with a
73968         Linux-specific subcase.
73969         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
73970         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
73971         acls are unsupported.
73972         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
73973         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
73974         are unsupported.
73975
73976 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73977
73978         Sync from coreutils.
73979         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
73980
73981 2006-01-07  Bruno Haible  <bruno@clisp.org>
73982
73983         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
73984         gl_EARLY.
73985
73986 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73987
73988         * lib/strftime.c (tzname): Don't declare if it is already #defined.
73989         Problem reported for Mingw by Mark Junker.
73990
73991 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73992
73993         * README: Gnulib normally doesn't generate a tarball.
73994
73995 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
73996
73997         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
73998         long int, not int, for nanosecond counts, so that people who are
73999         used to POSIX struct timespec won't be surprised.  Reported by Jim
74000         Meyering.
74001
74002 2005-12-28  Bruno Haible  <bruno@clisp.org>
74003
74004         * build-aux/config.rpath: Update from GNU gettext.
74005
74006 2005-12-16  Jim Meyering  <jim@meyering.net>
74007
74008         * modules/fprintftime: New module.
74009         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
74010
74011 2005-12-16  Jim Meyering  <jim@meyering.net>
74012
74013         * m4/fprintftime.m4: New file.
74014
74015 2005-12-16  Jim Meyering  <jim@meyering.net>
74016
74017         * lib/fprintftime.c, lib/fprintftime.h: New files.
74018
74019 2005-12-15  Simon Josefsson  <jas@extundo.com>
74020
74021         * modules/socklen (configure.ac): Fix M4 macro name, to align with
74022         new m4/socklen.m4.
74023
74024 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74025
74026         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
74027         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
74028
74029 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74030
74031         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
74032         * lib/argp-help.c (fill_in_uparams): Check if the constructed
74033         struct uparams is valid. Fall back to the default values if it is
74034         not.
74035
74036 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74037
74038         * modules/argp (Files): Add argp-pin.c
74039         (Depends-on): dirname
74040         (lib_SOURCES): Add argp-pin.c
74041
74042 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74043
74044         * m4/argp.m4:  Check if program_invocation_name and
74045         program_invocation_short_name are declared and define appropriate
74046         macros if they are not.
74047
74048 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74049
74050         * lib/argp-help.c (__argp_base_name): New function
74051         (__argp_short_program_name): Rewrite using __argp_base_name
74052         * lib/argp-namefrob.h: Define program_invocation_name and
74053         program_invocation_short_name if requested
74054         (__argp_base_name): Add prototype
74055         * lib/argp-parse.c (argp_def): Use gettext wrappers
74056         (argp_default_parser): Use __argp_base_name
74057         * lib/argp-pin.c: New file. Defines program_invocation_name and
74058         program_invocation_short_name on systems that lack them.
74059
74060 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74061
74062         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
74063         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
74064         porting problem reported by Georg Schwarz in
74065         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
74066
74067 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74068
74069         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
74070         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
74071         porting problem reported by Georg Schwarz in
74072         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
74073
74074 2005-12-05  Bruno Haible  <bruno@clisp.org>
74075
74076         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
74077         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
74078         Reported by Mark Junker <mjscod@gmx.de>.
74079
74080 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
74081
74082         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
74083         Use implementation from Albert Chin, with some
74084         comments/corrections by Stepan Kasal and myself.
74085
74086 2005-12-02  Bruno Haible  <bruno@clisp.org>
74087
74088         * gnulib-tool (func_import): Accept GPLed build tool modules when
74089         --lgpl is given.
74090         * modules/csharpcomp-script: New file.
74091         * modules/csharpcomp: Depend on it.
74092         * modules/javacomp-script: New file.
74093         * modules/javacomp: Depend on it.
74094         Suggested by Simon Josefsson.
74095
74096 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
74097
74098         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
74099         statement, to work around an HP-UX 10.20 compiler bug reported by
74100         Peter O'Gorman.
74101
74102 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
74103
74104         * modules/savedir (Depends-on): Add openat.
74105
74106 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
74107
74108         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
74109         (uintmax_t) [defined uintmax_t]: Do not declare.
74110         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
74111         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
74112         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
74113         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
74114         sake of portability to weird hosts that C allows (though we don't
74115         know of any practical examples).
74116
74117         * lib/savedir.h (fdsavedir): New decl.
74118         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
74119         contains most of the former guts of savedir.
74120         (savedir): Use savedirstream.
74121         Include "openat.h".
74122
74123 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
74124
74125         * modules/obstack (Files): Add m4/ulonglong.m4.
74126         Problem reported by Davide Angelocola.
74127
74128 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
74129
74130         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
74131         coreutils no longer futzes with rounding modes.
74132
74133 2005-11-14  Jim Meyering  <jim@meyering.net>
74134
74135         * lib/mkstemp-safer.c: Include <config.h>, required for possible
74136         replacement of mkstemp.
74137
74138 2005-11-10  Simon Josefsson  <jas@extundo.com>
74139
74140         * lib/readline.c: Remove EOL.
74141
74142 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74143
74144         * modules/gethrxtime (Depends-on): Add gettime.
74145
74146 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74147
74148         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
74149         or gettimeofday; no longer needed.
74150
74151 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74152
74153         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
74154         time business.
74155         (gethrxtime) [! (HAVE_NANOUPTIME
74156         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
74157         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
74158         our own approximation.
74159
74160 2005-11-08  Eric Blake  <ebb9@byu.net>
74161
74162         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
74163
74164 2005-11-08  Eric Blake  <ebb9@byu.net>
74165
74166         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
74167
74168 2005-11-04  Bruno Haible  <bruno@clisp.org>
74169
74170         * gnulib-tool: Implement --update mode.
74171
74172 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
74173
74174         Fix porting problem reported by Theodoros V. Kalamatianos.
74175         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
74176         Don't assume that futimes failing means we must fail.
74177
74178 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
74179
74180         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
74181         variables to suggest the intended function of the PATH_MAX check.
74182
74183 2005-10-30  Kean Johnston  <jkj@sco.com>
74184
74185         Trivial changes to support SCO systems.
74186         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
74187         as PATH_MAX.
74188         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
74189         where __ptr is null when no I/O is pending.
74190
74191 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
74192
74193         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
74194         leave errno alone.  Problem reported by Dmitry V. Levin.
74195
74196 2005-10-28  Simon Josefsson  <jas@extundo.com>
74197
74198         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
74199         Test more.
74200
74201         * tests/test-gc-md2.c, tests/test-md2.c: New files.
74202
74203         * modules/md2, modules/md2-tests: New files.
74204
74205 2005-10-28  Simon Josefsson  <jas@extundo.com>
74206
74207         * m4/inet_ntop.m4: More tests.
74208
74209         * m4/gc-md2.m4, md2.m4: New file.
74210
74211 2005-10-28  Simon Josefsson  <jas@extundo.com>
74212
74213         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
74214         "restrict" keywords, as per POSIX.  Protect the function
74215         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
74216         Don't use K&R prototypes.  Check the sprintf return values.
74217         Re-define EAFNOSUPPORT if not present.  Indent.
74218
74219         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
74220         suggested by Bruno Haible <bruno@clisp.org>.
74221
74222         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
74223
74224         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
74225
74226         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
74227         libgcrypt).
74228
74229         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
74230
74231         * lib/md2.h, lib/md2.c: New files.
74232
74233 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
74234
74235         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
74236         errno alone.  Problem reported by Frederic Jolliton.
74237
74238 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
74239
74240         * modules/verify (License): Change from GPL to LGPL.  This is a
74241         tiny module and there are apparently near-equivalents that are
74242         under the BSD license.
74243
74244 2005-10-24  Simon Josefsson  <jas@extundo.com>
74245
74246         * modules/sha1: Relicense to LGPL.
74247
74248 2005-10-24  Simon Josefsson  <jas@extundo.com>
74249
74250         * lib/md4.h: Shrink buffer size, now that we changed the type.
74251
74252 2005-10-23  Simon Josefsson  <jas@extundo.com>
74253
74254         * gnulib-tool (func_import): Fix --tests-base.
74255
74256 2005-10-22  Simon Josefsson  <jas@extundo.com>
74257
74258         * modules/arcfour (Depends-on): Need stdint.
74259
74260 2005-10-22  Simon Josefsson  <jas@extundo.com>
74261
74262         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
74263         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
74264
74265 2005-10-22  Simon Josefsson  <jas@extundo.com>
74266
74267         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
74268         suggested by Bruno Haible <bruno@clisp.org>.
74269
74270 2005-10-22  Simon Josefsson  <jas@extundo.com>
74271
74272         * lib/crc.h: Include stddef.h, for size_t.
74273
74274 2005-10-22  Simon Josefsson  <jas@extundo.com>
74275
74276         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
74277         arcfour_context struct (simplify test vector testing in GNU
74278         Shishi).
74279
74280 2005-10-21  Simon Josefsson  <jas@extundo.com>
74281
74282         * modules/des, modules/des-tests: New files.
74283
74284         * modules/gc-des, modules/gc-des-tests: New files.
74285
74286         * tests/test-des.c, tests/test-gc-des.c: New file.
74287
74288 2005-10-21  Simon Josefsson  <jas@extundo.com>
74289
74290         * modules/arctwo, modules/arctwo-tests: New files.
74291
74292         * tests/test-arctwo.c: New file.
74293
74294         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
74295
74296         * tests/test-gc-arctwo.c: New file.
74297
74298 2005-10-21  Simon Josefsson  <jas@extundo.com>
74299
74300         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
74301         Bruno Haible <bruno@clisp.org>.
74302
74303         * m4/gc-des.m4: New file.
74304
74305 2005-10-21  Simon Josefsson  <jas@extundo.com>
74306
74307         * m4/arctwo.m4: New file.
74308
74309         * m4/gc-arctwo.m4: New file.
74310
74311 2005-10-21  Simon Josefsson  <jas@extundo.com>
74312
74313         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
74314         block.
74315
74316 2005-10-21  Simon Josefsson  <jas@extundo.com>
74317
74318         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
74319         <bruno@clisp.org>.
74320
74321         * lib/hmac-sha1.c (hmac_sha1): Likewise.
74322
74323         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
74324         Bruno Haible <bruno@clisp.org>.
74325
74326         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
74327         <bruno@clisp.org>.
74328
74329 2005-10-21  Simon Josefsson  <jas@extundo.com>
74330
74331         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
74332
74333 2005-10-21  Simon Josefsson  <jas@extundo.com>
74334
74335         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
74336
74337 2005-10-21  Simon Josefsson  <jas@extundo.com>
74338
74339         * lib/des.h, lib/des.c: New files.
74340
74341         * lib/gc-gnulib.c: Support DES.c
74342
74343 2005-10-21  Simon Josefsson  <jas@extundo.com>
74344
74345         * lib/arctwo.h, lib/arctwo.c: New files.
74346
74347         * lib/gc-gnulib.c: Support ARCTWO.
74348
74349 2005-10-21  Simon Josefsson  <jas@extundo.com>
74350
74351         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
74352         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74353
74354 2005-10-21  Simon Josefsson  <jas@extundo.com>
74355
74356         * gnulib-tool (func_import, func_create_testdir): Define automake
74357         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
74358         Makefile.am snippet),
74359         suggested by Bruno Haible <bruno@clisp.org>.
74360
74361         * modules/gc (Makefile.am): Use it.
74362
74363 2005-10-21  Bruno Haible  <bruno@clisp.org>
74364
74365         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
74366         patch.
74367
74368 2005-10-19  Simon Josefsson  <jas@extundo.com>
74369
74370         * tests/test-gc-rijndael.c: New file.
74371
74372         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
74373
74374 2005-10-19  Simon Josefsson  <jas@extundo.com>
74375
74376         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
74377         interface too.
74378
74379 2005-10-19  Simon Josefsson  <jas@extundo.com>
74380
74381         * tests/test-gc-arcfour.c: New file.
74382
74383         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
74384
74385 2005-10-19  Simon Josefsson  <jas@extundo.com>
74386
74387         * modules/gc-md4, modules/gc-md4-tests: New file.
74388
74389         * tests/test-gc-md4.c: New file.
74390
74391 2005-10-19  Simon Josefsson  <jas@extundo.com>
74392
74393         * m4/gc-md4.m4: New file.
74394
74395 2005-10-19  Simon Josefsson  <jas@extundo.com>
74396
74397         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
74398         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
74399         <kasal@ucw.cz>.
74400
74401 2005-10-19  Simon Josefsson  <jas@extundo.com>
74402
74403         * m4/gc-arcfour.m4: New file.
74404
74405         * m4/gc-rijndael.m4: New file.
74406
74407 2005-10-19  Simon Josefsson  <jas@extundo.com>
74408
74409         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
74410
74411 2005-10-19  Simon Josefsson  <jas@extundo.com>
74412
74413         * lib/gc-gnulib.c: Support ARCFOUR.
74414
74415 2005-10-19  Simon Josefsson  <jas@extundo.com>
74416
74417         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
74418         support.
74419
74420         * lib/gc.h: Add ECB enum type.
74421
74422         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
74423
74424 2005-10-18  Simon Josefsson  <jas@extundo.com>
74425
74426         * tests/test-md5.c: New file.
74427
74428         * modules/md5-tests: New file.
74429
74430 2005-10-18  Simon Josefsson  <jas@extundo.com>
74431
74432         * tests/test-md4.c: New file.
74433
74434         * modules/md4, modules/md4-tests: New files.
74435
74436 2005-10-18  Simon Josefsson  <jas@extundo.com>
74437
74438         * m4/md4.m4: New file.
74439
74440 2005-10-18  Simon Josefsson  <jas@extundo.com>
74441
74442         * lib/md4.h, lib/md4.c: New files, based on md5.?.
74443
74444 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
74445
74446         * gnulib-tool (func_create_testdir): Omit the second check whether
74447         BUILT_SOURCES in nonempty.
74448
74449 2005-10-17  Simon Josefsson  <jas@extundo.com>
74450
74451         * tests/test-rijndael.c: New file.
74452
74453 2005-10-17  Simon Josefsson  <jas@extundo.com>
74454
74455         * modules/sha1: Depend on stdint instead of md5.
74456
74457         * modules/md5: Depend on stdint, remove uint32_t.
74458
74459 2005-10-17  Simon Josefsson  <jas@extundo.com>
74460
74461         * modules/gc-sha1-tests: New file.
74462
74463         * tests/test-gc-sha1.c: New file.
74464
74465 2005-10-17  Simon Josefsson  <jas@extundo.com>
74466
74467         * m4/md5.m4: Remove call to uint32_t.m4.
74468
74469 2005-10-17  Simon Josefsson  <jas@extundo.com>
74470
74471         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
74472
74473         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
74474         md5.h.
74475
74476         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
74477
74478         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
74479
74480 2005-10-17  Simon Josefsson  <jas@extundo.com>
74481
74482         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
74483
74484 2005-10-17  Simon Josefsson  <jas@extundo.com>
74485
74486         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
74487
74488 2005-10-17  Simon Josefsson  <jas@extundo.com>
74489
74490         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
74491
74492         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
74493
74494 2005-10-17  Bruno Haible  <bruno@clisp.org>
74495
74496         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
74497         that it can also be used in a test.
74498
74499 2005-10-16  Bruno Haible  <bruno@clisp.org>
74500
74501         * gnulib-tool (func_emit_tests_Makefile_am): Also define
74502         TESTS_ENVIRONMENT, so that individual tests can augment it.
74503
74504         * gnulib-tool (func_create_testdir): Use an intermediate target for
74505         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
74506         macros, like $(ALLOCA_H), which cannot be passed through the command
74507         line.
74508
74509 2005-10-15  Simon Josefsson  <jas@extundo.com>
74510
74511         * modules/rijndael-tests: New file.
74512
74513         * modules/rijndael: New file.
74514
74515 2005-10-15  Simon Josefsson  <jas@extundo.com>
74516
74517         * m4/rijndael.m4: New file.
74518
74519 2005-10-15  Simon Josefsson  <jas@extundo.com>
74520
74521         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
74522
74523         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
74524
74525 2005-10-14  Simon Josefsson  <jas@extundo.com>
74526
74527         * tests/test-arcfour.c: New file.
74528
74529         * modules/arcfour, modules/arcfour-tests: New files.
74530
74531 2005-10-14  Simon Josefsson  <jas@extundo.com>
74532
74533         * m4/arcfour.m4: New file.
74534
74535 2005-10-14  Simon Josefsson  <jas@extundo.com>
74536
74537         * lib/arcfour.h, lib/arcfour.c: New files.
74538
74539 2005-10-14  Roland McGrath  <roland@redhat.com>
74540
74541         Import from libc.  [BZ #1331]
74542         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
74543         macro argument.
74544         Reported by Matej Vela <vela@debian.org>.
74545
74546 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74547
74548         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
74549         include <wchar.h>; no longer needed.
74550
74551 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74552
74553         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
74554
74555 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
74556         and  Ulrich Drepper  <drepper@redhat.com>
74557
74558         Import from libc.
74559         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
74560         instead of inline stream orientation test and two separate
74561         function calls.  Pay no attention to USE_IN_LIBIO.
74562
74563 2005-10-13  Simon Josefsson  <jas@extundo.com>
74564
74565         * modules/gc-hmac-md5-tests: New file.
74566
74567         * tests/test-gc-hmac-sha1.c: New file.
74568
74569         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
74570
74571         * modules/gc-hmac-md5-tests: New file.
74572
74573         * tests/test-gc-md5.c: New file.
74574
74575         * modules/gc-md5-tests: New file.
74576
74577 2005-10-13  Simon Josefsson  <jas@extundo.com>
74578
74579         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
74580         Move memory allocation outside of loop.
74581
74582 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
74583
74584         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
74585         intermediate directory is in a read-only file system.  Problem
74586         reported by Eric Blake.
74587
74588 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
74589
74590         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
74591
74592 2005-10-12  Simon Josefsson  <jas@extundo.com>
74593
74594         * tests/test-hmac-sha1.c: New file.
74595
74596         * modules/hmac-sha1-tests: New file.
74597
74598         * modules/hmac-sha1: New file.
74599
74600 2005-10-12  Simon Josefsson  <jas@extundo.com>
74601
74602         * modules/gc-sha1: New file.
74603
74604 2005-10-12  Simon Josefsson  <jas@extundo.com>
74605
74606         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
74607
74608         * tests/test-gc-pbkdf2-sha1.c: New file.
74609
74610 2005-10-12  Simon Josefsson  <jas@extundo.com>
74611
74612         * modules/gc-md5, modules/gc-hmac-md5: New files.
74613
74614         * modules/gc (Files): Remove md5, memxor and hmac files.
74615
74616 2005-10-12  Simon Josefsson  <jas@extundo.com>
74617
74618         * m4/gc-pbkdf2-sha1.m4: New file.
74619
74620         * m4/gc-hmac-sha1.m4: New file.
74621
74622         * m4/gc-sha1: New file.
74623
74624         * m4/hmac-sha1.m4: New file.
74625
74626 2005-10-12  Simon Josefsson  <jas@extundo.com>
74627
74628         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
74629
74630         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
74631
74632 2005-10-12  Simon Josefsson  <jas@extundo.com>
74633
74634         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
74635         suggested by Bruno Haible <bruno@clisp.org>.
74636
74637 2005-10-12  Simon Josefsson  <jas@extundo.com>
74638
74639         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
74640
74641 2005-10-12  Simon Josefsson  <jas@extundo.com>
74642
74643         * lib/gc-pbkdf2-sha1.c: New file.
74644
74645         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
74646
74647 2005-10-12  Simon Josefsson  <jas@extundo.com>
74648
74649         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
74650
74651         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
74652
74653 2005-10-12  Simon Josefsson  <jas@extundo.com>
74654
74655         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
74656         GC_USE_HMAC_MD5, respectively.
74657
74658         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
74659         (gc_md5): Fix typo.
74660
74661         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
74662
74663         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
74664
74665         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
74666
74667 2005-10-12  Bruno Haible  <bruno@clisp.org>
74668
74669         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
74670         Reported by Stepan Kasal <kasal@ucw.cz>.
74671
74672 2005-10-11  Simon Josefsson  <jas@extundo.com>
74673
74674         * tests/test-crc.c: New file.
74675
74676         * modules/crc, modules/crc-tests: New files.
74677
74678 2005-10-11  Simon Josefsson  <jas@extundo.com>
74679
74680         * m4/crc.m4: New file.
74681
74682 2005-10-11  Simon Josefsson  <jas@extundo.com>
74683
74684         * lib/gc.h: Add gc_hash and gc_hash_buffer.
74685
74686         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
74687
74688         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
74689
74690 2005-10-11  Simon Josefsson  <jas@extundo.com>
74691
74692         * lib/crc.h, lib/crc.c: New files.
74693
74694         * lib/gc.h (gc_hash_buffer): Add doc.
74695
74696 2005-10-11  Bruno Haible  <bruno@clisp.org>
74697
74698         * modules/c-strcasestr: New file.
74699         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
74700
74701 2005-10-11  Bruno Haible  <bruno@clisp.org>
74702
74703         * modules/c-strcase: New file.
74704         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
74705
74706 2005-10-11  Bruno Haible  <bruno@clisp.org>
74707
74708         * lib/strcasecmp.c: Include limits.h.
74709         (strcasecmp): Avoid integer overflow on exotic platforms.
74710         * lib/strncasecmp.c: Include limits.h.
74711         (strncasecmp): Avoid integer overflow on exotic platforms.
74712         Reported by Paul Eggert.
74713
74714 2005-10-11  Bruno Haible  <bruno@clisp.org>
74715
74716         * lib/c-strcasestr.h: New file, from GNU gettext.
74717         * lib/c-strcasestr.c: New file, from GNU gettext.
74718
74719 2005-10-11  Bruno Haible  <bruno@clisp.org>
74720
74721         * lib/c-strcase.h: New file, from GNU gettext.
74722         * lib/c-strcasecmp.c: New file, from GNU gettext.
74723         * lib/c-strncasecmp.c: New file, from GNU gettext.
74724
74725 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
74726
74727         * modules/mempcpy (License): GPL -> LGPL.
74728         * modules/strchrnul (License): Likewise.
74729         * modules/sysexits (License): Likewise.
74730
74731 2005-10-08  Simon Josefsson  <jas@extundo.com>
74732
74733         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
74734
74735 2005-10-07  Simon Josefsson  <jas@extundo.com>
74736
74737         * m4/memxor.m4: Remove gl_C_RESTRICT call.
74738
74739 2005-10-06  Simon Josefsson  <jas@extundo.com>
74740
74741         * tests/test-hmac-md5.c: New file.
74742
74743         * modules/hmac-md5-tests: New file.
74744
74745         * modules/hmac-md5: New file.
74746
74747 2005-10-06  Simon Josefsson  <jas@extundo.com>
74748
74749         * m4/hmac-md5.m4: New file.
74750
74751         * m4/memxor.m4: Require gl_C_RESTRICT.
74752
74753 2005-10-06  Simon Josefsson  <jas@extundo.com>
74754
74755         * lib/memxor.c (memxor): Avoid casts and warnings.
74756
74757 2005-10-06  Simon Josefsson  <jas@extundo.com>
74758
74759         * lib/hmac-md5.c: New file.
74760
74761         * lib/hmac.h: New file.
74762
74763 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
74764
74765         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
74766         promotes to int, not unsigned int, to catch the AIX 5.3
74767         compiler bug.
74768
74769 2005-10-05  Simon Josefsson  <jas@extundo.com>
74770
74771         * modules/memxor: New file.
74772
74773         * modules/iconv (Files): Move config.rpath to havelib, it is used
74774         there.
74775
74776         * modules/havelib (Files): Add config.rpath.
74777
74778 2005-10-05  Simon Josefsson  <jas@extundo.com>
74779
74780         * m4/memxor.m4: New file.
74781
74782 2005-10-05  Simon Josefsson  <jas@extundo.com>
74783
74784         * lib/memxor.c (memxor): Fix compiler error.
74785
74786         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
74787         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
74788
74789         * lib/memxor.h, lib/memxor.c: New files.
74790
74791         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
74792         we assume all systems have it, suggested by Jim Meyering
74793         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
74794         any systems lack sys/socket.h; mingw32 is known to lack it, but we
74795         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
74796         same reasons.
74797
74798 2005-10-05  Simon Josefsson  <jas@extundo.com>
74799
74800         * config/srclist.txt: Add glibc bug 1423 for md5.h.
74801
74802 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
74803
74804         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
74805         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
74806         needed, since the source code now assumes these .h files.
74807
74808 2005-10-05  Derek Price  <derek@ximbiot.com>
74809
74810         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
74811
74812 2005-10-05  Bruno Haible  <bruno@clisp.org>
74813
74814         * modules/stdint (License): Change to LGPL.
74815
74816 2005-10-04  Simon Josefsson  <jas@extundo.com>
74817
74818         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
74819         D. Baushke" <mdb@gnu.org>.
74820
74821 2005-10-04  Bruno Haible  <bruno@clisp.org>
74822
74823         * lib/verify.h (verify_true): Provide alternative definition for C++.
74824
74825 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
74826
74827         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
74828         (SSIZE_MAX): New macro, if not already defined.
74829         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
74830         than 2 GiB.
74831
74832 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74833
74834         Sync from coreutils.
74835         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
74836         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
74837         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
74838         ULLONG_MAX doesn't work with 2.7.2.1.
74839
74840 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74841
74842         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
74843         From Ben Pfaff.
74844
74845         * modules/exclude (Depends-on): Depend on verify.
74846         * modules/strtoimax (Depends-on): Likewise.
74847         * modules/utimecmp (Depends-on): Likewise.
74848
74849 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74850
74851         * lib/exclude.c: Include verify.h.
74852         (verify): Remove.  All callers changed to use verify.h's version.
74853         * lib/strtoimax.c: Likewise.
74854         * lib/utimecmp.c: Likewis.e
74855
74856         Sync from coreutils.
74857         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
74858         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
74859         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
74860         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
74861         bother returning ENOSYS if settimeofday or stime fails; just let
74862         them return whatever errno they want to return.
74863         * lib/utimens.c: Include unistd.h, for dup2.
74864         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
74865         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
74866
74867 2005-10-02  Jim Meyering  <jim@meyering.net>
74868
74869         Sync from coreutils.
74870         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
74871         from glibc-2.2.5 that fails for read-only files.
74872
74873 2005-10-02  Jim Meyering  <jim@meyering.net>
74874
74875         Sync from coreutils.
74876         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
74877         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
74878         `#if HAVE_CONFIG_H'.
74879         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
74880         Remove AT_FDCWD test.
74881         Do not consume the fd unless successful.
74882         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
74883         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
74884         block, so that we don't even try to compile it if settimeofday is
74885         available.  This works around a compilation failure on OSF1 V5.1,
74886         due to stime requiring a `long int*' while tv_sec is `int'.
74887
74888 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
74889
74890         Sync from coreutils.
74891         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
74892         against `yes', rather than just testing for nonempty.
74893
74894 2005-10-01  Simon Josefsson  <jas@extundo.com>
74895
74896         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
74897         and Darwin.
74898
74899         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
74900         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
74901         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
74902         freeaddrinfo and gai_strerror are declared by the POSIX headers.
74903         Check if struct addrinfo is declared.
74904
74905 2005-10-01  Simon Josefsson  <jas@extundo.com>
74906
74907         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
74908         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
74909         AI_* and EAI_* definitions.  Protect function declarations.
74910
74911 2005-10-01  Jim Meyering  <jim@meyering.net>
74912
74913         Sync from coreutils.
74914
74915         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
74916         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
74917         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
74918         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74919         in the inet and nsl libraries.  Required on Solaris 5.7.
74920
74921 2005-10-01  Jim Meyering  <jim@meyering.net>
74922
74923         Sync from coreutils.
74924         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74925         in the inet and nsl libraries.  Required on Solaris 5.7.
74926
74927 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
74928
74929         * lib/getdelim.c (getdelim): Remove unused variables.
74930
74931 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
74932
74933         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
74934         so that the code works even with ancient cpp.  Portability problem
74935         with GCC 2.7.2.1 reported by Thomas M.Ott.
74936
74937 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
74938
74939         * modules/regex (Depends-on): Add strcase.
74940
74941         * modules/gethostname (Licence): Change from GPL to LGPL, since
74942         gethostname.c is a trivial implementation of a standard library
74943         function.
74944         * modules/poll (License): Change from GPL to LGPL, since it's
74945         derived from LGPL code.
74946
74947 2005-09-27  Jim Meyering  <jim@meyering.net>
74948
74949         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
74950         HAVE_CONFIG_H.
74951
74952         * lib/intprops.h (signed_type_or_expr__): Define.
74953         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
74954         for unsigned types.
74955
74956 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
74957
74958         * lib/verify.h (verify_expr): Remove, replacing with:
74959         (verify_true): New macro that returns true instead of void.
74960         (verify_type__): Remove.
74961         (verify): Use verify_true rather than verify_type__.
74962
74963 2005-09-26  Bruno Haible  <bruno@clisp.org>
74964
74965         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
74966         is necessary.
74967         (lib_SOURCES): Remove mbchar.c.
74968         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
74969         (Files): Add m4/mbrtowc.m4.
74970         * modules/mbiter: Likewise.
74971         * modules/mbuiter: Likewise.
74972
74973 2005-09-26  Bruno Haible  <bruno@clisp.org>
74974
74975         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
74976         compile mbchar.c if they are not both present.
74977         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
74978         * m4/mbiter.m4 (gl_MBITER): Likewise.
74979         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
74980         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
74981         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
74982
74983 2005-09-25  Jim Meyering  <jim@meyering.net>
74984
74985         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
74986         also uses socklen_t.
74987
74988 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
74989
74990         * lib/utimens.c (ENOSYS): Define if not already defined.
74991         (futimens): Support having a null PATH if the file descriptor
74992         is nonnegative.
74993
74994         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
74995         Remove.
74996         (__attribute): Define to empty unless GCC 3.1 or later.
74997         This works around a core dump on OpenBSD 3.4, which has GCC
74998         2.95.3, which dumps core when given __attribute__(()).  It also
74999         simplifies other tests, since we really don't want to bother with
75000         worrying about which ancient version of GCC supported what.
75001         Original problem reported by Yoann Vandoorselaere, with part of
75002         the fix suggested by Derek Price.
75003
75004 2005-09-24  Jim Meyering  <jim@meyering.net>
75005
75006         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
75007         so we can once again use a positive bitfield width of 1 -- now we
75008         don't have to explain why we were using a bitfield width of 2.
75009
75010 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
75011
75012         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
75013         and similarly for the other external symbols.  Problem reported
75014         by James Gallager.
75015
75016         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
75017         bug reported by Jim Meyering.
75018
75019         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
75020         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
75021         not needed, since socklen is a prerequisite module.
75022
75023 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
75024
75025         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
75026         Problem reported by Eric Blake.
75027         (getaddrinfo): Initialize se so that it's not garbage.
75028         Redo internal storage allocation so that it doesn't make unportable
75029         assumptions about alignment.
75030         Fix a memory leak.
75031
75032         * lib/utimens.c (futimens): Use futimesat if available.
75033         Prefer it to futimes since it doesn't have the futimes bug.
75034
75035         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
75036         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
75037         Instead, declare a function that returns a pointer to an array,
75038         and use verify_type__ to declare the size of the array.
75039         Problem and germ of a solution reported by Bruno Haible.
75040         (verify_type__): Use 2, not 1, for bitfield size, to avoid
75041         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
75042
75043 2005-09-23  Jim Meyering  <jim@meyering.net>
75044
75045         Sync from coreutils.
75046         Correct build failure (socklen_t not defined) on at least
75047         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
75048         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
75049
75050 2005-09-23  Jim Meyering  <jim@meyering.net>
75051
75052         * modules/getaddrinfo (Depends-on): Add socklen.
75053
75054 2005-09-23  Bruno Haible  <bruno@clisp.org>
75055
75056         * tests/test-verify.c: New file.
75057
75058 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75059
75060         Sync from coreutils.
75061
75062         * modules/argmatch (Depends-on): Add verify.
75063         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
75064         unistd-safer.
75065         * modules/save-cwd (Depends-on): Likewise.
75066
75067         * modules/openat (Files): Add lib/openat-die.c.
75068         (Depends-on): Remove error, exitfail.
75069         Add dirname.
75070
75071         * modules/verify: New file.
75072         * MODULES.html.sh (Diagnostics <assert.h>): New section,
75073         with "verify" module.
75074
75075 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75076
75077         Sync from coreutils.
75078
75079         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
75080         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
75081         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
75082         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
75083         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
75084         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
75085         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
75086         Don't bother checking for string.h, stdlib.h, unistd.h.
75087         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
75088         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
75089         module's job.
75090         * m4/jm-macros.m4 (gl_MACROS): Likewise.
75091         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
75092
75093         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
75094         (gl_GETDATE): Use it.
75095
75096         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
75097
75098 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75099
75100         Sync from coreutils.
75101
75102         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
75103         stat-time.h.
75104         * lib/argmatch.h: Include verify.h
75105         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
75106         (ARGMATCH_ASSERT): Remove; unused.
75107         * lib/canonicalize.c: Assume STDC_HEADERS.
75108         * lib/exclude.c: Include "strcase.h".
75109         * lib/regex_internal.h [!defined _LIBC]: Likewise.
75110         * lib/getusershell.c: Include stdio--.h rather than stdio.h
75111         and stdio-safer.h.
75112         (getusershell): Call fopen, not fopen_safer.
75113         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
75114         Do not include unistd-safer.h.
75115         (save_cwd): Don't call fd_safer; no longer needed
75116         now that we include fcntl--.h.
75117
75118         * lib/getdate.y (relative_time): New type.
75119         (RELATIVE_TIME_0): New constant.
75120         (parser_control): Use relative_time instead of doing it ourselves.
75121         (%union): Add new relative_time rel member.
75122         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
75123         Now typeless.
75124         (relunit, relunit_snumber): Now of type rel.
75125         (zone, rel, relunit, get_date): Adjust to above changes.
75126
75127         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
75128         Do not include unistd-safer.h.
75129         (getloadavg): Don't call fd_safer; no longer needed
75130         now that we include fcntl--.h.
75131
75132         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
75133         (make_dir_parents): Treat ENOSYS like EEXIST.
75134
75135         Improve quality of diagnostics on restore_cwd failure.
75136         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
75137         (make_dir_parents): Last arg is now int * (for errno), not bool *.
75138         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
75139         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
75140         each time through the loop.  Do not diagnose restore_cwd failure;
75141         that is the caller's job (and perhaps the caller does not care).
75142
75143         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
75144         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
75145         If the file already exists but is not a directory, don't bother
75146         to try to make its parents.
75147         Close potential file descriptor leak if we can't chdir("/") (!).
75148         Don't always return true if chdir($PWD) fails; return true only
75149         if the requested action was done successfully (except for the
75150         chdir($PWD)).
75151         Don't log final directory unless we actually made it.
75152         Refactor to avoid duplicate code to fix up permissions.
75153         Don't attempt to fix up parent permissions if chdir($PWD) fails.
75154
75155         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
75156         to make it a bit faster and (I hope) clearer.
75157         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
75158         Fix bug in formats like %2N.
75159
75160         * lib/verify.h: New file.
75161
75162 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75163
75164         Sync from coreutils.
75165         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
75166
75167 2005-09-22  Jim Meyering  <jim@meyering.net>
75168
75169         Sync from coreutils.
75170
75171         * m4/lstat.m4 (gl_FUNC_LSTAT):
75172         Use AC_LIBSOURCES to require lstat.c and lstat.h.
75173         Remove obsolete comment.
75174         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
75175         * m4/xstrtod.m4: Likewise.
75176
75177         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
75178
75179 2005-09-22  Jim Meyering  <jim@meyering.net>
75180
75181         Sync from coreutils.
75182
75183         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
75184
75185         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
75186         the .tm_year member, since otherwise gcc-4.0 would now warn about
75187         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
75188
75189         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
75190         order to avoid an unsuppressible warning from gcc on 64-bit systems.
75191
75192         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
75193         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
75194         when run in a time zone for which daylight savings time is in effect
75195         for the starting date.
75196
75197         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
75198         stop us from restricting permissions of just-created absolute-named
75199         directories.
75200         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
75201         to restore initial working directory.
75202         * lib/mkdir-p.c (make_dir_parents): New parameter:
75203         different_working_dir, to tell caller if/when we change the working
75204         directory and are unable to return to the initial one.
75205         * lib/mkdir-p.h (make_dir_parents): Update prototype.
75206         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
75207         `return false'.  This fixes a bug introduced on 2004-07-30.
75208
75209         * lib/openat.c (fdopendir): Be sure to close the supplied
75210         file descriptor before returning.  This makes our replacement
75211         implementation a little closer to Solaris's, where fdopendir
75212         ties the file descriptor to the returned DIR* pointer.
75213         * lib/openat.c (unlinkat): New function.
75214         * lib/openat.h (unlinkat): Add prototype.
75215         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
75216         (openat_restore_fail): Rename from openat_restore_die.
75217         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
75218
75219         Provide an alternative to exiting immediately upon save_cwd or
75220         restore_cwd failure.  Now, an application can arrange e.g.,
75221         to perform a longjump in that case.
75222         * lib/openat.c: Include dirname.h.
75223         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
75224         (rpl_openat, fdopendir, fstatat): Call openat_save_die
75225         and openat_restore_die rather than calling error directly.
75226         Don't include "error.h" or "exitfail.h"; they're no longer needed.
75227
75228         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
75229         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
75230         define.
75231
75232         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
75233         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
75234                             int utc, int nanoseconds);
75235         Background:
75236         date should not have to allocate a megabyte of virtual memory to
75237         handle a format argument like +%1048575T.  When implemented with
75238         strftime, it must allocate such a buffer, use strftime to fill it
75239         in, print it, then free it.
75240         With fprintftime, it simply prints everything and exits.
75241         With no need for memory allocation, that's one fewer way to fail.
75242         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
75243         optional field width, not before, so we accept %9:z, not %:9z.
75244         (my_strftime): Be sure to use L_('x') for literals.
75245
75246         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
75247         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
75248         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
75249         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
75250         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
75251         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
75252         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
75253         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
75254         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
75255         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
75256         * lib/xgethostname.c, lib/xreadlink.c:
75257         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
75258
75259         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
75260         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
75261         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
75262         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
75263         and don't include <sys/file.h>).
75264
75265 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
75266
75267         Sync from coreutils.
75268
75269         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
75270         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
75271         [!LDAV_DONE]: Avoid unused variable warning.
75272
75273 2005-09-21  Bruno Haible  <bruno@clisp.org>
75274
75275         * lib/unicodeio.h (unicode_to_mb): New declaration.
75276
75277 2005-09-20  Derek Price  <derek@ximbiot.com>
75278
75279         * lib/getaddrinfo.c: Don't include <netdb.h> included from
75280         getaddrinfo.h.
75281
75282 2005-09-20  Bruno Haible  <bruno@clisp.org>
75283
75284         * gnulib-tool: Remove trailing slashes from the values specified for
75285         --source-base, --m4-base, --tests-base, --aux-dir.
75286         Suggested by Simon Josefsson <jas@extundo.com>.
75287
75288 2005-09-20  Bruno Haible  <bruno@clisp.org>
75289
75290         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
75291         func_modules_to_filelist, func_import, func_create_testdir): Make all
75292         sorting results locale-independent, so that gnulib-cache.m4 doesn't
75293         change when gnulib-tool is invoked in a different locale.
75294
75295 2005-09-19  Simon Josefsson  <jas@extundo.com>
75296
75297         * m4/socklen.m4: Fix typo.
75298
75299 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75300
75301         Use a consistent style for including <config.h>.
75302         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
75303         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
75304         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
75305         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
75306         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
75307         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
75308         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
75309         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
75310         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
75311         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
75312         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
75313         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
75314         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
75315         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
75316         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
75317         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
75318         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
75319         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
75320         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
75321         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
75322         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
75323         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
75324         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
75325         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
75326         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
75327         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
75328         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
75329         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
75330         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
75331         lib/xstrtoumax.c, lib/yesno.c:
75332         Standardize inclusion of config.h.
75333         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
75334         lib/inttostr.h:  Removed inclusion of config.h from header files.
75335         * lib/inttostr.c:  Adjusted in-tree users.
75336         * lib/timespec.h: Remove superfluous warning to include config.h.
75337         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
75338         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
75339         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
75340         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
75341         config.h with HAVE_CONFIG_H.
75342
75343 2005-09-19  Jim Meyering  <jim@meyering.net>
75344
75345         * modules/pathmax (License): Change to LGPL.
75346
75347 2005-09-19  Derek Price  <derek@ximbiot.com>
75348
75349         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
75350
75351 2005-09-19  Bruno Haible  <bruno@clisp.org>
75352
75353         * gnulib-tool (import): Provide default for --tests-base.
75354
75355 2005-09-19  Bruno Haible  <bruno@clisp.org>
75356
75357         * doc/quote.texi: New file, extracted from gnulib.texi.
75358         * doc/ctime.texi: New file, extracted from gnulib.texi.
75359         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
75360         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
75361         * doc/gnulib.texi: Include them.
75362
75363 2005-09-18  Bruno Haible  <bruno@clisp.org>
75364
75365         Portability fix.
75366         * gnulib-tool (func_readlink): New function.
75367         (func_ln_if_changed): Use it.
75368
75369 2005-09-18  Bruno Haible  <bruno@clisp.org>
75370
75371         * gnulib-tool: Support --with-tests also with --import.
75372         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
75373         (func_import): Use variables $testsbase and $inctests. Emit a
75374         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
75375         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
75376         SUBDIRS += $testsdir.
75377         (func_create_testdir): Update.
75378
75379 2005-09-18  Bruno Haible  <bruno@clisp.org>
75380
75381         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
75382         instead of $dry_run.
75383         (func_cp_if_changed, func_mv_if_changed): Remove functions.
75384         (func_ln_if_changed): Don't handle dry-run here.
75385         (func_import): In dry-run mode, detect more precisely which actions
75386         would be performed, and don't use "...ing" verbs.
75387
75388 2005-09-18  Bruno Haible  <bruno@clisp.org>
75389
75390         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
75391         (func_import): Use join on two temporary files instead of three nested
75392         loops, in order to determine which files are new or old.
75393
75394 2005-09-18  Bruno Haible  <bruno@clisp.org>
75395
75396         * gnulib-tool (func_import): Comment out code that spits out the
75397         new files with --dry-run.
75398
75399 2005-09-18  Bruno Haible  <bruno@clisp.org>
75400
75401         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
75402
75403 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75404
75405         * lib/stat-time.h: New file.
75406         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
75407         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
75408         in a different way.
75409         (timespec_cmp): New function.
75410         * lib/utimecmp.c: Include stat-time.h.
75411         (SYSCALL_RESOLUTION): Depend on whether various struct stat
75412         members exist, not on the obsolescent ST_MTIM_NSEC.
75413         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
75414
75415 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75416
75417         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
75418
75419 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75420
75421         * MODULES.html.sh (File system functions): Add stat-time.
75422         * modules/stat-time: New file.
75423         * modules/timespec (Files): Remove m4/st_mtim.m4; this
75424         is now done in a different way, by the stat-time module.
75425         * modules/utimecmp (Depends-on): Add stat-time.
75426
75427 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75428
75429         * m4/st_mtim.m4: Remove.  Superseded by...
75430         * m4/stat-time.m4: New file.
75431         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
75432         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
75433
75434 2005-09-15  Derek Price  <derek@ximbiot.com>
75435
75436         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
75437
75438 2005-09-15  Derek Price  <derek@ximbiot.com>
75439
75440         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
75441         * lib/regex_internal.c: Ditto, using this...
75442         (__GNUC_PREREQ): ...new macro.
75443         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
75444         using...
75445         (__GNUC_PREREQ): ...this new macro.
75446
75447         * lib/strstr.h: Include string.h. Define strstr as a macro here.
75448
75449 2005-09-15  Derek Price  <derek@ximbiot.com>
75450             Paul Eggert  <eggert@cs.ucla.edu>
75451
75452         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
75453         changes, consolidating in...
75454         * lib/regex_internal.h: ...this file.
75455
75456 2005-09-13  Jim Meyering  <jim@meyering.net>
75457
75458         * lib/canon-host.c: Filter through gnu indent and reword comments
75459         slightly.
75460         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
75461
75462 2005-09-13  Derek Price  <derek@ximbiot.com>
75463
75464         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
75465         failure.
75466         Reported by Jim Meyering  <jim@meyering.net>.
75467
75468 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75469
75470         * lib/base64.c: Typo.
75471         (base64_encode): Put b64str in initialized data section.
75472
75473 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
75474
75475         Merge glibc and coreutils changes into gnulib, plus a few
75476         extra fixes.
75477         * lib/md5.c: Use #error rather than a string.
75478         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
75479         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
75480         (__attribute__): Define to empty for non recent-GCC.
75481         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
75482         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
75483         Renamed from their non-__ counterparts, with new macros replacing
75484         them if not _LIBC.  Add __THROW attribute.
75485         (rol): Remove.
75486         (struct md5_ctx): Align buffer if using GCC.
75487         * lib/sha1.h (struct sha1_ctx): Likewise.
75488         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
75489         The old name was backwards.
75490         (NOTSWAP): Remove; not used.
75491         (rol): New macro, moved here from md5.h.
75492         (sha1_process_block): Remove a FIXME that doesn't make sense.
75493
75494 2005-09-12  Derek Price  <derek@ximbiot.com>
75495
75496         Return usable errors from canon-host.
75497         * lib/canon-host.h: New file.
75498         * lib/canon-host.c (canon_host): Wrap...
75499         (canon_host_r): ...this new function, which now relies exclusively on
75500         getaddrinfo.
75501         (ch_strerror): New function.
75502         (last_cherror): New global.
75503         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
75504         interface.
75505         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
75506         void *.
75507         (freeaddrinfo): Free ai->ai_canonname when set.
75508
75509 2005-09-12  Derek Price  <derek@ximbiot.com>
75510
75511         Make canon-host require getaddrinfo.
75512         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
75513         AC_LIBSOURCE canon-host.h.  Call...
75514         (gl_PREREQ_CANON_HOST): ...this new function, which requires
75515         gl_GETADDRINFO.
75516         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
75517
75518 2005-09-12  Derek Price  <derek@ximbiot.com>
75519
75520         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
75521         LGPL.
75522         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
75523
75524 2005-09-12  Derek Price  <derek@ximbiot.com>
75525
75526         * lib/gai_strerror.c: Include config.h when available.  Include
75527         getaddrinfo.h before other headers to test interface.
75528         Reported by Larry Jones <lawrence.jones@ugs.com>.
75529
75530 2005-09-12  Derek Price  <derek@ximbiot.com>
75531             Paul Eggert  <eggert@cs.ucla.edu>
75532
75533         * modules/glob (Files): Add glob-libc.h.
75534
75535 2005-09-12  Derek Price  <derek@ximbiot.com>
75536             Paul Eggert  <eggert@cs.ucla.edu>
75537
75538         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
75539         glob_.h, glob-libc.h.
75540         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
75541
75542 2005-09-12  Derek Price  <derek@ximbiot.com>
75543             Paul Eggert  <eggert@cs.ucla.edu>
75544
75545         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
75546         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
75547         protecting things that should be done only in gnulib contexts.
75548         * lib/glob_.h: New file, containing only the glob things needed for
75549         gnulib.
75550         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
75551         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
75552         (glob, globfree, glob_pattern_p): Now defined simply in terms of
75553         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
75554         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
75555         and to respect the namespace rules better.
75556
75557 2005-09-08  Simon Josefsson  <jas@extundo.com>
75558
75559         * modules/socklen: New file.
75560
75561 2005-09-08  Simon Josefsson  <jas@extundo.com>
75562
75563         * m4/socklen.m4: New file.
75564
75565 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75566
75567         * modules/utimens (Files): Add m4/utimbuf.m4, since
75568         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
75569         Reported by Sergey Poznyakoff.
75570
75571 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75572
75573         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
75574         definitions, since that's the preferred style in glibc.
75575         Fix a minor spacing issue, and update copyright notice to match
75576         glibc's.
75577
75578 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75579
75580         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
75581
75582 2005-09-06  Simon Josefsson  <jas@extundo.com>
75583
75584         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
75585         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
75586
75587 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75588
75589         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
75590         warning.
75591
75592 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75593
75594         * config/srclist.txt: Add glibc bug 1302.
75595
75596 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
75597
75598         Change bitset word type from unsigned int to unsigned long int,
75599         as this has better performance on typical 64-bit hosts.
75600         Port bitset code to hosts with unusual word sizes.
75601         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
75602         (build_collating_symbol):
75603         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
75604         argument is a bitset.  This is merely a style issue, but it makes
75605         it clearer that an entire array is expected.
75606         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
75607         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
75608         Port to the case where bitset_word is not the same as unsigned int.
75609         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75610         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
75611         Likewise.
75612         * lib/regexec.c (check_dst_limits_calc_pos_1,
75613         check_subexp_matching_top):
75614         (build_trtable, group_nodes_into_DFAstates):
75615         Likewise.
75616         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
75617         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
75618         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
75619         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
75620         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
75621         * lib/regcomp.c (optimize_subexps, lower_subexp):
75622         Work even if bitset_word has holes in its bitwise representation.
75623         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
75624         * lib/regexec.c (check_dst_limits_calc_pos_1,
75625         check_subexp_matching_top):
75626         Likewise.
75627         * lib/regex_internal.c (re_string_reconstruct):
75628         Don't assume UCHAR_MAX == 255.
75629         * lib/regex_internal.h (bitset_set_all): Likewise.
75630         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
75631         All uses changed.
75632         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
75633         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
75634         All uses changed.
75635         (BITSET_WORD_MAX): New macro.
75636         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
75637         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
75638         (bitset_empty, bitset_copy):
75639         Prefer sizeof (bitset) to multiplying it out ourselves.
75640         (bitset_not_merge): Remove; unused.
75641         (bitset_contain): Return bool, not unsigned int with one bit on.
75642         All callers changed.
75643         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
75644         alignment than re_node_set; do this by defining a new internal
75645         type struct dests_alloc and using it to allocate memory.
75646
75647 2005-09-05  Bruno Haible  <bruno@clisp.org>
75648
75649         * gnulib-tool (func_import): Fix comparison in handling of symbolic
75650         links.
75651
75652 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
75653
75654         * modules/size_max (Makefile.am): Add size_max.h
75655
75656 2005-09-04  Derek Price  <derek@ximbiot.com>
75657
75658         * gnulib-tool (func_import): Fix reversed $symbolic logic.
75659
75660 2005-09-03  Simon Josefsson  <jas@extundo.com>
75661
75662         * gnulib-tool: Fix typo.
75663
75664 2005-09-03  Simon Josefsson  <jas@extundo.com>
75665
75666         * config/srclist.txt: Add glibc bug 1293.
75667
75668 2005-09-03  Derek Price  <derek@ximbiot.com>
75669
75670         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
75671         From Larry Jones <lawrence.jones@ugs.com>.
75672
75673 2005-09-02  Simon Josefsson  <jas@extundo.com>
75674
75675         * modules/socklen: New file.
75676
75677 2005-09-02  Simon Josefsson  <jas@extundo.com>
75678
75679         * modules/havelib: New module.
75680
75681         * modules/gettext, modules/iconv, modules/lock, modules/readline:
75682         Use havelib.
75683
75684 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
75685
75686         Check for arithmetic overflow when calculating sizes, to prevent
75687         some buffer-overflow issues.  These patches are conservative, in the
75688         sense that when I couldn't determine whether an overflow was possible,
75689         I inserted a run-time check.
75690         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
75691         macros.
75692         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
75693         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
75694         (re_xnrealloc, re_x2nrealloc): New inline functions.
75695         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
75696         parse_bracket_exp):
75697         (build_equiv_class, build_charclass): Check for arithmetic overflow
75698         in size expression calculations.
75699         * lib/regex_internal.c (re_string_realloc_buffers):
75700         (build_wcs_upper_buffer, re_node_set_add_intersect):
75701         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
75702         (re_dfa_add_node, register_state): Likewise.
75703         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
75704         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
75705         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
75706         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
75707
75708 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
75709
75710         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
75711         m4/ulonglong.m4.  Problem reported by Martin Lambers.
75712
75713 2005-09-02  Bruno Haible  <bruno@clisp.org>
75714
75715         Support for lib vs. lib64 distinction on biarch platforms.
75716         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
75717         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
75718         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
75719
75720 2005-09-02  Bruno Haible  <bruno@clisp.org>
75721
75722         * gnulib-tool (import): In the other first-use case, provide defaults
75723         as well.
75724
75725 2005-09-02  Bruno Haible  <bruno@clisp.org>
75726
75727         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
75728         patches not yet found in the latest gettext release.
75729
75730 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75731
75732         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
75733         to avoid a collision with bits/local_lim.h in glibc.
75734         All uses changed.  Problem reported by Dmitry V. Levin in
75735         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
75736
75737         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
75738         bugs in int versus size_t comparisons.
75739         (re_string_context_at): Fix bug where the code assumed that
75740         Idx is signed.
75741
75742         Use bool where appropriate.
75743         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
75744         All callers changed.
75745         (calc_eclosure_iter): Likewise, for ROOT arg.
75746         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
75747         (build_charclass_op): Likewise, for NON_MATCH arg.
75748         * lib/regex_internal.c (re_string_allocate, re_string_construct):
75749         (re_string_construct_common): Likewise, for ICASE arg.
75750         * lib/regexec.c (re_search_2_stub, re_search_stub):
75751         Likewise, for RET_LEN arg.
75752         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
75753         (set_regs): Likewise, for FL_BACKTRACK arg.
75754         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
75755         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
75756         (calc_eclosure_iter, parse_bracket_exp):
75757         Use bool for internal variables that are booleans.
75758         * lib/regexec.c (re_search_internal, check_matching,
75759         proceed_next_node):
75760         (set_regs, build_sifted_states, sift_states_bkref):
75761         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
75762         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
75763         (find_collation_sequence_value):
75764         Likewise.
75765         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
75766         (re_node_set_compare):
75767         Return bool, not int. All callers changed.
75768         * lib/regexec.c (check_halt_node_context, check_dst_limits):
75769         (build_trtable, check_node_accept): Likewise.
75770         * lib/regex_internal.h: Include stdbool.h.
75771
75772         Fix bugs uncovered when converting to bool.
75773         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
75774         failure instead of charging ahead blindly.
75775         * lib/regex_internal.c (register_state): Likewise.
75776         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
75777         for freeing internal storage.
75778         (group_nodes_into_DFA_states): Use unsigned int, not int, for
75779         bitset pieces used as boolean, to avoid undefined behavior
75780         on hosts that do int overflow checking.
75781
75782 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75783
75784         * config/srclist.txt: Add glibc bugs 1285-1287.
75785
75786 2005-09-01  Jim Meyering  <jim@meyering.net>
75787
75788         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
75789         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
75790         Require gl_STAT_MACROS, too.
75791
75792 2005-09-01  Bruno Haible  <bruno@clisp.org>
75793
75794         * gnulib-tool (import): In the first-use case, provide defaults.
75795
75796 2005-09-01  Bruno Haible  <bruno@clisp.org>
75797
75798         * gnulib-tool (func_import): Remove the .tmp files.
75799
75800 2005-09-01  Bruno Haible  <bruno@clisp.org>
75801
75802         * gnulib-tool (func_import): Fix handling of symbolic links.
75803
75804 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75805
75806         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
75807         old glibc regex code mishandles strings longer than 2**31 bytes.
75808         This patch fixes this when the regex code is used in gnulib
75809         (i.e., outside glibc).
75810
75811         This patch should not affect the use of the regex code inside
75812         glibc.  No doubt this problem also needs to be handled for glibc
75813         as well, but the result will be an incompatible change to the
75814         glibc ABI, and the old ABI will have to be supported too.  That
75815         can be the the subject for another patch.
75816
75817         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
75818         governing whether the rest of this patch is active.  By default,
75819         the macro is disabled and the patch has no effect.
75820         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
75821         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
75822         (struct re_pattern_buffer, re_search, re_search_2, re_match):
75823         (re_match_2, re_set_registers): Use the new types.
75824         * lib/regex_internal.h (Idx, re_hashval_t): New types.
75825         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
75826         New macros.
75827         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
75828         (re_string_context_at, bin_tree_t, re_dfastate_t):
75829         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
75830         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
75831         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
75832         (re_string_char_size_at, re_string_wchar_at):
75833         (re_string_elem_size_at):
75834         Use the new types and macros to port to 64-bit hosts.
75835         Use unsigned types for internal values, so that the code
75836         mostly works even for arrays larger than SSIZE_MAX.
75837         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
75838         (search_duplicated_node, calc_eclosure_iter, fetch_number):
75839         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
75840         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
75841         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
75842         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
75843         (calc_inveclosure, parse_dup_op, build_range_exp):
75844         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
75845         (fetch_number, create_token_tree, mark_opt_subexp):
75846         Likewise.
75847         * lib/regex_internal.c (re_string_construct_common,
75848         create_ci_newstate):
75849         (create_cd_newstate, re_string_allocate, re_string_construct):
75850         (re_string_realloc_buffers, build_wcs_upper_buffer):
75851         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
75852         (re_string_reconstruct, re_string_peek_byte_case):
75853         (re_string_fetch_byte_case, re_string_context_at):
75854         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
75855         (re_node_set_init_copy, re_node_set_add_intersect):
75856         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75857         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75858         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
75859         (re_acquire_state, re_acquire_state_context, register_state):
75860         Likewise.
75861         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
75862         search_cur_bkref_entry):
75863         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
75864         (re_search_internal, re_search_2_stub, re_search_stub)
75865         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
75866         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
75867         (update_cur_sifted_state, check_dst_limits):
75868         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75869         (check_subexp_limits, sift_states_bkref, merge_state_array):
75870         (check_subexp_matching_top, get_subexp, get_subexp_sub):
75871         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
75872         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
75873         (expand_bkref_cache, check_node_accept_bytes):
75874         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
75875         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
75876         (acquire_init_state_context, check_halt_node_context):
75877         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
75878         (sift_states_backward, clean_state_log_if_needed):
75879         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
75880         (find_recover_state, transit_state_sb, transit_state_mb):
75881         (transit_state_bkref, build_trtable, match_ctx_clean):
75882         Likewise.
75883         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
75884         to work around an assumption that REG_MISSING is negative.
75885
75886         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
75887         (seek_collating_symbol_entry) [defined _LIBC]:
75888         (lookup_collation_sequence_value) [defined _LIBC]:
75889         (build_range_exp, build_collating_symbol) [defined _LIBC]:
75890         Use prototypes rather than old-style function definitions.
75891         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
75892         (transit_state_sb) [0]:
75893         (find_collation_sequence_value) [defined _LIBC]: Likewise.
75894
75895         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
75896         rm_eo.
75897
75898         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
75899         (optimize_subexps, lower_subexp):
75900         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
75901         since the signed shift might overflow.  Use 1u<<31 instead.
75902         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75903         Likewise.
75904         * lib/regexec.c (check_dst_limits_calc_pos_1,
75905         check_subexp_matching_top): Likewise.
75906
75907         * lib/regcomp.c (optimize_subexps, lower_subexp):
75908         Use CHAR_BIT rather than 8, for clarity.
75909         * lib/regexec.c (check_dst_limits_calc_pos_1):
75910         (check_subexp_matching_top): Likewise.
75911         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
75912         have to worry about portability issues when shifting it left.
75913         Remove no-longer-needed test for table_size > 0.
75914         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
75915         in a word, as the resulting behavior is undefined.
75916         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
75917         in one case, a <= should have been an <, and in another case the
75918         whole test was missing.
75919         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
75920         the standard name CHAR_BIT.
75921         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
75922         this is not true on one's complement and signed-magnitude hosts.
75923
75924         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
75925         next_last_offset.
75926         (struct re_dfa_t): Remove unused member states_alloc.
75927         * lib/regcomp.c (init_dfa): Don't initialize unused members.
75928
75929 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75930
75931         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
75932         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
75933         and large-file glibc and in 32-bit large-file Solaris.
75934
75935 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75936
75937         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
75938         lengths fit in regoff_t; this isn't true if regoff_t is the same
75939         width as size_t.
75940         * lib/regex.c (re_search_internal): 5th arg is LAST_START
75941         (= START + RANGE) instead of RANGE.  This avoids overflow
75942         problems when regoff_t is the same width as size_t.
75943         All callers changed.
75944         (re_search_2_stub): Check for overflow when adding the
75945         sizes of the two strings.
75946         (re_search_stub): Check for overflow when adding START
75947         to RANGE; if it occurs, substitute the extreme value.
75948
75949 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75950
75951         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
75952
75953 2005-08-31  Jim Meyering  <jim@meyering.net>
75954
75955         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
75956         a pointer-to-const.
75957         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
75958         (register_state): Likewise.
75959         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
75960         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75961         (group_nodes_into_DFAstates): Likewise.
75962
75963 2005-08-31  Jim Meyering  <jim@meyering.net>
75964
75965         * check-module: Add a FIXME comment.
75966
75967 2005-08-31  Eric Blake  <ebb9@byu.net>
75968
75969         * modules/unistd-safer (Files): Add unistd--.h.
75970         * modules/stdio-safer (Files): Add stdio--.h.
75971
75972 2005-08-31  Derek Price  <derek@ximbiot.com>
75973
75974         * lib/getdelim.c (getdelim): Return EOF on EOF.
75975         Reported by Larry Jones <lawrence.jones@ugs.com>.
75976
75977 2005-08-31  Bruno Haible  <bruno@clisp.org>
75978
75979         Avoid unnecessary diffs in the generated lib/Makefile.am.
75980         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
75981         the generated files.
75982         (func_import): Don't set cmd.
75983
75984 2005-08-31  Bruno Haible  <bruno@clisp.org>
75985
75986         * lib/strstr.c: Include <stddef.h>, for NULL.
75987         * lib/strcasestr.c: Likewise.
75988         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75989
75990 2005-08-31  Bruno Haible  <bruno@clisp.org>
75991
75992         * gnulib-tool: New option --macro-prefix.
75993         (func_import): Use macro_prefix.
75994         (import): Handle option --macro-prefix.
75995
75996 2005-08-31  Bruno Haible  <bruno@clisp.org>
75997
75998         * gnulib-tool (import): Rename most ac_* variables to cached_*.
75999         Also use new variables cached_lgpl, cached_libtool.
76000
76001 2005-08-31  Bruno Haible  <bruno@clisp.org>
76002
76003         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
76004         always instantiating them.
76005
76006 2005-08-31  Bruno Haible  <bruno@clisp.org>
76007
76008         * gnulib-tool (func_import): Read the previous cached settings
76009         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
76010         earlier added by gnulib but are now dropped. Warn when a gnulib file
76011         overwrites a non-gnulib file.
76012
76013 2005-08-31  Bruno Haible  <bruno@clisp.org>
76014
76015         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
76016         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
76017         projects that don't keep autogenerated files in CVS. Put into
76018         actioncmd only the specified modules, not the transitive closure.
76019
76020 2005-08-31  Bruno Haible  <bruno@clisp.org>
76021
76022         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
76023         Create directories that shall be filled.
76024         (import): Don't look for gl_* macros in configure.ac. Recurse across
76025         all directories containing a gnulib-cache.m4 files, if meaningful.
76026
76027 2005-08-31  Bruno Haible  <bruno@clisp.org>
76028
76029         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
76030         (import): Set seen_libtool when we see gl_LIBTOOL.
76031
76032 2005-08-31  Bruno Haible  <bruno@clisp.org>
76033
76034         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
76035         declaration macro definitions from generated gnulib.m4.
76036
76037 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
76038
76039         * lib/iconvme.h: Add prototype for iconv_alloc.
76040
76041 2005-08-29  Simon Josefsson  <jas@extundo.com>
76042
76043         * lib/iconvme.c: Fix errno.
76044
76045 2005-08-29  Bruno Haible  <bruno@clisp.org>
76046
76047         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
76048         that it works when the directory contains spaces.
76049
76050 2005-08-29  Bruno Haible  <bruno@clisp.org>
76051
76052         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
76053
76054 2005-08-29  Bruno Haible  <bruno@clisp.org>
76055
76056         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
76057         Emit more advice.
76058
76059 2005-08-29  Bruno Haible  <bruno@clisp.org>
76060         and Stepan Kasal  <kasal@ucw.cz>
76061
76062         * check-module: If more parameters are given, check each of them
76063         separately; add more exceptions, as noted by Jim Meyering.
76064         (check_module): New procedure.
76065         (%exempt_header): Now contains all exceptions.
76066
76067 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
76068
76069         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
76070
76071 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
76072
76073         * lib/iconvme.c: Split iconv_string into iconv_alloc.
76074
76075 2005-08-28  Bruno Haible  <bruno@clisp.org>
76076
76077         * m4/gnulib-tool.m4: New file.
76078
76079 2005-08-27  Jim Meyering  <jim@meyering.net>
76080
76081         * modules/unistd-safer (Files): Add pipe-safer.c.
76082         * modules/fcntl-safer (Files): Add creat-safer.c.
76083
76084 2005-08-27  Jim Meyering  <jim@meyering.net>
76085
76086         * m4/stdlib-safer.m4: New file.  From coreutils.
76087         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
76088         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
76089         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
76090         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
76091         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
76092
76093 2005-08-27  Jim Meyering  <jim@meyering.net>
76094
76095         * lib/fopen-safer.c: Merge minor changes from coreutils.
76096         * lib/dup-safer.c: Likewise.
76097         * lib/fd-safer.c: Likewise.
76098
76099         Merge from coreutils.
76100         * lib/stdio--.h: New file.
76101         * lib/stdlib--.h: New file.
76102         * lib/mkstemp-safer.c: New file.
76103
76104         GNU tar needs these.
76105         * lib/pipe-safer.c: New file.
76106         * lib/creat-safer.c: New file.
76107         * lib/fcntl--.h (creat): Define to creat_safer.
76108         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
76109         * lib/unistd--.h (pipe): Define to pipe_safer.
76110         * lib/unistd-safer.h: Declare pipe_safer.
76111
76112 2005-08-26  Simon Josefsson  <jas@extundo.com>
76113
76114         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
76115         Haible <bruno@clisp.org>.
76116
76117 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
76118
76119         * lib/regex_internal.h: Remove all references to
76120         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
76121         or better.
76122         (bitset_not, bitset_merge, bitset_not_merge):
76123         (bitset_mask, re_string_allocate, re_string_construct):
76124         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
76125         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
76126         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
76127         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
76128         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76129         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76130         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
76131         (re_acquire_state_context):
76132         Remove unnecessary forward decls.
76133         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
76134         Put __attribute at function definition,
76135         now that the function decl has been removed.
76136         * lib/regex_internal.c (re_string_peek_byte_case):
76137         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
76138         Likewise.
76139
76140 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
76141
76142         * m4/regex.m4: Add AC_PREREQ(2.50).
76143         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
76144
76145 2005-08-25  Simon Josefsson  <jas@extundo.com>
76146
76147         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
76148         __fsetlocking.
76149
76150 2005-08-25  Simon Josefsson  <jas@extundo.com>
76151
76152         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
76153         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
76154         GLIBC specific code.
76155
76156 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76157
76158         Make regex safe for g++.  This fixes one real bug (an "err"
76159         that should have been "*err").  g++ problem reported by
76160         Sam Steingold.
76161         * lib/regex_internal.h (re_calloc): New macro, consistent with
76162         re_malloc etc.  All callers of calloc changed to use re_calloc.
76163         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
76164         not int.  All callers changed.
76165         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
76166         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
76167         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
76168         (find_recover_state): Change "err" to "*err"; this fixes what
76169         appears to be a real bug.
76170         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
76171         versus int.
76172
76173 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76174
76175         * modules/regex (Depends-on): Add malloc, since the code
76176         assumes that !malloc(0) means failure.
76177
76178 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76179
76180         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
76181
76182         alloca modernization/simplification for regex.
76183         * lib/regex.c: Remove portability cruft for alloca.  This no longer
76184         needs to be at the start of the file, and can be moved into
76185         regex_internal.h and simplified.
76186         * lib/regex_internal.h: Include <alloca.h>.
76187         (__libc_use_alloca) [!defined _LIBC]: New macro.
76188         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
76189         now works outside glibc.
76190
76191 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76192
76193         * config/srclist.txt: Add glibc bugs 1241, 1245.
76194
76195 2005-08-25  Jim Meyering  <jim@meyering.net>
76196
76197         * lib/open-safer.c: Include <config.h>.
76198         Otherwise, we'd lose LARGEFILE support in any file using
76199         e.g. "fcntl--.h"
76200
76201 2005-08-25  Bruno Haible  <bruno@clisp.org>
76202
76203         * m4/minmax.m4: Require autoconf 2.52.
76204         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
76205         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
76206         alternatives of translit over the alphabet.
76207         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
76208
76209 2005-08-24  Simon Josefsson  <jas@extundo.com>
76210
76211         * tests/test-getpass.c: New file.
76212
76213 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76214
76215         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
76216         for GNU regex features.
76217
76218 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76219
76220         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
76221         * lib/regex.h (regerror): Likewise.
76222
76223         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
76224         requires this.  (The code never needed it.)
76225
76226         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
76227         All uses of recently-renamed identifiers changed to use the new,
76228         POSIX-compliant names.  The code will build and run just fine
76229         without these changes, but it's better to eat our own dog food
76230         and use the standard-conforming names.
76231
76232         * lib/regex.h: Fix a multitude of POSIX name space violations.
76233         These changes have an effect only for programs that define
76234         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
76235         do not change anything for programs compiled in the normal way.
76236         Also, there is no effect on the ABI.
76237
76238         (_REGEX_SOURCE): New macro.
76239         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
76240         defined and _GNU_SOURCE is not; this fixes a name space violation.
76241
76242         Rename the following macros to obey POSIX requirements.
76243         The old names are still visible as macros if _REGEX_SOURCE is defined.
76244         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
76245         RE_BACKSLASH_ESCAPE_IN_LISTS.
76246         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
76247         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
76248         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
76249         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
76250         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
76251         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
76252         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
76253         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
76254         (REG_INTERVALS): renamed from RE_INTERVALS.
76255         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
76256         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
76257         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
76258         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
76259         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
76260         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
76261         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
76262         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
76263         RE_UNMATCHED_RIGHT_PAREN_ORD.
76264         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
76265         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
76266         (REG_DEBUG): renamed from RE_DEBUG.
76267         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
76268         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
76269         unusual, since we can't clash with the POSIX REG_ICASE.
76270         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
76271         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
76272         (REG_NO_SUB): renamed from RE_NO_SUB.
76273         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
76274         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
76275         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
76276         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
76277         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
76278         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
76279         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
76280         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
76281         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
76282         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
76283         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
76284         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
76285         RE_SYNTAX_POSIX_MINIMAL_BASIC.
76286         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
76287         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
76288         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
76289         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
76290         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
76291         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
76292         (REG_FIXED): Renamed from REGS_FIXED.
76293         (REG_NREGS): Renamed from RE_NREGS.
76294
76295         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
76296         of other REG_* macros, since POSIX says the user is allowed to
76297         #undef these macros selectively.
76298
76299         (reg_errcode_t): Update comment stating what other tables need
76300         to be consistent.
76301
76302         Rename the following enum values to obey POSIX requirements.
76303         The old names are still visible as macros.
76304         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
76305         is not defined, since GNU is supposed to be a superset of POSIX as
76306         much as possible, and since we want reg_errcode_t to be a signed
76307         type for implementation consistency.
76308         (_REG_NOERROR): Renamed from REG_NOERROR.
76309         (_REG_NOMATCH): Renamed from REG_NOMATCH.
76310         (_REG_BADPAT): Renamed from REG_BADPAT.
76311         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
76312         (_REG_ECTYPE): Renamed from REG_ECTYPE.
76313         (_REG_EESCAPE): Renamed from REG_EESCAPE.
76314         (_REG_ESUBREG): Renamed from REG_ESUBREG.
76315         (_REG_EBRACK): Renamed from REG_EBRACK.
76316         (_REG_EPAREN): Renamed from REG_EPAREN.
76317         (_REG_EBRACE): Renamed from REG_EBRACE.
76318         (_REG_BADBR): Renamed from REG_BADBR.
76319         (_REG_ERANGE): Renamed from REG_ERANGE.
76320         (_REG_ESPACE): Renamed from REG_ESPACE.
76321         (_REG_BADRPT): Renamed from REG_BADRPT.
76322         (_REG_EEND): Renamed from REG_EEND.
76323         (_REG_ESIZE): Renamed from REG_ESIZE.
76324         (_REG_ERPAREN): Renamed from REG_ERPAREN.
76325         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
76326         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
76327         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
76328         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
76329
76330         (_REG_RE_NAME, _REG_RM_NAME): New macros.
76331         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
76332         changed.  But support the old name if the new one is not defined
76333         and if _REGEX_SOURCE.
76334
76335         Change the following member names in struct re_pattern_buffer.
76336         The old names are still supported if !_REGEX_SOURCE.
76337         The new names are always supported, regardless of _REGEX_SOURCE.
76338         (re_buffer): Renamed from buffer.
76339         (re_allocated): Renamed from allocated.
76340         (re_used): Renamed from used.
76341         (re_syntax): Renamed from syntax.
76342         (re_fastmap): Renamed from fastmap.
76343         (re_translate): Renamed from translate.
76344         (re_can_be_null): Renamed from can_be_null.
76345         (re_regs_allocated): Renamed from regs_allocated.
76346         (re_fastmap_accurate): Renamed from fastmap_accurate.
76347         (re_no_sub): Renamed from no_sub.
76348         (re_not_bol): Renamed from not_bol.
76349         (re_not_eol): Renamed from not_eol.
76350         (re_newline_anchor): Renamed from newline_anchor.
76351
76352         Change the following member names in struct re_registers.
76353         The old names are still supported if !_REGEX_SOURCE.
76354         The new names are always supported, regardless of _REGEX_SOURCE.
76355         (rm_num_regs): Renamed from num_regs.
76356         (rm_start): Renamed from start.
76357         (rm_end): Renamed from end.
76358
76359         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
76360         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
76361         Prepend __ to parameter names.
76362
76363         Undo yesterday's changes.
76364
76365 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76366
76367         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
76368         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
76369         lib/regex.c.
76370
76371 2005-08-24  Jim Meyering  <jim@meyering.net>
76372
76373         Sync from coreutils.
76374         * m4/fcntl-safer.m4: New file.
76375
76376         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
76377         and object files for this module.
76378
76379 2005-08-24  Jim Meyering  <jim@meyering.net>
76380
76381         Sync from coreutils.
76382         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
76383
76384 2005-08-24  Jim Meyering  <jim@meyering.net>
76385
76386         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
76387         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
76388
76389 2005-08-24  Jim Meyering  <jim@meyering.net>
76390
76391         * modules/fcntl-safer: New module.
76392         * modules/fts (Depends-on): Add fcntl-safer.
76393         * MODULES.html.sh (File descriptor based Input/Output):
76394         Add fcntl-safer.
76395
76396 2005-08-24  Bruno Haible  <bruno@clisp.org>
76397
76398         Support for unit test modules.
76399         * modules/README: Mention tests modules.
76400         * modules/TEMPLATE-TESTS: New file.
76401         * gnulib-tool: New options --extract-tests-module, --with-tests and
76402         --tests-base (unused for the moment).
76403         (testsbase, inctests): New variables.
76404         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
76405         (func_verify_module): Exclude TEMPLATE-TESTS.
76406         (func_verify_nontests_module, func_verify_tests_module): New functions.
76407         (func_get_dependencies): Add implicit dependency for tests modules.
76408         (func_get_tests_module): New function.
76409         (func_modules_transitive_closure): When --with-tests was specified,
76410         include the unit tests as well, unless explicitly avoided.
76411         (func_emit_lib_Makefile_am): Ignore the tests modules here.
76412         (func_emit_tests_Makefile_am): New function.
76413         (func_create_testdir): When --with-tests was specified, emit a
76414         tests/ directory.
76415         * MODULES.html.sh (Future developments): Update.
76416
76417 2005-08-24  Bruno Haible  <bruno@clisp.org>
76418
76419         * modules/tls-tests: New file.
76420         * tests/test-tls.c: New file, from GNU gettext.
76421
76422 2005-08-24  Bruno Haible  <bruno@clisp.org>
76423
76424         * modules/lock-tests: New file.
76425         * tests/test-lock.c: New file, from GNU gettext.
76426
76427 2005-08-24  Bruno Haible  <bruno@clisp.org>
76428
76429         * lib/lock.h: Add multiple inclusion guard.
76430         * lib/tls.h: Add multiple inclusion guard.
76431
76432 2005-08-24  Bruno Haible  <bruno@clisp.org>
76433
76434         * gnulib-tool: Add support for the --aux-dir option to
76435         --create-testdir, --create-megatestdir, --test, --megatest.
76436         (func_create_testdir, func_create_megatestdir): Optionally emit a
76437         AC_CONFIG_AUX_DIR directive.
76438         (create-testdir, create-megatestdir, test, megatest): Provide a
76439         default value for $auxdir.
76440
76441 2005-08-24  Bruno Haible  <bruno@clisp.org>
76442
76443         * gnulib-tool (import): Use compound statement instead of subshell
76444         where possible.
76445
76446 2005-08-24  Bruno Haible  <bruno@clisp.org>
76447
76448         * gnulib-tool (import): Change --aux-dir default to "build-aux".
76449
76450 2005-08-24  Bruno Haible  <bruno@clisp.org>
76451
76452         * gnulib-tool (func_version): Update.
76453
76454 2005-08-24  Bruno Haible  <bruno@clisp.org>
76455
76456         * gnulib-tool (func_import, func_create_testdir,
76457         func_create_megatestdir): Quote all autoconf macro arguments.
76458
76459 2005-08-24  Bruno Haible  <bruno@clisp.org>
76460
76461         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
76462         option --force, because --force causes the aclocal.m4 of each
76463         subdirectory to be newer than the corresponding config.h.in.
76464
76465 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76466
76467         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
76468         All contents moved to gl_REGEX.
76469         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
76470         assume that it does.
76471
76472 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76473
76474         * lib/regex.h (REG_NOSYS)
76475         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
76476         Define, since POSIX requires it as of 2001.
76477         (_REG_ENOSYS)
76478         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
76479         New private symbol, used to keep the enum signed in all cases.
76480         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
76481         Youngman in
76482         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
76483
76484         * lib/regex_internal.c (re_string_skip_chars, register_state):
76485         (calc_state_hash):
76486         Remove forward decls; no longer needed now that we use prototypes.
76487         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
76488         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
76489         (clean_state_log_if_needed): Likewise.
76490
76491 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76492
76493         * config/srclist.txt: Add glibc bugs 1231-1233.
76494
76495 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76496
76497         Fix problems reported by Sam Steingold in
76498         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
76499         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
76500         assumed that reg_errcode_t is a signed type, which is not
76501         necessarily true if _XOPEN_SOURCE is not defined.
76502         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
76503         since some compilers warn about it otherwise.
76504
76505 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76506
76507         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
76508         (init_word_char, create_initial_state, duplicate_node_closure):
76509         (fetch_token, peek_token_bracket, build_range_exp):
76510         (build_collating_symbol): Remove forward decls; no longer needed
76511         now that we use prototypes.
76512
76513         * lib/regcomp.c:
76514         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
76515         (re_compile_fastmap_iter, regcomp, regerror, regfree):
76516         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
76517         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
76518         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
76519         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
76520         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
76521         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
76522         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
76523         (build_range_exp, build_collating_symbol, parse_bracket_exp):
76524         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
76525         (build_charclass, build_charclass_op, fetch_number, create_tree):
76526         (create_token_tree, mark_opt_subexp, duplicate_tree):
76527         Use prototypes rather than old-style definitions.
76528
76529         * lib/regex_internal.c:
76530         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
76531         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
76532         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
76533         (re_string_reconstruct, re_string_peek_byte_case):
76534         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
76535         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
76536         (re_node_set_init_copy, re_node_set_add_intersect):
76537         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76538         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76539         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
76540         (re_acquire_state, re_acquire_state_context, register_state):
76541         (create_ci_newstate, create_cd_newstate, free_state):
76542         Likewise.
76543         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
76544         re_search_2):
76545         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
76546         (re_search_internal, prune_impossible_nodes):
76547         (acquire_init_state_context, check_matching, static):
76548         (check_halt_node_context, check_halt_state_context, proceed_next_node):
76549         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
76550         (update_regs, sift_states_backward, build_sifted_states):
76551         (clean_state_log_if_needed, merge_state_array):
76552         (update_cur_sifted_state, add_epsilon_src_nodes):
76553         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
76554         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
76555         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
76556         (find_recover_state, check_subexp_matching_top, transit_state_mb):
76557         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
76558         (check_arrival, check_arrival_add_next_nodes):
76559         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
76560         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
76561         (check_node_accept_bytes, check_node_accept, extend_buffers):
76562         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
76563         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
76564         (sift_ctx_init):
76565         Likewise.
76566
76567         * lib/regex_internal.h:
76568         (re_string_allocate, re_string_construct, re_string_reconstruct):
76569         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
76570         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
76571         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
76572         (re_string_context_at, re_string_peek_byte_case):
76573         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
76574         is defined, since we now use prototypes always.
76575
76576         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
76577         C89 or better.  All uses removed.
76578
76579 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76580
76581         * config/srclist.txt: Add glibc bugs 1220-1227.
76582
76583 2005-08-20  Jim Meyering  <jim@meyering.net>
76584
76585         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
76586         of unused local, dfa.
76587
76588 2005-08-20  Bruno Haible  <bruno@clisp.org>
76589
76590         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
76591
76592 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76593
76594         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
76595         (re_node_set_insert_last, re_dfa_add_node):
76596         Rename local variables to avoid GCC shadowing warnings.
76597
76598 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76599
76600         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
76601         [defined lint]: Suppress bogus uninitialized-variable warnings.
76602
76603         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
76604         and let the caller return REG_ESPACE if out of space.  This
76605         removes an uninitialied-variable warning with GCC 4.0.1, and also
76606         avoids taking the address of a local variable.  All callers
76607         changed.
76608
76609 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76610
76611         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
76612         $LIBCSRC/posix/regexec.c.
76613         Add glibc bug 1217 for regcomp.c.
76614
76615 2005-08-19  Jim Meyering  <jim@meyering.net>
76616
76617         * lib/regexec.c (proceed_next_node): Redo local variables to
76618         avoid GCC shadowing warnings.
76619
76620 2005-08-18  Bruno Haible  <bruno@clisp.org>
76621
76622         * lib/strstr.c (strstr): Fix return value in multibyte case.
76623         * lib/strcasestr.c (strcasestr): Likewise.
76624
76625 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76626
76627         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
76628
76629 2005-08-17  Jim Meyering  <jim@meyering.net>
76630
76631         Make the %s format (seconds since the epoch) work for a negative
76632         number and when used with a zero-padded field width, e.g. %015s.
76633
76634         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
76635         label so that it precedes the code to set `digits'.  Otherwise,
76636         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
76637         print `00-22'.  Now, it prints `-0022', as it should.
76638
76639 2005-08-17  Bruno Haible  <bruno@clisp.org>
76640
76641         * modules/strstr (Files): Add m4/mbrtowc.m4.
76642         (Depends-on): Add mbuiter.
76643
76644 2005-08-17  Bruno Haible  <bruno@clisp.org>
76645
76646         * modules/strcasestr: New file.
76647         * MODULES.html.sh (String handling, based on ANSI C 89): Add
76648         strcasestr.
76649
76650 2005-08-17  Bruno Haible  <bruno@clisp.org>
76651
76652         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
76653
76654 2005-08-17  Bruno Haible  <bruno@clisp.org>
76655
76656         * modules/mbuiter: New file.
76657         * MODULES.html.sh (Extended multibyte and wide character utilities):
76658         Add mbuiter.
76659
76660 2005-08-17  Bruno Haible  <bruno@clisp.org>
76661
76662         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
76663         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
76664
76665 2005-08-17  Bruno Haible  <bruno@clisp.org>
76666
76667         * m4/strcasestr.m4: New file.
76668
76669 2005-08-17  Bruno Haible  <bruno@clisp.org>
76670
76671         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
76672         * lib/strstr.c: Completely rewritten, with multibyte locale support.
76673
76674 2005-08-17  Bruno Haible  <bruno@clisp.org>
76675
76676         * lib/strcasestr.h: New file.
76677         * lib/strcasestr.c: New file.
76678
76679 2005-08-17  Bruno Haible  <bruno@clisp.org>
76680
76681         * lib/strcasecmp.c: Use mbuiter.h.
76682
76683 2005-08-17  Bruno Haible  <bruno@clisp.org>
76684
76685         * lib/mbuiter.h: New file.
76686
76687 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
76688
76689         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
76690         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
76691         and gl_GETOPT are both invoked via different paths (as happens
76692         with GNU tar CVS because it uses both argp and getopt), the former
76693         wins.
76694
76695 2005-08-16  Bruno Haible  <bruno@clisp.org>
76696
76697         * modules/tls: New file.
76698         * MODULES.html.sh (Multithreading): Add tls.
76699
76700 2005-08-16  Bruno Haible  <bruno@clisp.org>
76701
76702         * modules/strnlen1: New file.
76703         * MODULES.html.sh (String handling): Add strnlen1.
76704
76705 2005-08-16  Bruno Haible  <bruno@clisp.org>
76706
76707         * modules/strcase (Files): Add m4/mbrtowc.m4.
76708         (Depends-on): Add strnlen1, mbchar.
76709
76710 2005-08-16  Bruno Haible  <bruno@clisp.org>
76711
76712         * modules/mbiter: New file.
76713         * MODULES.html.sh (Extended multibyte and wide character utilities):
76714         Add mbiter.
76715
76716 2005-08-16  Bruno Haible  <bruno@clisp.org>
76717
76718         * modules/mbfile: New file.
76719         * MODULES.html.sh (Extended multibyte and wide character utilities):
76720         Add mbfile.
76721
76722 2005-08-16  Bruno Haible  <bruno@clisp.org>
76723
76724         * modules/mbchar: New file.
76725         * MODULES.html.sh (Extended multibyte and wide character utilities):
76726         New section.
76727
76728 2005-08-16  Bruno Haible  <bruno@clisp.org>
76729
76730         * m4/tls.m4: New file, from GNU gettext.
76731
76732 2005-08-16  Bruno Haible  <bruno@clisp.org>
76733
76734         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
76735         always.
76736         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
76737
76738 2005-08-16  Bruno Haible  <bruno@clisp.org>
76739
76740         * m4/mbiter.m4: New file.
76741
76742 2005-08-16  Bruno Haible  <bruno@clisp.org>
76743
76744         * m4/mbfile.m4: New file.
76745
76746 2005-08-16  Bruno Haible  <bruno@clisp.org>
76747
76748         * m4/mbchar.m4: New file.
76749
76750 2005-08-16  Bruno Haible  <bruno@clisp.org>
76751
76752         * lib/tls.h: New file, from GNU gettext.
76753         * lib/tls.c: New file, from GNU gettext.
76754
76755 2005-08-16  Bruno Haible  <bruno@clisp.org>
76756
76757         * lib/strnlen1.h: New file.
76758         * lib/strnlen1.c: New file.
76759
76760 2005-08-16  Bruno Haible  <bruno@clisp.org>
76761
76762         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
76763         (mbi_init): Update.
76764         (mbi_avail, mbi_advance): Let the iteration end before the terminating
76765         NUL byte, not after it.
76766
76767 2005-08-16  Bruno Haible  <bruno@clisp.org>
76768
76769         * lib/strcase.h (strcasecmp): Add note in comments.
76770         * lib/strncasecmp.c: Use code from strcasecmp.c.
76771         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
76772         (strcasecmp): Work correctly in multibyte locales.
76773
76774 2005-08-16  Bruno Haible  <bruno@clisp.org>
76775
76776         * lib/mbiter.h: New file.
76777
76778 2005-08-16  Bruno Haible  <bruno@clisp.org>
76779
76780         * lib/mbfile.h: New file.
76781
76782 2005-08-16  Bruno Haible  <bruno@clisp.org>
76783
76784         * lib/mbchar.h: New file.
76785         * lib/mbchar.c: New file.
76786
76787 2005-08-16  Bruno Haible  <bruno@clisp.org>
76788
76789         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
76790         the valid ones. Makes the comparison operations transitive:
76791         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
76792         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
76793
76794 2005-08-15  Simon Josefsson  <jas@extundo.com>
76795
76796         * modules/ssize_t (License): Change to 'unlimited'.
76797
76798         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
76799
76800 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76801
76802         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
76803         Add comments for each pending glibc patch.
76804
76805 2005-08-15  Bruno Haible  <bruno@clisp.org>
76806
76807         * lib/regex.h (__restrict_arr): Don't define to __restrict if
76808         __cplusplus is defined.
76809
76810 2005-08-14  Jim Meyering  <jim@meyering.net>
76811
76812         Sync from coreutils.
76813
76814         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
76815         Use the hash-table-based cycle-detection code not just when
76816         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
76817         Reported by James Youngman in
76818         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
76819         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
76820         FTS_TIGHT_CYCLE_CHECK.
76821         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
76822         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
76823         once again.
76824         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
76825         * lib/fts.c (fd_safer): Remove decl.
76826         Include fcntl--.h rather than unistd-safer.h
76827         (fts_safe_changedir): Don't call fd_safer; no longer needed
76828         now that we include fcntl--.h.
76829
76830 2005-08-12  Simon Josefsson  <jas@extundo.com>
76831
76832         * modules/getndelim2: Use ssize_t module.
76833         * modules/getnline: Likewise.
76834         * modules/safe-read: Likewise.
76835         * modules/xreadlink: Likewise.
76836
76837         * modules/ssize_t: New file.
76838
76839 2005-08-12  Simon Josefsson  <jas@extundo.com>
76840
76841         * m4/readline.m4: Look for termcap, curses or ncurses if required.
76842
76843 2005-08-12  Simon Josefsson  <jas@extundo.com>
76844
76845         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76846         ssize_t.
76847
76848 2005-08-12  Simon Josefsson  <jas@extundo.com>
76849
76850         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
76851         readline, getdelim and check_version.
76852         (Support for systems lacking ISO C 99: Sizes of integer types):
76853         Add size_max.
76854
76855 2005-08-12  Bruno Haible  <bruno@clisp.org>
76856
76857         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
76858
76859 2005-08-11  Simon Josefsson  <jas@extundo.com>
76860
76861         * modules/readline: New file.
76862
76863         * modules/strnlen (Files): Add strnlen.h.
76864
76865 2005-08-11  Simon Josefsson  <jas@extundo.com>
76866
76867         * m4/readline.m4: New file.
76868
76869 2005-08-11  Simon Josefsson  <jas@extundo.com>
76870
76871         * lib/readline.h, readline.c: New file.
76872
76873 2005-08-11  Simon Josefsson  <jas@extundo.com>
76874
76875         * doc/gnulib.texi (Initial import, Finishing touches): Mention
76876         gl_AVOID.
76877
76878 2005-08-11  Bruno Haible  <bruno@clisp.org>
76879
76880         * lib/strnlen.h (strnlen): Change parameter name to match comment.
76881
76882 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
76883
76884         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
76885
76886 2005-08-10  Simon Josefsson  <jas@extundo.com>
76887
76888         * tests/test-iconvme.c: New file.
76889
76890 2005-08-10  Simon Josefsson  <jas@extundo.com>
76891
76892         * m4/strnlen.m4: New file.
76893
76894         * m4/strndup.m4: Don't check for strnlen declaration, done in
76895         strnlen.m4.
76896
76897 2005-08-10  Simon Josefsson  <jas@extundo.com>
76898
76899         * lib/strndup.c: Use strnlen.h.
76900
76901         * lib/strnlen.h: New file.
76902
76903 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76904
76905         * README: Typos.
76906
76907 2005-08-02  Simon Josefsson  <jas@extundo.com>
76908
76909         * modules/readline: New file.
76910
76911 2005-08-02  Simon Josefsson  <jas@extundo.com>
76912
76913         * modules/getdelim: New file.
76914
76915         * modules/getline: Rewrite, don't use getndelim2.
76916
76917 2005-08-02  Simon Josefsson  <jas@extundo.com>
76918
76919         * m4/getline.m4: Separate out getdelim stuff into separate module.
76920
76921         * m4/getdelim.m4: New file.
76922
76923 2005-08-02  Simon Josefsson  <jas@extundo.com>
76924
76925         * lib/getline.h, getline.c: Rewrite.
76926
76927         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
76928
76929 2005-07-31  Bruno Haible  <bruno@clisp.org>
76930
76931         * lib/lock.h (gl_lock_initializer): New macro.
76932         (gl_lock_define_initialized): Use it.
76933         (gl_rwlock_initializer): New macro.
76934         (gl_rwlock_define_initialized): Use it.
76935         (gl_recursive_lock_initializer): New macro.
76936         (gl_recursive_lock_define_initialized): Use it.
76937
76938 2005-07-30  Karl Berry  <karl@gnu.org>
76939
76940         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
76941         Report from Ben Pfaff, regarding getopt.
76942
76943 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
76944
76945         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
76946         normal way.
76947         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
76948         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
76949         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
76950         (gl_GETOPT): Use the new macros.  Most of the implementation
76951         is moved to the new macros.  This is for programs like Emacs
76952         that don't want all the functionality of gl_GETOPT.
76953
76954 2005-07-26  Bruno Haible  <bruno@clisp.org>
76955
76956         * m4/lock.m4: Update from GNU gettext.
76957
76958 2005-07-26  Bruno Haible  <bruno@clisp.org>
76959
76960         * lib/lock.h: Update from GNU gettext.
76961         * lib/lock.c: Update from GNU gettext.
76962
76963 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
76964
76965         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
76966         obsolescent AC_TRY_RUN.  Include the default includes files, for
76967         'exit'.
76968
76969 2005-07-24  Bruno Haible  <bruno@clisp.org>
76970
76971         * modules/visibility: New file.
76972         * MODULES.html.sh (Misc): Add visibility.
76973
76974 2005-07-24  Bruno Haible  <bruno@clisp.org>
76975
76976         * m4/visibility.m4: New file.
76977
76978 2005-07-24  Bruno Haible  <bruno@clisp.org>
76979
76980         * doc/visibility.texi: New file.
76981
76982 2005-07-22  Bruno Haible  <bruno@clisp.org>
76983
76984         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
76985         $(ALLOCA_H), redundant through BUILT_SOURCES.
76986         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
76987         redundant through BUILT_SOURCES.
76988         * modules/byteswap (Makefile.am): Remove explicit dependency on
76989         $(BYTESWAP_H), redundant through BUILT_SOURCES.
76990         * modules/fnmatch (Makefile.am): Remove explicit dependency on
76991         $(FNMATCH_H), redundant through BUILT_SOURCES.
76992         * modules/getopt (Makefile.am): Remove explicit dependency on
76993         $(GETOPT_H), redundant through BUILT_SOURCES.
76994         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
76995         redundant through BUILT_SOURCES.
76996         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
76997         redundant through BUILT_SOURCES.
76998         * modules/stdbool (Makefile.am): Remove explicit dependency on
76999         $(STDBOOL_H), redundant through BUILT_SOURCES.
77000         * modules/stdint (Makefile.am): Remove explicit dependency on
77001         $(STDINT_H), redundant through BUILT_SOURCES.
77002         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
77003         Remove explicit dependency on $(SYSEXITS_H).
77004         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
77005
77006 2005-07-18  Simon Josefsson  <jas@extundo.com>
77007
77008         * lib/check-version.c (check_version): Accept identical versions too.
77009
77010 2005-07-18  Bruno Haible  <bruno@clisp.org>
77011
77012         * modules/lock: New file.
77013         * MODULES.html.sh (Multithreading): New section.
77014
77015 2005-07-18  Bruno Haible  <bruno@clisp.org>
77016
77017         * m4/lock.m4: New file, from GNU gettext.
77018
77019 2005-07-18  Bruno Haible  <bruno@clisp.org>
77020
77021         * lib/lock.h: New file, from GNU gettext.
77022         * lib/lock.c: New file, from GNU gettext.
77023
77024 2005-07-18  Bruno Haible  <bruno@clisp.org>
77025
77026         * lib/lock.h (gl_once_t): New type.
77027         (gl_once_define, gl_once): New macros.
77028         * lib/lock.c (fresh_once): New variable.
77029         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
77030         functions.
77031
77032 2005-07-16  Simon Josefsson  <jas@extundo.com>
77033
77034         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
77035         workaround, suggested by Bruno.
77036
77037 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
77038
77039         * modules/xalloc (Depends-on): Add xalloc-die.
77040         * modules/xvasprintf (Depends-on): Add xalloc-die.
77041
77042 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
77043
77044         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
77045         with a minor change.
77046
77047 2005-07-15  Bruno Haible  <bruno@clisp.org>
77048
77049         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
77050         When using lib/poll.c, define poll as rpl_poll.
77051
77052 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
77053
77054         * modules/argp (Depends-on): Remove unlocked-io.
77055
77056 2005-07-14  Derek Price  <derek@ximbiot.com>
77057
77058         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
77059         for glob symlink bug.
77060
77061 2005-07-14  Bruno Haible  <bruno@clisp.org>
77062
77063         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
77064         Instead, test for *_unlocked function declarations directly.
77065
77066 2005-07-11  Simon Josefsson  <jas@extundo.com>
77067
77068         * modules/size_max: New file.
77069
77070         * modules/xsize: Depend on size_max module for size_max.m4.
77071
77072 2005-07-11  Simon Josefsson  <jas@extundo.com>
77073
77074         * lib/size_max.h: New file.
77075
77076 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
77077
77078         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
77079         copyright symbol and the year.
77080         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
77081         (version_etc_va): Use parameterized copyright notice.
77082         Reword to conform to the current GNU coding standards.
77083
77084 2005-07-11  Karl Berry  <karl@gnu.org>
77085
77086         * doc/gnulib.texi (Quoting): new node.
77087         (Initial import): more info, from Patrice.
77088
77089 2005-07-11  Bruno Haible  <bruno@clisp.org>
77090
77091         * gnulib-tool (func_usage): Document option --avoid.
77092         (Command line options): Handle --avoid.
77093         (func_acceptable): New function.
77094         (func_modules_transitive_closure): Use it.
77095
77096 2005-07-11  Bruno Haible  <bruno@clisp.org>
77097
77098         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
77099         Reported by Jim Meyering.
77100
77101 2005-07-10  Bruno Haible  <bruno@clisp.org>
77102
77103         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
77104         Needed when size_t is smaller than 'unsigned int'.
77105         Reported by Paul Eggert.
77106
77107 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77108
77109         * modules/argp (Depends-on): Add unlocked-io
77110
77111 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77112
77113         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
77114         block of defines.
77115
77116 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
77117
77118         * config/srclist.txt: Comment out regcomp.c, since we have a porting
77119         fix now.
77120
77121 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
77122         and Paul Eggert  <eggert@cs.ucla.edu>
77123
77124         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
77125         in wint_t, not wchar_t.  Remove now-unnecessary cast.
77126
77127 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77128
77129         * modules/regex (Files): Add lib/regex_internal.c,
77130         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
77131         (Depends-on): Add extensions.
77132         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
77133
77134 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77135
77136         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
77137         pathconf.
77138         * m4/same.m4 (gl_SAME): Likewise.
77139         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
77140
77141         * m4/regex.m4: Adjust to new libc regex implementation.
77142         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
77143         all the .c and .h parts of (the new) regex.
77144         Quote the m4 stuff better.
77145         Check for RE_ICASE bug of old gnulib.
77146         Check for REG_STARTEND of recent libc.
77147         Rename local variables from jm_* to gl_*.
77148         Quote operand of "test -f".
77149         Say "recent enough" version of libc, not "version 2".
77150         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
77151         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
77152         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
77153         Remove check for btowc, isascii.
77154         Require AM_LANGINFO_CODESET.
77155
77156 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77157
77158         * lib/regex.c, regex.h: Sync from libc.
77159         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
77160         * lib/regexec.c:
77161         New files, synced from libc, except that regex_internal.h
77162         currently has a small porting fix.
77163
77164 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77165
77166         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
77167         regex_internal.c, regexec.c.
77168         Add regex_internal.h too, but as a comment, since the libc version
77169         is currently broken in gnulib mode.
77170
77171 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77172
77173         Support programs like Emacs that use gnulib but not gettext.
77174         * MODULES.html.sh (Internationalization functions): Add gettext-h.
77175         * modules/gettext-h: New file.
77176         * modules/gettext (Files): Remove lib/gettext.h.
77177         (Depends-on): Add gettext-h.
77178         (Makefile.am): Remove lib_SOURCES.
77179         * modules/argmatch, modules/c-stack, modules/closeout:
77180         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
77181         * modules/execute, modules/file-type, modules/getaddrinfo:
77182         * modules/getopt, modules/human, modules/javacomp:
77183         * modules/javaexec, modules/mkdir-p, modules/obstack:
77184         * modules/openat, modules/pagealign_alloc, modules/pipe:
77185         * modules/quotearg, modules/regex, modules/rpmatch:
77186         * modules/unicodeio, modules/userspec, modules/version-etc:
77187         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
77188         * modules/xsetenv:
77189         Depend on gettext-h, not gettext.
77190
77191 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
77192
77193         * gnulib-tool (func_import): Add support for 'public domain' license.
77194         * modules/alloca, modules/atexit, modules/memmove:
77195         Now public domain, not GPL.
77196         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
77197         * modules/realloc, modules/strerror, modules/strtod:
77198         Now LGPL, not GPL.
77199
77200 2005-07-05  Bruno Haible  <bruno@clisp.org>
77201
77202         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
77203         autoconf CVS. Needed for mingw.
77204
77205 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77206
77207         Remove the dependency of the strftime module on the tzset module.
77208         * modules/strftime (Depends-on): Remove dependency on tzset.
77209
77210 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77211
77212         Remove the dependency of the strftime module on the tzset module.
77213         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
77214         gl_FUNC_TZSET_CLOBBER.
77215
77216 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77217
77218         Remove the dependency of the strftime module on the tzset module.
77219         * lib/strftime.c (my_strftime)
77220         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
77221         Copy the input structure, to work around some of the bug with
77222         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
77223         Solaris releases, you should also use the tzset module, but we won't
77224         require it as a dependency any more since we don't want LGPLed code
77225         to depend on GPLed code.
77226
77227 2005-07-02  Jim Meyering  <jim@meyering.net>
77228
77229         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
77230         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
77231         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
77232         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
77233
77234 2005-07-02  Jim Meyering  <jim@meyering.net>
77235
77236         * lib/backupfile.c (backup_args): Change a `0' to NULL.
77237
77238 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77239
77240         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
77241         declares only 'struct timespec;' (!).
77242
77243 2005-07-01  Jim Meyering  <jim@meyering.net>
77244
77245         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
77246         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
77247         * lib/save-cwd.c, tempname.c:
77248         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
77249         and don't include <sys/file.h>).
77250
77251 2005-06-29  Jim Meyering  <jim@meyering.net>
77252
77253         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
77254         type name.  Use the variable name instead.
77255         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
77256         Likewise.
77257
77258 2005-06-28  Simon Josefsson  <jas@extundo.com>
77259
77260         * modules/check-version (Files): Add check-version.m4.
77261
77262 2005-06-28  Simon Josefsson  <jas@extundo.com>
77263
77264         * m4/check-version.m4: New file, suggested by Jim Meyering
77265         <jim@meyering.net>.
77266
77267 2005-06-28  Simon Josefsson  <jas@extundo.com>
77268
77269         * lib/check-version.h, lib/check-version.c: New files.
77270
77271 2005-06-28  Simon Josefsson  <jas@extundo.com>
77272
77273         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
77274         collision with global variable.  Better indentation.  Don't
77275         increment buffer pointer beyond buffer end.  Based on comments
77276         from Paul Eggert <eggert@cs.ucla.edu>.
77277
77278         * lib/base64.h: Indent.
77279
77280 2005-06-28  Simon Josefsson  <jas@extundo.com>
77281
77282         * doc/gnulib.texi (Library version handling): New section.
77283
77284 2005-06-28  Jim Meyering  <jim@meyering.net>
77285
77286         * check-module (find_included_lib_files): Hard-code another
77287         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
77288         but modules/fts-lgpl (correctly) does not list those files.
77289
77290         * modules/canonicalize (Files): Add lib/pathmax.h.
77291
77292 2005-06-25  Simon Josefsson  <jas@extundo.com>
77293
77294         * modules/check-version: New file.
77295
77296 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
77297
77298         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
77299         initializer of struct addrinfo, as an indication that we don't
77300         care how many members the structure has.
77301
77302 2005-06-24  Derek Price  <derek@ximbiot.com>
77303         and Bruno Haible  <bruno@clisp.org>
77304
77305         Remove stat module & update lstat.
77306         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
77307         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
77308         * m4/stat.m4: Remove this file.
77309
77310 2005-06-24  Derek Price  <derek@ximbiot.com>
77311         and Bruno Haible  <bruno@clisp.org>
77312
77313         Remove stat module & update lstat.
77314         * lib/stat.c: Remove this file...
77315         (slash_aware_lstat): ...moving this content and its support...
77316         * lib/lstat.c (rpl_lstat): ...into here.
77317         * lib/lstat.h: New file.
77318
77319 2005-06-24  Derek Price  <derek@ximbiot.com>
77320         and Bruno Haible  <bruno@clisp.org>
77321
77322         Remove stat module & update lstat.
77323         * config/srclist.txt (libc sources): Remove stat.
77324
77325 2005-06-24  Derek Price  <derek@ximbiot.com>
77326         and Bruno Haible  <bruno@clisp.org>
77327
77328         Remove stat module & update lstat.
77329         * MODULES.html.sh (stat): Remove.
77330         * MODULES.html: Regenerated.
77331         * modules/lstat (Description): Correct function name.
77332         (Files): Add "lstat.h".
77333         (Depends-on): Remove stat, add xalloc, stat-macros.
77334         * modules/stat: Remove this file.
77335         (Include): Add "lstat.h", remove <sys/stat.h>.
77336
77337 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
77338
77339         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
77340         (ranged_convert): Don't save conversion in a temporary struct.
77341         This causes a warning with GCC 4.0.0, and anyway in the typical
77342         case it's not worth the extra 100 bytes or so of code.
77343         (ranged_convert, __mktime_internal): When calling a function via a
77344         pointer P, use P () rather than (*P) (), as we now assume C89 or
77345         better.
77346
77347 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77348
77349         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
77350         "who -r" failed to give output.  Problem reported by Tim Waugh.
77351
77352         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
77353         (xcalloc): Use it to avoid needless tests.
77354         Problem reported by Jim Meyering.
77355
77356 2005-06-20  Derek Price  <derek@ximbiot.com>
77357
77358         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
77359         unnecessary for Autoconfs > 2.59c.
77360
77361 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77362
77363         * lib/argp.h (__option_is_short): Check upper limit of
77364         __key. Isprint() requires its argument to have the value
77365         of an unsigned char or EOF.
77366
77367 2005-06-16  Jim Meyering  <jim@meyering.net>
77368
77369         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
77370         when either N or S is zero.
77371
77372 2005-06-16  Derek Price  <derek@ximbiot.com>
77373
77374         * m4/bison.m4: Declare YACC & YFLAGS precious.
77375
77376 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
77377
77378         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
77379         multibyte string or pattern, fall back on unibyte matching.
77380         Problem reported by James Youngman.
77381
77382 2005-06-08  Bruno Haible  <bruno@clisp.org>
77383
77384         * modules/csharpcomp: New file.
77385         * MODULES.html.sh (C#): Add csharpcomp.
77386
77387 2005-06-08  Bruno Haible  <bruno@clisp.org>
77388
77389         * m4/csharpcomp.m4: New file, from GNU gettext.
77390
77391 2005-06-08  Bruno Haible  <bruno@clisp.org>
77392
77393         * lib/csharpcomp.h: New file, from GNU gettext.
77394         * lib/csharpcomp.c: New file, from GNU gettext.
77395         * lib/csharpcomp.sh.in: New file, from GNU gettext.
77396
77397 2005-06-08  Bruno Haible  <bruno@clisp.org>
77398
77399         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
77400         warning on mingw.
77401
77402 2005-06-07  Derek Price  <derek@ximbiot.com>
77403
77404         Sync from CVS.
77405         * lib/glob_.h: Indent nested #ifdef.
77406
77407 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77408
77409         Sync from coreutils.
77410         Use "file name" when talking about file names, instead of "filename"
77411         or "path", as per the GNU coding standards.
77412         * lib/mkdir-p.c: Renamed from makepath.c.
77413         (make_dir_parents): Renamed from make_path.  All callers changed.
77414         * lib/mkdir-p.h: Likewise.  All includers changed.
77415         * lib/filenamecat.c: Renamed from path-concat.c.
77416         (file_name_concat): Renamed from path_concat.  All callers changed.
77417         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
77418         * lib/filenamecat.h: Likewise.  All includers changed.
77419         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
77420         in comments or local variable names.
77421         * lib/basename.c: Likewise.
77422         * lib/canonicalize.c, canonicalize.h: Likewise.
77423         * lib/dirname.c, dirname.h: Likewise.
77424         * lib/euidaccess.c: Likewise.
77425         * lib/exclude.c: Likewise
77426         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
77427         * lib/fsusage.c, fsuage.h: Likewise.
77428         * lib/fts.c, fts_.h: Likewise.
77429         * lib/getcwd.c: Likewise.
77430         * lib/getloadavg.c: Likewise.
77431         * lib/mkstemp.c: Likewise.
77432         * lib/mountlist.c, mountlist.h: Likewise.
77433         * lib/openat.c, openat.h: Likewise.
77434         * lib/readlink-stub.c: Likewise.
77435         * lib/readutmp.c, readutmp.h: Likewise.
77436         * lib/rename.c: Likewise.
77437         * lib/rmdir.c: Likewise.
77438         * lib/same.c: Likewise.
77439         * lib/savedir.c: Likewise.
77440         * lib/stripslash.c: Likewise.
77441         * lib/tempname.c: Likewise.
77442         * lib/xreadlink.c: Likewise.
77443         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
77444         All uses changed.
77445         * lib/exclude.h: Likewise.
77446
77447         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
77448         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77449         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
77450         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77451         * lib/pathmax.h: Include <limits.h> unconditionally, since other
77452         files have been getting away with it for years (MORE/BSD 4.3
77453         is extinct now).
77454         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
77455         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77456
77457         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
77458         Define to 256, not 255, as per modern POSIX.
77459
77460 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77461
77462         Sync from coreutils.
77463         Use "file name" when talking about file names, instead of "filename"
77464         or "path", as per the GNU coding standards.
77465         * MODULES.html.sh: mkdir-p renamed from makepath.
77466         filenamecat renamed from path-concat.
77467         * modules/filenamecat: Renamed from modules/path-concat.
77468         (Files): filenamecat.h and filenamecat.c renamed from
77469         path-concat.h and path-concat.c.
77470         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
77471         (Include): filenamecat.h, not path-concat.h.
77472         * modules/mkdir-p: Renamed from modules/makepath.
77473         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
77474         makepath.c.
77475         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
77476         (Include): mkdir-p.h, not makepath.h.
77477
77478 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77479
77480         Sync from coreutils.
77481         * m4/mkdir-p.m4: Renamed from makepath.m4.
77482         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
77483         Rename files from makepath.c to mkdir-p.c, and from
77484         makepath.h to mkdir-p.h.
77485         * m4/filenamecat.m4: Renamed from path-concat.m4.
77486         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
77487         Rename files from path-concat.c to filenamecat.c,
77488         and from path-concat.h to filenamecat.h.
77489         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
77490         "file name" in local variables or comments.
77491         * m4/rename.m4: Likewise.
77492
77493 2005-06-01  Bruno Haible  <bruno@clisp.org>
77494
77495         * modules/csharpexec: New file.
77496         * MODULES.html.sh (C#): New section.
77497
77498 2005-06-01  Bruno Haible  <bruno@clisp.org>
77499
77500         * m4/csharp.m4: New file, from GNU gettext.
77501         * m4/csharpexec.m4: New file, from GNU gettext.
77502
77503 2005-06-01  Bruno Haible  <bruno@clisp.org>
77504
77505         * lib/csharpexec.h: New file, from GNU gettext.
77506         * lib/csharpexec.c: New file, from GNU gettext.
77507         * lib/csharpexec.sh.in: New file, from GNU gettext.
77508
77509 2005-05-31  Derek Price  <derek@ximbiot.com>
77510             Paul Eggert  <eggert@cs.ucla.edu>
77511
77512         Sync from cvs.
77513         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
77514
77515 2005-05-31  Derek Price  <derek@ximbiot.com>
77516             Paul Eggert  <eggert@cs.ucla.edu>
77517
77518         Sync from cvs.
77519         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
77520
77521 2005-05-29  Derek Price  <derek@ximbiot.com>
77522
77523         * config/srclist.txt (glob_.h, glob.c): Add these files.
77524
77525 2005-05-29  Derek Price  <derek@ximbiot.com>
77526
77527         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
77528         * modules/glob: New file.
77529         * modules/getlogin_r: Add link to POSIX spec in description.
77530
77531 2005-05-29  Derek Price  <derek@ximbiot.com>
77532             Paul Eggert  <eggert@cs.ucla.edu>
77533
77534         * m4/glob.m4: New file.
77535
77536 2005-05-29  Derek Price  <derek@ximbiot.com>
77537             Paul Eggert  <eggert@cs.ucla.edu>
77538
77539         * lib/glob_.h, lib/glob.c: New files.
77540
77541 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77542
77543         * modules/fts (Files): Remove m4/inttypes-pri.m4.
77544         * modules/fts-lgpl (Depends-on): Remove gettext.
77545
77546 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77547
77548         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
77549         and don't require gt_INTTYPES_PRI.
77550
77551 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77552
77553         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
77554
77555         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
77556         the configuration hassle isn't worth it.
77557         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
77558         (LONGEST_MODIFIER, PRIuMAX): Remove.
77559
77560 2005-05-27  Bruno Haible  <bruno@clisp.org>
77561
77562         * lib/getlogin_r.h: Remove second include of <stddef.h>.
77563
77564 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
77565
77566         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
77567         _POSIX_PTHREAD_SEMANTICS for Solaris.
77568
77569 2005-05-25  Derek Price  <derek@ximbiot.com>
77570
77571         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
77572
77573 2005-05-25  Derek Price  <derek@ximbiot.com>
77574             Paul Eggert  <eggert@cs.ucla.edu>
77575
77576         * modules/getlogin_r, m4/getlogin_r.m4: New files.
77577         * lib/getlogin_r.c, getlogin_r.h: New files.
77578
77579 2005-05-25  Bruno Haible  <bruno@clisp.org>
77580             Derek Price  <derek@ximbiot.com>
77581
77582         * lib/getlogin_r.h: Simplify API documentation.
77583
77584 2005-05-23  Derek Price  <derek@ximbiot.com>
77585
77586         * modules/minmax (Files): Add m4/minmax.m4.
77587         (configure.ac): Add gl_MINMAX.
77588
77589 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
77590
77591         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
77592         so that unistd-safer.h (GPL'ed code) need not be included.
77593
77594 2005-05-22  Bruno Haible  <bruno@clisp.org>
77595
77596         * m4/minmax.m4: New file.
77597         Based on a patch by Derek Price <derek@ximbiot.com>.
77598
77599 2005-05-22  Bruno Haible  <bruno@clisp.org>
77600
77601         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
77602         (INT64_MIN): Fix definition.
77603         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
77604
77605         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
77606         NEED_SIGNED_INT_TYPES.
77607
77608         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
77609         HAVE_SYSTEM_INTTYPES.
77610
77611 2005-05-22  Bruno Haible  <bruno@clisp.org>
77612
77613         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
77614         Also include <sys/param.h> if it defines MIN, MAX.
77615         Based on a patch by Derek Price <derek@ximbiot.com>.
77616
77617 2005-05-21  Jim Meyering  <jim@meyering.net>
77618
77619         * modules/fts (Files): Add m4/inttypes-pri.m4.
77620         (Depends-on): Add lstat and remove gettext.  Alphabetize.
77621
77622 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77623
77624         New fts module.
77625         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
77626         (setup_dir, free_dir): New functions.
77627         (enter_dir, leave_dir): Define trivial
77628         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
77629         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
77630         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
77631         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
77632         Move to fts-cycle.c.
77633         (fts_open): Use setup_dir.
77634         (fts_close): Use free_dir.
77635         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
77636         This adds a label and some gotos, but the alternatives were messier.
77637         Check for memory allocation failure when entering a dir.
77638         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
77639         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
77640         (FTS): New member fts_cycle, that is a union that contains the
77641         old active_dir_ht and cycle_state.  All uses changed to mention
77642         fts_cycle.ht and fts_cycle.state.
77643         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
77644         fts.c, with the following changes:
77645         (setup_dir, free_dir): New functions.
77646         (enter_dir): Now returns bool.  Return true if successful, false
77647         if memory exhausted.  All callers changed.
77648         Do not bother partly cleaning up on
77649         memory allocation failure; that is free_dir's job.
77650         However, free ad if hash_insert fails, to avoid memory leak.
77651         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
77652         fts->fts_options to see which union member to use.
77653
77654 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77655
77656         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
77657         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
77658
77659 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77660
77661         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
77662
77663 2005-05-20  Jim Meyering  <jim@meyering.net>
77664
77665         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
77666         Now a macro, to pacify GCC.
77667
77668 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
77669
77670         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
77671         of -1.
77672
77673 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
77674
77675         * lib/chown.c (rpl_chown): Return -1 on failure.
77676
77677 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
77678
77679         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
77680         Don't check for stddef.h.
77681         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
77682         don't use its results.
77683         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
77684         since we include them unconditionally.  Don't require
77685         AM_STDBOOL_H, since stdbool is a prerequisite.
77686         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
77687         since we assume C89 or better.
77688         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
77689         as we don't use their results.
77690         Don't check for fchdir, memmove, memset, strrchr, as we use
77691         them unconditionally.
77692         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
77693         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
77694
77695 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
77696
77697         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
77698         Include <stddef.h> unconditionally, since we assume C89 now.
77699         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
77700         * lib/fts.c: Include fts_.h first, to check interface.
77701         Do not include intprops.h; no longer needed.
77702         Include cycle-check.h and hash.h, since fts_.h no longer does.
77703         Remove unnecessary casts of closedir to void.
77704         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
77705         decide whether to decrement nlinks.
77706         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
77707         (FTS): Use struct hash_table * instead of Hash_table, so that
77708         we no longer need to include hash.h here.
77709
77710 2005-05-18  Jim Meyering  <jim@meyering.net>
77711
77712         * modules/dirfd (License): Change to LGPL.  Most of the code
77713         is already in the public domain.
77714
77715 2005-05-18  Jim Meyering  <jim@meyering.net>
77716
77717         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
77718         Reported by Yoann Vandoorselaere.
77719
77720 2005-05-17  Jim Meyering  <jim@meyering.net>
77721
77722         * m4/fts.m4: New file, from coreutils.
77723
77724 2005-05-17  Jim Meyering  <jim@meyering.net>
77725
77726         * lib/fts.c, lib/fts_.h: New files, from coreutils.
77727
77728 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77729
77730         Sync from coreutils.
77731         * m4/unlinkdir.m4: New file.
77732
77733 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77734
77735         Sync from coreutils.
77736         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
77737         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
77738         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
77739         White space changes only.
77740         * lib/makepath.c (make_path): Port to hosts where leading "//" is
77741         special.
77742         * lib/yesno.c: Include getline.h, not ctype.h.
77743         (yesno): Don't remove leading white space; POSIX doesn't allow it.
77744         Use getline to remove arbitrary restriction on response length.
77745
77746 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77747
77748         * config/srclist-update: Spell out "Street" in FSF postal
77749         mail address; this is the style the FSF seems to prefer.
77750
77751         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
77752         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
77753         this updates FSF postal mail address.
77754
77755         Sync from coreutils.
77756         * modules/unlinkdir: New file.
77757         * modules/yesno (Depends-on): Add getline.
77758         * MODULES.html.sh (File system functions): Add unlinkdir.
77759
77760 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77761
77762         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
77763         lib/strsep.h:
77764         Change the initial comment to refer to GPL, not LGPL.
77765         gnulib-tool will change it to LGPL as needed.
77766
77767         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
77768         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
77769         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
77770         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
77771         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
77772         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
77773         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
77774         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
77775         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
77776         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
77777         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
77778         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
77779         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
77780         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
77781         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
77782         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
77783         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
77784         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
77785         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
77786         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
77787         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
77788         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
77789         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
77790         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
77791         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
77792         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
77793         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
77794         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
77795         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
77796         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
77797         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
77798         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
77799         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
77800         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
77801         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
77802         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
77803         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
77804         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
77805         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
77806         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
77807         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
77808         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
77809         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
77810         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
77811         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
77812         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
77813         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
77814         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
77815         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
77816         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
77817         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
77818         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
77819         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
77820         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
77821         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
77822         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
77823         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
77824         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
77825         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
77826         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
77827         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
77828         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
77829         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
77830         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
77831         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
77832         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
77833         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
77834         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
77835         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
77836         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
77837         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
77838         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
77839         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
77840         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
77841         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
77842         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
77843         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
77844         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
77845         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
77846         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
77847         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
77848         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
77849         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
77850         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
77851         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
77852         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
77853         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
77854         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
77855         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
77856         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
77857         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
77858         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
77859         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
77860         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
77861         lib/yesno.c, lib/yesno.h:
77862         Update FSF postal mail address.
77863
77864 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77865
77866         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
77867         tests/test-memmem.c, tests/test-stpncpy.c:
77868         Update FSF postal mail address.
77869
77870 2005-05-13  Bruno Haible  <bruno@clisp.org>
77871
77872         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
77873         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
77874         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
77875         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
77876         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
77877         Add support for 64-bit integers in the MSVC compiler.
77878
77879 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77880
77881         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
77882
77883 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
77884
77885         * gnulib-tool (func_import): Sort and uniquify recommended includes.
77886
77887 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
77888
77889         * doc/getdate.texi (General date syntax): Don't say that date
77890         date --iso-8601=ns generates acceptable dates; it doesn't yet.
77891         Problem reported by Nic Ferrier.
77892
77893 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77894
77895         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
77896         specified in ai_socktype. Fix invalid ai_protocol
77897         check. ai_protocol is usually set to 0 or depending on
77898         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
77899         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
77900         ai_socktype / ai_protocol in the returned addrinfo structure.
77901
77902 2005-05-10  Simon Josefsson  <jas@extundo.com>
77903
77904         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
77905         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77906
77907 2005-05-10  Karl Berry  <karl@gnu.org>
77908
77909         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
77910         (from http://www.gnu.org/licenses).
77911         * doc/COPYING.LIB: also rename to COPYING.LESSER.
77912         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
77913         fdl.texi suffices.
77914
77915 2005-05-10  Karl Berry  <karl@gnu.org>
77916
77917         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
77918         (COPYING.DOC): remove.
77919
77920         * config/srclist-update: new FSF address.
77921
77922 2005-05-10  Derek Price  <derek@ximbiot.com>
77923
77924         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
77925         possible.
77926
77927 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77928             Bruno Haible  <bruno@clisp.org>
77929
77930         * modules/inet_ntop: New file.
77931         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77932         inet_ntop.
77933
77934 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77935             Bruno Haible  <bruno@clisp.org>
77936
77937         * m4/inet_ntop.m4: New file.
77938
77939 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77940             Bruno Haible  <bruno@clisp.org>
77941
77942         * lib/inet_ntop.h: New file.
77943         * lib/inet_ntop.c: New file, from glibc with modifications.
77944
77945 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
77946
77947         * modules/time_r (License): Change to LGPL.
77948         * modules/extensions (License): Change to LGPL.  Actually,
77949         the license is more permissive than that, but currently gnulib-tool
77950         doesn't know how to handle more-permissive licenses.
77951
77952         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
77953         Problem reported by Dave Love.
77954
77955 2005-05-08  Jim Meyering  <jim@meyering.net>
77956
77957         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
77958         blank.
77959
77960 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
77961
77962         * modules/argmatch (Depends-on): Add stdbool.
77963         * modules/backupfile (Depends-on): Likewise.
77964         * modules/chdir-long (Depends-on): Likewise.
77965         * modules/closeout (Depends-on): Likewise.
77966         * modules/cycle-check (Depends-on): Likewise.
77967         * modules/dirname (Depends-on): Likewise.
77968         * modules/fnmatch (Depends-on): Likewise.
77969         * modules/fsusage (Depends-on): Likewise.
77970         * modules/fwriteerror (Depends-on): Likewise.
77971         * modules/getcwd (Depends-on): Likewise.
77972         * modules/getloadavg (Depends-on): Likewise.
77973         * modules/hard-locale (Depends-on): Likewise.
77974         * modules/makepath (Depends-on): Likewise.
77975         * modules/mountlist (Depends-on): Likewise.
77976         * modules/nanosleep (Depends-on): Likewise.
77977         * modules/posixtm (Depends-on): Likewise.
77978         * modules/quotearg (Depends-on): Likewise.
77979         * modules/readtokens (Depends-on): Likewise.
77980         * modules/readtokens0 (Depends-on): Likewise.
77981         * modules/readutmp (Depends-on): Likewise.
77982         * modules/save-cwd (Depends-on): Likewise.
77983         * modules/strftime (Depends-on): Likewise.
77984         * modules/userspec (Depends-on): Likewise.
77985         * modules/utimecmp (Depends-on): Likewise.
77986         * modules/xgetcwd (Depends-on): Likewise.
77987         * modules/xnanosleep (Depends-on): Likewise.
77988         * modules/xstrtod (Depends-on): Likewise.
77989         * modules/yesno (Depends-on): Likewise.
77990
77991 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
77992
77993         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
77994         needless checks.
77995
77996 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77997
77998         Merge from coreutils.  Among other things,
77999         add bulletproofing for cases where stdin, stdout, or stderr are closed.
78000         * lib/fd-safer.c: New file.
78001         * lib/fcntl-safer.h, open-safer.c: Remove.
78002         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
78003         * lib/dup-safer.c: Include unistd-safer.h first.
78004         Don't include errno.h.
78005         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
78006         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
78007         * lib/file-type.c: Rely on file-type.h change.
78008         * lib/getloadavg.c: Include unistd-safer.h.
78009         (getloadavg): Use safer open.
78010         * lib/getusershell.c: Include "stdio-safer.h".
78011         (getusershell): Use safer fopen.
78012         * lib/long-options.c (long_options): Use NULL rather than 0.
78013         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
78014         'free'.
78015         * lib/modechange.c: Likewise.
78016         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
78017         (MODE_DONE): New constant.
78018         (struct mode_change): Remove 'next' member.
78019         (make_node_op_equals): New function; like the old one of the
78020         same name, except it allocates an array.
78021         (mode_compile, mode_create_from_ref): Use it.
78022         (mode_compile): Allocate result as an array, not a linked list.
78023         Parse octal string ourself, so that we catch mistakes like "+0".
78024         (mode_adjust): Arg is an array, not a linked list.
78025         * lib/modechange.c: Include stat-macros.h, xalloc.h.
78026         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
78027         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
78028         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
78029         Remove.  This is now stat-macros.h's job.
78030         (talloc): Remove.  All callers replaced by xalloc, so that
78031         our invokers don't have to worry about reporting memory failures.
78032         (make_node_op_equals): Remove.
78033         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
78034         New constants.
78035         (struct mode_change): Moved here from modechange.h.
78036         (mode_append_entry): Remove.
78037         (mode_compile): Remove MASKED_OPS arg, since it encouraged
78038         apps to have incorrect behavior.  Use simpler algorithm for head
78039         and tail.  Don't futz with umask; that's now the job of mode_adjust.
78040         Detect more invalid usages rather than having somewhat-random behavior.
78041         Don't insert an "a=" action, as that leads to incorrect behavior.
78042         (mode_compile, mode_create_from_ref): Return NULL on error instead
78043         of an enum, since now there's only one way to have an error.  All
78044         callers changed.
78045         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
78046         at the correct time.  Simplify calculation of "+u" and its ilk.
78047         Don't mishandle "+X".
78048         (mode_free): Remove "register" and localize decls.
78049         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
78050         (struct mode_change): Move to modechange.c; callers don't
78051         need to see this stuff.
78052         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
78053         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
78054         (mode_change, mode_adjust): Reflect the new signatures noted above.
78055         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
78056         that might redefine system include files.
78057         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
78058         (my_usleep): Use NULL rather than (void *) 0.
78059         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
78060         Use siginterrupt to specify that system calls should be interrupted.
78061         (rpl_nanosleep): Move initialization of suspended closer to call of
78062         my_usleep.
78063         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
78064         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
78065         (desirable_utmp_entry): New function.
78066         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
78067         using x2nrealloc, to simplify logic.
78068         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
78069         size calculation.  Do not assume utmp file is a regular file.
78070         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
78071         (READ_UTMP_CHECK_PIDS): New constant.
78072         * lib/save-cwd.c: Include unistd-safer.h.
78073         (save_cwd): Use fd_safer.
78074         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
78075         [!_LIBC] Include "stat-macros.h" instead.
78076         * lib/unistd-safer.h (fd_safer): New decl.
78077
78078 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78079
78080         * modules/getloadavg (Depends-on): Add unistd-safer.
78081         * modules/getusershell (Depends-on): Add stdio-safer.
78082         * modules/lstat (Depends-on): Remove xalloc.
78083         * modules/mkstemp (Depends-on): Add stat-macros.
78084         * modules/modechange (Depends-on): Remove xstrtol.
78085         Add stat-macros, xalloc.
78086         * modules/save-cwd (Depends-on): Add unistd-safer.
78087         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
78088         * modules/unistd-safer (Files): Add lib/fd-safer.c
78089         (Makefile.am): Remove lib_SOURCES.
78090
78091         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
78092         Remove fcntl-safer; unistd-safer supersedes it.
78093
78094 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78095
78096         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
78097         AC_HEADER_STAT.
78098         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
78099         (gl_PREREQ_CHOWN): Remove.
78100         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
78101         it.  Don't require AC_HEADER_STAT.
78102         (gl_PREREQ_LSTAT): Remove.
78103         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
78104         Don't require AC_HEADER_STAT.
78105         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
78106         (gl_PREREQ_RMDIR): Remove.
78107         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
78108         mention stat-macros.h or AC_HEADER_STAT, since we'll make
78109         the stat-macros module a prerequisite.
78110         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
78111         * m4/filemode.m4 (gl_FILEMODE): Likewise.
78112         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
78113         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
78114         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
78115         variable names.
78116         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
78117         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
78118         variable prefixes.
78119         * m4/fcntl-safer.m4: Remove.
78120         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
78121         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
78122         Invoke gl_PREREQ_FD_SAFER.
78123         (gl_PREREQ_FD_SAFER): New macro.
78124         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
78125         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
78126         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
78127         Remove duplicate call to AC_LIBOBJ(readutmp).
78128         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
78129
78130         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
78131         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
78132
78133 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78134
78135         * MODULES.html.sh (Misc): Add byteswap.
78136
78137 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78138
78139         * modules/getcwd (Depends-on): Add extensions.
78140         * modules/openat (Depends-on): Likewise.
78141
78142 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78143
78144         * modules/byteswap: New file.
78145
78146 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78147
78148         * m4/byteswap.m4: New file.
78149
78150 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78151
78152         * lib/byteswap_.h: New file.
78153
78154 2005-04-25  Karl Berry  <karl@gnu.org>
78155
78156         * m4/gettext.m4: Update from GNU gettext 0.14.4.
78157
78158 2005-04-25  Albert Chin  <china@thewrittenword.com>
78159
78160         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
78161         Toolkit C bug.
78162
78163 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
78164
78165         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
78166         (func_ln_if_changed): Remove forcibly for no error message
78167         in case file does not exist.
78168
78169 2005-04-19  Simon Josefsson  <jas@extundo.com>
78170
78171         * gnulib-tool (Options): Make --symlink mean --symbolic.
78172
78173 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
78174
78175         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
78176
78177 2005-04-16  Simon Josefsson  <jas@extundo.com>
78178
78179         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
78180
78181 2005-04-15  Simon Josefsson  <jas@extundo.com>
78182
78183         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
78184
78185 2005-04-15  Simon Josefsson  <jas@extundo.com>
78186
78187         * gnulib-tool: Rename --symlink to --symbolic.
78188
78189 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
78190
78191         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
78192         symbolic links to files instead of copying/moving.  Add --aux-dir,
78193         specifying directory relative --dir where auxiliary build tools
78194         are placed.
78195
78196 2005-04-14  Bruno Haible  <bruno@clisp.org>
78197
78198         * modules/allocsa (License): Change to LGPL.
78199         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
78200
78201 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
78202
78203         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
78204         that "UTC +1 second" continues to work.  Problem reported
78205         by Dmitry V. Levin.
78206         (relunit_snumber): New rule.
78207         (relunit): Use it.
78208
78209 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
78210
78211         * lib/getdate.y (universal_time_zone_table): New constant.
78212         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
78213         universal_time_zone_table.
78214         (lookup_zone): Prefer universal_time_zone_table to
78215         local_time_zone_table, so that "GMT" time stamps are allowed in
78216         London during the summer.  Problem reported by Ian Abbott.
78217
78218 2005-04-12  Jim Meyering  <jim@meyering.net>
78219
78220         * lib/human.c (humblock): Set *options even when returning due to
78221         xstrtoumax conversion failure.  Thanks to a used-uninitialized
78222         warning from gcc-4.
78223
78224 2005-04-09  Jim Meyering  <jim@meyering.net>
78225
78226         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
78227         -Wuninitialized: initialize tm0.tm_year.
78228
78229 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
78230
78231         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
78232         count, since there's no maximum.  All uses changed.
78233         Add member dsts_seen.
78234         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
78235         not being INT_MAX.
78236         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
78237         Use pc_rels_seen to decide whther a date is absolute.
78238
78239         * lib/getdate.y (number): Don't overwrite year.
78240         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
78241         check.
78242
78243 2005-04-02  Simon Josefsson  <jas@extundo.com>
78244
78245         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
78246         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
78247
78248 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
78249
78250         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
78251         where no absolute path name can be longer than PATH_MAX.
78252
78253 2005-03-27  Jim Meyering  <jim@meyering.net>
78254
78255         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
78256
78257 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
78258
78259         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
78260         "one's complement" -> "ones' complement" in comment, as per Knuth.
78261         "value of type" -> "type or expression" in comment.
78262         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
78263
78264 2005-03-26  Jim Meyering  <jim@meyering.net>
78265
78266         Comment nits.
78267         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
78268         Correct typos: s/or/of/.
78269
78270 2005-03-26  Jim Meyering  <jim@meyering.net>
78271
78272         * modules/check-include-files: Move to ../ and rename to...
78273         * check-module: ...this.
78274
78275 2005-03-25  Jim Meyering  <jim@meyering.net>
78276
78277         * modules/xvasprintf (Files): Add xalloc.h.
78278
78279 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
78280
78281         * modules/gettext (Files): config/config.rpath ->
78282         build-aux/config.rpath
78283         * modules/iconv (Files): Likewise.
78284         Problem reported by Oskar Liljeblad.
78285
78286 2005-03-23  Jim Meyering  <jim@meyering.net>
78287
78288         * modules/check-include-files: New script to check for
78289         missing dependencies, multiple includes, etc.
78290
78291         * modules/c-strtold (Depends-on): Add xalloc.
78292         * modules/c-strtod (Depends-on): Add xalloc.
78293         * modules/hash (Depends-on): Add xalloc.
78294         (Files): Remove lib/xalloc.h.
78295
78296         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
78297         * modules/userspec (Files): Add lib/inttostr.h.
78298
78299 2005-03-23  Jim Meyering  <jim@meyering.net>
78300
78301         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
78302
78303 2005-03-22  Jim Meyering  <jim@meyering.net>
78304
78305         * modules/stat-macros: New module.
78306         * modules/canonicalize, modules/euidaccess, modules/file-type,
78307         * modules/filemode, modules/lchown, modules/makepath,
78308         * modules/rmdir, modules/stat: Depend on new stat-macros module
78309         rather than listing lib/stat-macros.h manually.
78310         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
78311
78312 2005-03-22  Jim Meyering  <jim@meyering.net>
78313
78314         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
78315
78316 2005-03-22  Bruno Haible  <bruno@clisp.org>
78317
78318         * config/srclist.txt: Replace target directory 'config' with
78319         'build-aux'.
78320         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
78321         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
78322         ../build-aux/.
78323
78324 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
78325
78326         * modules/chdir-long (Depends-on): Add mempcpy.
78327
78328         * modules/acl, modules/backupfile, modules/c-strtod,
78329         modules/c-strtold, modules/canon-host, modules/canonicalize,
78330         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
78331         modules/exclude, modules/exitfail, modules/file-type,
78332         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
78333         modules/getdate, modules/getline, modules/getpagesize,
78334         modules/getpass, modules/getugroups, modules/group-member,
78335         modules/hard-locale, modules/hash, modules/human, modules/idcache,
78336         modules/inttostr, modules/long-options, modules/makepath,
78337         modules/md5, modules/memcasecmp, modules/memcoll,
78338         modules/modechange, modules/mountlist, modules/path-concat,
78339         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
78340         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
78341         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
78342         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
78343         modules/strftime, modules/strndup, modules/strverscmp,
78344         modules/timespec, modules/unlocked-io, modules/userspec,
78345         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
78346         modules/yesno:
78347         Remove lib_SOURCES line from Makefile.am section, as this is now
78348         done automatically by the corresponding Autoconf macro.
78349
78350 2005-03-21  Jim Meyering  <jim@meyering.net>
78351
78352         Changes imported from coreutils.
78353
78354         * lib/cycle-check.c: Don't include xalloc.h.
78355
78356         * lib/path-concat.c: Don't include assert.h.
78357         (path_concat): Remove assertion that would have triggered
78358         for ABASE starting with more than one slash.
78359         Reported by Andreas Schwab.
78360
78361         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
78362         properly when ABASE is an absolute file name.
78363         Correct the description of this function.
78364         Include <assert.h>.
78365         Add an assertion and a test driver.
78366         This fixes a bug introduced on 2004-07-02.
78367         Andreas Schwab reported the resulting failure of cp --parents:
78368         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
78369
78370 2005-03-21  Jim Meyering  <jim@meyering.net>
78371
78372         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
78373         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
78374
78375 2005-03-21  Jim Meyering  <jim@meyering.net>
78376         and  Paul Eggert  <eggert@cs.ucla.edu>
78377
78378         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
78379         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
78380         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
78381         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
78382         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
78383         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
78384         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
78385         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
78386         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
78387         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
78388         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
78389         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
78390         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
78391         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
78392         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
78393         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
78394         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
78395         for these modules.
78396
78397 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
78398
78399         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
78400         (which shouldn't happen), generate nothing instead of returning 0
78401         immediately, so that nstrftime (NULL, ...) doesn't return 0.
78402
78403 2005-03-16  Bruno Haible  <bruno@clisp.org>
78404
78405         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
78406         HAVE_LONGLONG_64BIT.
78407
78408 2005-03-16  Bruno Haible  <bruno@clisp.org>
78409
78410         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
78411         HAVE_LONGLONG_64BIT.
78412
78413 2005-03-16  Bruno Haible  <bruno@clisp.org>
78414
78415         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
78416         HAVE_LONGLONG_64BIT.
78417
78418 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
78419
78420         * lib/strftime.c (my_strftime): Prepend space to format so that we can
78421         reliably distinguish strftime failure from empty output on POSIX
78422         hosts.
78423
78424 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
78425
78426         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
78427         (iconv_string): Don't guess a size-zero buffer, as that might cause
78428         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
78429         result would be 'too large', where 'too large' is (heuristically)
78430         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
78431         overflow concerns.  This will prevent some unwanted malloc failures
78432         when the inputs are very large.
78433
78434 2005-03-15  Karl Berry  <karl@gnu.org>
78435
78436         * config/srclist.txt (config.rpath): from gettext.
78437         * config/config.rpath: update.
78438
78439 2005-03-15  Bruno Haible  <bruno@clisp.org>
78440
78441         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
78442         to 'negate'.
78443
78444         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
78445         variable.
78446
78447         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
78448         results.
78449
78450 2005-03-14  Simon Josefsson  <jas@extundo.com>
78451
78452         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
78453         <fx@gnu.org>.
78454
78455 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
78456
78457         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
78458         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
78459         intprops.h.
78460         * lib/strtol.c: Likewise.
78461
78462 2005-03-14  Jim Meyering  <jim@meyering.net>
78463
78464         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
78465         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
78466         to be nonzero so that we (and caller) can detect the difference
78467         between a valid zero-length expansion and an error return, even
78468         when the underlying strftime fails before writing anything into
78469         that location.
78470
78471 2005-03-14  Bruno Haible  <bruno@clisp.org>
78472
78473         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
78474         Update from GNU gettext 0.14.3.
78475
78476 2005-03-10  Jim Meyering  <jim@meyering.net>
78477
78478         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
78479
78480 2005-03-10  Jim Meyering  <jim@meyering.net>
78481
78482         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
78483         so that this module works on systems without fchdir.
78484
78485 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
78486
78487         Factor int-properties macros into a single file, except for
78488         glibc-related files.
78489         * lib/intprops.h: New file.
78490         * lib/getloadavg.c: Include it instead of limits.h.
78491         (INT_STRLEN_BOUND): Remove.
78492         * lib/human.c: Include intprops.h.
78493         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
78494         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
78495         302/1000.
78496         * lib/inttostr.h: Include intprops.h instead of limits.h.
78497         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
78498         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
78499         for consistency with intprops.h.
78500         (time_t_is_integer, twos_complement_arithmetic): Use them.
78501         * lib/sig2str.h: Include <signal.h>, intprops.h.
78502         (INT_STRLEN_BOUND): Remove.
78503         * lib/strftime.c (TYPE_SIGNED): Remove.
78504         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
78505         * lib/strtol.c: Adjust comments to match intprops.h.
78506         * lib/userspec.c: Include intprops.h.
78507         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
78508         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
78509         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
78510         instead of rolling our own expressions.
78511         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
78512
78513         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
78514         instead of int.
78515         (my_strftime): Do not mishandle years close to INT_MAX, by doing
78516         the right thing even if adding 1900 would overflow.  Similarly
78517         for tm_mon + 1 and tm_yday + 1.
78518         Make %Y always equivalent to %C%y, and similarly for %G and %g.
78519         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
78520         (DO_SIGNED_NUMBER): New macro.
78521         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
78522
78523 2005-03-07  Bruno Haible  <bruno@clisp.org>
78524
78525         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
78526
78527 2005-03-07  Bruno Haible  <bruno@clisp.org>
78528
78529         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
78530
78531 2005-03-04  Derek R. Price  <derek@ximbiot.com>
78532
78533         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
78534         (func_import): Only replace files via --import when they have actually
78535         changed.
78536
78537 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78538
78539         * m4/mmap-anon.m4: New file.
78540         * m4/pagealign_alloc.m4: New file.
78541
78542 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78543             Bruno Haible  <bruno@clisp.org>
78544
78545         * modules/pagealign_alloc: New file.
78546         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
78547
78548 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78549             Bruno Haible  <bruno@clisp.org>
78550
78551         * lib/pagealign_alloc.h: New file.
78552         * lib/pagealign_alloc.c: New file.
78553
78554 2005-03-03  Bruno Haible  <bruno@clisp.org>
78555
78556         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
78557         Use an all-permissive copyright notice, recommended by RMS.
78558
78559 2005-03-02  Bruno Haible  <bruno@clisp.org>
78560
78561         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
78562         of AIX, the replacement has to be done only after <string.h> is
78563         included, therefore not in config.h. stpncpy.h does the replacement,
78564         and stpncpy.c uses it.
78565
78566 2005-03-02  Bruno Haible  <bruno@clisp.org>
78567
78568         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
78569         stpncpy.c uses it.
78570
78571 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78572
78573         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
78574         The workaround isn't strictly needed for POSIX conformance, and
78575         it's too much of a pain to configure and maintain.  We'll ask
78576         people to fix their kernels instead.
78577         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
78578         (NANOSLEEP_BUG_WORKAROUND): Remove.
78579         (xnanosleep): Remove the workaround.
78580
78581 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78582
78583         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
78584         Reported by Derek Price.
78585         (Include): Add "timespec.h".
78586
78587         * modules/xnanosleep (Depends-on): Remove gethrxtime.
78588
78589 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78590
78591         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
78592         to detect nanosleep bug.
78593
78594 2005-03-01  Bruno Haible  <bruno@clisp.org>
78595
78596         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
78597
78598 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
78599
78600         * modules/gethrxtime: New file.
78601         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
78602         (Depends-on): Add gethrxtime.
78603         (configure.ac): Add gl_XNANOSLEEP.
78604         (Makefile.am): Remove lib_SOURCES line.
78605
78606 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
78607
78608         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
78609         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
78610
78611 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
78612
78613         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
78614         * lib/timespec.h (gettime): Return void, since it always
78615         succeeds now.  All uses changed.
78616         * lib/gettime.c (gettime): Likewise.
78617         [HAVE_NANOTIME]: Prefer nanotime.
78618         Assume gettimeofday succeeds, as POSIX requires.
78619         Assime time () succeeds, since other code already does.
78620         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
78621         (timespec_subtract): Remove.
78622         (NANOSLEEP_BUG_WORKAROUND): New constant.
78623         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
78624         things considerably.  Use it only on GNU/Linux hosts, since the
78625         workaround shouldn't be needed elsewhere.
78626
78627 2005-02-24  Bruno Haible  <bruno@clisp.org>
78628
78629         * modules/gettext (Files): Add m4/glibc2.m4.
78630
78631 2005-02-24  Bruno Haible  <bruno@clisp.org>
78632
78633         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
78634         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
78635         * m4/progtest.m4:
78636         Update from GNU gettext 0.14.2.
78637         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
78638
78639 2005-02-24  Bruno Haible  <bruno@clisp.org>
78640
78641         * lib/localcharset.c: Update from GNU gettext 0.14.2.
78642         * lib/config.charset: Update from GNU gettext 0.14.2.
78643
78644 2005-02-24  Bruno Haible  <bruno@clisp.org>
78645
78646         * lib/gettext.h: Update from GNU gettext 0.14.2.
78647
78648 2005-02-23  Simon Josefsson  <jas@extundo.com>
78649
78650         * m4/iconvme.m4: New file.
78651
78652 2005-02-23  Jim Meyering  <jim@meyering.net>
78653
78654         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
78655         change.
78656         Thanks to Bruno Haible for catching it.
78657
78658 2005-02-22  Simon Josefsson  <jas@extundo.com>
78659
78660         * modules/iconvme: New file.
78661
78662         * MODULES.html.sh: Add iconvme.
78663
78664 2005-02-22  Simon Josefsson  <jas@extundo.com>
78665
78666         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
78667
78668 2005-02-22  Simon Josefsson  <jas@extundo.com>
78669
78670         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
78671
78672 2005-02-22  Jim Meyering  <jim@meyering.net>
78673
78674         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
78675         s/ifndef/ifdef/.
78676
78677 2005-02-20  Neil Conway  <neilc@samurai.com>
78678
78679         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
78680         returned by OSX/Darwin if the specified buffer is not large
78681         enough for the hostname.
78682
78683 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78684
78685         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
78686         pass it to _help, otherwise the latter coredumps trying to
78687         dereference state.root_argp.
78688
78689 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78690
78691         * modules/chdir-long (Depends-on): Add memrchr.
78692         * modules/memrchr (Files): Add lib/memrchr.h.
78693         (Include): "memrchr.h".
78694
78695 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78696
78697         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
78698
78699 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78700
78701         * lib/memrchr.h: New file.
78702         * lib/chdir-long.c: Include it.
78703         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
78704         Don't bother including stddef.h.
78705
78706 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
78707
78708         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
78709         inclusion.
78710         Include <sys/types.h>, for dev_t.
78711         (ME_DUMMY, ME_REMOTE): Move from here....
78712         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
78713         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
78714         Dmitry V. Levin.
78715         Include mountlist.h first, to test the interface.
78716
78717 2005-01-29  Bruno Haible  <bruno@clisp.org>
78718
78719         * lib/progname.c (program_name): Initialize.
78720         Needed when linking statically on MacOS X.
78721
78722 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78723
78724         Sync from coreutils.
78725         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
78726         (Depends-on): Add c-strtod.
78727         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
78728
78729 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78730
78731         Sync from coreutils.
78732         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
78733
78734         Remove files that are specific to coreutils.
78735         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
78736
78737 2005-01-28  Bruno Haible  <bruno@clisp.org>
78738
78739         * modules/javacomp: New file.
78740         * MODULES.html.sh (Java): Add javacomp.
78741
78742 2005-01-28  Bruno Haible  <bruno@clisp.org>
78743
78744         * m4/javacomp.m4: New file, from GNU gettext.
78745
78746 2005-01-28  Bruno Haible  <bruno@clisp.org>
78747
78748         * lib/javacomp.sh.in: New file, from GNU gettext.
78749         * lib/javacomp.h: New file, from GNU gettext.
78750         * lib/javacomp.c: New file, from GNU gettext.
78751
78752 2005-01-26  Simon Josefsson  <jas@extundo.com>
78753
78754         * lib/gai_strerror.c: Use GPL in header.
78755
78756 2005-01-26  Bruno Haible  <bruno@clisp.org>
78757
78758         * modules/javaexec: New file.
78759         * MODULES.html.sh (Java): Add javaexec.
78760
78761 2005-01-26  Bruno Haible  <bruno@clisp.org>
78762
78763         * m4/javaexec.m4: New file, from GNU gettext.
78764
78765 2005-01-26  Bruno Haible  <bruno@clisp.org>
78766
78767         * lib/javaexec.sh.in: New file, from GNU gettext.
78768         * lib/javaexec.h: New file, from GNU gettext.
78769         * lib/javaexec.c: New file, from GNU gettext.
78770
78771 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78772
78773         * modules/lchown (Depends-on): Remove lchown.h
78774
78775 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78776
78777         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
78778         must be defined if the header file was not found, in order
78779         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
78780
78781 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78782
78783         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
78784         initializers for struct pentry_state.
78785         (__argp_error): Check return value of __asprintf
78786         (__argp_failure): Translate error message
78787
78788         * lib/argp-parse.c: Removed braces around the expansion of N_()
78789
78790 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78791
78792         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
78793         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
78794         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
78795         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
78796         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
78797         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
78798         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
78799         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
78800         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
78801         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
78802         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
78803         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
78804         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
78805         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
78806         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
78807         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
78808         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
78809         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
78810         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
78811         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
78812         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
78813         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
78814         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
78815         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
78816         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
78817         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
78818         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
78819         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
78820         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
78821         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
78822         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
78823         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
78824         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
78825         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
78826         xstrtol.m4, xstrtoumax.m4, yesno.m4:
78827         Use an all-permissive copyright notice, recommended by RMS.
78828
78829 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
78830
78831         * modules/chdir-long (Depends-on): Remove mempcpy.
78832
78833 2005-01-21  Jim Meyering  <jim@meyering.net>
78834
78835         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
78836         same value as for Solaris 9.
78837
78838         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
78839         component length.  This included changing the parameter to be
78840         of type `char *' rather than `char const *'.
78841         * lib/chdir-long.h (chdir_long): Update prototype.
78842
78843         * lib/openat.c (fdopendir, fstatat): New functions.
78844         * lib/openat.h: Include headers required for use of DIR and struct
78845         stat.
78846         [AT_SYMLINK_NOFOLLOW]: Define.
78847         (fdopendir, fstatat): Add prototypes.
78848
78849 2005-01-21  Bruno Haible  <bruno@clisp.org>
78850
78851         * modules/classpath: New file.
78852         * MODULES.html.sh (Java): Add classpath.
78853
78854 2005-01-21  Bruno Haible  <bruno@clisp.org>
78855
78856         * lib/classpath.h: New file, from GNU gettext.
78857         * lib/classpath.c: New file, from GNU gettext.
78858
78859 2005-01-20  Simon Josefsson  <jas@extundo.com>
78860
78861         * modules/version-etc-fsf: New file.
78862
78863 2005-01-20  Simon Josefsson  <jas@extundo.com>
78864
78865         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
78866         * lib/version-etc.c: Remove version_etc_copyright.
78867         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
78868         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
78869
78870 2005-01-20  Simon Josefsson  <jas@extundo.com>
78871
78872         * lib/base64.h (isbase64): Add.
78873
78874         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
78875         using a unsigned prototype, don't inline.
78876         (base64_decode): Use it.
78877
78878 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78879
78880         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
78881         it.
78882
78883 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78884
78885         * lib/save-cwd.c (save_cwd): Remove code to support the case
78886         where fchdir is missing or flaky.
78887
78888 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78889
78890         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
78891
78892 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
78893
78894         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
78895         AC_LIBSOURCES now does this.
78896         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
78897         with new ullong_max module.
78898
78899 2005-01-19  Bruno Haible  <bruno@clisp.org>
78900
78901         * modules/sh-quote: New file.
78902         * MODULES.html.sh (Executing programs): Add sh-quote.
78903
78904 2005-01-19  Bruno Haible  <bruno@clisp.org>
78905
78906         * lib/sh-quote.h: New file, from GNU gettext.
78907         * lib/sh-quote.c: New file, from GNU gettext.
78908
78909 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78910
78911         Merge from coreutils.
78912         * m4/ullong_max.m4: New file.
78913         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
78914         (gl_MACROS): Assume localeconv exists.
78915
78916 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78917
78918         Merge changes from coreutils, as described below in several
78919         changelogs dated today.
78920
78921         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
78922         (O_DIRECTORY): Remove; not needed here, since "." must be
78923         a directory.  All uses removed.
78924         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
78925         universal on Suns, and we also need to test for IRIX.
78926         Revamp code to use 'if' rather than '#if'.
78927         Avoid unnecessary comparison of cwd->desc to 0.
78928
78929         * lib/utimens.c (futimens): Robustify the previous patch, by checking
78930         for known valid error numbers rather than observed invalid ones.
78931
78932 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78933
78934         * modules/ullong_max: New file.
78935
78936         * modules/chdir-long, modules/openat: New files.
78937         * modules/save-cwd (Depends-on): Depend on chdir-long.
78938         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
78939
78940 2005-01-18  Jim Meyering  <jim@meyering.net>
78941
78942         Merge from coreutils.
78943         * m4/chdir-long.m4, m4/openat.m4: New files.
78944         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
78945         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
78946         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
78947         is sane and DOES follow symlinks.  Besides, testing 20 different
78948         systems found no broken chown implementations.
78949         Prompted by a change in rsync's copy of this macro.
78950         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
78951
78952         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
78953
78954         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
78955         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
78956         NULL-means-set-to-current-time semantics.
78957         Remove temporary file immediately, rather than waiting
78958         for configure's at-exit trap code to do it.
78959
78960 2005-01-18  Jim Meyering  <jim@meyering.net>
78961
78962         * lib/version-etc.c (version_etc_copyright): Update copyright date.
78963
78964         * lib/utimens.c (futimens): Account for the fact that futimes
78965         can also fail with errno == ENOSYS or errno == ENOENT.
78966         Patch from Dmitry V. Levin.
78967
78968         Change the name of the robust chdir function from chdir to chdir_long.
78969         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
78970         (restore_cwd): Use chdir_long, not chdir.
78971         * lib/chdir-long.c: Renamed from chdir.c.
78972         * lib/chdir-long.h: Renamed from chdir.h.
78973         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
78974         Hurd.
78975
78976 2005-01-18  Bruno Haible  <bruno@clisp.org>
78977
78978         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
78979         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
78980         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
78981         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
78982         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
78983         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
78984         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
78985         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
78986         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
78987         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
78988         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
78989         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
78990         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
78991         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
78992         Use an all-permissive copyright notice, recommended by RMS.
78993
78994 2005-01-18  Bob Proulx  <bob@proulx.com>
78995
78996         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
78997         simplify offsetof() macro construct to avoid compile failure with
78998         native HP-UX 11.0 ANSI C compiler.
78999
79000 2005-01-17  Bruno Haible  <bruno@clisp.org>
79001
79002         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
79003         redundant because stpncpy.m4 takes care of it.
79004
79005 2005-01-17  Bruno Haible  <bruno@clisp.org>
79006
79007         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
79008
79009 2005-01-17  Bruno Haible  <bruno@clisp.org>
79010
79011         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
79012         used.
79013
79014 2005-01-17  Bruno Haible  <bruno@clisp.org>
79015
79016         * lib/fwriteerror.h (fwriteerror): Change specification to include
79017         fclose.
79018         * lib/fwriteerror.c: Include <stdbool.h>.
79019         (fwriteerror): At the end, close the file stream. Record whether
79020         stdout was already closed.
79021
79022 2005-01-17  Bruno Haible  <bruno@clisp.org>
79023
79024         * lib/execute.c (environ): Declare if needed.
79025         * lib/pipe.c (environ): Likewise.
79026         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
79027
79028 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79029
79030         * modules/argp: Depend on vsnprintf
79031
79032 2005-01-10  Jim Meyering  <jim@meyering.net>
79033
79034         * modules/closeout (Depends-on): Add atexit.
79035
79036 2005-01-06  Bruno Haible  <bruno@clisp.org>
79037
79038         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
79039
79040 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79041
79042         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
79043         definitions to be after all include files, to avoid collisions.
79044         Problem reported by Bob Proulx.
79045
79046 2005-01-04  Jim Meyering  <jim@meyering.net>
79047
79048         Changes imported from coreutils.
79049         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
79050         as the mkstemp template, use a temporary directory and an
79051         8.3-friendly template to avoid trouble on systems like DJGPP.
79052         Reported by Juan M. Guerrero via Stepan Kasal.
79053         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
79054         close. Remove the temporary directory right away, rather than waiting
79055         for configure's at-exit trap code to do it.
79056         Suggestion from Stepan Kasal.
79057
79058 2005-01-01  Simon Josefsson  <jas@extundo.com>
79059
79060         * gnulib-tool: Print #include directives when --import'ing.
79061
79062 2004-12-28  Simon Josefsson  <jas@extundo.com>
79063
79064         * tests/test-base64.c: Include required header files.  Remove
79065         unused variables.
79066
79067 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
79068
79069         * modules/error (Depends-on): Remove gettext.
79070
79071 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
79072
79073         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
79074         not needed.  This removes a dependency on the gettext module.
79075         [defined _LIBC]: Do not include <libintl.h>; not needed.
79076
79077 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
79078
79079         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
79080         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
79081
79082 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
79083
79084         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
79085         HAVE_DECL_STRTOLD.
79086
79087 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79088
79089         * modules/getdate (Depends-on): Remove alloca-opt.
79090
79091 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79092
79093         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
79094
79095 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79096
79097         * lib/argp-parse.c: Include <stddef.h>.
79098         (alignof, alignto): New macros.
79099         (parser_init): Don't assume that void * is aligned sufficiently
79100         for struct option.
79101
79102         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
79103         need to extend the stack.
79104         (YYINITDEPTH): New macro, so that the initial stack isn't overly
79105         large.
79106
79107 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79108
79109         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
79110
79111 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
79112
79113         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
79114         (2004-10-24) change.  Apparently this was a false alarm.
79115
79116         * modules/getdate: Depend on alloca-opt, not alloca.
79117
79118 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
79119
79120         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
79121         Remove now-obsolete comment about AIX.
79122         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
79123         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
79124         (YYMAXDEPTH): New macro.
79125
79126 2004-12-18  Simon Josefsson  <jas@extundo.com>
79127
79128         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
79129
79130 2004-12-18  Bruno Haible  <bruno@clisp.org>
79131
79132         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
79133
79134 2004-12-18  Bruno Haible  <bruno@clisp.org>
79135
79136         * lib/fatal-signal.c (fatal_signals): Make non-const.
79137         (init_fatal_signals): New function.
79138         (uninstall_handlers, install_handlers): Ignore signals that were set to
79139         SIG_IGN.
79140         (at_fatal_signal): Call init_fatal_signals.
79141         (init_fatal_signal_set): Likewise. Ignore signals that were set to
79142         SIG_IGN.
79143         Reported by Paul Eggert.
79144
79145 2004-12-18  Bruno Haible  <bruno@clisp.org>
79146
79147         * doc/alloca.texi: New file.
79148         * doc/alloca-opt.texi: New file.
79149
79150 2004-12-17  Jim Meyering  <jim@meyering.net>
79151
79152         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
79153         Otherwise, install-sh could exit with improper exit status when
79154         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
79155
79156 2004-12-16  Simon Josefsson  <jas@extundo.com>
79157
79158         * tests/test-base64.c: Add license.
79159
79160 2004-12-15  Stepan Kasal  <address@hidden>
79161
79162         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
79163
79164 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
79165
79166         * modules/getcwd (Files): Add m4/d-ino.m4.
79167         Suggested by Mark D. Baushke.
79168
79169 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
79170
79171         * lib/getdate.y (textint): New member "negative".
79172         (time_zone_hhmm): New function.
79173         Expect 14 shift-reduce conflicts, not 13.
79174         (o_colon_minutes): New rule.
79175         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
79176         (yylex): Set the "negative" member of signed numbers.
79177
79178 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
79179
79180         * doc/getdate.texi (Time of day items, Time zone items):
79181         Describe new formats +00:00, UTC+00:00.
79182
79183 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79184
79185         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
79186         spurious "-l"s.  Problem reported by Stepan Kasal.
79187
79188 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
79189
79190         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
79191         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
79192
79193 2004-12-04  Simon Josefsson  <jas@extundo.com>
79194
79195         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
79196         Vandoorselaere <yoann@prelude-ids.org>.
79197
79198 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79199
79200         Changes imported from coreutils.
79201         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
79202         exist.
79203         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
79204
79205 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79206
79207         Changes imported from coreutils.
79208         * lib/hard-locale.c: Assume <locale.h> exists.
79209         Include "strdup.h".
79210         (GLIBC_VERSION): New macro.
79211         (hard_locale): Assume setlocale exists.
79212         Rewrite to avoid #ifdef.
79213         Use strdup rather than malloc + strcpy.
79214         * lib/human.c: Assume <locale.h> exists.
79215         (human_readable): Assume localeconv exists.
79216
79217 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79218
79219         * modules/hard-locale (Depends-on): Add strdup.
79220
79221 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
79222
79223         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
79224         convert T2, not T.  (Imported from libc.)
79225
79226 2004-11-30  Simon Josefsson  <jas@extundo.com>
79227
79228         * modules/restrict (License): Change to LGPL.
79229
79230 2004-11-30  Simon Josefsson  <jas@extundo.com>
79231
79232         * m4/restrict.m4: Add copyright and copying conditions.
79233
79234 2004-11-30  Simon Josefsson  <jas@extundo.com>
79235
79236         * m4/base64.m4: New file.
79237
79238 2004-11-30  Simon Josefsson  <jas@extundo.com>
79239
79240         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
79241         base64.
79242
79243         * tests/test-base64.c: New file.
79244
79245         * modules/base64: New file.
79246
79247 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
79248
79249         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
79250         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
79251
79252         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
79253
79254 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
79255
79256         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
79257         (__getcwd.c): Don't restore errno; glibc doesn't.
79258         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
79259         first, falling back to our code only if its results look suspicious.
79260         Ensure that the resulting buffer is only as large as necessary.
79261
79262         * lib/readutmp.c: Include readutmp.h first.
79263         Include <errno.h>, since readutmp.h no longer does that.
79264         * lib/readutmp.h: Don't include <errno.h>,
79265         <sys/param.h>, <time.h>; not needed to establish interface.
79266         (errno): Remove decl.
79267         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
79268         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
79269         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
79270
79271 2004-11-28  Simon Josefsson  <jas@extundo.com>
79272
79273         * lib/base64.h, base64.c: New file.
79274
79275 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
79276
79277         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
79278
79279 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
79280
79281         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
79282         (Depends-on): Remove pathmax, same.  Add mempcpy.
79283         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
79284         (Makefile.am): Append getcwd.h to lib_SOURCES.
79285         (Include): Add getcwd.h.
79286         (Maintainer): Change from Jim Meyering to "all, glibc",
79287         since getdate now uses intended-for-glibc code.
79288         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
79289         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
79290
79291 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79292
79293         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
79294         HP's ANSI C compiler.
79295         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
79296         Declaring int functions causes warnings on some modern systems and
79297         shouldn't be needed to compile on ancient ones.
79298         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
79299         defined.
79300
79301         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
79302         with the following changes.
79303         (__set_errno): Parenthesize properly.
79304         Include <stdbool.h>.
79305         (MIN, MAX, MATCHING_INO): New macros.
79306         (__getcwd): Define with prototype, not K&R form.
79307         Use heuristics to allocate default buffer on stack if possible.
79308         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
79309         behavior, and to avoid the PATH_MAX limit when computing
79310         ../../../../...
79311         Use MATCHING_INO to compare inode number to file.
79312         Check for arithmetic overflow in size calculations.
79313         Fix bug in reallocation of dot array that caused getcwd to fail
79314         on directories nested deeper than 75.
79315         Be more careful about saving errno on error.
79316         Do not use realloc; use only free+malloc, as this is a bit
79317         more flexible and avoids a needless copy operation.
79318         Do not inspect st_dev and st_ino for symbolic links; POSIX
79319         doesn't specify the latter.
79320         Check for closedir errors.
79321         Avoid needless casts.
79322         Use "#ifdef weak_alias" around weak_alias, to be like other
79323         glibc code.
79324         The following changes to getcwd.c have effect only when used in
79325         gnulib; they have no effect inside glibc proper.
79326         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
79327         as alloca isn't used.
79328         (alloca, __alloca): Likewise.
79329         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
79330         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
79331         unconditionally, as gnulib assumes C89 or better.
79332         Do not include <sys/param.h>.
79333         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
79334         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
79335         better.
79336         (NULL) [!defined NULL]: Remove; we assume C89 or better.
79337         Include <dirent.h> in a way that is compatible with modern Autoconf.
79338         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
79339         New macros, if not already defined.
79340         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
79341         Use "_LIBC", not "defined _LIBC", for consistency.
79342         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
79343         a mempcpy module.
79344         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
79345         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
79346         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
79347         credit only to Jim Meyering and adjust the copyright dates.
79348         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
79349         <stdlib.h>, <unistd.h>, "pathmax.h".
79350         Instead, include "xgetcwd.h" (first) and "getcwd.h".
79351         (INITIAL_BUFFER_SIZE): Remove.
79352         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
79353
79354 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79355
79356         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
79357         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
79358         Use the _ONCE methods, for efficiency.
79359         Check for fcntl.h.  In test program, include <errno.h>
79360         and <fcntl.h> if available.  Remove old K&R cruft from
79361         test program.  Check for common errors in GNU/Linux,
79362         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
79363         don't do AC_LIBOBJ, as that's getcwd.m4's job.
79364         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
79365         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
79366         name accordingly.
79367         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
79368         accommodate new getcwd.c.
79369         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
79370         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
79371         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
79372         that's all we need now.
79373
79374 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79375
79376         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
79377         argp-parse.c depends on getopt internals, that means we should
79378         always use our getopt, to be on the safe side.
79379         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
79380         order not to spoil the result of an eventual previous invocation
79381         of gl_GETOPT_SUBSTITUTE.
79382
79383 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79384
79385         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
79386         redefinition warnings. To avoid them, include the defines
79387         in `#if !defined __need_getopt ... #endif'. The only place
79388         where __getopt_argv_const is used is in definitions
79389         of getopt_long and getopt_long_only below, which are as well
79390         protected by `#ifndef __need_getopt'.
79391         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
79392         __need_getopt after including <stdio.h> and <unistd.h> These
79393         headers might have defined it.
79394
79395 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
79396
79397         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
79398
79399 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
79400
79401         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
79402         (futimens): New function, which uses futimes if available.
79403         (futimens, utimens): Support timespec==NULL, with same semantics
79404         as utime and utimens.
79405         * lib/utimens.h (futimens): New decl.
79406
79407 2004-11-23  Jim Meyering  <jim@meyering.net>
79408
79409         * lib/getopt_.h: Remove trailing blanks.
79410
79411 2004-11-23  Jim Meyering  <jim@meyering.net>
79412
79413         * lib/__fpending.c: Add comment.
79414
79415 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
79416
79417         * modules/canonicalize (Depends-on): Add xreadlink.
79418         Problem reported by James Youngman.
79419
79420 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
79421
79422         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
79423         New macros.
79424         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
79425         optopt): Use them instead of invoking ## directly; otherwise, the
79426         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
79427
79428 2004-11-19  Bruno Haible  <bruno@clisp.org>
79429
79430         * lib/strtok_r.c: Move comments from here...
79431         * lib/strtok_r.h: ... to here.
79432
79433 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
79434
79435         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
79436         implementations that mishandle size_t overflow.
79437
79438 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
79439
79440         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
79441         might fail.  Problem reported by Yoann Vandoorselaere.
79442         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
79443         implementations that mishandle size_t overflow.
79444
79445 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79446
79447         * modules/canon-host (Depends-on): Add strdup.
79448
79449 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79450
79451         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
79452
79453 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79454
79455         * lib/canon-host.c: Include "strdup.h".
79456         (canon_host): Use getaddrinfo if available, so that IPv6 works.
79457         Use strdup instead of malloc/strcpy to duplicate strings.
79458
79459         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
79460         (human_space_before_unit): New constant.
79461         * lib/human.c (human_readable): Support it.
79462
79463         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
79464         (xgetcwd): Set errno correctly when failing.
79465         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
79466         the failure is actually due to a PATH_MAX problem.
79467
79468         Further getopt changes to make it more likely that glibc will
79469         buy the changes back.
79470         * lib/getopt.c (POSIXLY_CORRECT): New constant.
79471         (getopt): Use it, so to preserve glibc semantic
79472         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
79473         when compiling for libc.
79474         * lib/getopt_.h (__getopt_argv_const): Bring it back.
79475         (getopt_long, getopt_long_only): Use it.
79476
79477         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
79478         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
79479         (getopt): Argv is now char * const *, as per standard.
79480         (_getopt_internal_r, _getopt_internal): Argv is now char **,
79481         not char *__getopt_argv_const *.
79482         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
79483         _getopt_long_only_r): Likewise.
79484         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
79485         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
79486         _getopt_long_r, _getopt_long_only_r): Likewise.
79487         * lib/getopt_.h (__getopt_argv_const): Remove.
79488         (getopt): Argv is now char * const *, as per standard.
79489
79490         * lib/getdate.y (tORDINAL): New token.
79491         (day, relunit): Allow it for relative times.
79492         (relative_time_table): Use tORDINAL for ordinals.
79493
79494 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79495
79496         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
79497         Document that "second" isn't allowed as an ordinal number.
79498
79499 2004-11-16  Jim Meyering  <jim@meyering.net>
79500
79501         * modules/closeout (Depends-on): Add fpending.
79502
79503 2004-11-15  Jim Meyering  <jim@meyering.net>
79504
79505         * lib/closeout.c: Include "__fpending.h" once again.
79506         Include <stdbool.h>.
79507         (close_stdout): Don't fail just because stdout was closed initially,
79508         since some programs don't write to stdout in the normal course of
79509         operation (other than --version and --help), and we don't want this
79510         function to make e.g. `touch file >&-' fail.
79511         But do fail if it was closed and someone has tried to write to it.
79512         E.g., `printf foo >&-' must fail.
79513
79514 2004-11-13  Jim Meyering  <jim@meyering.net>
79515
79516         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
79517
79518 2004-11-12  Simon Josefsson  <jas@extundo.com>
79519
79520         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
79521         small doc fix is still pending.
79522
79523 2004-11-11  Simon Josefsson  <jas@extundo.com>
79524
79525         * modules/strtok_r: New file.
79526
79527         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79528         strtok_r.
79529
79530 2004-11-11  Simon Josefsson  <jas@extundo.com>
79531
79532         * m4/strtok_r.m4: New file.
79533
79534         * m4/getopt.m4: Replace opterr.
79535
79536 2004-11-11  Simon Josefsson  <jas@extundo.com>
79537
79538         * lib/strtok_r.h, strtok_r.c: New file.
79539
79540 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
79541
79542         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
79543         of replacing opterr, getopt, etc.  This should handle the
79544         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
79545
79546 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
79547
79548         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
79549         we can stop lying to compilers about the constness of argv when we
79550         are compiled outside glibc.
79551         (getopt, getopt_long, getopt_long_only): Use it.
79552         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
79553         _getopt_internal, getopt): Likewise.
79554         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
79555         _getopt_long_only_r): Likewise.
79556         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
79557         _getopt_long_r, _getopt_long_only_r): Likewise.
79558
79559         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
79560         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
79561         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
79562         the other external symbols.
79563         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
79564         declaration, since the above renaming now works around collisions.
79565
79566 2004-11-11  Jim Meyering  <jim@meyering.net>
79567
79568         * lib/linebreak.c: Remove trailing blanks.
79569         * lib/alloca_.h: Likewise.
79570         * lib/acosl.c: Likewise.
79571         * lib/euidaccess.c: Likewise.
79572         * lib/allocsa.h: Likewise.
79573
79574 2004-11-10  Simon Josefsson  <jas@extundo.com>
79575
79576         * m4/getaddrinfo.m4: New file.
79577
79578 2004-11-10  Simon Josefsson  <jas@extundo.com>
79579
79580         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
79581
79582 2004-11-10  Simon Josefsson  <jas@extundo.com>
79583
79584         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79585         getaddrinfo.
79586
79587         * modules/getaddrinfo: New file.
79588
79589 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79590
79591         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
79592
79593 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79594
79595         * lib/mktime.c (SHR): New macro, which is a portable
79596         substitute for >> that should work even on Crays.
79597         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
79598         Problem reported by Mark D. Baushke in
79599         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
79600         * lib/getdate.y (SHR): Likewise.
79601         (tm_diff): Use it.
79602         * lib/strftime.c (SHR): Likewise.
79603         (tm_diff): Use it.
79604         * lib/quotearg.c (struct quoting_options): Use unsigned int for
79605         quote_these_too, so that right shifts are well defined.  All uses
79606         changed.
79607
79608 2004-11-10  Jim Meyering  <jim@meyering.net>
79609
79610         Ensure that no close failure goes unreported.
79611         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
79612         return early when it seems there's nothing to flush.
79613         Don't include __fpending.h.
79614
79615 2004-11-10  Jim Meyering  <jim@meyering.net>
79616
79617         * modules/closeout (Depends-on): Remove fpending.
79618
79619 2004-11-10  Jim Meyering  <jim@meyering.net>
79620
79621         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
79622
79623 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
79624
79625         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
79626         gl_FUNC_STRFTIME.
79627         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
79628         and AC_REQUIRE when possible, to avoid duplicate checks.
79629         Check for <wchar.h>.
79630
79631 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
79632
79633         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
79634
79635 2004-11-09  Bruno Haible  <bruno@clisp.org>
79636
79637         * m4/sockpfaf.m4: New file.
79638
79639 2004-11-05  Bruno Haible  <bruno@clisp.org>
79640
79641         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
79642         Reported by Mark D. Baushke <mdb@cvshome.org>.
79643
79644 2004-11-04  Bruno Haible  <bruno@clisp.org>
79645
79646         2004-09-11  Bruno Haible  <bruno@clisp.org>
79647                 * allocsa.valgrind: New file.
79648         2004-02-06  Bruno Haible  <bruno@clisp.org>
79649                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
79650                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
79651                 Reported by Christopher Seip <chris.seip@hp.com>.
79652
79653 2004-11-04  Bruno Haible  <bruno@clisp.org>
79654
79655         * modules/allocsa (Files): Add lib/allocsa.valgrind.
79656         (Makefile.am): Distribute it.
79657
79658 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
79659
79660         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
79661         with errno == ERANGE if the buffer is too small.
79662         Problem reported by Mark D. Baushke.
79663
79664 2004-11-03  Albert Chin  <china@thewrittenword.com>
79665             Paul Eggert  <eggert@cs.ucla.edu>
79666
79667         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
79668         equivalent, substitute $ac_type for equivalent type rather than
79669         blindly using uint32_t *always* which won't work if uint32_t is not
79670         available.  Define _UINT32_T to work around typedef of uint32_t if
79671         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
79672         2.5.1.
79673
79674 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79675
79676         * m4/jm-macros.m4: Sync from coreutils.
79677         (gl_MACROS): Check for mbrlen, for pathchk.
79678         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
79679
79680 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79681
79682         * lib/xreadlink.c (MAXSIZE): New macro.
79683         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
79684         size does not exceed MAXSIZE.  Avoid cast.
79685         As suggested by Mark D. Baushke in
79686         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
79687         if readlink fails with buffer size just under MAXSIZE, try again
79688         with MAXSIZE.
79689
79690 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79691
79692         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
79693
79694 2004-11-02  Derek R. Price  <derek@ximbiot.com>
79695         and  Paul Eggert  <eggert@cs.ucla.edu>
79696
79697         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
79698         (get_date): Overparenthesize to avoid GCC warning.
79699
79700 2004-11-02  Bruno Haible  <bruno@clisp.org>
79701
79702         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
79703         returns void.
79704
79705 2004-11-02  Bruno Haible  <bruno@clisp.org>
79706
79707         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
79708         function returns void.
79709
79710 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79711
79712         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
79713         fflush_unlocked, flockfile, funlockfile, funlockfile,
79714         fputs_unlocked, putc_unlocked.
79715
79716 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79717
79718         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79719         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
79720         already declared.
79721
79722 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79723
79724         * modules/getdate (Files): Add doc/getdate.texi.
79725         (Depends-on): Add setenv, xalloc.
79726
79727 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79728
79729         * lib/getdate.y: Add support for TZ="foo" within a date string.
79730         Fix some bugs near time_t boundaries.  Reject dates with
79731         out-of-range components, e.g., "Sept 31".
79732         Include <stdlib.h>, "setenv.h", "xalloc.h".
79733         (ISDIGIT_LOCALE): Remove; unused.
79734         Note that the TZ and time functions used here are not reentrant.
79735         (mktime_ok, get_tz): New functions.
79736         (TZBUFSIZE): New constant.
79737         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
79738         This requires that we sometimes generate our own TZ="XXX..." setting.
79739
79740 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79741
79742         * doc/getdate.texi: New file, from coreutils with modifications for
79743         the new TZ parsing.
79744
79745 2004-10-27  Derek R. Price  <derek@ximbiot.com>
79746
79747         * lib/mktime.c (not_equal_tm): Remove redundant check.
79748
79749 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79750
79751         * modules/regex (lib_SOURCES): Add regex.c.
79752         Reported by James Youngman in
79753         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
79754
79755 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79756
79757         * lib/getdate.y: Use Bison 1.875 features, and some minor
79758         code cleanups.  This change does not affect semantics.
79759         Don't include <stdlib.h>; no longer needed.
79760         Don't include unlocked-io.h; only the "#if TEST" code uses
79761         stdio, and performance isn't crucial there.
79762         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
79763         Bison 1.875 features as described below.
79764         All uses of "PC." replaced by "pc->".
79765         (YYSTYPE): Add a forward declaration.
79766         (yylex, yyerror): Use full prototypes in forward decls.
79767         Use "%pure-parser" rather than obsolescent "%pure_parser".
79768         Use %parse-param and %lex-param instead of obsolescent
79769         YYPARSE_PARAM and YYLEX_PARAM.
79770         (meridian_table, month_and_day_table, time_units_table,
79771         relative_time_table, time_zone_table, military_table,
79772         lookup_zone, lookup_word, get_date):
79773         Use NULL instead of 0 where appropriate.
79774         (to_hour): Avoid abort (), to avoid a dependency on
79775         stdlib.h.
79776         (yyerror, yylex): Now accepts parser_control * arg.
79777         (main) [TEST]: Use '\0' rather than 0 for char.
79778
79779 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79780
79781         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
79782
79783 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79784
79785         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
79786         It's now the caller's responsibility to handle the case where
79787         !HAVE_GETPAGESIZE && !defined getpagesize.
79788
79789         * lib/mktime.c (leapyear): Arg is long int, not int.
79790
79791 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
79792
79793         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
79794
79795 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
79796
79797         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
79798         missing.  Problem reported by James Youngman.
79799
79800 2004-10-16  Simon Josefsson  <jas@extundo.com>
79801
79802         * gnulib-tool: Fix comments.  Fix parse problem.
79803         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
79804
79805 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
79806
79807         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
79808         implementation of getopt_long.  Problem reported by Alexander Taler in:
79809         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
79810
79811 2004-10-15  Bruno Haible  <bruno@clisp.org>
79812
79813         * gnulib-tool: Untabify. Initialize supplied_libname.
79814         (func_usage): More homogenous output.
79815         (func_modules_transitive_closure, func_modules_to_filelist,
79816         func_emit_lib_Makefile_am): New functions.
79817         (func_import): New function, extracted from big case statement. Use
79818         func_get_license, func_modules_transitive_closure,
79819         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
79820         opt_lgpl. Don't use test -a, as it's not portable.
79821         (func_create_testdir): Use func_modules_transitive_closure,
79822         func_modules_to_filelist, func_emit_lib_Makefile_am.
79823
79824 2004-10-15  Bruno Haible  <bruno@clisp.org>
79825
79826         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
79827
79828 2004-10-15  Bruno Haible  <bruno@clisp.org>
79829
79830         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
79831         the portions belonging to each module.
79832         Suggested by Derek Robert Price <derek@ximbiot.com>.
79833
79834 2004-10-12  Simon Josefsson  <jas@extundo.com>
79835
79836         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79837         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
79838         to real functions.
79839
79840 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79841
79842         * modules/vsnprintf: New file.
79843
79844 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79845
79846         * m4/vsnprintf.m4: New file.
79847
79848 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79849
79850         * lib/vsnprintf.h: New file.
79851         * lib/vsnprintf.c: New file.
79852
79853 2004-10-11  Bruno Haible  <bruno@clisp.org>
79854
79855         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
79856         vsnprintf.
79857
79858 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79859
79860         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
79861
79862 2004-10-07  Bruno Haible  <bruno@clisp.org>
79863
79864         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
79865         fits into the provided buffer.
79866
79867 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79868
79869         * lib/diacrit.c, diacrit.h: Add GPL notice.
79870
79871         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
79872         notice.
79873         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
79874         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
79875         This avoids a potential constant-folding bug.
79876
79877 2004-10-05  Bruno Haible  <bruno@clisp.org>
79878
79879         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
79880         for the declaration of strsep.
79881
79882 2004-10-05  Bruno Haible  <bruno@clisp.org>
79883
79884         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
79885
79886 2004-10-04  Simon Josefsson  <jas@extundo.com>
79887
79888         * modules/memmem: New file.
79889         * tests/test-memmem.c: New file.
79890         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
79891
79892 2004-10-04  Simon Josefsson  <jas@extundo.com>
79893
79894         * m4/memmem.m4: New file.
79895
79896 2004-10-04  Simon Josefsson  <jas@extundo.com>
79897
79898         * lib/memmem.h: New file.
79899         * lib/memmem.c: New file, taken from glibc.
79900
79901 2004-10-04  Simon Josefsson  <jas@extundo.com>
79902
79903         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
79904         '#ifdef USE_UNLOCKED_IO'.
79905
79906 2004-10-04  Simon Josefsson  <jas@extundo.com>
79907
79908         * config/srclist.txt: Add memmem from glibc.
79909
79910 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79911
79912         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
79913
79914         * modules/argmatch, modules/argp, modules/closeout, modules/error,
79915         modules/exclude, modules/getdate, modules/getline,
79916         modules/getndelim2, modules/getpass, modules/getpass-gnu,
79917         modules/getusershell, modules/linebuffer, modules/md5,
79918         modules/mountlist, modules/posixtm, modules/readtokens,
79919         modules/readutmp, modules/regex, modules/sha1,
79920         modules/version-etc, modules/yesno:
79921         Remove dependency on unlocked-io.
79922
79923 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79924
79925         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
79926
79927         * m4/unlocked-io.m4: Add copyright notice.
79928         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
79929
79930 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79931
79932         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
79933         * lib/xmalloc.c (xmemdup): Likewise.
79934         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
79935         XFREE): Remove these long-obsolescent macros.
79936         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
79937         * lib/xstrdup.c: Remove.
79938
79939         * lib/regex.c (re_comp): Cast gettext return value to char *,
79940         Problem reported by Martin Neitzel via Mark D. Baushke.
79941
79942 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79943
79944         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
79945         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
79946         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
79947         regex.c, sha1.c, version-etc.c, yesno.c:
79948         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
79949         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
79950         the includer's responsibility.
79951
79952         Sync from coreutils.
79953
79954         * lib/modechange.c (mode_compile): Don't decrement a pointer that
79955         points to the start of a string, as the C Standard says the
79956         resulting behavior is undefined.
79957
79958         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
79959         simple -> simple_backups, numbered_existing ->
79960         numbered_existing_backups, numbered -> numbered_backups
79961         to avoid shadowing problems.  All uses changed.
79962         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
79963         * lib/backupfile.c (check_extension, numbered_backup):
79964         Rename locals to avoid shadowing 'basename'.
79965         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
79966         once.
79967
79968         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
79969         * lib/.cvsignore: Add getopt.h.
79970
79971 2004-10-04  Bruno Haible  <bruno@clisp.org>
79972
79973         * modules/README: New file.
79974         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
79975         not a module.
79976
79977 2004-10-02  Jim Meyering  <jim@meyering.net>
79978
79979         * lib/dirfd.h, getpagesize.h: Add copyright notice.
79980
79981 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79982
79983         * modules/strsep: New file.
79984
79985 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79986
79987         * m4/strsep.m4: New file.
79988
79989 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79990
79991         * lib/strsep.h: New file.
79992         * lib/strsep.c: New file.
79993
79994 2004-10-01  Simon Josefsson  <jas@extundo.com>
79995
79996         * lib/snprintf.c (snprintf): Handle size==0.
79997
79998 2004-10-01  Simon Josefsson  <jas@extundo.com>
79999             Bruno Haible  <bruno@clisp.org>
80000
80001         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
80002         (snprintf): Declare 'args'.
80003
80004 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
80005
80006         * lib/snprintf.c: Remove comments as to why each header is needed.
80007
80008 2004-10-01  Bruno Haible  <bruno@clisp.org>
80009
80010         * MODULES.html.sh: Add strsep.
80011
80012 2004-09-30  Simon Josefsson  <jas@extundo.com>
80013
80014         * modules/snprintf: New file.
80015
80016 2004-09-30  Simon Josefsson  <jas@extundo.com>
80017
80018         * m4/snprintf.m4: New file.
80019
80020 2004-09-30  Simon Josefsson  <jas@extundo.com>
80021
80022         * lib/snprintf.h, lib/snprintf.c: New files.
80023
80024 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80025
80026         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
80027         (hol_entry_help): Never translate an empty string.
80028         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
80029         * lib/argp.h (OPTION_NO_TRANS): New option.
80030
80031 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80032
80033         * modules/argp (Maintainer): Replace Simon Josefsson
80034         by Sergey Poznyakoff.
80035
80036 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80037
80038         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
80039         changes merged back into glibc.
80040
80041 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80042
80043         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
80044
80045 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
80046
80047         * lib/xvasprintf.c: Include xalloc.h.
80048         (xvasprintf): Use xalloc_die, not xmalloc_die.
80049
80050 2004-09-29  Bruno Haible  <bruno@clisp.org>
80051
80052         * modules/alloca-opt: New file, derived from modules/alloca.
80053         * modules/allocsa: Depend on alloca-opt instead of alloca.
80054         * modules/setenv: Likewise.
80055         * modules/vasnprintf: Likewise.
80056         * MODULES.html.sh: Add alloca-opt.
80057
80058 2004-09-28  Simon Josefsson  <jas@extundo.com>
80059
80060         * gnulib-tool: New parameter --lgpl, to asseert that modules are
80061         LGPL, and to replace license template from GPL to LGPL.
80062
80063 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
80064
80065         * modules/dummy: Change license to LGPL.
80066
80067 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
80068
80069         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
80070
80071 2004-09-24  Simon Josefsson  <jas@extundo.com>
80072
80073         * modules/minmax (License): Change from GPL to LGPL.
80074
80075 2004-09-23  Simon Josefsson  <jas@extundo.com>
80076
80077         * gnulib-tool (--import): Typo.
80078
80079 2004-09-23  Simon Josefsson  <jas@extundo.com>
80080
80081         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
80082
80083 2004-09-22  Bruno Haible  <bruno@clisp.org>
80084
80085         * modules/*: Add 'License' field.
80086         * gnulib-tool: Accept --extract-license option.
80087         (func_get_license): New function.
80088
80089 2004-09-21  Bruno Haible  <bruno@clisp.org>
80090
80091         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
80092         Reported by Simon Josefsson.
80093
80094 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
80095
80096         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
80097         gl_AC_TYPE_LONG_LONG.
80098
80099 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
80100
80101         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
80102
80103 2004-09-18  Simon Josefsson  <jas@extundo.com>
80104         and  Paul Eggert  <eggert@cs.ucla.edu>
80105
80106         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
80107         calls with autoreconf.  Define GL_LIB.
80108
80109 2004-09-14  Karl Berry  <karl@gnu.org>
80110
80111         * config/srclist.txt: unsync setenv.c, sigh.
80112
80113 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
80114
80115         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
80116         Problem reported by Bruno Haible in:
80117         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
80118
80119 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
80120
80121         * config/srclist.txt: Comment out argp-pvh.c.
80122
80123 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
80124
80125         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
80126         in case some system header has #define'd it.  Problem reported by
80127         Soeren D. Schulze in
80128         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
80129
80130 2004-09-09  Karl Berry  <karl@gnu.org>
80131
80132         * regex.[ch]: delete from the root.  These were supposed to be
80133                 synced with emacs cvs, but this has not happened for about
80134                 a year, and anyway nothing else uses emacs regex.[ch].
80135                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
80136                 lib/regex[.ch] is untouched.
80137
80138 2004-09-09  Bruno Haible  <bruno@clisp.org>
80139
80140         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
80141
80142 2004-09-09  Bruno Haible  <bruno@clisp.org>
80143
80144         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
80145         modifications.
80146         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
80147
80148 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
80149
80150         * modules/xvasprintf: New file.
80151         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
80152
80153 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
80154
80155         * lib/xvasprintf.h: New file.
80156         * lib/xvasprintf.c: New file.
80157         * lib/xasprintf.c: New file.
80158
80159 2004-09-08  Bruno Haible  <bruno@clisp.org>
80160
80161         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
80162
80163 2004-09-08  Bruno Haible  <bruno@clisp.org>
80164
80165         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
80166         length is > INT_MAX.
80167         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
80168         more.
80169
80170 2004-09-08  Bruno Haible  <bruno@clisp.org>
80171
80172         * lib/stdint_.h: New file, taken from GNU clisp.
80173
80174 2004-09-08  Bruno Haible  <bruno@clisp.org>
80175             Oskar Liljeblad  <oskar@osk.mine.nu>
80176
80177         * modules/stdint: New file.
80178         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
80179
80180 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80181
80182         Import from coreutils.
80183         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
80184         strings on unbounded length.  alloca's performance benefits aren't
80185         that important here.
80186         (V_STRDUP): Remove.
80187         (parse_with_separator): New function, with most of the internals
80188         of the old parse_user_spec.  Allow user to omit both user and group,
80189         for compatibility with FreeBSD.
80190         Clone only the user name, not the entire spec.
80191         Do not set *uid, *gid unless entirely successful.
80192         Avoid memory leak in some failing cases.
80193         Fix regression for USER.GROUP reported by Dmitry V. Levin in
80194         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
80195         (parse_user_spec): Rewrite to use parse_with_separator.
80196
80197 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80198
80199         * modules/userspec: Don't depend on alloca.
80200
80201 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80202
80203         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
80204
80205 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80206
80207         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
80208         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
80209         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
80210
80211 2004-08-16  Simon Josefsson  <jas@extundo.com>
80212
80213         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
80214         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
80215         Add --dry-run for --import.
80216         Let user provided command line parameters override configure.ac
80217         settings.
80218
80219 2004-08-12  Simon Josefsson  <jas@extundo.com>
80220
80221         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
80222         as discussed with Paul Eggert in threads rooted at
80223         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
80224         and
80225         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
80226         Before, the test was empty, and relied on ELIDE_CODE in source
80227         code.)
80228         (gl_PREREQ_GETOPT): New macro.
80229         (gl_GETOPT): Use them.
80230
80231 2004-08-12  Simon Josefsson  <jas@extundo.com>
80232
80233         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
80234         * lib/getopt_.h: Renamed from getopt.h.
80235
80236 2004-08-12  Simon Josefsson  <jas@extundo.com>
80237
80238         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
80239         Change default library name from libfoo to libgnu.
80240         Now, if you have a configure.ac that says:
80241                 gl_SOURCE_BASE(gl)
80242                 gl_M4_BASE(gl/m4)
80243                 gl_MODULES(error getopt etcetera)
80244                 gl_INIT
80245         you can import all you need by running:
80246                 ../gnulib/gnulib-tool --import
80247
80248         * modules/getopt (Files): Rename getopt.h to getopt_.h.
80249         (Makefile.am): Rewrite, use logic from argz.
80250         (Include): Use <getopt.h> instead of "getopt.h".
80251
80252 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80253
80254         * modules/argp (Files): Add m4/unlocked-io.m4.
80255         (Depends-on): Add extensions.
80256
80257 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80258
80259         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
80260         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
80261         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
80262         Check for program_invocation_name, program_invocation_short_name,
80263         flockfile, funlockfile, features.h, _getopt_long_only_r.
80264
80265 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80266
80267         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
80268         its complicated substitute.
80269         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
80270         and program_invocation_name.
80271         (__argp_basename) [!_LIBC]: Remove; the only use was
80272         replaced by its body.
80273         (__argp_short_program_name): Change condition from
80274         !defined __argp_short_program_name to
80275         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
80276         to match argp-namefrob.h.
80277         (__argp_failure): Don't assume strerror_r returns char *.
80278         * lib/argp-parse.c (N_): Define unconditionally.
80279         (argp_default_options): Fill out initializers with 0 to avoid
80280         gcc warnings.
80281
80282 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80283
80284         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
80285         getopt1.c.
80286
80287 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80288
80289         Merge from coreutils.
80290
80291         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
80292
80293         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
80294         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
80295
80296 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80297
80298         Merge from coreutils.
80299
80300         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
80301         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
80302         for Reliant Unix 5.43.
80303
80304         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
80305         (union fooround): Use uintmax_t, not long int.
80306         The rest is a merge from libc:
80307         [defined _LIBC]: Include <shlib-compat.h>.
80308         (_obstack) [defined _LIBC]: Remove after 2.3.4.
80309
80310         * lib/settime.c (settime): Recode to avoid warning with
80311         Sun Forte C 6U2.
80312
80313         * lib/strverscmp.c: Convert to UTF-8.
80314
80315 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80316
80317         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
80318         m4/uintmax_t.m4.
80319
80320 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80321
80322         * modules/xalloc-die: New file.
80323         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
80324
80325         * modules/md5 (Files): Add m4/uint32_t.m4.
80326         * modules/sha1: Renamed from modules/sha.
80327         (Files):
80328         Rename lib/sha.h to lib/sha1.h.
80329         Rename lib/sha.c to lib/sha1.c.
80330         Rename m4/sha.m4 to m4/sha1.m4.
80331         (lib_SOURCES): Likewise.
80332         (configure.ac): Rename gl_SHA to gl_SHA1.
80333         (Include): sha.h -> sha1.h.
80334
80335 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80336
80337         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
80338         * m4/sha1.m4: Renamed from sha.m4.
80339         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
80340
80341 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80342
80343         * lib/obstack.h (obstack_empty_p):
80344         Don't assume that chunk->contents is suitably aligned.
80345         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
80346         Likewise. Problem reported by Benno in
80347         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
80348
80349         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
80350         readable.  This could be improved further but it'd take some work.
80351
80352 2004-08-08  Simon Josefsson  <jas@extundo.com>
80353
80354         * modules/xgethostname (Depends-on): Remove exit and error (not
80355         used).
80356
80357         * modules/getpass-gnu: Add getpass.h.
80358         (Depends-on): Add stdbool.
80359         * modules/getpass: Add getpass.h.
80360
80361 2004-08-08  Simon Josefsson  <jas@extundo.com>
80362
80363         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
80364         Check getpass declaration.
80365
80366 2004-08-08  Simon Josefsson  <jas@extundo.com>
80367
80368         * lib/xgethostname.c: Don't include error.h (not used).
80369
80370         * lib/getpass.h: Add.
80371         * lib/getpass.c: Include getpass.h first.
80372
80373 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
80374
80375         * lib/xalloc-die.c: New file.
80376         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
80377         All uses removed.
80378         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
80379         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
80380         xalloc-die.c.
80381         (_, N_, xalloc_die): Move to xalloc-die.c.
80382         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
80383         so that we needn't mess with xalloc_msg_memory_exhausted.
80384
80385         * lib/sha1.h: Renamed from sha.h.
80386         (SHA1_H): Renamed from _SHA_H.
80387         (sha1_ctx): Renamed from sha_ctx.
80388         (sha1_init_ctx): Renamed from sha_init_ctx.
80389         (sha1_process_block): Renamed from sha_process_block.
80390         (sha1_process_bytes): Renamed from sha_process_bytes.
80391         (sha1_finish_ctx): Renamed from sha_finish_ctx.
80392         (sha1_read_ctx): Renamed from sha_read_ctx.
80393         (sha1_stream): Renamed from sha_stream.
80394         (sha1_buffer): Renamed from sha_buffer.
80395         * lib/sha1.c: Likewise; renamed from sha.c.
80396         Do not include <sys/types.h>.
80397         Include <stddef.h> rather than <stdlib.h>.
80398
80399 2004-08-08  Bruno Haible  <bruno@clisp.org>
80400
80401         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
80402         FILESYSTEM_PREFIX_LEN.
80403         * lib/progreloc.c: Likewise.
80404         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
80405
80406 2004-08-06  Simon Josefsson  <jas@extundo.com>
80407
80408         * modules/progname (Depends-on): Don't depend on stdbool.
80409
80410 2004-08-06  Simon Josefsson  <jas@extundo.com>
80411
80412         * modules/getsubopt: New file.
80413         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80414         getsubopt.
80415
80416 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80417
80418         More merge from coreutils.
80419
80420         * m4/utimens.m4, m4/utimecmp.m4: New files.
80421         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
80422         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
80423         prereq.m4, sha.m4: Import changes from coreutils.
80424
80425 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80426
80427         More merge from coreutils.
80428         * modules/raise, modules/readtokens0, modules/utimens:
80429         * modules/utimecmp, module/xnanosleep: New files.
80430         * modules/strftime: Add lib/strftime.h.
80431         Change include from <time.h> to "strftime.h".
80432         * modules/yesno: Add lib/yesno.h.
80433         * modules/backupfile: Remove lib/addext.c.
80434         * modules/euidaccess: Add stat-macros.h.
80435         * modules/canonicalize, modules/euidaccess,
80436         modules/filemode, modules/lchown, modules/makepath,
80437         modules/rmdir, modules/stat: Likewise.
80438
80439 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80440
80441         Merge from tar.
80442         * lib/argp-help.c (make_hol, hol_append): Don't assume that
80443         SIZE_MAX is a valid preprocessor constant.
80444         (__argp_basename): Change from "#ifndef _LIBC"
80445         to "#ifndef __argp_short_program_name", so that
80446         we don't compile these functions for tar.
80447
80448         More merges from coreutils.
80449         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
80450         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
80451         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
80452         * lib/addext.c: Remove; no longer needed.
80453         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
80454         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
80455         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
80456         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
80457         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
80458         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
80459         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
80460         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
80461         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
80462         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
80463         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
80464         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
80465         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
80466         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
80467         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
80468         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
80469         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
80470         Import changes from coreutils.
80471
80472 2004-08-05  Simon Josefsson  <jas@extundo.com>
80473
80474         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
80475
80476 2004-08-05  Simon Josefsson  <jas@extundo.com>
80477
80478         * m4/getsubopt.m4: New file.
80479
80480 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80481
80482         Merge from coreutils.
80483
80484         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
80485         * m4/getcwd-path-max.m4: New files.
80486
80487         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
80488         FILESYSTEM_PREFIX_LEN ->
80489         FILE_SYSTEM_PREFIX_LEN.
80490         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
80491         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
80492         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
80493         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
80494
80495         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
80496         prerequisite modules now handle the DOS stuff.
80497         Don't check for unistd.h.
80498
80499 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80500
80501         Merge from coreutils.
80502
80503         * lib/.gdb-history: Remove; this doesn't belong here.
80504
80505         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
80506         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
80507         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
80508         * lib/getcwd.c: New files.
80509
80510         * lib/dirname.h: Include <stdbool.h>.
80511         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
80512         for consistency with POSIX terminology.  All uses changed.
80513         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
80514         (strip_trailing_slashes): Use bool for booleans.
80515         * lib/stripslash.c (strip_trailing_slashes): Likewise.
80516
80517         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
80518         sometimes returns a positive errno value even when it succeeds.
80519         (print_errno_message) [!LIBC]: Fall back on strerror if
80520         __strerror_r fails.
80521
80522         * lib/path-concat.c (mempcpy): Don't define if a system header defines
80523         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
80524         (longest_relative_suffix): New function.
80525         (path_concat): Use it.  Assume first argument is not NULL.
80526         Port to DOS.  Omit redundant separators.
80527         Report an error instead of returning NULL.
80528         Use mempcpy instead of memcpy.
80529         (xpath_concat): Remove: not declared or used.
80530
80531         * lib/same.h: Include <stdbool.h>
80532         (same_name): Return bool, not int.
80533         * lib/same.c (same_name): Likewise.
80534         (errno): Don't declare; we assume C89 or better now.
80535
80536         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
80537         if not already defined.
80538
80539         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
80540         * lib/dup-safer.c (errno): Likewise.
80541
80542 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80543
80544         Merge from coreutils.
80545         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
80546         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
80547         * modules/path-concat: Don't depend on strdup.
80548
80549 2004-08-03  Simon Josefsson  <jas@extundo.com>
80550
80551         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
80552         * lib/progname.h: Don't include stdbool.h.
80553
80554 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80555
80556         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
80557         * MODULES.html.sh (func_all_modules): Remove fatal.
80558
80559 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80560
80561         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
80562
80563 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80564
80565         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
80566         working.
80567
80568 2004-08-02  Simon Josefsson  <jas@extundo.com>
80569
80570         * lib/getsubopt.h: New file, with comments from Bruno Haible.
80571         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
80572         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
80573
80574 2004-08-01  Simon Josefsson  <jas@extundo.com>
80575
80576         * lib/xgetdomainname.c: Include stdlib.h, for free().
80577
80578 2004-07-19  Bruno Haible  <bruno@clisp.org>
80579
80580         * MODULES.html.sh (func_all_modules): Add dummy.
80581
80582 2004-07-16  Simon Josefsson  <jas@extundo.com>
80583
80584         * modules/dummy: New file.
80585
80586 2004-07-16  Simon Josefsson  <jas@extundo.com>
80587
80588         * lib/dummy.c: New file.
80589
80590 2004-07-16  Bruno Haible  <bruno@clisp.org>
80591
80592         * lib/backupfile.h: Add extern "C" for C++.
80593         * lib/closeout.h: Likewise.
80594         * lib/copy-file.h: Likewise.
80595         * lib/findprog.h: Likewise.
80596         * lib/full-write.h: Likewise.
80597         * lib/pathname.h: Likewise.
80598         * lib/progname.h: Likewise.
80599         * lib/stpcpy.h: Likewise.
80600         * lib/stpncpy.h: Likewise.
80601         * lib/strcase.h: Likewise.
80602         * lib/strstr.h: Likewise.
80603         * lib/xalloc.h: Likewise.
80604
80605         * lib/mbswidth.h: Add extern "C" for C++.
80606         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
80607
80608 2004-07-13  Robert Millan  <robertmh@gnu.org>
80609
80610         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
80611
80612 2004-07-09  Simon Josefsson  <jas@extundo.com>
80613
80614         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
80615         failed without this.)
80616
80617 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80618
80619         * modules/chown (Files): Add lib/fchown-stub.c, since
80620         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
80621
80622 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80623
80624         * lib/fchown-stub.c: New file.
80625
80626 2004-06-24  Jim Meyering  <jim@meyering.net>
80627
80628         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
80629
80630 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80631
80632         * modules/argz: Omit "#include".
80633
80634         * MODULES.html.sh (func_all_modules): Add calloc, to match
80635         2004-06-01 addition of calloc module.
80636
80637 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80638
80639         * m4/argz.m4: New file, which is autoupdated from libtool.
80640
80641 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80642
80643         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
80644         libtool.
80645
80646 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80647
80648         * config/srclist-update: Don't insist on "USA." before the
80649         close-comment, as libtool omits the period and puts the */ on a
80650         separate line.
80651         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
80652         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
80653
80654 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
80655
80656         * modules/argz: New file.
80657         * MODULES.html.sh (func_all_modules): Add argz.
80658
80659 2004-06-12  Jim Meyering  <jim@meyering.net>
80660         and  Paul Eggert  <eggert@cs.ucla.edu>
80661
80662         * modules/hash (Files): Add lib/xalloc.h.
80663         * modules/pipe (Depends-on): Add wait-process.
80664         * modules/stat (Depends-on): Add xalloc.
80665         * modules/userspec (Files): Add lib/userspec.h.
80666         * modules/xstrto
80667
80668         Upgrade from gettext-0.13.
80669         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
80670         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
80671         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
80672
80673 2004-06-10  Jim Meyering  <jim@meyering.net>
80674
80675         * lib/calloc.c: New file.
80676
80677 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
80678
80679         * lib/getdate.y (yylex): Allow space between sign and number.
80680         Problem reported by Dan Jacobson.
80681
80682 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
80683
80684         Merge from coreutils CVS.
80685
80686         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
80687         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
80688         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
80689         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
80690         xstrtol.m4: Fix copyright date and/or serial number.
80691
80692         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
80693         See if we need an fchown replacement.
80694         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
80695         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
80696         and use the replacement function if we detect either defect.
80697
80698         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
80699         gl_UTIMECMP.
80700
80701 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
80702         and  Jim Meyering  <jim@meyering.net>
80703
80704         Merge from coreutils CVS.
80705
80706         * lib/stat-macros.h: New file, with contents from file-type.h
80707         and coreutils' system.h.
80708         * lib/file-type.c: Include "stat-macros.h".
80709         * lib/file-type.h (file_type): Move all macro definitions to new file,
80710         stat-macros.h.
80711
80712         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
80713         Wrap old code with this conditional.
80714         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
80715         function that does not dereference symlinks.
80716         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
80717
80718         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
80719         dependency problems.
80720         (xreadlink): Accept new arg SIZE, for efficiency.
80721         All decls and uses changed.
80722         * lib/xreadlink.h: Include <stddef.h>, for size_t.
80723
80724         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
80725         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
80726
80727         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
80728         sysexits.h.
80729
80730 2004-06-01  Jim Meyering  <jim@meyering.net>
80731
80732         * m4/calloc.m4: New file.
80733
80734 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
80735
80736         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
80737         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
80738         Also, fix a typo in a diagnostic.
80739
80740 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80741
80742         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
80743         or AC_FUNC_REALLOC.
80744
80745 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80746
80747         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
80748         macros to be defined.
80749         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
80750         the allocator returns NULL because the requested size is zero.
80751
80752 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
80753
80754         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
80755         var.  Add comment explaining why libc still defines it.  This
80756         merges the following patch from glibc:
80757         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
80758
80759 2004-05-20  Andreas Schwab  <schwab@suse.de>
80760
80761         * m4/free.m4: Replace free if it not known to work, not the other
80762         way round.
80763
80764 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80765
80766         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
80767         present in glibc since revision 1.1 of this file.
80768         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
80769         obstack_alignment_mask, obstack_alloc, obstack_base,
80770         obstack_blank, obstack_blank_fast, obstack_chunk_size,
80771         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
80772         obstack_grow0, obstack_init, obstack_int_grow,
80773         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
80774         obstack_next_free, obstack_object_size, obstack_ptr_grow,
80775         obstack_ptr_grow_fast, obstack_room): Remove declarations of
80776         nonexistent functions.
80777
80778 2004-05-18  Karl Berry  <karl@gnu.org>
80779
80780         * config/srclist.txt: break link for vasnprintf.c.
80781
80782 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80783
80784         Port obstack to the AS/400, where pointers are 16 bytes wide and
80785         you cannot cast an integer to a valid pointer.  This patch is
80786         currently waiting to be integrated into glibc; see
80787         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
80788
80789         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
80790         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
80791         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
80792         (struct obstack): temp member is now a union of a pointer and
80793         an integer, instead of an integer.  All integer uses changed.
80794         This does not affect the physical layout of struct obstack,
80795         except on hosts (like the AS/400) where the size or alignment of
80796         void * is greater than that of ptrdiff_t.
80797         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
80798         __STDC__)]: Store temporary in pointer member of union, not
80799         integer member.
80800         * lib/obstack.c: Include <stddef.h>, for offsetof.
80801         (struct fooalign): Remove; it doesn't need a name.
80802         (union fooround): Change double to long double, and add void *.
80803         (DEFAULT_ALIGNMENT): Use offsetof to compute.
80804         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
80805         not a macro.  Hence the values are always int; so remove all
80806         casts-to-int in uses.
80807
80808 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80809
80810         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
80811         we can get this patch merged into glibc.
80812
80813 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80814             Paul Eggert  <eggert@cs.ucla.edu>
80815
80816         * m4/argp: Depend on alloca.
80817
80818 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80819             Paul Eggert  <eggert@cs.ucla.edu>
80820
80821         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
80822         freecoding.
80823
80824 2004-05-17  Bruno Haible  <bruno@clisp.org>
80825
80826         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
80827         precision that consists of a '.' followed by an empty digit string.
80828         Patch by Tor Lillqvist <tml@iki.fi>.
80829
80830 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80831
80832         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
80833         for backward compatibility with older code.  We need our own
80834         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
80835         it under some other name, and our alloca.h will define it.
80836
80837 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80838             Derek Price  <derek@ximbiot.com>
80839
80840         * lib/alloca.c: Include <alloca.h>, to get our interface.
80841         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
80842         include <alloca.h> first.  Use C89 prototype for alloca; this
80843         requires including <stddef.h> for size_t.  Use extern "C" if C++.
80844         Use #elif for simplicity, since we can assume C89 now.
80845         Don't try to source the system alloca.h since it will not be found
80846         and to prevent recursively including its replacement.
80847         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
80848         * lib/regex.c: Likewise.
80849
80850 2004-05-16  Derek Price  <derek@ximbiot.com>
80851             Paul Eggert  <eggert@cs.ucla.edu>
80852
80853         getline cleanup.  This changes the getndelim2 API: both order of
80854         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
80855         no delimiter).
80856
80857         * lib/getline.c: Don't include stddef.h or stdio.h, since our
80858         interface does that.
80859         (getline): Always use getdelim, so that we don't have two
80860         copies of this code.
80861         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
80862         if available.
80863         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
80864         (GETNDELIM2_MAXIMUM): New macro.
80865         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
80866         instead of the old practice of delim2==0.  All callers changed.
80867         Return -1 on overflow, instead of returning junk.
80868         Do not set *linesize unless allocation succeeds.
80869         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
80870         that we include sys/types.h.
80871         * lib/getnline.h: Likewise.
80872         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
80873         (getndelim2): Reorder arguments.
80874         * lib/getnline.c (getnline, getndelim):
80875         Don't discard the NMAX argument.
80876         (getnline): Invoke getndelim, to avoid code duplication.
80877         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
80878         of (size_t) -1 by callers of the getnline family.
80879
80880 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80881
80882         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
80883         Check for gettimeofday.
80884         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
80885         Check for settimeofday, stime.
80886
80887 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80888
80889         * lib/nanosleep.c (suspended): Change its type from int to
80890         sig_atomic_t volatile.
80891         (first_call): Make it private to rpl_nanosleep, and have it
80892         be zero initially as that's a bit faster.
80893         (my_usleep): Round up fractional times instead of truncating them,
80894         as this is the usual meaning for 'sleep'.
80895
80896         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
80897         doesn't work.
80898         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
80899         (ENOSYS): Define if not defined.
80900         (settime): Fall back on stime if it exists and settimeofday fails.
80901         But don't bother with fallbacks if a method fails with errno == EPERM.
80902
80903 2004-05-11  Jim Meyering  <jim@meyering.net>
80904
80905         Prior to this change, the save_cwd caller required read access to the
80906         current directory on most systems (ones with the fchdir function).
80907
80908         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
80909         fails, try write-only, and finally, resort to using xgetcwd.
80910
80911 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
80912
80913         * lib/obstack.c, obstack.h: Import changes from libc.
80914
80915 2004-04-28  Bruno Haible  <bruno@clisp.org>
80916
80917         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
80918         also implicitly appends .exe to executables.
80919         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
80920         accepts Windows pathnames.
80921         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80922         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80923         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80924         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80925         Reported by Derek Robert Price <derek@ximbiot.com>.
80926
80927 2004-04-21  Karl Berry  <karl@gnu.org>
80928
80929         * config/srclist.txt (localcharset.c): break sync.
80930
80931 2004-04-20  Paul Eggert  <eggert@twinsun.com>
80932
80933         * m4/host-os.m4: Add a copyright notice.
80934
80935 2004-04-20  Jim Meyering  <jim@meyering.net>
80936
80937         Change UTILS_ to gl_ in AC_DEFINE'd names.
80938         Change utils_- and jm_-prefixed variables, too.
80939         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
80940         UTILS_FUNC_MKDIR_TRAILING_SLASH.
80941         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
80942
80943         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
80944         Don't emit trailing blanks.
80945         Also rename jm_-prefixed variables to have gl_ prefix.
80946
80947         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
80948         Also rename jm_-prefixed variables to have gl_ prefix.
80949
80950         * m4/jm-macros.m4: Reflect the renamings.
80951         * m4/prereq.m4: Likewise.
80952
80953 2004-04-20  Jim Meyering  <jim@meyering.net>
80954
80955         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
80956         memory.
80957
80958 2004-04-20  Jim Meyering  <jim@meyering.net>
80959             Bruno Haible  <bruno@clisp.org>
80960
80961         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
80962         memory when realloc fails.
80963
80964 2004-04-19  Jim Meyering  <jim@meyering.net>
80965
80966         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
80967         now that readutmp.c may call `free (0)'.
80968
80969 2004-04-19  Bruno Haible  <bruno@clisp.org>
80970
80971         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
80972         * m4/inttypes_h.m4: Likewise.
80973         * m4/stdint_h.m4: Likewise.
80974         * m4/intmax_t.m4: Likewise.
80975         * m4/uintmax_t.m4: Likewise.
80976
80977 2004-04-18  Jim Meyering  <jim@meyering.net>
80978
80979         * m4/prereq.m4: Don't forbid jm_ prefix.
80980
80981         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
80982         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
80983         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
80984         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
80985         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
80986         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
80987         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
80988         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
80989         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
80990         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
80991         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
80992         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
80993         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
80994         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
80995         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
80996         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
80997         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
80998         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
80999         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
81000
81001 2004-04-18  Jim Meyering  <jim@meyering.net>
81002
81003         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
81004         failure, don't leak memory and do call END_UTMP_ENT.
81005
81006 2004-04-16  Jim Meyering  <jim@meyering.net>
81007
81008         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
81009         coreutils' stat program.
81010         (gl_PREREQ): Don't require jm_PREREQ_STAT.
81011
81012 2004-04-11  Paul Eggert  <eggert@twinsun.com>
81013
81014         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
81015         C89.
81016         (CHAR_BIT): Remove, since we assume C89.
81017         Include <stdint.h> if available, as per current Autoconf CVS advice.
81018
81019 2004-03-31  Jim Meyering  <jim@meyering.net>
81020
81021         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
81022         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
81023         * m4/xalloc.m4: Likewise.
81024
81025 2004-03-30  Paul Eggert  <eggert@twinsun.com>
81026
81027         Merge from coreutils.
81028
81029         * m4/inttostr.m4: New file.
81030         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
81031         Require AM_STDBOOL_H and gl_TIMESPEC instead.
81032         Require gl_CLOCK_TIME.
81033         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
81034
81035 2004-03-30  Paul Eggert  <eggert@twinsun.com>
81036
81037         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
81038         not bool, to be more consistent with Unix conventions.
81039         Suggested by Bruno Haible.
81040
81041         Merge from coreutils.
81042
81043         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
81044         * lib/umaxtostr.c: New files.
81045
81046         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
81047         the usual <time.h> dance.
81048         (get_date): Change signature to support fractional time stamps.
81049         All callers changed.
81050         * lib/getdate.y: Include "getdate.h" first, as we can now
81051         assume C89 and don't need to worry about 'const'.
81052         Similarly, include "unlocked-io.h" near start, not in middle.
81053         Include <limits.h>.
81054         (textint.value): Use long int rather than int.
81055         (textint.digits): Use size_t rather than int.
81056         (BILLION, LOG10_BILLION): New constants.
81057         (parser_control): New member rel_ns.  Members day_ordinal,
81058         time_zone, month, day, hour, minutes, rel_year, rel_month,
81059         rel_day, rel_hour, rel_minutes, rel_seconds
81060         are now long int, not int.  Member seconds is now struct timespec,
81061         not int.  New member timespec_seen.  Members dates_seen, days_seen,
81062         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
81063         not int.
81064         (%union.intval): Now long int, not int.
81065         New member timespec.
81066         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
81067         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
81068         (spec): Now is a timespec or an item list.
81069         (timespec, items): New nonterminals.
81070         (time, rel, relunit, number, get_date):
81071         Add support for fractional seconds.
81072         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
81073         (gmtime, localtime, mktime): Remove decls; not needed with C89.
81074         (to_hour): First arg is now long int, not int.
81075         (to_year): Returns long int, not int.
81076         Don't treat year -70 like 70.
81077         (tm_diff): Returns long int, not int.
81078         (lookup_word): Use bool instead of int when appropriate.
81079         (yylex): Use size_t for count, not int.
81080         Detect overflow when parsing large integer constants.
81081         Add support for fractions.
81082         (get_date): Make pointers 'const' if possible.
81083         Use more-portable code to detect integer overflow.
81084         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
81085         Don't use ctime; it's not reliable if the year has >4 digits.
81086
81087         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
81088         This is for compatibility with BSD.
81089
81090         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
81091         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
81092         From coreutils' system.h.
81093
81094         * lib/userspec.c: Don't include "posixver.h".
81095         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
81096         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
81097         compatible extension.  Simplify code by removing a boolean int
81098         that was always nonzero if a string was nonnull.
81099
81100 2004-03-30  Jim Meyering  <jim@meyering.net>
81101
81102         Merge from coreutils.
81103
81104         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
81105         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
81106         on some systems one must include <grp.h> before it.
81107         Reported by Christian Krackowizer.
81108
81109 2004-03-30  Jim Meyering  <jim@meyering.net>
81110
81111         Merge from coreutils.
81112
81113         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
81114
81115         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
81116         an empty input stream.
81117
81118         * lib/readtokens.c: Include <stdbool.h>.
81119         (readtoken): Use `size_t' rather than int/long.
81120         All callers adjusted.
81121         Use `bool' rather than `int' where appropriate.
81122         Use memset rather than an explicit loop.
81123         Use x2nrealloc rather than xrealloc.
81124         Allow the use of `\0' as a delimiter.
81125         (readtokens): Likewise.
81126         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
81127
81128 2004-03-30  Jim Meyering  <jim@meyering.net>
81129
81130         * m4/realloc.m4: Remove file, since now it does no more than
81131         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
81132         the `configure.ac' section of module/realloc.
81133         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
81134
81135 2004-03-30  Bruno Haible  <bruno@clisp.org>
81136
81137         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
81138         nonnull.
81139
81140 2004-03-29  Paul Eggert  <eggert@twinsun.com>
81141
81142         Merge changes to getloadavg.c from coreutils and Emacs.
81143
81144         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
81145         Define to an expression, not to the empty string.
81146         Include cloexec.h and xalloc.h.
81147         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
81148         Use set_cloexec_flag rather than rolling our own.
81149         * lib/cloexec.c, lib/cloexec.h: New files.
81150
81151 2004-03-29  Paul Eggert  <eggert@twinsun.com>
81152
81153         * m4/cloexec.m4: New file.
81154
81155 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81156
81157         * lib/getopt.h: Sync with libc CVS.
81158
81159 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81160             Bruno Haible  <bruno@clisp.org>
81161
81162         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
81163         mbswidth.
81164
81165 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81166             Bruno Haible  <bruno@clisp.org>
81167
81168         * lib/mbswidth.h: Include <wchar.h> only if
81169         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
81170         <wchar.h>.
81171         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
81172
81173 2004-03-09  Paul Eggert  <eggert@twinsun.com>
81174
81175         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
81176         Sync with libc CVS.
81177         * lib/getopt_int.h: New file, also synced from libc.
81178
81179 2004-03-09  Paul Eggert  <eggert@twinsun.com>
81180
81181         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
81182         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
81183         Bring back getopt.c, getopt.h, getopt1.c.
81184
81185 2004-03-07  Paul Eggert  <eggert@twinsun.com>
81186
81187         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
81188         All uses changed.  Check for sa_sigaction member; this fixes
81189         a bug first reported by Jason Andrade in
81190         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
81191
81192 2004-03-07  Paul Eggert  <eggert@twinsun.com>
81193
81194         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
81195         '#if' expressions.  Unlike the code it replaces, it does not
81196         depend on (defined _SC_PAGESIZE).  However, it does depend on
81197         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
81198         first reported by Jason Andrade in
81199         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
81200
81201 2004-02-25  Simon Josefsson  <jas@extundo.com>
81202
81203         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
81204
81205 2004-02-25  Simon Josefsson  <jas@extundo.com>
81206
81207         * lib/strdup.h: New file.
81208         * lib/strdup.c: Include it.
81209         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
81210         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
81211
81212 2004-02-23  Karl Berry  <karl@gnu.org>
81213
81214         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
81215         (from fencepost.gnu.org:/gd/gnuorg).
81216
81217 2004-02-23  Karl Berry  <karl@gnu.org>
81218
81219         * config/srclistvars.sh (GNUORG) [karl]: redefine.
81220         * config/srclist.txt: add maintain/standards documents.
81221
81222 2004-02-18  Bruno Haible  <bruno@clisp.org>
81223
81224         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
81225         Reported by Derek Robert Price <derek@ximbiot.com>.
81226
81227 2004-02-16  Karl Berry  <karl@gnu.org>
81228
81229         * config/mkinstalldirs, install-sh: update from automake.
81230
81231 2004-02-06  Karl Berry  <karl@gnu.org>
81232
81233         * m4/po.m4: update from gettext 0.14.1.
81234
81235 2004-02-06  Karl Berry  <karl@gnu.org>
81236
81237         * lib/config.charset: update from gettext 0.14.1.
81238
81239 2004-02-05  Paul Eggert  <eggert@twinsun.com>
81240
81241         Add comments and code, prompted by suggestions from Bruno Haible
81242         for sh-quote.
81243         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
81244         describing the enum quoting_style values.
81245         * lib/quotearg.c (quotearg_alloc): New function.
81246         (quotearg_buffer_restyled): Treat lone { and } as special.
81247         Treat = as special.  Work around bug with older shells
81248         that "see" a '\' that is really the 2nd byte of a multibyte char.
81249         Quote empty string with shell_quoting_style.
81250
81251 2004-02-03  Bruno Haible  <bruno@clisp.org>
81252
81253         * m4/pipe.m4: New file, from GNU gettext.
81254
81255 2004-02-03  Bruno Haible  <bruno@clisp.org>
81256
81257         * lib/pipe.h: New file, from GNU gettext.
81258         * lib/pipe.c: New file, from GNU gettext.
81259
81260 2004-01-27  Bruno Haible  <bruno@clisp.org>
81261
81262         * m4/execute.m4: New file, from GNU gettext.
81263
81264 2004-01-27  Bruno Haible  <bruno@clisp.org>
81265
81266         * lib/execute.h: New file, from GNU gettext.
81267         * lib/execute.c: New file, from GNU gettext.
81268         * lib/w32spawn.h: New file, from GNU gettext.
81269
81270 2004-01-24  Paul Eggert  <eggert@twinsun.com>
81271
81272         Merge from diffutils.
81273
81274         * lib/file-type.c (file_type): Add typed memory objects.
81275         * lib/file-type.h (S_TYPEISTMO): New macro.
81276
81277         * lib/c-stack.h (c_stack_action): Remove argv argument.
81278         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
81279         (die): Don't calculate message unless segv_action returns.
81280         (get_stack_location, min_address_from_argv, max_address_from_argv,
81281         volatile stack_base, volatile_stack_size): Remove.
81282         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
81283         that every segmentation violation is a stack overflow.  (Ouch!)
81284         See Debian bug 136249 (still outstanding) for more info about why
81285         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
81286
81287 2004-01-24  Paul Eggert  <eggert@twinsun.com>
81288
81289         Exit-status fix from coreutils.
81290
81291         Use exit_failure consistently in place of EXIT_FAILURE,
81292         so that program exit statuses are consistent on failure.
81293
81294         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
81295         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
81296         * lib/argmatch.h: Comment fix to match the above.
81297         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
81298         Now a macro referring to exit_failure, instead of a separate
81299         variable.  Include "exitfail.h" to get it.
81300         * lib/xstrtol.h: Include "exitfail.h".
81301         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
81302
81303         * lib/long-options.c (parse_long_options): Use prototype
81304         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
81305         for clarity.
81306
81307 2004-01-21  Jim Meyering  <jim@meyering.net>
81308
81309         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
81310         so as not to conflict with a different-sized __mktime_internal
81311         function in GNU libc.
81312         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
81313         Problem building statically-linked `ls' reported by Michael Brunnbauer.
81314
81315 2004-01-20  Karl Berry  <karl@gnu.org>
81316
81317         * config/config.guess: update from config.
81318
81319         * config/srclistvars.sh: GNUWWWLICENSES for karl.
81320
81321 2004-01-20  Bruno Haible  <bruno@clisp.org>
81322
81323         Safer stack allocation.
81324         * lib/setenv.c: Include allocsa.h.
81325         (alloca): Remove fallback definition.
81326         (freea): Remove macro.
81327         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
81328         instead of freea.
81329
81330 2004-01-20  Bruno Haible  <bruno@clisp.org>
81331
81332         * m4/eealloc.m4: New file, from GNU gettext.
81333
81334 2004-01-20  Bruno Haible  <bruno@clisp.org>
81335
81336         * m4/allocsa.m4: New file, from GNU gettext.
81337
81338 2004-01-20  Bruno Haible  <bruno@clisp.org>
81339
81340         * lib/xallocsa.h: New file, from GNU gettext.
81341         * lib/xallocsa.c: New file, from GNU gettext.
81342
81343 2004-01-20  Bruno Haible  <bruno@clisp.org>
81344
81345         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
81346
81347 2004-01-20  Bruno Haible  <bruno@clisp.org>
81348
81349         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
81350         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
81351         specially.
81352
81353 2004-01-20  Bruno Haible  <bruno@clisp.org>
81354
81355         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
81356         patch.
81357
81358 2004-01-20  Bruno Haible  <bruno@clisp.org>
81359
81360         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
81361
81362 2004-01-20  Bruno Haible  <bruno@clisp.org>
81363
81364         * lib/eealloc.h: New file.
81365
81366 2004-01-20  Bruno Haible  <bruno@clisp.org>
81367
81368         * lib/binary-io.h: Avoid warnings on Cygwin.
81369
81370 2004-01-20  Bruno Haible  <bruno@clisp.org>
81371
81372         * lib/allocsa.h: New file, from GNU gettext.
81373         * lib/allocsa.c: New file, from GNU gettext.
81374
81375 2004-01-18  Karl Berry  <karl@gnu.org>
81376
81377         * doc/gpl.texi, doc/lgpl.texi: new files.
81378
81379 2004-01-18  Karl Berry  <karl@gnu.org>
81380
81381         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
81382         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
81383
81384 2004-01-15  Paul Eggert  <eggert@twinsun.com>
81385
81386         Merge from coreutils.
81387
81388         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
81389         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
81390         (gl_DEFAULT_POSIX2_VERSION): Move
81391         the documentation from 'configure' into 'config.hin',
81392         so that 'configure --help' isn't burdened by it and
81393         we don't have to worry about its formatting there.
81394         Reword the documentation so that it's more succinct
81395         and can be run together into a single paragraph.
81396         * m4/same.m4 (gl_SAME): Check for pathconf.
81397
81398 2004-01-15  Paul Eggert  <eggert@twinsun.com>
81399
81400         Merge from coreutils.
81401
81402         * lib/posixver.c: Include posixver.h.
81403
81404         * lib/same.c: Include <stdbool.h>, <limits.h>.
81405         (_POSIX_NAME_MAX): Define if not defined.
81406         (MIN): New macro.
81407         (same_name): If file names are silently truncated, report
81408         that the file names are the same if they are the same after
81409         the silent truncation.
81410
81411         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
81412         conversion function.
81413         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
81414         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
81415         longer needed.
81416
81417 2004-01-15  Jim Meyering  <jim@meyering.net>
81418
81419         Merge from coreutils.
81420
81421         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
81422         if no library is required.
81423         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
81424         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
81425         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
81426         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
81427         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
81428         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
81429         value, $ac_cv_search_crypt, if it's "none required".
81430         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
81431         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
81432         not gl_FUNC_GETLOADAVG.
81433         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
81434         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
81435
81436 2004-01-15  Jim Meyering  <jim@meyering.net>
81437
81438         Merge from coreutils.
81439
81440         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
81441         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
81442         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
81443
81444         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
81445         optional configure-time default.
81446
81447         * lib/version-etc.c (version_etc_copyright): Update copyright date.
81448
81449         * lib/xreadlink.c (xreadlink): Correct outdated comment.
81450
81451 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
81452
81453         Merge from coreutils.
81454
81455         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
81456         value, $ac_cv_search_nanosleep, if it's "none required".
81457
81458 2004-01-14  Paul Eggert  <eggert@twinsun.com>
81459
81460         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
81461         with like-named macro in fnmatch.c.
81462         (EXT): Use an internal constant instead.
81463
81464         Merge fnmatch patches from glibc.
81465         * lib/fnmatch.c (mbsinit): Remove define.
81466         Add libc_hidden_ver (__fnmatch, fnmatch).
81467         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
81468         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
81469
81470 2004-01-14  Karl Berry  <karl@gnu.org>
81471
81472         * config/install-sh: update from automake.
81473
81474 2004-01-13  Karl Berry  <karl@gnu.org>
81475
81476         * config/install-sh: update from automake.
81477
81478 2004-01-09  Karl Berry  <karl@gnu.org>
81479
81480         * config/install-sh: update from automake.
81481
81482 2004-01-05  Karl Berry  <karl@gnu.org>
81483
81484         * config/config.{sub,guess}: update from config.
81485
81486 2003-12-31  Karl Berry  <karl@gnu.org>
81487
81488         * config/depcomp: update from automake.
81489
81490 2003-12-14  Karl Berry  <karl@gnu.org>
81491
81492         * lib/config.charset: update from gettext-runtime.
81493
81494 2003-12-03  Paul Eggert  <eggert@twinsun.com>
81495
81496         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
81497         Bug reported by Alfred M. Szmidt.
81498
81499 2003-12-03  Bruno Haible  <bruno@clisp.org>
81500
81501         * m4/gettext.m4: Upgrade from gettext-0.13.
81502         * m4/po.m4: Upgrade from gettext-0.13.
81503         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
81504         * m4/intmax.m4: New file, from gettext-0.13.
81505         * m4/printf-posix.m4: New file, from gettext-0.13.
81506
81507 2003-11-29  Karl Berry  <karl@gnu.org>
81508
81509         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
81510
81511 2003-11-25  Paul Eggert  <eggert@twinsun.com>
81512             Bruno Haible  <bruno@clisp.org>
81513
81514         * lib/printf-parse.h: Don't include sys/types.h.
81515         (ARG_NONE): New macro.
81516         (char_directive): Change type of *arg_index fields to size_t.
81517         * lib/printf-parse.c: Don't include sys/types.h.
81518         (SSIZE_MAX): Remove macro.
81519         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
81520         Remove unnecessary overflow check.
81521         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
81522         fields.
81523
81524 2003-11-25  Bruno Haible  <bruno@clisp.org>
81525
81526         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
81527
81528 2003-11-25  Bruno Haible  <bruno@clisp.org>
81529
81530         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
81531         gt_TYPE_SSIZE_T.
81532
81533 2003-11-24  Paul Eggert  <eggert@twinsun.com>
81534
81535         * modules/alloca: Remove dependency on xalloc.
81536
81537 2003-11-24  Paul Eggert  <eggert@twinsun.com>
81538
81539         * lib/alloca.c: Remove dependency on xalloc module.
81540         (xalloc_die): Remove.
81541         (memory_full) [!defined emacs]: New macro.
81542         [!defined emacs]: Don't include xalloc.h.
81543         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
81544         address arithmetic overflows.  Change datatypes a bit to avoid
81545         unnecessary casts.
81546
81547 2003-11-22  Jim Meyering  <jim@meyering.net>
81548
81549         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
81550         s/size/size_t/.
81551
81552 2003-11-21  Karl Berry  <karl@gnu.org>
81553
81554         * config/config.{sub,guess}: update from config.
81555
81556 2003-11-18  Karl Berry  <karl@gnu.org>
81557
81558         * config/config.{sub,guess}: update from config.
81559
81560         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
81561
81562 2003-11-17  Paul Eggert  <eggert@twinsun.com>
81563
81564         * README: Mention that S+T cannot overflow if S is the size of
81565         an existing object and T is sufficiently small.
81566
81567 2003-11-17  Jim Meyering  <jim@meyering.net>
81568
81569         On systems without utime and without a utimes function capable of
81570         dealing with a NULL struct utimbuf* argument, this utime replacement
81571         could -- in unusual circumstances -- leak a file descriptor.
81572         * lib/utime.c: Include <unistd.h> and <errno.h>.
81573         (utime_null): Be sure to close `fd' and to preserve errno.
81574         Reported by Geoff Collyer via Arnold Robbins.
81575
81576 2003-11-17  Bruno Haible  <bruno@clisp.org>
81577
81578         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
81579         (Depends-on): Add xsize.
81580
81581 2003-11-17  Bruno Haible  <bruno@clisp.org>
81582
81583         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
81584
81585 2003-11-17  Bruno Haible  <bruno@clisp.org>
81586
81587         * lib/vasnprintf.c (alloca): Remove fallback definition.
81588         (freea): Remove definition.
81589         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
81590         Reported by Paul Eggert.
81591
81592 2003-11-16  Paul Eggert  <eggert@twinsun.com>
81593             Bruno Haible  <bruno@clisp.org>
81594
81595         Protect against address arithmetic overflow.
81596         * lib/printf-args.h: Include stddef.h.
81597         (arguments): Change type of field 'count' to size_t.
81598         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
81599         'unsigned int' where appropriate.
81600         * lib/printf-parse.h: Include sys/types.h.
81601         (char_directive): Change type of *arg_index fields to ssize_t.
81602         (char_directives): Change type of fields 'count', max_*_length to
81603         size_t.
81604         * lib/printf-parse.c: Include sys/types.h and xsize.h.
81605         (SSIZE_MAX): Define fallback value.
81606         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
81607         instead of 'int' where appropriate. Check a_allocated, d_allocated
81608         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
81609         * lib/vasnprintf.c: Include xsize.h.
81610         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
81611         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
81612         overflow. Avoid wraparound when converting a width or precision from
81613         decimal to binary.
81614
81615 2003-11-16  Bruno Haible  <bruno@clisp.org>
81616
81617         Update from GNU gettext.
81618         * lib/printf-parse.c: Generalize to it can be compiled for wide
81619         strings.
81620         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
81621         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
81622         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
81623         SNPRINTF): New macros.
81624         Don't include <alloca.h> if the file is used inside libintl.
81625         (local_wcslen): New function, for Solaris 2.5.1.
81626         (VASNPRINTF): Use it instead of wcslen.
81627
81628 2003-11-16  Bruno Haible  <bruno@clisp.org>
81629
81630         * lib/xsize.h (xmax): New function.
81631         (xsum, xsum3, xsum4): Declare as "pure" functions.
81632
81633 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81634
81635         * modules/xalloc (Files): Undo latest change, since xalloc.h
81636         no longer needs SIZE_MAX or PTRDIFF_MAX.
81637
81638 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81639
81640         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
81641         gl_PTRDIFF_MAX.
81642
81643 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81644
81645         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
81646         "return", to pacify some unknown compiler.  Problem reported
81647         by Joerg Schilling.
81648
81649 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81650
81651         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
81652         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
81653         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
81654         heuristic is just as accurate as far as we know, and it removes a
81655         dependency on size_max.m4 and ptrdiff_max.m4.
81656
81657 2003-11-11  Bruno Haible  <bruno@clisp.org>
81658
81659         * modules/xsize (Files): Add m4/size_max.m4.
81660         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
81661
81662 2003-11-11  Bruno Haible  <bruno@clisp.org>
81663
81664         * m4/size_max.m4: New file.
81665         * m4/ptrdiff_max.m4: New file.
81666         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
81667         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
81668         (gl_XALLOC): Invoke it.
81669
81670 2003-11-11  Bruno Haible  <bruno@clisp.org>
81671
81672         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
81673         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
81674         defined.
81675
81676 2003-11-10  Paul Eggert  <eggert@twinsun.com>
81677
81678         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
81679         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
81680         rejected some allocations of exactly SIZE_MAX - 2 bytes.
81681         From Bruno Haible.
81682         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
81683         not (size_t) -1, since it's defined here.
81684
81685 2003-11-09  Karl Berry  <karl@gnu.org>
81686
81687         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
81688
81689 2003-11-06  Paul Eggert  <eggert@twinsun.com>
81690
81691         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
81692         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
81693         Reject sizes of exactly SIZE_MAX bytes.
81694         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
81695         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
81696
81697 2003-11-05  Bruno Haible  <bruno@clisp.org>
81698
81699         * lib/xsize.h: Include limits.h, to avoid a possible collision with
81700         SIZE_MAX defined in <limits.h> on Solaris.
81701
81702 2003-11-04  Jim Meyering  <jim@meyering.net>
81703
81704         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
81705         variable names, rather than @VAR@.
81706         * modules/poll: Likewise.
81707
81708 2003-11-04  Bruno Haible  <bruno@clisp.org>
81709
81710         * modules/xsize: New file.
81711         * modules/linebreak: Depend on xsize.
81712         * MODULES.html.sh (func_all_modules): Add xsize.
81713
81714 2003-11-04  Bruno Haible  <bruno@clisp.org>
81715
81716         * m4/xsize.m4: New file.
81717
81718 2003-11-04  Bruno Haible  <bruno@clisp.org>
81719
81720         * lib/xsize.h: New file.
81721         * lib/linebreak.c: Include xsize.h.
81722         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
81723         argument for overflow.
81724         Suggested by Paul Eggert.
81725
81726 2003-11-03  Karl Berry  <karl@gnu.org>
81727
81728         * config/config.{guess,sub}: update from config.
81729
81730 2003-11-03  Jim Meyering  <jim@meyering.net>
81731
81732         * modules/userspec (lib_SOURCES): Add userspec.h.
81733         (Include): Add "userspec.h".
81734         Improve description.
81735
81736 2003-11-03  Jim Meyering  <jim@meyering.net>
81737
81738         * lib/userspec.c: Include "userspec.h".
81739         * lib/userspec.h: New file.
81740
81741 2003-11-03  Bruno Haible  <bruno@clisp.org>
81742
81743         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
81744
81745 2003-11-03  Bruno Haible  <bruno@clisp.org>
81746
81747         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
81748         available, to avoid (extremely rare) race condition.
81749         Suggested by Paul Eggert.
81750
81751 2003-11-02  Karl Berry  <karl@gnu.org>
81752
81753         * config/srclist.txt (vasprintf.c): sync broken, sigh.
81754
81755 2003-10-31  Paul Eggert  <eggert@twinsun.com>
81756
81757         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
81758         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
81759         (read_filesystem_list): Set and use me_type_malloced.
81760         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
81761         whatever the type happens to be), for brevity and consistency.
81762         Check for size calculation overflow on Alphas running OSF/1.
81763
81764 2003-10-31  Jim Meyering  <jim@meyering.net>
81765
81766         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
81767
81768         * lib/linebuffer.c: Include <string.h> for declaration of memset.
81769
81770 2003-10-30  Paul Eggert  <eggert@twinsun.com>
81771             Bruno Haible  <bruno@clisp.org>
81772
81773         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
81774         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
81775
81776 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
81777
81778         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
81779         netbsd*-gnu*.  Suggested by Robert Millan.
81780
81781 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81782
81783         * modules/group-member: Depend on stdbool.
81784
81785 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81786
81787         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
81788
81789 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81790
81791         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
81792         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
81793         after the 'gnu' in these cases.  This fixes some bugs in the
81794         previous change, and is based on suggestions by Robert Millan.
81795
81796 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81797
81798         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
81799         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
81800         no longer needed.
81801         * lib/quotearg.c (quotearg_n_options): Use it.
81802         * lib/group-member.c: Include <stdbool.h>.
81803         (free_group_info): Arg is now const *; don't free arg.
81804         (get_group_info): Now returns bool and accepts struct group_info *,
81805         rather than returning a malloc'ed struct group_info *.
81806         All uses changed.  Check for overflow in internal size calculation.
81807
81808         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
81809         rather than xmalloc/xrealloc.
81810         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
81811         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
81812         conformance bug: the old code used a pointer after freeing the
81813         storage that it addressed.
81814         * lib/hash.c (hash_initialize): Simplify the code by using
81815         xalloc_oversized rather than doing it by hand.
81816         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
81817         the buffer preserved.  Use free and xmalloc instead.
81818         * lib/quotearg.c (quotearg_n_options): Likewise.
81819         Use a simpler test for size overflow.  Don't use xalloc_oversized
81820         because unsigned int might be wider than size_t (!); this suggests
81821         that we should switch from unsigned int to size_t for slot numbers.
81822
81823 2003-10-28  Paul Eggert  <eggert@twinsun.com>
81824
81825         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
81826         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
81827         NetBSD kernels.  Requested by Richard Stallman.
81828
81829 2003-10-27  Paul Eggert  <eggert@twinsun.com>
81830
81831         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
81832         to allocate the returned structure.  Do not allocate a subarray,
81833         as x2nrealloc will do that.
81834         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
81835         instead of xnrealloc.
81836         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
81837
81838 2003-10-27  Bruno Haible  <bruno@clisp.org>
81839
81840         * lib/stdbool_.h: Better support for BeOS.
81841
81842 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81843
81844         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
81845         now uses inline.
81846
81847 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81848
81849         * lib/xalloc.h (xalloc_oversized): New static inline function, for
81850         callers that want to do their own size-overflow checking.  Include
81851         <stdbool.h>, since xalloc_oversized returns bool.
81852         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
81853         to use xalloc_oversized.
81854
81855         Add two functions x2realloc, x2nrealloc, for programs that grow
81856         arrays dynamically by doubling their sizes.
81857         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
81858         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
81859         New functions.
81860
81861         Port to C99 semantics for 'inline' of external functions.
81862         Bug reported by Bruno Haible.
81863         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
81864         with the old contents of xnmalloc.
81865         (xnmalloc, xmalloc): Use it.
81866         (xnrealloc_inline): New static inline function,
81867         with the old contents of xnrealloc.
81868         (xnrealloc, xrealloc): Use it.
81869
81870         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
81871         that.
81872
81873 2003-10-26  Karl Berry  <karl@gnu.org>
81874
81875         * config/srclist.txt (COPYING.DOC): no longer available from
81876         /gd/gnuorg; don't know where the ultimate source is.
81877
81878 2003-10-25  Paul Eggert  <eggert@twinsun.com>
81879
81880         Fix several address-calculation bugs in the hash modules,
81881         plus some minor code cleanup.
81882
81883         * lib/hash.h: Include <stdbool.h>, for bool.
81884         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
81885         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
81886         hash_get_n_entries, hash_get_max_bucket_length,
81887         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
81888         hash_rehash): Use size_t rather than unsigned.
81889         * lib/hash.c (struct hash_table, hash_get_n_buckets,
81890         hash_get_n_buckets_used, hash_get_n_entries,
81891         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
81892         hash_get_entries, hash_do_for_each, hash_string, is_prime,
81893         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
81894         Likewise.
81895         (SIZE_MAX): Define if not defined.
81896         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
81897         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
81898         hash_print):
81899         Use const * when possible.
81900         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
81901         (check_tuning): Fix bug: if tuning parameters were very close to
81902         0 or 1, rounding errors could have caused subscript violations.
81903         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
81904         (hash_initialize): Add 'fail:' label
81905         to free table and return NULL, and use it to simplify code.
81906         Use calloc rather than clearing the storage ourself.
81907         (hash_initialize, hash_rehash): Check for arithmetic overflow in
81908         buffer size calculations.
81909         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
81910         Include <stddef.h>, for size_t.
81911         * lib/hash-pjw.c (hash_pjw): Likewise.
81912         Switch to method described by Bruno Haible.
81913         Include <limits.h>, for CHAR_BIT.
81914         (SIZE_BITS): New macro.
81915
81916 2003-10-23  Paul Eggert  <eggert@twinsun.com>
81917
81918         * m4/getline.m4 (AM_FUNC_GETLINE):
81919         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
81920         hosts.  Problem reported by Derek Robert Price in
81921         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
81922         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
81923         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
81924
81925 2003-10-21  Paul Eggert  <eggert@twinsun.com>
81926
81927         * lib/getndelim2.c (getndelim2): When size calculation overflows,
81928         ceiling the allocation at NMAX bytes rather than silently
81929         discarding input bytes before NMAX is reached.  This makes
81930         a difference only if NMAX exceeds SIZE_MAX / 2.
81931
81932         * lib/obstack.c: Merge from glibc.
81933         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
81934         Add libc_hidden_def (_obstack_newchunk).
81935         (_obstack_free) [! defined _LIBC]: Remove.
81936         [defined _LIBC]: Make a strong alias from obstack_free, rather than
81937         a clone of the function body.
81938         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
81939         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
81940
81941         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
81942         glibc.
81943         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
81944         arg to memcpy.
81945
81946         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
81947         (obstack_ptr_grow_fast, obstack_int_grow_fast):
81948         Don't use lvalue casts, as GCC plans to remove support for them
81949         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
81950         was also present in the non-GCC version, indicating that this
81951         code had always been buggy and had never been widely used.
81952         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
81953         Use the fast variant of each macro, rather than copying the
81954         definiens of the fast variant; that way, we'll be more likely to
81955         catch future bugs in the fast variants.
81956
81957 2003-10-20  Bruno Haible  <bruno@clisp.org>
81958
81959         * modules/wait-process: New file.
81960         * MODULES.html.sh (func_all_modules): Add wait-process.
81961
81962 2003-10-20  Bruno Haible  <bruno@clisp.org>
81963
81964         * m4/wait-process.m4: New file.
81965
81966 2003-10-20  Bruno Haible  <bruno@clisp.org>
81967
81968         * lib/wait-process.h: New file, from GNU gettext.
81969         * lib/wait-process.c: New file, from GNU gettext.
81970
81971 2003-10-19  Jim Meyering  <jim@meyering.net>
81972
81973         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
81974         HPUX 10.20.
81975
81976 2003-10-18  Karl Berry  <karl@gnu.org>
81977
81978         * config/config.guess: update from config.
81979
81980 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81981
81982         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
81983         (getgroups): First arg is int, not size_t.
81984         Don't let 'free' mangle errno.
81985
81986 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81987
81988         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
81989
81990 2003-10-16  Karl Berry  <karl@gnu.org>
81991
81992         * config/config.{guess,sub}: update from config.
81993
81994 2003-10-16  Jim Meyering  <jim@meyering.net>
81995
81996         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
81997         memcpy.
81998
81999 2003-10-15  Paul Eggert  <eggert@twinsun.com>
82000
82001         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
82002         (SIZE_MAX): Remove.
82003         (new_exclude, add_exclude_file): Initial size no longer needs to
82004         be a power of 2.
82005         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
82006         our own address arithmetic overflow checking.
82007
82008         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
82009         (fnmatch): Do not alloca more than 2000 wide characters;
82010         instead, use malloc for large buffers.
82011         Check for address arithmetic overflow, and return -1
82012         with errno set to ENOMEM in that case.
82013         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
82014         (NEW_PATTERN): Do not alloca more than 8000 bytes;
82015         instead, return -1.  Check for address arithmetic overflow.
82016
82017 2003-10-14  Paul Eggert  <eggert@twinsun.com>
82018
82019         Handle invalid suffixes and overflow independently, so that
82020         callers can treat them independently as needed.  Fix some bugs in
82021         suffix handling, e.g., "100k@" was not diagnosed as an invalid
82022         suffix for a human-readable blocksize.  The major caller-visible
82023         change is the addition of a new
82024         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
82025         that both overflow and suffix chars were found.
82026
82027         * lib/human.c (humblock): Don't check separately for invalid suffix
82028         char; that is xstrtoumax's job (now that its bug is fixed).
82029         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
82030         INTMAX_MAX]: New macros.
82031         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
82032         TYPE_MAXIMUM): New macros.
82033         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
82034         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
82035         if overflow occurs, as it's what __strtol does and it's more useful
82036         in practice.
82037         (__xstrtol): If __strtol reports some error other than ERANGE,
82038         reflect it to the caller as LONGINT_INVALID.  If it reports
82039         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
82040         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
82041         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
82042         value.
82043         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
82044         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
82045         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
82046         [defined UINTMAX_MAX]: New macros.
82047
82048 2003-10-14  Bruno Haible  <bruno@clisp.org>
82049
82050         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
82051
82052 2003-10-14  Bruno Haible  <bruno@clisp.org>
82053
82054         * m4/sig_atomic_t: New file, from GNU gettext.
82055         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
82056
82057 2003-10-14  Bruno Haible  <bruno@clisp.org>
82058
82059         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
82060         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
82061         Also use volatile where needed.
82062
82063 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82064
82065         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
82066         Change maintainer from Bruno Haible to 'all'.
82067
82068 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82069
82070         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
82071
82072 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82073
82074         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
82075         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
82076         and define in terms of the other primitives.
82077         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
82078         (SIZE_MAX): Define if not already defined.
82079         (array_size_overflow): New function.
82080         (xalloc_die): Abort instead of exiting if 'error' returns.
82081         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
82082         (xmalloc, xrealloc): Use them.
82083         (xcalloc): Check for address arithmetic overflow.
82084         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
82085         a bit faster than strcpy.
82086
82087 2003-10-10  Simon Josefsson  <jas@extundo.com>
82088
82089         * modules/argp (Depends-on): Add restrict and strcase.
82090
82091 2003-10-10  Simon Josefsson  <jas@extundo.com>
82092
82093         * m4/argp.m4: Add AC_C_INLINE.
82094
82095 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82096
82097         Merge getpass from libc, plus a few fixes.
82098
82099         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
82100         Include <stdbool.h>.
82101         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
82102         __fsetlocking to empty.
82103         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
82104         do include <bits/libc-lock.h>.
82105         Do not include <fcntl.h>; not needed.
82106         [_LIBC]: Include <wchar.h>.
82107         (NOTCANCEL_MODE): New macro.
82108         (flockfile, funlockfile) [_LIBC]: New macros.
82109         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
82110         [!_LIBC]: New macros.
82111         (call_fclose): New function.
82112         (getpass): Use it.  Save tty stream separately; this simplifies the
82113         code and makes it more reliable if stdin happens to equal stdout.
82114         Invoke __fsetlocking on tty.
82115         Handle thread cancellation if needed.
82116         Namespace cleanup (use __tcgetattr, __getline).
82117         Use bool for Booleans.
82118         [USE_IN_LIBIO]: Handle wide streams.
82119         [!_LIBC]: Unconditionally do the fseek, since we don't know what
82120         stream might go where.
82121
82122         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
82123         doesn't have to include <stdio.h> before us.
82124         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
82125         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
82126         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
82127         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
82128         if not declared, so that we can use getpass.c code from libc without
82129         rewriting it.
82130         (flockfile, ftrylockfile, funlockfile): New macros.
82131
82132 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82133
82134         * modules/getpass: Depend on stdbool.
82135
82136 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82137
82138         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
82139
82140 2003-10-07  Karl Berry  <karl@gnu.org>
82141
82142         * config/config.{guess,sub}: update from config.
82143
82144 2003-10-06  Jim Meyering  <jim@meyering.net>
82145             Bruno Haible  <bruno@clisp.org>
82146
82147         This lets translators provide better translations for the
82148         "Written by ..." part of --version output.
82149         * lib/version-etc.h: Include stdarg.h.
82150         (version_etc_copyright): Declare as readonly.
82151         (version_etc): Make this function variadic with a NULL-terminated list
82152         of author name strings.
82153         (version_etc_va): New declaration.
82154         * lib/version-etc.c: Include stdarg.h, stdlib.h.
82155         (version_etc_copyright): Declare as readonly.
82156         (version_etc_va): New function. Provide a different translatable string
82157         for each possible number of authors < 10. Abbreviate when there are 10
82158         authors or more.
82159         (version_etc): Make this function variadic. Call version_etc_va.
82160         Suggestion from Gary V. Vaughan.
82161
82162         * lib/long-options.h (parse_long_options): Change prototype: the
82163         authors string is moved to the end and becomes variadic.
82164         * lib/long-options.c: Include stdarg.h.
82165         (parse_long_options): Make this function variadic, too.
82166         Call version_etc_va, not version_etc.
82167
82168 2003-10-06  Bruno Haible  <bruno@clisp.org>
82169
82170         * modules/version-etc-2: Remove file.
82171         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
82172
82173 2003-10-06  Bruno Haible  <bruno@clisp.org>
82174
82175         * modules/fatal-signal: New file.
82176         * MODULES.html.sh (func_all_modules): Add fatal-signal.
82177
82178 2003-10-06  Bruno Haible  <bruno@clisp.org>
82179
82180         * m4/fatal-signal.m4: New file.
82181         * m4/signalblocking.m4: New file, from GNU gettext.
82182
82183 2003-10-06  Bruno Haible  <bruno@clisp.org>
82184
82185         * lib/version-etc-2.h: Remove file.
82186         * lib/version-etc-2.c: Remove file.
82187
82188 2003-10-06  Bruno Haible  <bruno@clisp.org>
82189
82190         * lib/fatal-signal.h: New file, from GNU gettext.
82191         * lib/fatal-signal.c: New file, from GNU gettext.
82192
82193 2003-10-05  Paul Eggert  <eggert@twinsun.com>
82194
82195         * README: Rework advice for preventing empty .o files.
82196         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
82197         not <sys/types.h>.
82198
82199 2003-10-04  Karl Berry  <karl@gnu.org>
82200
82201         * lib/argp*: update from libc.
82202
82203 2003-10-04  Karl Berry  <karl@gnu.org>
82204
82205         * config/config.{guess,sub}: update from config.
82206
82207 2003-10-02  Bruno Haible  <bruno@clisp.org>
82208
82209         * modules/lchown (Include): Add lchown.h.
82210         * modules/time_r (Include): Use "..." syntax.
82211         * modules/xgetdomainname (Include): Add xgetdomainname.h.
82212
82213 2003-10-01  Simon Josefsson  <jas@extundo.com>
82214
82215         * MODULES.html.sh (func_all_modules): Move gethostname from section
82216         'based on' to section 'lacking' POSIX:2001.
82217
82218 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
82219
82220         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
82221         to output mode on the same stream.
82222
82223 2003-09-29  Paul Eggert  <eggert@twinsun.com>
82224
82225         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
82226         Fix arg typo in previous patch.
82227
82228 2003-09-28  Jim Meyering  <jim@meyering.net>
82229
82230         * lib/error.c: Correct cpp indentation.
82231
82232 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82233
82234         * modules/free: New file.
82235
82236 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82237
82238         * m4/free.m4: New file.
82239
82240 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82241
82242         * lib/minmax.h (MIN, MAX)
82243         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
82244         Omit the special code that used __typeof__, since we worry that
82245         it could be more trouble than it's worth.  See:
82246         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
82247         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
82248
82249         * lib/free.c: New file.
82250
82251 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
82252
82253         Trivial fixes to Makefile.am parts of module listings.
82254         * modules/strstr: Append strstr.h to lib_SOURCES.
82255         * modules/strcase: Likewise, for strcase.h.
82256
82257 2003-09-27  Karl Berry  <karl@gnu.org>
82258
82259         * config/mkinstalldirs: update from automake.
82260
82261 2003-09-26  Paul Eggert  <eggert@twinsun.com>
82262
82263         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
82264         (error_tail): Do not loop, reallocating temporary buffer, since
82265         the output cannot contain more wide characters than the input
82266         contains bytes, the size must be big enough already.  This avoids
82267         one potential size overflow calculation.  Check for size overflow
82268         when calculating temporary buffer size.  Free temporary buffer
82269         when done, if it was allocated with malloc; this plugs a memory
82270         leak.  Remove casts from void * to pointers, that are no longer
82271         needed now that we're assuming C89 or better.
82272
82273         Merge error changes from glibc.
82274
82275         * lib/error.c, error.h: Update copyright notice header to match glibc.
82276         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
82277         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
82278         Disable cancellation while printing error.
82279         * lib/error.h: Prepend __ to parameter names.
82280
82281 2003-09-26  Jim Meyering  <jim@meyering.net>
82282
82283         * lib/error.c (error_tail): Move some declarations
82284         into inner scope where the local variables are used.
82285
82286 2003-09-26  Bruno Haible  <bruno@clisp.org>
82287
82288         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
82289         stpncpy().
82290         Don't define stpncpy through config.h; it's now done through stpncpy.h.
82291
82292 2003-09-26  Bruno Haible  <bruno@clisp.org>
82293
82294         * lib/stpncpy.h (gnu_stpncpy): New declaration.
82295         (stpncpy): Define as alias for gnu_stpncpy.
82296         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
82297
82298 2003-09-25  Simon Josefsson  <jas@extundo.com>
82299
82300         * lib/xgetdomainname.h: New file.
82301         * lib/xgetdomainname.c: New file.
82302
82303 2003-09-25  Simon Josefsson  <jas@extundo.com>
82304             Bruno Haible  <bruno@clisp.org>
82305
82306         * modules/getdomainname: New file.
82307         * modules/xgetdomainname: New file.
82308         * MODULES.html.sh (func_all_modules): Add getdomainname,
82309         xgetdomainname.
82310
82311 2003-09-25  Simon Josefsson  <jas@extundo.com>
82312             Bruno Haible  <bruno@clisp.org>
82313
82314         * m4/getdomainname.m4: New file.
82315
82316 2003-09-25  Simon Josefsson  <jas@extundo.com>
82317             Bruno Haible  <bruno@clisp.org>
82318
82319         * lib/getdomainname.h: New file.
82320         * lib/getdomainname.c: New file.
82321
82322 2003-09-25  Karl Berry  <karl@gnu.org>
82323
82324         * lib/argp-fmtstream.c, argp-help.c: update from libc.
82325
82326 2003-09-25  Karl Berry  <karl@gnu.org>
82327
82328         * config/install-sh: update from automake.
82329
82330 2003-09-25  Bruno Haible  <bruno@clisp.org>
82331
82332         * modules/version-etc-2: New file, from modules/version-etc with
82333         modifications.
82334         * MODULES.html.sh (func_all_modules): Add version-etc-2.
82335
82336 2003-09-25  Bruno Haible  <bruno@clisp.org>
82337
82338         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
82339         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
82340
82341 2003-09-24  Simon Josefsson  <jas@extundo.com>
82342
82343         * modules/xgethostname: Add xgethostname.h.
82344
82345 2003-09-24  Paul Eggert  <eggert@twinsun.com>
82346
82347         * lib/linebuffer.c (freebuffer): Don't free the argument, just
82348         the buffer associated with the argument.  Bug reported by
82349         Simon Josefsson.
82350
82351 2003-09-24  Paul Eggert  <eggert@twinsun.com>
82352
82353         * README: Document assumptions that 'int' is at least 32 bits
82354         wide, that integer arithmetic is 2's complement without overflow,
82355         that there are no holes in integer values, that adding sizes of
82356         two nonoverlapping objects can't overflow, and that all-bits-zero
82357         yields scalar zero.  Fix spelling and capitalization typos.
82358
82359 2003-09-19  Karl Berry  <karl@gnu.org>
82360
82361         * lib/argp.h: update from libc.
82362
82363 2003-09-17  Paul Eggert  <eggert@twinsun.com>
82364
82365         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
82366         to avoid spurious warnings like "AC_RUN_IFELSE was called before
82367         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
82368
82369 2003-09-17  Paul Eggert  <eggert@twinsun.com>
82370
82371         * gnulib-tool: Use "test -h", not "test -L", for portability
82372         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
82373         (tags_regexp): Remove, since \| doesn't conform to POSIX.
82374         (sed_extract_prog): Issue s commands one-by-one, rather than
82375         using \| in one s command.
82376
82377 2003-09-16  Paul Eggert  <eggert@twinsun.com>
82378
82379         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
82380         input error, instead of returning NULL the next time we are called
82381         (and therefore losing track of errno).
82382
82383 2003-09-16  Bruno Haible  <bruno@clisp.org>
82384
82385         * gnulib-tool (func_create_testdir): Warn about duplicated
82386         dependencies.
82387
82388 2003-09-15  Paul Eggert  <eggert@twinsun.com>
82389
82390         * modules/argmatch, modules/fatal, modules/obstack,
82391         modules/xalloc, modules/xgethostname: Sort dependencies by
82392         importance, not alphabetically.
82393
82394 2003-09-15  Paul Eggert  <eggert@twinsun.com>
82395
82396         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
82397         fails, so that the caller gets the proper errno.
82398
82399         * lib/readutmp.c (read_utmp): Likewise.
82400         Check for fstat error.  Close stream and free storage
82401         when failing.
82402
82403 2003-09-14  Karl Berry  <karl@gnu.org>
82404
82405         * config/srclist.txt (strdup.c): disable for c89 changes.
82406
82407 2003-09-14  Jim Meyering  <jim@meyering.net>
82408
82409         * lib/getloadavg.c: Correct cpp indentation.
82410         * lib/strdup.c: Likewise.
82411         * lib/vasnprintf.c: Likewise.
82412
82413 2003-09-14  Bruno Haible  <bruno@clisp.org>
82414
82415         * modules/fwriteerror: New file.
82416         * MODULES.html.sh (func_all_modules): Add fwriteerror.
82417
82418 2003-09-14  Bruno Haible  <bruno@clisp.org>
82419
82420         * lib/fwriteerror.h: New file.
82421         * lib/fwriteerror.c: New file.
82422
82423 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82424
82425         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
82426         modules/xgethostname, modules/xalloc: Depend on exit.
82427
82428 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82429
82430         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
82431
82432         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
82433         and AC_MINIX, too, so that their extensions are available.
82434
82435         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
82436         This macro has been superseded by gl_BACKUPFILE.
82437
82438         More patches to assume C89 or better.
82439
82440         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
82441
82442         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
82443         unconditionally.
82444         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
82445         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
82446         Include <string.h>, <stdlib.h> unconditionally.
82447         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
82448         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
82449         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
82450         headers or for string.h.
82451         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
82452         or strtoul.
82453
82454         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
82455         headers.
82456         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
82457         * m4/userspec.m4 (gl_USERSPEC): Likewise.
82458         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
82459         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
82460         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
82461         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
82462         memcpy, memset.
82463         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
82464         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
82465         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
82466         strtol.
82467         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
82468         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
82469         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
82470         strtoul.
82471
82472 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82473
82474         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
82475         * lib/obstack.c [!defined _LIBC]: Likewise.
82476         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
82477         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
82478         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
82479
82480         More changes to assume C89 or better.
82481
82482         * lib/error.c (error_tail): Assume vprintf.
82483
82484         * lib/argmatch.c (getenv): Remove decl.
82485         * lib/progreloc.c (get_full_program_name): Define via prototype.
82486         * lib/setenv.c (clearenv): Likewise.
82487         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
82488         needed.
82489         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
82490         (malloc, memcpy): Remove decls.
82491         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
82492         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
82493         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
82494         (memcpy): Remove macro.
82495         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
82496         (__P): Remove.  All uses removed.
82497         (PTR): Remove.  All uses changed to void *.
82498         (CHAR_BIT, NULL): Remove.
82499         (spaces, zeros, memset_space, memset_zero)
82500         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
82501         Remove.
82502         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
82503         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
82504         Define with prototype.
82505         Remove now-unnecessary prototype decl.
82506         (extra_args_spec): Assume ANSI C.  All uses changed.
82507         (extra_args_spec_iso): Remove.
82508         (my_strftime, emacs_strftimeu): Define via prototype.
82509         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
82510         unconditionally.
82511         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
82512         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
82513         (strtoul, strtol): Remove decls.
82514         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
82515         LONG_MAX): Remove.
82516         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
82517         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
82518         (LOCALE_PARAM_PROTO): New macro.
82519         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
82520         (INTERNAL (strtol), strtol): Define with a prototype.
82521         (PARAMS): Remove.  All uses removed.
82522         * lib/tempname.c: Include <string.h> unconditionally.
82523         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
82524         * lib/xgethostname.c (main): Define with a prototype.
82525         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
82526         Include <stdlib.h> unconditionally.
82527         (calloc, malloc, realloc, free): Remove decls.
82528         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
82529         Include <stdlib.h> unconditionally.  Sort include file names.
82530         (strtod): Remove.
82531         (xstrtod): Define with a prototype.
82532         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
82533         (strtol, strtoul): Remove decls.
82534
82535 2003-09-11  Paul Eggert  <eggert@twinsun.com>
82536
82537         More patches to assume C89 or better.
82538         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
82539         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
82540         string.h, memchr, STDC_HEADERS.
82541
82542 2003-09-11  Paul Eggert  <eggert@twinsun.com>
82543
82544         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
82545         Include <stdlib.h>, <string.h> unconditionally.
82546         Remove now-unnecessary cast to char *.
82547         * lib/strnlen.c: Include <string.h> unconditionally.
82548         * lib/yesno.c (yesno): Define with a prototype.
82549
82550 2003-09-11  Bruno Haible  <bruno@clisp.org>
82551
82552         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
82553
82554 2003-09-10  Jim Meyering  <jim@meyering.net>
82555
82556         * lib/error.c: Correct indentation of cpp directives.
82557
82558 2003-09-10  Bruno Haible  <bruno@clisp.org>
82559
82560         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
82561         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
82562         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
82563         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
82564         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
82565         <stdlib.h> and <string.h> checks.
82566         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
82567         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
82568
82569 2003-09-10  Bruno Haible  <bruno@clisp.org>
82570
82571         * lib/strcspn.c: Include <string.h> unconditionally.
82572         * lib/strpbrk.c: Include <string.h> unconditionally.
82573         * lib/strstr.c: Include <string.h> unconditionally.
82574         * lib/unicodeio.c: Include <string.h> unconditionally.
82575         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
82576         * lib/unsetenv.c: Likewise.
82577         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
82578         * lib/yesno.c: Include <stdlib.h> unconditionally.
82579         (rpmatch): Add prototype.
82580
82581 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82582
82583         More patches to assume C89 or better.
82584         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
82585         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
82586         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
82587         or for string.h.
82588         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
82589         stdlib.h.
82590         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
82591         C headers.
82592         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
82593         string.h.
82594         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
82595         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
82596         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
82597         or for string.h.
82598         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
82599         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
82600         C headers.
82601         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
82602         memcpy.
82603         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
82604         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
82605         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
82606         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
82607         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
82608         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
82609         string.h, free.
82610         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
82611         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
82612         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
82613         C headers, or for string.h.
82614         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
82615         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
82616         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
82617         headers, memory.h, stdlib.h, string.h, strings.h.
82618         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
82619         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
82620         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
82621         strchr.
82622         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
82623         headers, memory.h, string.h.
82624         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
82625         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
82626         free.
82627         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
82628         headers.
82629         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
82630         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
82631         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
82632         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
82633         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
82634
82635 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82636
82637         More K&R removal.
82638
82639         * lib/acosl.c (main): Use a prototype.
82640         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
82641         tanl.c: Likewise.
82642
82643         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
82644
82645         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
82646         (getopt, etopt_long, getopt_long_only, _getopt_internal)
82647         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
82648         with a prototype.
82649         * lib/getopt.c (const): Remove macro.
82650         Include <string.h> unconditionally.
82651         (my_index): Remove; all uses changed to strchr.
82652         (strlen): Remove decl.
82653         (exchange): Remove forward decl; no longer needed.
82654         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
82655         Define with prototype.
82656         * lib/getopt1.c (const): Remove macro.
82657         (getopt_long, getopt_long_only, main): Define with prototype.
82658
82659         * lib/getugroups.c: Include <string.h> unconditionally.
82660
82661         * lib/getusershell.c: Include <stdlib.h> unconditionally.
82662         (getusershell, setusershell, endusershell, readname, main):
82663         Define with prototypes.
82664
82665         * lib/group-member.c: Include group-member.h first.
82666         Include <stdlib.h> unconditionally.
82667
82668         * lib/hard-locale.c: Include hard-locale.h first.
82669         Include <stdlib.h>, <string.h> unconditionally.
82670
82671         * lib/hash.c (free, malloc): Remove decls.
82672         Include <stdlib.h> unconditionally.
82673
82674         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
82675         (getenv): Do not declare.
82676
82677         * lib/idcache.c: Include <string.h> unconditionally.
82678
82679         * lib/long-options.c: Include long-options.h first, to test interface.
82680         Include <stdlib.h> unconditionally.
82681
82682         * lib/makepath.c: Include makepath.h first, to test interface.
82683         Include <stdlib.h> and <string.h> unconditionally.
82684
82685         * lib/linebuffer.c: Include <stdlib.h>.
82686         (free): Remove decl.
82687
82688         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
82689         stddef.h. rpl_malloc returns void *, not char *.
82690         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
82691         prototype.
82692
82693         * lib/md5.h: Include <limits.h> unconditionally.
82694         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
82695         (__P): Remove; all uses removed.
82696         * lib/md5.c: Include "md5.h" first.
82697         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
82698         md5_buffer, md5_process_bytes, md5_process_block):
82699         Define with prototypes.
82700         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
82701         * lib/sha.c: Include "sha.h" first.
82702         Include <stdlib.h>, <string.h> unconditionally.
82703
82704         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
82705         * lib/memcmp.c (__ptr_t): Likewise.
82706         * lib/memrchr.c (__ptr_t): Likewise.
82707         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
82708         Include <string.h> unconditionally.
82709         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
82710         * lib/memchr.c: Include <stdlib.h> unconditionally.
82711         * lib/memchr.c (LONG_MAX): Remove.
82712         * lib/memrchr.c (LONG_MAX): Likewise.
82713         * lib/memchr.c (__memchr): Define via a prototype.
82714         * lib/memrchr.c (__memrchr): Likewise.
82715         * lib/memcmp.c (__P): Remove, and remove all uses.
82716         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
82717         Remove forward decls; no longer needed.
82718         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
82719         Use types required by C89 in prototype.
82720
82721         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
82722         * lib/savedir.c: Likewise.
82723         * lib/mkdir.c (free): Remove decl.
82724         * lib/rmdir.c (rmdir): Define with a prototype.
82725         * lib/savedir.c: Include savedir.h first, to test interface.
82726
82727         * lib/mktime.c (STDC_HEADERS): Remove.
82728         Include <stdlib.h>, <string.h> unconditionally.
82729
82730         * lib/modechange.c: Include <stdlib.h> unconditionally.
82731         (malloc): Remove decl.
82732
82733         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
82734         (free): Remove decl.
82735
82736         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
82737         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
82738         (This type really should be intptr_t, but that's a C99ism.)
82739         (_obstack_memcpy): Remove: all uses changed to memcpy.
82740         Include <string.h> unconditionally.
82741         (struct obstack): Assume __STDC__ for types of members
82742         chunkfun, freefun, extra_arg.
82743         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
82744         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
82745         obstack_begin, obstack_specify_allocation,
82746         obstack_specify_allocation_with_arg, obstack_chunkfun,
82747         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
82748         Remove unprototyped decls and the macros that use them.
82749         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
82750         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
82751         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
82752         (defined __STDC__ && __STDC__)]:
82753         Remove nonprototyped code.
82754         Include <stdlib.h> unconditionally.
82755         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
82756         _obstack_allocated_p, _obstack_free, obstack_free,
82757         _obstack_memory_used, print_and_abort):
82758         Define using prototypes.
82759         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
82760         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
82761         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
82762         obstack_next_free, obstack_object_size, obstack_room) [0]:
82763         Remove unused, unprototyped code.
82764
82765         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
82766
82767         * lib/physmem.c (physmem_total, physmem_available, main): Define
82768         with prototypes.
82769
82770         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
82771         (main): Define with a prototype.
82772
82773         * lib/posixver.c (getenv): Remove decl.
82774
82775         * lib/putenv.c (malloc): Returns void *, not char *.
82776         Include <string.h> unconditionally.
82777         (strchr, memcpy, NULL): Do not define.
82778
82779         * lib/readtokens.c: Include readtokens.h first, to test interface.
82780         Include <stdlib.h>, <string.h> unconditionally.
82781         (init_tokenbuffer): Define with a prototype.
82782
82783         * lib/regex.c (PARAMS): Remove.  All uses removed.
82784         All uses of _RE_ARGS removed, too.
82785         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
82786         unconditionally.
82787         (bzero): Assume memset exists.
82788         (memcmp, memcpy, NULL): Remove.
82789         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
82790         char, or assignments to local vars of type signed char.
82791         (init_syntax_once, PREFIX(extract_number_and_incr),
82792         PREFIX(print_partial_compiled_pattern),
82793         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
82794         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
82795         PREFIX(regex_grow_registers), PREFIX(regex_compile),
82796         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
82797         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
82798         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
82799         wcs_compile_range, byte_compile_range, truncate_wchar,
82800         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
82801         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
82802         count_mbs_length, wcs_re_match_2_internal,
82803         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
82804         PREFIX(alt_match_null_string_p),
82805         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
82806         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
82807         regfree, PREFIX(extract_number)): Define with prototype.  Remove
82808         now-unnecessary declaration, if any.
82809         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
82810         regcomp, regexec):
82811         Remove now-unnecessary casts among pointer types.
82812         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
82813
82814         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
82815         (free): Remove decl.
82816
82817         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
82818
82819         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
82820         (free): Remove decl.
82821
82822         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
82823         * lib/xgetcwd.c: Likewise.
82824
82825         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
82826         (free): Remove decl.
82827
82828         * lib/strchrnul.c (strchrnul): Define with a prototype.
82829         Fix bug: c_in was not converted to char before searching.
82830
82831         The following changes are not K&R related:
82832
82833         * lib/group-member.h: Include <sys/types.h>, so that this file is
82834         self-contained.
82835         * lib/makepath.h: Likewise.
82836
82837         * lib/getusershell.c (readname, default_index, line_size, readname):
82838         Use size_t, not int, for sizes.
82839         (readname): If the size overflows, report an error instead of
82840         looping forever.
82841
82842 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82843
82844         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
82845         libc.
82846
82847 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82848
82849         * README: New section: portability guidelines.
82850
82851 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82852
82853         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
82854         C89 spec.
82855
82856 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82857
82858         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
82859
82860 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82861
82862         Assume C89 or better; remove K&R cruft.
82863         A few of these changes were first proposed by Derek Robert Price
82864         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
82865
82866         * lib/addext.c: Include <string.h> unconditionally.
82867         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
82868         Don't declare getenv or malloc.
82869
82870         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
82871         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
82872         (NULL): Remove.
82873         (find_stack_direction, alloca): Use prototypes.
82874
82875         * lib/atexit.c (atexit): Define using a prototype.
82876
82877         * lib/basename.c, dirname.c, stripslash.c:
82878         Include <string.h> unconditionally.
82879
82880         * lib/bcopy.c: Include <stddef.h>.
82881         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
82882
82883         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
82884
82885         * lib/error.h (error, error_at_line, error_print_progname)
82886         [! (defined (__STDC__) && __STDC__)]: Remove decls.
82887         * lib/error.c: Include error.h first, to check interface.
82888         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82889         (VA_START): Remove; all uses changeed to va_start.
82890         (exit, strerror): Remove decls.
82891         (error_print_progname): Prototype uncondionally.
82892         Don't include <errno.h>; no longer needed.
82893         (private_strerror): Remove.
82894         (error_tail): Always define.
82895         (error, error_at_line): Assume C89 or better; always use prototypes.
82896         * lib/fatal.c: Include "fatal.h" first, to test interface.
82897         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82898         (VA_START): Remove; all uses changed to va_start.
82899         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
82900         this case.
82901         (exit): Remove decl.
82902         (fatal): Prototype unconditionally.  Assume va_start works.
82903         Abort at end, to pacify gcc.
82904
82905         * lib/euidaccess.c (main): Define with a prototype.
82906
82907         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
82908
82909         * lib/exitfail.c: Include <stdlib.h> unconditionally.
82910
82911         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
82912         prototypes.
82913         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
82914         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
82915         (getenv): Remove decl.
82916         (fnmatch): Define using a prototype.
82917         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
82918         (FCT): Define using a prototype.
82919
82920         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
82921
82922         * lib/gethostname.c: Include <stddef.h>.
82923         (gethostname): Define with prototype.  Length is size_t, not int.
82924
82925 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82926
82927         Assume C89 or better; remove K&R cruft.
82928         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
82929         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
82930         string.h, getenv, malloc.
82931         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
82932         headers.
82933         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
82934         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
82935         do not check for strerror.
82936         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
82937         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
82938         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
82939         do not check for doprnt or vprintf.
82940         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
82941         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
82942
82943 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82944
82945         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
82946         getversion.c should have been removed then, but was accidentally
82947         preserved.
82948
82949         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
82950         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
82951
82952 2003-09-08  Karl Berry  <karl@gnu.org>
82953
82954         * config/config.sub, config.guess, srclistvars.sh: update from savannah
82955                 config, forget about prep.
82956
82957         * config/depcomp, missing: update from automake.
82958
82959 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82960
82961         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
82962         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82963
82964 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82965
82966         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
82967         copy_tm_result.  Bug reported by Simon Josefsson in
82968         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82969
82970 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82971
82972         * m4/time_r.m4: New file.
82973         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
82974         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
82975         is. Check for timegm declaration.
82976         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
82977         Do not check for gmtime_r.
82978         Replace mktime if __mktime_internal does not exist and if mktime
82979         hasn't been replaced already.
82980
82981 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82982
82983         * lib/time_r.c, lib/time_r.h: New files.
82984
82985         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
82986         __localtime_r.
82987         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
82988         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
82989
82990         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
82991         __gmtime_r.
82992         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
82993         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
82994         Include <time_r.h>.
82995
82996         * lib/timegm.c: Switch to glibc implementation, with the following
82997         changes:
82998         [defined HAVE_CONFIG_H]: Include <config.h>.
82999         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
83000         (__mktime_internal) [!defined _LIBC]: New decl.
83001         (__gmtime_r) [!defined _LIBC]: New macro and function.
83002         (timegm): Use a prototype, since gnulib assumes C89.
83003         Do not bother declaring tmp to be const, as it's not really usefu.
83004         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
83005         (timegm): Declare only if HAVE_DECL_TIMEGM.
83006
83007 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83008
83009         * MODULES.html.sh (func_all_modules): Add time_r.
83010         * modules/time_r: New file.
83011         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
83012         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
83013
83014 2003-09-03  Paul Eggert  <eggert@twinsun.com>
83015
83016         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
83017         Bug reported by Lute Kamstra in
83018         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
83019
83020         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
83021         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
83022         course with correspondingly smaller numbers for tomorrow and
83023         yesterday.  From Tadayoshi Funaba.  Originally installed into
83024         sh-utils on 1999-08-07, but the patch got lost (I guess during the
83025         coreutils merge?).
83026
83027 2003-08-31  Simon Josefsson  <jas@extundo.com>
83028
83029         * modules/timegm: New file.
83030         * MODULES.html.sh (func_all_modules): Add timegm.
83031
83032 2003-08-31  Simon Josefsson  <jas@extundo.com>
83033
83034         * m4/timegm.m4: New file.
83035
83036 2003-08-31  Simon Josefsson  <jas@extundo.com>
83037
83038         * lib/timegm.h: New file.
83039         * lib/timegm.c: New file.  Based on
83040         wget-1.8.2/src/http.c:mktime_from_utc.
83041
83042 2003-08-31  Karl Berry  <karl@gnu.org>
83043
83044         * lib/argp.h: update from libc.
83045
83046 2003-08-28  Bruno Haible  <bruno@clisp.org>
83047
83048         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
83049         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
83050         followed by '#define fnmatch fnmatch_posix' gives an error.
83051
83052 2003-08-28  Bruno Haible  <bruno@clisp.org>
83053
83054         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
83055         warning on QNX, which defines O_BINARY to 000000.
83056
83057 2003-08-27  Jim Meyering  <jim@meyering.net>
83058
83059         * m4/mkstemp.m4: Require that the system mkstemp be able to create
83060         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
83061         would fail after 32.  Reported by Danny Levinson.  Details here:
83062         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
83063
83064 2003-08-24  Bruno Haible  <bruno@clisp.org>
83065
83066         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
83067         MSVC7 <stdio.h> is included later.
83068
83069 2003-08-22  Simon Josefsson  <jas@extundo.com>
83070
83071         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
83072
83073 2003-08-20  Karl Berry  <karl@gnu.org>
83074
83075         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
83076
83077 2003-08-20  Bruno Haible  <bruno@clisp.org>
83078
83079         * modules/progname: New file.
83080         * MODULES.html.sh (func_all_modules): Add progname.
83081
83082 2003-08-20  Bruno Haible  <bruno@clisp.org>
83083
83084         * lib/progname.h: New file, from GNU gettext.
83085         * lib/progname.c: New file, from GNU gettext.
83086         * lib/progreloc.c: New file, from GNU gettext.
83087
83088 2003-08-19  Jim Meyering  <jim@meyering.net>
83089
83090         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
83091         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
83092
83093 2003-08-19  Bruno Haible  <bruno@clisp.org>
83094
83095         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
83096         more.
83097
83098 2003-08-19  Bruno Haible  <bruno@clisp.org>
83099
83100         * lib/xstrdup.c: Assume <string.h> exists.
83101
83102 2003-08-18  Paul Eggert  <eggert@twinsun.com>
83103
83104         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
83105         in makefile rules.
83106
83107 2003-08-18  Jim Meyering  <jim@meyering.net>
83108
83109         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
83110         * m4/lib-ld.m4: Likewise.
83111
83112 2003-08-18  Jim Meyering  <jim@meyering.net>
83113
83114         * lib/setenv.h: Indent nested cpp directive.
83115         * lib/vasnprintf.c: Remove trailing blanks.
83116
83117 2003-08-17  Simon Josefsson  <jas@extundo.com>
83118
83119         * modules/xstrndup: New file.
83120         * MODULES.html.sh (func_all_modules): Add xstrndup.
83121
83122 2003-08-17  Simon Josefsson  <jas@extundo.com>
83123
83124         * modules/argp: Fix autoconf macro name. Add more dependencies.
83125
83126 2003-08-17  Simon Josefsson  <jas@extundo.com>
83127
83128         * m4/xstrndup.m4: New file.
83129
83130 2003-08-17  Simon Josefsson  <jas@extundo.com>
83131
83132         * m4/argp.m4: New file.
83133
83134 2003-08-17  Simon Josefsson  <jas@extundo.com>
83135             Bruno Haible  <bruno@clisp.org>
83136
83137         * lib/xstrndup.h: New file.
83138         * lib/xstrndup.c: New file.
83139
83140 2003-08-17  Bruno Haible  <bruno@clisp.org>
83141
83142         * modules/strndup (Files, Include): Add lib/strndup.h.
83143
83144 2003-08-17  Bruno Haible  <bruno@clisp.org>
83145
83146         * modules/euidaccess (Files): Add lib/euidaccess.h.
83147
83148 2003-08-17  Bruno Haible  <bruno@clisp.org>
83149
83150         * lib/strndup.h: New file.
83151
83152 2003-08-17  Bruno Haible  <bruno@clisp.org>
83153
83154         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
83155         like AC_GNU_SOURCE.
83156         * modules/extensions (configure.ac): Comment out the invocation of
83157         gl_USE_SYSTEM_EXTENSIONS.
83158
83159 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83160
83161         Merges from coreutils, etc.
83162         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
83163         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
83164         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
83165         fixing a typo.
83166         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
83167         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
83168
83169 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83170
83171         Document merge from coreutils.
83172         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
83173         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
83174         * modules/utime: Add m4/utimes-null.m4.
83175
83176 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83177
83178         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
83179         space, undoing this 2003-08-12 change:
83180         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
83181
83182 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83183
83184         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
83185         strtoul.c from libc, undoing this 2003-08-12 change:
83186         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
83187
83188 2003-08-16  Jim Meyering  <jim@meyering.net>
83189
83190         Merges from coreutils.
83191         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
83192         prefix.  Adjust cache variables similarly.  Create 500 rather than
83193         just 300 files, to exercise bug on Darwin6.5, too.
83194         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
83195         $missing_dir.
83196         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
83197         AM_SYS_POSIX_TERMIOS.
83198         Reported by mkc@mathdogs.com.
83199         Also change use of $am_cv_sys_posix_termios
83200         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
83201         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
83202         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
83203         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
83204         in /proc/mounts until it finds one with matching device number.  This
83205         is unnecessary when the FILE argument *is* a mount point.  No stat call
83206         is necessary in that case.  So, disable the statvfs-testing code on
83207         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
83208         as RedHat bug# 84846.
83209         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
83210         to 1MB, so as not to render systems with no stack size limit (e.g.,
83211         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
83212         Include <unistd.h>.  On some systems,
83213         it is required for the definition of _SC_PAGESIZE.
83214
83215 2003-08-16  Jim Meyering  <jim@meyering.net>
83216
83217         Merge from coreutils.
83218         * lib/xstrtoimax.c: #else #if -> #elif.
83219         * lib/xstrtoumax.c: Likewise.
83220
83221 2003-08-16  Jim Meyering  <jim@meyering.net>
83222
83223         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
83224         * m4/utimes.m4: Removed.
83225         * m4/utimes-null.m4: Renamed from utimes.m4.
83226
83227         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
83228         to 1MB, so as not to render systems with no stack size limit (e.g.,
83229         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
83230         Include <unistd.h>.  On some systems,
83231         it is required for the definition of _SC_PAGESIZE.
83232
83233 2003-08-16  Jim Meyering  <jim@meyering.net>
83234         and Paul Eggert  <eggert@cs.ucla.edu>
83235
83236         Merges from coreutils, etc.
83237
83238         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
83239         using the latest version from cvs.  This avoids problems with #line
83240         directives using a vendor (Sun) compiler.
83241         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
83242         Don't set GETGROUPS_LIB here; now it's
83243         done via getgroups.m4's wrapper function.
83244         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
83245         rather than just in sh-util/configure.in, so that the
83246         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
83247         same.
83248         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
83249         AC_FUNC_GETLOADAVG where to find getloadavg.c.
83250         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
83251         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
83252         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
83253         Remove code that is now done by the newly-required macros.
83254         Append $(EXEEXT) to DF_PROG.
83255         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
83256         Do not invoke or require the following here,
83257         since prereq.m4 or some gnulib .m4 now does this for us:
83258         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
83259         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
83260         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
83261         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
83262         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
83263         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
83264         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
83265         AC_FUNC_OBSTACK.
83266         Do not replace the following functions, as this is now the job
83267         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
83268         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
83269         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
83270         atexit getpass, strdup, getpagesize.
83271         Replace 'raise'.
83272         Do not check for the following functions, as this is now the job
83273         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
83274         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
83275         setregid.
83276         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
83277         Check for sys/sysctl.h.
83278         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
83279         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
83280         of checking for ssize_t ourselves.
83281
83282         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
83283         Require every macro that gnulib/modules/* suggests for us.
83284         (jm_PREREQ_ADDEXT): New macro.
83285         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
83286         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
83287
83288         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
83289         (gl_PHYSMEM): Use it.
83290         Also check for `table' function.
83291         Check for new headers and functions.
83292         Add check for sys/sysmp.h.
83293         With suggestions from Kaveh Ghazi.
83294         Ignore headers that are present but cannot be compiled.  This
83295         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
83296         C 5.4.
83297
83298 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83299
83300         Document merge from coreutils.
83301         * modules/userspec: Depend on posixver.
83302         * modules/strftime: Depend on tzset.
83303
83304 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83305
83306         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
83307         rather than tab, after '#' in shell-script copyright notices.
83308         Suggested by Bruno Haible.
83309
83310 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83311
83312         * config/srclist-update: Use three spaces, rather than tab, after '#'
83313         in shell-script copyright notices.  Suggested by Bruno Haible.
83314         Remove unnecessary parenthesization in regular expression.
83315
83316 2003-08-15  Jim Meyering  <jim@meyering.net>
83317
83318         Merge from coreutils.
83319         * lib/xgethostname.c: Include <stdlib.h>.
83320         (xghostname): Don't exit for anything other than memory-related
83321         failure; just return NULL.
83322         * lib/userspec.c: Include "posixver.h".
83323         (parse_user_spec): Accept `.' as a separator only
83324         in pre-POSIX-200112 mode.
83325         * lib/strtoimax.c: Use #elif rather than #else #if.
83326         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
83327         Remove function, now that we can rely on a working tzset function.
83328         [!_LIBC]: Ensure that the required autoconf test has been run.
83329         [!defined _NL_CURRENT && HAVE_STRFTIME]:
83330         Use underlying_strftime for %r.
83331         * lib/sha.c: Merge in some clean-up and optimization changes from
83332         glibc.
83333         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
83334         Ensure that it is a multiple of 64.
83335         Rearrange loop exit tests so as to avoid performing an
83336         additional fread after encountering an error or EOF.
83337         * lib/realloc.c: Update copyright date.
83338
83339 2003-08-15  Jim Meyering  <jim@meyering.net>
83340         and Paul Eggert  <eggert@twinsun.com>
83341
83342         Merge from coreutils.
83343         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
83344         member but strut utmpx does not.  Needed for AIX 4.3.3.
83345         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
83346
83347 2003-08-15  Jim Meyering  <jim@meyering.net>
83348         and Paul Eggert  <eggert@cs.ucla.edu>
83349
83350         Merges from coreutils, etc.
83351         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
83352         Require gl_FUNC_TZSET_CLOBBER.
83353         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
83354         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
83355         members.
83356
83357 2003-08-14  Paul Eggert  <eggert@twinsun.com>
83358
83359         Help the merge from coreutils.
83360         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
83361         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
83362         * m4/tzset.m4: Use it too.
83363
83364 2003-08-14  Paul Eggert  <eggert@twinsun.com>
83365
83366         * modules/tzset: New file.
83367
83368 2003-08-14  Jim Meyering  <jim@meyering.net>
83369
83370         Merges from coreutils.
83371         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
83372         variable names, rather than @FNMATCH_H@.
83373         * modules/alloca: Likewise for $(ALLOCA_H).
83374
83375         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
83376         the three copies of the literal target, `fnmatch.h'.
83377         * modules/alloca (alloca.h): Likewise.
83378
83379 2003-08-14  Jim Meyering  <jim@meyering.net>
83380
83381         Merge from coreutils.
83382         * m4/tzset.m4: New file.
83383         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
83384         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
83385         otherwise, AIX 5.1 systems would end up using the latter.
83386         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
83387         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
83388         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
83389         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
83390
83391 2003-08-14  Jim Meyering  <jim@meyering.net>
83392
83393         Merge from coreutils.
83394         * lib/obstack.h: Whitespace changes.
83395         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
83396         and xcalloc return values.
83397         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
83398         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
83399         hang on OSF/1 5.1 for DIR on both local and remote file systems.
83400         Reported by (and fix confirmed by) Nelson H. F. Beebe.
83401         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
83402         error from mntctl.
83403         Use mntctl's return value to drive the entry-processing loop, since
83404         we can't rely on the value of the vmt_length member in the last
83405         entry.  On some systems doing so could result in exhausting
83406         virtual memory.  Based in part on a patch from Mike Jetzer.
83407
83408 2003-08-14  Jim Meyering  <jim@meyering.net>
83409         and Paul Eggert  <eggert@twinsun.com>
83410
83411         Merges from coreutils, plus other fixes.
83412         * lib/physmem.c: Merge in portability changes from gcc/libiberty
83413         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
83414         for credits and details.  Thanks to Kaveh Ghazi for helping
83415         to keep these files in sync.
83416         (ARRAY_SIZE): Define it.
83417         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
83418         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
83419         (memcasecmp): Don't assume size_t fits in unsigned int.
83420         Remove casts and duplicate code.
83421         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
83422         (memcpy): Remove definition.
83423         Merge in some clean-up and optimization changes from glibc.
83424         [BLOCKSIZE]: Move definition to top of file.
83425         Ensure that it is a multiple of 64.
83426         Rearrange loop exit tests so as to avoid performing an
83427         additional fread after encountering an error or EOF.
83428         * lib/md5.h (md5_uintptr): Define.
83429         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
83430         return to the initial working directory.  Preserve errno
83431         for caller.
83432         * lib/idcache.c: Include "xalloc.h".
83433         (xmalloc, xrealloc): Remove decls.
83434         (getuser): Remove casts no longer required in C89.
83435         * lib/human.c: Include stdio.h, for sprintf.
83436         * lib/group-member.c: Include "xalloc.h".
83437         (xmalloc, xrealloc): Remove decls.
83438         (get_group_info): Remove casts no longer required in C89.
83439         * lib/getusershell.c (readname): Remove casts no longer required in
83440         C89.
83441         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
83442         * lib/getline.c: Whitespace fix, from coreutils.
83443
83444 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83445
83446         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
83447         Check for isascii.
83448
83449         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
83450         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
83451         Undo previous (whitespace-only) change.
83452
83453 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83454
83455         * lib/exclude.c: Include <ctype.h>
83456         (IN_CTYPE_DOMAIN): New macro.
83457         (is_space): New fn.
83458         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
83459         and empty lines.
83460
83461         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
83462         Undo previous (whitespace-only) change.
83463
83464 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83465
83466         * config/srclist-update: Change update back to the old behavior,
83467         leaving whitespace alone.  Use one 'sed' command rather than a
83468         pipeline.
83469         (fixlicense): Now a variable, not a function.
83470         (remove_trailing_blanks): Remove.
83471         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
83472         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
83473         Undo previous (whitespace-only) change.
83474
83475 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83476
83477         Merge from coreutils.
83478         * modules/euidaccess: Add lib_SOURCES, include for new
83479         file euidaccess.h
83480
83481 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83482
83483         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
83484         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
83485         Normalize leading white space and remove trailing white space.
83486
83487         Merge from coreutils
83488         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
83489
83490         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
83491         0.12.1.  These files are now being upgraded automatically by
83492         ../config/srclist-update.
83493
83494 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83495
83496         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
83497         Normalize leading white space and remove trailing white space.
83498         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
83499         notice, as per ../config/srclist-update.
83500
83501         Merge from coreutils.
83502         * lib/euidaccess.h: New file.
83503         * lib/euidaccess.c: Include it.
83504         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
83505         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
83506         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
83507
83508 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83509
83510         * config/srclist-update: Add copyright notice.
83511         (remove_id_lines, remove_trailing_blanks): New constants.
83512         (fixfile): Use them to normalize spacing a bit in copied files.
83513         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
83514         Normalize leading white space and remove trailing white space.
83515
83516         * config/texinfo.tex: Sync with texinfo.
83517
83518         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
83519         strtoul.c from libc, to merge coreutils whitespace changes.
83520
83521         * config/srclist.txt: Get the following m4 files from gettext:
83522         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
83523         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
83524         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
83525         wint_t.m4.
83526
83527 2003-08-12  Karl Berry  <karl@gnu.org>
83528
83529         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
83530         been made.
83531
83532 2003-08-11  Paul Eggert  <eggert@twinsun.com>
83533
83534         * modules/gnu-source, m4/gnu-source.m4:
83535         Remove; we're assuming Autoconf 2.54 or later now.
83536         Suggested by Bruno Haible.
83537         * MODULES.html.sh (func_all_modules): Remove gnu-source.
83538
83539 2003-08-11  Bruno Haible  <bruno@clisp.org>
83540
83541         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
83542
83543 2003-08-11  Bruno Haible  <bruno@clisp.org>
83544
83545         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
83546         (vasnprintf): Use it instead of wcslen.
83547
83548 2003-08-11  Bruno Haible  <bruno@clisp.org>
83549
83550         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
83551         value to ensure that _Bool promotes to int. Use #define for _Bool when
83552         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
83553
83554 2003-08-10  Karl Berry  <karl@gnu.org>
83555
83556         * lib/regex.h: update from libc (whitespace fix).
83557
83558 2003-08-09  Paul Eggert  <eggert@twinsun.com>
83559
83560         Merge some files from coreutils.  These changes were
83561         originally made by Jim Meyering.
83562         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
83563         many older Unixes require this.
83564         * lib/alloca.c (alloca): Remove cast to argument of free;
83565         no longer needed in C89.
83566         * lib/alloca_.h, regex.h: Fix white space to match
83567         what GNU indent does.
83568
83569 2003-08-09  Paul Eggert  <eggert@twinsun.com>
83570
83571         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
83572         apparently Emacs's Unicode mode got confused before my 2003-08-05
83573         checkin.
83574
83575 2003-08-08  Paul Eggert  <eggert@twinsun.com>
83576
83577         * m4/extensions.m4: New file.
83578         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
83579         Require gl_USE_SYSTEM_EXTENSIONS.
83580         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
83581         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
83582
83583 2003-08-08  Paul Eggert  <eggert@twinsun.com>
83584
83585         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
83586         * modules/extensions, modules/gnu-source: New files.
83587         * modules/timespec, modules/unlocked-io: Depend on extensions.
83588
83589 2003-08-07  Paul Eggert  <eggert@twinsun.com>
83590
83591         * modules/restrict: New file.
83592         * MODULES.html.sh (func_all_modules): Add restrict.
83593         * modules/regex: Depend on restrict.
83594
83595 2003-08-07  Paul Eggert  <eggert@twinsun.com>
83596
83597         * m4/restrict.m4: New file.
83598         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
83599
83600 2003-08-07  Bruno Haible  <bruno@clisp.org>
83601
83602         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
83603         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
83604
83605 2003-08-07  Bruno Haible  <bruno@clisp.org>
83606
83607         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
83608         makes the module 'getndelim2' compatible with the module 'getline'.
83609
83610 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83611
83612         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
83613         byte with "\201" to avoid glitches when editing that source file
83614         with multi-gnome-terminal.
83615
83616 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83617
83618         * lib/bumpalloc.h: Remove.
83619
83620 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83621
83622         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
83623         * modules/bumpalloc: Remove.
83624
83625 2003-08-04  Paul Eggert  <eggert@twinsun.com>
83626
83627         * lib/getloadavg.c: Change copyright notice and spacing to conform to
83628         GNU coding style.
83629
83630         Merge from coreutils.
83631         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
83632         1. From glibc.
83633         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
83634         from Karl Berry, implemented by Jim Meyering.
83635         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
83636         from Dmitry V. Levin.
83637         Remove anachronistic cast of xrealloc.
83638         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
83639         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
83640         type. Otherwise, it wouldn't compile with at least /bin/cc on
83641         ymp-cray-unicos9.0.2.X.
83642         Combine two mostly-identical uses of alloca into one.
83643         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
83644
83645 2003-08-04  Dave Love  <d.love@dl.ac.uk>
83646
83647         [From Emacs.]
83648
83649         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
83650         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
83651         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
83652         obsolete NLIST_NAME_UNION.
83653         [__GNU__]: Undef BSD and FSCALE.
83654         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
83655
83656 2003-08-03  Paul Eggert  <eggert@twinsun.com>
83657
83658         * lib/stdbool_.h (_Bool): Make it signed char, instead of
83659         an enum type, so that it's guaranteed to promote to int.  See:
83660         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
83661
83662 2003-08-03  Karl Berry  <karl@gnu.org>
83663
83664         * config/depcomp: update from automake.
83665
83666 2003-07-31  Paul Eggert  <eggert@twinsun.com>
83667
83668         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
83669         (strerror): Don't assume that a printable int fits in 14 bytes.
83670
83671 2003-07-31  Bruno Haible  <bruno@clisp.org>
83672
83673         * modules/getpass-gnu: New file.
83674         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
83675
83676 2003-07-31  Bruno Haible  <bruno@clisp.org>
83677
83678         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
83679
83680 2003-07-24  Karl Berry  <karl@gnu.org>
83681
83682         * config/missing: update from automake.
83683
83684 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
83685             Bruno Haible  <bruno@clisp.org>
83686
83687         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
83688         * lib/getline.c (getline, getdelim): Likewise.
83689         Remove _GNU_SOURCE define; now it's defined in config.h through
83690         m4/getline.m4.
83691
83692 2003-07-23  Karl Berry  <karl@gnu.org>
83693
83694         * config/config.sub: update from prep.
83695
83696 2003-07-22  Paul Eggert  <eggert@twinsun.com>
83697
83698         * modules/xalloc (Depends-on): Add exitfail.
83699         * modules/xmemcoll: Likewise.
83700
83701 2003-07-22  Paul Eggert  <eggert@twinsun.com>
83702
83703         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
83704         over-parenthesization in macros.
83705
83706         Sync with coreutils.
83707
83708         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
83709         required by C99.
83710
83711         Use `exit_failure' for xalloc and xmemcoll instead of their own
83712         private exit-failure variables.
83713         * lib/xalloc.h (xalloc_exit_failure): Remove.
83714         * lib/xmalloc.c: Likewise.  Include exitfail.h.
83715         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
83716         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
83717         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
83718         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
83719
83720 2003-07-20  Jim Meyering  <jim@meyering.net>
83721
83722         * modules/closeout (Depends-on): Add exitfail.
83723         Suggestion from Bruno Haible.
83724
83725 2003-07-19  Karl Berry  <karl@gnu.org>
83726
83727         * config/config.sub: update from prep.
83728
83729 2003-07-18  Paul Eggert  <eggert@twinsun.com>
83730
83731         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
83732         Remove.
83733         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
83734         to test that it can stand by itself.  Include "exitfail.h".
83735         Clients should set exit_failure instead.
83736         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
83737
83738 2003-07-18  Bruno Haible  <bruno@clisp.org>
83739
83740         * modules/getndelim2: New file.
83741         * modules/getline: Share files with module getndelim2.
83742         * modules/getnline: Depend on getndelim2 instead of sharing files with
83743         it. Add getnline.c to lib_SOURCES.
83744         * MODULES.html.sh (func_all_modules): Add getndelim2.
83745
83746 2003-07-18  Bruno Haible  <bruno@clisp.org>
83747
83748         * m4/getndelim2.m4: New file.
83749         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
83750         invoke gl_PREREQ_GETNDELIM2.
83751         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
83752         gl_PREREQ_GETNDELIM2.
83753         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
83754         gl_GETNDELIM2.
83755
83756 2003-07-18  Bruno Haible  <bruno@clisp.org>
83757
83758         * lib/getndelim2.h: New file.
83759         * lib/getndelim2.c: Make into a module of its own. Include config.h,
83760         getndelim2.h.
83761         (getndelim2): Make non-static. Change return type to ssize_t.
83762         * lib/getline.h: Change argument names.
83763         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
83764         * lib/getnline.c: Include getndelim2.h.
83765
83766 2003-07-18  Andreas Schwab  <schwab@suse.de>
83767
83768         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
83769
83770 2003-07-17  Karl Berry  <karl@gnu.org>
83771
83772         * config/config.sub: update from prep.
83773
83774 2003-07-17  Bruno Haible  <bruno@clisp.org>
83775
83776         * modules/getnline: New file.
83777         * modules/getline: Add lib/getndelim2.c to source file list.
83778         * MODULES.html.sh (func_all_modules): Add getnline.
83779
83780 2003-07-17  Bruno Haible  <bruno@clisp.org>
83781
83782         * m4/getnline.m4: New file.
83783
83784 2003-07-17  Bruno Haible  <bruno@clisp.org>
83785
83786         * m4/Makefile.am.in: Remove file.
83787         * m4/Makefile.am: Remove file.
83788         * m4/Makefile.in: Remove file.
83789
83790 2003-07-17  Bruno Haible  <bruno@clisp.org>
83791
83792         * lib/getnline.h: New file.
83793         * lib/getnline.c: New file.
83794         * lib/getndelim2.c: New file, extracted from getline.c.
83795         (getndelim2): Renamed from getdelim2, with added nmax argument.
83796         * lib/getline.c: Include getndelim2.c.
83797         (getdelim2): Moved out to getndelim2.c.
83798         (getline, getdelim): Update.
83799
83800 2003-07-17  Bruno Haible  <bruno@clisp.org>
83801
83802         * lib/Makefile.am: Remove file.
83803         * lib/Makefile.in: Remove file.
83804
83805 2003-07-17  Bruno Haible  <bruno@clisp.org>
83806
83807         * configure.in: Remove file.
83808         * Makefile.in: Remove file.
83809
83810 2003-07-17  Bruno Haible  <bruno@clisp.org>
83811
83812         * MODULES.html.sh: Put the </BODY> right before </HTML>.
83813
83814 2003-07-16  Karl Berry  <karl@gnu.org>
83815
83816         * config/srclist-update: was running fixlicense twice, which caused
83817                 texinfo.tex to be nullified for some reason.  Simplify,
83818                 $gplsrc is no longer needed as far as I can see?
83819
83820 2003-07-16  Jim Meyering  <jim@meyering.net>
83821
83822         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
83823
83824 2003-07-15  Paul Eggert  <eggert@twinsun.com>
83825
83826         * config/srclist.txt: Get the following files from gettext-runtime/intl
83827         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
83828         ref-del.sin.  From Bruno Haible.
83829         * config/srclist-update (fixfile): Change grep pattern again, since the
83830         previous fix didn't work (there was another trailing $).  Use
83831         '[$]' to escape the $s.
83832
83833 2003-07-15  Karl Berry  <karl@gnu.org>
83834
83835         * lib/vasnprintf.c: update from gettext.
83836
83837 2003-07-15  Karl Berry  <karl@gnu.org>
83838
83839         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
83840         gets expanded when surrounded by '$'.
83841
83842 2003-07-15  Jim Meyering  <jim@meyering.net>
83843
83844         * modules/save-cwd: Don't depend on error.  From Derek Price.
83845
83846 2003-07-15  Jim Meyering  <jim@meyering.net>
83847
83848         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
83849
83850 2003-07-14  Simon Josefsson  <jas@extundo.com>
83851
83852         * modules/mempcpy: New file.
83853         * MODULES.html.sh (func_all_modules): Add mempcpy.
83854
83855 2003-07-14  Simon Josefsson  <jas@extundo.com>
83856
83857         * m4/mempcpy.m4: New file.
83858
83859 2003-07-14  Simon Josefsson  <jas@extundo.com>
83860
83861         * lib/mempcpy.h: New file.
83862         * lib/mempcpy.c: New file.
83863
83864 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83865
83866         * modules/getdate, modules/posixtm: Depend on mktime.
83867
83868 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83869
83870         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
83871         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
83872         unicodeio.c, unicodeio.h, unlocked-io.h:
83873         Switch from LGPL to GPL.
83874
83875 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83876
83877         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
83878         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
83879         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
83880         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
83881         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
83882         updated automatically by ../config/srclist-update.  This changes
83883         their license from LPGL to GPL.
83884
83885 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83886
83887         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
83888         assumed to refer to the root of the most recent stable gettext version.
83889         * config/srclistvars.sh: Add defaults for eggert.
83890         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
83891         Match "This program" as well as "The program".  This is needed
83892         for gettext.
83893
83894 2003-07-14  Jim Meyering  <jim@meyering.net>
83895
83896         Don't emit diagnostics.  Let callers do that.
83897         * lib/save-cwd.c: Don't include "error.h".
83898         (save_cwd): Don't call error.  Ensure that errno is valid
83899         when returning nonzero.
83900
83901         * lib/save-cwd.h (restore_cwd): Update prototype.
83902         * lib/save-cwd.c (restore_cwd): Remove two parameters.
83903         Simplify.  Don't call error upon failure.  Let callers do that.
83904         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
83905         when auditing is enabled.  But don't bother updating the #if.
83906
83907 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
83908
83909         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
83910         it breaks C++ compilation.
83911         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
83912
83913 2003-07-10  Simon Josefsson  <jas@extundo.com>
83914
83915         * modules/strchrnul (Makefile.am): Add strchrnul.h.
83916
83917 2003-07-10  Jim Meyering  <jim@meyering.net>
83918
83919         * m4/clock_time.m4: Remove trailing blank.
83920         * m4/intmax_t.m4: Likewise.
83921
83922 2003-07-10  Jim Meyering  <jim@meyering.net>
83923
83924         * lib/vasnprintf.c: Remove trailing blanks.
83925         Make cpp indentation consistent.
83926
83927 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83928
83929         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
83930         posixver.c, strftime.c, strnlen.c, strverscmp.c:
83931         Switch from LGPL to GPL.
83932
83933 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83934
83935         * config/srclist.txt: Sort sublists.  Add
83936         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
83937         that differ from gnulib for one reason or another; we'd like this list
83938         to be smaller but for now let's document what we have.
83939
83940 2003-07-08  Paul Eggert  <eggert@twinsun.com>
83941
83942         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
83943         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
83944         and sweeter "eval x=$x".
83945         * config/srclist.txt: Get lib/argp* from glibc.
83946
83947 2003-07-07  Paul Eggert  <eggert@twinsun.com>
83948
83949         * lib/mktime.c: Fix some boundary cases and remove need for floating
83950         point.
83951
83952         Issue a compile-time diagnostic if time_t is floating point, or if
83953         two's complement arithmetic is not in effect, or if arithmetic
83954         right shift does not propagate the sign.  These assumptions were
83955         all in the original code but they weren't checked.
83956
83957         (TIME_T_MIDPOINT, verify): New macros.
83958         (__isleap): Remove; it has integer overflow problems.
83959         (leapyear): New function, without those problems.
83960         (ydhms_tm_diff): Remove; splitting into two parts.
83961         (ydhms_diff): New function, containing the arithmetic part of
83962         the old ydhms_tm_diff function.  Issue a compile-time
83963         diagnostic if we are not using C99 integer division.
83964         Avoid casts when possible.
83965         (guess_time_tm): New function, containing the checking part of
83966         the old ydhms_tm_diff function.  Return the new value, rather than
83967         the difference between it and the old.  Accept a new argument T
83968         so that *T specifies the old value.  Check for overflow in the result.
83969
83970         (__mktime_internal): Use a time_t offset, not a long int offset.
83971         This undoes the 2003-06-04 change, which is no longer needed now
83972         that we have better overflow checking.
83973         (localtime_offset): Likewise.
83974
83975         (__mktime_internal): Avoid harmful overflow on hosts where time_t
83976         and long are 64-bit but int is only 32-bit.
83977         (ydhms_diff): Use long int to store year1 and yday1.
83978         Issue a compile-time diagnostic if long int is not wide enough.
83979
83980         (__mktime_internal): Use long int to store adjusted year and yday.
83981         Use plain C rather than preprocessor commands, if that doesn't
83982         affect efficiency.
83983         Check for overflow (and try to repair) after each probe
83984         rather than checking only at the very end.  This avoids some bugs
83985         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
83986         does not equal GMT offset at maximum time).
83987         Use integer to check for overflow rather than floating point; this
83988         is more portable to non-IEEE hosts, and is a tad faster.
83989         When we detect that we are oscillating between two values,
83990         don't check whether tm_isdst has the requested value, since
83991         we already know the answer.  When tm_isdst has the wrong value,
83992         use a different heuristic to find the right one, based on the
83993         extreme values actually observed in practice in tz2003a,
83994         rather than the (overly optimistic) "previous 3 calendar quarters".
83995
83996         (not_equal_tm, print_tm, check_result): Use "const T" rather than
83997         "T const" to accommodate glibc style.
83998         (check_result): Use less-confusing report format.  "long" -> "long int.
83999         (main): Likewise.
84000         Don't loop if the iteration overflows time_t.
84001         Allow a negative step in the iteration.
84002
84003 2003-07-06  Karl Berry  <karl@gnu.org>
84004
84005         * config/depcomp: update from automake.
84006         * config/config.sub: update from prep.
84007
84008 2003-07-03  Karl Berry  <karl@gnu.org>
84009
84010         * config/config.guess: update from prep.
84011
84012 2003-07-01  Paul Eggert  <eggert@twinsun.com>
84013
84014         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
84015         xreadlink.c now includes it unconditionally.
84016
84017 2003-07-01  Paul Eggert  <eggert@twinsun.com>
84018
84019         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
84020         having it depend on HAVE_SYS_TYPES_H.
84021
84022 2003-07-01  Bruno Haible  <bruno@clisp.org>
84023
84024         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
84025         <sys/types.h> should be sufficient.
84026         Reported by Paul Eggert.
84027
84028 2003-06-26  Karl Berry  <karl@gnu.org>
84029
84030         * config/depcomp: update from automake.
84031
84032 2003-06-26  Bruno Haible  <bruno@clisp.org>
84033
84034         * modules/human: Depend on module stdbool.
84035
84036 2003-06-25  Bruno Haible  <bruno@clisp.org>
84037
84038         * modules/readlink: New file.
84039         * modules/xreadlink: Depend on it.
84040         * MODULES.html.sh (func_all_modules): Add readlink.
84041
84042 2003-06-25  Bruno Haible  <bruno@clisp.org>
84043
84044         * m4/readlink.m4: New file.
84045
84046 2003-06-25  Bruno Haible  <bruno@clisp.org>
84047
84048         * lib/readlink.c: New file.
84049
84050 2003-06-22  Karl Berry  <karl@gnu.org>
84051
84052         * config/srclist.txt: update mkinstalldirs from automake.
84053         * config/mkinstalldirs: update.
84054
84055 2003-06-22  Bruno Haible  <bruno@clisp.org>
84056
84057         Portability to mingw32.
84058         * m4/ssize_t.m4: New file, from GNU gettext.
84059         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
84060         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
84061
84062 2003-06-22  Bruno Haible  <bruno@clisp.org>
84063
84064         * modules/safe-read: Add m4/ssize_t.m4.
84065         * modules/xreadlink: Add m4/ssize_t.m4.
84066
84067 2003-06-20  Bruno Haible  <bruno@clisp.org>
84068
84069         Assume C89, so PARAMS isn't needed.
84070         * lib/unicodeio.h (PARAMS): Remove.
84071         * lib/unicodeio.c: Don't use PARAMS.
84072
84073 2003-06-18  Karl Berry  <karl@gnu.org>
84074
84075         * config/config.{guess,sub}: update from prep.
84076
84077 2003-06-18  Jim Meyering  <jim@meyering.net>
84078
84079         Merge changes from coreutils.
84080         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
84081         Remove explicit declarations of xmalloc and realloc.
84082         Include xalloc.h.
84083         (read_utmp): Remove anachronistic cast of xmalloc.
84084
84085 2003-06-17  Paul Eggert  <eggert@twinsun.com>
84086
84087         Assume C89, so PARAMS isn't needed.
84088         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
84089         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
84090         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
84091         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
84092         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
84093         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
84094         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
84095         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
84096         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
84097         lib/xstrtod.h, lib/xstrtol.h: Likewise.
84098         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
84099         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
84100         no longer needed. Anyway, config.h should always be included before any
84101         other file.
84102
84103 2003-06-11  Simon Josefsson  <jas@extundo.com>
84104
84105         * modules/sysexits: New file.
84106         * MODULES.html.sh (func_all_modules): Add sysexits.
84107
84108 2003-06-11  Simon Josefsson  <jas@extundo.com>
84109
84110         * lib/sysexit_.h: New file.
84111
84112 2003-06-11  Derek Price  <derek@ximbiot.com>
84113
84114         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
84115         necessary.
84116
84117 2003-06-11  Bruno Haible  <bruno@clisp.org>
84118
84119         * m4/sysexits.m4: New file.
84120
84121 2003-06-10  Simon Josefsson  <jas@extundo.com>
84122
84123         * lib/argp.h: New file, from glibc.
84124         * lib/argp-ba.c: New file, from glibc.
84125         * lib/argp-eexst.c: New file, from glibc.
84126         * lib/argp-fmtstream.c: New file, from glibc.
84127         * lib/argp-fmtstream.h: New file, from glibc.
84128         * lib/argp-fs-xinl.c: New file, from glibc.
84129         * lib/argp-help.c: New file, from glibc.
84130         * lib/argp-namefrob.h: New file, from glibc.
84131         * lib/argp-parse.c: New file, from glibc.
84132         * lib/argp-pv.c: New file, from glibc.
84133         * lib/argp-pvh.c: New file, from glibc.
84134         * lib/argp-xinl.c: New file, from glibc.
84135
84136 2003-06-10  Simon Josefsson  <jas@extundo.com>
84137
84138         * modules/strchrnul: New file.
84139
84140 2003-06-10  Simon Josefsson  <jas@extundo.com>
84141
84142         * modules/argp: New file.
84143
84144 2003-06-10  Simon Josefsson  <jas@extundo.com>
84145
84146         * m4/strchrnul.m4: New file.
84147
84148 2003-06-10  Simon Josefsson  <jas@extundo.com>
84149
84150         * lib/strchrnul.h: New file.
84151         * lib/strchrnul.c: New file.
84152
84153 2003-06-10  Bruno Haible  <bruno@clisp.org>
84154
84155         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
84156
84157 2003-06-07  Karl Berry  <karl@gnu.org>
84158
84159         * config/config.{guess,sub}: update from prep.
84160
84161 2003-06-07  Jim Meyering  <jim@meyering.net>
84162
84163         * modules/strtod: Use $(...) notation, not @...@ for
84164         AC_REPLACE'd variables.
84165         * modules/localcharset: Likewise.
84166
84167 2003-06-07  Jim Meyering  <jim@meyering.net>
84168
84169         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
84170         in place of my name in the copyright comment.
84171         Remove definition and uses of __P.
84172
84173         From coreutils.
84174         * lib/stat.c: Don't declare xmalloc explicitly.
84175         Instead, include "xalloc.h".
84176         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
84177         xrealloc, and xcalloc return values.
84178         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
84179         Improve comment.
84180         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
84181
84182 2003-06-07  Bruno Haible  <bruno@clisp.org>
84183
84184         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
84185         avoid AC_CONFIG_LINKS.
84186         * modules/fnmatch (Makefile.am): Use explicit creation rule for
84187         fnmatch.h, to avoid AC_CONFIG_LINKS.
84188         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
84189
84190 2003-06-07  Bruno Haible  <bruno@clisp.org>
84191
84192         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
84193         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
84194         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
84195         directory.
84196         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
84197         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
84198         directory.
84199
84200 2003-06-06  Jim Meyering  <jim@meyering.net>
84201
84202         Merge from coreutils.
84203         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
84204         Consolidate declarations and initializations of *_base* locals.
84205
84206         Merge from coreutils.
84207         This avoids a core dump on systems without GNU putenv,
84208         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
84209         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
84210         (unsetenv): New static function, from GNU libc.
84211         (rpl_putenv): Use it.
84212
84213         * lib/modechange.c: Remove trailing blanks.
84214
84215         Merge from coreutils.
84216         * lib/fsusage.c: Remove declaration of statfs.
84217         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
84218
84219         * lib/posixtm.c: Include <stdbool.h> unconditionally.
84220
84221 2003-06-06  Jim Meyering  <jim@meyering.net>
84222
84223         * lib/stdbool_.h: Renamed from stdbool.h.in.
84224
84225 2003-06-06  Jim Meyering  <jim@meyering.net>
84226             Bruno Haible  <bruno@clisp.org>
84227
84228         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
84229         Adjust Makefile.am snippet not to redirect directly to target.
84230         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
84231
84232 2003-06-05  Paul Eggert  <eggert@twinsun.com>
84233
84234         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
84235         mismatch, look in future quarters as well as past.  This fixes a
84236         bug when processing fall-backwards gaps immediately after a long
84237         period of daylight-saving time.
84238
84239         * lib/mktime.c: Assume freestanding C89 or better.
84240         (HAVE_LIMITS_H): Remove.  Assume it's 1.
84241         (__P): Remove; not used.
84242         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
84243         (mktime, not_equal_tm, print_tm, check_result,
84244         main): Use prototypes.  Use const * where appropriate.
84245         (main): Fix typo in testing code that uncovered by above changes.
84246         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
84247
84248 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84249
84250         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
84251         locale.h, localeconv.  This merges changes from coreutils.
84252
84253         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
84254         It can be removed after the next Autoconf is released.
84255         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
84256         needed.
84257
84258 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84259
84260         * lib/mktime.c: Fix Debian bug 177940
84261         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
84262         (localtime_offset): Now long int, not time_t, because we want it
84263         to be guaranteed to be signed.  All uses changed.
84264         (__mktime_internal): If overflow would occur when adding offset,
84265         don't add it.
84266
84267         Merge 'human' changes from coreutils.  Rewrite to support
84268         locale-specific notations like thousands separators.
84269         * lib/human.c: Simplify authorship notice.
84270         Include human.h immediately after config.h.
84271         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
84272         <limits.h>: Do not include, since human.h does.
84273         (SIZE_MAX, UINTMAX_MAX): New macros.
84274         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
84275         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
84276         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
84277         (power_letter): Renamed from suffixes.
84278         (generate_suffix_backwards): Remove.
84279         (adjust_value): Now takes int style (because of human.h changes)
84280         and long double value (for greater precision on some platforms).
84281         (group_number): New function.
84282         (human_readable): Use it.  Use integer options, not enum.
84283         Put the options before the sizes in the arg list.
84284         Support all the new options.
84285         The old human_readable function has been removed;
84286         use inttostr.h instead.
84287         (human_readable, default_block_size, humblock):
84288         Use uintmax_t, not int, for block sizes.
84289         (human_readable_inexact, block_size_types): Remove.
84290         (block_size_opts): New constant.
84291         (human_options): Renamed from human_block_size, with new signature
84292         that allows block sizes up to UINTMAX_MAX.  All callers changed.
84293         * lib/human.h: Add copyright and authorship notice.
84294         Include <limits.h> and <stdbool.h> unconditionally.
84295         (PARAMS): Remove.  All uses removed.
84296         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
84297         (enum human_inexact_style): Remove tag; now a nameless enum.
84298         (human_floor, human_ceiling, human_round_to_even): Now have
84299         values 2, 0, 1 rather than -1, 1, 0.
84300         (human_group_digits, human_suppress_point_zero, human_autoscale,
84301         human_base_1024, human_SI, human_B): New constants.
84302         (human_readable_inexact, human_block_size): Remove.
84303         (human_readable): Size args are now uintmax_t, not int.
84304         (human_options): New decl.
84305
84306         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
84307         unnecessary now that we assume C89 or better.  This change
84308         imported from coreutils.
84309
84310         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
84311         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
84312         in the 2003-05-30 sync from glibc.
84313
84314         .h files should stand alone, but we shouldn't include <sys/types.h>
84315         if we can get away with just <stddef.h>.
84316
84317         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
84318         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
84319         rather than <sys/types.h>, as we merely need size_t.
84320         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
84321         to get size_t.
84322         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
84323         Include <stdio.h>, to get FILE.
84324         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
84325         memcasecmp.h has included <stddef.h> and all we need is size_t.
84326         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
84327         our interface, instead of including <sys/types.h>
84328
84329 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84330
84331         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
84332         now, as glibc mktime is buggy on non-glibc systems.
84333
84334 2003-06-03  Karl Berry  <karl@gnu.org>
84335
84336         * config/config.sub: update from prep.
84337
84338 2003-06-02  Paul Eggert  <eggert@twinsun.com>
84339
84340         [from coreutils]
84341         Fix some minor time-related bugs with POSIX time arguments.
84342         Some valid time stamps were being rejected (notably -1, and
84343         time stamps before 1900 on 64-bit hosts).  And some invalid
84344         time stamps were being accepted, e.g. September 31.
84345
84346         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
84347         that we can return (time_t) -1 successfully.
84348         * lib/posixtm.c: Likewise.
84349         [HAVE_STDBOOL_H]: Include <stdbool.h>.
84350         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
84351         (t): Remove static var.
84352         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
84353         of static var.  All uses changed.
84354         (year): Do not reject years before 1900; they can occur with
84355         64-bit time_t.
84356         (posix_time_parse): Do not check for out-of-range components;
84357         that is now the caller's responsibility, since our checks were
84358         only approximations.
84359         (posixtime): Use mktime to check for out-of-range components,
84360         since it knows them exactly.
84361         If mktime returns (time_t) -1, check whether an error actually occurred
84362         by invoking localtime on -1.
84363         (main) [TEST_POSIXTIME]: Check for input data errors, and report
84364         posixtime failures better.
84365         Improve the test data (in comments only).
84366
84367 2003-06-02  Karl Berry  <karl@gnu.org>
84368
84369         * config/mkinstalldirs (version): new variable.
84370         (--version): new option.
84371         (usage): improve message.
84372
84373 2003-05-30  Karl Berry  <karl@gnu.org>
84374
84375         * lib/mktime.c: update from libc.
84376
84377 2003-05-30  Bruno Haible  <bruno@clisp.org>
84378
84379         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
84380         * config/config.rpath: Upgrade to gettext-0.12.1.
84381
84382 2003-05-30  Bruno Haible  <bruno@clisp.org>
84383
84384         * m4/gettext.m4: Upgrade to gettext-0.12.1.
84385         * m4/nls.m4: New file, from gettext-0.12.1.
84386         * m4/po.m4: New file, from gettext-0.12.1.
84387         * m4/progtest.m4: Upgrade to gettext-0.12.1.
84388
84389 2003-05-30  Bruno Haible  <bruno@clisp.org>
84390
84391         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
84392         * lib/localcharset.h: Likewise.
84393         * lib/localcharset.c: Likewise.
84394
84395 2003-05-29  Karl Berry  <karl@gnu.org>
84396
84397         * config/config.rpath: update from gettext.
84398
84399 2003-05-28  Paul Eggert  <eggert@twinsun.com>
84400
84401         Assume the headers required for C89 freestanding compilers.
84402         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
84403         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
84404         * m4/human.m4 (gl_HUMAN): Likewise.
84405         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
84406         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
84407         * m4/userspec.m4 (gl_USERSPEC): Likewise.
84408         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
84409         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
84410         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
84411
84412 2003-05-28  Paul Eggert  <eggert@twinsun.com>
84413
84414         Assume the headers required for C89 freestanding compilers.
84415         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
84416         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
84417         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
84418         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
84419         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
84420         define, since <limits.h> is guaranteed to do that.
84421         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
84422         * lib/exclude.c: Include <stdbool.h> unconditionally.
84423         * lib/tempname.c: Include <stddef.h> unconditionally.
84424         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
84425         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
84426         <stddef.h> does that.
84427         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
84428         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
84429         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
84430         needed.
84431         * lib/xstrtol.c: Likewise.
84432         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
84433         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
84434
84435         * lib/addext.c (addext): Use assignment rather than cast, to avoid
84436         warnings on some platforms.
84437
84438         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
84439         arbitrarily.
84440
84441 2003-05-26  Jim Meyering  <jim@meyering.net>
84442
84443         Merge in a change from coreutils:
84444         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
84445         that is guaranteed to be `no'.  Use `no_such_member' to indicate
84446         that condition, rather than `-1' which is slightly misleading.
84447         Change the name of the cache variable to have the gl_ prefix.
84448         Prompted by a patch from Richard Dawe for DJGPP.
84449
84450 2003-05-24  Karl Berry  <karl@gnu.org>
84451
84452         * config/config.guess: update from prep.
84453
84454 2003-05-22  Karl Berry  <karl@gnu.org>
84455
84456         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
84457
84458 2003-05-20  Karl Berry  <karl@gnu.org>
84459
84460         * config/config.guess: update from prep.
84461
84462 2003-05-18  Karl Berry  <karl@gnu.org>
84463
84464         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
84465         might actually be set by the user.
84466
84467         * config/depcomp, install-sh, mdate-sh: update from automake.
84468
84469 2003-05-17  Bruno Haible  <bruno@clisp.org>
84470
84471         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
84472         invalid expansion for AC_EGREP_CPP.
84473         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
84474         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
84475         Suggested by Akim Demaille <akim@epita.fr> in
84476         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
84477
84478 2003-05-12  Jim Meyering  <jim@meyering.net>
84479
84480         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
84481         the space-padded-by-default conversion specifiers, %e, %k, %l.
84482
84483 2003-05-12  Bruno Haible  <bruno@clisp.org>
84484
84485         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
84486         the string is longer than 4 KB.
84487
84488 2003-05-11  Karl Berry  <karl@gnu.org>
84489
84490         * config/config.{guess,sub}: update from prep.
84491
84492 2003-05-09  Bruno Haible  <bruno@clisp.org>
84493
84494         * modules/error: Add m4/strerror_r.m4 to file list.
84495
84496 2003-05-03  Bruno Haible  <bruno@clisp.org>
84497
84498         Upgrade to Unicode-4.0.
84499         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
84500         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
84501         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
84502         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
84503         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
84504         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
84505         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
84506         Change width of U+E0100..U+E01EF from 1 to 0.
84507
84508 2003-04-25  Jim Meyering  <jim@meyering.net>
84509
84510         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
84511         of type size_t, not int.
84512
84513 2003-04-25  Bruno Haible  <bruno@clisp.org>
84514
84515         * lib/copy-file.c: Include <stddef.h>, for size_t.
84516
84517 2003-04-21  Paul Eggert  <eggert@twinsun.com>
84518
84519         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
84520         code which expansion is under static control.  Patch imported from
84521         Akim Demaille's patch to Bison; see
84522         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
84523
84524 2003-04-14  Bruno Haible  <bruno@clisp.org>
84525
84526         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
84527
84528 2003-04-11  Jim Meyering  <jim@meyering.net>
84529
84530         Merge changes from Coreutils.
84531
84532         2003-03-22  Jim Meyering  <jim@meyering.net>
84533
84534         * lib/strftime.c (widen): Cast alloca return value to proper type.
84535
84536         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
84537
84538         From GNU libc.
84539         * lib/strftime.c (my_strftime): Handle very large width
84540         specifications for numeric values correctly.  Improve checks for
84541         overflow.
84542
84543         2003-01-19  Jim Meyering  <jim@meyering.net>
84544
84545         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
84546         definitions.
84547         (nl_get_alt_digit) [! defined my_strftime]: Define.
84548         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
84549         _nl_get_alt_digit and _nl_get_walt_digit.
84550
84551         * lib/strftime.c (my_strftime): Merge in locale-related changes from
84552         libc. These changes have no effect outside of _LIBC.
84553
84554 2003-04-10  Bruno Haible  <bruno@clisp.org>
84555
84556         * modules/findprog: New file.
84557         * MODULES.html.sh (func_all_modules): Add it.
84558
84559 2003-04-10  Bruno Haible  <bruno@clisp.org>
84560
84561         * m4/findprog.m4: New file.
84562         * m4/eaccess.m4: New file.
84563
84564 2003-04-10  Bruno Haible  <bruno@clisp.org>
84565
84566         * lib/findprog.h: New file, from GNU gettext.
84567         * lib/findprog.c: New file, from GNU gettext.
84568
84569 2003-04-05  Jim Meyering  <jim@meyering.net>
84570
84571         Merge changes from Coreutils.
84572
84573         * lib/exclude.h (PARAMS): Remove definition and uses.
84574         * lib/exclude.c: Remove uses of `PARAMS'.
84575
84576         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
84577         Add test-cases for DOS filenames. Declare program_name.
84578         (main): Set up program_name.  Patch by Rich Dawe.
84579
84580         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
84581         error from mntctl.
84582         Use mntctl's return value to drive the entry-processing loop, since
84583         we can't rely on the value of the vmt_length member in the last
84584         entry.  On some systems doing so could result in exhausting
84585         virtual memory.  Based in part on a patch from Mike Jetzer.
84586
84587 2003-04-04  Bruno Haible  <bruno@clisp.org>
84588
84589         * modules/linebreak: New file.
84590         * MODULES.html.sh (func_all_modules): Add it.
84591
84592 2003-04-04  Bruno Haible  <bruno@clisp.org>
84593
84594         * m4/linebreak.m4: New file.
84595
84596 2003-04-04  Bruno Haible  <bruno@clisp.org>
84597
84598         * lib/linebreak.h: New file, from GNU gettext.
84599         * lib/linebreak.c: New file, from GNU gettext with slight
84600         modifications.
84601         * lib/lbrkprop.h: New file, from GNU gettext.
84602
84603 2003-04-03  Bruno Haible  <bruno@clisp.org>
84604
84605         * modules/utf8-ucs4: New file.
84606         * modules/utf16-ucs4: New file.
84607         * modules/ucs4-utf8: New file.
84608         * modules/ucs4-utf16: New file.
84609         * MODULES.html.sh (func_all_modules): Add them.
84610
84611 2003-04-03  Bruno Haible  <bruno@clisp.org>
84612
84613         * m4/utf-ucs4.m4: New file.
84614         * m4/ucs4-utf.m4: New file.
84615
84616 2003-04-03  Bruno Haible  <bruno@clisp.org>
84617
84618         * lib/utf8-ucs4.h: New file, from GNU gettext.
84619         * lib/utf16-ucs4.h: New file, from GNU gettext.
84620         * lib/ucs4-utf8.h: New file, from GNU gettext.
84621         * lib/ucs4-utf16.h: New file, from GNU gettext.
84622
84623 2003-04-02  Bruno Haible  <bruno@clisp.org>
84624
84625         * modules/binary-io: New file.
84626         * MODULES.html.sh (func_all_modules): Add it.
84627
84628 2003-04-02  Bruno Haible  <bruno@clisp.org>
84629
84630         * lib/binary-io.h: New file, from GNU gettext.
84631
84632 2003-04-01  Bruno Haible  <bruno@clisp.org>
84633
84634         * modules/pathname: New file.
84635         * MODULES.html.sh (func_all_modules): Add it.
84636
84637 2003-04-01  Bruno Haible  <bruno@clisp.org>
84638
84639         * lib/pathname.h: New file, from GNU gettext.
84640         * lib/concatpath.c: New file, from GNU gettext.
84641
84642 2003-03-30  Bruno Haible  <bruno@clisp.org>
84643
84644         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
84645
84646 2003-03-30  Bruno Haible  <bruno@clisp.org>
84647
84648         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
84649         function chown() doesn't exist.
84650
84651 2003-03-28  Bruno Haible  <bruno@clisp.org>
84652
84653         * modules/copy-file: New file.
84654         * MODULES.html.sh (func_all_modules): Add it.
84655
84656 2003-03-28  Bruno Haible  <bruno@clisp.org>
84657
84658         * m4/copy-file.m4: New file.
84659
84660 2003-03-28  Bruno Haible  <bruno@clisp.org>
84661
84662         * lib/copy-file.h: New file, from GNU gettext.
84663         * lib/copy-file.c: New file, from GNU gettext.
84664
84665 2003-03-18  Jim Meyering  <jim@meyering.net>
84666
84667         * lib/quote.c (quote_n): Fix typo in comment.
84668
84669 2003-03-18  Bruno Haible  <bruno@clisp.org>
84670
84671         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
84672         checking.
84673         * m4/onceonly_2_57.m4: Likewise.
84674
84675 2003-03-17  Bruno Haible  <bruno@clisp.org>
84676
84677         * m4/onceonly.m4: Require autoconf 2.54 or newer.
84678         (m4_quote): Remove macro.
84679         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
84680
84681 2003-03-14  Jim Meyering  <jim@meyering.net>
84682
84683         Merge changes from Coreutils.
84684         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
84685         to be const, in order to avoid warnings.
84686         (obstack_room): Likewise.
84687         (obstack_empty_p): Likewise.
84688
84689 2003-03-14  Bruno Haible  <bruno@clisp.org>
84690
84691         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
84692         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
84693
84694 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84695
84696         Merge changes from Bison.
84697         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
84698         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
84699         when compiling Bison 1.875's `bitset bset = obstack_alloc
84700         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
84701         * lib/hash.c: Include <stdbool.h> unconditionally.
84702
84703 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84704
84705         * m4/onceonly.m4 (m4_quote): New macro.
84706         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
84707         Quote AC_FOREACH variable-expansions properly.
84708
84709 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84710
84711         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
84712
84713 2003-03-09  Paul Eggert  <eggert@twinsun.com>
84714
84715         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
84716         Reported by Bruce Becker; see:
84717         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
84718
84719 2003-03-03  Paul Eggert  <eggert@twinsun.com>
84720             Bruno Haible  <bruno@clisp.org>
84721
84722         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
84723         Reported by John Hughes, see
84724         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
84725
84726 2003-02-20  Bruno Haible  <bruno@clisp.org>
84727
84728         * MODULES.html.sh (func_all_modules): Add poll.
84729
84730 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84731
84732         * modules/poll: New file.
84733
84734 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84735
84736         * lib/poll_.h: New file.
84737         * lib/poll.c: New file.
84738
84739 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84740
84741         * m4/poll.m4: New file.
84742
84743 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84744
84745         * modules/mathl: New file.
84746
84747 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84748
84749         * lib/mathl.h: New file.
84750         * lib/acosl.c: New file.
84751         * lib/asinl.c: New file.
84752         * lib/atanl.c: New file.
84753         * lib/ceill.c: New file.
84754         * lib/cosl.c: New file.
84755         * lib/expl.c: New file.
84756         * lib/floorl.c: New file.
84757         * lib/frexpl.c: New file.
84758         * lib/ldexpl.c: New file.
84759         * lib/logl.c: New file.
84760         * lib/sincosl.c: New file.
84761         * lib/sinl.c: New file.
84762         * lib/sqrtl.c: New file.
84763         * lib/tanl.c: New file.
84764         * lib/trigl.c: New file.
84765         * lib/trigl.h: New file.
84766
84767 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84768
84769         * m4/mathl.m4: New file.
84770
84771 2003-02-18  Bruno Haible  <bruno@clisp.org>
84772
84773         * MODULES.html.sh (func_all_modules): Add mathl.
84774
84775 2003-02-17  Bruno Haible  <bruno@clisp.org>
84776
84777         * modules/mkdtemp: New module.
84778         * MODULES.html.sh (func_all_modules): Add it.
84779
84780 2003-02-17  Bruno Haible  <bruno@clisp.org>
84781
84782         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
84783
84784 2003-02-17  Bruno Haible  <bruno@clisp.org>
84785
84786         * lib/mkdtemp.h: New file, from GNU gettext.
84787         * lib/mkdtemp.c: New file, from GNU gettext.
84788
84789 2003-02-02  Jim Meyering  <jim@meyering.net>
84790
84791         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
84792         e.g. glibc-2.2.93.
84793
84794 2003-01-31  Bruno Haible  <bruno@clisp.org>
84795
84796         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
84797         'rpl_rename'.
84798         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
84799         'rpl_strnlen'.
84800         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
84801         'rpl_strtod'.
84802         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
84803         'rpl_utime'.
84804
84805 2003-01-31  Bruno Haible  <bruno@clisp.org>
84806
84807         * lib/rename.c: #undef rename before defining rpl_rename.
84808         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
84809
84810 2003-01-30  Bruno Haible  <bruno@clisp.org>
84811
84812         * modules/vasnprintf, modules/vasprintf: New modules.
84813         * MODULES.html.sh (func_all_modules): Add them.
84814
84815 2003-01-30  Bruno Haible  <bruno@clisp.org>
84816
84817         * m4/signed.m4: New file, from GNU gettext.
84818         * m4/longdouble.m4: New file, from GNU gettext.
84819         * m4/wchar_t.m4: New file, from GNU gettext.
84820         * m4/wint_t.m4: New file, from GNU gettext.
84821         * m4/vasnprintf.m4: New file.
84822         * m4/vasprintf.m4: New file.
84823
84824 2003-01-30  Bruno Haible  <bruno@clisp.org>
84825
84826         * lib/printf-args.h: New file, from GNU gettext.
84827         * lib/printf-args.c: New file, from GNU gettext.
84828         * lib/printf-parse.h: New file, from GNU gettext.
84829         * lib/printf-parse.c: New file, from GNU gettext.
84830         * lib/vasnprintf.h: New file, from GNU gettext.
84831         * lib/vasnprintf.c: New file, from GNU gettext.
84832         * lib/asnprintf.c: New file, from GNU gettext.
84833         * lib/vasprintf.h: New file, from GNU gettext with modifications.
84834         * lib/vasprintf.c: New file, from GNU gettext.
84835         * lib/asprintf.c: New file, from GNU gettext.
84836
84837 2003-01-29  Bruno Haible  <bruno@clisp.org>
84838
84839         * modules/stpncpy: New module.
84840         * MODULES.html.sh (func_all_modules): Add it.
84841
84842 2003-01-29  Bruno Haible  <bruno@clisp.org>
84843
84844         * m4/stpncpy.m4: New file.
84845
84846 2003-01-29  Bruno Haible  <bruno@clisp.org>
84847
84848         * lib/stpncpy.h: New file, from GNU gettext with modifications.
84849         * lib/stpncpy.c: New file, from GNU gettext with modifications.
84850
84851 2003-01-28  Bruno Haible  <bruno@clisp.org>
84852
84853         * modules/c-ctype: New module.
84854         * MODULES.html.sh (func_all_modules): Add it.
84855
84856 2003-01-28  Bruno Haible  <bruno@clisp.org>
84857
84858         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
84859         Paul Eggert.
84860         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
84861         Paul Eggert.
84862
84863 2003-01-27  Bruno Haible  <bruno@clisp.org>
84864
84865         * modules/xsetenv: New module.
84866         * MODULES.html.sh (func_all_modules): Add it.
84867
84868 2003-01-27  Bruno Haible  <bruno@clisp.org>
84869
84870         * lib/xsetenv.h: New file, from GNU gettext.
84871         * lib/xsetenv.c: New file, from GNU gettext.
84872
84873 2003-01-23  Jim Meyering  <jim@meyering.net>
84874
84875         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
84876         from working on systems without dirfd (at least Irix and OSF1/Tru64).
84877
84878 2003-01-23  Bruno Haible  <bruno@clisp.org>
84879
84880         * modules/minmax: New module.
84881         * MODULES.html.sh (func_all_modules): Add it.
84882
84883 2003-01-23  Bruno Haible  <bruno@clisp.org>
84884
84885         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
84886         Eggert.
84887
84888 2003-01-22  Bruno Haible  <bruno@clisp.org>
84889
84890         * modules/exit: New module.
84891         * MODULES.html.sh (func_all_modules): Add it.
84892
84893 2003-01-22  Bruno Haible  <bruno@clisp.org>
84894
84895         * lib/exit.h: New file, from GNU gettext.
84896
84897 2003-01-19  Bruno Haible  <bruno@clisp.org>
84898
84899         * gnulib-tool: Recognize option --extract-maintainer.
84900         (func_get_maintainer): New function.
84901         * modules/*: Add Maintainer entry.
84902
84903 2003-01-16  Jim Meyering  <jim@meyering.net>
84904
84905         * m4/regex.m4: The `regex' struct is both input and output.
84906         Initialize it before each use.  Patch by Tim Waugh.
84907
84908 2003-01-16  Bruno Haible  <bruno@clisp.org>
84909
84910         * MODULES.html.sh: Add a table of contents. Add the module name as
84911         leftmost column. Add hyperlinks.
84912
84913 2003-01-15  Bruno Haible  <bruno@clisp.org>
84914
84915         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
84916
84917 2003-01-15  Bruno Haible  <bruno@clisp.org>
84918
84919         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
84920         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
84921         suffix.
84922
84923 2003-01-15  Bruno Haible  <bruno@clisp.org>
84924
84925         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
84926
84927 2003-01-15  Bruno Haible  <bruno@clisp.org>
84928
84929         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
84930         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
84931
84932 2003-01-14  Jim Meyering  <jim@meyering.net>
84933
84934         * lib/same.c (same_name): Tweak a comment.
84935
84936 2003-01-14  Bruno Haible  <bruno@clisp.org>
84937
84938         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
84939         when a string comparison is sufficient.
84940
84941 2003-01-14  Bruno Haible  <bruno@clisp.org>
84942
84943         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
84944         'unsigned int'.
84945
84946 2003-01-14  Bruno Haible  <bruno@clisp.org>
84947
84948         * lib/hash-pjw.c: Add comment about low quality of this function.
84949
84950 2003-01-13  Bruno Haible  <bruno@clisp.org>
84951
84952         * modules/stpcpy: Distribute lib/stpcpy.h.
84953         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
84954
84955 2003-01-13  Bruno Haible  <bruno@clisp.org>
84956
84957         * modules/*: Add a description.
84958         * modules/strpbrk: Fix Makefile.am snippet.
84959         * modules/strtoimax: Fix dependencies.
84960         * modules/strtoumax: Likewise.
84961
84962 2003-01-13  Bruno Haible  <bruno@clisp.org>
84963
84964         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
84965         * modules/alloca (Makefile.am): All object files depend on alloca.h.
84966         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
84967
84968 2003-01-13  Bruno Haible  <bruno@clisp.org>
84969
84970         * gnulib-tool (func_create_testdir): Store config/* files in the main
84971         directory.
84972         * config.rpath: Move to ...
84973         * config/config.rpath: ... here.
84974         * modules/gettext: Contains config/config.rpath, not config.rpath.
84975         * modules/iconv: Likewise.
84976
84977 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84978
84979         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84980         to avoid collisions with libcurses and libreadline.
84981
84982         * m4/getstr.m4: Remove.
84983         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
84984
84985 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84986
84987         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84988         to avoid collisions with libcurses and libreadline.
84989
84990         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
84991         * lib/getstr.h, getstr.c: Remove.
84992         * lib/getline.c: Include "getline.h", to check interface.
84993         Move body of old getstr.c here: this defines MIN_CHUNK and
84994         declares getdelim2, which is renamed from getstr.
84995         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
84996
84997         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
84998         All uses changed.
84999         * lib/linebuffer.h: Likewise.
85000         (readline): Remove backward-compatibility macro.
85001
85002 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85003
85004         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85005         to avoid collisions with libcurses and libreadline.
85006         * getstr: Remove.
85007         * MODULES.html.sh: Remove getstr.
85008         * modules/getline: Depend on unlocked-io, not getstr.
85009
85010 2003-01-12  Jim Meyering  <jim@meyering.net>
85011
85012         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
85013
85014 2003-01-10  Bruno Haible  <bruno@clisp.org>
85015
85016         * modules/alloca: Change Makefile.am requirements. Simplify Include
85017         requirements. Add lib/alloca_.h to file list.
85018
85019 2003-01-10  Bruno Haible  <bruno@clisp.org>
85020
85021         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
85022
85023 2003-01-10  Bruno Haible  <bruno@clisp.org>
85024
85025         * lib/alloca_.h: New file.
85026         * lib/getdate.y: Unconditionally include alloca.h.
85027         * lib/makepath.c: Likewise.
85028         * lib/setenv.c: Likewise.
85029         * lib/userspec.c: Likewise.
85030
85031 2003-01-09  Karl Berry  <karl@gnu.org>
85032
85033         * MODULES.html.sh: include `dirname $0` in PATH, to find
85034         gnulib-tool.
85035
85036 2003-01-09  Bruno Haible  <bruno@clisp.org>
85037
85038         * modules/stdbool: Change configure.ac, Makefile.am requirements.
85039         Simplify Include requirements. Add lib/stdbool.h.in to file list.
85040
85041 2003-01-09  Bruno Haible  <bruno@clisp.org>
85042
85043         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
85044
85045 2003-01-09  Bruno Haible  <bruno@clisp.org>
85046
85047         * lib/stdbool.h.in: New file.
85048
85049 2003-01-09  Bruno Haible  <bruno@clisp.org>
85050
85051         * gnulib-tool (func_all_modules): Ignore files ending in ~.
85052         * MODULES.html.sh: Likewise.
85053
85054 2003-01-08  Jim Meyering  <jim@meyering.net>
85055
85056         * lib/full-write.c: Undefine and define-away `const' after inclusion
85057         of errno.h, not before.  Suggestion from Bruno Haible.
85058
85059 2003-01-08  Bruno Haible  <bruno@clisp.org>
85060
85061         * modules/full-read: Depend on full-write.
85062
85063 2003-01-08  Bruno Haible  <bruno@clisp.org>
85064
85065         * lib/safe-read.c: Include specification header first, to ensure its
85066         selfcontainedness.
85067         * lib/full-write.c: Likewise.
85068
85069 2003-01-07  Jim Meyering  <jim@meyering.net>
85070
85071         * lib/full-write.c: Rework so that it may serve to define full_read,
85072         too.
85073         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
85074
85075 2003-01-07  Bruno Haible  <bruno@clisp.org>
85076
85077         * lib/strtoimax.c: Include <stdint.h> as an alternative to
85078         <inttypes.h>.
85079         * lib/xstrtol.h: Likewise.
85080         * lib/xstrtoimax.c: Likewise.
85081         * lib/xstrtoumax.c: Likewise.
85082         * lib/human.h: Likewise.
85083
85084         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
85085         on systems that have <inttypes.h> but not <stdint.h>.
85086
85087 2003-01-07  Bruno Haible  <bruno@clisp.org>
85088
85089         * MODULES.html.sh: Add copyright notice.
85090         (missed_files): Omit CVS directory entries.
85091         (func_module): Make it work with sed-3.02.
85092         * MODULES.txt: Remove file.
85093
85094 2003-01-06  Jim Meyering  <jim@meyering.net>
85095
85096         * lib/version-etc.c: Update year in translatable copyright string.
85097
85098 2003-01-03  Karl Berry  <karl@gnu.org>
85099
85100         * config/config.{guess,sub}: update from prep.
85101
85102 2003-01-02  Karl Berry  <karl@gnu.org>
85103
85104         * doc/COPYING.DOC: belatedly updated to 1.2.
85105
85106 2003-01-01  Karl Berry  <karl@gnu.org>
85107
85108         * gnulib-tool (func_verify_module): report module name $module in
85109         error message, not $1.
85110         * gnulib-tool (create-testdir): don't complain if destdir couldn't
85111         be created, only if it doesn't exist.
85112         * gnulib-tool (last_checkin_date): don't expand the $Date here.
85113
85114 2002-12-31  Paul Eggert  <eggert@twinsun.com>
85115
85116         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
85117
85118 2002-12-31  Paul Eggert  <eggert@twinsun.com>
85119
85120         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
85121         memcmp if strcoll doesn't work.
85122
85123 2002-12-31  Bruno Haible  <bruno@clisp.org>
85124
85125         * lib/utime.c (utime_null): No need to call ftruncate if the file was
85126         nonempty.
85127
85128 2002-12-31  Bruno Haible  <bruno@clisp.org>
85129
85130         * lib/memcoll.c (STRCOLL): New macro.
85131         (memcoll): Use it.
85132
85133 2002-12-31  Bruno Haible  <bruno@clisp.org>
85134
85135         * lib/localcharset.h: New file.
85136         * lib/localcharset.c: Include it.
85137         * lib/unicodeio.c: Likewise.
85138
85139 2002-12-31  Bruno Haible  <bruno@clisp.org>
85140
85141         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
85142         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
85143
85144 2002-12-31  Bruno Haible  <bruno@clisp.org>
85145
85146         * lib/getline.h: Include <stddef.h>, for size_t.
85147
85148         * lib/unicodeio.h: Include <stddef.h>, for size_t.
85149         * lib/unicodeio.c: Don't include <stddef.h>.
85150
85151 2002-12-31  Bruno Haible  <bruno@clisp.org>
85152
85153         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
85154         HAVE_TM_ZONE.
85155
85156 2002-12-24  Karl Berry  <karl@gnu.org>
85157
85158         * config/config.guess: update from prep.
85159
85160 2002-12-24  Bruno Haible  <bruno@clisp.org>
85161
85162         General infrasructure.
85163         * m4/README: Rewritten.
85164         * m4/onceonly.m4: New file.
85165         * m4/onceonly_2_57.m4: New file.
85166
85167         Module atexit.
85168         * m4/atexit.m4: New file.
85169
85170         Module strtod.
85171         * m4/strtod.m4: New file.
85172
85173         Module strtol.
85174         * m4/strtol.m4: New file.
85175
85176         Module strtoul.
85177         * m4/strtoul.m4: New file.
85178
85179         Module memchr.
85180         * m4/memchr.m4: New file.
85181
85182         Module memcmp.
85183         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
85184         (jm_FUNC_MEMCMP): Invoke it.
85185
85186         Module memcpy.
85187         * m4/memcpy.m4: New file.
85188
85189         Module memmove.
85190         * m4/memmove.m4: New file.
85191
85192         Module memset.
85193         * m4/memset.m4: New file.
85194
85195         Module strcspn.
85196         * m4/strcspn.m4: New file.
85197
85198         Module strpbrk.
85199         * m4/strpbrk.m4: New file.
85200
85201         Module strstr.
85202         * m4/strstr.m4: New file.
85203
85204         Module strerror.
85205         * m4/strerror.m4: New file.
85206
85207         Module mktime.
85208         * m4/mktime.m4: Renamed from jm-mktime.m4.
85209         (gl_PREREQ_MKTIME): New macro.
85210         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
85211
85212         Module malloc.
85213         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
85214         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
85215         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
85216
85217         Module realloc.
85218         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
85219         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
85220         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
85221
85222         Module strftime.
85223         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
85224         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
85225         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
85226         gl_TM_GMTOFF.
85227         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
85228
85229         Module xalloc.
85230         * m4/xalloc.m4: New file.
85231
85232         Module alloca.
85233         * m4/alloca.m4: New file.
85234
85235         Module putenv.
85236         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
85237         (jm_FUNC_PUTENV): Invoke it.
85238
85239         Module setenv.
85240         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
85241         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
85242         when invoked twice.
85243         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
85244         gt_FUNC_SETENV.
85245
85246         Module memrchr.
85247         * m4/memrchr.m4: New file.
85248
85249         Module stpcpy.
85250         * m4/stpcpy.m4: New file.
85251
85252         Module strcase.
85253         * m4/strcase.m4: New file.
85254
85255         Module strdup.
85256         * m4/strdup.m4: New file.
85257
85258         Module strnlen.
85259         * m4/strnlen.m4: New file.
85260
85261         Module strndup.
85262         * m4/strndup.m4: New file.
85263
85264         Module xstrtod.
85265         * m4/xstrtod.m4: New file.
85266
85267         Module xstrtol.
85268         * m4/xstrtol.m4: New file.
85269
85270         Module getdate.
85271         * m4/getdate.m4: New file.
85272
85273         Module unlocked-io.
85274         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
85275         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
85276         * m4/jm-glibc-io.m4n: Remove file.
85277
85278         Module long-options.
85279         * m4/long-options.m4: New file.
85280
85281         Module md5.
85282         * m4/md5.m4: New file.
85283
85284         Module sha.
85285         * m4/sha.m4: New file.
85286
85287         Module getstr.
85288         * m4/getstr.m4: New file.
85289
85290         Module getline.
85291         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
85292         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
85293         <sys/types.h>, for size_t. Use the function name gnu_getline, not
85294         simply getline. Infoke gl_PREREQ_GETLINE.
85295
85296         Module obstack.
85297         * m4/obstack.m4: New file.
85298
85299         Module hash.
85300         * m4/hash.m4: New file.
85301
85302         Module readtokens.
85303         * m4/readtokens.m4: New file.
85304
85305         Module strverscmp.
85306         * m4/strverscmp.m4: New file.
85307
85308         Module stdbool.
85309         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
85310         OSF/1.
85311
85312         Module strtoll.
85313         * m4/strtoll.m4: New file.
85314
85315         Module strtoull.
85316         * m4/strtoull.m4: New file.
85317
85318         Module strtoimax.
85319         * m4/strtoimax.m4: New file.
85320
85321         Module strtoumax.
85322         * m4/strtoumax.m4: New file.
85323
85324         Module xstrtoimax.
85325         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
85326         jm_AC_PREREQ_XSTRTOIMAX.
85327         Moved the strtol prerequisites to strtol.m4.
85328         Moved the strtoll prerequisites to strtoll.m4.
85329         Moved the strtoimax prerequisites to strtoimax.m4.
85330
85331         Module xstrtoumax.
85332         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
85333         jm_AC_PREREQ_XSTRTOUMAX.
85334         Moved the strtoul prerequisites to strtoul.m4.
85335         Moved the strtoull prerequisites to strtoull.m4.
85336         Moved the strtoumax prerequisites to strtoumax.m4.
85337
85338         Module chown.
85339         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
85340         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
85341
85342         Module dup2.
85343         * m4/dup2.m4: New file.
85344
85345         Module ftruncate.
85346         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
85347         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
85348
85349         Module getgroups.
85350         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
85351         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
85352
85353         Module gettimeofday.
85354         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
85355         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
85356         gl_PREREQ_GETTIMEOFDAY.
85357
85358         Module mkdir.
85359         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
85360         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
85361
85362         Module mkstemp.
85363         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
85364         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
85365         jm_AC_TYPE_UINTMAX_T.
85366         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
85367
85368         Module stat.
85369         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
85370         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
85371
85372         Module lstat.
85373         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
85374         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
85375
85376         Module timespec.
85377         * m4/timespec.m4 (gl_TIMESPEC): New macro.
85378         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
85379         * m4/st_mtim.m4: Indentation.
85380
85381         Module nanosleep.
85382         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
85383         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
85384         gl_PREREQ_NANOSLEEP.
85385
85386         Module regex.
85387         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
85388         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
85389         (gl_REGEX): New macro.
85390
85391         Module rename.
85392         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
85393         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
85394
85395         Module rmdir.
85396         * m4/rmdir.m4: New file.
85397
85398         Module utime.
85399         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
85400         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
85401         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
85402
85403         Module dirname.
85404         * m4/dirname.m4: New file.
85405
85406         Module getopt.
85407         * m4/getopt.m4: New file.
85408
85409         Module unistd-safer.
85410         * m4/unistd-safer.m4: New file.
85411
85412         Module fnmatch.
85413         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
85414         declaration.
85415         (gl_PREREQ_FNMATCH_EXTRA): New macro.
85416         (gl_FUNC_FNMATCH_POSIX): New macro.
85417         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
85418         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
85419         simply fnmatch.
85420
85421         Module exclude.
85422         * m4/exclude.m4: New file.
85423
85424         Module human.
85425         * m4/human.m4: New file.
85426
85427         Module acl.
85428         * m4/acl.m4: Nop.
85429
85430         Module backupfile.
85431         * m4/backupfile.m4: New file.
85432         * m4/d-ino.m4: Indentation.
85433
85434         Module fsusage.
85435         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
85436         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
85437         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
85438
85439         Module dirfd.
85440         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
85441         requirements.
85442
85443         Module euidaccess.
85444         * m4/euidaccess.m4: New file.
85445
85446         Module file-type.
85447         * m4/file-type.m4: New file.
85448
85449         Module fileblocks.
85450         * m4/fileblocks.m4: New file.
85451
85452         Module filemode.
85453         * m4/filemode.m4: New file.
85454
85455         Module isdir.
85456         * m4/isdir.m4: New file.
85457
85458         Module lchown.
85459         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
85460         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
85461
85462         Module makepath.
85463         * m4/makepath.m4: New file.
85464
85465         Module modechange.
85466         * m4/modechange.m4: New file.
85467
85468         Module mountlist.
85469         * m4/mountlist.m4: New file.
85470         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
85471         Indentation.
85472
85473         Module path-concat.
85474         * m4/path-concat.m4: New file.
85475
85476         Module pathmax.
85477         * m4/pathmax.m4: New file.
85478
85479         Module same.
85480         * m4/same.m4: New file.
85481
85482         Module save-cwd.
85483         * m4/save-cwd.m4: New file.
85484
85485         Module savedir.
85486         * m4/savedir.m4: New file.
85487
85488         Module xgetcwd.
85489         * m4/xgetcwd.m4: New file.
85490         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
85491
85492         Module xreadlink.
85493         * m4/xreadlink.m4: New file.
85494
85495         Module safe-read.
85496         * m4/safe-read.m4: New file.
85497
85498         Module safe-write.
85499         * m4/safe-write.m4: New file.
85500
85501         Module closeout.
85502         * m4/closeout.m4: New file.
85503
85504         Module stdio-safer.
85505         * m4/stdio-safer.m4: New file.
85506
85507         Module getpass.
85508         * m4/getpass.m4: New file.
85509
85510         Module getugroups.
85511         * m4/getugroups.m4: New file.
85512
85513         Module group-member.
85514         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
85515         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
85516
85517         Module idcache.
85518         * m4/idcache.m4: New file.
85519
85520         Module userspec.
85521         * m4/userspec.m4: New file.
85522
85523         Module gettime.
85524         * m4/clock_time.m4: New file.
85525         * m4/gettime.m4: New file.
85526
85527         Module settime.
85528         * m4/settime.m4: New file.
85529
85530         Module posixtm.
85531         * m4/posixtm.m4: New file.
85532
85533         Module gethostname.
85534         * m4/gethostname.m4: New file.
85535
85536         Module canon-host.
85537         * m4/canon-host.m4: New file.
85538
85539         Module gettext.
85540         * m4/codeset.m4: New file, from gettext-0.11.5.
85541         * m4/gettext.m4: New file, from gettext-0.11.5.
85542         * m4/glibc21.m4: New file, from gettext-0.11.5.
85543         * m4/iconv.m4: New file, from gettext-0.11.5.
85544         * m4/intdiv0.m4: New file, from gettext-0.11.5.
85545         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
85546         * m4/inttypes.m4: New file, from gettext-0.11.5.
85547         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
85548         * m4/isc-posix.m4: New file, from gettext-0.11.5.
85549         * m4/lcmessage.m4: New file, from gettext-0.11.5.
85550         * m4/lib-ld.m4: New file, from gettext-0.11.5.
85551         * m4/lib-link.m4: New file, from gettext-0.11.5.
85552         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
85553         * m4/progtest.m4: New file, from gettext-0.11.5.
85554         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
85555         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
85556         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
85557
85558         Module localcharset.
85559         * m4/localcharset.m4: New file.
85560
85561         Module hard-locale.
85562         * m4/hard-locale.m4: New file.
85563
85564         Module mbswidth.
85565         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
85566         onceonly macros.
85567         * m4/mbrtowc.m4: Add comment.
85568
85569         Module memcasecmp.
85570         * m4/memcasecmp.m4: New file.
85571
85572         Module memcoll.
85573         * m4/memcoll.m4: New file.
85574
85575         Module unicodeio.
85576         * m4/unicodeio.m4: New file.
85577
85578         Module rpmatch.
85579         * m4/rpmatch.m4: New file.
85580
85581         Module yesno.
85582         * m4/yesno.m4: New file.
85583
85584         Module exitfail.
85585         * m4/exitfail.m4: New file.
85586
85587         Module c-stack.
85588         * m4/c-stack.m4 (gl_C_STACK): New macro.
85589         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
85590
85591         Module error.
85592         * m4/error.m4 (gl_ERROR): New macro.
85593         (jm_PREREQ_ERROR): Use onceonly macros.
85594
85595         Module fatal.
85596         * m4/fatal.m4: New file.
85597
85598         Module getloadavg.
85599         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
85600         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
85601
85602         Module getpagesize.
85603         * m4/getpagesize.m4: New file.
85604
85605         Module getusershell.
85606         * m4/getusershell.m4: New file.
85607
85608         Module physmem.
85609         * m4/physmem.m4: New file.
85610
85611         Module posixver.
85612         * m4/posixver.m4: New file.
85613
85614         Module quotearg.
85615         * m4/quotearg.m4: New file.
85616
85617         Module quote.
85618         * m4/quote.m4: New file.
85619
85620         Module readutmp.
85621         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
85622
85623         Module sig2str.
85624         * m4/sig2str.m4: New file.
85625
85626         Other.
85627         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
85628         ulonglong.m4.
85629         * m4/intmax_t.m4: New file.
85630         * m4/d-type.m4: Indentation.
85631         * m4/jm-macros.m4: Update.
85632         * m4/prereq.m4 (jm_PREREQ): Update.
85633         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
85634         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
85635         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
85636         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
85637         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
85638         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
85639         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
85640         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
85641         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
85642         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
85643         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
85644         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
85645         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
85646         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
85647         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
85648         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
85649         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
85650         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
85651         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
85652
85653 2002-12-24  Bruno Haible  <bruno@clisp.org>
85654
85655         * MODULES.txt: Update according to m4/ changes.
85656
85657         Module gettext.
85658         * config.rpath: New file, from gettext-0.11.5.
85659
85660         * modules/*: New module descriptions.
85661         * gnulib-tool: New file.
85662         * MODULES.html.sh: New file.
85663
85664 2002-12-21  Karl Berry  <karl@gnu.org>
85665
85666         * doc/fdl.texi: update to version 1.2.
85667
85668 2002-12-19  Karl Berry  <karl@gnu.org>
85669
85670         * config/config.guess: update from prep.
85671
85672 2002-12-18  Bruno Haible  <bruno@clisp.org>
85673
85674         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
85675         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
85676
85677 2002-12-17  Bruno Haible  <bruno@clisp.org>
85678
85679         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
85680         stdlib.h, string.h.
85681
85682 2002-12-17  Bruno Haible  <bruno@clisp.org>
85683
85684         * lib/canon-host.c (strdup): Remove unused declaration.
85685
85686         * lib/fsusage.c: Include full_read.h.
85687         (get_fs_usage): Use full_read instead of safe_read.
85688
85689         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
85690
85691 2002-12-12  Karl Berry  <karl@gnu.org>
85692
85693         * config/config.guess: update from prep.
85694
85695 2002-12-11  Bruno Haible  <bruno@clisp.org>
85696
85697         * m4/setenv.m4: New file, from gettext-0.11.5.
85698
85699 2002-12-11  Bruno Haible  <bruno@clisp.org>
85700
85701         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
85702         not unsetenv().
85703         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
85704         modifications:
85705
85706         2002-12-11  Bruno Haible  <bruno@clisp.org>
85707
85708                 * setenv.c (alloca): Fall back to malloc.
85709                 (freea): New macro.
85710                 (setenv): Use freea() to free memory allocated with alloca().
85711
85712         2002-11-13  Bruno Haible  <bruno@clisp.org>
85713
85714                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
85715                 function declarations.
85716                 * unsetenv.c (unsetenv): Likewise.
85717
85718         2002-03-04  Bruno Haible  <bruno@clisp.org>
85719
85720                 Portability to AIX 4.3.3.
85721                 * unsetenv.c: New file, extracted from setenv.c.
85722                 * setenv.c: Move the unsetenv() function to unsetenv.c.
85723
85724         2001-12-20  Bruno Haible  <bruno@clisp.org>
85725
85726                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
85727                 use malloc instead. For SunOS 4.
85728
85729         2001-12-11  Bruno Haible  <bruno@clisp.org>
85730
85731                 * setenv.c: Declare alloca.
85732                 (compar_fn_t): New typedef.
85733                 (KNOWN_VALUE, STORE_VALUE): Use it.
85734
85735         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
85736         setenv.h.
85737
85738 2002-12-10  Paul Eggert  <eggert@twinsun.com>
85739
85740         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
85741         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
85742         Choose values that are less likely to collide with system fnmatch
85743         options.
85744         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
85745         defined (e.g., a pure POSIX system).
85746         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
85747         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
85748
85749 2002-12-06  Paul Eggert  <eggert@twinsun.com>
85750
85751         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
85752         a pain in practice to deal with generated m4 files.  This change
85753         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
85754
85755         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
85756         and jm-glibc-io.m4, as they are no longer a special case.
85757         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
85758         kludge and the auto-generation stuff.  Check only whether the
85759         functions are declared, not whether they exist, since older hosts
85760         that don't declare the functions can't use the optimization anyway.
85761
85762 2002-12-06  Jim Meyering  <jim@meyering.net>
85763
85764         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
85765
85766         Merge in changes from libc's misc/error.c, in preparation
85767         for the merge of gnulib's changes back into libc.
85768
85769         * lib/error.c (_): Define only if not already defined.
85770         Move definition to follow all #include directives.
85771         Include unlocked-io.h only if !_LIBC.
85772         [_LIBC]: Include <libio/libioP.h>.
85773         [USE_IN_LIBIO]: Include <libio/iolibio.h>
85774         (fflush): Tweak definition to use INTUSE.
85775         (putc): Define.
85776
85777 2002-12-05  Paul Eggert  <eggert@twinsun.com>
85778
85779         * lib/alloca.c [defined emacs]: Include "lisp.h".
85780         (xalloc_die) [defined emacs]: New macro.
85781         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
85782         [! defined emacs]: Include <xalloc.h>.
85783         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
85784         (pointer): Typedef to POINTER_TYPE *.
85785         (malloc): Remove decl; we now always use xmalloc.
85786         (alloca): Use old-style definition, since Emacs needs this.
85787         Check for arithmetic overflow when computing combined size.
85788
85789 2002-12-04  Paul Eggert  <eggert@twinsun.com>
85790
85791         Do not generate unlocked-io.h automatically, since it's easier to
85792         maintain it by hand.
85793
85794         * lib/unlocked-io.h: New file, from GNU diffutils,
85795         but with proper copyright notice and attribution.
85796         * lib/gen-uio: Remove.
85797         * lib/Makefile.am: Add copyright notice.
85798         (libfetish_a_SOURCES): Add unlocked-io.h.
85799         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
85800         (DISTCLEANFILES, io_functions): Remove macros.
85801         (EXTRA_DIST): Remove gen_uio.
85802         (unlocked-io.h): Remove rule.
85803
85804 2002-12-04  Jim Meyering  <jim@meyering.net>
85805
85806         Reflect the fact that stat.c and lstat.c are no longer generated.
85807         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
85808         (DISTCLEANFILES): Likewise.
85809         (EXTRA_DIST): Likewise.
85810         (all_local): Don't depend on stat.c or lstat.c.
85811         (stat.c, lstat.c): Remove rules.
85812         (EXTRA_DIST): Remove xstat.in.
85813
85814         * lib/xstat.in: Remove file.  Contents moved into stat.c.
85815         * lib/stat.c: New file.  Contents mostly from xstat.in.
85816         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
85817         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
85818
85819         * lib/safe-read.c: Rework so that it may serve to define safe_write,
85820         too.
85821         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
85822
85823 2002-12-03  Jim Meyering  <jim@meyering.net>
85824
85825         * lib/safe-read.c, safe-write.c: Change variable names and comments,
85826         but not semantics, to minimize the differences between these two files.
85827         (safe_read): Change comment to mention SAFE_READ_ERROR.
85828
85829         * lib/safe-read.c (IS_EINTR): Define.
85830         (safe_read): Use IS_EINTR in place of in-function cpp directives.
85831
85832 2002-12-02  Jim Meyering  <jim@meyering.net>
85833
85834         * lib/safe-read.c (EINTR): Define.
85835         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
85836         (INT_MAX): Provide fallback.
85837         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
85838
85839         * lib/safe-read.h (SAFE_READ_ERROR): Define.
85840
85841 2002-12-02  Bruno Haible  <bruno@clisp.org>
85842
85843         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
85844         Define, taken from safe-read.c.
85845         (INT_MAX): Provide fallback.
85846         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
85847         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
85848
85849         * lib/safe-read.c (EINTR): Remove definition.
85850         (safe_read): Don't use EINTR if it is absent.
85851
85852 2002-12-01  Jim Meyering  <jim@meyering.net>
85853
85854         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
85855         zero.
85856         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
85857
85858 2002-11-27  Paul Eggert  <eggert@twinsun.com>
85859
85860         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
85861         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
85862         with `if (! (value < limit)) abort ();', for readability.
85863
85864 2002-11-26  Karl Berry  <karl@gnu.org>
85865
85866         * lib/strdup.c: copy from libc again, with jim's ok.
85867         * lib/.cppi-disable: re-add strdup.c
85868
85869 2002-11-25  Karl Berry  <karl@gnu.org>
85870
85871         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
85872         instead of "strtol.c".
85873
85874 2002-11-25  Karl Berry  <karl@gnu.org>
85875
85876         * config/install-sh: update from automake for variable quoting, $0 in
85877         error msgs, etc.
85878
85879         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
85880         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
85881         entry.
85882
85883 2002-11-25  Jim Meyering  <jim@meyering.net>
85884
85885         * lib/mktime.c: Sync from libc, now that it has the latest fix.
85886
85887 2002-11-24  Karl Berry  <karl@gnu.org>
85888
85889         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
85890         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
85891
85892 2002-11-24  Jim Meyering  <jim@meyering.net>
85893
85894         Update from coreutils:
85895
85896         * lib/mktime.c: Merge in changes from libc.
85897
85898         Avoid a link-time failure on some Linux systems.
85899         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
85900         (otherwise).
85901         (__mon_yday): Declare with the STATIC attribute.
85902         (__mktime_internal): Likewise.
85903         Based on a report from Greg Schafer.
85904
85905 2002-11-23  Jim Meyering  <jim@meyering.net>
85906
85907         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
85908         Use `unsigned', not `int', as type of index.
85909
85910         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
85911
85912         * lib/fsusage.c: Remove unneeded parentheses around operands of
85913         `defined'.
85914
85915 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85916
85917         * lib/quotearg.h: Allow multiple inclusion by surrounding with
85918         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
85919         so that we can be included first.
85920         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
85921         * lib/quotearg.c: Include quotearg.h immediately after config.h.
85922         No need to include stddef.h or sys/types.h any more.
85923         Surround local include files with "", not "<>".
85924         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
85925         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
85926         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
85927         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
85928         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
85929         (ISPRINT): Remove; no longer needed now that we assume C89.
85930
85931         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
85932         Preserve errno.
85933
85934         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
85935         quotearg_char): Use SIZE_MAX rather than
85936         (size_t) -1 when we are talking about "infinity".
85937
85938         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
85939
85940 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85941
85942         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
85943         hint that one should use `if (! x) abort ();' rather than `assert
85944         (x);', and anyway it's one less thing to worry about configuring.
85945         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
85946         hash_rehash, hash_insert): Use abort rather than assert.
85947
85948 2002-11-22  Bruno Haible  <bruno@clisp.org>
85949
85950         * lib/safe-read.h: Assume C89. Add comments.
85951         (safe_read): Change return type to size_t.
85952         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
85953         byte counts > SSIZE_MAX correctly.
85954         * lib/safe-write.h: New file.
85955         * lib/safe-write.c: New file.
85956         * lib/full-read.h: New file.
85957         * lib/full-read.c: New file.
85958         * lib/full-write.h: Assume C89. Add comments.
85959         * lib/full-write.c: Include safe-write.h.
85960         (full_write): Rewritten to use safe_write.
85961         Suggested by Jim Meyering and Paul Eggert.
85962
85963 2002-11-21  Jim Meyering  <jim@meyering.net>
85964
85965         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
85966
85967         Merge in changes from the coreutils.
85968
85969         2002-09-25  Paul Eggert  <eggert@twinsun.com>
85970         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
85971         <stdint.h>.
85972         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
85973         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
85974         int.  Work more efficiently if X is the same width as uintmax_t.
85975         Do not compare X to -1, to avoid bogus compiler warning.
85976         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
85977         Don't assume that f_frsize and f_bsize are the same type.
85978
85979         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
85980         warning on FreeBSD.
85981
85982         * lib/makepath.c (make_path): Restore umask *before* creating the final
85983         component.
85984         (make_path): Minor reformatting.
85985
85986         * lib/xmalloc.c: Adjust to work with new autoconf macros,
85987         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
85988         HAVE_MALLOC/HAVE_REALLOC.
85989
85990         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
85991         dummy ones.  At least on GNU/Linux systems, `auto' means something
85992         else.
85993         From Michael Stone.
85994
85995 2002-11-21  Bruno Haible  <bruno@clisp.org>
85996
85997         Remove case insensitive option matching.
85998         * lib/argmatch.h (argcasematch): Remove declaration.
85999         (ARGCASEMATCH): Remove macro.
86000         (__xargmatch_internal): Remove case_sensitive argument.
86001         (XARGMATCH): Update.
86002         (XARGCASEMATCH): Remove macro.
86003         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
86004         case_sensitive argument.
86005         (argcasematch): Remove function.
86006         (__xargmatch_internal): Remove case_sensitive argument.
86007         (main): Use XARGMATCH instead of XARGCASEMATCH.
86008
86009         * lib/xmalloc.c: Change compile-time error message. Add comment about
86010         required autoconf version.
86011
86012 2002-11-20  Paul Eggert  <eggert@twinsun.com>
86013
86014         Merge argmatch cleanups from Bison.  Assume C89.
86015
86016         * lib/argmatch.c: Include config.h here, not in argmatch.h.
86017         Include stdlib.h, for EXIT_FAILURE.
86018         Always include <string.h>, since we assume C89.
86019         (EXIT_FAILURE): Remove pre-C89 bug workaround.
86020         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
86021         Include <stddef.h> instead, since it's all we need for size_t.
86022         (PARAMS): Remove.  All uses removed.
86023         (ARRAY_CARDINALITY): Do not bother to #undef.
86024         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
86025         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
86026         Remove unnecessary parentheses.
86027         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
86028         Insert necessary parentheses.
86029         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
86030         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
86031
86032 2002-11-19  Bruno Haible  <bruno@clisp.org>
86033
86034         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
86035         * lib/mbswidth.h: Include <stddef.h>, for size_t.
86036
86037         * lib/mbswidth.h (PARAMS): Remove macro.
86038         (mbswidth, mbsnwidth): Use ANSI C function declarations.
86039         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
86040
86041         * lib/gcd.h (PARAMS): Remove macro.
86042         (gcd): Use ANSI C function declarations.
86043         * lib/gcd.c (gcd): Likewise.
86044
86045 2002-11-15  Bruno Haible  <bruno@clisp.org>
86046
86047         * lib/strcspn.c: Include <stddef.h>.
86048         (strcspn): Use ANSI C function declaration. Change return type to
86049         size_t. Use NULL.
86050         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
86051         (strpbrk): Use NULL.
86052         * lib/strpbrk.h (PARAMS): Remove macro.
86053         (strpbrk): Use ANSI C function declaration.
86054         * lib/strstr.c: Don't include <sys/types.h>.
86055         * lib/strstr.h (PARAMS): Remove macro.
86056         (strstr): Use ANSI C function declarations.
86057
86058 2002-11-14  Karl Berry  <karl@gnu.org>
86059
86060         * config/mkinstalldirs: `do' on separate line, instead of
86061         `for var; do'.
86062
86063 2002-11-06  Bruno Haible  <bruno@clisp.org>
86064
86065         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
86066         * lib/gcd.c (gcd): Likewise.
86067
86068 2002-11-05  Bruno Haible  <bruno@clisp.org>
86069
86070         * lib/gcd.h: New file, from gettext-0.11.5.
86071         * lib/gcd.c: New file, from gettext-0.11.5.
86072
86073 2002-11-05  Bruno Haible  <bruno@clisp.org>
86074
86075         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86076         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86077         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86078         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86079
86080         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
86081         <libintl.h>.
86082         * lib/makepath.c: Include gettext.h instead of <locale.h> and
86083         <libintl.h>.
86084
86085         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
86086         * lib/human.c: Include gettext.h instead of <libintl.h>.
86087         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
86088         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
86089         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
86090         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
86091         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
86092         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
86093         (textdomain): Remove definition.
86094         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
86095
86096         * lib/long-options.c: Remove include of <libintl.h> and definition of
86097         _.
86098         * lib/same.c: Remove include of <libintl.h> and definition of _.
86099
86100 2002-11-04  Owen Taylor  <otaylor@redhat.com>
86101
86102         * lib/config.charset: A few additions for Solaris.
86103
86104 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
86105
86106         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
86107         * lib/localcharset.c (locale_charset): Declare as extern "C".
86108
86109 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
86110
86111         * lib/config.charset: msdos in uk_UA uses CP1125.
86112
86113 2002-11-04  Bruno Haible  <bruno@clisp.org>
86114
86115         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
86116         * lib/strcase.h: New file, from GNU gettext-0.11.5.
86117         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
86118         * lib/strstr.h: New file, from GNU gettext-0.11.5.
86119         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
86120
86121 2002-11-04  Bruno Haible  <bruno@clisp.org>
86122
86123         * lib/localcharset.c (locale_charset): Don't return an empty string.
86124
86125 2002-11-04  Bruno Haible  <bruno@clisp.org>
86126
86127         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
86128         aliases.
86129
86130 2002-11-04  Bruno Haible  <bruno@clisp.org>
86131
86132         * lib/config.charset: Update for newest glibc. Add canonical names
86133         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
86134
86135 2002-11-04  Bruno Haible  <bruno@clisp.org>
86136
86137         * lib/config.charset: Add support for NetBSD.
86138
86139 2002-11-04  Bruno Haible  <bruno@clisp.org>
86140
86141         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
86142
86143 2002-11-01  Bruno Haible  <bruno@clisp.org>
86144
86145         * configure.in: Add AC_CONFIG_AUX_DIR call.
86146         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
86147         test/Makefile.
86148         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
86149
86150 2002-09-28  Karl Berry  <karl@gnu.org>
86151
86152         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
86153         installed automake until the next release, since changes have been
86154         made.
86155
86156 2002-09-25  Karl Berry  <karl@gnu.org>
86157
86158         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
86159         * lib/getopt*: copy from libc/posix.
86160         * lib/gettext.h: copy from gettext.
86161         * lib/.cppi-disable: add strdup.c, gettext.h.
86162
86163 2002-09-25  Karl Berry  <karl@gnu.org>
86164
86165         * config/srclist.txt: enable gettext.h check.
86166         * config/config.{guess,sub}: update from prep.
86167         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
86168                 from automake 1.6.3.
86169         See srclist*.
86170
86171 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
86172
86173         * regex.c (PATFETCH): Remove the translating fetch.
86174         (PATFETCH_RAW): Rename to PATFETCH.
86175         (set_image_of_range): New fun.
86176         (SET_RANGE_TABLE_WORK_AREA): Use it.
86177         (regex_compile): Don't translate the pattern chars so eagerly.
86178         Only do it when inserting an `exactn' bytecode or when handling
86179         a char-range.
86180         (mutually_exclusive_p): Avoid empty statement.
86181
86182 2002-07-06  Jim Meyering  <meyering@lucent.com>
86183
86184         * m4/README: Don't mention Makefile.am.in.
86185         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
86186
86187 2002-07-01  Jim Meyering  <meyering@lucent.com>
86188
86189         * lib/c-stack.c: Include sys/time.h.
86190         From Volker Borchert.
86191
86192 2002-06-26  Paul Eggert  <eggert@twinsun.com>
86193
86194         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
86195
86196 2002-06-26  Paul Eggert  <eggert@twinsun.com>
86197
86198         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
86199         New macro.  Use it uniformly instead of
86200         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
86201         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
86202         reported by Vin Shelton.
86203
86204 2002-06-22  Paul Eggert  <eggert@twinsun.com>
86205
86206         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
86207         Do not assume SA_SIGINFO behavior.
86208         Bug reported by Jim Meyering on NetBSD 1.5.2.
86209
86210 2002-06-22  Jim Meyering  <meyering@lucent.com>
86211
86212         * m4/c-stack.m4: New file, from diffutils-2.8.2.
86213         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
86214
86215         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
86216         now that configure.ac uses AC_GNU_SOURCE.
86217         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
86218         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
86219
86220         Update to latest tools.  Suggestions from Paul Eggert.
86221         * m4/stdbool.m4: New file, from diffutils-2.8.2.
86222         * m4/gnu-source.m4: Update from diffutils-2.8.2.
86223         * m4/fnmatch.m4: Likewise.
86224         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
86225         to AC_HEADER_STDBOOL
86226
86227 2002-06-22  Jim Meyering  <meyering@lucent.com>
86228
86229         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
86230         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
86231
86232 2002-06-22  Jim Meyering  <meyering@lucent.com>
86233
86234         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
86235
86236         * lib/exitfail.c, exitfail.h: Likewise.
86237         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
86238
86239         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
86240         of fnmatch.h.
86241         (EXTRA_DIST): Add fnmatch_loop.c.
86242         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
86243
86244         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
86245         * lib/fnmatch.c: Update from diffutils-2.8.2.
86246         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
86247         * lib/fnmatch.h: Remove file.
86248
86249 2002-06-21  Jim Meyering  <meyering@lucent.com>
86250
86251         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
86252         * m4/mbrtowc.m4: Likewise.
86253
86254         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
86255         * m4/mbswidth.m4: Reflect name change:
86256         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
86257         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
86258
86259         * m4/lib-link.m4: Update from gettext-0.11.2.
86260         * m4/gettext.m4: Likewise.
86261
86262         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
86263         From Alfred M. Szmidt.
86264
86265 2002-06-18  Paul Eggert  <eggert@twinsun.com>
86266
86267         * lib/file-type.h: Report an error if neither S_ISREG nor
86268         S_IFREG is defined, instead of using a test specific to glibc
86269         2.2.  This should be safe, since POSIX requires S_ISREG and
86270         Unix Version 7 had S_IFREG.  We don't need to check for
86271         <sys/types.h> since we don't use any symbols that it defines.
86272
86273 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
86274
86275         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
86276         $@-t, so that each temporary file name is unique and valid in the first
86277         8 characters, for operation under DOS.
86278
86279 2002-06-15  Paul Eggert  <eggert@twinsun.com>
86280
86281         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
86282
86283 2002-06-15  Jim Meyering  <meyering@lucent.com>
86284
86285         Work even with DJGPP 2.03, which lacks support for symlinks.
86286         From Richard Dawe.
86287         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
86288         is defined.
86289         * lib/lchown.c (S_ISLNK): Likewise.
86290
86291 2002-06-15  Jim Meyering  <meyering@lucent.com>
86292
86293         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
86294         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
86295         have been included before this file.
86296
86297 2002-06-14  Jim Meyering  <meyering@lucent.com>
86298
86299         * lib/file-type.h: Use the version from diffutils-2.8.2.
86300         * lib/file-type.c: Likewise.
86301
86302 2002-06-07  Jim Meyering  <meyering@lucent.com>
86303
86304         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
86305         They're needed at least for NetBSD 1.5.2.
86306         ($statxfs_includes): Include those same headers.
86307         ($statxfs_includes): Include sys/vfs.h if available.
86308         ($statxfs_includes): Likewise for sys/statvfs.h.
86309         Check for the following members in both structs statfs and statvfs:
86310         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
86311
86312 2002-06-01  Jim Meyering  <meyering@lucent.com>
86313
86314         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
86315         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
86316
86317 2002-05-28  Jim Meyering  <meyering@lucent.com>
86318
86319         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
86320         Reported by Volker Borchert.
86321
86322 2002-05-27  Jim Meyering  <meyering@lucent.com>
86323
86324         Fix a problem seen only on nonconforming systems whereby ls.c's
86325         use of localtime, and then of gettimeofday would cause trouble:
86326         the localtime call used to initialize rpl_gettimeofday's save
86327         mechanism would clobber ls's current local time information so
86328         that in any long listing the first file would always be listed
86329         with date 1970-01-01.  Analysis by Volker Borchert.
86330
86331         * lib/gettimeofday.c (localtime): Undefine.
86332         (rpl_localtime): New function.
86333
86334 2002-05-27  Jim Meyering  <meyering@lucent.com>
86335
86336         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
86337         localtime.
86338
86339         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
86340         use the replacement function; it wouldn't resolve at link time.
86341         Reported by Volker Borchert.
86342
86343 2002-05-22  Jim Meyering  <meyering@lucent.com>
86344
86345         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
86346         file-type.h.
86347         * lib/file-type.h: New file.
86348         * lib/file-type.c (file_type): New file/function.  Extracted from
86349         diffutils.
86350
86351 2002-04-30  Jim Meyering  <meyering@lucent.com>
86352
86353         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
86354
86355 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86356
86357         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
86358
86359 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86360
86361         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
86362         Do not check for alloca.h (no longer used) or stdbool.h (was never
86363         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
86364
86365 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86366
86367         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
86368
86369 2002-04-29  Jim Meyering  <meyering@lucent.com>
86370
86371         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
86372         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
86373         Use AC_FUNC_STRNLEN here instead.
86374
86375         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
86376         With autoconf-2.53a, it's part of AC_PROG_CC.
86377
86378 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86379
86380         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
86381         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
86382
86383 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86384
86385         * lib/sig2str.h, lib/sig2str.c: New files.
86386         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
86387
86388 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86389
86390         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
86391         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
86392         of 127, since 64 is the largest conceivable number for ancient
86393         nonstandard hosts.
86394         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
86395
86396 2002-04-28  Jim Meyering  <meyering@lucent.com>
86397
86398         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
86399
86400 2002-04-24  Jim Meyering  <meyering@lucent.com>
86401
86402         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
86403         (jm_PREREQ): Use it.
86404
86405         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
86406         mach/mach.h fcntl.h.
86407         Check for this function: setlocale.
86408
86409 2002-04-24  Jim Meyering  <meyering@lucent.com>
86410
86411         * lib/gettext.h: New file, from Gettext.
86412         * lib/Makefile.am (INCLUDES): Remove -I../intl.
86413         (libfetish_a_SOURCES): Add gettext.h.
86414
86415 2002-04-16  Jim Meyering  <meyering@lucent.com>
86416
86417         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
86418         ut_pid, ut_id, ut_exit.
86419
86420 2002-04-16  Jim Meyering  <meyering@lucent.com>
86421
86422         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
86423         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
86424         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
86425
86426 2002-04-12  Jim Meyering  <meyering@lucent.com>
86427
86428         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
86429         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
86430         existence of the getmntinfo function.  Needed for Darwin 5.3.
86431
86432         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
86433         This is necessary at least on Darwin 5.3.
86434
86435         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
86436         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
86437         strnlen.o in the library, and that makes some versions of ranlib
86438         object.
86439
86440 2002-04-12  Jim Meyering  <meyering@lucent.com>
86441
86442         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
86443
86444 2002-04-09  Jim Meyering  <meyering@lucent.com>
86445
86446         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
86447         to be more precise.  Rather than saying we're checking whether the
86448         function `works', say what we're testing.
86449         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
86450         Reported by Bruno Haible.
86451
86452 2002-03-10  Jim Meyering  <meyering@lucent.com>
86453
86454         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
86455         Suggestion from Santiago Vila.
86456
86457 2002-03-08  Jim Meyering  <meyering@lucent.com>
86458
86459         * lib/rename.c: Mention that this wrapper is needed also on
86460         mips-dec-ultrix4.4 systems.
86461
86462 2002-03-02  Jim Meyering  <meyering@lucent.com>
86463
86464         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
86465         not HAVE_CLOCK_SETTIME.
86466
86467 2002-02-27  Paul Eggert  <eggert@twinsun.com>
86468
86469         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
86470         Check for clock_settime.
86471
86472 2002-02-27  Paul Eggert  <eggert@twinsun.com>
86473
86474         * lib/nanosleep.h: Rename to....
86475         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
86476
86477         * lib/gettime.c: New file.
86478         * lib/settime.c: New file.
86479         * lib/stime.c: Remove.
86480
86481         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
86482         timespec.h.  Remove nanosleep.h.
86483
86484 2002-02-25  Paul Eggert  <eggert@twinsun.com>
86485
86486         * m4/acl.m4: New file.
86487         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
86488         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
86489
86490 2002-02-25  Paul Eggert  <eggert@twinsun.com>
86491
86492         * lib/acl.c, lib/acl.h: New files.
86493         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
86494
86495 2002-02-24  Jim Meyering  <meyering@lucent.com>
86496
86497         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
86498         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
86499         cause trouble.  Reported by Nelson Beebe.
86500
86501 2002-02-23  Paul Eggert  <eggert@twinsun.com>
86502
86503         * lib/path-concat.c (xpath_concat): Reorder code to pacify
86504         compilers that don't know that xalloc_die never returns.
86505
86506 2002-02-20  Jim Meyering  <meyering@lucent.com>
86507
86508         * lib/getdate.c: Regenerate using bison-1.33.
86509
86510 2002-02-17  Jim Meyering  <meyering@lucent.com>
86511
86512         * config/config.guess (main): Don't use `head -1'; it's no longer
86513         portable. Use `sed 1q' instead.
86514
86515 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
86516
86517         * m4/codeset.m4: Upgrade to gettext-0.11.
86518         * m4/gettext.m4: Upgrade to gettext-0.11.
86519         * m4/glibc21.m4: Upgrade to gettext-0.11.
86520         * m4/iconv.m4: Upgrade to gettext-0.11.
86521         * m4/isc-posix.m4: Upgrade to gettext-0.11.
86522         * m4/lcmessage.m4: Upgrade to gettext-0.11.
86523         * m4/lib-ld.m4: New file, from gettext-0.11.
86524         * m4/lib-link.m4: New file, from gettext-0.11.
86525         * m4/lib-prefix.m4: New file, from gettext-0.11.
86526         * m4/progtest.m4: Upgrade to gettext-0.11.
86527
86528 2002-02-15  Paul Eggert  <eggert@twinsun.com>
86529
86530         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
86531         (jm_PREREQ): Use it.
86532
86533 2002-02-15  Paul Eggert  <eggert@twinsun.com>
86534
86535         * lib/posixver.c, lib/posixver.h: New files.
86536         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
86537
86538 2002-02-02  Paul Eggert  <eggert@twinsun.com>
86539             Bruno Haible  <bruno@clisp.org>
86540
86541         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
86542         (fwrite_success_callback): New declaration.
86543         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
86544         print_unicode_char. Call failure callback instead of error.
86545         (fwrite_success_callback): New function.
86546         (exit_failure_callback): New function.
86547         (fallback_failure_callback): New function.
86548         (print_unicode_char): Call unicode_to_mb.
86549
86550 2002-01-26  Jim Meyering  <meyering@lucent.com>
86551
86552         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
86553         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
86554
86555 2002-01-26  Jim Meyering  <meyering@lucent.com>
86556
86557         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
86558
86559 2002-01-22  Paul Eggert  <eggert@twinsun.com>
86560
86561         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
86562
86563 2002-01-22  Jim Meyering  <meyering@lucent.com>
86564
86565         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
86566         Otherwise, some versions of automake would omit the rule that makes
86567         Makefile from Makefile.in.
86568
86569 2002-01-21  Paul Eggert  <eggert@twinsun.com>
86570
86571         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
86572         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
86573         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
86574         (memcoll): Set errno to zero if there is no error.
86575
86576         * lib/quotearg.c (quotearg_buffer_restyled):
86577         Fix bug with quoting buffers containing NUL when backslashing escapes.
86578         This bug was exposed by the other changes in this patch.
86579         (quotearg_n_options): New arg ARGSIZE.
86580         All callers changed.
86581         (quoting_options_from_style): New function.
86582         (quotearg_n_style): Use it.
86583         (quotearg_n_style_mem): New function.
86584
86585         * lib/quotearg.h (quotearg_n_style_mem): New function.
86586
86587 2002-01-19  Jim Meyering  <meyering@lucent.com>
86588
86589         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
86590         Remove useless quotes: DF_PROG="df".
86591         * m4/strnlen.m4: New file.
86592
86593 2002-01-16  Paul Eggert  <eggert@twinsun.com>
86594
86595         * lib/backupfile.c (ISDIGIT): Comment fix.
86596         * lib/getdate.y (ISDIGIT): Likewise.
86597         * lib/posixtm.c (ISDIGIT, year): Likewise.
86598         * lib/strverscmp.c (ISDIGIT): Likewise.
86599         * lib/userspec.c (ISDIGIT): Likewise.
86600
86601 2002-01-16  Jim Meyering  <meyering@lucent.com>
86602
86603         * lib/getdate.y: Add three semicolons, each just before a closing
86604         brace. Bison (as of version 1.31) no longer papers over that mistake.
86605
86606 2002-01-05  Jim Meyering  <meyering@lucent.com>
86607
86608         * lib/version-etc.c (version_etc_copyright): Update copyright year.
86609
86610 2001-12-19  Paul Eggert  <eggert@twinsun.com>
86611
86612         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
86613         not silently exit merely because the output buffer happens to
86614         have nothing pending.
86615
86616 2001-12-18  Paul Eggert  <eggert@twinsun.com>
86617
86618         See the big note in ../ChangeLog.
86619         * lib/human.c (suffixes): Prefer K to k for 1024.
86620         (generate_suffix_backwards): New function.
86621         (human_readable_inexact): Use it.
86622         * lib/xstrtol.c (__xstrtol): If there is no number but there
86623         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
86624         Accept 'K' as well as 'k'.
86625
86626 2001-12-15  Jim Meyering  <meyering@lucent.com>
86627
86628         * lib/regex.h (__restrict_arr): Update from libc.
86629
86630         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
86631         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
86632         (STREQ): Define.
86633
86634 2001-12-14  Jim Meyering  <meyering@lucent.com>
86635
86636         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
86637         Suggestion from Bruno Haible.
86638
86639 2001-12-10  Jim Meyering  <meyering@lucent.com>
86640
86641         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
86642         xrealloc, Instead, include "xalloc.h".
86643         (initbuffer): Don't cast xmalloc return value to char*.
86644         (readline): Reword comment.
86645         Don't cast xrealloc return value to char*
86646         Return NULL, not 0.
86647
86648 2001-12-09  Jim Meyering  <meyering@lucent.com>
86649
86650         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
86651         about `signed and unsigned type in conditional expression'.
86652         * lib/posixtm.c (posix_time_parse): Likewise.
86653
86654         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
86655
86656         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
86657         to avoid a pedantic warning.
86658
86659         * lib/getstr.c: Don't include assert.h.
86660         (getstr): Remove warning-evoking assertions.
86661         Return -1 if offset parameter is out of bounds.
86662         Change the type of a local from int to size_t.
86663
86664         * lib/strftime.c (my_strftime_localtime_r): Include this function
86665         definition in the `#if ! HAVE_TM_GMTOFF' block.
86666
86667         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
86668         Include xalloc.h instead.
86669
86670 2001-12-02  Jim Meyering  <meyering@lucent.com>
86671
86672         * lib/tempname.c: Don't declare getenv, thus reverting the change of
86673         2001-11-18.  It's no longer necessary, now that stdlib.h is always
86674         included.
86675
86676         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
86677         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
86678
86679 2001-11-30  Akim Demaille  <akim@epita.fr>
86680
86681         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
86682         before being defined.
86683
86684 2001-11-27  Paul Eggert  <eggert@twinsun.com>
86685
86686         * lib/quotearg.h (quotearg_n, quotearg_n_style):
86687         First arg is int, not unsigned.
86688         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
86689         (SIZE_MAX, UINT_MAX): New macros.
86690         (quotearg_n_options): Abort if N is negative.
86691         Avoid overflow check on hosts where size_t is 64 bits and int
86692         is 32 bits, as overflow is impossible there.
86693         Fix off-by-one typo that caused unnecessary reallocation.
86694
86695 2001-11-27  Jim Meyering  <meyering@lucent.com>
86696
86697         * lib/tempname.c: Merge with version from libc.
86698         * lib/regex.c: Likewise.
86699
86700         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
86701         systems for which STDC_HEADERS is 0, it was not included, resulting in
86702         a warning about an integer-to-pointer conversion problem with getenv.
86703         Reported by Volker Borchert.
86704
86705 2001-11-26  Jim Meyering  <meyering@lucent.com>
86706
86707         * lib/gtod.h: Remove file.
86708         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
86709         * lib/gettimeofday.c: Don't include gtod.h.
86710         (GTOD_init): Remove function.
86711         (rpl_gettimeofday): Do its job here instead, rather than aborting.
86712         Suggestion from Volker Borchert.
86713
86714 2001-11-23  Jim Meyering  <meyering@lucent.com>
86715
86716         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
86717         it.
86718         * lib/hash.c (struct hash_table): Define it here instead.
86719
86720 2001-11-22  Jim Meyering  <meyering@lucent.com>
86721
86722         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
86723
86724 2001-11-20  Jim Meyering  <meyering@lucent.com>
86725
86726         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
86727         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
86728
86729 2001-11-19  Jim Meyering  <meyering@lucent.com>
86730
86731         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
86732         directory.  Use "conftestXXXXXX" as the template.
86733         Suggestion from Paul Eggert.
86734
86735         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
86736         immediately, so the test doesn't mistakenly hit the max-open-files
86737         limit.
86738
86739 2001-11-18  Paul Eggert  <eggert@twinsun.com>
86740
86741         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
86742         (TEMPORARIES): New macro.
86743         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
86744         removes an artificial limitation (e.g. HP-UX 10.20, where
86745         TMP_MAX is 17576).
86746
86747 2001-11-18  Jim Meyering  <meyering@lucent.com>
86748
86749         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
86750
86751 2001-11-18  Jim Meyering  <meyering@lucent.com>
86752
86753         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
86754         on SunOS 4.
86755
86756         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
86757         files will be created before anything else.
86758
86759 2001-11-17  Paul Eggert  <eggert@twinsun.com>
86760
86761         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
86762         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
86763
86764 2001-11-17  Jim Meyering  <meyering@lucent.com>
86765
86766         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
86767         Prompted by a report from Bob Proulx.
86768
86769         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
86770         Instead, require UTILS_FUNC_MKSTEMP.
86771
86772 2001-11-17  Jim Meyering  <meyering@lucent.com>
86773
86774         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
86775         Now, that's done as part of AC_FUNC_STRTOD.
86776
86777 2001-11-17  Jim Meyering  <meyering@lucent.com>
86778
86779         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
86780         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
86781         rather than group writable.  Patch by Juan F. Codagnone.
86782
86783         * lib/readtokens.c: Remove explicit declarations of xmalloc and
86784         xrealloc, Instead, include "xalloc.h".
86785
86786         * lib/mountlist.c: Include unlocked-io.h after all system headers.
86787         Remove explicit declarations of xmalloc, xrealloc,
86788         and xstrdup.  Instead, include "xalloc.h".
86789
86790         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
86791         unlocked-io.h.
86792         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
86793         Likewise.
86794         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
86795
86796         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
86797         Reported by Padraig Brady.
86798
86799         * lib/mkstemp.c: #undef mkstemp.
86800         Include config.h.
86801         (rpl_mkstemp): Rename from mkstemp.
86802         Protoize.
86803
86804 2001-11-16  Jim Meyering  <meyering@lucent.com>
86805
86806         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
86807         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
86808         determine the amount of total physical memory, use pstat_getstatic.
86809         HPUX-11 doesn't define _SC_PHYS_PAGES.
86810         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
86811         If sysconf couldn't be used to determine the amount of available
86812         physical memory, use both pstat_getstatic and pstat_getdynamic.
86813         Based on a patch from Bob Proulx.
86814
86815 2001-11-10  Jim Meyering  <meyering@lucent.com>
86816
86817         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
86818         (jm_PREREQ): Use it.
86819
86820 2001-11-09  Jim Meyering  <meyering@lucent.com>
86821
86822         * m4/jm-macros.m4: Require autoconf-2.52f.
86823         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
86824         Use these AC_-prefixed names, not the AM_-prefixed ones.
86825
86826         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
86827
86828 2001-11-05  Jim Meyering  <meyering@lucent.com>
86829
86830         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
86831
86832 2001-11-04  Jim Meyering  <meyering@lucent.com>
86833
86834         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
86835         $DEFS.
86836
86837 2001-11-03  Jim Meyering  <meyering@lucent.com>
86838
86839         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
86840         of AC_DEFUN.
86841
86842         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
86843         know the name of the variable in the macro definition.
86844
86845 2001-11-03  Jim Meyering  <meyering@lucent.com>
86846
86847         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
86848         in argmatch_to_argument call.
86849
86850         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
86851         argument.
86852
86853         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
86854         e.g., a fault due to an attempt to free a NULL pointer.
86855
86856 2001-11-01  Jim Meyering  <meyering@lucent.com>
86857
86858         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
86859         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
86860
86861 2001-11-01  Jim Meyering  <meyering@lucent.com>
86862
86863         * lib/dirfd.c, lib/dirfd.h: New files.
86864         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
86865
86866         * lib/hash.c (hash_print) [TESTING]: Clean up.
86867
86868 2001-10-22  Paul Eggert  <eggert@twinsun.com>
86869
86870         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
86871         to avoid a warning if -Wall.
86872
86873 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
86874
86875         * README: New file
86876         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
86877         (per RMS's instructions, this is now the canonical source)
86878         * lgpl/, gpl/: New directories.
86879
86880 2001-10-21  Paul Eggert  <eggert@twinsun.com>
86881
86882         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
86883
86884 2001-10-21  Jim Meyering  <meyering@lucent.com>
86885
86886         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
86887         this code would end up calling gettext even in packages built
86888         with --disable-nls.
86889         * lib/getopt.c (_): Likewise.
86890         * lib/regex.c (_): Likewise.
86891
86892 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86893
86894         * m4/error.m4 (jm_PREREQ_ERROR):
86895         Do not invoke AC_CHECK_FUNCS with strerror_r, as
86896         AC_FUNC_STRERROR_R does that.
86897         Check for strerror declaration.
86898
86899         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
86900         are supposed to have them these days.
86901         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
86902         Merge changes from latest Autoconf CVS.
86903         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
86904         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
86905         POSIX decided to standardize on the int flavor of strerror_r.
86906
86907 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86908
86909         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
86910         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
86911         Use strerror_r that is only a macro, even if it is not a function.
86912         (strerror): Check for HAVE_DECL_STRERROR before declaring.
86913         (private_strerror): Use prototypes, not old-style function definition.
86914         (print_errno_message): New function.
86915         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
86916         char*-flavored one.
86917         (error_tail, error, error_at_line): Use it.
86918
86919 2001-10-11  Jim Meyering  <meyering@lucent.com>
86920
86921         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
86922         and quote_n (1, ... to avoid clobbering a buffer.
86923
86924 2001-10-05  Jim Meyering  <meyering@lucent.com>
86925
86926         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
86927         hash-pjw.h.
86928         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
86929         * lib/hash-pjw.h: New file.
86930
86931 2001-09-30  Jim Meyering  <meyering@lucent.com>
86932
86933         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
86934         `struct fsstat' has the `f_fstypename' member.
86935         Use that to define FS_TYPE, which is now used to make
86936         the getfsstat link test tighter.
86937
86938 2001-09-30  Jim Meyering  <meyering@lucent.com>
86939
86940         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
86941         Include <sys/ucred.h>, for Apple Darwin.
86942         Include sys/mount.h and sys/fs_types.h only if available.
86943         (FS_TYPE): Define.
86944         (read_filesystem_list): Use FS_TYPE.
86945
86946 2001-09-29  Paul Eggert  <eggert@twinsun.com>
86947
86948         * lib/exclude.c (excluded_filename): 0 -> false, since it's
86949         a boolean context.
86950
86951 2001-09-29  Jim Meyering  <meyering@lucent.com>
86952
86953         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86954         [one-argument getmntent function]): Include stdio.h before mntent.h.
86955         SunOS 4.1.x needs it for the declaration of `FILE'.
86956         Patch by Volker Borchert.
86957
86958         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86959         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
86960         sys/fs_types.h, and make the link-test for getfsstat guard #include
86961         directives with appropriate #if HAVE_*_H tests so that we can
86962         detect getfsstat on Apple Darwin1.3.7 systems.
86963         Reported by Nelson Beebe.
86964         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
86965
86966 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86967
86968         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86969         #defines strtoimax.  Also treat the other strto* functions
86970         like strtoimax.
86971
86972         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86973         Check for strtoul and strtoumax,
86974         as those declarations are made even in the signed case.
86975         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
86976         Likewise, for strtol and strtoimax.
86977
86978 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86979
86980         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86981         #defines strtoimax.  Also treat the other strto* functions
86982         like strtoimax.
86983
86984         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
86985         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
86986         (strtoimax, strtoumax): Do not declare if already defined as a macro.
86987
86988 2001-09-26  Jim Meyering  <meyering@lucent.com>
86989
86990         Most macros in unlocked-io.h had the wrong number of arguments.
86991         * lib/gen-uio: New script.
86992         (USE_UNLOCKED_IO): Define to 1 if not already defined.
86993         * lib/unlocked-io.hin: Remove file.
86994         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
86995         rather than trying to embed it here.
86996         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
86997         Reported by Padraig Brady.
86998
86999 2001-09-25  Volker Borchert  <bt@teknon.de>
87000
87001         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
87002         `result'.
87003
87004 2001-09-24  Jim Meyering  <meyering@lucent.com>
87005
87006         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
87007
87008 2001-09-23  Jim Meyering  <meyering@lucent.com>
87009
87010         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
87011         instead of the mere test for existence of mntent.h.  The latter
87012         would get a false-positive on AIX 3.4 systems.
87013         In the outer getmntent if-block, don't die if neither of the getmntent
87014         tests succeeds.  Instead, just fall through and continue with the
87015         remaining tests.
87016
87017 2001-09-23  Jim Meyering  <meyering@lucent.com>
87018
87019         * lib/mountlist.c: Remove useless parentheses in #if directives.
87020         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
87021         the deprecated MOUNTED symbol is no longer defined in mntent.h.
87022
87023 2001-09-22  Jim Meyering  <meyering@lucent.com>
87024
87025         * m4/gettext.m4: New file.  From gettext.
87026         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
87027         * m4/progtest.m4: Likewise
87028         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
87029         * m4/glibc21.m4: Likewise.
87030
87031         * m4/libintl.m4: Remove.  No longer used.
87032
87033 2001-09-22  Jim Meyering  <meyering@lucent.com>
87034
87035         * lib/localcharset.c: Update from latest gettext.
87036         * lib/config.charset: Likewise.
87037
87038 2001-09-20  Jim Meyering  <meyering@lucent.com>
87039
87040         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
87041         strtoimax.
87042         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
87043         strtoumax.
87044
87045 2001-09-20  Jim Meyering  <meyering@lucent.com>
87046
87047         * lib/xstrtol.c (strtoimax): Guard declaration with
87048         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
87049         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
87050         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
87051         (strtoumax): Likewise, for completeness (it wasn't necessary).
87052
87053 2001-09-17  Paul Eggert  <eggert@twinsun.com>
87054
87055         * lib/strtoimax.c (HAVE_LONG_LONG):
87056         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
87057         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
87058         to work around bug in IBM C compiler.
87059
87060 2001-09-17  Jim Meyering  <meyering@lucent.com>
87061
87062         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
87063         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
87064         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
87065         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
87066         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
87067         whenever the right hand side need not be expanded by the shell.
87068
87069 2001-09-16  Paul Eggert  <eggert@twinsun.com>
87070
87071         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
87072         library.  It's not correct, as some older glibcs are buggy.
87073         fnmatch wasn't fixed until glibc 2.2.
87074
87075         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
87076         special shell magic here.
87077
87078 2001-09-16  Jim Meyering  <meyering@lucent.com>
87079
87080         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
87081         * m4/jm-macros.m4: Require it.
87082
87083 2001-09-16  Jim Meyering  <meyering@lucent.com>
87084
87085         * lib/mkdir.c: New file.
87086
87087 2001-09-15  Jim Meyering  <meyering@lucent.com>
87088
87089         * m4/jm-macros.m4: Check for help2man.
87090
87091 2001-09-11  Jim Meyering  <meyering@lucent.com>
87092
87093         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
87094         The body, by Paul Eggert, was moved here from configure.in.
87095         * m4/jm-macros.m4: Require UTILS_HOST_OS.
87096
87097 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87098
87099         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
87100         (jm_PREREQ): Use it.
87101
87102 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87103
87104         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
87105         Use ssize_t, not int, to store result of readlink.
87106         Check for ssize_t overflow as well as size_t overflow,
87107         as POSIX says the result of readlink is implementation-defined
87108         when ssize_t overflows.
87109         Remove unnecessary cast to char*.
87110         Use free+malloc instead of realloc, as the storage doesn't need
87111         to be preserved and it's clearer and can be more efficient that way.
87112         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
87113         * lib/xreadlink.h (xreadlink): Update prototype.
87114
87115 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87116
87117         * lib/xgetcwd.c: Revert some of the previous change; intead,
87118         fix the HAVE_GETCWD_NULL code to behave more like the
87119         !HAVE_GETCWD_NULL code used to.
87120
87121         Include "xalloc.h".
87122         (xgetcwd): Do not return NULL when memory is exhausted; instead,
87123         invoke xalloc_die.
87124
87125 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87126
87127         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
87128         sys/param.h, as pathmax.h includes them.
87129
87130 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87131
87132         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
87133         (jm_PREREQ_XGETCWD): New macro.
87134
87135         * m4/getcwd.m4: New file.
87136
87137 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87138
87139         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
87140         like the HAVE_GETCWD_NULL code.
87141         Include pathmax.h if not HAVE_GETCWD.
87142         Do not include xalloc.h.
87143         (INITIAL_BUFFER_SIZE): New symbol.
87144         Do not use xmalloc / xrealloc, since the caller is responsible for
87145         handling errors.  Preserve errno around `free' during failure.
87146         Do not overrun buffer when using getwd.
87147
87148 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87149
87150         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
87151         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
87152         getcwd (NULL, 0).
87153
87154 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87155
87156         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
87157         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
87158         spotted by Jim Meyering.
87159
87160 2001-09-03  Jim Meyering  <meyering@lucent.com>
87161
87162         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
87163         failure.
87164
87165 2001-09-02  Jim Meyering  <meyering@lucent.com>
87166
87167         * lib/error.c: Update from GNU libc.
87168
87169 2001-09-01  Jim Meyering  <meyering@lucent.com>
87170
87171         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
87172         Used by df.
87173
87174 2001-09-01  Jim Meyering  <meyering@lucent.com>
87175
87176         * lib/xreadlink.c: New file.
87177         * lib/xreadlink.h: New file.
87178         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
87179         xreadlink.h.
87180
87181         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
87182         doesn't conflict with sparc Solaris 7's definition in
87183         /usr/include/sys/int_types.h.
87184
87185         * lib/exclude.c: Use `""', not `<>' to #include non-system header
87186         files.
87187         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
87188         and strncasecmp as r-values.  Unixware didn't have declarations.
87189
87190 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87191
87192         * lib/xstrtol.h: Add copyright notice.
87193         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
87194         LONGINT_INVALID_SUFFIX_CHAR.
87195
87196 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87197
87198         * lib/xstrtol.c (strtoimax): New decl.
87199
87200 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87201
87202         * lib/xgetcwd.c: Don't include pathmax.h.
87203         Include stdlib.h and unistd.h if available.
87204         Include xalloc.h.
87205         (xmalloc, xstrdup, free): Remove decls.
87206         (xgetcwd): Don't assume sizes fit in unsigned.
87207         Check for overflow when computing sizes.
87208         Simplify reallocation code.
87209
87210 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87211
87212         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
87213         a directory's st_size can have an arbitrary value, so the old
87214         usage could waste an arbitrary amount of memory.  All uses
87215         changed.
87216         * lib/savedir.h: Update prototype.
87217
87218 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87219
87220         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
87221
87222         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
87223         old strtoimax.c.
87224
87225         Also, make the following further changes to make this file's
87226         configuration more similar to that of strtol.c:
87227         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
87228         (strtoumax, uintmax_t, strtoull, strtol): Remove.
87229         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
87230         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
87231         changed to signed values.
87232
87233         And make the following changes as well:
87234         Fix copyright notice, as 1999 was missing.
87235         (verify): New macro.
87236         (strtoimax): Check sizes at compile-time, not run-time.
87237         Prefer strtol to strtoll if both work.
87238         (main): Remove; it was not that useful and was a pain to maintain.
87239
87240         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
87241
87242 2001-08-31  Jim Meyering  <meyering@lucent.com>
87243
87244         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
87245         Use an initial, malloc'd, buffer of length 128 rather than
87246         a statically allocated one of length 1024.
87247
87248 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87249
87250         Simplify code, partly by assuming autoconf 2.52 semantics.
87251
87252         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
87253
87254         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
87255         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
87256         All uses removed.
87257         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
87258         Move AC_REQUIRE to next-to-top level, to avoid confusion.
87259         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
87260         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
87261         jm_AC_HEADER_INTTYPES_H.
87262         * m4/jm-macros.m4 (jm_MACROS): Likewise.
87263
87264         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
87265
87266         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
87267         Quote first arg of AC_DEFUN.
87268         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
87269         since they are needed to parse the include file even if we need
87270         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
87271         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
87272         but with opposite signedness.
87273
87274 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87275
87276         Merge 'exclude' changes from tar 1.13.22.
87277         This fixes one or two unlikely storage allocation overflow bugs,
87278         but doesn't change user-visible behavior otherwise.
87279
87280 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87281
87282         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
87283         (jm_PREREQ_EXCLUDE): New macro.
87284
87285 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87286
87287         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
87288         tm to be declared.
87289
87290 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87291
87292         * lib/hash.c: Remove '2001' from copyright notice.
87293
87294 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87295
87296         * lib/full-write.h: New file.
87297         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
87298         * lib/full-write.c: Correct credits, as cccp.c no longer
87299         exists and anyway it was so heavily changed from the old cccp
87300         code as to be unrecognizable.  Include full-write.h.
87301         (full_write): Return size_t, with short writes meaning failure.
87302         All callers changed.  This fixes a bug with large buffers
87303         on 64-bit hosts.
87304         * lib/utime.c: Include full-write.h.
87305
87306 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87307
87308         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
87309         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
87310         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
87311         Include if available.
87312         (<xalloc.h>): Include
87313         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
87314         (verify): New macro.  Use it to verify that EXCLUDE macros do not
87315         collide with FNM macros.
87316         (struct patopts): New struct.
87317         (struct exclude): Use it, as exclude patterns now come with options.
87318         (new_exclude): Support above changes.
87319         (new_exclude, add_exclude_file):
87320         Initial size must now be a power of two to simplify overflow checking.
87321         (free_exclude, fnmatch_no_wildcards): New function.
87322         (excluded_filename): No longer requires options arg, as the options
87323         are determined by add_exclude.  Now returns bool, not int.
87324         (excluded_filename, add_exclude):
87325         Add support for the fancy new exclusion options.
87326         (add_exclude, add_exclude_file): Now takes int options arg.
87327         Check for arithmetic overflow when computing sizes.
87328         (add_exclude_file): xrealloc might modify errno, so don't
87329         realloc until after errno might be used.
87330
87331         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
87332         New macros.
87333         (free_exclude): New decl.
87334         (add_exclude, add_exclude_file): Now takes int options arg.
87335         (excluded_filename): No longer requires options arg, as the options
87336         are determined by add_exclude.  Now returns bool, not int.
87337
87338 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87339
87340         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
87341
87342 2001-08-27  Jim Meyering  <meyering@lucent.com>
87343
87344         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
87345
87346         * lib/version-etc.c (N_): Remove definition.
87347         Revert most of last change.
87348         Instead, simply don't mark the `Copyright...' string for translation.
87349         Based on advice from Paul Eggert.
87350
87351         * lib/strtoxmax.c: Tweak comment.
87352
87353 2001-08-26  Jim Meyering  <meyering@lucent.com>
87354
87355         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
87356
87357         * m4/xstrtoimax.m4: New file.
87358         * m4/xstrtoumax.m4: Add comments explaining why we
87359         AC_REPLACE_FUNCS(strtol).
87360
87361 2001-08-26  Jim Meyering  <meyering@lucent.com>
87362
87363         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
87364         of copyright with `%s' so translators don't get an untranslated
87365         message in 2002.
87366         (COPYRIGHT_YEAR): Define.
87367         (version_etc): Use fprintf rather than fputs.
87368         Suggestion from Ulrich Drepper.
87369
87370         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
87371
87372         * lib/strtoll.c: New file, from GNU libc.
87373         * lib/xstrtoimax.c: New file.
87374
87375         * lib/xstrtol.h: Add xstrtoimax.
87376         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
87377         * lib/strtoimax.c: New file.  Likewise, but first define
87378         STRTOUXMAX_SIGNED.
87379
87380         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
87381         ...
87382         * lib/strtoxmax.c: ... then renamed to this.
87383
87384 2001-08-18  Paul Eggert  <eggert@twinsun.com>
87385
87386         * m4/inttypes.m4: Add AC_PREREQ(2.13).
87387         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
87388         (jm_AC_TYPE_INTMAX_T): New macro.
87389         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
87390
87391         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
87392
87393         * m4/longlong.m4: Renamed from ulonglong.m4.
87394         * m4/inttypes.m4: Renamed from inttypes_h.m4.
87395         * m4/uintmax_t.m4: Removed.
87396
87397 2001-08-13  Paul Eggert  <eggert@twinsun.com>
87398
87399         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
87400         Port to Solaris 8, where 'sed' requires a space after the 'r'
87401         command, and where sh dislikes "$/".  Clean up the spacing a bit.
87402         Redirect output to $tmp just once.
87403
87404 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
87405
87406         * lib/addext.c (<errno.h>): Include.
87407         (errno): Declare if not defined.
87408         (addext): Work correctly when pathconf returns -1 and leaves
87409         errno alone because there is no limit.  Also, work even if
87410         pathconf returns a value greater than SIZE_MAX.
87411
87412 2001-08-12  Jim Meyering  <meyering@lucent.com>
87413
87414         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
87415         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
87416         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
87417         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
87418         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
87419         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
87420         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
87421         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
87422         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
87423         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
87424         utime.m4, utimes.m4, xstrtoumax.m4:
87425         Quote the first argument in each use of AC_DEFUN.
87426
87427 2001-08-12  Jim Meyering  <meyering@lucent.com>
87428
87429         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
87430         Simply `return getcwd (NULL, 0);'.
87431         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
87432         Use 1300 as initial value for length, not PATH_MAX.
87433
87434         * lib/pathmax.h: Clean up cpp syntax.
87435
87436 2001-08-12  Jim Meyering  <meyering@lucent.com>
87437
87438         * lib/gettimeofday.c: New file.
87439         * lib/gtod.h: New file.
87440         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
87441
87442 2001-08-05  Jim Meyering  <meyering@lucent.com>
87443
87444         * m4/jm-macros.m4: Require autoconf-2.52.
87445
87446 2001-08-04  Jim Meyering  <meyering@lucent.com>
87447
87448         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
87449         stmt, to get in sync with glibc.
87450
87451 2001-08-03  Paul Eggert  <eggert@twinsun.com>
87452
87453         The following changes are from gettext 0.10.39 as maintained by
87454         Bruno Haible.
87455
87456         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
87457         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
87458         with inverted sense.  All uses changed.
87459
87460         * lib/mbswidth.c: Don't include <limits.h>.
87461         Include <stdlib.h> and <string.h> unconditionally.
87462         (iswcntrl, mbsinit, ISCNTRL): New macros.
87463         (mbsnwidth): Use K&R style function declarations.
87464         Don't bother checking for MB_LEN_MAX == 1, since the compiler
87465         can optimize it when MB_CUR_MAX == 1.
87466         The width of control characters is zero, not 1.
87467
87468 2001-08-03  Paul Eggert  <eggert@twinsun.com>
87469
87470         The following changes are from gettext 0.10.39 as maintained by
87471         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
87472
87473         * m4/codeset.m4: Upgrade to serial AM1.
87474         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
87475         all uses changed.  Quote first arg of AC_DEFUN.
87476         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
87477
87478         * m4/iconv.m4: Upgrade to serial AM2.
87479         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
87480         Add --with-libconv-prefix.
87481         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
87482         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
87483         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
87484         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
87485         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
87486
87487         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
87488         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
87489         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
87490         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
87491         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
87492         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
87493         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
87494         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
87495         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
87496
87497         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
87498         string.h any more.
87499
87500         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
87501         not the default value.
87502
87503         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
87504         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
87505         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
87506         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
87507         Also check for iswcntrl, used for wcwidth fallback.
87508         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
87509         to Autoconf 2.13.
87510
87511 2001-08-03  Jim Meyering  <meyering@lucent.com>
87512
87513         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
87514         as it was in the original.  Reported by Paul Eggert.
87515
87516 2001-07-16  Jim Meyering  <meyering@lucent.com>
87517
87518         * m4/gettimeofday.m4: New file.
87519         Prompted by a report from Bernhard Baehr.
87520
87521 2001-07-15  Jim Meyering  <meyering@lucent.com>
87522
87523         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
87524         stuff. Now it's in ../Makefile.cfg.
87525
87526 2001-07-15  Jim Meyering  <meyering@lucent.com>
87527
87528         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
87529         (BUILT_SOURCES): Add unlocked-io.h.
87530         (io_functions): Define.
87531         (unlocked-io.h): New rule.
87532         (DISTCLEANFILES): Add unlocked-io.h.
87533         (all-local): Depend on unlocked-io.h, to ensure it is created.
87534
87535         * lib/unlocked-io.hin: New file
87536
87537         * lib/regex.c: Update from glibc.
87538
87539 2001-07-05  Jim Meyering  <meyering@lucent.com>
87540
87541         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
87542         recommendation.
87543         (libfetish_a_SOURCES): Put all .h files here instead.
87544         Remove a thus-exposed (better checks in automake) duplicate and
87545         two unnecessary .h files.
87546
87547 2001-07-04  Jim Meyering  <meyering@lucent.com>
87548
87549         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
87550         that generates jm-glibc-io.m4 so that it doesn't trigger any make
87551         distcheck failure.
87552
87553 2001-07-02  Jim Meyering  <meyering@lucent.com>
87554
87555         The following changes were prompted by suggestions from Bruno Haible.
87556
87557         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
87558         is now generated.
87559         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
87560         definition of EXTRA_DIST.
87561         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
87562         ensure that the generated file is created/updated whenever the list
87563         of $(unlocked_functions) is changed.
87564         (jm-glibc-io.m4): New rule.
87565         (unlocked-io.h): New rule -- currently unused.
87566
87567 2001-06-24  Jim Meyering  <meyering@lucent.com>
87568
87569         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
87570         unmatched right bracket, rather than kludging it with an extra,
87571         falsely-matching quote in a comment.  Patch by Akim Demaille.
87572
87573 2001-06-11  Jim Meyering  <meyering@lucent.com>
87574
87575         * lib/regex.c: Update from GNU libc.
87576
87577 2001-05-27  Jim Meyering  <meyering@lucent.com>
87578
87579         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
87580         Check for ut_type in struct utmp.
87581
87582 2001-05-27  Jim Meyering  <meyering@lucent.com>
87583
87584         * lib/readutmp.h (UT_TYPE): Define.
87585
87586 2001-05-24  Jim Meyering  <meyering@lucent.com>
87587
87588         * lib/argmatch.c: Include "quote.h".
87589         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
87590         quote function.  Reported by Göran Uddeborg.
87591
87592 2001-05-22  Jim Meyering  <meyering@lucent.com>
87593
87594         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
87595         now that we use the package-supplied version unconditionally.
87596         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
87597
87598 2001-05-21  Jim Meyering  <meyering@lucent.com>
87599
87600         * m4/regex.m4: Change a couple backticks to single quotes to avoid
87601         shell syntax errors.
87602
87603 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
87604
87605         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
87606
87607 2001-05-20  Paul Eggert  <eggert@twinsun.com>
87608
87609         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
87610         Don't bother to check library strftime, since
87611         we'll be using our own my_strftime function anyway.
87612         Define my_strftime instead of strftime.
87613
87614 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
87615
87616         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
87617         which is not yet declared.
87618
87619 2001-05-15  Jim Meyering  <meyering@lucent.com>
87620
87621         * m4/regex.m4: Use proper quoting so brackets appear in the test
87622         program.
87623         Reported by, and with help from, Bruno Haible.
87624
87625 2001-05-13  Jim Meyering  <meyering@lucent.com>
87626
87627         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
87628         undefined.
87629
87630 2001-05-11  Paul Eggert  <eggert@twinsun.com>
87631
87632         dirname code cleanup.  base_name now behaves more compatibly
87633         with POSIX basename when given file names that have trailing
87634         slashes, and similarly for dir_name.  Add new primitives
87635         base_len and dir_len.  Put the directory-name-related decls
87636         into dirname.h.
87637
87638         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
87639         * lib/backupfile.c (base_name): Likewise.
87640         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
87641         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
87642         * lib/makepath.c (strip_trailing_slashes): Likewise.
87643         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
87644         ISSLASH): Likewise.
87645         * lib/rename.c (strip_trailing_slashes): Likewise.
87646         * lib/same.c (base_name): Likewise.
87647         * lib/stripslash.c (ISSLASH): Likewise.
87648
87649         * lib/addext.c: Include <dirname.h> after size_t is defined.
87650         * lib/backupfile.c: Likewise.
87651
87652         * lib/addext.c (addext): Use base_len to trim redundant
87653         trailing slashes instead of doing it ourselves.
87654         But do not trim the last slash if it is not redundant.
87655
87656         * lib/backupfile.c (find_backup_file_name,
87657         max_backup_version): Use base_len instead of rolling it ourselves.
87658         Handle the case of "" and (on DOS) "C:" correctly.
87659
87660         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
87661         needed. Include <string.h>, <dirname.h>.
87662         (base_name): Allow file names ending in slashes, other than names
87663         that are all slashes.  In this case, return the basename followed
87664         by the slashes.  This is more general, and can be used in places
87665         where the original base_name purposely had an assertion failure.
87666         (base_len): New function.
87667
87668         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
87669         Do not include <assert.h>; no longer needed.
87670         Include xalloc.h.
87671         (memrchr): Remove decl.
87672         (dir_name_r): Remove.
87673         (dir_len): Renamed from dirlen.  All callers changed.
87674         Rewrite in terms of base_name, for simplicity and consistency.
87675         (dir_name): Never return NULL.  All callers changed.
87676         Do not include <stdlib.h> in test program; no longer needed.
87677         return 0; is fine for test program.
87678
87679         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
87680         New macros.
87681         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
87682
87683         * lib/path-concat.c (path_concat): Use base_len to compute
87684         base length, not strlen; this means we cannot rely on memcpy
87685         to null-terminate.
87686
87687         * lib/same.c (STREQ): Remove.
87688         (same_name): Handle the case where the basename ends in trailing '/'.
87689
87690         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
87691         a slash was stripped.  Do not strip the last slash after a
87692         file system prefix.
87693
87694 2001-05-11  Paul Eggert  <eggert@twinsun.com>
87695
87696         * lib/Makefile.am (libfetish_a_SOURCES):
87697         Add strftime.c, since we now compile it on all hosts.
87698
87699         * lib/strftime.c (my_strftime):
87700         Define to nstrftime if emacs, but only if my_strftime is not defined.
87701         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
87702         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
87703         Add one more extra argument: a nanoseconds value.
87704         All uses changed.
87705         (ns): New macro.
87706         (my_strftime function): Add %N format.
87707         (emacs_strftimeu): Renamed from emacs_strftime,
87708         with extra ut argument.
87709
87710 2001-05-09  Paul Eggert  <eggert@twinsun.com>
87711
87712         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
87713
87714 2001-04-21  Jim Meyering  <meyering@lucent.com>
87715
87716         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
87717         doesn't interfere.
87718
87719 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
87720
87721         * m4/ftruncate.m4: Check for chsize.
87722         Link with ftruncate.o unconditionally if ftruncate is missing.
87723         This was required when cross-compiling to i586-mingw32msvc.
87724
87725 2001-04-08  Jim Meyering  <meyering@lucent.com>
87726
87727         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
87728         recomputed; that's necessary when the offset spans a DST transition.
87729         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
87730
87731 2001-04-02  Jim Meyering  <meyering@lucent.com>
87732
87733         * lib/regex.h, regex.c: Update from GNU libc.
87734
87735 2001-03-24  Jim Meyering  <meyering@lucent.com>
87736
87737         * m4/jm-macros.m4: Require autoconf-2.49d.
87738
87739 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
87740
87741         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
87742
87743 2001-03-19  Paul Eggert  <eggert@twinsun.com>
87744
87745         * lib/version-etc.c (version_etc_copyright): Update to 2001.
87746
87747 2001-03-17  Jim Meyering  <meyering@lucent.com>
87748
87749         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
87750         now that the version in autoconf is equivalent.
87751         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
87752
87753         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
87754         Suggestion from Akim Demaille.
87755
87756         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
87757         (jm_PREREQ_TEMPNAME): New function.
87758
87759 2001-03-16  Paul Eggert  <eggert@twinsun.com>
87760
87761         * lib/tempname.c (uint64_t): Define to uintmax_t if
87762         not defined, and if UINT64_MAX is not defined.
87763         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
87764         Reported by John David Anglin.
87765
87766 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
87767
87768         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
87769         resolve alias if codeset is empty.
87770         * lib/config.charset (BeOS): Use wildcard syntax.
87771
87772 2001-03-13  Jim Meyering  <meyering@lucent.com>
87773
87774         * lib/path-concat.c (path_concat)
87775         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
87776         concatenating e.g., `C:' and `foo'.
87777         From Bruno Haible.
87778
87779 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87780
87781         * lib/localcharset.c (locale_charset): Don't use
87782         setlocale(LC_CTYPE,NULL). Don't return NULL.
87783         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
87784
87785 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87786
87787         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
87788         support for DOS/DJGPP.
87789
87790 2001-03-01  Paul Eggert  <eggert@twinsun.com>
87791
87792         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
87793         lacks mkstemp.  Compile our own tempname.c if we compile our own
87794         mkstemp.c, as mkstemp relies on tempname.
87795
87796 2001-03-01  Jim Meyering  <meyering@lucent.com>
87797
87798         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
87799         AH_VERBATIM really does output its argument verbatim.
87800
87801 2001-02-28  Paul Eggert  <eggert@twinsun.com>
87802
87803         * lib/Makefile.am (libfetish_a_SOURCES):
87804         Add dup-safer.c, fopen-safer.c.
87805         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
87806
87807         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
87808         * lib/unistd-safer.h: New files.
87809
87810 2001-02-25  Paul Eggert  <eggert@twinsun.com>
87811
87812         The mkstemp replacement is taken from glibc 2.2.2, with some
87813         portability fixes for use outside glibc, as follows:
87814
87815         * lib/tempname.c (struct_stat64): New macro.
87816         (direxists, __gen_tempname): Use it.
87817         This avoids a portability problem with Solaris 8.
87818
87819         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
87820         (<stddef.h>, <stdint.h>, <string.h>):
87821         Include only if STDC_HEADERS || _LIBC.
87822         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
87823         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
87824         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
87825         (__set_errno): Define this macro if <errno.h> doesn't.
87826         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
87827         Define these macros if <stdio.h> doesn't.
87828         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
87829         Define these macros if <sys/stat.h>
87830         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
87831         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
87832         __xstat64): Define if not _LIBC.
87833         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
87834         (__gen_tempname): Invoke gettimeofday only if
87835         HAVE_GETTIMEOFDAY || _LIBC;
87836         otherwise, fall back on plain "time".
87837         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
87838
87839         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
87840
87841         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
87842
87843 2001-02-18  Paul Eggert  <eggert@twinsun.com>
87844
87845         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
87846
87847 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87848
87849         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
87850         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
87851         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
87852         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
87853
87854 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87855
87856         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
87857         Remove workaround macros for hosts that have mbrtowc but not
87858         mbstate_t, as we now insist on proper declarations for both
87859         before using mbrtowc.
87860
87861 2001-02-17  Jim Meyering  <meyering@lucent.com>
87862
87863         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
87864         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
87865         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
87866         UnixWare 7.1.1.
87867
87868         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
87869         rather than AC_CACHE_VAL.
87870
87871 2001-02-17  Jim Meyering  <meyering@lucent.com>
87872
87873         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
87874         around included file name.
87875
87876         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
87877
87878         * lib/strftime.c: Update from GNU libc (the only changes were to
87879         comments).
87880
87881 2001-02-17  Jim Meyering  <meyering@lucent.com>
87882
87883         * lib/regex.c: Update from libc.
87884
87885 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
87886
87887         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
87888         clash.
87889
87890 2001-02-16  Paul Eggert  <eggert@twinsun.com>
87891
87892         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
87893         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
87894         Reported by Mark Hounschell via Paul Eggert.
87895
87896 2001-02-07  Jim Meyering  <meyering@lucent.com>
87897
87898         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
87899
87900 2001-02-05  Jim Meyering  <meyering@lucent.com>
87901
87902         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
87903         it includes the patch required for `large file' support with at least
87904         HP-UX's 10.20 /bin/cc.
87905
87906 2001-02-03  Jim Meyering  <meyering@lucent.com>
87907
87908         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
87909         AS_IF, now that it works once again (mysteriously).
87910         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87911
87912 2001-01-30  Jim Meyering  <meyering@lucent.com>
87913
87914         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
87915         * m4/chown.m4: Rename conftestchown to conftest.chown.
87916         * m4/rename.m4: s/conftestdir/conftest.d1/ and
87917         s/conftestdir2/conftest.d2/.
87918         * m4/utimes.m4: s/conftestdata/conftest.data/
87919         Inspired by Pavel Roskin's change in autoconf.
87920
87921 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
87922
87923         * lib/config.charset: Update for FreeBSD 4.2.
87924
87925 2001-01-27  Jim Meyering  <meyering@lucent.com>
87926
87927         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
87928         a use of AS_IF.
87929         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87930
87931 2001-01-26  Jim Meyering  <meyering@lucent.com>
87932
87933         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
87934         quotearg.c includes it.
87935
87936 2001-01-26  Jim Meyering  <meyering@lucent.com>
87937
87938         * lib/quotearg.c: Include stddef.h.
87939         * lib/quote.c: Include stddef.h.
87940         Reported by Axel Kittenberger.
87941
87942         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
87943         line in double quotes so that it evokes a better diagnostic.
87944         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
87945         Reported by Axel Kittenberger.
87946
87947 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
87948
87949         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
87950         as if it was a `charset'.
87951
87952 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87953
87954         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
87955         has const.
87956
87957 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87958
87959         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
87960         to avoid a warning.  Add back 'const' to inptr.
87961
87962 2001-01-20  Jim Meyering  <meyering@lucent.com>
87963
87964         Be sure that headers are checked before used in code compiled
87965         for the type checks.
87966         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
87967         In place of that, invoke jm_CHECK_ALL_TYPES.
87968         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
87969         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
87970         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
87971         The check for ssize_t was mistakenly run before the test for unistd.h.
87972
87973         The configure-time check for stdbool.h was missing.
87974         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
87975         (jm_PREREQ_HASH): New function.
87976
87977 2001-01-17  Jim Meyering  <meyering@lucent.com>
87978
87979         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
87980         for autoconf-2.49c.
87981         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
87982
87983 2001-01-16  Jim Meyering  <meyering@lucent.com>
87984
87985         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
87986         From Bruno Haible.
87987
87988 2001-01-14  Jim Meyering  <meyering@lucent.com>
87989
87990         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
87991         foo and bar.  Create conftestdir/ in the script, not in the C code.
87992         Remove directories in the script, not in the C code.
87993         Remove conftestdir{,2} before trying to create the directory.
87994         Make the entire configure script fail if the mkdir fails.
87995
87996 2001-01-14  Jim Meyering  <meyering@lucent.com>
87997
87998         * lib/rename.c: New file.  From Volker Borchert.
87999         Include stdlib.h, string.h or strings.h, and xalloc.h.
88000         Use strip_trailing_slashes rather than open-coding it.
88001
88002 2001-01-03  Paul Eggert  <eggert@twinsun.com>
88003
88004         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
88005
88006 2001-01-03  Jim Meyering  <meyering@lucent.com>
88007
88008         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
88009         of local `inptr' to avoid warning with some system declarations of
88010         iconv.
88011
88012 2001-01-02  Volker Borchert  <bt@teknon.de>
88013
88014         * m4/rename.m4: New file.
88015         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
88016
88017 2001-01-01  Jim Meyering  <meyering@lucent.com>
88018
88019         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
88020         even on systems with utmpx.h.  It's necessary for the declaration of
88021         utmp's ut_user member.  Reported by Andreas Jaeger.
88022
88023         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
88024         available. They are required for the declarations of getgrgid and
88025         getpwuid resp.
88026         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
88027         Reported by Andreas Jaeger.
88028
88029 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
88030
88031         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
88032         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
88033         so `make install' also works in VPATH builds.
88034
88035 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
88036
88037         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
88038         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
88039         can be used in subdirectories.
88040
88041 2000-12-29  Paul Eggert  <eggert@twinsun.com>
88042
88043         * lib/modechange.c: Do not assume that mode_t uses the
88044         traditional octal encoding.  E.g. "chmod 1 FOO" should set
88045         the other-execute bit of FOO even if S_IXOTH != 1.
88046
88047         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
88048         WOTH, XOTH, ALLM): New macros.
88049         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
88050          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
88051         Use them.
88052         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
88053         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
88054         (mode_compile):
88055         No need to use uintmax_t; unsigned long is long enough.
88056         Don't bother to get suffix since we don't use it.
88057
88058 2000-12-26  Jim Meyering  <meyering@lucent.com>
88059
88060         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
88061         better with autoheader.
88062
88063 2000-12-24  Jim Meyering  <meyering@lucent.com>
88064
88065         * lib/hash.c (is_prime): Return explicit boolean values.
88066         (hash_get_first): Return NULL to appease Irix5.6's 89.
88067         Reported by Nelson Beebe.
88068
88069 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
88070
88071         * lib/localcharset.c (locale_charset): Add support for Win32.
88072
88073 2000-12-18  Paul Eggert  <eggert@twinsun.com>
88074
88075         * lib/physmem.h, lib/physmem.c: New files.
88076
88077         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
88078         (noinst_HEADERS): Add physmem.h.
88079
88080         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
88081         't' for compatibility with Solaris 8 sort.
88082
88083 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
88084
88085         * lib/config.charset: Add support for BeOS.
88086
88087 2000-12-17  Jim Meyering  <meyering@lucent.com>
88088
88089         * m4/dos.m4 (jm_AC_DOS): New file and macro.
88090         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
88091
88092 2000-12-16  Jim Meyering  <meyering@lucent.com>
88093
88094         This bug had a serious impact on chown: `chown N:M FILE' (for integer
88095         N and M) would have treated it like `chown N:N FILE'.
88096
88097         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
88098
88099 2000-12-16  Jim Meyering  <meyering@lucent.com>
88100
88101         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
88102         SHELLS_FILE to a file name that's useful on djgpp systems.
88103         Include stdlib.h.
88104         (ADDITIONAL_DEFAULT_SHELLS): Define.
88105         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
88106         Based mostly on a patch from Prashant TR.
88107
88108 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
88109
88110         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
88111         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
88112         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
88113
88114 2000-12-08  Andreas Schwab  <schwab@suse.de>
88115
88116         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
88117         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
88118
88119 2000-12-07  Jim Meyering  <meyering@lucent.com>
88120
88121         * lib/stripslash.c (ISSLASH): Define.
88122         (strip_trailing_slashes): Use ISSLASH rather than comparing against
88123         `/'.
88124         From Prashant TR.
88125
88126         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
88127         (dir_name_r): Declare this function as static.
88128         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
88129         manifest itself on a name containing a mix of slashes and
88130         backslashes.
88131         Make this function work with names starting with a DOS-style
88132         drive letter and colon prefix.
88133         (dir_name): Append `.' if necessary.
88134         Based mostly on patches from Prashant TR and Eli Zaretskii.
88135
88136         * lib/dirname.h (dir_name_r): Remove prototype.
88137
88138 2000-12-06  Paul Eggert  <eggert@twinsun.com>
88139
88140         * m4/off_t-format.m4: Remove this file.
88141         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
88142
88143 2000-12-06  Jim Meyering  <meyering@lucent.com>
88144
88145         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
88146         replacement strtoull, we may well need the replacement strtoul, too.
88147         Check for declarations of strtoul and strtoull.
88148         Check for strtol.  Mainly as a cue to cause automake to include
88149         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
88150         Check for limits.h -- strtol.c needs it.
88151
88152 2000-12-05  Jim Meyering  <meyering@lucent.com>
88153
88154         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
88155
88156 2000-12-04  Jim Meyering  <meyering@lucent.com>
88157
88158         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
88159         Also include memory.h, stdlib.h, unistd.h if appropriate.
88160         Reported by Andreas Jaeger (conflicting declaration of malloc).
88161
88162 2000-12-02  Jim Meyering  <meyering@lucent.com>
88163
88164         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
88165         * m4/jm-macros.m4 (jm_MACROS): require it.
88166
88167 2000-12-02  Jim Meyering  <meyering@lucent.com>
88168
88169         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
88170
88171 2000-12-01  Paul Eggert  <eggert@twinsun.com>
88172
88173         * lib/memrchr.c: Include <config.h> before any system include file.
88174
88175 2000-11-30  Jim Meyering  <meyering@lucent.com>
88176
88177         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
88178
88179 2000-11-30  Jim Meyering  <meyering@lucent.com>
88180
88181         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
88182
88183 2000-11-29  Paul Eggert  <eggert@twinsun.com>
88184
88185         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
88186
88187 2000-11-26  Jim Meyering  <meyering@lucent.com>
88188
88189         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
88190
88191 2000-11-22  Paul Eggert  <eggert@twinsun.com>
88192
88193         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
88194         size of (size_t) -1; it's not portable.
88195
88196 2000-11-17  Jim Meyering  <meyering@lucent.com>
88197
88198         * lib/strstr.c: Update from GNU libc.
88199
88200 2000-11-17  Akim Demaille  <akim@epita.fr>
88201
88202         * lib/obstack.h: Formatting changes.
88203         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
88204         prevent type checking.
88205         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
88206         cast the value to (void *): assigning a `foo *' to a `void *'
88207         variable is valid.
88208         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
88209
88210 2000-11-16  Jim Meyering  <meyering@lucent.com>
88211
88212         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
88213
88214 2000-11-11  Jim Meyering  <meyering@lucent.com>
88215
88216         * lib/error.c: Add a couple #includes, merging from GNU libc version.
88217
88218 2000-11-10  Jim Meyering  <meyering@lucent.com>
88219
88220         * lib/obstack.h: Update from GNU libc.
88221         * lib/obstack.c: Likewise.
88222
88223 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
88224
88225         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
88226
88227 2000-11-06  Paul Eggert  <eggert@twinsun.com>
88228
88229         * lib/getusershell.c (setusershell): Use rewind rather than
88230         fseek/fseeko, to avoid configuration hassles with fseeko.
88231         Don't bother opening SHELLS_FILE if shellstream is NULL;
88232         it's not necessary.
88233
88234 2000-11-05  Jim Meyering  <meyering@lucent.com>
88235
88236         * lib/makepath.h (make_dir): Declare.
88237         * lib/makepath.c (make_dir): Remove `static' attribute.
88238         Tweak a comment.
88239
88240 2000-11-04  Jim Meyering  <meyering@lucent.com>
88241
88242         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
88243
88244 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
88245
88246         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
88247         last one in a bucket, advance to the next bucket.
88248
88249 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
88250
88251         * lib/fnmatch.c: Do not comment out all the code if we are using
88252         the GNU C library, because in some cases we are replacing buggy
88253         code in the GNU C library itself.
88254
88255 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
88256
88257         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
88258         (regex_compile): Catch bogus \(\1\).
88259
88260 2000-10-30  Paul Eggert  <eggert@twinsun.com>
88261
88262         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
88263         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
88264         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
88265
88266 2000-10-30  Paul Eggert  <eggert@twinsun.com>
88267
88268         * lib/error.h, getline.h, modechange.h:
88269         Remove "2000" from Copyright line, as the file hasn't been
88270         changed this year other than in the copyright notice.
88271
88272         * lib/xalloc.h: Add "2000" to Copyright line, as this file
88273         was changed this year.
88274
88275 2000-10-29  Jim Meyering  <meyering@lucent.com>
88276
88277         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
88278         renaming.
88279         * m4/ls-mntd-fs.m4: Likewise
88280
88281 2000-10-29  Jim Meyering  <meyering@lucent.com>
88282
88283         * lib/xstat.in: Fix grammar in comment.
88284
88285 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
88286
88287         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
88288         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
88289         doesn't define __restrict_arr.
88290
88291 2000-10-28  Jim Meyering  <meyering@lucent.com>
88292
88293         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
88294         (jm_PREREQ_MEMCHR): New function.
88295
88296 2000-10-28  Jim Meyering  <meyering@lucent.com>
88297
88298         * lib/memchr.c: Update from libc.
88299         Adjust for portability:
88300         [HAVE_STDLIB_H]: Include stdlib.h.
88301         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
88302         Undef __memchr, too.
88303         [!weak_alias]: Define __memchr to memchr.
88304
88305         * lib/regex.c: Update from libc.
88306         * lib/regex.h: Likewise.
88307         * lib/getopt1.c: Likewise.
88308         * lib/memcmp.c: Likewise.
88309
88310         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
88311         Avoid using fseek, when possible -- it's broken by design.
88312         Patch by Ulrich Drepper.
88313
88314 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
88315
88316         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
88317         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
88318         Giving in to popular pressure to shut up the compiler with casts.
88319
88320 2000-10-26  Jim Meyering  <meyering@lucent.com>
88321
88322         * lib/strftime.c: Update from libc.
88323
88324 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
88325
88326         * regex.c: More `unsigned char' -> `re_char' changes.
88327         Also change several `int' into `re_wchar_t'.
88328         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
88329         (PUSH_FAILURE_POINTER): Don't cast any more.
88330         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
88331         We want GCC to complain, since this piece of code makes
88332         re_match non-reentrant, which *should* be fixed.
88333         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
88334         (EXTEND_BUFFER): Use RETALLOC.
88335         (SET_LIST_BIT): Don't cast.
88336         (re_wchar_t): New type.
88337         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
88338         that those two functions will always properly return.
88339         (IMMEDIATE_QUIT_CHECK): Cast to void.
88340         (analyse_first): Use recursion rather than an explicit stack.
88341         (re_compile_fastmap): Can't fail anymore.
88342         (re_search_2): Don't check re_compile_fastmap for failure.
88343         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
88344         Now also sets the new value (passed in a new argument).
88345         (re_match_2_internal): Use it.
88346         Also, use a new var `reg' of type size_t when looping through regs
88347         rather than reuse the inappropriate `mcnt'.
88348
88349 2000-10-25  Jim Meyering  <meyering@lucent.com>
88350
88351         * lib/obstack.c: Update from libc.
88352
88353 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
88354
88355         * regex.c (regex_compile): Change the way of handling a range from
88356         a char less than 256 to a char not less than 256.
88357
88358 2000-10-24  Andrew Innes  <andrewi@gnu.org>
88359
88360         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
88361         NT-Emacs only.
88362         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
88363         so that re_search functions only quit when callers expect them to.
88364
88365 2000-10-23  Jim Meyering  <meyering@lucent.com>
88366
88367         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
88368         wrong.  That set_locale call must not have any side effects.
88369         From Paul Eggert.
88370
88371 2000-10-22  Jim Meyering  <meyering@lucent.com>
88372
88373         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
88374         [CYCLIC]: Remove now-unused definition.
88375
88376         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
88377         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
88378         Suggestion from Ulrich Drepper.
88379
88380 2000-10-21  Jim Meyering  <meyering@lucent.com>
88381
88382         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
88383         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
88384         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
88385
88386 2000-10-21  Jim Meyering  <meyering@lucent.com>
88387
88388         * lib/dirname.c (memrchr): Declare if necessary.
88389         (dir_name): Remove the restriction that there be no
88390         trailing slashes.  Now, this code skips past them, effectively
88391         ignoring them.
88392         [TEST_DIRNAME] (main): New unit tests.
88393
88394         * lib/memrchr.c: New file from GNU libc.
88395         Undef __memrchr, too.
88396         [!weak_alias]: Define __memrchr to memrchr.
88397         Guard weak_alias use with `#ifdef weak_alias'.
88398
88399 2000-10-21  Jim Meyering  <meyering@lucent.com>
88400
88401         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
88402         (dir_name): Use dir_name_r.
88403         * lib/dirname.h (dir_name_r): Declare it.
88404
88405 2000-10-17  Jim Meyering  <meyering@lucent.com>
88406
88407         * lib/quote.h (PARAMS): Define and use.
88408         Reported by Akim Demaille.
88409
88410         * lib/getopt.c: Update from libc.
88411
88412 2000-10-16  Jim Meyering  <meyering@lucent.com>
88413
88414         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
88415         setlocale.
88416         From Jan Fedak.
88417
88418 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
88419
88420         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
88421
88422 2000-09-25  Jim Meyering  <meyering@lucent.com>
88423
88424         * lib/md5.h (rol): Define (from GnuPG).
88425
88426         * lib/sha.c: Give credit (GnuPG) where due.
88427         (M): Use rol rather than open-coding it.
88428         Add a FIXME comment.
88429
88430 2000-09-21  Jim Meyering  <meyering@lucent.com>
88431
88432         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
88433         Reported by Michael Stone.
88434
88435 2000-09-20  Jim Meyering  <meyering@lucent.com>
88436
88437         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
88438         (noinst_HEADERS): Add sha.h.
88439         Based on code from Scott G. Miller and from GnuPG.
88440
88441 2000-09-18  Jim Meyering  <meyering@lucent.com>
88442
88443         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
88444         LIBS. Otherwise, everyone ends up linking with -lelf for some
88445         configurations.
88446         Reported by Mike Stone.
88447
88448 2000-09-15  Jim Meyering  <meyering@lucent.com>
88449
88450         * lib/regex.c: Update from libc.
88451
88452 2000-09-10  Jim Meyering  <meyering@lucent.com>
88453
88454         * lib/getopt.c (_getopt_internal): Update from glibc.
88455
88456 2000-09-09  Jim Meyering  <meyering@lucent.com>
88457
88458         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
88459         think it should be used as a general replacement for isascii.
88460         * lib/fnmatch.c: Likewise.
88461         * lib/mbswidth.c: Likewise
88462         * lib/regex.c: Likewise.
88463
88464         Don't use atoi.
88465         * lib/userspec.c: Include sys/param.h and limits.h.
88466         Include xstrtol.h.
88467         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
88468         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
88469         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
88470         UID, GID.  Check range.
88471
88472 2000-09-06  Jim Meyering  <meyering@lucent.com>
88473
88474         * lib/getopt.c (_getopt_internal): Update from glibc.
88475
88476 2000-08-30  Jim Meyering  <meyering@lucent.com>
88477
88478         * lib/strftime.c: Merge in changes from GNU libc.
88479
88480 2000-08-26  Jim Meyering  <meyering@lucent.com>
88481
88482         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
88483         * m4/fpending.m4: New file.
88484
88485 2000-08-26  Jim Meyering  <meyering@lucent.com>
88486
88487         * lib/closeout.c: Include "__fpending.h".
88488         (close_stdout_status): Return right away if there's nothing to flush.
88489
88490         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
88491         * lib/__fpending.c: New file.
88492         * lib/__fpending.h: New file.
88493
88494 2000-08-20  Jim Meyering  <meyering@lucent.com>
88495
88496         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
88497         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
88498         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
88499
88500 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
88501
88502         Improve fileutils installation on systems where running
88503         programs (like install) can't be unlinked.
88504         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
88505         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
88506
88507 2000-08-07  Paul Eggert  <eggert@twinsun.com>
88508
88509         Standardize on "memory exhausted" instead of "Memory exhausted"
88510         or "virtual memory exhausted".
88511         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
88512         "virtual memory exhausted".
88513         * lib/same.c (same_name): Invoke xalloc_die instead of printing
88514         our own message.
88515         * lib/userspec.c (parse_user_spec): Likewise.
88516         * lib/bumpalloc.h: comment fix
88517         * lib/same.c, userspec.c: Include xalloc.h.
88518
88519         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
88520         not char *const and pointing to a constant array.
88521         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
88522         (xrealloc): Comment fix.
88523
88524         * lib/userspec.c (parse_user_spec):
88525         Don't translate a message until just before returning,
88526         to avoid unnecessary translation.
88527
88528 2000-08-07  Jim Meyering  <meyering@lucent.com>
88529
88530         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
88531         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
88532         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
88533         getgroups.c, gethostname.c, getopt.h, group-member.c,
88534         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
88535         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
88536         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
88537         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
88538         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
88539         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
88540         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
88541         yesno.c: Back out Copyright date changes for each file with no change
88542         this year.  This eases coordination with other programs using the same
88543         source code modules.  From Paul Eggert.
88544
88545 2000-08-06  Paul Eggert  <eggert@twinsun.com>
88546
88547         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
88548         not char, for compatibility with glibc 2.1.3 strftime.c.
88549
88550 2000-08-03  Greg McGary  <greg@mcgary.org>
88551
88552         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
88553         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
88554         (EXTEND_BUFFER): Use them.
88555
88556 2000-08-01  Jim Meyering  <meyering@lucent.com>
88557
88558         * lib/dirname.c (ISSLASH): Define.
88559         (BACKSLASH_IS_PATH_SEPARATOR): Define.
88560         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
88561         both `\' and `/' may be use as path separators.
88562         Based on a patch from Prashant TR.
88563
88564 2000-07-31  Paul Eggert  <eggert@twinsun.com>
88565
88566         * lib/quotearg.c (quotearg_n_options): Don't make the initial
88567         slot vector a constant, since it might get modified.
88568
88569 2000-07-31  Jim Meyering  <meyering@lucent.com>
88570
88571         * lib/xmalloc.c: Use `virtual memory exhausted', not
88572         `Memory exhausted'.
88573         * lib/obstack.c (print_and_abort): Likewise.
88574
88575 2000-07-30  Paul Eggert  <eggert@twinsun.com>
88576
88577         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
88578         buffer, so that the caller can always quote one small
88579         component of a "memory exhausted" message in slot 0.
88580         From a suggestion by Jim Meyering.
88581
88582 2000-07-30  Jim Meyering  <meyering@lucent.com>
88583
88584         * lib/makepath.c (make_path): Quote the other instance, too.
88585
88586         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
88587         (STATIC_BUF_SIZE): Define.
88588         (quotearg_n_options): Use only statically allocated storage when
88589         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
88590         than STATIC_BUF_SIZE.
88591
88592 2000-07-29  Jim Meyering  <meyering@lucent.com>
88593
88594         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
88595         * lib/dirname.c (dir_name): Likewise.
88596
88597         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
88598         `/'.
88599
88600         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
88601         (dir_name): Assert that there are no trailing slashes.
88602
88603 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
88604
88605         * lib/mbswidth.h (mbswidth): Add a flags argument.
88606         (mbswidth): New declaration.
88607         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
88608         * lib/mbswidth.c (mbswidth): Add a flags argument.
88609         (mbsnwidth): New function.
88610
88611 2000-07-24  Jim Meyering  <meyering@lucent.com>
88612
88613         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
88614
88615 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88616
88617         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
88618
88619 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88620
88621         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
88622         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
88623         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
88624         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
88625         invoke multibyte primitives.
88626
88627 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88628
88629         * lib/quotearg.c:
88630         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
88631         so that mbstate_t is always defined.
88632
88633         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
88634         be 1 in at least one GCC installation, and this configuration
88635         error is likely to be common.  Ignoring MB_LEN_MAX hurts
88636         performance on hosts that have mbrtowc but have only unibyte
88637         locales, but I assume these hosts are rare.
88638
88639 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88640
88641         * lib/mbswidth.c (_XOPEN_SOURCE):
88642         Don't define; this causes problems on Solaris 7.
88643         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
88644
88645 2000-07-23  Jim Meyering  <meyering@lucent.com>
88646
88647         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
88648         too: getgrgid, getpwuid, getuid.
88649
88650 2000-07-23  Jim Meyering  <meyering@lucent.com>
88651
88652         * lib/basename.c (base_name): Add an assertion.
88653
88654 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
88655
88656         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
88657         shadow its mbsinit function.
88658
88659 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
88660
88661         * lib/mbswidth.h: New file.
88662         * lib/mbswidth.c: New file.
88663         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
88664         (noinst_HEADERS): Add mbswidth.h.
88665
88666 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
88667
88668         * lib/config.charset: Add support for FreeBSD. Improve support for
88669         HP-UX and IRIX 6.
88670
88671 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
88672
88673         * m4/mbswidth.m4: New file.
88674         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
88675
88676 2000-07-15  Jim Meyering  <meyering@lucent.com>
88677
88678         * lib/makepath.c: Include quote.h.
88679         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
88680         corresponding argument in a `quote (...)' call.
88681         Give better diagnostics.
88682
88683         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
88684         (noinst_HEADERS): Add quote.h.
88685
88686         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
88687         from tar's src/misc.c.
88688         * lib/quote.h: New file.  Prototypes for same.
88689
88690 2000-07-14  Paul Eggert  <eggert@twinsun.com>
88691
88692         From a suggestion by Bruno Haible.
88693         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
88694         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
88695         to decide whether to define the BeOS workaround macro;
88696         this adjusts to the change to AC_MBSTATE_T.
88697
88698 2000-07-14  Jim Meyering  <meyering@lucent.com>
88699
88700         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
88701         jm_AC_TYPE_UINTMAX_T.
88702
88703 2000-07-13  Paul Eggert  <eggert@twinsun.com>
88704
88705         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
88706
88707         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
88708         quotearg_buffer_restyled): Add support for
88709         clocale_quoting_style.  Undo previous change to
88710         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
88711         and "{RIGHT QUOTATION MARK}" msgids.
88712
88713 2000-07-10  Paul Eggert  <eggert@twinsun.com>
88714
88715         From a suggestion by Bruno Haible.
88716         * m4/mbstate_t.m4 (AC_MBSTATE_T):
88717         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
88718         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
88719         and mbstate_t, to a single-part test that simply defines mbstate_t.
88720         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
88721         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
88722
88723 2000-07-10  Jim Meyering  <meyering@lucent.com>
88724
88725         * m4/strerror_r.m4: Mirror the correction made in autoconf.
88726
88727         * m4/gnu-source.m4: Output to confdefs.h directly.
88728         Suggestion from Akim Demaille.
88729
88730 2000-07-09  Paul Eggert  <eggert@twinsun.com>
88731
88732         The old behavior of quoting `like this' doesn't look good with
88733         newer, ISO-style fonts.  See:
88734         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
88735
88736         Instead, quote "like this" by default.  Let the translator
88737         tailor the locale-specific quoting behavior by providing
88738         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
88739
88740         * lib/quotearg.c (N_): New macro.
88741         (gettext_default): New function.
88742         (quotearg_buffer_restyled): Use
88743         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
88744         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
88745
88746 2000-07-09  Jim Meyering  <meyering@lucent.com>
88747
88748         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
88749         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
88750
88751         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
88752         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
88753
88754 2000-07-09  Jim Meyering  <meyering@lucent.com>
88755
88756         * lib/Most files: Update copyright dates to include 2000.
88757
88758 2000-07-08  Jim Meyering  <meyering@lucent.com>
88759
88760         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
88761         if not defined.
88762         (xgethostname): Remove now-unnecessary #ifdef.
88763         Move declaration of `err' into loop where it's used.
88764
88765 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88766         and Bruno Haible  <haible@clisp.cons.org>
88767
88768         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
88769         only if the test for an object-type mbstate_t fails.  This
88770         prevents us from mistakenly reporting that mbstate_t is a
88771         system object type after we "#define mbstate_t int" to work
88772         around its lack.
88773
88774 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88775         and Bruno Haible  <haible@clisp.cons.org>
88776
88777         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
88778
88779 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88780
88781         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
88782         to strerror_r.
88783         Include <ctype.h> for use of isalpha.
88784
88785 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88786
88787         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
88788         by allocating a larger buffer. Test the gethostname return value for
88789         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
88790         returns an error and ENAMETOOLONG isn't defined.
88791
88792 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88793
88794         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
88795         dimension.
88796
88797 2000-07-04  Jim Meyering  <meyering@lucent.com>
88798
88799         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
88800         of the deprecated AC_CHECKING.
88801
88802 2000-07-04  Jim Meyering  <meyering@lucent.com>
88803
88804         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
88805         Reported by Bruno Haible.
88806
88807 2000-07-04  Jim Meyering  <meyering@lucent.com>
88808
88809         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
88810         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
88811         lacks mbrtowc.
88812
88813 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88814
88815         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
88816         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
88817
88818 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88819         and Bruno Haible  <haible@clisp.cons.org>
88820
88821         * lib/quotearg.c (mbrtowc):
88822         Assign to *pwc, and return 1 only if result is nonzero.
88823         (iswprint): Use ISPRINT when substituting our own mbrtowc.
88824
88825 2000-07-03  Jim Meyering  <meyering@lucent.com>
88826
88827         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
88828
88829 2000-07-03  Jim Meyering  <meyering@lucent.com>
88830
88831         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
88832         This is necessary to get a definition of e.g., UTMP_FILE on
88833         HP-UX 10.20.
88834         From Bob Proulx.
88835
88836 2000-07-02  Jim Meyering  <meyering@lucent.com>
88837
88838         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
88839
88840         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
88841         AC_LIBOBJ(function_name).
88842         * m4/chown.m4: Likewise.
88843         * m4/fnmatch.m4: Likewise.
88844         * m4/ftruncate.m4: Likewise.
88845         * m4/getgroups.m4: Likewise.
88846         * m4/getline.m4: Likewise.
88847         * m4/group-member.m4: Likewise.
88848         * m4/jm-macros.m4: Likewise.
88849         * m4/lstat.m4: Likewise.
88850         * m4/malloc.m4: Likewise.
88851         * m4/memcmp.m4: Likewise.
88852         * m4/nanosleep.m4: Likewise.
88853         * m4/putenv.m4: Likewise.
88854         * m4/realloc.m4: Likewise.
88855         * m4/regex.m4: Likewise.
88856         * m4/stat.m4: Likewise.
88857         * m4/strftime.m4: Likewise.
88858
88859 2000-07-02  Jim Meyering  <meyering@lucent.com>
88860
88861         * lib/quotearg.c (mbstate_t): Don't define here.
88862
88863 2000-07-02  Jim Meyering  <meyering@lucent.com>
88864
88865         * lib/nanosleep.c (SIGCONT): Define if not already defined.
88866
88867 2000-07-01  Jim Meyering  <meyering@lucent.com>
88868
88869         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
88870
88871 2000-07-01  Jim Meyering  <meyering@lucent.com>
88872
88873         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
88874         problem.
88875
88876 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88877
88878         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
88879         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
88880
88881 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88882
88883         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
88884         per change in ../m4/ls-mntd-fs.m4.
88885         (read_filesystem_list): Ignore symbolic links.
88886
88887 2000-06-29  Jim Meyering  <meyering@lucent.com>
88888
88889         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
88890         for declaration of strcmp.
88891
88892         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
88893
88894         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
88895         Avoid warning by casting result to `char *' to remove `const'.
88896
88897 2000-06-28  Jim Meyering  <meyering@lucent.com>
88898
88899         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
88900         included by quotearg.c, for which we perform this test.  From
88901         Bruno Haible.
88902
88903 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88904
88905         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
88906         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
88907         <utmpx.h> exists, put readutmp.o into LIBOBJS.
88908
88909 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88910
88911         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
88912
88913 2000-06-26  Paul Eggert  <eggert@twinsun.com>
88914
88915         savedir now sets errno on failure and invokes xmalloc to get memory.
88916         Fix a couple of other minor bugs while we're at it.
88917
88918         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
88919         (NAMLEN): Remove macro.
88920         (malloc, realloc): Remove decls.
88921         (stpcpy): Likewise.
88922         ("xalloc.h"): Include.
88923         (NAME_SIZE_DEFAULT): New macro.
88924         (savedir): Use xmalloc / xrealloc to allocate memory.
88925         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
88926         Skip "" directory entries.
88927         Use strlen to calculate directory entry length, since the old method
88928         is rarely used these days and isn't worth supporting.
88929         Don't use a pointer after freeing it.
88930         Check for integer overflow when calculating allocation size.
88931         Use memcpy to copy entries, instead of stpcpy.
88932         Set errno properly when returning NULL.
88933         Check for readdir error.
88934
88935 2000-06-26  Jim Meyering  <meyering@lucent.com>
88936
88937         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
88938
88939 2000-06-25  Jim Meyering  <meyering@lucent.com>
88940
88941         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
88942         Linux header bug when _XOPEN_SOURCE is defined to 500.
88943
88944 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88945
88946         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
88947         deficiency.
88948
88949 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88950
88951         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
88952         Include xalloc.h.
88953         Don't include <stdlib.h>.  Don't declare malloc, realloc.
88954
88955 2000-06-24  Jim Meyering  <meyering@lucent.com>
88956
88957         * m4/strerror_r.m4: Revive this file -- to try out an experimental
88958         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
88959         for which strerror does return char*, but which lacks a conveniently
88960         accessible declaration of the function.  If the compile-test says
88961         strerror_r doesn't work, then resort to a `run'-test that works on
88962         BeOS and segfaults on DEC Unix.
88963
88964 2000-06-24  Jim Meyering  <meyering@lucent.com>
88965
88966         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
88967
88968 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88969
88970         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
88971         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
88972
88973 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88974
88975         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
88976         (mbrtowc, mbstate_t): Define substitutes if
88977         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
88978         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
88979         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
88980
88981 2000-06-23  Jim Meyering  <meyering@lucent.com>
88982
88983         * m4/afs.m4: Add missing AC_MSG_RESULT.
88984         Reported by Bruno Haible.
88985
88986         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
88987         Suggestion from Bruno Haible.
88988
88989 2000-06-23  Jim Meyering  <meyering@lucent.com>
88990
88991         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
88992
88993 2000-06-21  Jim Meyering  <meyering@lucent.com>
88994
88995         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
88996
88997 2000-06-21  Jim Meyering  <meyering@lucent.com>
88998
88999         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
89000         (noinst_HEADERS): Add getstr.h.
89001
89002         * lib/getline.c (getstr): Move into a separate file.
89003         * lib/getstr.c (getstr): New file, extracted from getline.c, with
89004         the following changes: new parameter, delim2; both delim[12]
89005         parameters have type `int', not `char'.  The latter would lose
89006         with 8-bit delimiters.
89007         * lib/getstr.h: New file.
89008
89009 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89010
89011         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
89012         than 1024, return a memory chunk of least possible size, instead
89013         of size PATH_MAX + 2. In the loop, increment the size proportionally.
89014         Use free/xmalloc instead of xrealloc to avoid copying for very long
89015         paths.
89016
89017 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89018
89019         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
89020         the empty string.
89021
89022 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89023
89024         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
89025         address, not strdup.  Include <stdlib.h> and don't declare free().
89026
89027 2000-06-19  Jim Meyering  <meyering@lucent.com>
89028
89029         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
89030
89031 2000-06-18  Jim Meyering  <meyering@lucent.com>
89032
89033         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
89034
89035         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
89036         `checking whether...' message to be consistent with that of the
89037         lstat test.
89038
89039 2000-06-18  Jim Meyering  <meyering@lucent.com>
89040
89041         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
89042         Besides, these days every porting target provides a mkdir function.
89043
89044         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
89045         needed. (this snippet comes from src/system.h).
89046
89047 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
89048
89049         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
89050
89051 2000-06-15  Paul Eggert  <eggert@twinsun.com>
89052
89053         * lib/human.c (adjust_value): New function.
89054         (human_readable_inexact): Apply rounding style even when
89055         printing approximate values.
89056
89057 2000-06-14  Paul Eggert  <eggert@twinsun.com>
89058
89059         * lib/human.c (human_readable_inexact): Allow an input block
89060         size that is not a multiple of the output block size, and vice versa.
89061         Reported by Piergiorgio Sartor.
89062
89063 2000-06-14  Paul Eggert  <eggert@twinsun.com>
89064
89065         * lib/getdate.y (get_date): Apply relative times after time
89066         zone indicator, not before.  Reported by Todd A. Jacobs.
89067
89068 2000-06-13  Jim Meyering  <meyering@lucent.com>
89069
89070         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
89071
89072         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
89073
89074 2000-06-12  Paul Eggert  <eggert@twinsun.com>
89075
89076         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
89077
89078 2000-06-12  Jim Meyering  <meyering@lucent.com>
89079
89080         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
89081         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
89082         optional argument.
89083         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
89084         the optional argument, `lib'.
89085
89086 2000-06-08  Jim Meyering  <meyering@lucent.com>
89087
89088         * m4/largefile.m4: Remove file (now that it's part of autoconf).
89089
89090 2000-06-04  Paul Eggert  <eggert@twinsun.com>
89091
89092         Rewrite largefile configuration so that we don't need to run
89093         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
89094         AC_CANONICAL_HOST in configure.in -- jmm]
89095
89096         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
89097         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
89098         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
89099         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
89100         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
89101         All uses changed.
89102         Instead of inspecting the output of getconf, try to compile the
89103         test program without and with the macro definition.
89104         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
89105         for getconf.  Instead, check for the needed flags by compiling
89106         test programs.
89107
89108 2000-06-04  Paul Eggert  <eggert@twinsun.com>
89109
89110         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
89111
89112 2000-06-04  Jim Meyering  <meyering@lucent.com>
89113
89114         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
89115         SunOS 4.1.4 for which gid_t is an unsigned type.
89116
89117 2000-06-03  Jim Meyering  <meyering@lucent.com>
89118
89119         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
89120         now that autoconf requires that.
89121
89122         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
89123         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
89124         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
89125
89126 2000-06-03  Jim Meyering  <meyering@lucent.com>
89127
89128         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
89129
89130 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
89131
89132         * m4/glibc21.m4: New file.
89133         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
89134
89135 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
89136
89137         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
89138         newer, don't install charset.alias.
89139         * lib/config.charset: Change the Linux/glibc rules so they become empty
89140         on glibc-2.1 or newer.
89141
89142 2000-06-02  Jim Meyering  <meyering@lucent.com>
89143
89144         * lib/mountlist.c: Back out last change.  Instead, do this...
89145         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
89146         me_dummy member using the same `ignore'-testing code.
89147         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
89148         fs_type strings.
89149         From Mark D. Roth.
89150
89151 2000-05-29  Jim Meyering  <meyering@lucent.com>
89152
89153         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
89154         mounts with the `ignore' attribute.  Based on a patch from
89155         Mark D. Roth.
89156
89157 2000-05-28  Jim Meyering  <meyering@lucent.com>
89158
89159         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
89160         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89161         * m4/stat.m4: Likewise.
89162         * m4/lstat.m4: Likewise.
89163         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
89164
89165         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
89166         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
89167
89168 2000-05-26  Jim Meyering  <meyering@lucent.com>
89169
89170         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
89171
89172 2000-05-24  Jim Meyering  <meyering@lucent.com>
89173
89174         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
89175         autoconf requires that.
89176         * m4/lib-check.m4: Likewise.
89177         * m4/jm-macros.m4: Likewise.
89178         * m4/strftime.m4: Likewise.
89179
89180         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
89181         AC_CHECK_DECLS, now that autoconf requires that.
89182
89183 2000-05-22  Jim Meyering  <meyering@lucent.com>
89184
89185         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89186         * m4/lstat.m4: Likewise.
89187
89188 2000-05-22  Jim Meyering  <meyering@lucent.com>
89189
89190         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
89191
89192 2000-05-20  Jim Meyering  <meyering@lucent.com>
89193
89194         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
89195         (jm_PREREQ): Use it.
89196
89197 2000-05-18  Jim Meyering  <meyering@lucent.com>
89198
89199         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
89200         back, too, since it may have been modified by allocate_entry.
89201         (hash_delete): Rewrite to use neither the assignment operator
89202         nor the comma operator in an if-expression.
89203
89204 2000-05-15  Paul Eggert  <eggert@twinsun.com>
89205
89206         * lib/closeout.c:
89207         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
89208         Remove; no longer needed.
89209         "quotearg.h": Add include.
89210         (file_name): Do not bother to explicitly initialize to NULL; it's less
89211         efficient on some hosts.
89212         (close_stdout_status): Remove test as to whether stdout was already
89213         closed; it breaks for the case "echo x | sort >&-".
89214         Quote file name colons.
89215         Do not assume that _("write error") lacks format strings.
89216
89217 2000-05-15  Jim Meyering  <meyering@lucent.com>
89218
89219         * lib/version-etc.c (version_etc_copyright): Update the copyright
89220         string used in all --version output.
89221
89222 2000-05-14  Jim Meyering  <meyering@lucent.com>
89223
89224         * lib/closeout.c (close_stdout_set_file_name): New function.
89225         (close_stdout_status): Use new file-scoped global.
89226         Return right away if fstat says the stdout file descriptor is invalid.
89227         * lib/closeout.h (close_stdout_set_file_name): Declare.
89228
89229 2000-05-10  Jim Meyering  <meyering@lucent.com>
89230
89231         * lib/closeout.c [default_exit_status]: New file-scoped variable.
89232         (close_stdout_set_status): New function.
89233         * lib/closeout.h (close_stdout_set_status): Declare.
89234
89235 2000-05-09  Jim Meyering  <meyering@lucent.com>
89236
89237         * m4/gettext.m4: Rename this...
89238         * m4/libintl.m4: ...to this.
89239
89240 2000-05-08  Jim Meyering  <meyering@lucent.com>
89241
89242         * lib/long-options.c: Don't include closeout.h.
89243         (parse_long_options): Don't call close_stdout for --version.
89244
89245 2000-05-06  Paul Eggert  <eggert@twinsun.com>
89246
89247         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
89248         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
89249         2.1.3 bug.  This avoids a clash when files like regex.c define
89250         _GNU_SOURCE.
89251
89252 2000-05-06  Jim Meyering  <meyering@lucent.com>
89253
89254         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
89255         (AC_REPLACE_FUNCS): Add strnlen.
89256
89257         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
89258         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
89259
89260         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
89261         AC_SEARCH_LIBS call for nanosleep.
89262         (LIB_NANOSLEEP): Set and AC_SUBST.
89263
89264 2000-05-06  Jim Meyering  <meyering@lucent.com>
89265
89266         * lib/strnlen.c: Undefine __strnlen and strnlen.
89267         [!weak_alias]: Define __strnlen to strnlen.
89268
89269         * lib/atexit.c: New file, from libiberty.
89270
89271 2000-05-06  Jim Meyering  <meyering@lucent.com>
89272
89273         * lib/closeout.c (close_stdout_status): Also check for errors on the
89274         stderr stream.
89275
89276 2000-05-05  Jim Meyering  <meyering@lucent.com>
89277
89278         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
89279         AC_SEARCH_LIBS call for clock_gettime.
89280         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
89281
89282         * m4/search-libs.m4: Update from autoconf.
89283
89284         su doesn't work on Solaris 2.6.
89285         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
89286         <shadow.h>.  Reported by Dragos Harabor.
89287
89288 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
89289
89290         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
89291         memcpy instead of xmalloc, xrealloc, path_concat.
89292         (locale_charset): Treat empty environment variables as absent.
89293         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
89294
89295 2000-05-04  Jim Meyering  <meyering@lucent.com>
89296
89297         * lib/getopt.c: Update from glibc.
89298         * lib/obstack.c: Likewise.
89299         * lib/obstack.h: Likewise.
89300         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
89301         file
89302
89303         * lib/regex.h: Likewise.
89304         * lib/strndup.c: Likewise.
89305         * lib/strnlen.c: New file, from glibc.
89306
89307 2000-05-03  Jim Meyering  <meyering@lucent.com>
89308
89309         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
89310
89311 2000-05-02  Paul Eggert  <eggert@twinsun.com>
89312
89313         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
89314         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
89315         compile-time test, rather than inspecting host and OS, to
89316         decide whether to define _LARGEFILE_SOURCE.
89317
89318 2000-05-01  Jim Meyering  <meyering@lucent.com>
89319
89320         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
89321
89322         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
89323         Based on a patch from Bruno Haible.
89324
89325 2000-05-01  Jim Meyering  <meyering@lucent.com>
89326
89327         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
89328
89329 2000-04-29  Jim Meyering  <meyering@lucent.com>
89330
89331         * lib/path-concat.c: Declare strdup only if it's not defined.
89332         * lib/canon-host.c: Likewise.
89333
89334 2000-04-28  Jim Meyering  <meyering@lucent.com>
89335
89336         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
89337         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
89338         is included first, then limits.h is included by locale.h by libintl.h.
89339         From John David Anglin.
89340
89341 2000-04-25  Jim Meyering  <meyering@lucent.com>
89342
89343         * lib/makepath.c (S_IRWXUGO): Define.
89344         (make_path): Always perform explicit chmod if MODE specifies any
89345         of the `special' permission bits.  Prompted by a bug report against
89346         install from Mate Wierdl and Joost van Baal.
89347
89348 2000-04-18  Jim Meyering  <meyering@lucent.com>
89349
89350         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
89351         (jm_PREREQ): Use it.
89352
89353 2000-04-18  Jim Meyering  <meyering@lucent.com>
89354
89355         * lib/README: New file.
89356
89357         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
89358         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
89359
89360 2000-04-17  Jim Meyering  <meyering@lucent.com>
89361
89362         Get it right :-)
89363         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
89364         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
89365         Suggestion from Akim Demaille.
89366
89367 2000-04-17  Jim Meyering  <meyering@lucent.com>
89368
89369         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
89370         the definition of it to rpl_strftime also defined-away the system's
89371         declaration.
89372
89373 2000-04-15  Jim Meyering  <meyering@lucent.com>
89374
89375         Use `C' to denote so-called `contiguous' files, the same way
89376         that tar does.
89377         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
89378         (ftypelet): Use S_ISCTG.
89379         From Michael Deutschmann.
89380
89381 2000-04-14  Jim Meyering  <meyering@lucent.com>
89382
89383         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
89384         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
89385         clobbered.
89386
89387 2000-04-14  Jim Meyering  <meyering@lucent.com>
89388
89389         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
89390
89391 2000-04-13  Jim Meyering  <meyering@lucent.com>
89392
89393         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
89394         AH_VERBATIM to insert required #ifndef into config.h.in.
89395         Suggestion from Akim Demaille.
89396
89397 2000-04-12  Jim Meyering  <meyering@lucent.com>
89398
89399         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
89400         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
89401         Christian Krackowizer.
89402
89403         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
89404         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
89405         (AC_SYS_LARGEFILE): Require.
89406         (AM_C_PROTOTYPES): Require.
89407
89408 2000-04-08  Jim Meyering  <meyering@lucent.com>
89409
89410         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
89411         names don't conflict.  Reported by Eli Zaretskii.
89412
89413 2000-04-07  Jim Meyering  <meyering@lucent.com>
89414
89415         * lib/putenv.c: Move inclusion of errno.h so it follows that of
89416         sys/types.h, to work around system header problems on AIX 3.2.5.
89417         From Bruno Haible.
89418
89419 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
89420
89421         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
89422         bug.  Deal with the different error behavior of Irix iconv.
89423
89424 2000-04-05  Paul Eggert  <eggert@twinsun.com>
89425
89426         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
89427         IRIX if the installer said otherwise.
89428
89429 2000-04-05  Jim Meyering  <meyering@lucent.com>
89430
89431         Portability tweaks required for ultrix4.3.
89432         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
89433         (jm_CHECK_DECLS): Add getutent to the list of functions.
89434         (_jm_DECL_HEADERS): Add utmpx.h.
89435         From John David Anglin.
89436
89437         * m4/strftime.m4: Back out the 2000-04-02 change.
89438         Instead of that change, simply undefine putenv in the test program.
89439
89440 2000-04-05  Jim Meyering  <meyering@lucent.com>
89441
89442         Portability tweaks required for ultrix4.3.
89443         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
89444         getutent.
89445         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
89446         * lib/canon-host.c: Declare strdup.
89447         * lib/path-concat.c: Likewise.
89448         From John David Anglin.
89449
89450 2000-04-04  Jim Meyering  <meyering@lucent.com>
89451
89452         Be more DOS 8.3-friendly.
89453         * lib/ref-add.sin: Renamed from ref-add.sed.in.
89454         * lib/ref-del.sin: Renamed from ref-del.sed.in.
89455         * lib/Makefile.am: Reflect renaming.
89456         Reported by Eli Zaretskii.
89457
89458         Use a temporary file name that won't clash with `charset.alias'
89459         in the DOS 8.3 name space.
89460         * lib/Makefile.am (charset_tmp): Define.
89461         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
89462         (uninstall-local): Likewise.
89463         Reported by Eli Zaretskii.
89464
89465 2000-04-03  Jim Meyering  <meyering@lucent.com>
89466
89467         * m4/gettext.m4: Fix typo in comment.
89468
89469         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
89470         textutils/configure.in).  Suggestion from Paul Eggert.
89471         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
89472
89473 2000-04-02  Paul Eggert  <eggert@twinsun.com>
89474
89475         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
89476         variable in the shell rather than using putenv, which isn't
89477         portable.  This avoids the configure-time inter-test dependency
89478         on the potentially-renamed putenv function.
89479
89480 2000-03-30  Paul Eggert  <eggert@twinsun.com>
89481
89482         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
89483         before checking struct stat.st_blksize, so that
89484         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
89485
89486 2000-03-29  Paul Eggert  <eggert@twinsun.com>
89487
89488         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
89489         since strftime.c uses HAVE_STRFTIME to decide whether to use
89490         the underlying strftime.
89491
89492 2000-03-29  Paul Eggert  <eggert@twinsun.com>
89493
89494         * lib/time/strftime.c (my_strftime): Make sure we call the system
89495         strftime, not ourselves, when invoking the underlying strftime.
89496
89497 2000-03-24  Jim Meyering  <meyering@lucent.com>
89498
89499         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
89500         (charset_alias): Define.
89501         (install-exec-local): Factor out common code.
89502         (uninstall-local): Split lines longer than 80.
89503         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
89504         (SUFFIXES): Define.
89505         (.sed.in.sed): New rule.  Don't redirect directly to $@.
89506         (CLEANFILES): Add ref-add.sed and ref-del.sed.
89507
89508 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
89509
89510         * lib/config.charset: Output a line containing "Packages using this
89511         file".
89512         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
89513         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
89514         ref-del.sed): New rules.
89515
89516 2000-03-17  Jim Meyering  <meyering@lucent.com>
89517
89518         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
89519         Otherwise, include <strings.h>
89520
89521 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
89522
89523         * lib/unicodeio.c (utf8_wctomb): New function.
89524         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
89525         format instead of in UCS-4 with platform dependent endianness.
89526
89527 2000-03-10  Jim Meyering  <meyering@lucent.com>
89528
89529         * m4/lib-check.m4: Look for getspnam in -lgen, too.
89530         From Marco Franzen.
89531
89532 2000-03-07  Paul Eggert  <eggert@twinsun.com>
89533
89534         * lib/savedir.c (savedir): Work even if directory size is
89535         negative; this can happen with some screwy NFS configurations.
89536
89537 2000-03-06  Jim Meyering  <meyering@lucent.com>
89538
89539         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
89540         if it's NULL (because we ran out of memory).  From Bruno Haible.
89541
89542 2000-03-05  Jim Meyering  <meyering@lucent.com>
89543
89544         * lib/localcharset.c ("path-concat.h"): Include.
89545         (get_charset_aliases): Use path_concat instead of ANSI string
89546         concatenation.
89547
89548         * lib/unicodeio.h (PARAMS): Define.
89549         Use it to guard prototype.
89550
89551 2000-03-04  Jim Meyering  <meyering@lucent.com>
89552
89553         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
89554         for lib/localcharset.c.
89555
89556 2000-03-04  Jim Meyering  <meyering@lucent.com>
89557
89558         * lib/Makefile.am (install-exec-local): Create $(libdir) before
89559         installing into it.
89560         (uninstall-local): Uncomment this rule so `make distcheck' works
89561         once again.
89562
89563         * lib/unicodeio.c (<errno.h>): Include it.
89564         (errno): Declare if not defined.
89565
89566         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
89567
89568         * lib/config.charset: New version, incorporating remarks from a linux
89569         i18n mailing list.  From Bruno Haible.
89570
89571 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
89572
89573         * m4/codeset.m4: New file.
89574         * m4/iconv.m4: New file.
89575         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
89576
89577 2000-03-03  Jim Meyering  <meyering@lucent.com>
89578
89579         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
89580
89581 2000-03-02  Jim Meyering  <meyering@lucent.com>
89582
89583         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
89584         the messages come out on separate lines.
89585
89586         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
89587         rather than jm_CHECK_DECLARATIONS.
89588         * m4/decl.m4: Remove now-unused file.
89589
89590         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
89591         geteuid.
89592
89593 2000-03-02  Jim Meyering  <meyering@lucent.com>
89594
89595         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
89596
89597 2000-03-01  Jim Meyering  <meyering@lucent.com>
89598
89599         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
89600         * lib/unicodeio.c: Likewise.
89601
89602 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
89603
89604         * lib/config.charset: New file.
89605         * lib/localcharset.c: New file.
89606         * lib/unicodeio.h, lib/unicodeio.c: New files.
89607         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
89608         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
89609         (noinst_HEADERS): Add unicodeio.h.
89610         (all-local, install-exec-local, charset.alias): New targets.
89611
89612 2000-02-28  Paul Eggert  <eggert@twinsun.com>
89613
89614         * lib/quotearg.c (ALERT_CHAR): New macro.
89615         (quotearg_buffer_restyled): Use it.
89616
89617 2000-02-27  Jim Meyering  <meyering@lucent.com>
89618
89619         * m4/check-decl.m4: Add getenv to the list.
89620
89621 2000-02-27  Jim Meyering  <meyering@lucent.com>
89622
89623         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
89624         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
89625
89626         * lib/backupfile.c: Guard inclusion of stdlib.h with
89627         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
89628         Declare malloc if needed.
89629
89630         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
89631         `#ifndef HAVE_DECL..'
89632         now that autoconf always defines the HAVE_DECL_ symbols.
89633         * lib/human.c: Likewise.
89634         * lib/same.c: Likewise.
89635         * lib/strtoumax.c: Likewise.
89636
89637         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
89638         declaration check was not run.
89639         * lib/hash.c: Likewise.
89640         * lib/human.c: Likewise.
89641         * lib/same.c: Likewise.
89642         * lib/strtoumax.c: Likewise.
89643
89644         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
89645         `.', then first look up the entire `.'-containing string as a login
89646         name.
89647
89648 2000-02-23  Jim Meyering  <meyering@lucent.com>
89649
89650         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
89651         in place of my hack.
89652
89653 2000-02-18  Paul Eggert  <eggert@twinsun.com>
89654
89655         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
89656         (textint): New typedef.
89657         (parser_control): Member year changed from int to textint.
89658         All uses changed.
89659         (YYSTYPE): Removed; replaced by %union with int and textint members.
89660         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
89661         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
89662         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
89663         (tSNUMBER, tUNUMBER): Now of type <textintval>.
89664         (date, number, to_year): Use width of number in digits, not its value,
89665         to determine whether it's a 2-digit year, or a 2-digit time.
89666         (yylex): Store number of digits of numeric tokens.
89667         Reported by John Kendall.
89668
89669         (parser_control): Changed from struct parser_control to typedef (for
89670         consistency).  All uses changed.
89671
89672         (tID): Removed; not used.
89673         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
89674
89675 2000-02-14  Paul Eggert  <eggert@twinsun.com>
89676
89677         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
89678         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
89679
89680 2000-02-12  Jim Meyering  <meyering@lucent.com>
89681
89682         * lib/userspec.c (ISDIGIT): Define it.
89683         (isdigit): Remove definition.
89684         (is_number): Use ISDIGIT, not isdigit.
89685         <libintl.h>: Include.
89686         (_ and N_): Define.
89687         (parse_user_spec): Mark translatable strings.
89688
89689 2000-02-10  Jim Meyering  <meyering@lucent.com>
89690
89691         With these changes, nanosleep.[ch] are finally enough like the other
89692         lib/* replacement files to compile on a few more losing systems.
89693
89694         * lib/nanosleep.h: Don't include config.h.
89695         Remove prototype from declaration of nanosleep.
89696         (PARAMS): Remove now-unneeded definition.
89697         * lib/nanosleep.c: #undef nanosleep.
89698         (rpl_nanosleep): Rename from nanosleep.
89699
89700 2000-02-10  Jim Meyering  <meyering@lucent.com>
89701
89702         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
89703         gnu_nanosleep to rpl_nanosleep.
89704
89705 2000-02-09  Jim Meyering  <meyering@lucent.com>
89706
89707         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
89708         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
89709
89710 2000-02-08  Akim Demaille  <akim@epita.fr>
89711
89712         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
89713         `[' and `]' and remove uses of `changequote'.
89714         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
89715         (AC_SYS_LARGEFILE): Likewise.
89716         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
89717         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
89718         of changequote.
89719         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
89720         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
89721         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
89722         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
89723
89724 2000-02-05  Jim Meyering  <meyering@lucent.com>
89725
89726         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
89727         Remove explicit use of AC_HEADER_TIME.  It is required by
89728         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
89729         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
89730         in autoconf whereby the expansion of the latter ended up preceding
89731         the expansion of its prerequisite, AC_HEADER_TIME.
89732         Reported by Volker Borchert.
89733
89734 2000-02-03  Jim Meyering  <meyering@lucent.com>
89735
89736         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
89737
89738 2000-02-03  Jim Meyering  <meyering@lucent.com>
89739
89740         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
89741         rather than with `#if HAVE_UTMPNAME'.
89742
89743 2000-02-02  Jim Meyering  <meyering@lucent.com>
89744
89745         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
89746         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
89747         Reported by Eli Zaretskii.
89748
89749 2000-02-01  Jim Meyering  <meyering@lucent.com>
89750
89751         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
89752
89753 2000-01-31  Jim Meyering  <meyering@lucent.com>
89754
89755         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
89756         functions.  Add the time.h and sys/time.h headers along with the
89757         AC_REQUIRE'ment of AC_HEADER_TIME.
89758
89759 2000-01-31  Jim Meyering  <meyering@lucent.com>
89760
89761         * lib/nanosleep.h (nanosleep): Guard declaration with
89762         `#if ! HAVE_DECL_NANOSLEEP'.
89763         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
89764         the declaration in that vendor's sys/timers.h.
89765         Reported by Christian Krackowizer.
89766
89767         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
89768         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
89769         (ISPRINT): Likewise.
89770         Reported by Tom Tromey.
89771
89772 2000-01-30  Jim Meyering  <meyering@lucent.com>
89773
89774         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
89775
89776         * m4/prereq.m4 (utmp_includes): Define.
89777         Check for ut_user and ut_name members in both struct utmpx
89778         and struct utmp.
89779
89780 2000-01-30  Jim Meyering  <meyering@lucent.com>
89781
89782         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
89783         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
89784         header files where only utmpx.ut_user is declared.
89785
89786         * lib/readutmp.h (UT_USER): Define.
89787
89788 2000-01-29  Jim Meyering  <meyering@lucent.com>
89789
89790         * m4/lib-check.m4: New file containing library-related checks from
89791         fileutils and sh-utils (textutils had none).
89792
89793 2000-01-28  Jim Meyering  <meyering@lucent.com>
89794
89795         * m4/perl.m4: Change format of warning message to look more like that
89796         from the missing script.  Suggestion from François Pinard.
89797
89798 2000-01-25  Jim Meyering  <meyering@lucent.com>
89799
89800         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
89801         well as time.h in the compile check.
89802         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
89803         Fix typo in cross-compiling case: s/yes/no/.
89804
89805 2000-01-23  Jim Meyering  <meyering@lucent.com>
89806
89807         * m4/jm-macros.m4: Move df-related tests here from
89808         fileutils/configure.in
89809
89810         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
89811         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
89812
89813         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
89814         s/space/ac_fsusage_space/.
89815         (jm_FILE_SYSTEM_USAGE): Take two parameters.
89816
89817         * m4/ftruncate.m4: New file (derived from part of
89818         fileutils/configure.in).
89819         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
89820         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
89821
89822         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
89823         AC_SUBST these here, rather than just in sh-util/configure.in, so
89824         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
89825         all the same.
89826         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
89827         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
89828         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
89829         (AC_SUBST(POW_LIBM)): Likewise.
89830         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
89831
89832 2000-01-23  Jim Meyering  <meyering@lucent.com>
89833
89834         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
89835         obstack.c.
89836
89837 2000-01-22  Jim Meyering  <meyering@lucent.com>
89838
89839         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
89840
89841         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
89842
89843         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
89844         configure.in
89845         (AC_CHECK_HEADERS): Likewise for sh-utils.
89846         (AC_CHECK_HEADERS): Likewise for textutils.
89847         Merge the three lists of headers.
89848
89849         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
89850         from fileutils' configure.in.
89851
89852         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
89853         code. Moved tests into their own function (_jm_DECL_HEADERS) in
89854         check-decl.m4.
89855
89856         * m4/check-decl.m4: Use #if rather than #ifdef.
89857         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
89858         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
89859         (_jm_DECL_HEADERS): Define new function.
89860         (jm_CHECK_DECLARATIONS): Require it.
89861
89862 2000-01-22  Jim Meyering  <meyering@lucent.com>
89863
89864         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
89865         [! HAVE_DECL_STRTOULL]: Declare strtoull.
89866         Required for some AIX systems.  Reported by Christian Krackowizer.
89867         [TESTING] (main): New function.
89868
89869         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
89870         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
89871         letters.
89872
89873         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
89874         iswprint.
89875
89876         * lib/strverscmp.c (ISDIGIT): Define.
89877         (strverscmp): Use ISDIGIT, not isdigit.
89878
89879 2000-01-19  Jim Meyering  <meyering@lucent.com>
89880
89881         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
89882         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
89883         defines `struct timespec' in <sys/time.h>
89884
89885         * m4/c-bs-a.m4: Remove uses of changequote altogether.
89886         Thanks to Akim for explaining.
89887
89888 2000-01-17  Paul Eggert  <eggert@twinsun.com>
89889
89890         * lib/nanosleep.c (nanosleep):
89891         Don't use SA_INTERRUPT to decide whether to call sigaction, as
89892         POSIX.1 doesn't require SA_INTERRUPT and some systems
89893         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
89894         it's been part of POSIX.1 since day 1 (in 1988).
89895
89896 2000-01-17  Jim Meyering  <meyering@lucent.com>
89897
89898         * lib/interlock: Remove unused file.  Reported by François Pinard.
89899
89900 2000-01-16  Paul Eggert  <eggert@twinsun.com>
89901
89902         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
89903         alert, backslash, formfeed, and vertical tab unnecessarily in
89904         shell quoting style.
89905
89906 2000-01-16  Jim Meyering  <meyering@lucent.com>
89907
89908         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
89909         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
89910         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
89911         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
89912
89913 2000-01-16  Jim Meyering  <meyering@lucent.com>
89914
89915         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
89916         because the latter didn't work.
89917
89918 2000-01-15  Jim Meyering  <meyering@lucent.com>
89919
89920         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
89921         (AC_REPLACE_FUNCS): Add memcpy and memset.
89922         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
89923         Add strpbrk.
89924         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
89925
89926 2000-01-12  Jim Meyering  <meyering@lucent.com>
89927
89928         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
89929         (jm_PREREQ): Use it.
89930         (jm_PREREQ_READUTMP): New macro.
89931         (jm_PREREQ): Use it.
89932
89933 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89934
89935         Quote multibyte characters correctly.
89936         * m4/c-bs-a.m4: New file.
89937         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
89938         (jm_PREREQ): Use it.
89939
89940 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89941
89942         * m4/uintmax_t.m4: Port to autoconf 2.13.
89943
89944 2000-01-08  Jim Meyering  <meyering@ascend.com>
89945
89946         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
89947         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
89948
89949 2000-01-04  Jim Meyering  <meyering@ascend.com>
89950
89951         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
89952         jm_STRUCT_DIRENT_D_TYPE.
89953         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
89954         jm_STRUCT_DIRENT_D_INO.
89955         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
89956         jm_STRUCT_UTIMBUF.
89957         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
89958         renamings.
89959         * m4/utime.m4: Likewise.
89960
89961         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
89962         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
89963
89964 2000-01-03  Paul Eggert  <eggert@twinsun.com>
89965
89966         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
89967         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
89968
89969 2000-01-02  Jim Meyering  <meyering@ascend.com>
89970
89971         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
89972         remember if this is necessary.
89973
89974 1999-12-26  Jim Meyering  <meyering@ascend.com>
89975
89976         * m4/jm-macros.m4: Use it here.
89977         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
89978
89979 1999-12-23  Jim Meyering  <meyering@ascend.com>
89980
89981         * m4/jm-macros.m4: Check for clock_gettime (moved from
89982         fileutils/configure.in)
89983         Check for gettimeofday.
89984
89985 1999-12-20  Jim Meyering  <meyering@ascend.com>
89986
89987         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
89988         autoconf-2.14a-1999-12-20.
89989
89990 1999-12-19  Jim Meyering  <meyering@ascend.com>
89991
89992         * m4/lstat-slash.m4: New file.
89993         * m4/jm-macros.m4: Use the new macro:
89994         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89995
89996 1999-12-07  Jim Meyering  <meyering@ascend.com>
89997
89998         * m4/perl.m4: Require that File::Compare be available, too.
89999         Too many systems seem to lack it.
90000
90001         * m4/strftime.m4: Add checks for most of the cpp macros tested in
90002         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
90003
90004 1999-11-18  Paul Eggert  <eggert@twinsun.com>
90005
90006         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
90007         problem with the QNX 4.25 shell, which doesn't propagate exit
90008         status of failed commands inside shell assignments.
90009
90010 1999-11-17  Jim Meyering  <meyering@ascend.com>
90011
90012         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
90013
90014 1999-11-07  Jim Meyering  <meyering@ascend.com>
90015
90016         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
90017
90018 1999-11-06  Jim Meyering  <meyering@ascend.com>
90019
90020         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
90021         * m4/jm-macros.m4 (jm_MACROS): Use it here.
90022
90023 1999-11-05  Jim Meyering  <meyering@ascend.com>
90024
90025         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
90026         configure.in of textutils, fileutils, and sh-utils into this one
90027         (shared between those packages) file.
90028         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
90029         AC_STRUCT_ST_BLKSIZE.
90030
90031 1999-11-03  Jim Meyering  <meyering@ascend.com>
90032
90033         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
90034         of AC_CHECK_TYPE checks includes unistd.h.
90035         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
90036         Suggestion from Akim Demaille.
90037
90038 1999-10-30  Jim Meyering  <meyering@ascend.com>
90039
90040         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
90041         m4-quoted string.
90042         * m4/ls-mntd-fs.m4: Likewise.
90043         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
90044         * m4/jm-winsz1.m4: Likewise.
90045
90046         * m4/const.m4: Remove file, since the fix made it into the experimental
90047         version of autoconf.
90048         * m4/mktime.m4: Likewise.
90049
90050         * m4/check-type.m4: Remove file, now that the latest version of
90051         AC_CHECK_TYPE takes a third arg to specify additional #includes.
90052
90053         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
90054         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
90055         AC_CHECK_TYPE.
90056
90057 1999-10-04  Jim Meyering  <meyering@ascend.com>
90058
90059         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
90060
90061 1999-09-22  Paul Eggert  <eggert@twinsun.com>
90062
90063         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
90064         2.95.1 bug with HP-UX 10.20.
90065
90066 1999-09-17  Jim Meyering  <meyering@ascend.com>
90067
90068         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
90069         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
90070         due to missing strdup (against sh-utils-2.0).
90071
90072 1999-08-29  Jim Meyering  <meyering@ascend.com>
90073
90074         * m4/jm-macros.m4: Require jm_BISON.
90075         * m4/bison.m4: New file.
90076
90077 1999-08-17  Paul Eggert  <eggert@twinsun.com>
90078
90079         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
90080         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
90081
90082 1999-08-05  Jim Meyering  <meyering@ascend.com>
90083
90084         * m4/getline.m4: Rename test file from conftestdata to conftest.data
90085         to avoid conflicts with `conftest' on 8+3 filesystems.
90086         Suggestion from Eli Zaretskii.
90087
90088 1999-08-04  Jim Meyering  <meyering@ascend.com>
90089
90090         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
90091         fileutils and sh-utils (textutils's getline test was inadequate).
90092         (AM_FUNC_GETLINE): Run this test.
90093         (AC_CHECK_FUNCS): Check for getdelim.
90094         Reported by Bob Proulx.
90095
90096 1999-08-02  Jim Meyering  <meyering@ascend.com>
90097
90098         * m4/jm-macros.m4: Add a comment.
90099
90100 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90101
90102         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
90103         <inttypes.h> defines strtoumax as a macro (and not as a
90104         function).
90105
90106 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90107
90108         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
90109         that we can shift, multiply and divide unsigned long long
90110         values; Ultrix cc can't do it.
90111
90112 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90113
90114         * m4/mktime.m4: New file, which is a preview of what should appear
90115         in the next public autoconf release.
90116
90117 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90118
90119         * m4/lfs.m4: Remove this file.
90120         * m4/largefile.m4: New file.  It contains the old contents of
90121         lfs.m4, except that all names with prefix AC_LFS have been
90122         changed to use the prefix AC_SYS_LARGEFILE instead, to be
90123         compatible with future autoconf versions.  Also, some minor m4
90124         quoting problems have been fixed.
90125
90126 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90127
90128         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
90129         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
90130         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
90131         and simplify the shell code.
90132
90133 1999-08-01  Jim Meyering  <meyering@ascend.com>
90134
90135         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
90136         m4.
90137
90138 1999-07-20  Jim Meyering  <meyering@ascend.com>
90139
90140         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
90141
90142 1999-07-15  Jim Meyering  <meyering@ascend.com>
90143
90144         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
90145
90146 1999-05-22  Jim Meyering  <meyering@ascend.com>
90147
90148         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
90149
90150 1999-05-20  Jim Meyering  <meyering@ascend.com>
90151
90152         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
90153         Add a colon after each `then' in case $4 is empty.
90154
90155 1999-05-16  Jim Meyering  <meyering@ascend.com>
90156
90157         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
90158
90159 1999-05-10  Jim Meyering  <meyering@ascend.com>
90160
90161         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
90162
90163         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
90164         AC_FUNC_MKTIME.
90165
90166 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
90167
90168         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
90169
90170 1999-05-04  Paul Eggert  <eggert@twinsun.com>
90171
90172         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
90173         not CPPFLAGS, so that linking works correctly in IRIX.
90174
90175 1999-04-30  Paul Eggert  <eggert@twinsun.com>
90176
90177         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
90178
90179 1999-04-20  Paul Eggert  <eggert@twinsun.com>
90180
90181         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
90182         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
90183         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
90184         jm_AC_TYPE_UNSIGNED_LONG_LONG.
90185         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
90186
90187         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
90188
90189 1999-04-20  Jim Meyering  <meyering@ascend.com>
90190
90191         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
90192         AC_REPLACE xstroull if necessary.  From Paul Eggert.
90193         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
90194
90195 1999-04-18  Jim Meyering  <meyering@ascend.com>
90196
90197         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
90198         * m4/jm-macros.m4: Use it.
90199
90200 1999-04-06  Jim Meyering  <meyering@ascend.com>
90201
90202         * m4/strftime.m4: Remove test for %f.
90203
90204 1999-03-29  Jim Meyering  <meyering@ascend.com>
90205
90206         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
90207         superset of the AC_TYPE_* checks in the textutils, fileutils,
90208         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
90209         AC_TYPE_PID_T.
90210
90211 1999-03-28  Jim Meyering  <meyering@ascend.com>
90212
90213         * m4/jm-macros.m4: Define GNU_PACKAGE here.
90214         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
90215         replaced e.g., in the *.sh files of the sh-utils.
90216
90217 1999-03-20  Jim Meyering  <meyering@ascend.com>
90218
90219         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
90220         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
90221         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
90222
90223 1999-03-19  Jim Meyering  <meyering@ascend.com>
90224
90225         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
90226
90227 1999-03-12  Jim Meyering  <meyering@ascend.com>
90228
90229         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
90230
90231 1999-03-07  Jim Meyering  <meyering@ascend.com>
90232
90233         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
90234         declared.
90235
90236 1999-02-17  Jim Meyering  <meyering@ascend.com>
90237
90238         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
90239         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
90240
90241 1999-02-07  Jim Meyering  <meyering@ascend.com>
90242
90243         * m4/group-member.m4: New file -- extracted from sh-utils'
90244         configure.in.
90245
90246         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
90247         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
90248
90249 1999-02-06  Jim Meyering  <meyering@ascend.com>
90250
90251         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
90252         * m4/fnmatch.m4: Likewise.
90253         * m4/getgroups.m4: Likewise.
90254         * m4/lstat.m4: Likewise.
90255         * m4/malloc.m4: Likewise.
90256         * m4/putenv.m4: Likewise.
90257         * m4/realloc.m4: Likewise.
90258         * m4/regex.m4: Likewise.
90259         * m4/stat.m4: Likewise.
90260         * m4/strftime.m4: Likewise.
90261         Suggestion from Alain Magloire.
90262
90263         * m4/chown.m4: Use `.$ac_objext', not `.o'.
90264         * m4/fnmatch.m4: Likewise.
90265         * m4/getgroups.m4: Likewise.
90266         * m4/getline.m4: Likewise.
90267         * m4/lstat.m4: Likewise.
90268         * m4/malloc.m4: Likewise.
90269         * m4/memcmp.m4: Likewise.
90270         * m4/putenv.m4: Likewise.
90271         * m4/realloc.m4: Likewise.
90272         * m4/regex.m4: Likewise.
90273         * m4/stat.m4: Likewise.
90274         * m4/strftime.m4: Likewise.
90275         Suggestion from Alain Magloire.
90276
90277         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
90278         an argument.
90279
90280         * m4/regex.m4: Add a run-time Test for proper operation of
90281         re_compile_pattern.
90282
90283 1999-01-31  Jim Meyering  <meyering@ascend.com>
90284
90285         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
90286
90287 1999-01-30  Jim Meyering  <meyering@ascend.com>
90288
90289         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
90290
90291         * m4/jm-mktime.m4: Make this a wrapper around the official
90292         AM_FUNC_MKTIME rather than my private copy, now that the official one
90293         is up to date.
90294         * m4/mktime.m4: Remove file.
90295
90296         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
90297         * m4/uptime.m4: Likewise.
90298         * m4/uintmax_t.m4: Likewise.
90299
90300 1999-01-28  Jim Meyering  <meyering@ascend.com>
90301
90302         * m4/jm-macros.m4: Use jm_AFS.
90303         * m4/afs.m4: New file (from fileutils' configure.in).
90304
90305         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
90306         * m4/chown.m4: Likewise.
90307         * m4/d-ino.m4: Likewise.
90308         * m4/d-type.m4: Likewise.
90309         * m4/fnmatch.m4: Likewise.
90310         * m4/getgroups.m4: Likewise.
90311         * m4/gettext.m4: Likewise.
90312         * m4/jm-mktime.m4: Likewise.
90313         * m4/jm-winsz2.m4: Likewise.
90314         * m4/lcmessage.m4: Likewise.
90315         * m4/ls-mntd-fs.m4: Likewise.
90316         * m4/malloc.m4: Likewise.
90317         * m4/memcmp.m4: Likewise.
90318         * m4/putenv.m4: Likewise.
90319         * m4/realloc.m4: Likewise.
90320         * m4/st_mtim.m4: Likewise.
90321         * m4/strftime.m4: Likewise.
90322
90323 1999-01-16  Jim Meyering  <meyering@ascend.com>
90324
90325         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
90326         (ARGMATCH_DIE_DECL): Define.
90327
90328 1999-01-12  Jim Meyering  <meyering@ascend.com>
90329
90330         * m4/Makefile.am.in: Rewrite to avoid using fmt.
90331         Reported by Lars Hecking.
90332
90333 1999-01-10  Jim Meyering  <meyering@ascend.com>
90334
90335         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
90336         gross kludge.
90337         * m4/inttypes_h.m4: Likewise.
90338         * m4/lstat.m4: Likewise.
90339         * m4/malloc.m4: Likewise.
90340         * m4/readdir.m4: Likewise.
90341         * m4/realloc.m4: Likewise.
90342         * m4/st_dm_mode.m4: Likewise.
90343         * m4/stat.m4: Likewise.
90344         * m4/utimbuf.m4: Likewise.
90345         * m4/utimes.m4: Likewise.
90346
90347         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
90348         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
90349         comments in config.h.in are meaningful.
90350
90351         * m4/jm-macros.m4: Require autoconf-2.13 here.
90352
90353         * m4/regex.m4: By default, don't use the included regex.c on systems
90354         with glibc 2.  Suggestion from Uli Drepper.
90355
90356 1999-01-02  Jim Meyering  <meyering@ascend.com>
90357
90358         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
90359
90360 1998-12-18  Jim Meyering  <meyering@ascend.com>
90361
90362         * m4/Makefile.am.in (Makefile.am): Simplify rule.
90363         Based on a suggestion from Lars Hecking.
90364
90365 1998-11-16  Paul Eggert  <eggert@twinsun.com>
90366
90367         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
90368
90369 1998-11-16  Jim Meyering  <meyering@ascend.com>
90370
90371         * m4/lfs.m4: Double-quote the `uname...` expression.
90372
90373 1998-11-14  Jim Meyering  <meyering@ascend.com>
90374
90375         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
90376         * m4/stat.m4: Likewise.
90377
90378 1998-11-03  Jim Meyering  <meyering@ascend.com>
90379
90380         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
90381         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
90382
90383 1998-10-18  Jim Meyering  <meyering@ascend.com>
90384
90385         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
90386
90387 1998-10-17  Jim Meyering  <meyering@ascend.com>
90388
90389         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
90390         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
90391         calls for those previously hard-coded headers.  Instead, take a new
90392         parameter.
90393         (jm_CHECK_DECLARATIONS): Reflect interface change.
90394         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
90395         (jm_CHECK_DECL_LOCALTIME_R): New macro.
90396
90397         * m4/mktime.m4: Test for spring-forward gap before long-running test.
90398
90399 1998-10-14  Jim Meyering  <meyering@ascend.com>
90400
90401         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
90402         instead of "TZ=America/Vancouver".  From Paul Eggert.
90403
90404 1998-10-11  Jim Meyering  <meyering@ascend.com>
90405
90406         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
90407         This adds a test for a recently added compatibility fix for mktime.c.
90408         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
90409
90410 1998-09-27  Jim Meyering  <meyering@ascend.com>
90411
90412         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
90413
90414         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
90415         ../configure.in, including a change from Gordon Matzigkeit to allow
90416         cross-compiling for the Hurd.
90417
90418         * m4/glibc.m4: New file/macro to test for the GNU C Library
90419         versions 1 and 2.  From Gordon Matzigkeit.
90420         Indent.
90421
90422 1998-09-21  Jim Meyering  <meyering@ascend.com>
90423
90424         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
90425
90426 1998-08-18  Paul Eggert  <eggert@twinsun.com>
90427
90428         Port nanosecond-resolution times to UnixWare 2.1.2 and
90429         pedantic Solaris 2.6.
90430
90431         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
90432         AC_STRUCT_ST_MTIM.
90433         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
90434         Generate name of ns member, instead of just 1 or undef.
90435         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
90436
90437 1998-08-15  Jim Meyering  <meyering@ascend.com>
90438
90439         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
90440         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
90441         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
90442         instead of jm_TYPE_SSIZE_T.
90443
90444 1998-08-12  Jim Meyering  <meyering@ascend.com>
90445
90446         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
90447
90448 1998-08-02  Jim Meyering  <meyering@ascend.com>
90449
90450         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
90451         in acconfig.h manually.
90452
90453 1998-07-31  Paul Eggert  <eggert@twinsun.com>
90454
90455         * m4/st_mtim.m4: New file.
90456
90457 1998-07-28  Jim Meyering  <meyering@ascend.com>
90458
90459         * m4/utimes.m4: Undef stat.
90460
90461 1998-07-25  Jim Meyering  <meyering@ascend.com>
90462
90463         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
90464         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
90465
90466 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
90467
90468         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
90469         uid and gid actually remain unchanged.
90470
90471 1998-07-07  Jim Meyering  <meyering@ascend.com>
90472
90473         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
90474
90475 1998-07-04  Jim Meyering  <meyering@ascend.com>
90476
90477         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
90478         to prove that this macro can be used in packages without regex.c.
90479
90480 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
90481
90482         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
90483         is to be used.
90484
90485 1998-07-03  Jim Meyering  <meyering@ascend.com>
90486
90487         * m4/gettext.m4: Add -lintl if it's found to be necessary.
90488
90489         * m4/gettext.m4: New file -- from gettext-0.10.35.
90490         * m4/lcmessage.m4: Likewise.
90491         * m4/progtest.m4: Likewise.
90492
90493         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
90494         * m4/jm-macros.m4: Require the new macro.
90495
90496 1998-06-29  Jim Meyering  <meyering@ascend.com>
90497
90498         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
90499         for the definition of NGROUPS (used in a system header included
90500         by sys/mount.h).
90501
90502 1998-06-28  Jim Meyering  <meyering@ascend.com>
90503
90504         * m4/ls-mntd-fs.m4: New file.
90505         * m4/fstypename.m4: New file.
90506
90507         * m4/jm-macros.m4: Require the new macro.
90508         * m4/jm-glibc-io.m4: New file.
90509
90510 1998-05-19  Jim Meyering  <meyering@ascend.com>
90511
90512         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
90513         * m4/lchown.m4: New file.
90514
90515         * m4/Makefile.am.in: New file.
90516         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
90517
90518 1998-05-14  Jim Meyering  <meyering@ascend.com>
90519
90520         * m4/Makefile.am (EXTRA_DIST): Add them.
90521         * m4/jm-macros.m4: New file.
90522         * m4/utimbuf.m4: New file.
90523
90524 1998-05-12  Jim Meyering  <meyering@ascend.com>
90525
90526         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
90527
90528 1998-05-11  Jim Meyering  <meyering@ascend.com>
90529
90530         * m4/isc-posix.m4: New file.
90531
90532 1998-05-10  Jim Meyering  <meyering@ascend.com>
90533
90534         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
90535
90536 1998-05-09  Jim Meyering  <meyering@ascend.com>
90537
90538         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
90539         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
90540         with automake.
90541
90542         * m4/ssize_t.m4: New file.
90543         * m4/mktime.m4: Remove file -- the new automake has this now.
90544
90545 1998-04-26  Jim Meyering  <meyering@ascend.com>
90546
90547         * m4/assert.m4: New file.
90548         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
90549
90550 1998-04-05  Jim Meyering  <meyering@ascend.com>
90551
90552         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
90553         (jm_PREREQ): Use it here.
90554
90555 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
90556
90557         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
90558         in acconfig.h.
90559
90560 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
90561
90562         * m4/prereq.m4: New file.
90563         * m4/error.m4: New file.
90564         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
90565
90566 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
90567
90568         * m4/getline.m4: Don't set am_cv_func_working_getline before the
90569         cache-check for the same variable -- that defeated the purpose of
90570         the test; the test program was never run.  This was a problem only
90571         on systems with losing getline functions -- HP-UX 10.20 is one.
90572         Reported by Bjorn Helgaas.
90573
90574 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
90575
90576         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
90577
90578 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
90579
90580         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
90581
90582         * m4/const.m4: New file.  Use an initializer in this declaration
90583         typedef int charset[2]; const charset x;
90584         Reported by Bob Glickstein.
90585
90586 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
90587
90588         * m4/chown.m4: Fix reversed types on -1 args to chown.
90589         From Kaveh Ghazi.
90590
90591 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
90592
90593         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
90594         Add lseek and memchr.
90595
90596         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
90597         T.E.Dickey <dickey@clark.net> said that some older preprocessors
90598         have a 20-character limit on names.
90599
90600 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
90601
90602         * m4/inttypes_h.m4: New file.
90603         * m4/uintmax_t.m4: New file.
90604         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
90605
90606
90607         -----
90608
90609         Local Variables:
90610         coding: utf-8
90611         End:
90612
90613         Copyright (C) 1997-2012 Free Software Foundation, Inc.
90614
90615         Copying and distribution of this file, with or without
90616         modification, are permitted provided the copyright notice
90617         and this notice are preserved.